sui_types::transaction

Trait TransactionDataAPI

Source
pub trait TransactionDataAPI {
Show 28 methods // Required methods fn sender(&self) -> SuiAddress; fn kind(&self) -> &TransactionKind; fn kind_mut(&mut self) -> &mut TransactionKind; fn into_kind(self) -> TransactionKind; fn signers(&self) -> NonEmpty<SuiAddress>; fn gas_data(&self) -> &GasData; fn gas_owner(&self) -> SuiAddress; fn gas(&self) -> &[ObjectRef]; fn gas_price(&self) -> u64; fn gas_budget(&self) -> u64; fn expiration(&self) -> &TransactionExpiration; fn shared_input_objects(&self) -> Vec<SharedInputObject>; fn move_calls(&self) -> Vec<(&ObjectID, &str, &str)>; fn input_objects(&self) -> UserInputResult<Vec<InputObjectKind>>; fn receiving_objects(&self) -> Vec<ObjectRef>; fn process_balance_withdraws( &self, ) -> UserInputResult<BTreeMap<ObjectID, Reservation>>; fn has_balance_withdraws(&self) -> bool; fn validity_check(&self, config: &ProtocolConfig) -> UserInputResult; fn validity_check_no_gas_check( &self, config: &ProtocolConfig, ) -> UserInputResult; fn check_sponsorship(&self) -> UserInputResult; fn is_system_tx(&self) -> bool; fn is_genesis_tx(&self) -> bool; fn is_end_of_epoch_tx(&self) -> bool; fn is_consensus_commit_prologue(&self) -> bool; fn is_sponsored_tx(&self) -> bool; fn sender_mut_for_testing(&mut self) -> &mut SuiAddress; fn gas_data_mut(&mut self) -> &mut GasData; fn expiration_mut_for_testing(&mut self) -> &mut TransactionExpiration;
}

Required Methods§

Source

fn sender(&self) -> SuiAddress

Source

fn kind(&self) -> &TransactionKind

Source

fn kind_mut(&mut self) -> &mut TransactionKind

Source

fn into_kind(self) -> TransactionKind

Source

fn signers(&self) -> NonEmpty<SuiAddress>

Transaction signer and Gas owner

Source

fn gas_data(&self) -> &GasData

Source

fn gas_owner(&self) -> SuiAddress

Source

fn gas(&self) -> &[ObjectRef]

Source

fn gas_price(&self) -> u64

Source

fn gas_budget(&self) -> u64

Source

fn expiration(&self) -> &TransactionExpiration

Source

fn shared_input_objects(&self) -> Vec<SharedInputObject>

Source

fn move_calls(&self) -> Vec<(&ObjectID, &str, &str)>

Source

fn input_objects(&self) -> UserInputResult<Vec<InputObjectKind>>

Source

fn receiving_objects(&self) -> Vec<ObjectRef>

Source

fn process_balance_withdraws( &self, ) -> UserInputResult<BTreeMap<ObjectID, Reservation>>

Processes balance withdraws and returns a map from balance account object ID to total reservation. This method aggregates all withdraw operations for the same account by merging their reservations. Each account object ID is derived from the type parameter of each withdraw operation.

Source

fn has_balance_withdraws(&self) -> bool

Source

fn validity_check(&self, config: &ProtocolConfig) -> UserInputResult

Source

fn validity_check_no_gas_check( &self, config: &ProtocolConfig, ) -> UserInputResult

Source

fn check_sponsorship(&self) -> UserInputResult

Check if the transaction is compliant with sponsorship.

Source

fn is_system_tx(&self) -> bool

Source

fn is_genesis_tx(&self) -> bool

Source

fn is_end_of_epoch_tx(&self) -> bool

returns true if the transaction is one that is specially sequenced to run at the very end of the epoch

Source

fn is_consensus_commit_prologue(&self) -> bool

Source

fn is_sponsored_tx(&self) -> bool

Check if the transaction is sponsored (namely gas owner != sender)

Source

fn sender_mut_for_testing(&mut self) -> &mut SuiAddress

Source

fn gas_data_mut(&mut self) -> &mut GasData

Source

fn expiration_mut_for_testing(&mut self) -> &mut TransactionExpiration

Implementors§