Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / generateMaciStateFromContract

Variable: generateMaciStateFromContract()

const generateMaciStateFromContract: ({ provider, address, coordinatorKeypair, pollId, fromBlock, blocksPerRequest, endBlock, sleepAmount, ipfsMessageBackupFiles, logsOutputPath, }) => Promise<MaciState>

Defined in: packages/contracts/build/ts/generateMaciState.d.ts:17

Generate a MaciState object from the events of a MACI and Poll smart contracts

Parameters

{ provider, address, coordinatorKeypair, pollId, fromBlock, blocksPerRequest, endBlock, sleepAmount, ipfsMessageBackupFiles, logsOutputPath, }

IGenMaciStateFromContractArgs

Returns

Promise<MaciState>

an instance of MaciState