Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllGenesisPrecompiles ¶ added in v0.8.33
func AllGenesisPrecompiles() map[string]interface{}
AllGenesisPrecompiles returns a map of all registered precompile configs configured for genesis activation (timestamp = 0). This is used to populate the genesisPrecompiles field in ChainConfig for deterministic genesis hash.
func RegisterModule ¶
RegisterModule registers a stateful precompile module
func ReservedAddress ¶
ReservedAddress returns true if [addr] is in a reserved range for custom precompiles
Types ¶
type Module ¶
type Module struct {
// ConfigKey is the key used in json config files to specify this precompile config.
ConfigKey string
// Address returns the address where the stateful precompile is accessible.
Address common.Address
// Contract returns a thread-safe singleton that can be used as the StatefulPrecompiledContract when
// this config is enabled.
Contract contract.StatefulPrecompiledContract
// Configurator is used to configure the stateful precompile when the config is enabled.
contract.Configurator
}
func GetPrecompileModule ¶
func RegisteredModules ¶
func RegisteredModules() []Module
Click to show internal directories.
Click to hide internal directories.