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 interface IERC5805Interface extends Interface { getFunction(nameOrSignature: "CLOCK_MODE" | "clock" | "delegate" | "delegateBySig" | "delegates" | "getPastTotalSupply" | "getPastVotes" | "getVotes"): FunctionFragment; getEvent(nameOrSignatureOrTopic: "DelegateChanged" | "DelegateVotesChanged"): EventFragment; encodeFunctionData(functionFragment: "CLOCK_MODE", values?: undefined): string; encodeFunctionData(functionFragment: "clock", values?: undefined): string; encodeFunctionData(functionFragment: "delegate", values: [AddressLike]): string; encodeFunctionData(functionFragment: "delegateBySig", values: [ AddressLike, BigNumberish, BigNumberish, BigNumberish, BytesLike, BytesLike ]): string; encodeFunctionData(functionFragment: "delegates", values: [AddressLike]): string; encodeFunctionData(functionFragment: "getPastTotalSupply", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "getPastVotes", values: [AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "getVotes", values: [AddressLike]): string; decodeFunctionResult(functionFragment: "CLOCK_MODE", data: BytesLike): Result; decodeFunctionResult(functionFragment: "clock", data: BytesLike): Result; decodeFunctionResult(functionFragment: "delegate", data: BytesLike): Result; decodeFunctionResult(functionFragment: "delegateBySig", data: BytesLike): Result; decodeFunctionResult(functionFragment: "delegates", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getPastTotalSupply", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getPastVotes", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getVotes", data: BytesLike): Result; } export declare namespace DelegateChangedEvent { type InputTuple = [ delegator: AddressLike, fromDelegate: AddressLike, toDelegate: AddressLike ]; type OutputTuple = [ delegator: string, fromDelegate: string, toDelegate: string ]; interface OutputObject { delegator: string; fromDelegate: string; toDelegate: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace DelegateVotesChangedEvent { type InputTuple = [ delegate: AddressLike, previousBalance: BigNumberish, newBalance: BigNumberish ]; type OutputTuple = [ delegate: string, previousBalance: bigint, newBalance: bigint ]; interface OutputObject { delegate: string; previousBalance: bigint; newBalance: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export interface IERC5805 extends BaseContract { connect(runner?: ContractRunner | null): IERC5805; waitForDeployment(): Promise; interface: IERC5805Interface; 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; CLOCK_MODE: TypedContractMethod<[], [string], "view">; clock: TypedContractMethod<[], [bigint], "view">; delegate: TypedContractMethod<[delegatee: AddressLike], [void], "nonpayable">; delegateBySig: TypedContractMethod<[ delegatee: AddressLike, nonce: BigNumberish, expiry: BigNumberish, v: BigNumberish, r: BytesLike, s: BytesLike ], [ void ], "nonpayable">; delegates: TypedContractMethod<[account: AddressLike], [string], "view">; getPastTotalSupply: TypedContractMethod<[ timepoint: BigNumberish ], [ bigint ], "view">; getPastVotes: TypedContractMethod<[ account: AddressLike, timepoint: BigNumberish ], [ bigint ], "view">; getVotes: TypedContractMethod<[account: AddressLike], [bigint], "view">; getFunction(key: string | FunctionFragment): T; getFunction(nameOrSignature: "CLOCK_MODE"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "clock"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "delegate"): TypedContractMethod<[delegatee: AddressLike], [void], "nonpayable">; getFunction(nameOrSignature: "delegateBySig"): TypedContractMethod<[ delegatee: AddressLike, nonce: BigNumberish, expiry: BigNumberish, v: BigNumberish, r: BytesLike, s: BytesLike ], [ void ], "nonpayable">; getFunction(nameOrSignature: "delegates"): TypedContractMethod<[account: AddressLike], [string], "view">; getFunction(nameOrSignature: "getPastTotalSupply"): TypedContractMethod<[timepoint: BigNumberish], [bigint], "view">; getFunction(nameOrSignature: "getPastVotes"): TypedContractMethod<[ account: AddressLike, timepoint: BigNumberish ], [ bigint ], "view">; getFunction(nameOrSignature: "getVotes"): TypedContractMethod<[account: AddressLike], [bigint], "view">; getEvent(key: "DelegateChanged"): TypedContractEvent; getEvent(key: "DelegateVotesChanged"): TypedContractEvent; filters: { "DelegateChanged(address,address,address)": TypedContractEvent; DelegateChanged: TypedContractEvent; "DelegateVotesChanged(address,uint256,uint256)": TypedContractEvent; DelegateVotesChanged: TypedContractEvent; }; }