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§

source

fn balances(self) -> InitialBalances

Returns the initial balances from the checked metadata of the transaction.

source

fn gas_used_by_predicates(&self) -> Word

Get gas used by predicates. Returns zero if the predicates haven’t been checked.

source

fn set_gas_used_by_predicates(&mut self, gas_used: Word)

Set gas used by predicates after checking them.

Implementors§