@opengsn/contracts
Advanced tools
Comparing version 3.0.0-alpha.4 to 3.0.0-alpha.5
{ | ||
"name": "@opengsn/contracts", | ||
"license": "GPL-3.0-only", | ||
"version": "3.0.0-alpha.4", | ||
"version": "3.0.0-alpha.5", | ||
"main": "types/truffle-contracts/index.d.ts", | ||
@@ -30,3 +30,3 @@ "scripts": { | ||
}, | ||
"gitHead": "b842ecd303d1e572a12a800af5188cb833cce37c" | ||
"gitHead": "84654d96e8e247b32a96f0546c376de36768a465" | ||
} |
@@ -47,73 +47,131 @@ /* Autogenerated file. Do not edit manually. */ | ||
postRelayedCall: { | ||
/** | ||
* Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
*/ | ||
renounceOwnership: { | ||
(txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
estimateGas(txDetails?: Truffle.TransactionDetails): Promise<number>; | ||
}; | ||
/** | ||
* Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. | ||
*/ | ||
transferOwnership: { | ||
(newOwner: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
*/ | ||
versionPaymaster(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
/** | ||
*/ | ||
getRelayHub(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
/** | ||
* 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<boolean>; | ||
/** | ||
* 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; | ||
}>; | ||
/** | ||
* The owner of the Paymaster can change the instance of the RelayHub this Paymaster works with. :warning: **Warning** :warning: The deposit on the previous RelayHub must be withdrawn first. | ||
*/ | ||
setRelayHub: { | ||
(hub: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(hub: string, txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the Forwarder this Paymaster works with.the Recipients must trust this Forwarder as well in order for the configuration to remain functional. | ||
*/ | ||
setTrustedForwarder: { | ||
(forwarder: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* :warning: **Warning** :warning: using incorrect Forwarder may cause the Paymaster to agreeing to pay for invalid transactions. | ||
*/ | ||
getTrustedForwarder(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
/** | ||
* Withdraw deposit from the RelayHub. | ||
* @param amount The amount to be subtracted from the sender. | ||
* @param target The target to which the amount will be transferred. | ||
*/ | ||
withdrawRelayHubDepositTo: { | ||
( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<Truffle.TransactionResponse<AllEvents>>; | ||
call( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
@@ -242,74 +300,7 @@ ): Promise<number>; | ||
/** | ||
* Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
*/ | ||
renounceOwnership: { | ||
(txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
estimateGas(txDetails?: Truffle.TransactionDetails): Promise<number>; | ||
}; | ||
/** | ||
* Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. | ||
*/ | ||
transferOwnership: { | ||
(newOwner: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
*/ | ||
versionPaymaster(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
/** | ||
*/ | ||
getRelayHub(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
/** | ||
* 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<boolean>; | ||
/** | ||
* 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; | ||
}>; | ||
_verifyForwarder( | ||
relayRequest: { | ||
request: { | ||
from: string; | ||
to: string; | ||
value: number | BN | string; | ||
gas: number | BN | string; | ||
nonce: number | BN | string; | ||
data: string; | ||
validUntilTime: number | BN | string; | ||
}; | ||
postRelayedCall: { | ||
( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
@@ -326,75 +317,57 @@ maxFeePerGas: number | BN | string; | ||
clientId: number | BN | string; | ||
}; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
/** | ||
* The owner of the Paymaster can change the instance of the RelayHub this Paymaster works with. :warning: **Warning** :warning: The deposit on the previous RelayHub must be withdrawn first. | ||
*/ | ||
setRelayHub: { | ||
(hub: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(hub: string, txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction( | ||
hub: string, | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the Forwarder this Paymaster works with.the Recipients must trust this Forwarder as well in order for the configuration to remain functional. | ||
*/ | ||
setTrustedForwarder: { | ||
(forwarder: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* :warning: **Warning** :warning: using incorrect Forwarder may cause the Paymaster to agreeing to pay for invalid transactions. | ||
*/ | ||
getTrustedForwarder(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
/** | ||
* Withdraw deposit from the RelayHub. | ||
* @param amount The amount to be subtracted from the sender. | ||
* @param target The target to which the amount will be transferred. | ||
*/ | ||
withdrawRelayHubDepositTo: { | ||
( | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<Truffle.TransactionResponse<AllEvents>>; | ||
call( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
@@ -426,73 +399,133 @@ ): Promise<number>; | ||
postRelayedCall: { | ||
/** | ||
* Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
*/ | ||
renounceOwnership: { | ||
(txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
estimateGas(txDetails?: Truffle.TransactionDetails): Promise<number>; | ||
}; | ||
/** | ||
* Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. | ||
*/ | ||
transferOwnership: { | ||
(newOwner: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
*/ | ||
versionPaymaster(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
/** | ||
*/ | ||
getRelayHub(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
/** | ||
* 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<boolean>; | ||
/** | ||
* 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; | ||
}>; | ||
/** | ||
* The owner of the Paymaster can change the instance of the RelayHub this Paymaster works with. :warning: **Warning** :warning: The deposit on the previous RelayHub must be withdrawn first. | ||
*/ | ||
setRelayHub: { | ||
(hub: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(hub: string, txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the Forwarder this Paymaster works with.the Recipients must trust this Forwarder as well in order for the configuration to remain functional. | ||
*/ | ||
setTrustedForwarder: { | ||
(forwarder: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* :warning: **Warning** :warning: using incorrect Forwarder may cause the Paymaster to agreeing to pay for invalid transactions. | ||
*/ | ||
getTrustedForwarder( | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
/** | ||
* Withdraw deposit from the RelayHub. | ||
* @param amount The amount to be subtracted from the sender. | ||
* @param target The target to which the amount will be transferred. | ||
*/ | ||
withdrawRelayHubDepositTo: { | ||
( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<Truffle.TransactionResponse<AllEvents>>; | ||
call( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
@@ -621,74 +654,7 @@ ): Promise<number>; | ||
/** | ||
* Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
*/ | ||
renounceOwnership: { | ||
(txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
estimateGas(txDetails?: Truffle.TransactionDetails): Promise<number>; | ||
}; | ||
/** | ||
* Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. | ||
*/ | ||
transferOwnership: { | ||
(newOwner: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
*/ | ||
versionPaymaster(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
/** | ||
*/ | ||
getRelayHub(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
/** | ||
* 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<boolean>; | ||
/** | ||
* 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; | ||
}>; | ||
_verifyForwarder( | ||
relayRequest: { | ||
request: { | ||
from: string; | ||
to: string; | ||
value: number | BN | string; | ||
gas: number | BN | string; | ||
nonce: number | BN | string; | ||
data: string; | ||
validUntilTime: number | BN | string; | ||
}; | ||
postRelayedCall: { | ||
( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
@@ -705,77 +671,57 @@ maxFeePerGas: number | BN | string; | ||
clientId: number | BN | string; | ||
}; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
/** | ||
* The owner of the Paymaster can change the instance of the RelayHub this Paymaster works with. :warning: **Warning** :warning: The deposit on the previous RelayHub must be withdrawn first. | ||
*/ | ||
setRelayHub: { | ||
(hub: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(hub: string, txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction( | ||
hub: string, | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the Forwarder this Paymaster works with.the Recipients must trust this Forwarder as well in order for the configuration to remain functional. | ||
*/ | ||
setTrustedForwarder: { | ||
(forwarder: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* :warning: **Warning** :warning: using incorrect Forwarder may cause the Paymaster to agreeing to pay for invalid transactions. | ||
*/ | ||
getTrustedForwarder( | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
/** | ||
* Withdraw deposit from the RelayHub. | ||
* @param amount The amount to be subtracted from the sender. | ||
* @param target The target to which the amount will be transferred. | ||
*/ | ||
withdrawRelayHubDepositTo: { | ||
( | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<Truffle.TransactionResponse<AllEvents>>; | ||
call( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
@@ -782,0 +728,0 @@ ): Promise<number>; |
@@ -63,29 +63,2 @@ /* Autogenerated file. Do not edit manually. */ | ||
_verifyForwarder( | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
deposit: { | ||
@@ -122,2 +95,196 @@ (txDetails?: Truffle.TransactionDetails): Promise< | ||
postRelayedCall: { | ||
( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<Truffle.TransactionResponse<AllEvents>>; | ||
call( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<Truffle.TransactionResponse<AllEvents>>; | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<string>; | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<number>; | ||
}; | ||
/** | ||
@@ -408,196 +575,2 @@ * Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<Truffle.TransactionResponse<AllEvents>>; | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<string>; | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<number>; | ||
}; | ||
postRelayedCall: { | ||
( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<Truffle.TransactionResponse<AllEvents>>; | ||
call( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
@@ -686,29 +659,2 @@ * leaving withdrawal public and unprotected | ||
_verifyForwarder( | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
deposit: { | ||
@@ -749,2 +695,196 @@ (txDetails?: Truffle.TransactionDetails): Promise< | ||
postRelayedCall: { | ||
( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<Truffle.TransactionResponse<AllEvents>>; | ||
call( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<Truffle.TransactionResponse<AllEvents>>; | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<string>; | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<number>; | ||
}; | ||
/** | ||
@@ -1039,196 +1179,2 @@ * Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<Truffle.TransactionResponse<AllEvents>>; | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<string>; | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<number>; | ||
}; | ||
postRelayedCall: { | ||
( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<Truffle.TransactionResponse<AllEvents>>; | ||
call( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
@@ -1235,0 +1181,0 @@ * leaving withdrawal public and unprotected |
@@ -63,29 +63,2 @@ /* Autogenerated file. Do not edit manually. */ | ||
_verifyForwarder( | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
/** | ||
@@ -117,106 +90,73 @@ * 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. | ||
/** | ||
* Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
*/ | ||
renounceOwnership: { | ||
(txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
estimateGas(txDetails?: Truffle.TransactionDetails): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the RelayHub this Paymaster works with. :warning: **Warning** :warning: The deposit on the previous RelayHub must be withdrawn first. | ||
*/ | ||
setRelayHub: { | ||
(hub: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(hub: string, txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the Forwarder this Paymaster works with.the Recipients must trust this Forwarder as well in order for the configuration to remain functional. | ||
*/ | ||
setTrustedForwarder: { | ||
(forwarder: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* 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<boolean>; | ||
/** | ||
* Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. | ||
*/ | ||
transferOwnership: { | ||
(newOwner: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* Withdraw deposit from the RelayHub. | ||
* @param amount The amount to be subtracted from the sender. | ||
* @param target The target to which the amount will be transferred. | ||
*/ | ||
withdrawRelayHubDepositTo: { | ||
postRelayedCall: { | ||
( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<Truffle.TransactionResponse<AllEvents>>; | ||
call( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
@@ -226,6 +166,2 @@ ): Promise<number>; | ||
/** | ||
*/ | ||
versionPaymaster(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
preRelayedCall: { | ||
@@ -350,73 +286,106 @@ ( | ||
postRelayedCall: { | ||
/** | ||
* Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
*/ | ||
renounceOwnership: { | ||
(txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
estimateGas(txDetails?: Truffle.TransactionDetails): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the RelayHub this Paymaster works with. :warning: **Warning** :warning: The deposit on the previous RelayHub must be withdrawn first. | ||
*/ | ||
setRelayHub: { | ||
(hub: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(hub: string, txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the Forwarder this Paymaster works with.the Recipients must trust this Forwarder as well in order for the configuration to remain functional. | ||
*/ | ||
setTrustedForwarder: { | ||
(forwarder: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* 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<boolean>; | ||
/** | ||
* Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. | ||
*/ | ||
transferOwnership: { | ||
(newOwner: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* Withdraw deposit from the RelayHub. | ||
* @param amount The amount to be subtracted from the sender. | ||
* @param target The target to which the amount will be transferred. | ||
*/ | ||
withdrawRelayHubDepositTo: { | ||
( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<Truffle.TransactionResponse<AllEvents>>; | ||
call( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
@@ -426,2 +395,6 @@ ): Promise<number>; | ||
/** | ||
*/ | ||
versionPaymaster(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
deposit: { | ||
@@ -471,29 +444,2 @@ (txDetails?: Truffle.TransactionDetails): Promise< | ||
_verifyForwarder( | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
/** | ||
@@ -527,106 +473,73 @@ * 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. | ||
/** | ||
* Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
*/ | ||
renounceOwnership: { | ||
(txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
estimateGas(txDetails?: Truffle.TransactionDetails): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the RelayHub this Paymaster works with. :warning: **Warning** :warning: The deposit on the previous RelayHub must be withdrawn first. | ||
*/ | ||
setRelayHub: { | ||
(hub: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(hub: string, txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the Forwarder this Paymaster works with.the Recipients must trust this Forwarder as well in order for the configuration to remain functional. | ||
*/ | ||
setTrustedForwarder: { | ||
(forwarder: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* 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<boolean>; | ||
/** | ||
* Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. | ||
*/ | ||
transferOwnership: { | ||
(newOwner: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* Withdraw deposit from the RelayHub. | ||
* @param amount The amount to be subtracted from the sender. | ||
* @param target The target to which the amount will be transferred. | ||
*/ | ||
withdrawRelayHubDepositTo: { | ||
postRelayedCall: { | ||
( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<Truffle.TransactionResponse<AllEvents>>; | ||
call( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
@@ -636,6 +549,2 @@ ): Promise<number>; | ||
/** | ||
*/ | ||
versionPaymaster(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
preRelayedCall: { | ||
@@ -760,73 +669,106 @@ ( | ||
postRelayedCall: { | ||
/** | ||
* Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
*/ | ||
renounceOwnership: { | ||
(txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
estimateGas(txDetails?: Truffle.TransactionDetails): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the RelayHub this Paymaster works with. :warning: **Warning** :warning: The deposit on the previous RelayHub must be withdrawn first. | ||
*/ | ||
setRelayHub: { | ||
(hub: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(hub: string, txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the Forwarder this Paymaster works with.the Recipients must trust this Forwarder as well in order for the configuration to remain functional. | ||
*/ | ||
setTrustedForwarder: { | ||
(forwarder: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* 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<boolean>; | ||
/** | ||
* Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. | ||
*/ | ||
transferOwnership: { | ||
(newOwner: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* Withdraw deposit from the RelayHub. | ||
* @param amount The amount to be subtracted from the sender. | ||
* @param target The target to which the amount will be transferred. | ||
*/ | ||
withdrawRelayHubDepositTo: { | ||
( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<Truffle.TransactionResponse<AllEvents>>; | ||
call( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
@@ -836,2 +778,6 @@ ): Promise<number>; | ||
/** | ||
*/ | ||
versionPaymaster(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
deposit: { | ||
@@ -838,0 +784,0 @@ (txDetails?: Truffle.TransactionDetails): Promise< |
@@ -63,29 +63,2 @@ /* Autogenerated file. Do not edit manually. */ | ||
_verifyForwarder( | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
deposit: { | ||
@@ -201,2 +174,121 @@ (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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<Truffle.TransactionResponse<AllEvents>>; | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<string>; | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<number>; | ||
}; | ||
/** | ||
@@ -332,32 +424,2 @@ * Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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 }>; | ||
methods: { | ||
@@ -380,29 +442,2 @@ CALLDATA_SIZE_LIMIT(txDetails?: Truffle.TransactionDetails): Promise<BN>; | ||
_verifyForwarder( | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
deposit: { | ||
@@ -520,2 +555,121 @@ (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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<Truffle.TransactionResponse<AllEvents>>; | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<string>; | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<number>; | ||
}; | ||
/** | ||
@@ -650,32 +804,2 @@ * Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
}; | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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 }>; | ||
}; | ||
@@ -682,0 +806,0 @@ |
@@ -63,29 +63,2 @@ /* Autogenerated file. Do not edit manually. */ | ||
_verifyForwarder( | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
deposit: { | ||
@@ -203,2 +176,121 @@ (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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<Truffle.TransactionResponse<AllEvents>>; | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<string>; | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<number>; | ||
}; | ||
/** | ||
@@ -349,32 +441,2 @@ * Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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 }>; | ||
methods: { | ||
@@ -397,29 +459,2 @@ CALLDATA_SIZE_LIMIT(txDetails?: Truffle.TransactionDetails): Promise<BN>; | ||
_verifyForwarder( | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
deposit: { | ||
@@ -541,2 +576,121 @@ (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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<Truffle.TransactionResponse<AllEvents>>; | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<string>; | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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<number>; | ||
}; | ||
/** | ||
@@ -686,32 +840,2 @@ * Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
}; | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: 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 }>; | ||
}; | ||
@@ -718,0 +842,0 @@ |
@@ -97,29 +97,2 @@ /* Autogenerated file. Do not edit manually. */ | ||
_verifyForwarder( | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
deposit: { | ||
@@ -160,128 +133,73 @@ (txDetails?: Truffle.TransactionDetails): Promise< | ||
/** | ||
* Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
*/ | ||
renounceOwnership: { | ||
(txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
estimateGas(txDetails?: Truffle.TransactionDetails): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the RelayHub this Paymaster works with. :warning: **Warning** :warning: The deposit on the previous RelayHub must be withdrawn first. | ||
*/ | ||
setRelayHub: { | ||
(hub: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(hub: string, txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the Forwarder this Paymaster works with.the Recipients must trust this Forwarder as well in order for the configuration to remain functional. | ||
*/ | ||
setTrustedForwarder: { | ||
(forwarder: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* 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<boolean>; | ||
/** | ||
* Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. | ||
*/ | ||
transferOwnership: { | ||
(newOwner: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
*/ | ||
versionPaymaster(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
withdrawAll: { | ||
(destination: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* Withdraw deposit from the RelayHub. | ||
* @param amount The amount to be subtracted from the sender. | ||
* @param target The target to which the amount will be transferred. | ||
*/ | ||
withdrawRelayHubDepositTo: { | ||
postRelayedCall: { | ||
( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<Truffle.TransactionResponse<AllEvents>>; | ||
call( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
@@ -410,73 +328,128 @@ ): Promise<number>; | ||
postRelayedCall: { | ||
/** | ||
* Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
*/ | ||
renounceOwnership: { | ||
(txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
estimateGas(txDetails?: Truffle.TransactionDetails): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the RelayHub this Paymaster works with. :warning: **Warning** :warning: The deposit on the previous RelayHub must be withdrawn first. | ||
*/ | ||
setRelayHub: { | ||
(hub: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(hub: string, txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the Forwarder this Paymaster works with.the Recipients must trust this Forwarder as well in order for the configuration to remain functional. | ||
*/ | ||
setTrustedForwarder: { | ||
(forwarder: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* 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<boolean>; | ||
/** | ||
* Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. | ||
*/ | ||
transferOwnership: { | ||
(newOwner: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
*/ | ||
versionPaymaster(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
withdrawAll: { | ||
(destination: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* Withdraw deposit from the RelayHub. | ||
* @param amount The amount to be subtracted from the sender. | ||
* @param target The target to which the amount will be transferred. | ||
*/ | ||
withdrawRelayHubDepositTo: { | ||
( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<Truffle.TransactionResponse<AllEvents>>; | ||
call( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
@@ -503,29 +476,2 @@ ): Promise<number>; | ||
_verifyForwarder( | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
deposit: { | ||
@@ -568,128 +514,73 @@ (txDetails?: Truffle.TransactionDetails): Promise< | ||
/** | ||
* Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
*/ | ||
renounceOwnership: { | ||
(txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
estimateGas(txDetails?: Truffle.TransactionDetails): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the RelayHub this Paymaster works with. :warning: **Warning** :warning: The deposit on the previous RelayHub must be withdrawn first. | ||
*/ | ||
setRelayHub: { | ||
(hub: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(hub: string, txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the Forwarder this Paymaster works with.the Recipients must trust this Forwarder as well in order for the configuration to remain functional. | ||
*/ | ||
setTrustedForwarder: { | ||
(forwarder: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* 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<boolean>; | ||
/** | ||
* Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. | ||
*/ | ||
transferOwnership: { | ||
(newOwner: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
*/ | ||
versionPaymaster(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
withdrawAll: { | ||
(destination: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* Withdraw deposit from the RelayHub. | ||
* @param amount The amount to be subtracted from the sender. | ||
* @param target The target to which the amount will be transferred. | ||
*/ | ||
withdrawRelayHubDepositTo: { | ||
postRelayedCall: { | ||
( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<Truffle.TransactionResponse<AllEvents>>; | ||
call( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
@@ -818,73 +709,128 @@ ): Promise<number>; | ||
postRelayedCall: { | ||
/** | ||
* Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
*/ | ||
renounceOwnership: { | ||
(txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
estimateGas(txDetails?: Truffle.TransactionDetails): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the RelayHub this Paymaster works with. :warning: **Warning** :warning: The deposit on the previous RelayHub must be withdrawn first. | ||
*/ | ||
setRelayHub: { | ||
(hub: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(hub: string, txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the Forwarder this Paymaster works with.the Recipients must trust this Forwarder as well in order for the configuration to remain functional. | ||
*/ | ||
setTrustedForwarder: { | ||
(forwarder: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* 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<boolean>; | ||
/** | ||
* Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. | ||
*/ | ||
transferOwnership: { | ||
(newOwner: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
*/ | ||
versionPaymaster(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
withdrawAll: { | ||
(destination: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* Withdraw deposit from the RelayHub. | ||
* @param amount The amount to be subtracted from the sender. | ||
* @param target The target to which the amount will be transferred. | ||
*/ | ||
withdrawRelayHubDepositTo: { | ||
( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<Truffle.TransactionResponse<AllEvents>>; | ||
call( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
@@ -891,0 +837,0 @@ ): Promise<number>; |
@@ -85,29 +85,2 @@ /* Autogenerated file. Do not edit manually. */ | ||
_verifyForwarder( | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
deposit: { | ||
@@ -148,126 +121,73 @@ (txDetails?: Truffle.TransactionDetails): Promise< | ||
/** | ||
* Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
*/ | ||
renounceOwnership: { | ||
(txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
estimateGas(txDetails?: Truffle.TransactionDetails): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the RelayHub this Paymaster works with. :warning: **Warning** :warning: The deposit on the previous RelayHub must be withdrawn first. | ||
*/ | ||
setRelayHub: { | ||
(hub: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(hub: string, txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the Forwarder this Paymaster works with.the Recipients must trust this Forwarder as well in order for the configuration to remain functional. | ||
*/ | ||
setTrustedForwarder: { | ||
(forwarder: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* 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<boolean>; | ||
/** | ||
* Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. | ||
*/ | ||
transferOwnership: { | ||
(newOwner: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
versionPaymaster(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
withdrawAll: { | ||
(destination: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* Withdraw deposit from the RelayHub. | ||
* @param amount The amount to be subtracted from the sender. | ||
* @param target The target to which the amount will be transferred. | ||
*/ | ||
withdrawRelayHubDepositTo: { | ||
postRelayedCall: { | ||
( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<Truffle.TransactionResponse<AllEvents>>; | ||
call( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
@@ -396,73 +316,126 @@ ): Promise<number>; | ||
postRelayedCall: { | ||
/** | ||
* Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
*/ | ||
renounceOwnership: { | ||
(txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
estimateGas(txDetails?: Truffle.TransactionDetails): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the RelayHub this Paymaster works with. :warning: **Warning** :warning: The deposit on the previous RelayHub must be withdrawn first. | ||
*/ | ||
setRelayHub: { | ||
(hub: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(hub: string, txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the Forwarder this Paymaster works with.the Recipients must trust this Forwarder as well in order for the configuration to remain functional. | ||
*/ | ||
setTrustedForwarder: { | ||
(forwarder: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* 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<boolean>; | ||
/** | ||
* Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. | ||
*/ | ||
transferOwnership: { | ||
(newOwner: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
versionPaymaster(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
withdrawAll: { | ||
(destination: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* Withdraw deposit from the RelayHub. | ||
* @param amount The amount to be subtracted from the sender. | ||
* @param target The target to which the amount will be transferred. | ||
*/ | ||
withdrawRelayHubDepositTo: { | ||
( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<Truffle.TransactionResponse<AllEvents>>; | ||
call( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
@@ -489,29 +462,2 @@ ): Promise<number>; | ||
_verifyForwarder( | ||
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; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
deposit: { | ||
@@ -554,126 +500,73 @@ (txDetails?: Truffle.TransactionDetails): Promise< | ||
/** | ||
* Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
*/ | ||
renounceOwnership: { | ||
(txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
estimateGas(txDetails?: Truffle.TransactionDetails): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the RelayHub this Paymaster works with. :warning: **Warning** :warning: The deposit on the previous RelayHub must be withdrawn first. | ||
*/ | ||
setRelayHub: { | ||
(hub: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(hub: string, txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the Forwarder this Paymaster works with.the Recipients must trust this Forwarder as well in order for the configuration to remain functional. | ||
*/ | ||
setTrustedForwarder: { | ||
(forwarder: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* 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<boolean>; | ||
/** | ||
* Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. | ||
*/ | ||
transferOwnership: { | ||
(newOwner: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
versionPaymaster(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
withdrawAll: { | ||
(destination: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* Withdraw deposit from the RelayHub. | ||
* @param amount The amount to be subtracted from the sender. | ||
* @param target The target to which the amount will be transferred. | ||
*/ | ||
withdrawRelayHubDepositTo: { | ||
postRelayedCall: { | ||
( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<Truffle.TransactionResponse<AllEvents>>; | ||
call( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
amount: number | BN | string, | ||
target: string, | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
txDetails?: Truffle.TransactionDetails | ||
@@ -802,73 +695,126 @@ ): Promise<number>; | ||
postRelayedCall: { | ||
/** | ||
* Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. | ||
*/ | ||
renounceOwnership: { | ||
(txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
estimateGas(txDetails?: Truffle.TransactionDetails): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the RelayHub this Paymaster works with. :warning: **Warning** :warning: The deposit on the previous RelayHub must be withdrawn first. | ||
*/ | ||
setRelayHub: { | ||
(hub: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call(hub: string, txDetails?: Truffle.TransactionDetails): Promise<void>; | ||
sendTransaction( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
hub: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* The owner of the Paymaster can change the instance of the Forwarder this Paymaster works with.the Recipients must trust this Forwarder as well in order for the configuration to remain functional. | ||
*/ | ||
setTrustedForwarder: { | ||
(forwarder: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
forwarder: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* 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<boolean>; | ||
/** | ||
* Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. | ||
*/ | ||
transferOwnership: { | ||
(newOwner: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
newOwner: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
versionPaymaster(txDetails?: Truffle.TransactionDetails): Promise<string>; | ||
withdrawAll: { | ||
(destination: string, txDetails?: Truffle.TransactionDetails): Promise< | ||
Truffle.TransactionResponse<AllEvents> | ||
>; | ||
call( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
destination: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<number>; | ||
}; | ||
/** | ||
* Withdraw deposit from the RelayHub. | ||
* @param amount The amount to be subtracted from the sender. | ||
* @param target The target to which the amount will be transferred. | ||
*/ | ||
withdrawRelayHubDepositTo: { | ||
( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<Truffle.TransactionResponse<AllEvents>>; | ||
call( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<void>; | ||
sendTransaction( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
): Promise<string>; | ||
estimateGas( | ||
context: string, | ||
success: boolean, | ||
gasUseWithoutPost: number | BN | string, | ||
relayData: { | ||
maxFeePerGas: number | BN | string; | ||
maxPriorityFeePerGas: number | BN | string; | ||
pctRelayFee: number | BN | string; | ||
baseRelayFee: number | BN | string; | ||
transactionCalldataGasUsed: number | BN | string; | ||
relayWorker: string; | ||
paymaster: string; | ||
forwarder: string; | ||
paymasterData: string; | ||
clientId: number | BN | string; | ||
}, | ||
amount: number | BN | string, | ||
target: string, | ||
txDetails?: Truffle.TransactionDetails | ||
@@ -875,0 +821,0 @@ ): Promise<number>; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
915233
20939