Skip to main content
Version: v2.x

Minimal Anti Collusion Infrastructure (MACI) / IGenerateProofsOptions

Interface: IGenerateProofsOptions

Defined in: packages/contracts/build/tasks/helpers/types.d.ts:255

Interface that represents generate proof options

Properties

onBatchComplete()?

optional onBatchComplete: (data) => void

Defined in: packages/contracts/build/tasks/helpers/types.d.ts:261

Hook to call when batch generation is completed

Parameters

data

IGenerateProofsBatchData

batch data

Returns

void


onComplete()?

optional onComplete: (data, tally?) => void

Defined in: packages/contracts/build/tasks/helpers/types.d.ts:268

Hook to call when proof generation is completed

Parameters

data

Proof[]

proof generated data

tally?

TallyData

tally data

Returns

void


onFail()?

optional onFail: (error) => void

Defined in: packages/contracts/build/tasks/helpers/types.d.ts:274

Hook to call when generation is failed

Parameters

error

Error

error

Returns

void