vmcontext

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Caller                *prototype.AccountName
	CallingContractOwner  *prototype.AccountName
	CallingContractName   string
	CallingContractMethod string
	Owner                 *prototype.AccountName
	Contract              string
	Method                string
	Params                string
	ParamsData            []byte
	Amount                *prototype.Coin
	Gas                   uint64
	Construct             bool
	Code                  []byte
	CodeHash              *prototype.Sha256
	Abi                   string
	AbiInterface          abi.IContractABI
	Tables                *table.ContractTables
	Injector              vminjector.Injector
}

func NewContextFromApplyOp

func NewContextFromApplyOp(op *prototype.ContractApplyOperation, params []byte, code []byte, codeHash *prototype.Sha256, abi abi.IContractABI, tables *table.ContractTables, injector vminjector.Injector,
) *Context

func NewContextFromDeployOp

func NewContextFromDeployOp(op *prototype.ContractDeployOperation, code []byte, abiString string, injector vminjector.Injector) *Context

func NewContextFromInternalApplyOp

func NewContextFromInternalApplyOp(op *prototype.InternalContractApplyOperation, code []byte, codeHash *prototype.Sha256, abi abi.IContractABI, tables *table.ContractTables, injector vminjector.Injector,
) *Context

type ContractName

type ContractName string

Jump to

Keyboard shortcuts

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