Module interface
Available on crate feature
evm only.Expand description
Interface for the precompiles. It contains the precompile result type, the precompile output type, and the precompile error type.
Structs§
- Default
Crypto - Default implementation of the Crypto trait using the existing crypto libraries.
- EthPrecompile
Output - Simple precompile execution output used by individual Ethereum precompile functions.
- Precompile
Output - Rich precompile execution output with gas accounting and status support.
Enums§
- Precompile
Error - Fatal precompile error type.
- Precompile
Halt - Non-fatal halt reasons for precompiles.
- Precompile
Status - Status of a precompile execution.
Traits§
- Crypto
- Crypto operations trait for precompiles.
Functions§
- call_
eth_ precompile - Calls a
PrecompileEthFnand wraps the result into aPrecompileOutput. - crypto
- Get the installed crypto provider, or the default if none is installed.
- install_
crypto - Install a custom crypto provider globally.
Type Aliases§
- EthPrecompile
Result - A precompile operation result type for individual Ethereum precompile functions.
- Precompile
EthFn - Eth precompile function type. Takes input and gas limit, returns an Eth precompile result.
- Precompile
Fn - Precompile function type. Takes input, gas limit and reservoir, returns a
PrecompileResult. - Precompile
Result - A precompile operation result type for the precompile provider.