Skip to content

Commit

Permalink
🎉 mise en place
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzdanilo committed Mar 26, 2024
0 parents commit 06a4d8c
Show file tree
Hide file tree
Showing 14 changed files with 99 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @cruzdanilo
24 changes: 24 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: test
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: oven-sh/setup-bun@v1
- uses: foundry-rs/foundry-toolchain@v1
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: pip
cache-dependency-path: requirements.txt
- run: pip install -r requirements.txt
- run: bun install
- run: bun run test
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# foundry
cache/
out/
!/broadcast
/broadcast/*/31337/
/broadcast/**/dry-run/
docs/

.env
.vscode/
node_modules/
package-lock.json
bun.lockb
.DS_Store
12 changes: 12 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "lib/modular-account"]
path = lib/modular-account
url = https://github.com/alchemyplatform/modular-account
[submodule "lib/webauthn-sol"]
path = lib/webauthn-sol
url = https://github.com/base-org/webauthn-sol
[submodule "lib/solady"]
path = lib/solady
url = https://github.com/vectorized/solady
6 changes: 6 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "solhint:recommended",
"rules": {
"func-visibility": ["error", { "ignoreConstructors": true }]
}
}
7 changes: 7 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[profile.default]
verbosity = 3

[fmt]
tab_width = 2
bracket_spacing = true
number_underscore = "thousands"
1 change: 1 addition & 0 deletions lib/forge-std
Submodule forge-std added at bb4cee
1 change: 1 addition & 0 deletions lib/modular-account
Submodule modular-account added at e40bcc
1 change: 1 addition & 0 deletions lib/solady
Submodule solady added at 3a4e38
1 change: 1 addition & 0 deletions lib/webauthn-sol
Submodule webauthn-sol added at d247aa
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "webauthn-owner-plugin",
"scripts": {
"test": "concurrently 'npm:test:*' --group -c auto",
"test:fmt": "forge fmt --check",
"test:forge": "forge test",
"test:solhint": "solhint '{src,script,test}/**/*.sol'",
"test:slither": "slither .",
"prepare": "if git status &>/dev/null; then git submodule update --init --recursive; fi"
},
"devDependencies": {
"concurrently": "^8.2.2",
"solhint": "^4.5.2"
}
}
11 changes: 11 additions & 0 deletions remappings.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
solady/=lib/solady/src/

@alchemy/modular-account/=lib/modular-account/src/
@eth-infinitism/account-abstraction/=lib/modular-account/lib/account-abstraction/contracts/
@openzeppelin/contracts/=lib/modular-account/lib/openzeppelin-contracts/contracts/

webauthn-sol/=lib/webauthn-sol/src/
openzeppelin-contracts/=lib/webauthn-sol/lib/openzeppelin-contracts/

ds-test/=lib/forge-std/lib/ds-test/src/
forge-std/=lib/forge-std/src/
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
slither-analyzer==0.10.1
4 changes: 4 additions & 0 deletions slither.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"detectors_to_exclude": "solc-version,naming-convention",
"filter_paths": "lib/"
}

0 comments on commit 06a4d8c

Please sign in to comment.