/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import BN from "bn.js"; import { EventData, PastEventOptions } from "../Web3Types"; export interface IERC20PermitContract extends Truffle.Contract { "new"(meta?: Truffle.TransactionDetails): Promise; } type AllEvents = never; export interface IERC20PermitInstance extends Truffle.ContractInstance { /** * Sets `value` as the allowance of `spender` over ``owner``'s tokens, given ``owner``'s signed approval. IMPORTANT: The same issues {IERC20-approve} has related to transaction ordering also apply here. Emits an {Approval} event. Requirements: - `spender` cannot be the zero address. - `deadline` must be a timestamp in the future. - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` over the EIP712-formatted function arguments. - the signature must use ``owner``'s current nonce (see {nonces}). For more information on the signature format, see the https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP section]. */ permit: { ( owner: string, spender: string, value: number | BN | string, deadline: number | BN | string, v: number | BN | string, r: string, s: string, txDetails?: Truffle.TransactionDetails ): Promise>; call( owner: string, spender: string, value: number | BN | string, deadline: number | BN | string, v: number | BN | string, r: string, s: string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( owner: string, spender: string, value: number | BN | string, deadline: number | BN | string, v: number | BN | string, r: string, s: string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( owner: string, spender: string, value: number | BN | string, deadline: number | BN | string, v: number | BN | string, r: string, s: string, txDetails?: Truffle.TransactionDetails ): Promise; }; /** * Returns the current nonce for `owner`. This value must be included whenever a signature is generated for {permit}. Every successful call to {permit} increases ``owner``'s nonce by one. This prevents a signature from being used multiple times. */ nonces(owner: string, txDetails?: Truffle.TransactionDetails): Promise; /** * Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ DOMAIN_SEPARATOR(txDetails?: Truffle.TransactionDetails): Promise; methods: { /** * Sets `value` as the allowance of `spender` over ``owner``'s tokens, given ``owner``'s signed approval. IMPORTANT: The same issues {IERC20-approve} has related to transaction ordering also apply here. Emits an {Approval} event. Requirements: - `spender` cannot be the zero address. - `deadline` must be a timestamp in the future. - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` over the EIP712-formatted function arguments. - the signature must use ``owner``'s current nonce (see {nonces}). For more information on the signature format, see the https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP section]. */ permit: { ( owner: string, spender: string, value: number | BN | string, deadline: number | BN | string, v: number | BN | string, r: string, s: string, txDetails?: Truffle.TransactionDetails ): Promise>; call( owner: string, spender: string, value: number | BN | string, deadline: number | BN | string, v: number | BN | string, r: string, s: string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( owner: string, spender: string, value: number | BN | string, deadline: number | BN | string, v: number | BN | string, r: string, s: string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( owner: string, spender: string, value: number | BN | string, deadline: number | BN | string, v: number | BN | string, r: string, s: string, txDetails?: Truffle.TransactionDetails ): Promise; }; /** * Returns the current nonce for `owner`. This value must be included whenever a signature is generated for {permit}. Every successful call to {permit} increases ``owner``'s nonce by one. This prevents a signature from being used multiple times. */ nonces(owner: string, txDetails?: Truffle.TransactionDetails): Promise; /** * Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ DOMAIN_SEPARATOR(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; }