Vara
subscan
Runtime Modules / GearGas
Spec Version:
Storage Functions
Name
Type
TotalIssuance{"origin":"PlainType","plain_type":"U64","PlainTypeValue":11}
GasNodes{"origin":"Map","n_map_type":{"hashers":["Identity"],"key_vec":["gear_common:gas_provider:node:GasNodeId"],"value":"gear_common:gas_provider:node:GasNode","keys_id":323,"value_id":611}}
Allowance{"origin":"PlainType","plain_type":"U64","PlainTypeValue":11}
Constants
Name
Type
Value
BlockGasLimitU6400cc7b9fae000000
Error Types
Name
Docs
Forbidden
NodeAlreadyExists
InsufficientBalance
NodeNotFound
NodeWasConsumed
ParentIsLostErrors stating that gas tree has been invalidated
ParentHasNoChildren
UnexpectedConsumeOutputOutput of `Tree::consume` procedure that wasn't expected.Outputs of consumption procedure are determined. The error is returnedwhen unexpected one occurred. That signals, that algorithm works wrongand expected invariants are not correct.
UnexpectedNodeTypeNode type that can't occur if algorithm work well
ValueIsNotCaughtValue must have been caught, but was missed or blocked (for more info see `ValueNode::catch_value`).
ValueIsBlockedValue must have been caught or moved upstream, but was blocked (for more info see `ValueNode::catch_value`).
ValueIsNotBlockedValue must have been blocked, but was either moved or caught (for more info see `ValueNode::catch_value`).
ConsumedWithLock`GasTree::consume` called on node, which has some balance locked.
ConsumedWithSystemReservation`GasTree::consume` called on node, which has some system reservation.
TotalValueIsOverflowed`GasTree::create` called with some value amount leading tothe total value overflow.
TotalValueIsUnderflowedEither `GasTree::consume` or `GasTree::spent` called on a node creatingnegative imbalance which leads to the total value drop below 0.