/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import BN from "bn.js"; import { EventData, PastEventOptions } from "../Web3Types"; export interface TestTokenContract extends Truffle.Contract { "new"(meta?: Truffle.TransactionDetails): Promise; } export interface Approval { name: "Approval"; args: { owner: string; spender: string; value: BN; 0: string; 1: string; 2: BN; }; } export interface Transfer { name: "Transfer"; args: { from: string; to: string; value: BN; 0: string; 1: string; 2: BN; }; } type AllEvents = Approval | Transfer; export interface TestTokenInstance extends Truffle.ContractInstance { /** * See {IERC20-allowance}. */ allowance( owner: string, spender: string, txDetails?: Truffle.TransactionDetails ): 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: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( spender: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( spender: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( spender: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; }; /** * See {IERC20-balanceOf}. */ balanceOf( account: string, txDetails?: Truffle.TransactionDetails ): 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(txDetails?: Truffle.TransactionDetails): 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: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( spender: string, subtractedValue: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( spender: string, subtractedValue: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( spender: string, subtractedValue: number | BN | string, txDetails?: Truffle.TransactionDetails ): 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: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( spender: string, addedValue: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( spender: string, addedValue: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( spender: string, addedValue: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; }; /** * Returns the name of the token. */ name(txDetails?: Truffle.TransactionDetails): Promise; /** * Returns the symbol of the token, usually a shorter version of the name. */ symbol(txDetails?: Truffle.TransactionDetails): Promise; /** * See {IERC20-totalSupply}. */ totalSupply(txDetails?: Truffle.TransactionDetails): 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: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( to: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( to: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( to: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): 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: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( from: string, to: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( from: string, to: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( from: string, to: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; }; mint: { ( amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; }; methods: { /** * See {IERC20-allowance}. */ allowance( owner: string, spender: string, txDetails?: Truffle.TransactionDetails ): 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: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( spender: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( spender: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( spender: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; }; /** * See {IERC20-balanceOf}. */ balanceOf( account: string, txDetails?: Truffle.TransactionDetails ): 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(txDetails?: Truffle.TransactionDetails): 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: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( spender: string, subtractedValue: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( spender: string, subtractedValue: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( spender: string, subtractedValue: number | BN | string, txDetails?: Truffle.TransactionDetails ): 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: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( spender: string, addedValue: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( spender: string, addedValue: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( spender: string, addedValue: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; }; /** * Returns the name of the token. */ name(txDetails?: Truffle.TransactionDetails): Promise; /** * Returns the symbol of the token, usually a shorter version of the name. */ symbol(txDetails?: Truffle.TransactionDetails): Promise; /** * See {IERC20-totalSupply}. */ totalSupply(txDetails?: Truffle.TransactionDetails): 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: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( to: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( to: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( to: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): 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: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( from: string, to: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( from: string, to: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( from: string, to: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; }; mint: { ( amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; }; }; getPastEvents(event: string): Promise; getPastEvents( event: string, options: PastEventOptions, callback: (error: Error, event: EventData) => void ): Promise; getPastEvents(event: string, options: PastEventOptions): Promise; getPastEvents( event: string, callback: (error: Error, event: EventData) => void ): Promise; }