Skip to main content

WitnessContext

@midnight-ntwrk/compact-runtime v0.14.0


@midnight-ntwrk/compact-runtime / WitnessContext

Interface: WitnessContext<L, PS>

The external information accessible from within a Compact witness call

Type Parameters​

L​

L = any

PS​

PS = any

Properties​

contractAddress​

readonly contractAddress: string;

The address of the contract being called


ledger​

readonly ledger: L;

The projected ledger state, if the transaction were to run against the ledger state as you locally see it currently


privateState​

readonly privateState: PS;

The current private state for the contract