/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod, } from "../../common"; 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 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 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 IMACIFactoryInterface extends Interface { getFunction( nameOrSignature: | "deployMaci" | "factories" | "maxRecipients" | "stateTreeDepth" | "treeDepths" | "verifier" | "vkRegistry" ): FunctionFragment; 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: "stateTreeDepth", values?: undefined ): string; encodeFunctionData( functionFragment: "treeDepths", values?: undefined ): string; encodeFunctionData(functionFragment: "verifier", values?: undefined): string; encodeFunctionData( functionFragment: "vkRegistry", values?: undefined ): string; decodeFunctionResult(functionFragment: "deployMaci", data: BytesLike): Result; decodeFunctionResult(functionFragment: "factories", data: BytesLike): Result; decodeFunctionResult( functionFragment: "maxRecipients", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "stateTreeDepth", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "treeDepths", data: BytesLike): Result; decodeFunctionResult(functionFragment: "verifier", data: BytesLike): Result; decodeFunctionResult(functionFragment: "vkRegistry", data: BytesLike): Result; } export interface IMACIFactory extends BaseContract { connect(runner?: ContractRunner | null): IMACIFactory; waitForDeployment(): Promise; interface: IMACIFactoryInterface; 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; 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< [], [MACICommon.FactoriesStructOutput], "view" >; maxRecipients: TypedContractMethod<[], [bigint], "view">; stateTreeDepth: TypedContractMethod<[], [bigint], "view">; treeDepths: TypedContractMethod<[], [Params.TreeDepthsStructOutput], "view">; verifier: TypedContractMethod<[], [string], "view">; vkRegistry: TypedContractMethod<[], [string], "view">; getFunction( key: string | FunctionFragment ): T; 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<[], [MACICommon.FactoriesStructOutput], "view">; getFunction( nameOrSignature: "maxRecipients" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "stateTreeDepth" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "treeDepths" ): TypedContractMethod<[], [Params.TreeDepthsStructOutput], "view">; getFunction( nameOrSignature: "verifier" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "vkRegistry" ): TypedContractMethod<[], [string], "view">; filters: {}; }