Versions in this module Expand all Collapse all v0 v0.11.1 Jan 31, 2025 Changes in this version + var ErrOutOfGas = errors.New("out of gas") + type Gas = uint64 + const NoGasLimit + type GasConfig struct + DeleteCost Gas + HasCost Gas + IterNextCostFlat Gas + ReadCostFlat Gas + ReadCostPerByte Gas + WriteCostFlat Gas + WriteCostPerByte Gas + type Meter interface + Consume func(amount Gas, descriptor string) error + Consumed func() Gas + Limit func() Gas + Refund func(amount Gas, descriptor string) error + Remaining func() Gas + type Service interface + GasConfig func(ctx context.Context) GasConfig + GasMeter func(context.Context) Meter