precompile

package
v2.0.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2025 License: GPL-3.0, LGPL-3.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL