Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / IPoll__factory

Class: IPoll__factory

Defined in: contracts/typechain-types/factories/contracts/interfaces/IPoll__factory.ts:391

Constructors

Constructor

new IPoll__factory(): IPoll__factory

Returns

IPoll__factory

Properties

abi

readonly static abi: readonly [{ inputs: readonly []; name: "actualStateTreeDepth"; outputs: readonly [{ internalType: "uint8"; name: ""; type: "uint8"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "coordinatorPublicKeyHash"; outputs: readonly [{ internalType: "uint256"; name: "_coordinatorPublicKeyHash"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "currentSbCommitment"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "endDate"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "getBatchHashes"; outputs: readonly [{ internalType: "uint256[]"; name: ""; type: "uint256[]"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "getMaciContract"; outputs: readonly [{ internalType: "contract IMACI"; name: "maci"; type: "address"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "getStartAndEndDate"; outputs: readonly [{ internalType: "uint256"; name: "_startDate"; type: "uint256"; }, { internalType: "uint256"; name: "_endDate"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "element"; type: "uint256"; }]; name: "getStateIndex"; outputs: readonly [{ internalType: "uint40"; name: ""; type: "uint40"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_nullifier"; type: "uint256"; }, { components: readonly [{ internalType: "uint256"; name: "x"; type: "uint256"; }, { internalType: "uint256"; name: "y"; type: "uint256"; }]; internalType: "struct DomainObjs.PublicKey"; name: "_publicKey"; type: "tuple"; }, { internalType: "uint256"; name: "_stateRootIndex"; type: "uint256"; }, { internalType: "uint256[8]"; name: "_proof"; type: "uint256[8]"; }, { internalType: "bytes"; name: "_signUpPolicyData"; type: "bytes"; }, { internalType: "bytes"; name: "_initialVoiceCreditProxyData"; type: "bytes"; }]; name: "joinPoll"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly []; name: "mergeState"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly []; name: "messageBatchSize"; outputs: readonly [{ internalType: "uint8"; name: ""; type: "uint8"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "padLastBatch"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ components: readonly [{ internalType: "uint256[10]"; name: "data"; type: "uint256[10]"; }]; internalType: "struct DomainObjs.Message"; name: "_message"; type: "tuple"; }, { components: readonly [{ internalType: "uint256"; name: "x"; type: "uint256"; }, { internalType: "uint256"; name: "y"; type: "uint256"; }]; internalType: "struct DomainObjs.PublicKey"; name: "_encryptionPublicKey"; type: "tuple"; }]; name: "publishMessage"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ components: readonly [{ internalType: "uint256[10]"; name: "data"; type: "uint256[10]"; }]; internalType: "struct DomainObjs.Message[]"; name: "_messages"; type: "tuple[]"; }, { components: readonly [{ internalType: "uint256"; name: "x"; type: "uint256"; }, { internalType: "uint256"; name: "y"; type: "uint256"; }]; internalType: "struct DomainObjs.PublicKey[]"; name: "_encryptionPublicKeys"; type: "tuple[]"; }]; name: "publishMessageBatch"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "uint256[]"; name: "_messageHashes"; type: "uint256[]"; }, { internalType: "bytes32"; name: "_ipfsHash"; type: "bytes32"; }]; name: "relayMessagesBatch"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly []; name: "startDate"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "stateMerged"; outputs: readonly [{ internalType: "bool"; name: ""; type: "bool"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "totalSignups"; outputs: readonly [{ internalType: "uint256"; name: "signups"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "totalSignupsAndMessages"; outputs: readonly [{ internalType: "uint256"; name: "totalSignups"; type: "uint256"; }, { internalType: "uint256"; name: "numMsgs"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "treeDepths"; outputs: readonly [{ internalType: "uint8"; name: "tallyProcessingStateTreeDepth"; type: "uint8"; }, { internalType: "uint8"; name: "voteOptionTreeDepth"; type: "uint8"; }, { internalType: "uint8"; name: "stateTreeDepth"; type: "uint8"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "voteOptions"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }] = _abi

Defined in: contracts/typechain-types/factories/contracts/interfaces/IPoll__factory.ts:392

Methods

connect()

static connect(address, runner?): IPoll

Defined in: contracts/typechain-types/factories/contracts/interfaces/IPoll__factory.ts:396

Parameters

address

string

runner?

ContractRunner | null

Returns

IPoll


createInterface()

static createInterface(): IPollInterface

Defined in: contracts/typechain-types/factories/contracts/interfaces/IPoll__factory.ts:393

Returns

IPollInterface