Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / IGenerateProofsOptions

Interface: IGenerateProofsOptions

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

Interface that represents generate proof options

Properties

onBatchComplete()?

optional onBatchComplete: (data) => void

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

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:276

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:282

Hook to call when generation is failed

Parameters

error

Error

error

Returns

void