/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import BN from "bn.js"; import { EventData, PastEventOptions } from "../Web3Types"; export interface IPaymasterContract extends Truffle.Contract { "new"(meta?: Truffle.TransactionDetails): Promise; } type AllEvents = never; export interface IPaymasterInstance extends Truffle.ContractInstance { /** * 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; /** * Return the Gas Limits for Paymaster's functions and maximum msg.data length values for this Paymaster. This function allows different paymasters to have different properties without changes to the RelayHub. */ getGasAndDataLimits( txDetails?: Truffle.TransactionDetails ): Promise<{ acceptanceBudget: BN; preRelayedCallGasLimit: BN; postRelayedCallGasLimit: BN; calldataSizeLimit: BN; }>; /** * :warning: **Warning** :warning: using incorrect Forwarder may cause the Paymaster to agreeing to pay for invalid transactions. */ getTrustedForwarder(txDetails?: Truffle.TransactionDetails): Promise; /** */ getRelayHub(txDetails?: Truffle.TransactionDetails): Promise; preRelayedCall: { ( relayRequest: { request: { from: string; to: string; value: number | BN | string; gas: number | BN | string; nonce: number | BN | string; data: string; validUntilTime: number | BN | string; }; relayData: { maxFeePerGas: number | BN | string; maxPriorityFeePerGas: number | BN | string; transactionCalldataGasUsed: number | BN | string; relayWorker: string; paymaster: string; forwarder: string; paymasterData: string; clientId: number | BN | string; }; }, signature: string, approvalData: string, maxPossibleGas: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( relayRequest: { request: { from: string; to: string; value: number | BN | string; gas: number | BN | string; nonce: number | BN | string; data: string; validUntilTime: number | BN | string; }; relayData: { maxFeePerGas: number | BN | string; maxPriorityFeePerGas: number | BN | string; transactionCalldataGasUsed: number | BN | string; relayWorker: string; paymaster: string; forwarder: string; paymasterData: string; clientId: number | BN | string; }; }, signature: string, approvalData: string, maxPossibleGas: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise<{ 0: string; 1: boolean }>; sendTransaction( relayRequest: { request: { from: string; to: string; value: number | BN | string; gas: number | BN | string; nonce: number | BN | string; data: string; validUntilTime: number | BN | string; }; relayData: { maxFeePerGas: number | BN | string; maxPriorityFeePerGas: number | BN | string; transactionCalldataGasUsed: number | BN | string; relayWorker: string; paymaster: string; forwarder: string; paymasterData: string; clientId: number | BN | string; }; }, signature: string, approvalData: string, maxPossibleGas: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( relayRequest: { request: { from: string; to: string; value: number | BN | string; gas: number | BN | string; nonce: number | BN | string; data: string; validUntilTime: number | BN | string; }; relayData: { maxFeePerGas: number | BN | string; maxPriorityFeePerGas: number | BN | string; transactionCalldataGasUsed: number | BN | string; relayWorker: string; paymaster: string; forwarder: string; paymasterData: string; clientId: number | BN | string; }; }, signature: string, approvalData: string, maxPossibleGas: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; }; postRelayedCall: { ( context: string, success: boolean, gasUseWithoutPost: number | BN | string, relayData: { maxFeePerGas: number | BN | string; maxPriorityFeePerGas: number | BN | string; transactionCalldataGasUsed: number | BN | string; relayWorker: string; paymaster: string; forwarder: string; paymasterData: string; clientId: number | BN | string; }, txDetails?: Truffle.TransactionDetails ): Promise>; call( context: string, success: boolean, gasUseWithoutPost: number | BN | string, relayData: { maxFeePerGas: number | BN | string; maxPriorityFeePerGas: number | BN | string; transactionCalldataGasUsed: number | BN | string; relayWorker: string; paymaster: string; forwarder: string; paymasterData: string; clientId: number | BN | string; }, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( context: string, success: boolean, gasUseWithoutPost: number | BN | string, relayData: { maxFeePerGas: number | BN | string; maxPriorityFeePerGas: number | BN | string; transactionCalldataGasUsed: number | BN | string; relayWorker: string; paymaster: string; forwarder: string; paymasterData: string; clientId: number | BN | string; }, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( context: string, success: boolean, gasUseWithoutPost: number | BN | string, relayData: { maxFeePerGas: number | BN | string; maxPriorityFeePerGas: number | BN | string; transactionCalldataGasUsed: number | BN | string; relayWorker: string; paymaster: string; forwarder: string; paymasterData: string; clientId: number | BN | string; }, txDetails?: Truffle.TransactionDetails ): Promise; }; /** */ versionPaymaster(txDetails?: Truffle.TransactionDetails): Promise; methods: { /** * 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; /** * Return the Gas Limits for Paymaster's functions and maximum msg.data length values for this Paymaster. This function allows different paymasters to have different properties without changes to the RelayHub. */ getGasAndDataLimits( txDetails?: Truffle.TransactionDetails ): Promise<{ acceptanceBudget: BN; preRelayedCallGasLimit: BN; postRelayedCallGasLimit: BN; calldataSizeLimit: BN; }>; /** * :warning: **Warning** :warning: using incorrect Forwarder may cause the Paymaster to agreeing to pay for invalid transactions. */ getTrustedForwarder( txDetails?: Truffle.TransactionDetails ): Promise; /** */ getRelayHub(txDetails?: Truffle.TransactionDetails): Promise; preRelayedCall: { ( relayRequest: { request: { from: string; to: string; value: number | BN | string; gas: number | BN | string; nonce: number | BN | string; data: string; validUntilTime: number | BN | string; }; relayData: { maxFeePerGas: number | BN | string; maxPriorityFeePerGas: number | BN | string; transactionCalldataGasUsed: number | BN | string; relayWorker: string; paymaster: string; forwarder: string; paymasterData: string; clientId: number | BN | string; }; }, signature: string, approvalData: string, maxPossibleGas: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( relayRequest: { request: { from: string; to: string; value: number | BN | string; gas: number | BN | string; nonce: number | BN | string; data: string; validUntilTime: number | BN | string; }; relayData: { maxFeePerGas: number | BN | string; maxPriorityFeePerGas: number | BN | string; transactionCalldataGasUsed: number | BN | string; relayWorker: string; paymaster: string; forwarder: string; paymasterData: string; clientId: number | BN | string; }; }, signature: string, approvalData: string, maxPossibleGas: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise<{ 0: string; 1: boolean }>; sendTransaction( relayRequest: { request: { from: string; to: string; value: number | BN | string; gas: number | BN | string; nonce: number | BN | string; data: string; validUntilTime: number | BN | string; }; relayData: { maxFeePerGas: number | BN | string; maxPriorityFeePerGas: number | BN | string; transactionCalldataGasUsed: number | BN | string; relayWorker: string; paymaster: string; forwarder: string; paymasterData: string; clientId: number | BN | string; }; }, signature: string, approvalData: string, maxPossibleGas: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( relayRequest: { request: { from: string; to: string; value: number | BN | string; gas: number | BN | string; nonce: number | BN | string; data: string; validUntilTime: number | BN | string; }; relayData: { maxFeePerGas: number | BN | string; maxPriorityFeePerGas: number | BN | string; transactionCalldataGasUsed: number | BN | string; relayWorker: string; paymaster: string; forwarder: string; paymasterData: string; clientId: number | BN | string; }; }, signature: string, approvalData: string, maxPossibleGas: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; }; postRelayedCall: { ( context: string, success: boolean, gasUseWithoutPost: number | BN | string, relayData: { maxFeePerGas: number | BN | string; maxPriorityFeePerGas: number | BN | string; transactionCalldataGasUsed: number | BN | string; relayWorker: string; paymaster: string; forwarder: string; paymasterData: string; clientId: number | BN | string; }, txDetails?: Truffle.TransactionDetails ): Promise>; call( context: string, success: boolean, gasUseWithoutPost: number | BN | string, relayData: { maxFeePerGas: number | BN | string; maxPriorityFeePerGas: number | BN | string; transactionCalldataGasUsed: number | BN | string; relayWorker: string; paymaster: string; forwarder: string; paymasterData: string; clientId: number | BN | string; }, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( context: string, success: boolean, gasUseWithoutPost: number | BN | string, relayData: { maxFeePerGas: number | BN | string; maxPriorityFeePerGas: number | BN | string; transactionCalldataGasUsed: number | BN | string; relayWorker: string; paymaster: string; forwarder: string; paymasterData: string; clientId: number | BN | string; }, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( context: string, success: boolean, gasUseWithoutPost: number | BN | string, relayData: { maxFeePerGas: number | BN | string; maxPriorityFeePerGas: number | BN | string; transactionCalldataGasUsed: number | BN | string; relayWorker: string; paymaster: string; forwarder: string; paymasterData: string; clientId: number | BN | string; }, txDetails?: Truffle.TransactionDetails ): Promise; }; /** */ versionPaymaster(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; }