Documentation
¶
Overview ¶
Package legacy provides converters between legacy types and their refactored equivalents.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrecompiledStatefulContract ¶
type PrecompiledStatefulContract func(env vm.PrecompileEnvironment, input []byte, suppliedGas uint64) (ret []byte, remainingGas uint64, err error)
PrecompiledStatefulContract is the legacy signature of vm.PrecompiledStatefulContract, which explicitly accepts and returns gas values. Instances SHOULD NOT use the vm.PrecompileEnvironment gas-management methods as this may result in unexpected behaviour.
func (PrecompiledStatefulContract) Upgrade ¶
func (c PrecompiledStatefulContract) Upgrade() vm.PrecompiledStatefulContract
Upgrade converts the legacy precompile signature into the now-required form.
Click to show internal directories.
Click to hide internal directories.