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 Checkpoints { type Checkpoint224Struct = { _key: BigNumberish; _value: BigNumberish; }; type Checkpoint224StructOutput = [_key: bigint, _value: bigint] & { _key: bigint; _value: bigint; }; } export interface ERC20VotesInterface extends Interface { getFunction(nameOrSignature: "CLOCK_MODE" | "allowance" | "approve" | "balanceOf" | "checkpoints" | "clock" | "decimals" | "decreaseAllowance" | "delegate" | "delegateBySig" | "delegates" | "eip712Domain" | "getPastTotalSupply" | "getPastVotes" | "getVotes" | "increaseAllowance" | "name" | "nonces" | "numCheckpoints" | "symbol" | "totalSupply" | "transfer" | "transferFrom"): FunctionFragment; getEvent(nameOrSignatureOrTopic: "Approval" | "DelegateChanged" | "DelegateVotesChanged" | "EIP712DomainChanged" | "Transfer"): EventFragment; encodeFunctionData(functionFragment: "CLOCK_MODE", values?: undefined): string; encodeFunctionData(functionFragment: "allowance", values: [AddressLike, AddressLike]): string; encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string; encodeFunctionData(functionFragment: "checkpoints", values: [AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "clock", values?: undefined): string; encodeFunctionData(functionFragment: "decimals", values?: undefined): string; encodeFunctionData(functionFragment: "decreaseAllowance", values: [AddressLike, BigNumberish]): 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: "eip712Domain", values?: undefined): string; encodeFunctionData(functionFragment: "getPastTotalSupply", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "getPastVotes", values: [AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "getVotes", values: [AddressLike]): string; encodeFunctionData(functionFragment: "increaseAllowance", values: [AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "name", values?: undefined): string; encodeFunctionData(functionFragment: "nonces", values: [AddressLike]): string; encodeFunctionData(functionFragment: "numCheckpoints", values: [AddressLike]): string; encodeFunctionData(functionFragment: "symbol", values?: undefined): string; encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string; encodeFunctionData(functionFragment: "transfer", values: [AddressLike, BigNumberish]): string; encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string; decodeFunctionResult(functionFragment: "CLOCK_MODE", data: BytesLike): Result; decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; decodeFunctionResult(functionFragment: "checkpoints", data: BytesLike): Result; decodeFunctionResult(functionFragment: "clock", data: BytesLike): Result; decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result; decodeFunctionResult(functionFragment: "decreaseAllowance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "delegate", data: BytesLike): Result; decodeFunctionResult(functionFragment: "delegateBySig", data: BytesLike): Result; decodeFunctionResult(functionFragment: "delegates", data: BytesLike): Result; decodeFunctionResult(functionFragment: "eip712Domain", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getPastTotalSupply", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getPastVotes", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getVotes", data: BytesLike): Result; decodeFunctionResult(functionFragment: "increaseAllowance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; decodeFunctionResult(functionFragment: "nonces", data: BytesLike): Result; decodeFunctionResult(functionFragment: "numCheckpoints", data: BytesLike): Result; decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result; decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result; } export declare namespace ApprovalEvent { type InputTuple = [ owner: AddressLike, spender: AddressLike, value: BigNumberish ]; type OutputTuple = [owner: string, spender: string, value: bigint]; interface OutputObject { owner: string; spender: string; value: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } 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 declare namespace EIP712DomainChangedEvent { type InputTuple = []; type OutputTuple = []; interface OutputObject { } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace TransferEvent { type InputTuple = [ from: AddressLike, to: AddressLike, value: BigNumberish ]; type OutputTuple = [from: string, to: string, value: bigint]; interface OutputObject { from: string; to: string; value: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export interface ERC20Votes extends BaseContract { connect(runner?: ContractRunner | null): ERC20Votes; waitForDeployment(): Promise; interface: ERC20VotesInterface; 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">; allowance: TypedContractMethod<[ owner: AddressLike, spender: AddressLike ], [ bigint ], "view">; approve: TypedContractMethod<[ spender: AddressLike, amount: BigNumberish ], [ boolean ], "nonpayable">; balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">; checkpoints: TypedContractMethod<[ account: AddressLike, pos: BigNumberish ], [ Checkpoints.Checkpoint224StructOutput ], "view">; clock: TypedContractMethod<[], [bigint], "view">; decimals: TypedContractMethod<[], [bigint], "view">; decreaseAllowance: TypedContractMethod<[ spender: AddressLike, subtractedValue: BigNumberish ], [ boolean ], "nonpayable">; 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">; eip712Domain: TypedContractMethod<[ ], [ [ string, string, string, bigint, string, string, bigint[] ] & { fields: string; name: string; version: string; chainId: bigint; verifyingContract: string; salt: string; extensions: bigint[]; } ], "view">; getPastTotalSupply: TypedContractMethod<[ timepoint: BigNumberish ], [ bigint ], "view">; getPastVotes: TypedContractMethod<[ account: AddressLike, timepoint: BigNumberish ], [ bigint ], "view">; getVotes: TypedContractMethod<[account: AddressLike], [bigint], "view">; increaseAllowance: TypedContractMethod<[ spender: AddressLike, addedValue: BigNumberish ], [ boolean ], "nonpayable">; name: TypedContractMethod<[], [string], "view">; nonces: TypedContractMethod<[owner: AddressLike], [bigint], "view">; numCheckpoints: TypedContractMethod<[account: AddressLike], [bigint], "view">; symbol: TypedContractMethod<[], [string], "view">; totalSupply: TypedContractMethod<[], [bigint], "view">; transfer: TypedContractMethod<[ to: AddressLike, amount: BigNumberish ], [ boolean ], "nonpayable">; transferFrom: TypedContractMethod<[ from: AddressLike, to: AddressLike, amount: BigNumberish ], [ boolean ], "nonpayable">; getFunction(key: string | FunctionFragment): T; getFunction(nameOrSignature: "CLOCK_MODE"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "allowance"): TypedContractMethod<[ owner: AddressLike, spender: AddressLike ], [ bigint ], "view">; getFunction(nameOrSignature: "approve"): TypedContractMethod<[ spender: AddressLike, amount: BigNumberish ], [ boolean ], "nonpayable">; getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[account: AddressLike], [bigint], "view">; getFunction(nameOrSignature: "checkpoints"): TypedContractMethod<[ account: AddressLike, pos: BigNumberish ], [ Checkpoints.Checkpoint224StructOutput ], "view">; getFunction(nameOrSignature: "clock"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "decimals"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "decreaseAllowance"): TypedContractMethod<[ spender: AddressLike, subtractedValue: BigNumberish ], [ boolean ], "nonpayable">; 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: "eip712Domain"): TypedContractMethod<[ ], [ [ string, string, string, bigint, string, string, bigint[] ] & { fields: string; name: string; version: string; chainId: bigint; verifyingContract: string; salt: string; extensions: bigint[]; } ], "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">; getFunction(nameOrSignature: "increaseAllowance"): TypedContractMethod<[ spender: AddressLike, addedValue: BigNumberish ], [ boolean ], "nonpayable">; getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "nonces"): TypedContractMethod<[owner: AddressLike], [bigint], "view">; getFunction(nameOrSignature: "numCheckpoints"): TypedContractMethod<[account: AddressLike], [bigint], "view">; getFunction(nameOrSignature: "symbol"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "transfer"): TypedContractMethod<[ to: AddressLike, amount: BigNumberish ], [ boolean ], "nonpayable">; getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[ from: AddressLike, to: AddressLike, amount: BigNumberish ], [ boolean ], "nonpayable">; getEvent(key: "Approval"): TypedContractEvent; getEvent(key: "DelegateChanged"): TypedContractEvent; getEvent(key: "DelegateVotesChanged"): TypedContractEvent; getEvent(key: "EIP712DomainChanged"): TypedContractEvent; getEvent(key: "Transfer"): TypedContractEvent; filters: { "Approval(address,address,uint256)": TypedContractEvent; Approval: TypedContractEvent; "DelegateChanged(address,address,address)": TypedContractEvent; DelegateChanged: TypedContractEvent; "DelegateVotesChanged(address,uint256,uint256)": TypedContractEvent; DelegateVotesChanged: TypedContractEvent; "EIP712DomainChanged()": TypedContractEvent; EIP712DomainChanged: TypedContractEvent; "Transfer(address,address,uint256)": TypedContractEvent; Transfer: TypedContractEvent; }; }