RegistryInstruction

Enum RegistryInstruction 

Source
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

Fields

§bump: u8
§

UpdateProtocolConfig

Update the protocol configuration

§

RegisterForester

Register a new forester

Fields

§bump: u8
§

UpdateForesterPda

Update a forester PDA

§

UpdateForesterPdaWeight

Update a forester’s weight

Fields

§new_weight: u64
§

RegisterForesterEpoch

Register a forester for an epoch

Fields

§epoch: u64
§

FinalizeRegistration

Finalize forester registration

§

ReportWork

Report work done by forester

§

RegisterSystemProgram

Register a system program

Fields

§bump: u8
§

DeregisterSystemProgram

Deregister a system program

Fields

§bump: u8
§

InitializeAddressMerkleTree

Initialize an address Merkle tree

Fields

§bump: u8
§

InitializeStateMerkleTree

Initialize a state Merkle tree

Fields

§bump: u8
§

InitializeBatchedStateMerkleTree

Initialize a batched state Merkle tree

Fields

§bump: u8
§

InitializeBatchedAddressMerkleTree

Initialize a batched address Merkle tree

Fields

§bump: u8
§

Nullify

Nullify a leaf in the tree

Fields

§bump: u8
§

UpdateAddressMerkleTree

Update an address Merkle tree

Fields

§bump: u8
§

BatchNullify

Batch nullify leaves

Fields

§bump: u8
§

BatchAppend

Batch append to output queue

Fields

§bump: u8
§

BatchUpdateAddressTree

Batch update an address tree

Fields

§bump: u8
§

RolloverAddressMerkleTreeAndQueue

Rollover address Merkle tree and queue

Fields

§bump: u8
§

RolloverStateMerkleTreeAndQueue

Rollover state Merkle tree and queue

Fields

§bump: u8
§

RolloverBatchedAddressMerkleTree

Rollover batched address Merkle tree

Fields

§bump: u8
§

RolloverBatchedStateMerkleTree

Rollover batched state Merkle tree

Fields

§bump: u8
§

MigrateState

Migrate state

Fields

§bump: u8
§

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

Fields

§amount: u64
§

Claim

Claim compressed tokens

§

CompressAndClose

Compress and close token account

Fields

§authority_index: u8
§destination_index: u8

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V