Versions in this module Expand all Collapse all v0 v0.5.6 Jul 16, 2024 v0.0.1 Jun 28, 2024 Changes in this version + const ConfigKey + const GetFeeConfigGasCost + const GetLastChangedAtGasCost + const SetFeeConfigGasCost + var ContractAddress = common.HexToAddress("0x0200000000000000000000000000000000000003") + var ErrCannotChangeFee = errors.New("non-enabled cannot change fee config") + var FeeManagerPrecompile contract.StatefulPrecompiledContract = createFeeManagerPrecompile() + 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 PackFeeConfig(feeConfig commontype.FeeConfig) ([]byte, error) + func PackGetFeeConfigInput() []byte + func PackGetLastChangedAtInput() []byte + func PackSetFeeConfig(feeConfig 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 UnpackFeeConfigInput(input []byte) (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