1#![allow(unexpected_cfgs, ambiguous_glob_reexports, deprecated)]
2
3use anchor_lang::prelude::*;
4
5pub mod errors;
6pub mod events;
7pub mod instructions;
8pub mod state;
9pub mod utils;
10
11use instructions::*;
12
13declare_id!("5ZBiFxX4ggWfNR5VhAQDRZauG6CvG84puS4SQiH8BcL4");
14
15#[program]
16pub mod sss_token {
17 use super::*;
18
19 pub fn initialize(ctx: Context<Initialize>, params: InitializeParams) -> Result<()> {
20 instructions::initialize::handler(ctx, params)
21 }
22
23 pub fn mint_tokens(ctx: Context<MintTokens>, amount: u64) -> Result<()> {
24 instructions::mint::handler(ctx, amount)
25 }
26
27 pub fn burn_tokens(ctx: Context<BurnTokens>, amount: u64) -> Result<()> {
28 instructions::burn::handler(ctx, amount)
29 }
30
31 pub fn freeze_account(ctx: Context<FreezeTokenAccount>) -> Result<()> {
32 instructions::freeze::handler(ctx)
33 }
34
35 pub fn thaw_account(ctx: Context<ThawTokenAccount>) -> Result<()> {
36 instructions::thaw::handler(ctx)
37 }
38
39 pub fn pause(ctx: Context<Pause>) -> Result<()> {
40 instructions::pause::handler(ctx)
41 }
42
43 pub fn unpause(ctx: Context<Unpause>) -> Result<()> {
44 instructions::unpause::handler(ctx)
45 }
46
47 pub fn update_roles(ctx: Context<UpdateRoles>, params: UpdateRoleParams) -> Result<()> {
48 instructions::update_roles::handler(ctx, params)
49 }
50
51 pub fn update_minter(ctx: Context<UpdateMinter>, params: UpdateMinterParams) -> Result<()> {
52 instructions::update_minter::handler(ctx, params)
53 }
54
55 pub fn transfer_authority(ctx: Context<TransferAuthority>) -> Result<()> {
56 instructions::transfer_authority::handler(ctx)
57 }
58
59 pub fn blacklist_add(ctx: Context<BlacklistAdd>, params: BlacklistAddParams) -> Result<()> {
60 instructions::blacklist_add::handler(ctx, params)
61 }
62
63 pub fn blacklist_remove(ctx: Context<BlacklistRemove>) -> Result<()> {
64 instructions::blacklist_remove::handler(ctx)
65 }
66
67 pub fn seize(ctx: Context<Seize>, amount: u64) -> Result<()> {
68 instructions::seize::handler(ctx, amount)
69 }
70
71 pub fn attest_reserve(ctx: Context<AttestReserve>, params: AttestReserveParams) -> Result<()> {
72 instructions::attest_reserve::handler(ctx, params)
73 }
74}