evmimpl

package
v0.5.0-alpha.12-hotfix-1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Processor = evm.Contract.Processor(initialize,
	evm.FuncOpenBlockContext.WithHandler(restricted(openBlockContext)),
	evm.FuncCloseBlockContext.WithHandler(restricted(closeBlockContext)),
	evm.FuncSendTransaction.WithHandler(restricted(applyTransaction)),
	evm.FuncEstimateGas.WithHandler(restricted(estimateGas)),
	evm.FuncRegisterERC20NativeToken.WithHandler(restricted(registerERC20NativeToken)),
	evm.FuncRegisterERC20NativeTokenOnRemoteChain.WithHandler(restricted(registerERC20NativeTokenOnRemoteChain)),
	evm.FuncRegisterERC20ExternalNativeToken.WithHandler(registerERC20ExternalNativeToken),
	evm.FuncRegisterERC721NFTCollection.WithHandler(restricted(registerERC721NFTCollection)),

	evm.FuncGetBalance.WithHandler(restrictedView(getBalance)),
	evm.FuncCallContract.WithHandler(restrictedView(callContract)),
	evm.FuncGetNonce.WithHandler(restrictedView(getNonce)),
	evm.FuncGetReceipt.WithHandler(restrictedView(getReceipt)),
	evm.FuncGetCode.WithHandler(restrictedView(getCode)),
	evm.FuncGetBlockNumber.WithHandler(restrictedView(getBlockNumber)),
	evm.FuncGetBlockByNumber.WithHandler(restrictedView(getBlockByNumber)),
	evm.FuncGetBlockByHash.WithHandler(restrictedView(getBlockByHash)),
	evm.FuncGetTransactionByHash.WithHandler(restrictedView(getTransactionByHash)),
	evm.FuncGetTransactionByBlockHashAndIndex.WithHandler(restrictedView(getTransactionByBlockHashAndIndex)),
	evm.FuncGetTransactionByBlockNumberAndIndex.WithHandler(restrictedView(getTransactionByBlockNumberAndIndex)),
	evm.FuncGetTransactionCountByBlockHash.WithHandler(restrictedView(getTransactionCountByBlockHash)),
	evm.FuncGetTransactionCountByBlockNumber.WithHandler(restrictedView(getTransactionCountByBlockNumber)),
	evm.FuncGetStorage.WithHandler(restrictedView(getStorage)),
	evm.FuncGetLogs.WithHandler(restrictedView(getLogs)),
	evm.FuncGetChainID.WithHandler(restrictedView(getChainID)),
	evm.FuncGetERC20ExternalNativeTokenAddress.WithHandler(restrictedView(viewERC20ExternalNativeTokenAddress)),
)

Functions

This section is empty.

Types

type RunFunc

type RunFunc func(evm *vm.EVM, caller vm.ContractRef, input []byte, gas uint64, readOnly bool) []byte

Jump to

Keyboard shortcuts

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