Skip to main content
Version: v2.x

Minimal Anti Collusion Infrastructure (MACI) / GenLocalStateArgs

Interface: GenLocalStateArgs

Defined in: utils/interfaces.ts:497

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

The number of blocks to fetch per batch


coordinatorPrivateKey?

optional coordinatorPrivateKey: string

Defined in: utils/interfaces.ts:521

The private key of the MACI coordinator


endBlock?

optional endBlock: number

Defined in: utils/interfaces.ts:531

The end block number


ethereumProvider?

optional ethereumProvider: string

Defined in: utils/interfaces.ts:526

The ethereum provider


maciAddress?

optional maciAddress: string

Defined in: utils/interfaces.ts:516

The address of the MACI contract


outputPath

outputPath: string

Defined in: utils/interfaces.ts:501

The path where to write the state


pollId

pollId: bigint

Defined in: utils/interfaces.ts:506

The id of the poll


quiet?

optional quiet: boolean

Defined in: utils/interfaces.ts:556

Whether to log the output


signer

signer: Signer

Defined in: utils/interfaces.ts:511

A signer object


sleep?

optional sleep: number

Defined in: utils/interfaces.ts:551

The sleep time between batches


startBlock?

optional startBlock: number

Defined in: utils/interfaces.ts:536

The start block number


transactionHash?

optional transactionHash: string

Defined in: utils/interfaces.ts:546

The transaction hash