Versions in this module Expand all Collapse all v0 v0.6.3 May 17, 2024 Changes in this version + const AllowFeeRecipientsGasCost + const AreFeeRecipientsAllowedGasCost + const ConfigKey + const CurrentRewardAddressGasCost + const DisableRewardsGasCost + const FeeRecipientsAllowedEventGasCost + const RewardAddressChangedEventGasCost + const RewardsDisabledEventGasCost + const SetRewardAddressGasCost + var ContractAddress = common.HexToAddress("0x0200000000000000000000000000000000000004") + var ErrCannotAllowFeeRecipients = errors.New("non-enabled cannot call allowFeeRecipients") + var ErrCannotAreFeeRecipientsAllowed = errors.New("non-enabled cannot call areFeeRecipientsAllowed") + var ErrCannotCurrentRewardAddress = errors.New("non-enabled cannot call currentRewardAddress") + var ErrCannotDisableRewards = errors.New("non-enabled cannot call disableRewards") + var ErrCannotEnableBothRewards = errors.New("cannot enable both fee recipients and reward address at the same time") + var ErrCannotSetRewardAddress = errors.New("non-enabled cannot call setRewardAddress") + var ErrEmptyRewardAddress = errors.New("reward address cannot be empty") + var Module = modules.Module + var RewardManagerABI = contract.ParseABI(RewardManagerRawABI) + var RewardManagerPrecompile = createRewardManagerPrecompile() + var RewardManagerRawABI string + func DisableFeeRewards(stateDB contract.StateDB) + func EnableAllowFeeRecipients(stateDB contract.StateDB) + func GetRewardManagerAllowListStatus(stateDB contract.StateDB, address common.Address) allowlist.Role + func GetStoredRewardAddress(stateDB contract.StateDB) (common.Address, bool) + func PackAllowFeeRecipients() ([]byte, error) + func PackAreFeeRecipientsAllowed() ([]byte, error) + func PackAreFeeRecipientsAllowedOutput(isAllowed bool) ([]byte, error) + func PackCurrentRewardAddress() ([]byte, error) + func PackCurrentRewardAddressOutput(rewardAddress common.Address) ([]byte, error) + func PackDisableRewards() ([]byte, error) + func PackFeeRecipientsAllowedEvent(sender common.Address) ([]common.Hash, []byte, error) + func PackRewardAddressChangedEvent(sender common.Address, oldRewardAddress common.Address, ...) ([]common.Hash, []byte, error) + func PackRewardsDisabledEvent(sender common.Address) ([]common.Hash, []byte, error) + func PackSetRewardAddress(addr common.Address) ([]byte, error) + func SetRewardManagerAllowListStatus(stateDB contract.StateDB, address common.Address, role allowlist.Role) + func StoreRewardAddress(stateDB contract.StateDB, val common.Address) + func UnpackSetRewardAddressInput(input []byte, useStrictMode bool) (common.Address, error) + type Config struct + InitialRewardConfig *InitialRewardConfig + 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 InitialRewardConfig struct + AllowFeeRecipients bool + RewardAddress common.Address + func (i *InitialRewardConfig) Configure(state contract.StateDB) error + func (i *InitialRewardConfig) Equal(other *InitialRewardConfig) bool + func (i *InitialRewardConfig) Verify() error v0.6.3-rc.1 May 19, 2024