1extern crate self as light_instruction_decoder;
15
16use light_instruction_decoder_derive::InstructionDecoder;
17
18#[derive(InstructionDecoder)]
23#[instruction_decoder(
24 program_id = "Lighton6oQpVkeewmo2mcPTQQp7kYHr4fWpAgJyEmDX",
25 program_name = "Light Registry",
26 discriminator_size = 8
27)]
28pub enum RegistryInstruction {
29 #[instruction_decoder(account_names = ["fee_payer", "authority", "protocol_config_pda", "system_program", "self_program"])]
34 InitializeProtocolConfig { bump: u8 },
35
36 #[instruction_decoder(account_names = ["fee_payer", "authority", "protocol_config_pda", "new_authority"])]
38 UpdateProtocolConfig,
39
40 #[instruction_decoder(account_names = ["fee_payer", "authority", "protocol_config_pda", "forester_pda", "system_program"])]
45 RegisterForester { bump: u8 },
46
47 #[instruction_decoder(account_names = ["authority", "forester_pda", "new_authority"])]
49 UpdateForesterPda,
50
51 #[instruction_decoder(account_names = ["authority", "protocol_config_pda", "forester_pda"])]
53 UpdateForesterPdaWeight { new_weight: u64 },
54
55 #[instruction_decoder(account_names = ["fee_payer", "authority", "forester_pda", "forester_epoch_pda", "protocol_config", "epoch_pda", "system_program"])]
60 RegisterForesterEpoch { epoch: u64 },
61
62 #[instruction_decoder(account_names = ["authority", "forester_epoch_pda", "epoch_pda"])]
64 FinalizeRegistration,
65
66 #[instruction_decoder(account_names = ["authority", "forester_epoch_pda", "epoch_pda"])]
68 ReportWork,
69
70 #[instruction_decoder(account_names = ["authority", "cpi_authority", "program_to_be_registered", "registered_program_pda", "group_pda", "account_compression_program", "system_program"])]
75 RegisterSystemProgram { bump: u8 },
76
77 #[instruction_decoder(account_names = ["authority", "cpi_authority", "registered_program_pda", "group_pda", "account_compression_program"])]
79 DeregisterSystemProgram { bump: u8 },
80
81 #[instruction_decoder(account_names = ["authority", "merkle_tree", "queue", "registered_program_pda", "cpi_authority", "account_compression_program", "protocol_config_pda", "cpi_context_account", "light_system_program"])]
86 InitializeAddressMerkleTree { bump: u8 },
87
88 #[instruction_decoder(account_names = ["authority", "merkle_tree", "queue", "registered_program_pda", "cpi_authority", "account_compression_program", "protocol_config_pda", "cpi_context_account", "light_system_program"])]
90 InitializeStateMerkleTree { bump: u8 },
91
92 #[instruction_decoder(account_names = ["authority", "merkle_tree", "queue", "registered_program_pda", "cpi_authority", "account_compression_program", "protocol_config_pda", "cpi_context_account", "light_system_program"])]
94 InitializeBatchedStateMerkleTree { bump: u8 },
95
96 #[instruction_decoder(account_names = ["authority", "merkle_tree", "registered_program_pda", "cpi_authority", "account_compression_program", "protocol_config_pda"])]
98 InitializeBatchedAddressMerkleTree { bump: u8 },
99
100 #[instruction_decoder(account_names = ["registered_forester_pda", "authority", "cpi_authority", "registered_program_pda", "account_compression_program", "log_wrapper", "merkle_tree", "nullifier_queue"])]
105 Nullify { bump: u8 },
106
107 #[instruction_decoder(account_names = ["registered_forester_pda", "authority", "cpi_authority", "registered_program_pda", "account_compression_program", "log_wrapper", "merkle_tree", "queue"])]
109 UpdateAddressMerkleTree { bump: u8 },
110
111 #[instruction_decoder(account_names = ["registered_forester_pda", "authority", "cpi_authority", "registered_program_pda", "account_compression_program", "log_wrapper", "merkle_tree"])]
113 BatchNullify { bump: u8 },
114
115 #[instruction_decoder(account_names = ["registered_forester_pda", "authority", "cpi_authority", "registered_program_pda", "account_compression_program", "log_wrapper", "merkle_tree", "output_queue"])]
117 BatchAppend { bump: u8 },
118
119 #[instruction_decoder(account_names = ["registered_forester_pda", "authority", "cpi_authority", "registered_program_pda", "account_compression_program", "log_wrapper", "merkle_tree"])]
121 BatchUpdateAddressTree { bump: u8 },
122
123 #[instruction_decoder(account_names = ["registered_forester_pda", "authority", "cpi_authority", "registered_program_pda", "account_compression_program", "new_merkle_tree", "new_queue", "old_merkle_tree", "old_queue"])]
128 RolloverAddressMerkleTreeAndQueue { bump: u8 },
129
130 #[instruction_decoder(account_names = ["registered_forester_pda", "authority", "cpi_authority", "registered_program_pda", "account_compression_program", "new_merkle_tree", "new_queue", "old_merkle_tree", "old_queue", "cpi_context_account", "light_system_program", "protocol_config_pda"])]
132 RolloverStateMerkleTreeAndQueue { bump: u8 },
133
134 #[instruction_decoder(account_names = ["registered_forester_pda", "authority", "cpi_authority", "registered_program_pda", "account_compression_program", "new_address_merkle_tree", "old_address_merkle_tree"])]
136 RolloverBatchedAddressMerkleTree { bump: u8 },
137
138 #[instruction_decoder(account_names = ["registered_forester_pda", "authority", "new_state_merkle_tree", "old_state_merkle_tree", "new_output_queue", "old_output_queue", "cpi_context_account", "registered_program_pda", "cpi_authority", "account_compression_program", "protocol_config_pda", "light_system_program"])]
140 RolloverBatchedStateMerkleTree { bump: u8 },
141
142 #[instruction_decoder(account_names = ["registered_forester_pda", "authority", "cpi_authority", "registered_program_pda", "account_compression_program", "merkle_tree"])]
147 MigrateState { bump: u8 },
148
149 #[instruction_decoder(account_names = ["fee_payer", "authority", "protocol_config_pda", "config_counter", "system_program"])]
154 CreateConfigCounter,
155
156 #[instruction_decoder(account_names = ["fee_payer", "authority", "protocol_config_pda", "config_counter", "compressible_config", "system_program"])]
158 CreateCompressibleConfig,
159
160 #[instruction_decoder(account_names = ["update_authority", "compressible_config", "new_update_authority", "new_withdrawal_authority"])]
162 UpdateCompressibleConfig,
163
164 #[instruction_decoder(account_names = ["update_authority", "compressible_config"])]
166 PauseCompressibleConfig,
167
168 #[instruction_decoder(account_names = ["update_authority", "compressible_config"])]
170 UnpauseCompressibleConfig,
171
172 #[instruction_decoder(account_names = ["update_authority", "compressible_config"])]
174 DeprecateCompressibleConfig,
175
176 #[instruction_decoder(account_names = ["fee_payer", "withdrawal_authority", "compressible_config", "rent_sponsor", "compression_authority", "destination", "system_program", "compressed_token_program"])]
181 WithdrawFundingPool { amount: u64 },
182
183 #[instruction_decoder(account_names = ["authority", "registered_forester_pda", "rent_sponsor", "compression_authority", "compressible_config", "compressed_token_program"])]
185 Claim,
186
187 #[instruction_decoder(account_names = ["authority", "registered_forester_pda", "compression_authority", "compressible_config"])]
189 CompressAndClose {
190 authority_index: u8,
191 destination_index: u8,
192 },
193}