-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 06a4d8c
Showing
14 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 @@ | ||
* @cruzdanilo |
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,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 |
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,14 @@ | ||
# foundry | ||
cache/ | ||
out/ | ||
!/broadcast | ||
/broadcast/*/31337/ | ||
/broadcast/**/dry-run/ | ||
docs/ | ||
|
||
.env | ||
.vscode/ | ||
node_modules/ | ||
package-lock.json | ||
bun.lockb | ||
.DS_Store |
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,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 |
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,6 @@ | ||
{ | ||
"extends": "solhint:recommended", | ||
"rules": { | ||
"func-visibility": ["error", { "ignoreConstructors": true }] | ||
} | ||
} |
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,7 @@ | ||
[profile.default] | ||
verbosity = 3 | ||
|
||
[fmt] | ||
tab_width = 2 | ||
bracket_spacing = true | ||
number_underscore = "thousands" |
Submodule modular-account
added at
e40bcc
Submodule webauthn-sol
added at
d247aa
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 @@ | ||
{ | ||
"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" | ||
} | ||
} |
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,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/ |
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 @@ | ||
slither-analyzer==0.10.1 |
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,4 @@ | ||
{ | ||
"detectors_to_exclude": "solc-version,naming-convention", | ||
"filter_paths": "lib/" | ||
} |