fuels_types::transaction

Trait Transaction

Source
pub trait Transaction: Into<Transaction> + Send {
Show 16 methods // Required methods fn fee_checked_from_tx( &self, params: &ConsensusParameters, ) -> Option<TransactionFee>; fn check_without_signatures( &self, block_height: u32, parameters: &ConsensusParameters, ) -> Result<(), Error>; fn id(&self, params: &ConsensusParameters) -> Bytes32; fn maturity(&self) -> u32; fn with_maturity(self, maturity: u32) -> Self; fn gas_price(&self) -> u64; fn with_gas_price(self, gas_price: u64) -> Self; fn gas_limit(&self) -> u64; fn with_gas_limit(self, gas_price: u64) -> Self; fn with_tx_params(self, tx_params: TxParameters) -> Self; fn metered_bytes_size(&self) -> usize; fn inputs(&self) -> &Vec<FuelInput>; fn outputs(&self) -> &Vec<Output>; fn witnesses(&self) -> &Vec<Witness>; fn witnesses_mut(&mut self) -> &mut Vec<Witness>; fn with_witnesses(self, witnesses: Vec<Witness>) -> Self;
}

Required Methods§

Source

fn fee_checked_from_tx( &self, params: &ConsensusParameters, ) -> Option<TransactionFee>

Source

fn check_without_signatures( &self, block_height: u32, parameters: &ConsensusParameters, ) -> Result<(), Error>

Source

fn id(&self, params: &ConsensusParameters) -> Bytes32

Source

fn maturity(&self) -> u32

Source

fn with_maturity(self, maturity: u32) -> Self

Source

fn gas_price(&self) -> u64

Source

fn with_gas_price(self, gas_price: u64) -> Self

Source

fn gas_limit(&self) -> u64

Source

fn with_gas_limit(self, gas_price: u64) -> Self

Source

fn with_tx_params(self, tx_params: TxParameters) -> Self

Source

fn metered_bytes_size(&self) -> usize

Source

fn inputs(&self) -> &Vec<FuelInput>

Source

fn outputs(&self) -> &Vec<Output>

Source

fn witnesses(&self) -> &Vec<Witness>

Source

fn witnesses_mut(&mut self) -> &mut Vec<Witness>

Source

fn with_witnesses(self, witnesses: Vec<Witness>) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§