/* 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 { TypedEventFilter, TypedEvent, TypedListener } from "./commons"; interface MigratorInterface extends ethers.utils.Interface { functions: { "allowance(address,address)": FunctionFragment; "approve(address,uint256)": FunctionFragment; "balanceOf(address)": FunctionFragment; "decimals()": FunctionFragment; "decreaseAllowance(address,uint256)": FunctionFragment; "fromAsset()": FunctionFragment; "fromDecimals()": FunctionFragment; "increaseAllowance(address,uint256)": FunctionFragment; "name()": FunctionFragment; "symbol()": FunctionFragment; "toAsset()": FunctionFragment; "toDecimals()": FunctionFragment; "totalSupply()": FunctionFragment; "transfer(address,uint256)": FunctionFragment; "transferFrom(address,address,uint256)": FunctionFragment; "add(uint256)": FunctionFragment; "remove(uint256)": FunctionFragment; "claim(uint256)": FunctionFragment; "migrate(uint256)": 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: "fromAsset", values?: undefined): string; encodeFunctionData( functionFragment: "fromDecimals", values?: undefined ): string; encodeFunctionData( functionFragment: "increaseAllowance", values: [string, BigNumberish] ): string; encodeFunctionData(functionFragment: "name", values?: undefined): string; encodeFunctionData(functionFragment: "symbol", values?: undefined): string; encodeFunctionData(functionFragment: "toAsset", values?: undefined): string; encodeFunctionData( functionFragment: "toDecimals", 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: "add", values: [BigNumberish]): string; encodeFunctionData( functionFragment: "remove", values: [BigNumberish] ): string; encodeFunctionData(functionFragment: "claim", values: [BigNumberish]): string; encodeFunctionData( functionFragment: "migrate", values: [BigNumberish] ): 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: "fromAsset", data: BytesLike): Result; decodeFunctionResult( functionFragment: "fromDecimals", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "increaseAllowance", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; decodeFunctionResult(functionFragment: "toAsset", data: BytesLike): Result; decodeFunctionResult(functionFragment: "toDecimals", data: BytesLike): Result; decodeFunctionResult( functionFragment: "totalSupply", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; decodeFunctionResult( functionFragment: "transferFrom", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "add", data: BytesLike): Result; decodeFunctionResult(functionFragment: "remove", data: BytesLike): Result; decodeFunctionResult(functionFragment: "claim", data: BytesLike): Result; decodeFunctionResult(functionFragment: "migrate", data: BytesLike): Result; events: { "Approval(address,address,uint256)": EventFragment; "Transfer(address,address,uint256)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; } export class Migrator 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: MigratorInterface; functions: { /** * See {IERC20-allowance}. */ allowance( owner: string, spender: string, overrides?: CallOverrides ): Promise<[BigNumber]>; /** * See {IERC20-approve}. 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; fromAsset(overrides?: CallOverrides): Promise<[string]>; fromDecimals(overrides?: CallOverrides): Promise<[BigNumber]>; /** * 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]>; toAsset(overrides?: CallOverrides): Promise<[string]>; toDecimals(overrides?: CallOverrides): Promise<[BigNumber]>; /** * See {IERC20-totalSupply}. */ totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; /** * See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`. */ transfer( recipient: 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}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`. */ transferFrom( sender: string, recipient: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; add( _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; remove( _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; claim( _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; migrate( _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; }; /** * See {IERC20-allowance}. */ allowance( owner: string, spender: string, overrides?: CallOverrides ): Promise; /** * See {IERC20-approve}. 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; fromAsset(overrides?: CallOverrides): Promise; fromDecimals(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?: 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; toAsset(overrides?: CallOverrides): Promise; toDecimals(overrides?: CallOverrides): Promise; /** * See {IERC20-totalSupply}. */ totalSupply(overrides?: CallOverrides): Promise; /** * See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`. */ transfer( recipient: 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}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`. */ transferFrom( sender: string, recipient: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; add( _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; remove( _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; claim( _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; migrate( _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; callStatic: { /** * See {IERC20-allowance}. */ allowance( owner: string, spender: string, overrides?: CallOverrides ): Promise; /** * See {IERC20-approve}. 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; fromAsset(overrides?: CallOverrides): Promise; fromDecimals(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; toAsset(overrides?: CallOverrides): Promise; toDecimals(overrides?: CallOverrides): Promise; /** * See {IERC20-totalSupply}. */ totalSupply(overrides?: CallOverrides): Promise; /** * See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`. */ transfer( recipient: 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}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`. */ transferFrom( sender: string, recipient: string, amount: BigNumberish, overrides?: CallOverrides ): Promise; add(_amount: BigNumberish, overrides?: CallOverrides): Promise; remove(_amount: BigNumberish, overrides?: CallOverrides): Promise; claim(_amount: BigNumberish, overrides?: CallOverrides): Promise; migrate(_amount: BigNumberish, overrides?: CallOverrides): Promise; }; filters: { Approval( owner?: string | null, spender?: string | null, value?: null ): TypedEventFilter< [string, string, BigNumber], { owner: string; spender: string; value: BigNumber } >; Transfer( from?: string | null, to?: string | null, value?: null ): TypedEventFilter< [string, string, BigNumber], { from: string; to: string; value: BigNumber } >; }; estimateGas: { /** * See {IERC20-allowance}. */ allowance( owner: string, spender: string, overrides?: CallOverrides ): Promise; /** * See {IERC20-approve}. 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; fromAsset(overrides?: CallOverrides): Promise; fromDecimals(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?: 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; toAsset(overrides?: CallOverrides): Promise; toDecimals(overrides?: CallOverrides): Promise; /** * See {IERC20-totalSupply}. */ totalSupply(overrides?: CallOverrides): Promise; /** * See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`. */ transfer( recipient: 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}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`. */ transferFrom( sender: string, recipient: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; add( _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; remove( _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; claim( _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; migrate( _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; }; populateTransaction: { /** * See {IERC20-allowance}. */ allowance( owner: string, spender: string, overrides?: CallOverrides ): Promise; /** * See {IERC20-approve}. 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; fromAsset(overrides?: CallOverrides): Promise; fromDecimals(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?: 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; toAsset(overrides?: CallOverrides): Promise; toDecimals(overrides?: CallOverrides): Promise; /** * See {IERC20-totalSupply}. */ totalSupply(overrides?: CallOverrides): Promise; /** * See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`. */ transfer( recipient: 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}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`. */ transferFrom( sender: string, recipient: string, amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; add( _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; remove( _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; claim( _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; migrate( _amount: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; }; }