Skip to main content
Version: v2.x

Minimal Anti Collusion Infrastructure (MACI) / IGenerateMaciStateArgs

Interface: IGenerateMaciStateArgs

Defined in: packages/sdk/ts/maci/types.ts:156

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: packages/sdk/ts/maci/types.ts:200

The number of blocks to fetch per batch


coordinatorPrivateKey

coordinatorPrivateKey: string

Defined in: packages/sdk/ts/maci/types.ts:175

The private key of the MACI coordinator


endBlock?

optional endBlock: number

Defined in: packages/sdk/ts/maci/types.ts:195

The end block number


ipfsMessageBackupFiles?

optional ipfsMessageBackupFiles: string[]

Defined in: packages/sdk/ts/maci/types.ts:215

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


maciAddress

maciAddress: string

Defined in: packages/sdk/ts/maci/types.ts:170

The address of the MACI contract


outputPath?

optional outputPath: string

Defined in: packages/sdk/ts/maci/types.ts:185

The path where to write the state


pollId

pollId: bigint

Defined in: packages/sdk/ts/maci/types.ts:160

The id of the poll


provider?

optional provider: string

Defined in: packages/sdk/ts/maci/types.ts:180

The ethereum provider


signer

signer: Signer

Defined in: packages/sdk/ts/maci/types.ts:165

A signer object


sleep?

optional sleep: number

Defined in: packages/sdk/ts/maci/types.ts:210

The sleep time between batches


startBlock?

optional startBlock: number

Defined in: packages/sdk/ts/maci/types.ts:190

The start block number


transactionHash?

optional transactionHash: string

Defined in: packages/sdk/ts/maci/types.ts:205

The transaction hash