Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / IGenerateProofsOptions

Interface: IGenerateProofsOptions

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

Interface that represents generate proof options

Properties​

onBatchComplete()?​

optional onBatchComplete: (data) => void

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

Hook to call when batch generation is completed

Parameters​

data​

IGenerateProofsBatchData

batch data

Returns​

void


onComplete()?​

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

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

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: contracts/build/tasks/helpers/types.d.ts:281

Hook to call when generation is failed

Parameters​

error​

Error

error

Returns​

void