package
0.0.0-20220328184738-3922e60573cf
Repository: https://github.com/gattaca-com/oracle-evm.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
CalculateFunctionSelector returns the 4 byte function selector that results from [functionSignature] Ex.
CheckConfigure checks if [config] is activated by the transition from block at [parentTimestamp] to [currentTimestamp].
createNativeGetPriceerPrecompile returns a StatefulPrecompiledContract with R/W control of an allow list at [precompileAddr] and a native coin GetPriceer.
PackGetPriceInput packs [address] and [amount] into the appropriate arguments for GetPriceing operation.
UnpackGetPriceInput attempts to unpack [input] into the arguments to the GetPrice precompile assumes that [input] does not include selector (omits first 4 bytes in PackGetPriceInput).
No description provided by the author

# Constants

Gas costs for stateful precompiles.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
Designated addresses of stateful precompiles Note: it is important that none of these addresses conflict with each other or any other precompiles in core/vm/contracts.go.
Singleton StatefulPrecompiledContract for GetPriceing native assets by permissioned callers.
No description provided by the author
No description provided by the author
Designated addresses of stateful precompiles Note: it is important that none of these addresses conflict with each other or any other precompiles in core/vm/contracts.go.

# Structs

PriceOracleConfig wraps [AllowListConfig] and uses it to implement the StatefulPrecompileConfig interface while adding in the contract deployer specific precompile address.

# Interfaces

PrecompileAccessibleState defines the interface exposed to stateful precompile contracts.
StateDB is the interface for accessing EVM state.
StatefulPrecompileConfig defines the interface for a stateful precompile to.
StatefulPrecompiledContract is the interface for executing a precompiled contract.

# Type aliases

No description provided by the author
No description provided by the author