-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore:rename verifying singelton paymaster to sponsorship paymaster a…
…nd also only keep v2 (overwrite v1.1.0)
- Loading branch information
1 parent
1c5157c
commit 6185ccf
Showing
13 changed files
with
149 additions
and
704 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ymasters/IVerifyingSingletonPaymaster.sol → ...aces/paymasters/ISponsorshipPaymaster.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,26 @@ import {ECDSA} from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; | |
import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; | ||
import {UserOperation, UserOperationLib} from "@account-abstraction/contracts/interfaces/UserOperation.sol"; | ||
import "../BasePaymaster.sol"; | ||
import {VerifyingPaymasterErrors} from "../common/Errors.sol"; | ||
import {SponsorshipPaymasterErrors} from "../common/Errors.sol"; | ||
import {MathLib} from "../libs/MathLib.sol"; | ||
import {IVerifyingSingletonPaymaster} from "../interfaces/paymasters/IVerifyingSingletonPaymaster.sol"; | ||
|
||
contract VerifyingSingletonPaymasterV2 is | ||
import {ISponsorshipPaymaster} from "../interfaces/paymasters/ISponsorshipPaymaster.sol"; | ||
|
||
/** | ||
* @title SponsorshipPaymaster | ||
* @author livingrockrises<[email protected]> | ||
* @notice Based on Infinitism 'VerifyingPaymaster' contract | ||
* @dev This contract is used to sponsor the transaction fees of the user operations | ||
* Uses a verifying signer to provide the signature if predetermined conditions are met | ||
* regarding the user operation calldata. Also this paymaster is Singleton in nature which | ||
* means multiple Dapps/Wallet clients willing to sponsor the transactions can share this paymaster. | ||
* Maintains it's own accounting of the gas balance for each Dapp/Wallet client | ||
* and Manages it's own deposit on the EntryPoint. | ||
*/ | ||
contract SponsorshipPaymaster is | ||
BasePaymaster, | ||
ReentrancyGuard, | ||
VerifyingPaymasterErrors, | ||
IVerifyingSingletonPaymaster | ||
SponsorshipPaymasterErrors, | ||
ISponsorshipPaymaster | ||
{ | ||
using ECDSA for bytes32; | ||
using UserOperationLib for UserOperation; | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.