pub enum RegistryInstruction {
Show 33 variants
InitializeProtocolConfig {
bump: u8,
},
UpdateProtocolConfig,
RegisterForester {
bump: u8,
},
UpdateForesterPda,
UpdateForesterPdaWeight {
new_weight: u64,
},
RegisterForesterEpoch {
epoch: u64,
},
FinalizeRegistration,
ReportWork,
RegisterSystemProgram {
bump: u8,
},
DeregisterSystemProgram {
bump: u8,
},
InitializeAddressMerkleTree {
bump: u8,
},
InitializeStateMerkleTree {
bump: u8,
},
InitializeBatchedStateMerkleTree {
bump: u8,
},
InitializeBatchedAddressMerkleTree {
bump: u8,
},
Nullify {
bump: u8,
},
UpdateAddressMerkleTree {
bump: u8,
},
BatchNullify {
bump: u8,
},
BatchAppend {
bump: u8,
},
BatchUpdateAddressTree {
bump: u8,
},
RolloverAddressMerkleTreeAndQueue {
bump: u8,
},
RolloverStateMerkleTreeAndQueue {
bump: u8,
},
RolloverBatchedAddressMerkleTree {
bump: u8,
},
RolloverBatchedStateMerkleTree {
bump: u8,
},
MigrateState {
bump: u8,
},
CreateConfigCounter,
CreateCompressibleConfig,
UpdateCompressibleConfig,
PauseCompressibleConfig,
UnpauseCompressibleConfig,
DeprecateCompressibleConfig,
WithdrawFundingPool {
amount: u64,
},
Claim,
CompressAndClose {
authority_index: u8,
destination_index: u8,
},
}Expand description
Light Registry program instructions.
The Registry program uses 8-byte Anchor discriminators computed from sha256(“global:<snake_case_instruction_name>”).
Variants§
InitializeProtocolConfig
Initialize the protocol configuration
UpdateProtocolConfig
Update the protocol configuration
RegisterForester
Register a new forester
UpdateForesterPda
Update a forester PDA
UpdateForesterPdaWeight
Update a forester’s weight
RegisterForesterEpoch
Register a forester for an epoch
FinalizeRegistration
Finalize forester registration
ReportWork
Report work done by forester
RegisterSystemProgram
Register a system program
DeregisterSystemProgram
Deregister a system program
InitializeAddressMerkleTree
Initialize an address Merkle tree
InitializeStateMerkleTree
Initialize a state Merkle tree
InitializeBatchedStateMerkleTree
Initialize a batched state Merkle tree
InitializeBatchedAddressMerkleTree
Initialize a batched address Merkle tree
Nullify
Nullify a leaf in the tree
UpdateAddressMerkleTree
Update an address Merkle tree
BatchNullify
Batch nullify leaves
BatchAppend
Batch append to output queue
BatchUpdateAddressTree
Batch update an address tree
RolloverAddressMerkleTreeAndQueue
Rollover address Merkle tree and queue
RolloverStateMerkleTreeAndQueue
Rollover state Merkle tree and queue
RolloverBatchedAddressMerkleTree
Rollover batched address Merkle tree
RolloverBatchedStateMerkleTree
Rollover batched state Merkle tree
MigrateState
Migrate state
CreateConfigCounter
Create a config counter
CreateCompressibleConfig
Create a compressible config
UpdateCompressibleConfig
Update a compressible config
PauseCompressibleConfig
Pause a compressible config (only requires update_authority and compressible_config)
UnpauseCompressibleConfig
Unpause a compressible config (only requires update_authority and compressible_config)
DeprecateCompressibleConfig
Deprecate a compressible config (only requires update_authority and compressible_config)
WithdrawFundingPool
Withdraw from funding pool
Claim
Claim compressed tokens
CompressAndClose
Compress and close token account
Auto Trait Implementations§
impl Freeze for RegistryInstruction
impl RefUnwindSafe for RegistryInstruction
impl Send for RegistryInstruction
impl Sync for RegistryInstruction
impl Unpin for RegistryInstruction
impl UnwindSafe for RegistryInstruction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more