extern crate self as light_instruction_decoder;
use light_instruction_decoder_derive::InstructionDecoder;
#[derive(InstructionDecoder)]
#[instruction_decoder(
program_id = "Lighton6oQpVkeewmo2mcPTQQp7kYHr4fWpAgJyEmDX",
program_name = "Light Registry",
discriminator_size = 8
)]
pub enum RegistryInstruction {
#[instruction_decoder(account_names = ["fee_payer", "authority", "protocol_config_pda", "system_program", "self_program"])]
InitializeProtocolConfig { bump: u8 },
#[instruction_decoder(account_names = ["fee_payer", "authority", "protocol_config_pda", "new_authority"])]
UpdateProtocolConfig,
#[instruction_decoder(account_names = ["fee_payer", "authority", "protocol_config_pda", "forester_pda", "system_program"])]
RegisterForester { bump: u8 },
#[instruction_decoder(account_names = ["authority", "forester_pda", "new_authority"])]
UpdateForesterPda,
#[instruction_decoder(account_names = ["authority", "protocol_config_pda", "forester_pda"])]
UpdateForesterPdaWeight { new_weight: u64 },
#[instruction_decoder(account_names = ["fee_payer", "authority", "forester_pda", "forester_epoch_pda", "protocol_config", "epoch_pda", "system_program"])]
RegisterForesterEpoch { epoch: u64 },
#[instruction_decoder(account_names = ["authority", "forester_epoch_pda", "epoch_pda"])]
FinalizeRegistration,
#[instruction_decoder(account_names = ["authority", "forester_epoch_pda", "epoch_pda"])]
ReportWork,
#[instruction_decoder(account_names = ["authority", "cpi_authority", "program_to_be_registered", "registered_program_pda", "group_pda", "account_compression_program", "system_program"])]
RegisterSystemProgram { bump: u8 },
#[instruction_decoder(account_names = ["authority", "cpi_authority", "registered_program_pda", "group_pda", "account_compression_program"])]
DeregisterSystemProgram { bump: u8 },
#[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"])]
InitializeAddressMerkleTree { bump: u8 },
#[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"])]
InitializeStateMerkleTree { bump: u8 },
#[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"])]
InitializeBatchedStateMerkleTree { bump: u8 },
#[instruction_decoder(account_names = ["authority", "merkle_tree", "registered_program_pda", "cpi_authority", "account_compression_program", "protocol_config_pda"])]
InitializeBatchedAddressMerkleTree { bump: u8 },
#[instruction_decoder(account_names = ["registered_forester_pda", "authority", "cpi_authority", "registered_program_pda", "account_compression_program", "log_wrapper", "merkle_tree", "nullifier_queue"])]
Nullify { bump: u8 },
#[instruction_decoder(account_names = ["registered_forester_pda", "authority", "cpi_authority", "registered_program_pda", "account_compression_program", "log_wrapper", "merkle_tree", "queue"])]
UpdateAddressMerkleTree { bump: u8 },
#[instruction_decoder(account_names = ["registered_forester_pda", "authority", "cpi_authority", "registered_program_pda", "account_compression_program", "log_wrapper", "merkle_tree"])]
BatchNullify { bump: u8 },
#[instruction_decoder(account_names = ["registered_forester_pda", "authority", "cpi_authority", "registered_program_pda", "account_compression_program", "log_wrapper", "merkle_tree", "output_queue"])]
BatchAppend { bump: u8 },
#[instruction_decoder(account_names = ["registered_forester_pda", "authority", "cpi_authority", "registered_program_pda", "account_compression_program", "log_wrapper", "merkle_tree"])]
BatchUpdateAddressTree { bump: u8 },
#[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"])]
RolloverAddressMerkleTreeAndQueue { bump: u8 },
#[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"])]
RolloverStateMerkleTreeAndQueue { bump: u8 },
#[instruction_decoder(account_names = ["registered_forester_pda", "authority", "cpi_authority", "registered_program_pda", "account_compression_program", "new_address_merkle_tree", "old_address_merkle_tree"])]
RolloverBatchedAddressMerkleTree { bump: u8 },
#[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"])]
RolloverBatchedStateMerkleTree { bump: u8 },
#[instruction_decoder(account_names = ["registered_forester_pda", "authority", "cpi_authority", "registered_program_pda", "account_compression_program", "merkle_tree"])]
MigrateState { bump: u8 },
#[instruction_decoder(account_names = ["fee_payer", "authority", "protocol_config_pda", "config_counter", "system_program"])]
CreateConfigCounter,
#[instruction_decoder(account_names = ["fee_payer", "authority", "protocol_config_pda", "config_counter", "compressible_config", "system_program"])]
CreateCompressibleConfig,
#[instruction_decoder(account_names = ["update_authority", "compressible_config", "new_update_authority", "new_withdrawal_authority"])]
UpdateCompressibleConfig,
#[instruction_decoder(account_names = ["update_authority", "compressible_config"])]
PauseCompressibleConfig,
#[instruction_decoder(account_names = ["update_authority", "compressible_config"])]
UnpauseCompressibleConfig,
#[instruction_decoder(account_names = ["update_authority", "compressible_config"])]
DeprecateCompressibleConfig,
#[instruction_decoder(account_names = ["fee_payer", "withdrawal_authority", "compressible_config", "rent_sponsor", "compression_authority", "destination", "system_program", "compressed_token_program"])]
WithdrawFundingPool { amount: u64 },
#[instruction_decoder(account_names = ["authority", "registered_forester_pda", "rent_sponsor", "compression_authority", "compressible_config", "compressed_token_program"])]
Claim,
#[instruction_decoder(account_names = ["authority", "registered_forester_pda", "compression_authority", "compressible_config"])]
CompressAndClose {
authority_index: u8,
destination_index: u8,
},
}