Skip to main content

@midnight-ntwrk/midnight-js-contracts v0.2.5 • API


Midnight.js API Reference v0.2.5 / @midnight-ntwrk/midnight-js-contracts / ImpureCircuit

Type alias: ImpureCircuit<PS>

ImpureCircuit<PS>: (context, ...args) => CircuitResults<PS, any>

A circuit which affects the public state.

Type parameters

PS

The private state modified by the contract witnesses.

Parameters

context: CircuitContext<PS>

• ...args: any[]

Returns

CircuitResults<PS, any>