lp176
LP176 implements the fee logic specified here: https://github.com/luxfi/lps/blob/main/LPs/176-dynamic-evm-gas-limit-and-price-discovery-updates/README.md
import "github.com/luxfi/node/vms/evm/lp176"LP176 implements the fee logic specified here: https://github.com/luxfi/lps/blob/main/LPs/176-dynamic-evm-gas-limit-and-price-discovery-updates/README.md
Functions
DesiredTargetExcess
func DesiredTargetExcess(desiredTarget gas.Gas) gas.GasDesiredTargetExcess calculates the optimal desiredTargetExcess given the desired target.
Types
State
State represents the current state of the gas pricing and constraints.
func ParseState(bytes []byte) (State, error)func (s *State) AdvanceTime(seconds uint64)func (s *State) Bytes() []bytefunc (s *State) ConsumeGas(
gasUsed uint64,
extraGasUsed *big.Int,
) errorfunc (s *State) GasPrice() gas.Pricefunc (s *State) MaxCapacity() gas.Gasfunc (s *State) Target() gas.Gasfunc (s *State) UpdateTargetExcess(desiredTargetExcess gas.Gas)