-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2ed21c
commit 7e0b7e6
Showing
4 changed files
with
43 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: 'actions/checkout@master' | ||
uses: "actions/checkout@master" | ||
- name: Set Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
|
@@ -20,8 +20,7 @@ jobs: | |
- name: Install dependencies | ||
run: yarn install --frozen-lockfile && yarn build | ||
- name: Lint sources | ||
run: | ||
yarn run lint | ||
run: yarn run lint | ||
|
||
unit_test: | ||
name: Unit tests | ||
|
@@ -32,34 +31,39 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: 'actions/checkout@master' | ||
uses: "actions/checkout@master" | ||
|
||
- name: Set Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Create a fake .secret file | ||
run: echo "primary twist rack vendor diagram image used route theme frown either will" > .secret | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile && yarn build | ||
|
||
- name: Run Hardhat Tests | ||
run: yarn test | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Configure SSH | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile && yarn build | ||
|
||
- name: Run Forge build | ||
run: | | ||
forge --version | ||
forge build --sizes | ||
id: forge-build | ||
|
||
- name: Run Hardhat Tests | ||
run: yarn test | ||
|
||
- name: Run Forge tests | ||
run: | | ||
forge test -vvv | ||
id: forge-test | ||
forge test -vvv | ||
id: forge-test |
10 changes: 10 additions & 0 deletions
10
contracts/smart-account/interfaces/modules/IERC7484SecurityPolicyPlugin.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.17; | ||
|
||
import {ISecurityPolicyPlugin} from "contracts/smart-account/interfaces/modules/ISecurityPolicyManagerPlugin.sol"; | ||
|
||
interface IERC7484SecurityPolicyPlugin is ISecurityPolicyPlugin { | ||
struct PolicyDetails { | ||
uint256 x; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
contracts/smart-account/modules/SecurityPolicies/ERC7484SecurityPolicy.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.17; | ||
|
||
// import {ISecurityPolicyPlugin} from "contracts/smart-account/interfaces/modules/ISecurityPolicyManagerPlugin.sol"; | ||
|
||
/// @title ERC7484 Security Policy Plugin | ||
/// @author @ankurdubey521 | ||
/// @dev Second Order Plugin to the Security Policy Manager Plugin, enforces checks as defined by ERC7484 | ||
// https://github.com/ethereum/EIPs/blob/231f3e25889dae1c7d21b4419fa27cee79a4ca42/EIPS/eip-7484.mdcontract | ||
|
||
contract ERC7484SecurityPolicyPlugin { | ||
function foo() external pure returns (uint256) { | ||
return 1; | ||
} | ||
} |
Submodule registry
updated
10 files
+1 −1 | .gitignore | |
+3 −3 | .gitmodules | |
+3 −3 | CHANGELOG.md | |
+1 −1 | foundry.toml | |
+0 −1 | lib/openzeppelin | |
+1 −0 | lib/openzeppelin-contracts | |
+1 −2 | remappings.txt | |
+1 −1 | src/base/EIP712Verifier.sol | |
+1 −1 | src/base/Schema.sol | |
+1 −1 | src/external/ResolverBase.sol |