Documentation
¶
Index ¶
- type Context
- func NewContextFromApplyOp(op *prototype.ContractApplyOperation, params []byte, code []byte, ...) *Context
- func NewContextFromDeployOp(op *prototype.ContractDeployOperation, code []byte, abiString string, ...) *Context
- func NewContextFromInternalApplyOp(op *prototype.InternalContractApplyOperation, code []byte, ...) *Context
- type ContractName
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
Click to show internal directories.
Click to hide internal directories.