native

package module
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNative

func IsNative(contractName string, txType commonPb.TxType) bool

func IsNativeContract

func IsNativeContract(contractName string) bool

IsNativeContract return is native contract name

func IsNativeTxType

func IsNativeTxType(txType commonPb.TxType) bool

TODO: Devin: Remove it IsNativeTxType return is native contract supported transaction type

Types

type RuntimeInstance

type RuntimeInstance struct {
	// contains filtered or unexported fields
}

func GetRuntimeInstance

func GetRuntimeInstance(chainId string, defaultGas uint64) *RuntimeInstance

GetRuntimeInstance get singleton RuntimeInstance

func (*RuntimeInstance) Invoke

func (r *RuntimeInstance) Invoke(contract *commonPb.Contract, methodName string, _ []byte, parameters map[string][]byte,
	txContext protocol.TxSimContext) *commonPb.ContractResult

Invoke verify and run Contract method

Jump to

Keyboard shortcuts

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