Versions in this module Expand all Collapse all v0 v0.6.3 May 17, 2024 Changes in this version + const ConfigKey + const FeeConfigChangedEventGasCost + const GetFeeConfigGasCost + const GetLastChangedAtGasCost + const SetFeeConfigGasCost + var ContractAddress = common.HexToAddress("0x0200000000000000000000000000000000000003") + var ErrCannotChangeFee = errors.New("non-enabled cannot change fee config") + var ErrInvalidLen = errors.New("invalid input length for fee config Input") + var FeeManagerABI = contract.ParseABI(FeeManagerRawABI) + var FeeManagerPrecompile contract.StatefulPrecompiledContract = createFeeManagerPrecompile() + var FeeManagerRawABI string + var Module = modules.Module + func GetFeeConfigLastChangedAt(stateDB contract.StateDB) *big.Int + func GetFeeManagerStatus(stateDB contract.StateDB, address common.Address) allowlist.Role + func GetStoredFeeConfig(stateDB contract.StateDB) commontype.FeeConfig + func PackFeeConfigChangedEvent(sender common.Address, oldConfig commontype.FeeConfig, ...) ([]common.Hash, []byte, error) + func PackGetFeeConfig() ([]byte, error) + func PackGetFeeConfigLastChangedAt() ([]byte, error) + func PackGetFeeConfigLastChangedAtOutput(blockNumber *big.Int) ([]byte, error) + func PackGetFeeConfigOutput(output commontype.FeeConfig) ([]byte, error) + func PackSetFeeConfig(input commontype.FeeConfig) ([]byte, error) + func SetFeeManagerStatus(stateDB contract.StateDB, address common.Address, role allowlist.Role) + func StoreFeeConfig(stateDB contract.StateDB, feeConfig commontype.FeeConfig, ...) error + func UnpackFeeConfigChangedEventData(dataBytes []byte) (commontype.FeeConfig, commontype.FeeConfig, error) + func UnpackGetFeeConfigLastChangedAtOutput(output []byte) (*big.Int, error) + func UnpackGetFeeConfigOutput(output []byte, skipLenCheck bool) (commontype.FeeConfig, error) + func UnpackSetFeeConfigInput(input []byte, useStrictMode bool) (commontype.FeeConfig, error) + type Config struct + InitialFeeConfig *commontype.FeeConfig + func NewConfig(blockTimestamp *uint64, admins []common.Address, enableds []common.Address, ...) *Config + func NewDisableConfig(blockTimestamp *uint64) *Config + func (*Config) Key() string + func (c *Config) Equal(cfg precompileconfig.Config) bool + func (c *Config) Verify(chainConfig precompileconfig.ChainConfig) error + type FeeConfigABIStruct struct + BaseFeeChangeDenominator *big.Int + BlockGasCostStep *big.Int + GasLimit *big.Int + MaxBlockGasCost *big.Int + MinBaseFee *big.Int + MinBlockGasCost *big.Int + TargetBlockRate *big.Int + TargetGas *big.Int v0.6.3-rc.1 May 19, 2024