Skip to content

Commit

Permalink
πŸ‘·πŸ» Add IPaymaster interface to MarginPaymaster
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyrharper committed Jul 1, 2024
1 parent c701c1c commit 5bcbd49
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/MarginPaymaster.sol
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++;
}
Expand Down

0 comments on commit 5bcbd49

Please sign in to comment.