Documentation
¶
Index ¶
Constants ¶
const ConfigKey = "txAllowListConfig"
ConfigKey is the key used in json config files to specify this precompile config. must be unique across all precompiles.
Variables ¶
var ContractAddress = common.HexToAddress("0x0200000000000000000000000000000000000002")
var Module = modules.Module{ ConfigKey: ConfigKey, Address: ContractAddress, Contract: TxAllowListPrecompile, Configurator: &configurator{}, }
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.
func (*Config) Equal ¶
func (c *Config) Equal(cfg precompileconfig.Config) bool
Equal returns true if [cfg] is a [*TxAllowListConfig] and it has been configured identical to [c].
func (*Config) Verify ¶ added in v0.5.4
func (c *Config) Verify(chainConfig precompileconfig.ChainConfig) error