pub struct VaultTransactionMessage {
pub num_signers: u8,
pub num_writable_signers: u8,
pub num_writable_non_signers: u8,
pub account_keys: Vec<Pubkey>,
pub instructions: Vec<MultisigCompiledInstruction>,
pub address_table_lookups: Vec<MultisigMessageAddressTableLookup>,
}Fields§
§num_signers: u8The number of signer pubkeys in the account_keys vec.
num_writable_signers: u8The number of writable signer pubkeys in the account_keys vec.
num_writable_non_signers: u8The number of writable non-signer pubkeys in the account_keys vec.
account_keys: Vec<Pubkey>Unique account pubkeys (including program IDs) required for execution of the tx. The signer pubkeys appear at the beginning of the vec, with writable pubkeys first, and read-only pubkeys following. The non-signer pubkeys follow with writable pubkeys first and read-only ones following. Program IDs are also stored at the end of the vec along with other non-signer non-writable pubkeys:
[pubkey1, pubkey2, pubkey3, pubkey4, pubkey5, pubkey6, pubkey7, pubkey8]
|---writable---| |---readonly---| |---writable---| |---readonly---|
|------------signers-------------| |----------non-singers-----------|
instructions: Vec<MultisigCompiledInstruction>List of instructions making up the tx.
address_table_lookups: Vec<MultisigMessageAddressTableLookup>List of address table lookups used to load additional accounts for this transaction.
Implementations§
source§impl VaultTransactionMessage
impl VaultTransactionMessage
sourcepub fn num_all_account_keys(&self) -> usize
pub fn num_all_account_keys(&self) -> usize
Returns the number of all the account keys (static + dynamic) in the message.
sourcepub fn is_static_writable_index(&self, key_index: usize) -> bool
pub fn is_static_writable_index(&self, key_index: usize) -> bool
Returns true if the account at the specified index is a part of static account_keys and was requested to be writable.
sourcepub fn is_signer_index(&self, key_index: usize) -> bool
pub fn is_signer_index(&self, key_index: usize) -> bool
Returns true if the account at the specified index was requested to be a signer.
Trait Implementations§
source§impl BorshDeserialize for VaultTransactionMessagewhere
u8: BorshDeserialize,
Vec<Pubkey>: BorshDeserialize,
Vec<MultisigCompiledInstruction>: BorshDeserialize,
Vec<MultisigMessageAddressTableLookup>: BorshDeserialize,
impl BorshDeserialize for VaultTransactionMessagewhere u8: BorshDeserialize, Vec<Pubkey>: BorshDeserialize, Vec<MultisigCompiledInstruction>: BorshDeserialize, Vec<MultisigMessageAddressTableLookup>: BorshDeserialize,
source§impl BorshSerialize for VaultTransactionMessagewhere
u8: BorshSerialize,
Vec<Pubkey>: BorshSerialize,
Vec<MultisigCompiledInstruction>: BorshSerialize,
Vec<MultisigMessageAddressTableLookup>: BorshSerialize,
impl BorshSerialize for VaultTransactionMessagewhere u8: BorshSerialize, Vec<Pubkey>: BorshSerialize, Vec<MultisigCompiledInstruction>: BorshSerialize, Vec<MultisigMessageAddressTableLookup>: BorshSerialize,
source§impl Clone for VaultTransactionMessage
impl Clone for VaultTransactionMessage
source§fn clone(&self) -> VaultTransactionMessage
fn clone(&self) -> VaultTransactionMessage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more