pub type ContractExecResultFor<E> = ContractResult<ExecReturnValue, <E as Environment>::Balance>;Expand description
Alias for the contract exec result.
Aliased Type§
struct ContractExecResultFor<E> {
pub weight_consumed: Weight,
pub weight_required: Weight,
pub storage_deposit: StorageDeposit<<E as Environment>::Balance>,
pub max_storage_deposit: StorageDeposit<<E as Environment>::Balance>,
pub gas_consumed: <E as Environment>::Balance,
pub result: Result<ExecReturnValue, DispatchError>,
}Fields§
§weight_consumed: WeightHow much weight was consumed during execution.
weight_required: WeightHow much weight is required as gas limit in order to execute this call.
This value should be used to determine the weight limit for on-chain execution.
§Note
This can only different from Self::weight_consumed when weight pre-charging
is used. Currently, only seal_call_runtime makes use of pre-charging.
Additionally, any seal_call or seal_instantiate makes use of pre-charging
when a non-zero gas_limit argument is supplied.
storage_deposit: StorageDeposit<<E as Environment>::Balance>How much balance was paid by the origin into the contract’s deposit account in order to pay for storage.
The storage deposit is never actually charged from the origin in case of
Self::result is Err. This is because on error all storage changes are
rolled back including the payment of the deposit.
max_storage_deposit: StorageDeposit<<E as Environment>::Balance>The maximal storage deposit amount that occured at any time during the execution. This can be higher than the final storage_deposit due to refunds This is always a StorageDeposit::Charge(..)
gas_consumed: <E as Environment>::BalanceThe amount of Ethereum gas that has been consumed during execution.
result: Result<ExecReturnValue, DispatchError>The execution result of the code.