pub trait Transaction: Into<FuelTransaction> + 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;
}