builtin

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Params       = &paramsContract{mustLoadContract("Params")}
	Meter        = &erc20Contract{mustLoadContract("Meter")}              // erc20 contract 0x0000000000000000000000000000004d65746572
	MeterGov     = &erc20Contract{mustLoadContract("MeterGov")}           // erc20 contract 0x0000000000000000000000004d65746572476f76
	MeterTracker = &meterTrackerContract{mustLoadContract("MeterNative")} // native call contract 0x0000000000000000004d657465724e6174697665
	Executor     = &executorContract{mustLoadContractAddress("Executor",
		meter.InitialExecutorAccount)} //set the excutor address
	Prototype = &prototypeContract{mustLoadContract("Prototype")}
	Extension = &extensionContract{mustLoadContract("Extension")}
	Measure   = mustLoadContract("Measure")
)

Builtin contracts binding.

Functions

func FindNativeCall

func FindNativeCall(to meter.Address, input []byte) (*abi.Method, func(*xenv.Environment) []interface{}, bool)

FindNativeCall find native calls.

func GetContractABI

func GetContractABI(name string) *abi.ABI

func GetContractABIForNewMeterNative added in v1.2.0

func GetContractABIForNewMeterNative() *abi.ABI

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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