legacy

package
v1.13.14-0.3.0.rc.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: GPL-3.0 Imports: 3 Imported by: 2

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

Upgrade converts the legacy precompile signature into the now-required form.

Jump to

Keyboard shortcuts

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