Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrecompileModule ¶
type PrecompileModule interface {
// Address returns the address of the precompile
Address() common.Address
// Contract returns the precompile contract
Contract() interface{}
// Configurator returns the configurator for this precompile
Configurator() interface{}
// DefaultConfig returns the default config for this precompile
DefaultConfig() interface{}
// MakeConfig creates a new config instance
MakeConfig() interface{}
// ConfigKey returns the configuration key for this module
ConfigKey() string
}
PrecompileModule represents a precompile module
type PrecompileRegistry ¶
type PrecompileRegistry interface {
// GetPrecompileModule returns a precompile module by key
GetPrecompileModule(key string) (PrecompileModule, bool)
// GetPrecompileModuleByAddress returns a precompile module by address
GetPrecompileModuleByAddress(address common.Address) (PrecompileModule, bool)
// RegisteredModules returns all registered modules
RegisteredModules() []PrecompileModule
}
PrecompileRegistry manages precompile modules
Directories
¶
| Path | Synopsis |
|---|---|
|
Defines the interface for the configuration and execution of a precompile contract
|
Defines the interface for the configuration and execution of a precompile contract |
|
contracts
|
|
|
Package modules provides backward compatibility aliases for the registry package.
|
Package modules provides backward compatibility aliases for the registry package. |
|
Defines the stateless interface for unmarshalling an arbitrary config of a precompile
|
Defines the stateless interface for unmarshalling an arbitrary config of a precompile |
|
Module to facilitate the registration of precompiles and their configuration.
|
Module to facilitate the registration of precompiles and their configuration. |
Click to show internal directories.
Click to hide internal directories.