/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import BN from "bn.js"; import { EventData, PastEventOptions } from "web3-eth-contract"; export interface ERC20Contract extends Truffle.Contract { "new"( name: string, symbol: string, 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 ERC20Instance extends Truffle.ContractInstance { /** * 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; /** * 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 {_setupDecimals} is called. * 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; /** * See {IERC20-totalSupply}. */ totalSupply(txDetails?: Truffle.TransactionDetails): Promise; /** * See {IERC20-balanceOf}. */ balanceOf( account: string, txDetails?: Truffle.TransactionDetails ): 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: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( recipient: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( recipient: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( recipient: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; }; /** * See {IERC20-allowance}. */ allowance( owner: string, spender: string, txDetails?: Truffle.TransactionDetails ): Promise; /** * See {IERC20-approve}. * 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-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: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( sender: string, recipient: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( sender: string, recipient: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( sender: string, recipient: string, amount: 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; }; /** * 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; }; methods: { /** * 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; /** * 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 {_setupDecimals} is called. * 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; /** * See {IERC20-totalSupply}. */ totalSupply(txDetails?: Truffle.TransactionDetails): Promise; /** * See {IERC20-balanceOf}. */ balanceOf( account: string, txDetails?: Truffle.TransactionDetails ): 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: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( recipient: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( recipient: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( recipient: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; }; /** * See {IERC20-allowance}. */ allowance( owner: string, spender: string, txDetails?: Truffle.TransactionDetails ): Promise; /** * See {IERC20-approve}. * 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-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: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( sender: string, recipient: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( sender: string, recipient: string, amount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( sender: string, recipient: string, amount: 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; }; /** * 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; }; }; 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; }