/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod, } from "../common"; export declare namespace MACICommon { export type FactoriesStruct = { pollFactory: AddressLike; tallyFactory: AddressLike; messageProcessorFactory: AddressLike; }; export type FactoriesStructOutput = [ pollFactory: string, tallyFactory: string, messageProcessorFactory: string ] & { pollFactory: string; tallyFactory: string; messageProcessorFactory: string; }; } export declare namespace DomainObjs { export type PubKeyStruct = { x: BigNumberish; y: BigNumberish }; export type PubKeyStructOutput = [x: bigint, y: bigint] & { x: bigint; y: bigint; }; } export declare namespace MACI { export type PollContractsStruct = { poll: AddressLike; messageProcessor: AddressLike; tally: AddressLike; }; export type PollContractsStructOutput = [ poll: string, messageProcessor: string, tally: string ] & { poll: string; messageProcessor: string; tally: string }; } export declare namespace Params { export type TreeDepthsStruct = { intStateTreeDepth: BigNumberish; messageTreeSubDepth: BigNumberish; messageTreeDepth: BigNumberish; voteOptionTreeDepth: BigNumberish; }; export type TreeDepthsStructOutput = [ intStateTreeDepth: bigint, messageTreeSubDepth: bigint, messageTreeDepth: bigint, voteOptionTreeDepth: bigint ] & { intStateTreeDepth: bigint; messageTreeSubDepth: bigint; messageTreeDepth: bigint; voteOptionTreeDepth: bigint; }; } export interface MACIFactoryInterface extends Interface { getFunction( nameOrSignature: | "MESSAGE_DATA_LENGTH" | "deployMaci" | "factories" | "maxRecipients" | "messageBatchSize" | "owner" | "renounceOwnership" | "setMaciParameters" | "setMessageProcessorFactory" | "setPollFactory" | "setTallyFactory" | "setVerifier" | "setVkRegistry" | "stateTreeDepth" | "transferOwnership" | "treeDepths" | "verifier" | "vkRegistry" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: | "MaciDeployed" | "MaciParametersChanged" | "OwnershipTransferred" ): EventFragment; encodeFunctionData( functionFragment: "MESSAGE_DATA_LENGTH", values?: undefined ): string; encodeFunctionData( functionFragment: "deployMaci", values: [ AddressLike, AddressLike, AddressLike, BigNumberish, AddressLike, DomainObjs.PubKeyStruct, AddressLike ] ): string; encodeFunctionData(functionFragment: "factories", values?: undefined): string; encodeFunctionData( functionFragment: "maxRecipients", values?: undefined ): string; encodeFunctionData( functionFragment: "messageBatchSize", values?: undefined ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "renounceOwnership", values?: undefined ): string; encodeFunctionData( functionFragment: "setMaciParameters", values: [BigNumberish, BigNumberish, BigNumberish, Params.TreeDepthsStruct] ): string; encodeFunctionData( functionFragment: "setMessageProcessorFactory", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "setPollFactory", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "setTallyFactory", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "setVerifier", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "setVkRegistry", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "stateTreeDepth", values?: undefined ): string; encodeFunctionData( functionFragment: "transferOwnership", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "treeDepths", values?: undefined ): string; encodeFunctionData(functionFragment: "verifier", values?: undefined): string; encodeFunctionData( functionFragment: "vkRegistry", values?: undefined ): string; decodeFunctionResult( functionFragment: "MESSAGE_DATA_LENGTH", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "deployMaci", data: BytesLike): Result; decodeFunctionResult(functionFragment: "factories", data: BytesLike): Result; decodeFunctionResult( functionFragment: "maxRecipients", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "messageBatchSize", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult( functionFragment: "renounceOwnership", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setMaciParameters", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setMessageProcessorFactory", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setPollFactory", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setTallyFactory", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setVerifier", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setVkRegistry", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "stateTreeDepth", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "transferOwnership", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "treeDepths", data: BytesLike): Result; decodeFunctionResult(functionFragment: "verifier", data: BytesLike): Result; decodeFunctionResult(functionFragment: "vkRegistry", data: BytesLike): Result; } export namespace MaciDeployedEvent { export type InputTuple = [_maci: AddressLike]; export type OutputTuple = [_maci: string]; export interface OutputObject { _maci: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace MaciParametersChangedEvent { export type InputTuple = []; export type OutputTuple = []; export interface OutputObject {} export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace OwnershipTransferredEvent { export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; export type OutputTuple = [previousOwner: string, newOwner: string]; export interface OutputObject { previousOwner: string; newOwner: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export interface MACIFactory extends BaseContract { connect(runner?: ContractRunner | null): MACIFactory; waitForDeployment(): Promise; interface: MACIFactoryInterface; queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, listener: TypedListener ): Promise; once( event: TCEvent, listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, listener: TypedListener ): Promise; listeners( event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( event?: TCEvent ): Promise; MESSAGE_DATA_LENGTH: TypedContractMethod<[], [bigint], "view">; deployMaci: TypedContractMethod< [ signUpGatekeeper: AddressLike, initialVoiceCreditProxy: AddressLike, topupCredit: AddressLike, duration: BigNumberish, coordinator: AddressLike, coordinatorPubKey: DomainObjs.PubKeyStruct, maciOwner: AddressLike ], [ [string, MACI.PollContractsStructOutput] & { _maci: string; _pollContracts: MACI.PollContractsStructOutput; } ], "nonpayable" >; factories: TypedContractMethod< [], [ [string, string, string] & { pollFactory: string; tallyFactory: string; messageProcessorFactory: string; } ], "view" >; maxRecipients: TypedContractMethod<[], [bigint], "view">; messageBatchSize: TypedContractMethod<[], [bigint], "view">; owner: TypedContractMethod<[], [string], "view">; renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; setMaciParameters: TypedContractMethod< [ _stateTreeDepth: BigNumberish, _messageBatchSize: BigNumberish, _maxRecipients: BigNumberish, _treeDepths: Params.TreeDepthsStruct ], [void], "nonpayable" >; setMessageProcessorFactory: TypedContractMethod< [_messageProcessorFactory: AddressLike], [void], "nonpayable" >; setPollFactory: TypedContractMethod< [_pollFactory: AddressLike], [void], "nonpayable" >; setTallyFactory: TypedContractMethod< [_tallyFactory: AddressLike], [void], "nonpayable" >; setVerifier: TypedContractMethod< [_verifier: AddressLike], [void], "nonpayable" >; setVkRegistry: TypedContractMethod< [_vkRegistry: AddressLike], [void], "nonpayable" >; stateTreeDepth: TypedContractMethod<[], [bigint], "view">; transferOwnership: TypedContractMethod< [newOwner: AddressLike], [void], "nonpayable" >; treeDepths: TypedContractMethod< [], [ [bigint, bigint, bigint, bigint] & { intStateTreeDepth: bigint; messageTreeSubDepth: bigint; messageTreeDepth: bigint; voteOptionTreeDepth: bigint; } ], "view" >; verifier: TypedContractMethod<[], [string], "view">; vkRegistry: TypedContractMethod<[], [string], "view">; getFunction( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "MESSAGE_DATA_LENGTH" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "deployMaci" ): TypedContractMethod< [ signUpGatekeeper: AddressLike, initialVoiceCreditProxy: AddressLike, topupCredit: AddressLike, duration: BigNumberish, coordinator: AddressLike, coordinatorPubKey: DomainObjs.PubKeyStruct, maciOwner: AddressLike ], [ [string, MACI.PollContractsStructOutput] & { _maci: string; _pollContracts: MACI.PollContractsStructOutput; } ], "nonpayable" >; getFunction( nameOrSignature: "factories" ): TypedContractMethod< [], [ [string, string, string] & { pollFactory: string; tallyFactory: string; messageProcessorFactory: string; } ], "view" >; getFunction( nameOrSignature: "maxRecipients" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "messageBatchSize" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "renounceOwnership" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "setMaciParameters" ): TypedContractMethod< [ _stateTreeDepth: BigNumberish, _messageBatchSize: BigNumberish, _maxRecipients: BigNumberish, _treeDepths: Params.TreeDepthsStruct ], [void], "nonpayable" >; getFunction( nameOrSignature: "setMessageProcessorFactory" ): TypedContractMethod< [_messageProcessorFactory: AddressLike], [void], "nonpayable" >; getFunction( nameOrSignature: "setPollFactory" ): TypedContractMethod<[_pollFactory: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "setTallyFactory" ): TypedContractMethod<[_tallyFactory: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "setVerifier" ): TypedContractMethod<[_verifier: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "setVkRegistry" ): TypedContractMethod<[_vkRegistry: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "stateTreeDepth" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "transferOwnership" ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "treeDepths" ): TypedContractMethod< [], [ [bigint, bigint, bigint, bigint] & { intStateTreeDepth: bigint; messageTreeSubDepth: bigint; messageTreeDepth: bigint; voteOptionTreeDepth: bigint; } ], "view" >; getFunction( nameOrSignature: "verifier" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "vkRegistry" ): TypedContractMethod<[], [string], "view">; getEvent( key: "MaciDeployed" ): TypedContractEvent< MaciDeployedEvent.InputTuple, MaciDeployedEvent.OutputTuple, MaciDeployedEvent.OutputObject >; getEvent( key: "MaciParametersChanged" ): TypedContractEvent< MaciParametersChangedEvent.InputTuple, MaciParametersChangedEvent.OutputTuple, MaciParametersChangedEvent.OutputObject >; getEvent( key: "OwnershipTransferred" ): TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; filters: { "MaciDeployed(address)": TypedContractEvent< MaciDeployedEvent.InputTuple, MaciDeployedEvent.OutputTuple, MaciDeployedEvent.OutputObject >; MaciDeployed: TypedContractEvent< MaciDeployedEvent.InputTuple, MaciDeployedEvent.OutputTuple, MaciDeployedEvent.OutputObject >; "MaciParametersChanged()": TypedContractEvent< MaciParametersChangedEvent.InputTuple, MaciParametersChangedEvent.OutputTuple, MaciParametersChangedEvent.OutputObject >; MaciParametersChanged: TypedContractEvent< MaciParametersChangedEvent.InputTuple, MaciParametersChangedEvent.OutputTuple, MaciParametersChangedEvent.OutputObject >; "OwnershipTransferred(address,address)": TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; OwnershipTransferred: TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; }; }