package
0.6.10
Repository: https://github.com/ava-labs/subnet-evm.git
Documentation: pkg.go.dev

# Functions

DisableRewardAddress disables rewards and burns them by sending to Blackhole Address.
EnableAllowFeeRecipients enables fee recipients.
GetRewardManagerAllowListStatus returns the role of [address] for the RewardManager list.
GetStoredRewardAddress returns the current value of the address stored under rewardAddressStorageKey.
NewConfig returns a config for a network upgrade at [blockTimestamp] that enables RewardManager with the given [admins], [enableds] and [managers] as members of the allowlist with [initialConfig] as initial rewards config if specified.
NewDisableConfig returns config for a network upgrade at [blockTimestamp] that disables RewardManager.
PackAllowFeeRecipients packs the function selector (first 4 func signature bytes).
PackAreFeeRecipientsAllowed packs the include selector (first 4 func signature bytes).
PackAreFeeRecipientsAllowedOutput attempts to pack given isAllowed of type bool to conform the ABI outputs.
PackCurrentRewardAddress packs the include selector (first 4 func signature bytes).
PackCurrentRewardAddressOutput attempts to pack given rewardAddress of type common.Address to conform the ABI outputs.
PackDisableRewards packs the include selector (first 4 func signature bytes).
PackFeeRecipientsAllowedEvent packs the event into the appropriate arguments for FeeRecipientsAllowed.
PackRewardAddressChangedEvent packs the event into the appropriate arguments for RewardAddressChanged.
PackRewardsDisabledEvent packs the event into the appropriate arguments for RewardsDisabled.
PackSetRewardAddress packs [addr] of type common.Address into the appropriate arguments for setRewardAddress.
SetRewardManagerAllowListStatus sets the permissions of [address] to [role] for the RewardManager list.
StoredRewardAddress stores the given [val] under rewardAddressStorageKey.
UnpackSetRewardAddressInput attempts to unpack [input] into the common.Address type argument assumes that [input] does not include selector (omits first 4 func signature bytes) if [useStrictMode] is true, it will return an error if the length of [input] is not divisible by 32.

# Constants

write 1 slot + read allow list.
No description provided by the author
ConfigKey is the key used in json config files to specify this precompile config.
No description provided by the author
write 1 slot + read allow list.
FeeRecipientsAllowedEventGasCost is the gas cost of the FeeRecipientsAllowed event.
RewardAddressChangedEventGasCost is the gas cost of the RewardAddressChanged event.
RewardsDisabledEventGasCost is the gas cost of the RewardsDisabled event.
write 1 slot + read allow list.

# Variables

No description provided by the author
Singleton StatefulPrecompiledContract and signatures.
Singleton StatefulPrecompiledContract and signatures.
Singleton StatefulPrecompiledContract and signatures.
Singleton StatefulPrecompiledContract and signatures.
Singleton StatefulPrecompiledContract and signatures.
Singleton StatefulPrecompiledContract and signatures.
Singleton StatefulPrecompiledContract and signatures.
Module is the precompile module.
Singleton StatefulPrecompiledContract and signatures.
will be initialized by init function.
RewardManagerRawABI contains the raw ABI of RewardManager contract.go:embed contract.abi.

# Structs

Config implements the StatefulPrecompileConfig interface while adding in the RewardManager specific precompile config.
No description provided by the author