@midnight-ntwrk/compact-runtime v0.7.0 • Readme | API
@midnight-ntwrk/compact-runtime v0.7.0 / WitnessContext
Interface: WitnessContext<L, T>
The external information accessible from within a Compact witness call
Type parameters
• L
• T
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: T;
The current private state for the contract