-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove forge-std dependency * Update workflows * T * T * T
- Loading branch information
1 parent
878db87
commit 6593fa2
Showing
11 changed files
with
2,950 additions
and
97 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,31 +1,31 @@ | ||
MulticallerTest:testMultiCallerWithSignerIncrementNonceSalt(uint256) (runs: 256, μ: 83584, ~: 83538) | ||
MulticallerTest:testMultiCallerWithSignerIncrementNonceSaltWithERC1271(uint256) (runs: 256, μ: 614876, ~: 614922) | ||
MulticallerTest:testMulticallerCdFallback(string) (runs: 256, μ: 295907, ~: 281868) | ||
MulticallerTest:testMulticallerForwardsMessageValue() (gas: 214013) | ||
MulticallerTest:testMulticallerGetNames() (gas: 147637) | ||
MulticallerTest:testMulticallerReentrancyGuard() (gas: 19980) | ||
MulticallerTest:testMulticallerRefund(uint256) (runs: 256, μ: 169488, ~: 171890) | ||
MulticallerTest:testMulticallerReturnDataIsProperlyEncoded() (gas: 122173) | ||
MulticallerTest:testMulticallerReturnDataIsProperlyEncoded(string,string,uint256) (runs: 256, μ: 486042, ~: 450256) | ||
MulticallerTest:testMulticallerReturnDataIsProperlyEncoded(uint256,uint256,uint256,uint256) (runs: 256, μ: 122252, ~: 122252) | ||
MulticallerTest:testMulticallerRevertWithCustomError() (gas: 35485) | ||
MulticallerTest:testMulticallerRevertWithMessage() (gas: 38244) | ||
MulticallerTest:testMulticallerRevertWithMessage(string) (runs: 256, μ: 38922, ~: 38644) | ||
MulticallerTest:testMulticallerRevertWithNothing() (gas: 35306) | ||
MulticallerTest:testMulticallerSenderDoesNotRevertWithoutMulticallerDeployed() (gas: 3463) | ||
MulticallerTest:testMulticallerTargetGetMulticallerSender() (gas: 27523) | ||
MulticallerTest:testMulticallerWithNoData() (gas: 16213) | ||
MulticallerTest:testMulticallerWithSigner(uint256) (runs: 256, μ: 128165, ~: 119136) | ||
MulticallerTest:testMulticallerWithSignerEIP712Domain() (gas: 12375) | ||
MulticallerTest:testMulticallerWithSignerGetMulticallerSigner() (gas: 136504) | ||
MulticallerTest:testMulticallerWithSignerInvalidateNonces(uint256) (runs: 256, μ: 79177, ~: 77798) | ||
MulticallerTest:testMulticallerWithSignerInvalidateNoncesWithERC1271(uint256) (runs: 256, μ: 617027, ~: 616455) | ||
MulticallerTest:testMulticallerWithSignerNonPayableFunctions() (gas: 48884) | ||
MulticallerTest:testMulticallerWithSignerReentrancyGuard() (gas: 124909) | ||
MulticallerTest:testMulticallerWithSignerRevert() (gas: 206240) | ||
MulticallerTest:testMulticallerWithSignerWithERC1271(uint256) (runs: 256, μ: 661769, ~: 651359) | ||
MulticallerTest:testMulticallerWithSignerWithNoData() (gas: 130147) | ||
MulticallerTest:testNastyCalldataRevert() (gas: 3420) | ||
MulticallerTest:testOffsetTrick(uint256,uint256,uint256) (runs: 256, μ: 571, ~: 571) | ||
MulticallerTest:test__codesize() (gas: 50297) | ||
TestPlus:test__codesize() (gas: 1102) | ||
MulticallerTest:testMultiCallerWithSignerIncrementNonceSalt(uint256) (runs: 256, μ: 83552, ~: 83533) | ||
MulticallerTest:testMultiCallerWithSignerIncrementNonceSaltWithERC1271(uint256) (runs: 256, μ: 614905, ~: 614953) | ||
MulticallerTest:testMulticallerCdFallback(string) (runs: 256, μ: 187169, ~: 181861) | ||
MulticallerTest:testMulticallerForwardsMessageValue() (gas: 214101) | ||
MulticallerTest:testMulticallerGetNames() (gas: 46531) | ||
MulticallerTest:testMulticallerReentrancyGuard() (gas: 20005) | ||
MulticallerTest:testMulticallerRefund(uint256) (runs: 256, μ: 169652, ~: 171909) | ||
MulticallerTest:testMulticallerReturnDataIsProperlyEncoded() (gas: 38730) | ||
MulticallerTest:testMulticallerReturnDataIsProperlyEncoded(string,string,uint256) (runs: 256, μ: 224746, ~: 212808) | ||
MulticallerTest:testMulticallerReturnDataIsProperlyEncoded(uint256,uint256,uint256,uint256) (runs: 256, μ: 38832, ~: 38832) | ||
MulticallerTest:testMulticallerRevertWithCustomError() (gas: 35431) | ||
MulticallerTest:testMulticallerRevertWithMessage() (gas: 38277) | ||
MulticallerTest:testMulticallerRevertWithMessage(string) (runs: 256, μ: 38933, ~: 38655) | ||
MulticallerTest:testMulticallerRevertWithNothing() (gas: 35278) | ||
MulticallerTest:testMulticallerSenderDoesNotRevertWithoutMulticallerDeployed() (gas: 3485) | ||
MulticallerTest:testMulticallerTargetGetMulticallerSender() (gas: 27557) | ||
MulticallerTest:testMulticallerWithNoData() (gas: 16170) | ||
MulticallerTest:testMulticallerWithSigner(uint256) (runs: 256, μ: 128140, ~: 119223) | ||
MulticallerTest:testMulticallerWithSignerEIP712Domain() (gas: 11361) | ||
MulticallerTest:testMulticallerWithSignerGetMulticallerSigner() (gas: 136483) | ||
MulticallerTest:testMulticallerWithSignerInvalidateNonces(uint256) (runs: 256, μ: 80929, ~: 79415) | ||
MulticallerTest:testMulticallerWithSignerInvalidateNoncesWithERC1271(uint256) (runs: 256, μ: 617130, ~: 616495) | ||
MulticallerTest:testMulticallerWithSignerNonPayableFunctions() (gas: 48848) | ||
MulticallerTest:testMulticallerWithSignerReentrancyGuard() (gas: 124834) | ||
MulticallerTest:testMulticallerWithSignerRevert() (gas: 206198) | ||
MulticallerTest:testMulticallerWithSignerWithERC1271(uint256) (runs: 256, μ: 661007, ~: 651334) | ||
MulticallerTest:testMulticallerWithSignerWithNoData() (gas: 130081) | ||
MulticallerTest:testNastyCalldataRevert() (gas: 3552) | ||
MulticallerTest:testOffsetTrick(uint256,uint256,uint256) (runs: 256, μ: 527, ~: 527) | ||
MulticallerTest:test__codesize() (gas: 48435) | ||
TestPlus:test__codesize() (gas: 840) |
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,47 @@ | ||
name: ci-all-via-ir | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
tests: | ||
name: Forge Testing all via-ir | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
profile: [via-ir-0,via-ir-1] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Install Dependencies | ||
run: forge install | ||
|
||
- name: Run Tests with ${{ matrix.profile }} | ||
run: > | ||
( [ "${{ matrix.profile }}" = "via-ir-0" ] && | ||
forge test --use 0.8.14 --via-ir && | ||
forge test --use 0.8.15 --via-ir && | ||
forge test --use 0.8.16 --via-ir && | ||
forge test --use 0.8.17 --via-ir && | ||
forge test --use 0.8.13 --via-ir && | ||
forge test --use 0.8.12 --via-ir && | ||
forge test --use 0.8.11 --via-ir && | ||
forge test --use 0.8.10 --via-ir | ||
) || | ||
( [ "${{ matrix.profile }}" = "via-ir-1" ] && | ||
forge test --use 0.8.25 --via-ir && | ||
forge test --use 0.8.24 --via-ir && | ||
forge test --use 0.8.23 --via-ir && | ||
forge test --use 0.8.22 --via-ir && | ||
forge test --use 0.8.21 --via-ir && | ||
forge test --use 0.8.20 --via-ir && | ||
forge test --use 0.8.19 --via-ir && | ||
forge test --use 0.8.18 --via-ir | ||
) |
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 |
---|---|---|
@@ -1,48 +1,96 @@ | ||
name: ci | ||
|
||
on: [push] | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- '**.sol' | ||
- '**.yml' | ||
push: | ||
branches: [main] | ||
paths: | ||
- '**.sol' | ||
- '**.yml' | ||
jobs: | ||
tests: | ||
name: Forge Testing | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
profile: [via-ir,min-solc,min-solc-via-ir,intense,solc-past-versions-0,solc-past-versions-1] | ||
profile: [post-cancun,post-cancun-via-ir,solc-past-versions-0,solc-past-versions-1,via-ir,min-solc,min-solc-via-ir,intense] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Foundry | ||
uses: onbjerg/foundry-toolchain@v1 | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Install Dependencies | ||
run: forge install | ||
|
||
- name: Run Lint Check | ||
run: forge fmt --check | ||
|
||
- name: Run Tests with ${{ matrix.profile }} | ||
run: > | ||
( [ "${{ matrix.profile }}" = "solc-past-versions-0" ] && | ||
forge test --use 0.8.5 && | ||
forge test --use 0.8.6 && | ||
forge test --use 0.8.7 && | ||
forge test --use 0.8.8 && | ||
forge test --use 0.8.9 && | ||
forge test --use 0.8.10 && | ||
forge test --use 0.8.11 | ||
) || | ||
( [ "${{ matrix.profile }}" = "solc-past-versions-1" ] && | ||
forge test --use 0.8.12 && | ||
forge test --use 0.8.13 && | ||
forge test --use 0.8.14 && | ||
forge test --use 0.8.15 && | ||
forge test --use 0.8.16 && | ||
forge test --use 0.8.17 && | ||
forge test --use 0.8.18 | ||
) || | ||
FOUNDRY_PROFILE=${{ matrix.profile }} forge test | ||
( [ "${{ matrix.profile }}" = "post-cancun" ] && | ||
forge test --use 0.8.25 --evm-version "cancun" | ||
) || | ||
( [ "${{ matrix.profile }}" = "post-cancun-via-ir" ] && | ||
forge test --use 0.8.25 --evm-version "cancun" --via-ir | ||
) || | ||
( [ "${{ matrix.profile }}" = "solc-past-versions-0" ] && | ||
forge test --use 0.8.5 --fuzz-runs 16 && | ||
forge test --use 0.8.6 --fuzz-runs 16 && | ||
forge test --use 0.8.7 --fuzz-runs 16 && | ||
forge test --use 0.8.8 --fuzz-runs 16 && | ||
forge test --use 0.8.9 --fuzz-runs 16 && | ||
forge test --use 0.8.10 --fuzz-runs 16 && | ||
forge test --use 0.8.11 --fuzz-runs 16 && | ||
forge test --use 0.8.12 --fuzz-runs 16 | ||
) || | ||
( [ "${{ matrix.profile }}" = "solc-past-versions-1" ] && | ||
forge test --use 0.8.13 --fuzz-runs 16 && | ||
forge test --use 0.8.14 --fuzz-runs 16 && | ||
forge test --use 0.8.15 --fuzz-runs 16 && | ||
forge test --use 0.8.16 --fuzz-runs 16 && | ||
forge test --use 0.8.17 --fuzz-runs 16 && | ||
forge test --use 0.8.18 --fuzz-runs 16 && | ||
forge test --use 0.8.19 --fuzz-runs 16 && | ||
forge test --use 0.8.20 --fuzz-runs 16 && | ||
forge test --use 0.8.21 --fuzz-runs 16 && | ||
forge test --use 0.8.22 --fuzz-runs 16 && | ||
forge test --use 0.8.23 --fuzz-runs 16 && | ||
forge test --use 0.8.24 --fuzz-runs 16 | ||
) || | ||
( [ "${{ matrix.profile }}" = "via-ir" ] && | ||
forge test --via-ir | ||
) || | ||
( [ "${{ matrix.profile }}" = "min-solc" ] && | ||
forge fmt --check && | ||
forge test --use 0.8.4 | ||
) || | ||
( [ "${{ matrix.profile }}" = "min-solc-via-ir" ] && | ||
forge test --use 0.8.13 --via-ir | ||
) || | ||
( [ "${{ matrix.profile }}" = "intense" ] && | ||
forge test --fuzz-runs 5000 | ||
) | ||
codespell: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run codespell | ||
uses: codespell-project/[email protected] | ||
with: | ||
check_filenames: true | ||
ignore_words_list: usera | ||
skip: ./.git,package-lock.json,ackee-blockchain-solady-report.pdf,EIP712Mock.sol |
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 |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "lib/forge-std"] | ||
path = lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std | ||
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
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
Submodule forge-std
deleted from
2c7cbf
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
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 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >=0.6.0 <0.9.0; | ||
|
||
import "./Vm.sol"; | ||
|
||
abstract contract Script { | ||
bool public IS_SCRIPT = true; | ||
|
||
/// @dev `address(bytes20(uint160(uint256(keccak256("hevm cheat code")))))`. | ||
Vm public constant vm = Vm(0x7109709ECfa91a80626fF3989D68f67F5b1DD12D); | ||
} |
Oops, something went wrong.