# Functions
CalculateFunctionSelector returns the 4 byte function selector that results from [functionSignature] Ex.
DeductGas checks if [suppliedGas] is sufficient against [requiredGas] and deducts [requiredGas] from [suppliedGas].
NewMockAccessibleState creates a new mock instance.
NewMockBlockContext creates a new mock instance.
NewMockStateDB creates a new mock instance.
NewStatefulPrecompileContract generates new StatefulPrecompile using [functions] as the available functions and [fallback] as an optional fallback if there is no input data.
NewStatefulPrecompileFunction creates a stateful precompile function with the given arguments.
No description provided by the author
ParseABI parses the given ABI string and returns the parsed ABI.
# Constants
from params/protocol_params.go.
from params/protocol_params.go.
from params/protocol_params.go.
Gas costs for stateful precompiles.
No description provided by the author
Gas costs for stateful precompiles.
# Structs
MockAccessibleState is a mock of AccessibleState interface.
MockAccessibleStateMockRecorder is the mock recorder for MockAccessibleState.
MockBlockContext is a mock of BlockContext interface.
MockBlockContextMockRecorder is the mock recorder for MockBlockContext.
MockStateDB is a mock of StateDB interface.
MockStateDBMockRecorder is the mock recorder for MockStateDB.
StatefulPrecompileFunction defines a function implemented by a stateful precompile.
# Interfaces
AccessibleState defines the interface exposed to stateful precompile contracts.
No description provided by the author
ConfigurationBlockContext defines the interface required to configure a precompile.
No description provided by the author
StateDB is the interface for accessing EVM state.
StatefulPrecompiledContract is the interface for executing a precompiled contract.
# Type aliases
ActivationFunc defines a function that is used to determine if a function is active The return value is whether or not the function is active.
No description provided by the author