import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers"; import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi"; import { Listener, Provider } from "@ethersproject/providers"; import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; export interface ERC20PermitInterface extends utils.Interface { contractName: "ERC20Permit"; functions: { "allowance(address,address)": FunctionFragment; "approve(address,uint256)": FunctionFragment; "balanceOf(address)": FunctionFragment; "decimals()": FunctionFragment; "decreaseAllowance(address,uint256)": FunctionFragment; "increaseAllowance(address,uint256)": FunctionFragment; "name()": FunctionFragment; "symbol()": FunctionFragment; "totalSupply()": FunctionFragment; "transfer(address,uint256)": FunctionFragment; "transferFrom(address,address,uint256)": FunctionFragment; "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": FunctionFragment; "nonces(address)": FunctionFragment; "DOMAIN_SEPARATOR()": FunctionFragment; }; encodeFunctionData(functionFragment: "allowance", values: [string, string]): string; encodeFunctionData(functionFragment: "approve", values: [string, BigNumberish]): string; encodeFunctionData(functionFragment: "balanceOf", values: [string]): string; encodeFunctionData(functionFragment: "decimals", values?: undefined): string; encodeFunctionData(functionFragment: "decreaseAllowance", values: [string, BigNumberish]): string; encodeFunctionData(functionFragment: "increaseAllowance", values: [string, BigNumberish]): string; encodeFunctionData(functionFragment: "name", values?: undefined): string; encodeFunctionData(functionFragment: "symbol", values?: undefined): string; encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string; encodeFunctionData(functionFragment: "transfer", values: [string, BigNumberish]): string; encodeFunctionData(functionFragment: "transferFrom", values: [string, string, BigNumberish]): string; encodeFunctionData(functionFragment: "permit", values: [ string, string, BigNumberish, BigNumberish, BigNumberish, BytesLike, BytesLike ]): string; encodeFunctionData(functionFragment: "nonces", values: [string]): string; encodeFunctionData(functionFragment: "DOMAIN_SEPARATOR", values?: undefined): string; decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result; decodeFunctionResult(functionFragment: "decreaseAllowance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "increaseAllowance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "name", 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; decodeFunctionResult(functionFragment: "permit", data: BytesLike): Result; decodeFunctionResult(functionFragment: "nonces", data: BytesLike): Result; decodeFunctionResult(functionFragment: "DOMAIN_SEPARATOR", data: BytesLike): Result; events: { "Approval(address,address,uint256)": EventFragment; "Transfer(address,address,uint256)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; } export declare type ApprovalEvent = TypedEvent<[ string, string, BigNumber ], { owner: string; spender: string; value: BigNumber; }>; export declare type ApprovalEventFilter = TypedEventFilter; export declare type TransferEvent = TypedEvent<[ string, string, BigNumber ], { from: string; to: string; value: BigNumber; }>; export declare type TransferEventFilter = TypedEventFilter; export interface ERC20Permit extends BaseContract { contractName: "ERC20Permit"; connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; interface: ERC20PermitInterface; queryFilter(event: TypedEventFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>; listeners(eventFilter?: TypedEventFilter): Array>; listeners(eventName?: string): Array; removeAllListeners(eventFilter: TypedEventFilter): this; removeAllListeners(eventName?: string): this; off: OnEvent; on: OnEvent; once: OnEvent; removeListener: OnEvent; functions: { /** * See {IERC20-allowance}. */ allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<[BigNumber]>; /** * See {IERC20-approve}. NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on `transferFrom`. This is semantically equivalent to an infinite approval. Requirements: - `spender` cannot be the zero address. */ approve(spender: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC20-balanceOf}. */ balanceOf(account: string, overrides?: CallOverrides): Promise<[BigNumber]>; /** * Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}. */ decimals(overrides?: CallOverrides): Promise<[number]>; /** * Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`. */ decreaseAllowance(spender: string, subtractedValue: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. */ increaseAllowance(spender: string, addedValue: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Returns the name of the token. */ name(overrides?: CallOverrides): Promise<[string]>; /** * Returns the symbol of the token, usually a shorter version of the name. */ symbol(overrides?: CallOverrides): Promise<[string]>; /** * See {IERC20-totalSupply}. */ totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; /** * See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `amount`. */ transfer(to: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. NOTE: Does not update the allowance if the current allowance is the maximum `uint256`. Requirements: - `from` and `to` cannot be the zero address. - `from` must have a balance of at least `amount`. - the caller must have allowance for ``from``'s tokens of at least `amount`. */ transferFrom(from: string, to: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC20Permit-permit}. */ permit(owner: string, spender: string, value: BigNumberish, deadline: BigNumberish, v: BigNumberish, r: BytesLike, s: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC20Permit-nonces}. */ nonces(owner: string, overrides?: CallOverrides): Promise<[BigNumber]>; /** * See {IERC20Permit-DOMAIN_SEPARATOR}. */ DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise<[string]>; }; /** * See {IERC20-allowance}. */ allowance(owner: string, spender: string, overrides?: CallOverrides): Promise; /** * See {IERC20-approve}. NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on `transferFrom`. This is semantically equivalent to an infinite approval. Requirements: - `spender` cannot be the zero address. */ approve(spender: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC20-balanceOf}. */ balanceOf(account: string, overrides?: CallOverrides): Promise; /** * Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}. */ decimals(overrides?: CallOverrides): Promise; /** * Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`. */ decreaseAllowance(spender: string, subtractedValue: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. */ increaseAllowance(spender: string, addedValue: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Returns the name of the token. */ name(overrides?: CallOverrides): Promise; /** * Returns the symbol of the token, usually a shorter version of the name. */ symbol(overrides?: CallOverrides): Promise; /** * See {IERC20-totalSupply}. */ totalSupply(overrides?: CallOverrides): Promise; /** * See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `amount`. */ transfer(to: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. NOTE: Does not update the allowance if the current allowance is the maximum `uint256`. Requirements: - `from` and `to` cannot be the zero address. - `from` must have a balance of at least `amount`. - the caller must have allowance for ``from``'s tokens of at least `amount`. */ transferFrom(from: string, to: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC20Permit-permit}. */ permit(owner: string, spender: string, value: BigNumberish, deadline: BigNumberish, v: BigNumberish, r: BytesLike, s: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC20Permit-nonces}. */ nonces(owner: string, overrides?: CallOverrides): Promise; /** * See {IERC20Permit-DOMAIN_SEPARATOR}. */ DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; callStatic: { /** * See {IERC20-allowance}. */ allowance(owner: string, spender: string, overrides?: CallOverrides): Promise; /** * See {IERC20-approve}. NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on `transferFrom`. This is semantically equivalent to an infinite approval. Requirements: - `spender` cannot be the zero address. */ approve(spender: string, amount: BigNumberish, overrides?: CallOverrides): Promise; /** * See {IERC20-balanceOf}. */ balanceOf(account: string, overrides?: CallOverrides): Promise; /** * Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}. */ decimals(overrides?: CallOverrides): Promise; /** * Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`. */ decreaseAllowance(spender: string, subtractedValue: BigNumberish, overrides?: CallOverrides): Promise; /** * Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. */ increaseAllowance(spender: string, addedValue: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the name of the token. */ name(overrides?: CallOverrides): Promise; /** * Returns the symbol of the token, usually a shorter version of the name. */ symbol(overrides?: CallOverrides): Promise; /** * See {IERC20-totalSupply}. */ totalSupply(overrides?: CallOverrides): Promise; /** * See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `amount`. */ transfer(to: string, amount: BigNumberish, overrides?: CallOverrides): Promise; /** * See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. NOTE: Does not update the allowance if the current allowance is the maximum `uint256`. Requirements: - `from` and `to` cannot be the zero address. - `from` must have a balance of at least `amount`. - the caller must have allowance for ``from``'s tokens of at least `amount`. */ transferFrom(from: string, to: string, amount: BigNumberish, overrides?: CallOverrides): Promise; /** * See {IERC20Permit-permit}. */ permit(owner: string, spender: string, value: BigNumberish, deadline: BigNumberish, v: BigNumberish, r: BytesLike, s: BytesLike, overrides?: CallOverrides): Promise; /** * See {IERC20Permit-nonces}. */ nonces(owner: string, overrides?: CallOverrides): Promise; /** * See {IERC20Permit-DOMAIN_SEPARATOR}. */ DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; }; filters: { "Approval(address,address,uint256)"(owner?: string | null, spender?: string | null, value?: null): ApprovalEventFilter; Approval(owner?: string | null, spender?: string | null, value?: null): ApprovalEventFilter; "Transfer(address,address,uint256)"(from?: string | null, to?: string | null, value?: null): TransferEventFilter; Transfer(from?: string | null, to?: string | null, value?: null): TransferEventFilter; }; estimateGas: { /** * See {IERC20-allowance}. */ allowance(owner: string, spender: string, overrides?: CallOverrides): Promise; /** * See {IERC20-approve}. NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on `transferFrom`. This is semantically equivalent to an infinite approval. Requirements: - `spender` cannot be the zero address. */ approve(spender: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC20-balanceOf}. */ balanceOf(account: string, overrides?: CallOverrides): Promise; /** * Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}. */ decimals(overrides?: CallOverrides): Promise; /** * Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`. */ decreaseAllowance(spender: string, subtractedValue: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. */ increaseAllowance(spender: string, addedValue: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Returns the name of the token. */ name(overrides?: CallOverrides): Promise; /** * Returns the symbol of the token, usually a shorter version of the name. */ symbol(overrides?: CallOverrides): Promise; /** * See {IERC20-totalSupply}. */ totalSupply(overrides?: CallOverrides): Promise; /** * See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `amount`. */ transfer(to: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. NOTE: Does not update the allowance if the current allowance is the maximum `uint256`. Requirements: - `from` and `to` cannot be the zero address. - `from` must have a balance of at least `amount`. - the caller must have allowance for ``from``'s tokens of at least `amount`. */ transferFrom(from: string, to: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC20Permit-permit}. */ permit(owner: string, spender: string, value: BigNumberish, deadline: BigNumberish, v: BigNumberish, r: BytesLike, s: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC20Permit-nonces}. */ nonces(owner: string, overrides?: CallOverrides): Promise; /** * See {IERC20Permit-DOMAIN_SEPARATOR}. */ DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; }; populateTransaction: { /** * See {IERC20-allowance}. */ allowance(owner: string, spender: string, overrides?: CallOverrides): Promise; /** * See {IERC20-approve}. NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on `transferFrom`. This is semantically equivalent to an infinite approval. Requirements: - `spender` cannot be the zero address. */ approve(spender: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC20-balanceOf}. */ balanceOf(account: string, overrides?: CallOverrides): Promise; /** * Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}. */ decimals(overrides?: CallOverrides): Promise; /** * Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`. */ decreaseAllowance(spender: string, subtractedValue: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. */ increaseAllowance(spender: string, addedValue: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Returns the name of the token. */ name(overrides?: CallOverrides): Promise; /** * Returns the symbol of the token, usually a shorter version of the name. */ symbol(overrides?: CallOverrides): Promise; /** * See {IERC20-totalSupply}. */ totalSupply(overrides?: CallOverrides): Promise; /** * See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `amount`. */ transfer(to: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. NOTE: Does not update the allowance if the current allowance is the maximum `uint256`. Requirements: - `from` and `to` cannot be the zero address. - `from` must have a balance of at least `amount`. - the caller must have allowance for ``from``'s tokens of at least `amount`. */ transferFrom(from: string, to: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC20Permit-permit}. */ permit(owner: string, spender: string, value: BigNumberish, deadline: BigNumberish, v: BigNumberish, r: BytesLike, s: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC20Permit-nonces}. */ nonces(owner: string, overrides?: CallOverrides): Promise; /** * See {IERC20Permit-DOMAIN_SEPARATOR}. */ DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; }; }