Minimal Anti Collusion Infrastructure (MACI) / ITally__factory
Class: ITally__factory
Defined in: contracts/typechain-types/factories/contracts/interfaces/ITally__factory.ts:393
Constructors
Constructor
new ITally__factory():
ITally__factory
Returns
ITally__factory
Properties
abi
readonlystaticabi: readonly [{inputs: readonly [{components: readonly [{internalType:"uint256[]";name:"voteOptionIndices";type:"uint256[]"; }, {internalType:"uint256[]";name:"tallyResults";type:"uint256[]"; }, {internalType:"uint256[][][]";name:"tallyResultProofs";type:"uint256[][][]"; }, {internalType:"uint256";name:"totalSpent";type:"uint256"; }, {internalType:"uint256";name:"totalSpentSalt";type:"uint256"; }, {internalType:"uint256";name:"tallyResultSalt";type:"uint256"; }, {internalType:"uint256";name:"newResultsCommitment";type:"uint256"; }, {internalType:"uint256";name:"spentVoiceCreditsHash";type:"uint256"; }, {internalType:"uint256";name:"perVOSpentVoiceCreditsHash";type:"uint256"; }];internalType:"struct ITally.AddTallyResultsArgs";name:"args";type:"tuple"; }];name:"addTallyResults";outputs: readonly [];stateMutability:"nonpayable";type:"function"; }, {inputs: readonly [{internalType:"uint256";name:"_batchStartIndex";type:"uint256"; }, {internalType:"uint256";name:"_newTallyCommitment";type:"uint256"; }];name:"getPublicCircuitInputs";outputs: readonly [{internalType:"uint256[]";name:"publicInputs";type:"uint256[]"; }];stateMutability:"view";type:"function"; }, {inputs: readonly [{internalType:"uint256";name:"index";type:"uint256"; }];name:"getTallyResults";outputs: readonly [{components: readonly [{internalType:"uint256";name:"value";type:"uint256"; }, {internalType:"bool";name:"isSet";type:"bool"; }];internalType:"struct ITally.TallyResult";name:"";type:"tuple"; }];stateMutability:"view";type:"function"; }, {inputs: readonly [];name:"isTallied";outputs: readonly [{internalType:"bool";name:"tallied";type:"bool"; }];stateMutability:"view";type:"function"; }, {inputs: readonly [];name:"sbCommitment";outputs: readonly [{internalType:"uint256";name:"";type:"uint256"; }];stateMutability:"view";type:"function"; }, {inputs: readonly [];name:"tallyBatchNum";outputs: readonly [{internalType:"uint256";name:"";type:"uint256"; }];stateMutability:"view";type:"function"; }, {inputs: readonly [];name:"tallyCommitment";outputs: readonly [{internalType:"uint256";name:"";type:"uint256"; }];stateMutability:"view";type:"function"; }, {inputs: readonly [{internalType:"uint256";name:"_newTallyCommitment";type:"uint256"; }, {internalType:"uint256[8]";name:"_proof";type:"uint256[8]"; }];name:"tallyVotes";outputs: readonly [];stateMutability:"nonpayable";type:"function"; }, {inputs: readonly [];name:"totalSpent";outputs: readonly [{internalType:"uint256";name:"";type:"uint256"; }];stateMutability:"view";type:"function"; }, {inputs: readonly [];name:"totalTallyResults";outputs: readonly [{internalType:"uint256";name:"";type:"uint256"; }];stateMutability:"view";type:"function"; }, {inputs: readonly [];name:"updateSbCommitment";outputs: readonly [];stateMutability:"nonpayable";type:"function"; }, {inputs: readonly [{internalType:"uint256";name:"_voteOptionIndex";type:"uint256"; }, {internalType:"uint256";name:"_spent";type:"uint256"; }, {internalType:"uint256[][]";name:"_spentProof";type:"uint256[][]"; }, {internalType:"uint256";name:"_spentSalt";type:"uint256"; }, {internalType:"uint8";name:"_voteOptionTreeDepth";type:"uint8"; }, {internalType:"uint256";name:"_spentVoiceCreditsHash";type:"uint256"; }, {internalType:"uint256";name:"_resultCommitment";type:"uint256"; }];name:"verifyPerVoteOptionSpentVoiceCredits";outputs: readonly [{internalType:"bool";name:"isValid";type:"bool"; }];stateMutability:"view";type:"function"; }, {inputs: readonly [{internalType:"uint256";name:"_totalSpent";type:"uint256"; }, {internalType:"uint256";name:"_totalSpentSalt";type:"uint256"; }, {internalType:"uint256";name:"_resultCommitment";type:"uint256"; }, {internalType:"uint256";name:"_perVoteOptionSpentVoiceCreditsHash";type:"uint256"; }];name:"verifySpentVoiceCredits";outputs: readonly [{internalType:"bool";name:"isValid";type:"bool"; }];stateMutability:"view";type:"function"; }, {inputs: readonly [{internalType:"uint256";name:"_batchStartIndex";type:"uint256"; }, {internalType:"uint256";name:"_newTallyCommitment";type:"uint256"; }, {internalType:"uint256[8]";name:"_proof";type:"uint256[8]"; }];name:"verifyTallyProof";outputs: readonly [{internalType:"bool";name:"isValid";type:"bool"; }];stateMutability:"view";type:"function"; }, {inputs: readonly [{internalType:"uint256";name:"_voteOptionIndex";type:"uint256"; }, {internalType:"uint256";name:"_tallyResult";type:"uint256"; }, {internalType:"uint256[][]";name:"_tallyResultProof";type:"uint256[][]"; }, {internalType:"uint256";name:"_tallyResultSalt";type:"uint256"; }, {internalType:"uint8";name:"_voteOptionTreeDepth";type:"uint8"; }, {internalType:"uint256";name:"_spentVoiceCreditsHash";type:"uint256"; }, {internalType:"uint256";name:"_perVoteOptionSpentVoiceCreditsHash";type:"uint256"; }];name:"verifyTallyResult";outputs: readonly [{internalType:"bool";name:"isValid";type:"bool"; }];stateMutability:"view";type:"function"; }] =_abi
Defined in: contracts/typechain-types/factories/contracts/interfaces/ITally__factory.ts:394
Methods
connect()
staticconnect(address,runner?):ITally
Defined in: contracts/typechain-types/factories/contracts/interfaces/ITally__factory.ts:398
Parameters
address
string
runner?
ContractRunner | null
Returns
createInterface()
staticcreateInterface():ITallyInterface
Defined in: contracts/typechain-types/factories/contracts/interfaces/ITally__factory.ts:395
Returns
ITallyInterface