@midnight-ntwrk/compact-runtime v0.6.13 • Readme | API
@midnight-ntwrk/compact-runtime v0.6.13 / WitnessContext
Type alias: WitnessContext<L, T>
type WitnessContext<L, T>: {
contractAddress: string;
ledger: L;
privateState: T;
};
The external information accessible from within a Compact witness call
Type parameters
• L
• T
Type declaration
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