CircuitContext
@midnight-ntwrk/compact-runtime v0.9.0
@midnight-ntwrk/compact-runtime / CircuitContext
Interface: CircuitContext<T>
The external information accessible from within a Compact circuit call
Type Parameters​
T​
T
Properties​
currentPrivateState​
currentPrivateState: T;
The current private state for the contract.
currentZswapLocalState​
currentZswapLocalState: EncodedZswapLocalState;
The current Zswap local state. Tracks inputs and outputs produced during circuit execution.
originalState​
originalState: ContractState;
The original contract state the circuit call was started at.
transactionContext​
transactionContext: QueryContext;
The current on-chain context the transaction is evolving.