Skip to content

Commit e38fdc7

Browse files
committed
chore: udates
1 parent 0111a57 commit e38fdc7

29 files changed

+2404
-260
lines changed

.github/workflows/solidity.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ jobs:
7171
runs-on: namespace-profile-btp-scs
7272
steps:
7373
- name: Setup 1Password
74-
uses: 1password/load-secrets-action/configure@v2
74+
uses: 1password/load-secrets-action/configure@v3
7575
with:
7676
service-account-token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
7777

7878
- name: Load secrets
79-
uses: 1password/load-secrets-action@v2
79+
uses: 1password/load-secrets-action@v3
8080
env:
8181
NPM_TOKEN: op://platform/npmjs/credential
8282
PAT_TOKEN: op://platform/github-commit-pat/credential
@@ -97,9 +97,9 @@ jobs:
9797
- name: Install Foundry
9898
uses: foundry-rs/foundry-toolchain@v1
9999

100-
- uses: actions/setup-node@v4
100+
- uses: actions/setup-node@v6
101101
with:
102-
node-version: 22.21.1
102+
node-version: 24.11.0
103103

104104
- name: Install Node dependencies
105105
run: npm install
@@ -230,7 +230,7 @@ jobs:
230230
echo "\`\`\`" >> README.md
231231
fi
232232
233-
- uses: JS-DevTools/npm-publish@v3
233+
- uses: JS-DevTools/npm-publish@v4
234234
with:
235235
token: ${{ env.NPM_TOKEN }}
236236
package: ./package.json
@@ -250,14 +250,14 @@ jobs:
250250
| ------- | -------------------- |
251251
| Template Set | `bun add @${{ github.repository_owner }}/${{ github.repository }}@${{ env.VERSION }}` |
252252
253-
- uses: stefanzweifel/git-auto-commit-action@v6
253+
- uses: stefanzweifel/git-auto-commit-action@v7
254254
if: env.TAG == 'latest' && github.repository != 'settlemint/solidity-predeployed'
255255
with:
256256
commit_message: "chore: update package versions [skip ci]"
257257
branch: main
258258
file_pattern: "package.json README.md"
259259

260-
- uses: stefanzweifel/git-auto-commit-action@v6
260+
- uses: stefanzweifel/git-auto-commit-action@v7
261261
if: env.TAG == 'latest' && github.repository == 'settlemint/solidity-predeployed'
262262
with:
263263
commit_message: "chore: update package versions [skip ci]"

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:24.10.0 AS build
1+
FROM node:24.11.0 AS build
22

33
RUN --mount=type=cache,sharing=locked,target=/var/cache/apt \
44
export DEBIAN_FRONTEND=noninteractive && \

bun.lock

Lines changed: 131 additions & 113 deletions
Large diffs are not rendered by default.

lib/forge-std/.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @danipopes @klkvr @mattsse @grandizzy @yash-atreya @zerosnacks
1+
* @danipopes @klkvr @mattsse @grandizzy @yash-atreya @zerosnacks @onbjerg @0xrusowsky
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

lib/forge-std/.github/workflows/ci.yml

Lines changed: 62 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: CI
22

3+
permissions: {}
4+
35
on:
46
workflow_dispatch:
57
pull_request:
@@ -12,6 +14,8 @@ jobs:
1214
name: build +${{ matrix.toolchain }} ${{ matrix.flags }}
1315
runs-on: ubuntu-latest
1416
timeout-minutes: 10
17+
permissions:
18+
contents: read
1519
strategy:
1620
fail-fast: false
1721
matrix:
@@ -27,23 +31,37 @@ jobs:
2731
- --use solc:0.6.2
2832
- --use solc:0.6.12
2933
steps:
30-
- uses: actions/checkout@v4
34+
- uses: actions/checkout@v5
35+
with:
36+
persist-credentials: false
3137
- uses: foundry-rs/foundry-toolchain@v1
3238
- run: forge --version
33-
- run: forge build --skip test --deny-warnings ${{ matrix.flags }}
39+
- run: |
40+
case "${{ matrix.flags }}" in
41+
*"solc:0.8.0"* | *"solc:0.7"* | *"solc:0.6"*)
42+
forge build --skip test --skip Config --skip StdConfig --skip LibVariable --deny-warnings ${{ matrix.flags }}
43+
;;
44+
*)
45+
forge build --skip test --deny-warnings ${{ matrix.flags }}
46+
;;
47+
esac
3448
# via-ir compilation time checks.
3549
- if: contains(matrix.flags, '--via-ir')
3650
run: forge build --skip test --deny-warnings ${{ matrix.flags }} --contracts 'test/compilation/*'
3751

3852
test:
3953
runs-on: ubuntu-latest
4054
timeout-minutes: 10
55+
permissions:
56+
contents: read
4157
strategy:
4258
fail-fast: false
4359
matrix:
4460
toolchain: [stable, nightly]
4561
steps:
46-
- uses: actions/checkout@v4
62+
- uses: actions/checkout@v5
63+
with:
64+
persist-credentials: false
4765
- uses: foundry-rs/foundry-toolchain@v1
4866
with:
4967
version: ${{ matrix.toolchain }}
@@ -53,18 +71,54 @@ jobs:
5371
fmt:
5472
runs-on: ubuntu-latest
5573
timeout-minutes: 10
74+
permissions:
75+
contents: read
5676
steps:
57-
- uses: actions/checkout@v4
77+
- uses: actions/checkout@v5
78+
with:
79+
persist-credentials: false
5880
- uses: foundry-rs/foundry-toolchain@v1
5981
- run: forge --version
6082
- run: forge fmt --check
6183

6284
typos:
6385
runs-on: ubuntu-latest
6486
timeout-minutes: 10
87+
permissions:
88+
contents: read
89+
steps:
90+
- uses: actions/checkout@v5
91+
with:
92+
persist-credentials: false
93+
- uses: crate-ci/typos@80c8a4945eec0f6d464eaf9e65ed98ef085283d1 # v1
94+
95+
codeql:
96+
name: Analyze (${{ matrix.language }})
97+
runs-on: ubuntu-latest
98+
permissions:
99+
security-events: write
100+
actions: read
101+
contents: read
102+
strategy:
103+
fail-fast: false
104+
matrix:
105+
include:
106+
- language: actions
107+
build-mode: none
65108
steps:
66-
- uses: actions/checkout@v4
67-
- uses: crate-ci/typos@v1
109+
- name: Checkout repository
110+
uses: actions/checkout@v5
111+
with:
112+
persist-credentials: false
113+
- name: Initialize CodeQL
114+
uses: github/codeql-action/init@v4
115+
with:
116+
languages: ${{ matrix.language }}
117+
build-mode: ${{ matrix.build-mode }}
118+
- name: Perform CodeQL Analysis
119+
uses: github/codeql-action/analyze@v4
120+
with:
121+
category: "/language:${{matrix.language}}"
68122

69123
ci-success:
70124
runs-on: ubuntu-latest
@@ -74,9 +128,10 @@ jobs:
74128
- test
75129
- fmt
76130
- typos
131+
- codeql
77132
timeout-minutes: 10
78133
steps:
79134
- name: Decide whether the needed jobs succeeded or failed
80-
uses: re-actors/alls-green@release/v1
135+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # release/v1
81136
with:
82137
jobs: ${{ toJSON(needs) }}

lib/forge-std/.github/workflows/sync.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Sync Release Branch
22

3+
permissions: {}
4+
35
on:
46
release:
57
types:
@@ -8,11 +10,14 @@ on:
810
jobs:
911
sync-release-branch:
1012
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
1115
if: startsWith(github.event.release.tag_name, 'v1')
1216
steps:
1317
- name: Check out the repo
14-
uses: actions/checkout@v4
18+
uses: actions/checkout@v5
1519
with:
20+
persist-credentials: true
1621
fetch-depth: 0
1722
ref: v1
1823

lib/forge-std/foundry.toml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
[profile.default]
2-
fs_permissions = [{ access = "read-write", path = "./"}]
2+
fs_permissions = [{ access = "read-write", path = "./" }]
33
optimizer = true
44
optimizer_runs = 200
55

6+
# A list of solidity error codes to ignore.
7+
# 3860 = init-code-size
8+
ignored_error_codes = [3860]
9+
610
[rpc_endpoints]
711
# The RPC URLs are modified versions of the default for testing initialization.
8-
mainnet = "https://eth.merkle.io" # Different API key.
9-
optimism_sepolia = "https://sepolia.optimism.io/" # Adds a trailing slash.
12+
mainnet = "https://reth-ethereum.ithaca.xyz/rpc"
13+
optimism_sepolia = "https://sepolia.optimism.io/" # Adds a trailing slash.
1014
arbitrum_one_sepolia = "https://sepolia-rollup.arbitrum.io/rpc/" # Adds a trailing slash.
1115
needs_undefined_env_var = "${UNDEFINED_RPC_URL_PLACEHOLDER}"
1216

17+
[lint]
18+
lint_on_build = false
19+
1320
[fmt]
1421
# These are all the `forge fmt` defaults.
1522
line_length = 120
@@ -20,4 +27,4 @@ multiline_func_header = 'attributes_first'
2027
quote_style = 'double'
2128
number_underscore = 'preserve'
2229
single_line_statement_blocks = 'preserve'
23-
ignore = ["src/console.sol", "src/console2.sol"]
30+
ignore = ["src/console.sol", "src/console2.sol"]

lib/forge-std/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "forge-std",
3-
"version": "1.10.0",
3+
"version": "1.11.0",
44
"description": "Forge Standard Library is a collection of helpful contracts and libraries for use with Forge and Foundry.",
55
"homepage": "https://book.getfoundry.sh/forge/forge-std",
66
"bugs": "https://github.com/foundry-rs/forge-std/issues",

lib/forge-std/src/Base.sol

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,28 @@ abstract contract CommonBase {
88
/// @dev Cheat code address.
99
/// Calculated as `address(uint160(uint256(keccak256("hevm cheat code"))))`.
1010
address internal constant VM_ADDRESS = 0x7109709ECfa91a80626fF3989D68f67F5b1DD12D;
11+
1112
/// @dev console.sol and console2.sol work by executing a staticcall to this address.
1213
/// Calculated as `address(uint160(uint88(bytes11("console.log"))))`.
1314
address internal constant CONSOLE = 0x000000000000000000636F6e736F6c652e6c6f67;
15+
1416
/// @dev Used when deploying with create2.
1517
/// Taken from https://github.com/Arachnid/deterministic-deployment-proxy.
1618
address internal constant CREATE2_FACTORY = 0x4e59b44847b379578588920cA78FbF26c0B4956C;
19+
1720
/// @dev The default address for tx.origin and msg.sender.
1821
/// Calculated as `address(uint160(uint256(keccak256("foundry default caller"))))`.
1922
address internal constant DEFAULT_SENDER = 0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38;
23+
2024
/// @dev The address of the first contract `CREATE`d by a running test contract.
2125
/// When running tests, each test contract is `CREATE`d by `DEFAULT_SENDER` with nonce 1.
2226
/// Calculated as `VM.computeCreateAddress(VM.computeCreateAddress(DEFAULT_SENDER, 1), 1)`.
2327
address internal constant DEFAULT_TEST_CONTRACT = 0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f;
28+
2429
/// @dev Deterministic deployment address of the Multicall3 contract.
2530
/// Taken from https://www.multicall3.com.
2631
address internal constant MULTICALL3_ADDRESS = 0xcA11bde05977b3631167028862bE2a173976CA11;
32+
2733
/// @dev The order of the secp256k1 curve.
2834
uint256 internal constant SECP256K1_ORDER =
2935
115792089237316195423570985008687907852837564279074904382605163141518161494337;

0 commit comments

Comments
 (0)