Skip to main content
Version: v2.x

Minimal Anti Collusion Infrastructure (MACI) / GenLocalStateArgs

Interface: GenLocalStateArgs

Defined in: utils/interfaces.ts:517

Interface for the arguments to the genLocalState command Generate a local MACI state from the smart contracts events

Properties

blockPerBatch?

optional blockPerBatch: number

Defined in: utils/interfaces.ts:561

The number of blocks to fetch per batch


coordinatorPrivateKey?

optional coordinatorPrivateKey: string

Defined in: utils/interfaces.ts:541

The private key of the MACI coordinator


endBlock?

optional endBlock: number

Defined in: utils/interfaces.ts:551

The end block number


ethereumProvider?

optional ethereumProvider: string

Defined in: utils/interfaces.ts:546

The ethereum provider


maciAddress?

optional maciAddress: string

Defined in: utils/interfaces.ts:536

The address of the MACI contract


outputPath

outputPath: string

Defined in: utils/interfaces.ts:521

The path where to write the state


pollId

pollId: bigint

Defined in: utils/interfaces.ts:526

The id of the poll


quiet?

optional quiet: boolean

Defined in: utils/interfaces.ts:576

Whether to log the output


signer

signer: Signer

Defined in: utils/interfaces.ts:531

A signer object


sleep?

optional sleep: number

Defined in: utils/interfaces.ts:571

The sleep time between batches


startBlock?

optional startBlock: number

Defined in: utils/interfaces.ts:556

The start block number


transactionHash?

optional transactionHash: string

Defined in: utils/interfaces.ts:566

The transaction hash