Trait fuel_vm::interpreter::CheckedMetadata
source · pub trait CheckedMetadata {
// Required methods
fn balances(self) -> InitialBalances;
fn gas_used_by_predicates(&self) -> Word;
fn set_gas_used_by_predicates(&mut self, gas_used: Word);
}
Expand description
Methods that should be implemented by the checked metadata of supported transactions.
Required Methods§
sourcefn balances(self) -> InitialBalances
fn balances(self) -> InitialBalances
Returns the initial balances from the checked metadata of the transaction.
sourcefn gas_used_by_predicates(&self) -> Word
fn gas_used_by_predicates(&self) -> Word
Get gas used by predicates. Returns zero if the predicates haven’t been checked.
sourcefn set_gas_used_by_predicates(&mut self, gas_used: Word)
fn set_gas_used_by_predicates(&mut self, gas_used: Word)
Set gas used by predicates after checking them.