Skip to content

Commit 9b37fdc

Browse files
committed
✨ Initial Code
1 parent 3166c99 commit 9b37fdc

29 files changed

+1049
-1073
lines changed

.gas-snapshot

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
1-
GreeterTest:testExpectArithmetic() (gas: 8802)
2-
GreeterTest:testSetGm() (gas: 110219)
1+
MulticallerTest:testMulticallerForwardsMessageValue() (gas: 108197)
2+
MulticallerTest:testMulticallerGetNames() (gas: 135840)
3+
MulticallerTest:testMulticallerReentrancyGuard() (gas: 20341)
4+
MulticallerTest:testMulticallerReturnDataIsProperlyEncoded() (gas: 111457)
5+
MulticallerTest:testMulticallerReturnDataIsProperlyEncoded(string,string,uint256) (runs: 256, μ: 56806, ~: 31198)
6+
MulticallerTest:testMulticallerReturnDataIsProperlyEncoded(uint256,uint256,uint256,uint256) (runs: 256, μ: 111559, ~: 111559)
7+
MulticallerTest:testMulticallerRevertWithCustomError() (gas: 29174)
8+
MulticallerTest:testMulticallerRevertWithMessage() (gas: 31899)
9+
MulticallerTest:testMulticallerRevertWithMessage(string) (runs: 256, μ: 32743, ~: 32832)
10+
MulticallerTest:testMulticallerRevertWithNothing() (gas: 29060)
11+
MulticallerTest:testMulticallerTargetGetMulticallerSender() (gas: 33017)
12+
MulticallerTest:testMulticallerWithNoData() (gas: 13576)
13+
MulticallerTest:test__codesize() (gas: 19523)
14+
TestPlus:test__codesize() (gas: 1102)

.github/pull_request_template.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## Description
2+
3+
Describe the changes made in your pull request here.
4+
5+
## Checklist
6+
7+
Ensure you completed **all of the steps** below before submitting your pull request:
8+
9+
- [ ] Ran `forge fmt`?
10+
- [ ] Ran `forge snapshot`?
11+
- [ ] Ran `forge test`?
12+
13+
_Pull requests with an incomplete checklist will be thrown out._
14+
15+
<!-- Emoji Table: -->
16+
<!-- readme/docs 📝 -->
17+
<!-- new feature ✨ -->
18+
<!-- refactor/cleanup ♻️ -->
19+
<!-- nit 🥢 -->
20+
<!-- security fix 🔒 -->
21+
<!-- optimization ⚡️ -->
22+
<!-- configuration 👷‍♂️ -->
23+
<!-- events 🔊 -->
24+
<!-- bug fix 🐞 -->

.github/workflows/ci.yml

Lines changed: 10 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ jobs:
66
tests:
77
name: Forge Testing
88
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
profile: [via-ir,min-solc,min-solc-via-ir,intense-0,intense-1]
13+
914
steps:
10-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1116

1217
- name: Install Foundry
1318
uses: onbjerg/foundry-toolchain@v1
@@ -17,35 +22,8 @@ jobs:
1722
- name: Install Dependencies
1823
run: forge install
1924

20-
- name: Run Tests
21-
run: FOUNDRY_PROFILE=ci forge test
22-
23-
scripts:
24-
strategy:
25-
fail-fast: true
26-
name: Run Unix Scripts
27-
runs-on: ubuntu-latest
28-
steps:
29-
- uses: actions/checkout@v3
30-
with:
31-
submodules: recursive
32-
33-
- name: Install Foundry
34-
uses: foundry-rs/foundry-toolchain@v1
35-
with:
36-
version: nightly
37-
38-
- name: Run Forge build
39-
run: |
40-
forge --version
41-
forge build --sizes
42-
id: build
43-
continue-on-error: true
25+
- name: Run Lint Check
26+
run: forge fmt --check
4427

45-
- name: Run scripts
46-
run: |
47-
ls -lsa
48-
ls script/
49-
for file in script/*; do
50-
forge script $file
51-
done
28+
- name: Run Tests with ${{ matrix.profile }}
29+
run: FOUNDRY_PROFILE=${{ matrix.profile }} forge test

.gitignore

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# NodeJS files
2+
node_modules/
3+
coverage
4+
coverage.json
5+
typechain
6+
7+
# Hardhat files
8+
cache
9+
artifacts
10+
111
cache/
212
out/
313

@@ -11,4 +21,11 @@ out/
1121
# Ignore flattened files
1222
flattened.txt
1323

14-
broadcast
24+
broadcast
25+
26+
# Coverage
27+
lcov.info
28+
29+
# Build files for CREATE2 deployments
30+
/multicaller
31+
.tmp

.gitmodules

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

0 commit comments

Comments
 (0)