Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Target gas.Gas `json:"target"` MinPrice gas.Price `json:"minPrice"` ExcessConversionConstant gas.Gas `json:"excessConversionConstant"` }
Config contains all the static parameters of the dynamic fee mechanism.
type State ¶
State represents the current on-chain values used in the dynamic fee mechanism.
func (State) AdvanceTime ¶
AdvanceTime adds (s.Current - target) * seconds to Excess.
If Excess would underflow, it is set to 0. If Excess would overflow, it is set to MaxUint64.
Click to show internal directories.
Click to hide internal directories.