/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod, } from "../../../common"; export declare namespace Pairing { export type G1PointStruct = { x: BigNumberish; y: BigNumberish }; export type G1PointStructOutput = [x: bigint, y: bigint] & { x: bigint; y: bigint; }; export type G2PointStruct = { x: [BigNumberish, BigNumberish]; y: [BigNumberish, BigNumberish]; }; export type G2PointStructOutput = [ x: [bigint, bigint], y: [bigint, bigint] ] & { x: [bigint, bigint]; y: [bigint, bigint] }; } export declare namespace SnarkCommon { export type VerifyingKeyStruct = { alpha1: Pairing.G1PointStruct; beta2: Pairing.G2PointStruct; gamma2: Pairing.G2PointStruct; delta2: Pairing.G2PointStruct; ic: Pairing.G1PointStruct[]; }; export type VerifyingKeyStructOutput = [ alpha1: Pairing.G1PointStructOutput, beta2: Pairing.G2PointStructOutput, gamma2: Pairing.G2PointStructOutput, delta2: Pairing.G2PointStructOutput, ic: Pairing.G1PointStructOutput[] ] & { alpha1: Pairing.G1PointStructOutput; beta2: Pairing.G2PointStructOutput; gamma2: Pairing.G2PointStructOutput; delta2: Pairing.G2PointStructOutput; ic: Pairing.G1PointStructOutput[]; }; } export interface IVerifierInterface extends Interface { getFunction(nameOrSignature: "verify"): FunctionFragment; encodeFunctionData( functionFragment: "verify", values: [BigNumberish[], SnarkCommon.VerifyingKeyStruct, BigNumberish] ): string; decodeFunctionResult(functionFragment: "verify", data: BytesLike): Result; } export interface IVerifier extends BaseContract { connect(runner?: ContractRunner | null): IVerifier; waitForDeployment(): Promise; interface: IVerifierInterface; 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; verify: TypedContractMethod< [ _proof: BigNumberish[], vk: SnarkCommon.VerifyingKeyStruct, input: BigNumberish ], [boolean], "view" >; getFunction( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "verify" ): TypedContractMethod< [ _proof: BigNumberish[], vk: SnarkCommon.VerifyingKeyStruct, input: BigNumberish ], [boolean], "view" >; filters: {}; }