pub trait PreExecutionFeeReserve {
    // Required methods
    fn consume_deferred_execution(
        &mut self,
        cost_units: u32
    ) -> Result<(), FeeReserveError>;
    fn consume_deferred_storage(
        &mut self,
        storage_type: StorageType,
        size_increase: usize
    ) -> Result<(), FeeReserveError>;
}
Expand description

This is only allowed before a transaction properly begins. After any other methods are called, this cannot be called again.

Required Methods§

source

fn consume_deferred_execution( &mut self, cost_units: u32 ) -> Result<(), FeeReserveError>

source

fn consume_deferred_storage( &mut self, storage_type: StorageType, size_increase: usize ) -> Result<(), FeeReserveError>

Implementors§