pub trait SuiGasStatusAPI {
Show 16 methods // Required methods fn is_unmetered(&self) -> bool; fn move_gas_status(&self) -> &GasStatus; fn move_gas_status_mut(&mut self) -> &mut GasStatus; fn bucketize_computation(&mut self) -> Result<(), ExecutionError>; fn summary(&self) -> GasCostSummary; fn gas_budget(&self) -> u64; fn storage_gas_units(&self) -> u64; fn storage_rebate(&self) -> u64; fn unmetered_storage_rebate(&self) -> u64; fn gas_used(&self) -> u64; fn reset_storage_cost_and_rebate(&mut self); fn charge_storage_read(&mut self, size: usize) -> Result<(), ExecutionError>; fn charge_publish_package( &mut self, size: usize ) -> Result<(), ExecutionError>; fn track_storage_mutation( &mut self, object_id: ObjectID, new_size: usize, storage_rebate: u64 ) -> u64; fn charge_storage_and_rebate(&mut self) -> Result<(), ExecutionError>; fn adjust_computation_on_out_of_gas(&mut self);
}

Required Methods§

Implementors§

source§

impl SuiGasStatusAPI for sui_types::gas::checked::SuiGasStatus

source§

impl SuiGasStatusAPI for sui_types::gas_model::gas_v2::SuiGasStatus