light_instruction_decoder/programs/
system.rs1extern crate self as light_instruction_decoder;
8
9use light_instruction_decoder_derive::InstructionDecoder;
10
11#[derive(InstructionDecoder)]
16#[instruction_decoder(
17 program_id = "11111111111111111111111111111111",
18 program_name = "System Program",
19 discriminator_size = 4
20)]
21pub enum SystemInstruction {
22 #[instruction_decoder(account_names = ["funding_account", "new_account"])]
25 CreateAccount { lamports: u64, space: u64 },
26
27 #[instruction_decoder(account_names = ["account"])]
30 Assign,
31
32 #[instruction_decoder(account_names = ["from", "to"])]
35 Transfer { lamports: u64 },
36
37 #[instruction_decoder(account_names = ["funding_account", "created_account", "base_account"])]
40 CreateAccountWithSeed { lamports: u64, space: u64 },
41
42 #[instruction_decoder(account_names = ["nonce_account", "recent_blockhashes_sysvar", "nonce_authority"])]
44 AdvanceNonceAccount,
45
46 #[instruction_decoder(account_names = ["nonce_account", "recipient", "recent_blockhashes_sysvar", "rent_sysvar", "nonce_authority"])]
49 WithdrawNonceAccount { lamports: u64 },
50
51 #[instruction_decoder(account_names = ["nonce_account", "recent_blockhashes_sysvar", "rent_sysvar"])]
54 InitializeNonceAccount,
55
56 #[instruction_decoder(account_names = ["nonce_account", "nonce_authority"])]
59 AuthorizeNonceAccount,
60
61 #[instruction_decoder(account_names = ["account"])]
64 Allocate { space: u64 },
65
66 #[instruction_decoder(account_names = ["account", "base_account"])]
69 AllocateWithSeed { space: u64 },
70
71 #[instruction_decoder(account_names = ["account", "base_account"])]
74 AssignWithSeed,
75
76 #[instruction_decoder(account_names = ["funding_account", "base_account", "recipient"])]
79 TransferWithSeed { lamports: u64 },
80
81 #[instruction_decoder(account_names = ["nonce_account"])]
83 UpgradeNonceAccount,
84}