Skip to content

Commit 978e61e

Browse files
authored
Merge pull request #357 from rsksmart/GBI-2847/lbc-add-foundry-support
Gbi 2847/lbc add foundry support
2 parents 155c223 + 2fedb31 commit 978e61e

18 files changed

+1855
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
- name: Install dependencies
3434
run: npm ci
3535

36+
- name: "Install Foundry"
37+
uses: "foundry-rs/foundry-toolchain@50d5a8956f2e319df19e6b57539d7e2acb9f8c1e" # v1.5.0
38+
with:
39+
version: stable
40+
3641
- name: Lint contracts
3742
run: npm run lint:sol
3843

.github/workflows/slither.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ jobs:
2626
- name: Install dependencies
2727
run: npm ci
2828

29+
- name: "Install Foundry"
30+
uses: "foundry-rs/foundry-toolchain@50d5a8956f2e319df19e6b57539d7e2acb9f8c1e" # v1.5.0
31+
with:
32+
version: stable
33+
34+
- name: Build contracts
35+
run: forge build --build-info
36+
2937
- name: Run Slither
3038
uses: crytic/slither-action@f197989dea5b53e986d0f88c60a034ddd77ec9a8 # v0.4.0
3139
id: slither

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ node_modules
1919
/cache
2020
/artifacts
2121

22+
# Foundry files
23+
/out
24+
/forge-cache
25+
/broadcast
26+
2227
# TypeChain files
2328
/typechain
2429
/typechain-types

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "lib/forge-std"]
2+
path = lib/forge-std
3+
url = https://github.com/foundry-rs/forge-std

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
entry: npm run lint:sol
2727
language: system
2828
types: [file]
29-
files: ^.*\.sol$
29+
files: ^contracts/.*\.sol$
3030
- repo: local
3131
hooks:
3232
- id: code-style

0 commit comments

Comments
 (0)