Skip to content

nooschain v0.1.0


nooschain / contracts/host-api / ContractExecutionContext

Interface: ContractExecutionContext

Defined in: contracts/host-api.ts:33

Properties

blockHeight

blockHeight: string

Defined in: contracts/host-api.ts:40


callDepth?

optional callDepth?: number

Defined in: contracts/host-api.ts:44


caller

caller: ContractActor | ResolvedTransactionActor

Defined in: contracts/host-api.ts:35


callStack?

optional callStack?: object[]

Defined in: contracts/host-api.ts:45

contractId

contractId: string

method

method: string


contract

contract: ContractActor

Defined in: contracts/host-api.ts:36


contractId

contractId: string

Defined in: contracts/host-api.ts:37


database

database: ChainDatabase

Defined in: contracts/host-api.ts:34


manifestMethod

manifestMethod: object

Defined in: contracts/host-api.ts:41

abi?

optional abi?: object

abi.description?

optional description?: string

abi.events

events: object[]

abi.input?

optional input?: ContractAbiValue

abi.output?

optional output?: ContractAbiValue

buckets

buckets: object[]

entrypoint

entrypoint: string = contractMethodNameSchema

invoke

invoke: object = contractMethodInvokePolicySchema

invoke.allow

allow: ({ principalType: "anyUser"; } | { principalType: "anyContract"; } | { principalType: "any"; } | { principalType: "system"; } | { principalId: string; principalType: "user"; } | { principalId: string; principalType: "organization"; } | { principalId: string; principalType: "contract"; })[]

maxFuel?

optional maxFuel?: number


method

method: string

Defined in: contracts/host-api.ts:38


protocolContext

protocolContext: ProtocolExecutionContext

Defined in: contracts/host-api.ts:42


rootCaller?

optional rootCaller?: ResolvedTransactionActor

Defined in: contracts/host-api.ts:43


transactionHash

transactionHash: string

Defined in: contracts/host-api.ts:39

Audience-first NOOSChain documentation.