Skip to main content

CircuitContext

@midnight-ntwrk/compact-runtime v0.14.0


@midnight-ntwrk/compact-runtime / CircuitContext

Interface: CircuitContext<PS>

The external information accessible from within a Compact circuit call

Type Parameters​

PS​

PS = any

Properties​

costModel​

costModel: CostModel;

The cost model to use for the execution.


currentPrivateState​

currentPrivateState: PS;

The current private state for the contract.


currentQueryContext​

currentQueryContext: QueryContext;

The current on-chain context the transaction is evolving.


currentZswapLocalState​

currentZswapLocalState: EncodedZswapLocalState;

The current Zswap local state. Tracks inputs and outputs produced during circuit execution.


gasLimit?​

optional gasLimit: RunningCost;

The gas limit for this circuit.