Documentation ¶
Index ¶
Constants ¶
View Source
const ConfigKey = "txAllowListConfig"
ConfigKey is the key used in json config files to specify this precompile config. must be unique across all precompiles.
Variables ¶
View Source
var ContractAddress = common.HexToAddress("0x0200000000000000000000000000000000000002")
View Source
var Module = modules.Module{ ConfigKey: ConfigKey, Address: ContractAddress, Contract: TxAllowListPrecompile, Configurator: &configurator{}, }
View Source
var TxAllowListPrecompile contract.StatefulPrecompiledContract = allowlist.CreateAllowListPrecompile(ContractAddress)
Singleton StatefulPrecompiledContract for W/R access to the tx allow list.
Functions ¶
func GetTxAllowListStatus ¶
GetTxAllowListStatus returns the role of [address] for the tx allow list.
Types ¶
type Config ¶
type Config struct { allowlist.AllowListConfig precompileconfig.Upgrade }
Config implements the StatefulPrecompileConfig interface while adding in the TxAllowList specific precompile config.
func NewConfig ¶
NewConfig returns a config for a network upgrade at [blockTimestamp] that enables TxAllowList with the given [admins] and [enableds] as members of the allowlist.
func NewDisableConfig ¶
NewDisableConfig returns config for a network upgrade at [blockTimestamp] that disables TxAllowList.
Click to show internal directories.
Click to hide internal directories.