Skip to content

Commit 38fc251

Browse files
committed
⬆️ dependencies: upgrade foundry to v1.7.1
1 parent a429122 commit 38fc251

10 files changed

Lines changed: 19 additions & 20 deletions

File tree

.github/workflows/docs.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ jobs:
2121
with:
2222
node-version: "^24.14.1"
2323
- uses: foundry-rs/foundry-toolchain@v1
24-
with:
25-
version: v1.5.1
24+
with: { version: v1.7.1, cache: false }
2625
- uses: actions/cache@v5
2726
with:
2827
path: .nx/cache

.github/workflows/mobile-expo.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ jobs:
3030
node-version: "^24.14.1"
3131
- run: corepack enable
3232
- uses: foundry-rs/foundry-toolchain@v1
33-
with:
34-
version: v1.5.1
33+
with: { version: v1.7.1, cache: false }
3534
- uses: expo/expo-github-action@v8
3635
with:
3736
eas-version: latest

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/setup-node@v6
2020
with: { node-version: "^24.14.1" }
2121
- uses: foundry-rs/foundry-toolchain@v1
22-
with: { version: v1.5.1 }
22+
with: { version: v1.7.1 }
2323
- uses: actions/setup-python@v6
2424
with:
2525
python-version: "3.12"
@@ -80,7 +80,7 @@ jobs:
8080
- uses: actions/setup-node@v6
8181
with: { node-version: "^24.14.1" }
8282
- uses: foundry-rs/foundry-toolchain@v1
83-
with: { version: v1.5.1 }
83+
with: { version: v1.7.1 }
8484
- uses: actions/cache@v5
8585
with:
8686
path: .nx/cache

.github/workflows/version.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/setup-node@v6
1414
with: { node-version: 24, check-latest: true, package-manager-cache: false }
1515
- uses: foundry-rs/foundry-toolchain@v1
16-
with: { version: v1.5.1, cache: false }
16+
with: { version: v1.7.1, cache: false }
1717
- run: corepack enable
1818
- run: pnpm install --frozen-lockfile
1919
env: { REDISMS_DISABLE_POSTINSTALL: "true" }

contracts/.gas-snapshot

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
ExaAccountFactoryTest:testFuzz_createAccount_EOAOwners(uint256,address[63]) (runs: 256, μ: 5898928, ~: 5393451)
1+
ExaAccountFactoryTest:testFuzz_createAccount_EOAOwners(uint256,address[63]) (runs: 256, μ: 5637735, ~: 4564082)
22
ExaAccountFactoryTest:test_deploy_deploysToSameAddress() (gas: 17980146)
3-
ExaPluginTest:testFork_claimAndVestEscrowedEXA_claimsAndVests() (gas: 38997698)
4-
ExaPluginTest:testFork_collectCollateral_collects() (gas: 32212349)
5-
ExaPluginTest:testFork_crossRepay_repays() (gas: 34034503)
3+
ExaPluginTest:testFork_claimAndVestEscrowedEXA_claimsAndVests() (gas: 39069298)
4+
ExaPluginTest:testFork_collectCollateral_collects() (gas: 32283949)
5+
ExaPluginTest:testFork_crossRepay_repays() (gas: 34106103)
66
ExaPluginTest:testFork_repay_whenFlashLoanerHasFees() (gas: 25611511)
7-
ExaPluginTest:testFork_stakeEXA_stakes() (gas: 33062766)
8-
ExaPluginTest:testFork_swap_swaps() (gas: 28146709)
7+
ExaPluginTest:testFork_stakeEXA_stakes() (gas: 33134366)
8+
ExaPluginTest:testFork_swap_swaps() (gas: 28218309)
99
ExaPluginTest:test_allowPlugin_emitsPluginAllowed() (gas: 58464)
1010
ExaPluginTest:test_allowPlugin_reverts_whenAddressZero() (gas: 32411)
1111
ExaPluginTest:test_allowPlugin_reverts_whenNotAdmin() (gas: 40964)
@@ -85,7 +85,7 @@ ExaPluginTest:test_install_installs_whenNotRelatedPlugin() (gas: 1463905)
8585
ExaPluginTest:test_install_reverts_whenAlreadyInstalled() (gas: 6699011)
8686
ExaPluginTest:test_installmentsRouterCalls_revert_withUnauthorized_whenSelectorNotBorrow() (gas: 82253)
8787
ExaPluginTest:test_issuerChecker_emits_collected() (gas: 881698)
88-
ExaPluginTest:test_issuerChecker_emits_refunded() (gas: 434741)
88+
ExaPluginTest:test_issuerChecker_emits_refunded() (gas: 506341)
8989
ExaPluginTest:test_marketWithdraw_transfersAsset_asOwner() (gas: 919119)
9090
ExaPluginTest:test_pluginMetadata() (gas: 12946)
9191
ExaPluginTest:test_poke() (gas: 295289)
@@ -108,8 +108,8 @@ ExaPluginTest:test_redeem_reverts_whenNoProposalAndReceiverIsProposer() (gas: 43
108108
ExaPluginTest:test_redeem_reverts_whenProposalTypeIsWithdraw() (gas: 654118)
109109
ExaPluginTest:test_redeem_withdraws() (gas: 974198)
110110
ExaPluginTest:test_redeem_withdraws_whenExecuteProposal() (gas: 1027439)
111-
ExaPluginTest:test_refund_refunds() (gas: 457570)
112-
ExaPluginTest:test_refund_refunds_whenCollectedAtSameTime() (gas: 1014215)
111+
ExaPluginTest:test_refund_refunds() (gas: 529170)
112+
ExaPluginTest:test_refund_refunds_whenCollectedAtSameTime() (gas: 1085815)
113113
ExaPluginTest:test_repay_consumesProposal() (gas: 1474772)
114114
ExaPluginTest:test_repay_partiallyRepays() (gas: 1464017)
115115
ExaPluginTest:test_repay_partiallyRepays_whenKeeper() (gas: 1438179)

contracts/foundry.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ number_underscore = "thousands"
2727

2828
[lint]
2929
exclude_lints = [
30+
"block-timestamp",
3031
"incorrect-shift",
3132
"mixed-case-function",
3233
"mixed-case-variable",

contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"build": "FOUNDRY_PROFILE=build forge build",
7-
"prepare": "[ \"$EAS_BUILD_RUNNER\" != eas-build ] || (export FOUNDRY_DIR=${FOUNDRY_DIR-$HOME/workingdir} && (command -v foundryup >/dev/null || { curl -fsSL --retry 3 --retry-all-errors https://foundry.paradigm.xyz | bash; command -v foundryup >/dev/null; }) && (v=v1.5.1 && for i in $(seq 1 3); do foundryup -i $v && break; [ $i -eq 3 ] && exit 1; sleep $((i * 2)); done))",
7+
"prepare": "[ \"$EAS_BUILD_RUNNER\" != eas-build ] || (export FOUNDRY_DIR=${FOUNDRY_DIR-$HOME/workingdir} && (command -v foundryup >/dev/null || { curl -fsSL --retry 3 --retry-all-errors https://foundry.paradigm.xyz | bash; command -v foundryup >/dev/null; }) && (v=v1.7.1 && for i in $(seq 1 3); do foundryup -i $v && break; [ $i -eq 3 ] && exit 1; sleep $((i * 2)); done))",
88
"snapshot": "FOUNDRY_PROFILE=snapshot forge snapshot --force",
99
"test": "nx test contracts",
1010
"test:fmt": "forge fmt --check",

server/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN apt-get update && apt-get install -y ca-certificates curl git rsync unzip --
1212
curl -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=10.33.0 bash && \
1313
curl -fsSL https://foundry.paradigm.xyz | bash
1414
ENV PATH="$PATH:/root/.local/share/pnpm:/root/.foundry/bin"
15-
RUN foundryup -i v1.5.1
15+
RUN foundryup -i v1.7.1
1616
WORKDIR /usr/src/app
1717
COPY . .
1818
ENV NX_DAEMON=false

server/test/anvil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default async function setup({ provide }: Pick<TestProject, "provide">) {
7777
} as Record<string, string>,
7878
};
7979

80-
await $(shell)`forge script test/mocks/Protocol.s.sol --code-size-limit 69000
80+
await $(shell)`forge script test/mocks/Protocol.s.sol --disable-code-size-limit
8181
--unlocked --rpc-url ${foundry.rpcUrls.default.http[0]} --broadcast --skip-simulation`;
8282

8383
const protocol = parse(

substreams/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y ca-certificates curl gcc git jq libc6-d
88
curl -fsSL https://foundry.paradigm.xyz | bash && \
99
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --default-toolchain none -y
1010
ENV PATH="$PATH:/root/.local/share/pnpm:/root/.foundry/bin:/root/.cargo/bin"
11-
RUN foundryup -i v1.5.1
11+
RUN foundryup -i v1.7.1
1212
WORKDIR /usr/local/bin
1313
RUN curl -L "$(curl -s https://api.github.com/repos/streamingfast/substreams/releases/latest | jq --arg arch "$(uname -m | sed 's/aarch64/arm64/')" -r '.assets[] | select(.browser_download_url | test("linux_" + $arch)) | .browser_download_url')" | tar zxf -
1414
WORKDIR /usr/src/app

0 commit comments

Comments
 (0)