/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import BN from "bn.js"; import { EventData, PastEventOptions } from "../Web3Types"; export interface ForwarderContract extends Truffle.Contract { "new"(meta?: Truffle.TransactionDetails): Promise; } export interface DomainRegistered { name: "DomainRegistered"; args: { domainSeparator: string; domainValue: string; 0: string; 1: string; }; } export interface RequestTypeRegistered { name: "RequestTypeRegistered"; args: { typeHash: string; typeStr: string; 0: string; 1: string; }; } type AllEvents = DomainRegistered | RequestTypeRegistered; export interface ForwarderInstance extends Truffle.ContractInstance { EIP712_DOMAIN_TYPE(txDetails?: Truffle.TransactionDetails): Promise; GENERIC_PARAMS(txDetails?: Truffle.TransactionDetails): Promise; domains( arg0: string, txDetails?: Truffle.TransactionDetails ): Promise; typeHashes( arg0: string, txDetails?: Truffle.TransactionDetails ): Promise; /** * @param from The address of a sender. */ getNonce(from: string, txDetails?: Truffle.TransactionDetails): Promise; /** * Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas. */ supportsInterface( interfaceId: string, txDetails?: Truffle.TransactionDetails ): Promise; verify( req: { from: string; to: string; value: number | BN | string; gas: number | BN | string; nonce: number | BN | string; data: string; validUntilTime: number | BN | string; }, domainSeparator: string, requestTypeHash: string, suffixData: string, sig: string, txDetails?: Truffle.TransactionDetails ): Promise; execute: { ( req: { from: string; to: string; value: number | BN | string; gas: number | BN | string; nonce: number | BN | string; data: string; validUntilTime: number | BN | string; }, domainSeparator: string, requestTypeHash: string, suffixData: string, sig: string, txDetails?: Truffle.TransactionDetails ): Promise>; call( req: { from: string; to: string; value: number | BN | string; gas: number | BN | string; nonce: number | BN | string; data: string; validUntilTime: number | BN | string; }, domainSeparator: string, requestTypeHash: string, suffixData: string, sig: string, txDetails?: Truffle.TransactionDetails ): Promise<{ 0: boolean; 1: string }>; sendTransaction( req: { from: string; to: string; value: number | BN | string; gas: number | BN | string; nonce: number | BN | string; data: string; validUntilTime: number | BN | string; }, domainSeparator: string, requestTypeHash: string, suffixData: string, sig: string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( req: { from: string; to: string; value: number | BN | string; gas: number | BN | string; nonce: number | BN | string; data: string; validUntilTime: number | BN | string; }, domainSeparator: string, requestTypeHash: string, suffixData: string, sig: string, txDetails?: Truffle.TransactionDetails ): Promise; }; /** * Register a new Request typehash.This is necessary for the Forwarder to be able to verify the signatures conforming to the ERC-712. * @param typeName The name of the request type. * @param typeSuffix Any extra data after the generic params. Must contain add at least one param. The generic ForwardRequest type is always registered by the constructor. */ registerRequestType: { ( typeName: string, typeSuffix: string, txDetails?: Truffle.TransactionDetails ): Promise>; call( typeName: string, typeSuffix: string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( typeName: string, typeSuffix: string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( typeName: string, typeSuffix: string, txDetails?: Truffle.TransactionDetails ): Promise; }; /** * Register a new domain separator.This is necessary for the Forwarder to be able to verify the signatures conforming to the ERC-712.The domain separator must have the following fields: `name`, `version`, `chainId`, `verifyingContract`. The `chainId` is the current network's `chainId`, and the `verifyingContract` is this Forwarder's address. This method accepts the domain name and version to create and register the domain separator value. * @param name The domain's display name. * @param version The domain/protocol version. */ registerDomainSeparator: { ( name: string, version: string, txDetails?: Truffle.TransactionDetails ): Promise>; call( name: string, version: string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( name: string, version: string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( name: string, version: string, txDetails?: Truffle.TransactionDetails ): Promise; }; _getEncoded( req: { from: string; to: string; value: number | BN | string; gas: number | BN | string; nonce: number | BN | string; data: string; validUntilTime: number | BN | string; }, requestTypeHash: string, suffixData: string, txDetails?: Truffle.TransactionDetails ): Promise; methods: { EIP712_DOMAIN_TYPE(txDetails?: Truffle.TransactionDetails): Promise; GENERIC_PARAMS(txDetails?: Truffle.TransactionDetails): Promise; domains( arg0: string, txDetails?: Truffle.TransactionDetails ): Promise; typeHashes( arg0: string, txDetails?: Truffle.TransactionDetails ): Promise; /** * @param from The address of a sender. */ getNonce(from: string, txDetails?: Truffle.TransactionDetails): Promise; /** * Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas. */ supportsInterface( interfaceId: string, txDetails?: Truffle.TransactionDetails ): Promise; verify( req: { from: string; to: string; value: number | BN | string; gas: number | BN | string; nonce: number | BN | string; data: string; validUntilTime: number | BN | string; }, domainSeparator: string, requestTypeHash: string, suffixData: string, sig: string, txDetails?: Truffle.TransactionDetails ): Promise; execute: { ( req: { from: string; to: string; value: number | BN | string; gas: number | BN | string; nonce: number | BN | string; data: string; validUntilTime: number | BN | string; }, domainSeparator: string, requestTypeHash: string, suffixData: string, sig: string, txDetails?: Truffle.TransactionDetails ): Promise>; call( req: { from: string; to: string; value: number | BN | string; gas: number | BN | string; nonce: number | BN | string; data: string; validUntilTime: number | BN | string; }, domainSeparator: string, requestTypeHash: string, suffixData: string, sig: string, txDetails?: Truffle.TransactionDetails ): Promise<{ 0: boolean; 1: string }>; sendTransaction( req: { from: string; to: string; value: number | BN | string; gas: number | BN | string; nonce: number | BN | string; data: string; validUntilTime: number | BN | string; }, domainSeparator: string, requestTypeHash: string, suffixData: string, sig: string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( req: { from: string; to: string; value: number | BN | string; gas: number | BN | string; nonce: number | BN | string; data: string; validUntilTime: number | BN | string; }, domainSeparator: string, requestTypeHash: string, suffixData: string, sig: string, txDetails?: Truffle.TransactionDetails ): Promise; }; /** * Register a new Request typehash.This is necessary for the Forwarder to be able to verify the signatures conforming to the ERC-712. * @param typeName The name of the request type. * @param typeSuffix Any extra data after the generic params. Must contain add at least one param. The generic ForwardRequest type is always registered by the constructor. */ registerRequestType: { ( typeName: string, typeSuffix: string, txDetails?: Truffle.TransactionDetails ): Promise>; call( typeName: string, typeSuffix: string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( typeName: string, typeSuffix: string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( typeName: string, typeSuffix: string, txDetails?: Truffle.TransactionDetails ): Promise; }; /** * Register a new domain separator.This is necessary for the Forwarder to be able to verify the signatures conforming to the ERC-712.The domain separator must have the following fields: `name`, `version`, `chainId`, `verifyingContract`. The `chainId` is the current network's `chainId`, and the `verifyingContract` is this Forwarder's address. This method accepts the domain name and version to create and register the domain separator value. * @param name The domain's display name. * @param version The domain/protocol version. */ registerDomainSeparator: { ( name: string, version: string, txDetails?: Truffle.TransactionDetails ): Promise>; call( name: string, version: string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( name: string, version: string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( name: string, version: string, txDetails?: Truffle.TransactionDetails ): Promise; }; _getEncoded( req: { from: string; to: string; value: number | BN | string; gas: number | BN | string; nonce: number | BN | string; data: string; validUntilTime: number | BN | string; }, requestTypeHash: string, suffixData: 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; }