generated from Kwenta/foundry-scaffold
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π·π» Add IPaymaster interface to MarginPaymaster
- Loading branch information
1 parent
c701c1c
commit 5bcbd49
Showing
1 changed file
with
11 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity 0.8.25; | ||
|
||
import {IPaymaster, PackedUserOperation} from "lib/account-abstraction/contracts/interfaces/IPaymaster.sol"; | ||
|
||
/// @title Kwenta Paymaster Contract | ||
/// @notice Responsible for paying tx gas fees using trader margin | ||
/// @author tommyrharper ([email protected]) | ||
contract MarginPaymaster { | ||
contract MarginPaymaster is IPaymaster { | ||
uint256 public number; | ||
|
||
function validatePaymasterUserOp( | ||
PackedUserOperation calldata, | ||
bytes32, | ||
uint256 | ||
) external returns (bytes memory context, uint256 validationData) {} | ||
|
||
function postOp(PostOpMode, bytes calldata, uint256, uint256) external {} | ||
|
||
function increment() public { | ||
number++; | ||
} | ||
|