Skip to content

Commit

Permalink
Add empty contract
Browse files Browse the repository at this point in the history
  • Loading branch information
valar999 committed Jul 13, 2024
1 parent 8a8d4a9 commit 0667d7a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

34 changes: 34 additions & 0 deletions contracts/src/Wingman.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.25;

import { ERC7579ValidatorBase, ERC7579HookBase } from "modulekit/Modules.sol";
import { PackedUserOperation } from "modulekit/ModuleKit.sol";

/**
* @title Wingman
* @dev TODO
* @author inc4
*/
contract Wingman is ERC7579HookBase, ERC7579ValidatorBase {
function onInstall(bytes calldata data) external {
}

function onUninstall(bytes calldata) external override {
}

function isInitialized(address smartAccount) public view returns (bool) {
return true;
}

function isModuleType(uint256 typeID) external pure override returns (bool) {
return typeID == TYPE_HOOK || typeID == TYPE_VALIDATOR;
}

function name() external pure virtual returns (string memory) {
return "Web3Wingman";
}

function version() external pure virtual returns (string memory) {
return "0.1.0";
}
}

0 comments on commit 0667d7a

Please sign in to comment.