Struct multisig_lite::State
source · pub struct State {
pub m: u8,
pub signers: Vec<Pubkey>,
pub signed: Vec<bool>,
pub fund: Pubkey,
pub balance: u64,
pub q: u8,
pub queue: Vec<Pubkey>,
}Expand description
A multisig State PDA account data.
Fields§
§m: u8A threshold.
signers: Vec<Pubkey>An array of signers Pubkey.
signed: Vec<bool>A current signed state.
fund: PubkeyA fund PDA account, holding the native SOL.
balance: u64A balance of the fund in lamports.
q: u8A limit of the pending transactions.
queue: Vec<Pubkey>An array of the pending transactions.
Trait Implementations§
source§impl AccountDeserialize for State
impl AccountDeserialize for State
source§fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes previously initialized account data. Should fail for all
uninitialized accounts, where the bytes are zeroed. Implementations
should be unique to a particular account type so that one can never
successfully deserialize the data of one account type into another.
For example, if the SPL token program were to implement this trait,
it should be impossible to deserialize a
Mint account into a token
Account.source§fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
Deserializes account data without checking the account discriminator.
This should only be used on account initialization, when the bytes of
the account are zeroed.