light_instruction_decoder/programs/
spl_token.rs1extern crate self as light_instruction_decoder;
8
9use light_instruction_decoder_derive::InstructionDecoder;
10
11#[derive(InstructionDecoder)]
19#[instruction_decoder(
20 program_id = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
21 program_name = "SPL Token",
22 discriminator_size = 1
23)]
24pub enum SplTokenInstruction {
25 #[instruction_decoder(account_names = ["mint", "rent"])]
28 InitializeMint { decimals: u8 },
29
30 #[instruction_decoder(account_names = ["account", "mint", "owner", "rent"])]
32 InitializeAccount,
33
34 #[instruction_decoder(account_names = ["multisig", "rent"])]
36 InitializeMultisig { m: u8 },
37
38 #[instruction_decoder(account_names = ["source", "destination", "authority"])]
40 Transfer { amount: u64 },
41
42 #[instruction_decoder(account_names = ["source", "delegate", "owner"])]
44 Approve { amount: u64 },
45
46 #[instruction_decoder(account_names = ["source", "owner"])]
48 Revoke,
49
50 #[instruction_decoder(account_names = ["account_or_mint", "current_authority"])]
53 SetAuthority { authority_type: u8 },
54
55 #[instruction_decoder(account_names = ["mint", "destination", "authority"])]
57 MintTo { amount: u64 },
58
59 #[instruction_decoder(account_names = ["source", "mint", "authority"])]
61 Burn { amount: u64 },
62
63 #[instruction_decoder(account_names = ["account", "destination", "authority"])]
65 CloseAccount,
66
67 #[instruction_decoder(account_names = ["account", "mint", "authority"])]
69 FreezeAccount,
70
71 #[instruction_decoder(account_names = ["account", "mint", "authority"])]
73 ThawAccount,
74
75 #[instruction_decoder(account_names = ["source", "mint", "destination", "authority"])]
77 TransferChecked { amount: u64, decimals: u8 },
78
79 #[instruction_decoder(account_names = ["source", "mint", "delegate", "owner"])]
81 ApproveChecked { amount: u64, decimals: u8 },
82
83 #[instruction_decoder(account_names = ["mint", "destination", "authority"])]
85 MintToChecked { amount: u64, decimals: u8 },
86
87 #[instruction_decoder(account_names = ["source", "mint", "authority"])]
89 BurnChecked { amount: u64, decimals: u8 },
90
91 #[instruction_decoder(account_names = ["account", "mint", "rent"])]
94 InitializeAccount2,
95
96 #[instruction_decoder(account_names = ["account"])]
98 SyncNative,
99
100 #[instruction_decoder(account_names = ["account", "mint"])]
103 InitializeAccount3,
104
105 #[instruction_decoder(account_names = ["multisig"])]
107 InitializeMultisig2 { m: u8 },
108
109 #[instruction_decoder(account_names = ["mint"])]
112 InitializeMint2 { decimals: u8 },
113
114 #[instruction_decoder(account_names = ["mint"])]
116 GetAccountDataSize,
117
118 #[instruction_decoder(account_names = ["account"])]
120 InitializeImmutableOwner,
121
122 #[instruction_decoder(account_names = ["mint"])]
124 AmountToUiAmount { amount: u64 },
125
126 #[instruction_decoder(account_names = ["mint"])]
129 UiAmountToAmount,
130}