Skip to content

Commit

Permalink
chore: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
kopy-kat committed May 21, 2024
1 parent da454bd commit e0dbd8a
Show file tree
Hide file tree
Showing 12 changed files with 482 additions and 790 deletions.
8 changes: 0 additions & 8 deletions .gas-snapshot

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
workflow_dispatch:
push:
branches:
- "main"
pull_request:

jobs:
lint:
uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-lint.yaml@main"

build:
uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-build.yaml@main"

test:
needs: ["lint", "build"]
uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-test.yaml@main"
with:
foundry-fuzz-runs: 5000
foundry-profile: "test"
match-path: "test/**/*.sol"
61 changes: 0 additions & 61 deletions .github/workflows/test.yml

This file was deleted.

Empty file removed .gitmodules
Empty file.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node-linker=hoisted
1 change: 0 additions & 1 deletion .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"compiler-version": ["error", ">=0.8.0"],
"contract-name-camelcase": "off",
"const-name-snakecase": "off",
"custom-errors": "off",
"func-name-mixedcase": "off",
"func-visibility": ["error", { "ignoreConstructors": true }],
"max-line-length": ["error", 123],
Expand Down
3 changes: 3 additions & 0 deletions .solhintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
lib/
test/
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2024 Rhinestone

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
73 changes: 34 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,12 @@
{
"name": "erc7579-implementation",
"description": "sReference implementation for ERC-7579",
"description": "Reference implementation for ERC-7579",
"license": "MIT",
"version": "0.3.1",
"author": {
"name": "ERC-7579",
"url": "https://erc7579.com/"
},
"bugs": {
"url": "https://github.com/erc7579/erc7579-implementation/issues"
},
"dependencies": {
"@openzeppelin/contracts": "5.0.1",
"account-abstraction": "github:eth-infinitism/account-abstraction#develop",
"ds-test": "github:dapphub/ds-test",
"forge-std": "github:foundry-rs/forge-std",
"prettier": "^2.8.8",
"sentinellist": "github:rhinestonewtf/sentinellist",
"solady": "github:vectorized/solady",
"solhint": "^4.1.1"
},
"files": [
"artifacts",
"foundry.toml",
"remappings.txt",
"src",
"test/utils",
"CHANGELOG.md",
"LICENSE-GPL.md"
],
"homepage": "https://github.com/erc7579/erc7579-implementation/#readme",
"keywords": [
"blockchain",
"ethereum",
"foundry",
"smart-contracts",
"solidity",
"web3"
],
"publishConfig": {
"access": "public"
},
"repository": "github.com/erc7579/erc7579-implementation",
"scripts": {
"build": "forge build",
"build:optimized": "FOUNDRY_PROFILE=optimized forge build",
Expand All @@ -50,13 +15,43 @@
"gas:report": "forge test --gas-report --mp \"./test/integration/**/*.sol\" --nmt \"test(Fuzz)?_RevertWhen_\\w{1,}?\"",
"gas:snapshot": "forge snapshot --mp \"./test/integration/**/*.sol\" --nmt \"test(Fuzz)?_RevertWhen_\\w{1,}?\"",
"gas:snapshot:optimized": "pnpm run build:optimized && FOUNDRY_PROFILE=test-optimized forge snapshot --mp \"./test/integration/**/*.sol\" --nmt \"test(Fork)?(Fuzz)?_RevertWhen_\\w{1,}?\"",
"lint": "pnpm run lint:sol && bun run prettier:check",
"lint:sol": "forge fmt --check && pnpm solhint \"{script,src,test}/**/*.sol\"",
"prepack": "pnpm install",
"prettier:check": "prettier --check \"**/*.{json,md,svg,yml}\"",
"prettier:write": "prettier --write \"**/*.{json,md,svg,yml}\"",
"test": "forge test",
"test:lite": "FOUNDRY_PROFILE=lite forge test",
"test:optimized": "pnpm run build:optimized && FOUNDRY_PROFILE=test-optimized forge test"
},
"dependencies": {
"@rhinestone/sentinellist": "github:rhinestonewtf/sentinellist",
"account-abstraction": "github:eth-infinitism/account-abstraction#develop",
"ds-test": "github:dapphub/ds-test",
"forge-std": "github:foundry-rs/forge-std",
"solady": "github:vectorized/solady"
},
"devDependencies": {
"solhint": "^5.0.1"
},
"files": [
"src",
"foundry.toml",
"remappings.txt"
],
"homepage": "https://github.com/erc7579/erc7579-implementation#readme",
"repository": {
"type": "git",
"url": "https://github.com/erc7579/erc7579-implementation.git"
},
"bugs": {
"url": "https://github.com/erc7579/erc7579-implementation/issues"
},
"keywords": [
"account abstraction",
"modular smart account",
"ERC",
"standard",
"reference implementation"
],
"publishConfig": {
"access": "public"
}
}
Loading

0 comments on commit e0dbd8a

Please sign in to comment.