Struct smart_wallet::Transaction [−][src]
pub struct Transaction {
pub smart_wallet: Pubkey,
pub index: u64,
pub bump: u8,
pub proposer: Pubkey,
pub instructions: Vec<TXInstruction>,
pub signers: Vec<bool>,
pub owner_set_seqno: u32,
pub eta: i64,
pub executor: Pubkey,
pub executed_at: i64,
}Fields
smart_wallet: PubkeyThe SmartWallet account this transaction belongs to.
index: u64The auto-incremented integer index of the transaction. All transactions on the SmartWallet can be looked up via this index, allowing for easier browsing of a wallet’s historical transactions.
bump: u8Bump seed.
proposer: PubkeyThe proposer of the Transaction.
instructions: Vec<TXInstruction>The instruction.
signers: Vec<bool>signers[index] is true iff [SmartWallet]::owners[index] signed the transaction.
owner_set_seqno: u32Owner set sequence number.
eta: i64Estimated time transaction will be executed
executor: PubkeyThe account that executed the Transaction.
executed_at: i64When the transaction was executed. -1 if not executed.
Implementations
Number of signers.
Trait Implementations
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 where to implement this trait,
it should impossible to deserialize a Mint account into a token
Account. Read more
impl BorshDeserialize for Transaction where
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
u8: BorshDeserialize,
Pubkey: BorshDeserialize,
Vec<TXInstruction>: BorshDeserialize,
Vec<bool>: BorshDeserialize,
u32: BorshDeserialize,
i64: BorshDeserialize,
Pubkey: BorshDeserialize,
i64: BorshDeserialize,
impl BorshDeserialize for Transaction where
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
u8: BorshDeserialize,
Pubkey: BorshDeserialize,
Vec<TXInstruction>: BorshDeserialize,
Vec<bool>: BorshDeserialize,
u32: BorshDeserialize,
i64: BorshDeserialize,
Pubkey: BorshDeserialize,
i64: BorshDeserialize,
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more