Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / GenLocalStateArgs

Interface: GenLocalStateArgs

Defined in: utils/interfaces.ts:523

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

The number of blocks to fetch per batch


coordinatorPrivateKey?

optional coordinatorPrivateKey: string

Defined in: utils/interfaces.ts:547

The private key of the MACI coordinator


endBlock?

optional endBlock: number

Defined in: utils/interfaces.ts:557

The end block number


ethereumProvider?

optional ethereumProvider: string

Defined in: utils/interfaces.ts:552

The ethereum provider


ipfsMessageBackupFiles?

optional ipfsMessageBackupFiles: string[]

Defined in: utils/interfaces.ts:582

Backup files for ipfs messages (name format: ipfsHash.json)


maciAddress?

optional maciAddress: string

Defined in: utils/interfaces.ts:542

The address of the MACI contract


outputPath

outputPath: string

Defined in: utils/interfaces.ts:527

The path where to write the state


pollId

pollId: bigint

Defined in: utils/interfaces.ts:532

The id of the poll


quiet?

optional quiet: boolean

Defined in: utils/interfaces.ts:587

Whether to log the output


signer

signer: Signer

Defined in: utils/interfaces.ts:537

A signer object


sleep?

optional sleep: number

Defined in: utils/interfaces.ts:577

The sleep time between batches


startBlock?

optional startBlock: number

Defined in: utils/interfaces.ts:562

The start block number


transactionHash?

optional transactionHash: string

Defined in: utils/interfaces.ts:572

The transaction hash