/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction, BaseContract, ContractTransaction, Overrides, CallOverrides, } from "ethers"; import { BytesLike } from "@ethersproject/bytes"; import { Listener, Provider } from "@ethersproject/providers"; import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi"; import type { TypedEventFilter, TypedEvent, TypedListener } from "./common"; interface IGaugeVoterV2Interface extends ethers.utils.Interface { functions: { "attachStakerToGauge(address)": FunctionFragment; "attachments(address)": FunctionFragment; "detachStakerFromGauge(address)": FunctionFragment; "distribute(address[])": FunctionFragment; "notifyRewardAmount(uint256)": FunctionFragment; "registry()": FunctionFragment; "reset()": FunctionFragment; "resetFor(address)": FunctionFragment; }; encodeFunctionData( functionFragment: "attachStakerToGauge", values: [string] ): string; encodeFunctionData(functionFragment: "attachments", values: [string]): string; encodeFunctionData( functionFragment: "detachStakerFromGauge", values: [string] ): string; encodeFunctionData( functionFragment: "distribute", values: [string[]] ): string; encodeFunctionData( functionFragment: "notifyRewardAmount", values: [BigNumberish] ): string; encodeFunctionData(functionFragment: "registry", values?: undefined): string; encodeFunctionData(functionFragment: "reset", values?: undefined): string; encodeFunctionData(functionFragment: "resetFor", values: [string]): string; decodeFunctionResult( functionFragment: "attachStakerToGauge", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "attachments", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "detachStakerFromGauge", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "distribute", data: BytesLike): Result; decodeFunctionResult( functionFragment: "notifyRewardAmount", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result; decodeFunctionResult(functionFragment: "reset", data: BytesLike): Result; decodeFunctionResult(functionFragment: "resetFor", data: BytesLike): Result; events: { "Abstained(address,int256)": EventFragment; "Attach(address,address)": EventFragment; "Deposit(address,address,uint256)": EventFragment; "Detach(address,address)": EventFragment; "DistributeReward(address,address,uint256)": EventFragment; "GaugeCreated(address,address,address,address)": EventFragment; "GaugeUpdated(address,address,address,address)": EventFragment; "NotifyReward(address,address,uint256)": EventFragment; "Voted(address,address,int256)": EventFragment; "Whitelisted(address,address,bool)": EventFragment; "Withdraw(address,address,uint256)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "Abstained"): EventFragment; getEvent(nameOrSignatureOrTopic: "Attach"): EventFragment; getEvent(nameOrSignatureOrTopic: "Deposit"): EventFragment; getEvent(nameOrSignatureOrTopic: "Detach"): EventFragment; getEvent(nameOrSignatureOrTopic: "DistributeReward"): EventFragment; getEvent(nameOrSignatureOrTopic: "GaugeCreated"): EventFragment; getEvent(nameOrSignatureOrTopic: "GaugeUpdated"): EventFragment; getEvent(nameOrSignatureOrTopic: "NotifyReward"): EventFragment; getEvent(nameOrSignatureOrTopic: "Voted"): EventFragment; getEvent(nameOrSignatureOrTopic: "Whitelisted"): EventFragment; getEvent(nameOrSignatureOrTopic: "Withdraw"): EventFragment; } export type AbstainedEvent = TypedEvent< [string, BigNumber] & { tokenId: string; weight: BigNumber } >; export type AttachEvent = TypedEvent< [string, string] & { owner: string; gauge: string } >; export type DepositEvent = TypedEvent< [string, string, BigNumber] & { lp: string; gauge: string; amount: BigNumber } >; export type DetachEvent = TypedEvent< [string, string] & { owner: string; gauge: string } >; export type DistributeRewardEvent = TypedEvent< [string, string, BigNumber] & { sender: string; gauge: string; amount: BigNumber; } >; export type GaugeCreatedEvent = TypedEvent< [string, string, string, string] & { gauge: string; creator: string; bribe: string; pool: string; } >; export type GaugeUpdatedEvent = TypedEvent< [string, string, string, string] & { gauge: string; creator: string; bribe: string; pool: string; } >; export type NotifyRewardEvent = TypedEvent< [string, string, BigNumber] & { sender: string; reward: string; amount: BigNumber; } >; export type VotedEvent = TypedEvent< [string, string, BigNumber] & { voter: string; tokenId: string; weight: BigNumber; } >; export type WhitelistedEvent = TypedEvent< [string, string, boolean] & { whitelister: string; token: string; value: boolean; } >; export type WithdrawEvent = TypedEvent< [string, string, BigNumber] & { lp: string; gauge: string; amount: BigNumber } >; export class IGaugeVoterV2 extends BaseContract { connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; listeners, EventArgsObject>( eventFilter?: TypedEventFilter ): Array>; off, EventArgsObject>( eventFilter: TypedEventFilter, listener: TypedListener ): this; on, EventArgsObject>( eventFilter: TypedEventFilter, listener: TypedListener ): this; once, EventArgsObject>( eventFilter: TypedEventFilter, listener: TypedListener ): this; removeListener, EventArgsObject>( eventFilter: TypedEventFilter, listener: TypedListener ): this; removeAllListeners, EventArgsObject>( eventFilter: TypedEventFilter ): this; listeners(eventName?: string): Array; off(eventName: string, listener: Listener): this; on(eventName: string, listener: Listener): this; once(eventName: string, listener: Listener): this; removeListener(eventName: string, listener: Listener): this; removeAllListeners(eventName?: string): this; queryFilter, EventArgsObject>( event: TypedEventFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise>>; interface: IGaugeVoterV2Interface; functions: { attachStakerToGauge( account: string, overrides?: Overrides & { from?: string | Promise } ): Promise; attachments(who: string, overrides?: CallOverrides): Promise<[BigNumber]>; detachStakerFromGauge( account: string, overrides?: Overrides & { from?: string | Promise } ): Promise; "distribute(address[])"( _gauges: string[], overrides?: Overrides & { from?: string | Promise } ): Promise; "distribute(address)"( _gauge: string, overrides?: Overrides & { from?: string | Promise } ): Promise; "distribute()"( overrides?: Overrides & { from?: string | Promise } ): Promise; notifyRewardAmount( amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; registry(overrides?: CallOverrides): Promise<[string]>; reset( overrides?: Overrides & { from?: string | Promise } ): Promise; resetFor( _who: string, overrides?: Overrides & { from?: string | Promise } ): Promise; }; attachStakerToGauge( account: string, overrides?: Overrides & { from?: string | Promise } ): Promise; attachments(who: string, overrides?: CallOverrides): Promise; detachStakerFromGauge( account: string, overrides?: Overrides & { from?: string | Promise } ): Promise; "distribute(address[])"( _gauges: string[], overrides?: Overrides & { from?: string | Promise } ): Promise; "distribute(address)"( _gauge: string, overrides?: Overrides & { from?: string | Promise } ): Promise; "distribute()"( overrides?: Overrides & { from?: string | Promise } ): Promise; notifyRewardAmount( amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; registry(overrides?: CallOverrides): Promise; reset( overrides?: Overrides & { from?: string | Promise } ): Promise; resetFor( _who: string, overrides?: Overrides & { from?: string | Promise } ): Promise; callStatic: { attachStakerToGauge( account: string, overrides?: CallOverrides ): Promise; attachments(who: string, overrides?: CallOverrides): Promise; detachStakerFromGauge( account: string, overrides?: CallOverrides ): Promise; "distribute(address[])"( _gauges: string[], overrides?: CallOverrides ): Promise; "distribute(address)"( _gauge: string, overrides?: CallOverrides ): Promise; "distribute()"(overrides?: CallOverrides): Promise; notifyRewardAmount( amount: BigNumberish, overrides?: CallOverrides ): Promise; registry(overrides?: CallOverrides): Promise; reset(overrides?: CallOverrides): Promise; resetFor(_who: string, overrides?: CallOverrides): Promise; }; filters: { "Abstained(address,int256)"( tokenId?: null, weight?: null ): TypedEventFilter< [string, BigNumber], { tokenId: string; weight: BigNumber } >; Abstained( tokenId?: null, weight?: null ): TypedEventFilter< [string, BigNumber], { tokenId: string; weight: BigNumber } >; "Attach(address,address)"( owner?: string | null, gauge?: string | null ): TypedEventFilter<[string, string], { owner: string; gauge: string }>; Attach( owner?: string | null, gauge?: string | null ): TypedEventFilter<[string, string], { owner: string; gauge: string }>; "Deposit(address,address,uint256)"( lp?: string | null, gauge?: string | null, amount?: null ): TypedEventFilter< [string, string, BigNumber], { lp: string; gauge: string; amount: BigNumber } >; Deposit( lp?: string | null, gauge?: string | null, amount?: null ): TypedEventFilter< [string, string, BigNumber], { lp: string; gauge: string; amount: BigNumber } >; "Detach(address,address)"( owner?: string | null, gauge?: string | null ): TypedEventFilter<[string, string], { owner: string; gauge: string }>; Detach( owner?: string | null, gauge?: string | null ): TypedEventFilter<[string, string], { owner: string; gauge: string }>; "DistributeReward(address,address,uint256)"( sender?: string | null, gauge?: string | null, amount?: null ): TypedEventFilter< [string, string, BigNumber], { sender: string; gauge: string; amount: BigNumber } >; DistributeReward( sender?: string | null, gauge?: string | null, amount?: null ): TypedEventFilter< [string, string, BigNumber], { sender: string; gauge: string; amount: BigNumber } >; "GaugeCreated(address,address,address,address)"( gauge?: string | null, creator?: null, bribe?: string | null, pool?: string | null ): TypedEventFilter< [string, string, string, string], { gauge: string; creator: string; bribe: string; pool: string } >; GaugeCreated( gauge?: string | null, creator?: null, bribe?: string | null, pool?: string | null ): TypedEventFilter< [string, string, string, string], { gauge: string; creator: string; bribe: string; pool: string } >; "GaugeUpdated(address,address,address,address)"( gauge?: string | null, creator?: null, bribe?: string | null, pool?: string | null ): TypedEventFilter< [string, string, string, string], { gauge: string; creator: string; bribe: string; pool: string } >; GaugeUpdated( gauge?: string | null, creator?: null, bribe?: string | null, pool?: string | null ): TypedEventFilter< [string, string, string, string], { gauge: string; creator: string; bribe: string; pool: string } >; "NotifyReward(address,address,uint256)"( sender?: string | null, reward?: string | null, amount?: null ): TypedEventFilter< [string, string, BigNumber], { sender: string; reward: string; amount: BigNumber } >; NotifyReward( sender?: string | null, reward?: string | null, amount?: null ): TypedEventFilter< [string, string, BigNumber], { sender: string; reward: string; amount: BigNumber } >; "Voted(address,address,int256)"( voter?: string | null, tokenId?: null, weight?: null ): TypedEventFilter< [string, string, BigNumber], { voter: string; tokenId: string; weight: BigNumber } >; Voted( voter?: string | null, tokenId?: null, weight?: null ): TypedEventFilter< [string, string, BigNumber], { voter: string; tokenId: string; weight: BigNumber } >; "Whitelisted(address,address,bool)"( whitelister?: string | null, token?: string | null, value?: null ): TypedEventFilter< [string, string, boolean], { whitelister: string; token: string; value: boolean } >; Whitelisted( whitelister?: string | null, token?: string | null, value?: null ): TypedEventFilter< [string, string, boolean], { whitelister: string; token: string; value: boolean } >; "Withdraw(address,address,uint256)"( lp?: string | null, gauge?: string | null, amount?: null ): TypedEventFilter< [string, string, BigNumber], { lp: string; gauge: string; amount: BigNumber } >; Withdraw( lp?: string | null, gauge?: string | null, amount?: null ): TypedEventFilter< [string, string, BigNumber], { lp: string; gauge: string; amount: BigNumber } >; }; estimateGas: { attachStakerToGauge( account: string, overrides?: Overrides & { from?: string | Promise } ): Promise; attachments(who: string, overrides?: CallOverrides): Promise; detachStakerFromGauge( account: string, overrides?: Overrides & { from?: string | Promise } ): Promise; "distribute(address[])"( _gauges: string[], overrides?: Overrides & { from?: string | Promise } ): Promise; "distribute(address)"( _gauge: string, overrides?: Overrides & { from?: string | Promise } ): Promise; "distribute()"( overrides?: Overrides & { from?: string | Promise } ): Promise; notifyRewardAmount( amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; registry(overrides?: CallOverrides): Promise; reset( overrides?: Overrides & { from?: string | Promise } ): Promise; resetFor( _who: string, overrides?: Overrides & { from?: string | Promise } ): Promise; }; populateTransaction: { attachStakerToGauge( account: string, overrides?: Overrides & { from?: string | Promise } ): Promise; attachments( who: string, overrides?: CallOverrides ): Promise; detachStakerFromGauge( account: string, overrides?: Overrides & { from?: string | Promise } ): Promise; "distribute(address[])"( _gauges: string[], overrides?: Overrides & { from?: string | Promise } ): Promise; "distribute(address)"( _gauge: string, overrides?: Overrides & { from?: string | Promise } ): Promise; "distribute()"( overrides?: Overrides & { from?: string | Promise } ): Promise; notifyRewardAmount( amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; registry(overrides?: CallOverrides): Promise; reset( overrides?: Overrides & { from?: string | Promise } ): Promise; resetFor( _who: string, overrides?: Overrides & { from?: string | Promise } ): Promise; }; }