Skip to main content

V1ContractRef

HardKAS SDK


HardKAS SDK / tx-builder/src / V1ContractRef

Interface: V1ContractRef

Defined in: packages/tx-builder/src/v1-plan.ts:40

The contract an input unlocks: its sealed compile record, the entry called and its arguments.

Properties​

args​

readonly args: readonly V1ArgValue[]

Defined in: packages/tx-builder/src/v1-plan.ts:58


compileRecord​

readonly compileRecord: object

Defined in: packages/tx-builder/src/v1-plan.ts:41

artifactSha256​

readonly artifactSha256: string

contentHash​

readonly contentHash: string

path?​

readonly optional path?: string


constructorArgs​

readonly constructorArgs: readonly V1ArgValue[]

Defined in: packages/tx-builder/src/v1-plan.ts:44

The constructor arguments of the compile record (checked against the record's digest, reproduced by silverc).


contract​

readonly contract: string

Defined in: packages/tx-builder/src/v1-plan.ts:42


entry​

readonly entry: string

Defined in: packages/tx-builder/src/v1-plan.ts:55

The ABI entry the unlock calls. For a covenant input: the generated entry of its declaration (auth: __covenant_entrypoint_auth_<policy>; cov: the leader entry at the group's first input, the delegate entry at the others).


policy?​

readonly optional policy?: string

Defined in: packages/tx-builder/src/v1-plan.ts:57

For a covenant input: the declaration (policy) of the transition (a delegate names its leader's).


state?​

readonly optional state?: Readonly<Record<string, V1ArgValue>>

Defined in: packages/tx-builder/src/v1-plan.ts:49

Phase 2 · the State the spent UTXO holds when it is not the compile record's own (a successor a transition created): the input is then locked to the record's template with this state encoded in it (silverscript-abi), every field given.