Skip to content

Commit 635f047

Browse files
authored
Merge branch 'master' into s3-scensorship-resistant
2 parents 228324f + b5a6c00 commit 635f047

File tree

462 files changed

+608
-10969
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

462 files changed

+608
-10969
lines changed

.dockerignore

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,29 @@ brotli/buildfiles/**/*
2323
nitro-testnode/**/*
2424

2525
# Arbitrator ignores
26-
arbitrator/tools/module_roots
27-
arbitrator/tools/pricer
26+
crates/tools/module_roots
27+
crates/tools/pricer
2828

2929
# Rust outputs
30-
arbitrator/target/**/*
31-
arbitrator/target
32-
arbitrator/stylus/tests/*/target/
33-
arbitrator/wasm-testsuite/target/
34-
arbitrator/wasm-libraries/target/
35-
arbitrator/tools/wasmer/target/
36-
arbitrator/tools/wasm-tools/
37-
arbitrator/tools/pricers/
38-
arbitrator/tools/module_roots/
39-
arbitrator/tools/stylus_benchmark
40-
arbitrator/langs/rust/target/
41-
arbitrator/langs/bf/target/
30+
crates/stylus/tests/*/target/
31+
crates/wasm-testsuite/target/
32+
crates/wasm-libraries/target/
33+
crates/tools/wasmer/target/
34+
crates/tools/wasm-tools/
35+
crates/tools/pricers/
36+
crates/tools/module_roots/
37+
crates/tools/stylus_benchmark
38+
crates/langs/rust/target/
39+
crates/langs/bf/target/
4240

4341
# Compiled files
4442
**/*.o
4543
**/*.a
4644
*.wasm
4745

4846
# Autogenerated test files
49-
arbitrator/prover/test-cases/**/*
50-
arbitrator/prover/test-cases
47+
crates/prover/test-cases/**/*
48+
crates/prover/test-cases
5149

5250
# external tools and IDEs
5351
.vscode

.github/actions/ci-setup/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ runs:
5353
with:
5454
path: |
5555
~/.cargo/
56-
arbitrator/target/
57-
arbitrator/wasm-libraries/target/
58-
arbitrator/wasm-libraries/soft-float/
56+
target/
57+
crates/wasm-libraries/target/
58+
crates/wasm-libraries/soft-float/
5959
target/etc/initial-machine-cache/
6060
/home/runner/.rustup/toolchains/
61-
key: ${{ runner.os }}-cargo-${{ steps.install-rust.outputs.version }}-${{ hashFiles('arbitrator/Cargo.lock') }}
61+
key: ${{ runner.os }}-cargo-${{ steps.install-rust.outputs.version }}-${{ hashFiles('Cargo.lock') }}
6262

6363
- name: Cache cbrotli
6464
id: cache-cbrotli

.github/workflows/_detect-changes.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ name: detect-file-changes
44
on:
55
workflow_call:
66
outputs:
7-
arbitrator_changed:
8-
description: 'True if Arbitrator or related files changed.'
9-
value: ${{ jobs.changes.outputs.arbitrator_changed }}
7+
rust_changed:
8+
description: 'True if Rust files changed.'
9+
value: ${{ jobs.changes.outputs.rust_changed }}
1010
bold_legacy_changed:
1111
description: 'True if Bold Legacy or related files changed.'
1212
value: ${{ jobs.changes.outputs.bold_legacy_changed }}
@@ -19,7 +19,7 @@ jobs:
1919
name: Detect file changes
2020
runs-on: ubuntu-4
2121
outputs:
22-
arbitrator_changed: ${{ steps.changed.outputs.arbitrator_any_changed }}
22+
rust_changed: ${{ steps.changed.outputs.rust_any_changed }}
2323
bold_legacy_changed: ${{ steps.changed.outputs.bold_legacy_any_changed }}
2424
changelog_added: ${{ steps.changed.outputs.changelog_added_files }}
2525

@@ -36,11 +36,11 @@ jobs:
3636
uses: tj-actions/[email protected]
3737
with:
3838
files_yaml: |
39-
arbitrator:
40-
- 'arbitrator/**'
39+
rust:
40+
- 'crates/**'
4141
- 'contracts/**'
4242
- 'Makefile'
43-
- '.github/workflows/_arbitrator.yml'
43+
- '.github/workflows/_rust-tests.yml'
4444
bold_legacy:
4545
- 'bold/legacy/**'
4646
- '.github/workflows/_bold-legacy.yml'
Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
name: nitro-arbitrator
2+
name: nitro-rust
33
on:
44
workflow_call:
55

66
jobs:
7-
arbitrator:
8-
name: Run Arbitrator tests
7+
rust:
8+
name: Run Rust tests
99
runs-on: arbitrator-ci
1010
env:
1111
RUST_BACKTRACE: 1
@@ -53,22 +53,21 @@ jobs:
5353
run: make -j wasm-ci-build
5454

5555
- name: Clippy check
56-
run: cargo clippy --all --manifest-path arbitrator/Cargo.toml -- -D warnings
56+
run: cargo clippy --all -- -D warnings
5757

5858
- name: Run rust tests
5959
id: run-rust-tests
6060
continue-on-error: true
6161
run: >-
6262
cargo nextest run -p arbutil -p prover -p jit -p stylus -p validator --release
63-
--manifest-path arbitrator/prover/Cargo.toml
6463
--profile ci --config-file nextest.toml
6564
6665
- name: Upload rust test results
6766
if: always()
6867
uses: actions/upload-artifact@v6
6968
with:
7069
name: junit-reports-rust
71-
path: ./arbitrator/target/nextest/ci/junit.xml
70+
path: ./target/nextest/ci/junit.xml
7271

7372
- name: Fail if rust tests failed
7473
if: steps.run-rust-tests.outcome == 'failure'
@@ -77,13 +76,13 @@ jobs:
7776
exit 1
7877
7978
- name: Check stylus_bechmark
80-
run: cargo check --manifest-path arbitrator/tools/stylus_benchmark/Cargo.toml
79+
run: cargo check --manifest-path crates/tools/stylus_benchmark/Cargo.toml
8180

8281
- name: Rustfmt
83-
run: cargo fmt -p arbutil -p prover -p jit -p stylus -p validator --manifest-path arbitrator/Cargo.toml -- --check
82+
run: cargo fmt -p arbutil -p prover -p jit -p stylus -p validator -- --check
8483

8584
- name: Rustfmt - tools/stylus_benchmark
86-
run: cargo fmt --all --manifest-path arbitrator/tools/stylus_benchmark/Cargo.toml -- --check
85+
run: cargo fmt --all --manifest-path crates/tools/stylus_benchmark/Cargo.toml -- --check
8786

8887
- name: Make proofs from test cases
8988
run: make -j test-gen-proofs
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Changelog fragments for automated PRs
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
jobs:
8+
add-changelog:
9+
# Only run if the PR is opened by dependabot
10+
if: github.actor == 'dependabot[bot]'
11+
runs-on: ubuntu-4
12+
permissions:
13+
contents: write
14+
15+
steps:
16+
- name: Checkout Code
17+
uses: actions/checkout@v6
18+
19+
- name: Create Changelog File
20+
uses: actions/github-script@v8
21+
with:
22+
script: |
23+
const fs = require('fs');
24+
const path = require('path');
25+
26+
const dir = 'changelog';
27+
28+
// Find the next available number
29+
let x = 1;
30+
while (fs.existsSync(path.join(dir, `dependabot-${x}.md`))) {
31+
x++;
32+
}
33+
34+
const filename = path.join(dir, `dependabot-${x}.md`);
35+
const title = context.payload.pull_request.title;
36+
const content = `### Ignored\n- ${title}\n`;
37+
38+
fs.writeFileSync(filename, content);
39+
console.log(`Created ${filename} for PR: ${title}`);
40+
41+
- name: Commit and Push
42+
uses: stefanzweifel/git-auto-commit-action@v7
43+
with:
44+
commit_message: "Add a changelog entry for dependabot update"
45+
file_pattern: 'changelog/dependabot-*.md'

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
uses: ./.github/workflows/_fast.yml
2222
secrets: inherit
2323

24-
# --- Run Arbitrator tests (not required by can_proceed) ---
25-
arbitrator:
24+
# --- Run Rust tests (not required by can_proceed) ---
25+
rust-tests:
2626
needs: changes
27-
if: needs.changes.outputs.arbitrator_changed == 'true'
28-
uses: ./.github/workflows/_arbitrator.yml
27+
if: needs.changes.outputs.rust_changed == 'true'
28+
uses: ./.github/workflows/_rust-tests.yml
2929
secrets: inherit
3030

3131
# --- Run Bold Legacy challenge tests (not required by can_proceed) ---
@@ -42,7 +42,7 @@ jobs:
4242

4343
# --- Summarize test results (not required by can_proceed) ---
4444
codecov:
45-
needs: [go-tests, arbitrator]
45+
needs: [go-tests, rust-tests]
4646
if: always()
4747
uses: ./.github/workflows/_codecov.yml
4848
secrets: inherit

.github/workflows/merge.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
uses: ./.github/workflows/_fast.yml
1717
secrets: inherit
1818

19-
# --- Run Arbitrator tests ---
20-
arbitrator:
19+
# --- Run Rust tests ---
20+
rust-tests:
2121
needs: changes
22-
if: needs.changes.outputs.arbitrator_changed == 'true'
23-
uses: ./.github/workflows/_arbitrator.yml
22+
if: needs.changes.outputs.rust_changed == 'true'
23+
uses: ./.github/workflows/_rust-tests.yml
2424
secrets: inherit
2525

2626
# --- Run Bold Legacy challenge tests ---
@@ -37,7 +37,7 @@ jobs:
3737

3838
# --- Summarize test results ---
3939
codecov:
40-
needs: [go-tests, arbitrator]
40+
needs: [go-tests, rust-tests]
4141
if: always()
4242
uses: ./.github/workflows/_codecov.yml
4343
secrets: inherit
@@ -49,14 +49,14 @@ jobs:
4949

5050
can_proceed:
5151
runs-on: ubuntu-4
52-
needs: [fast, arbitrator, bold-legacy, go-tests]
52+
needs: [fast, rust-tests, bold-legacy, go-tests]
5353
if: always()
5454
steps:
5555
- name: Aggregate results
5656
run: |
5757
fast_result="${{ needs.fast.result }}"
5858
go_tests_result="${{ needs['go-tests'].result }}"
59-
arbitrator_result="${{ needs.arbitrator.result }}"
59+
rust_tests_result="${{ needs['rust-tests'].result }}"
6060
bold_legacy_result="${{ needs['bold-legacy'].result }}"
6161
ok=1
6262
if [ "$fast_result" != "success" ]; then
@@ -67,9 +67,9 @@ jobs:
6767
ok=0
6868
echo "Go tests job failed or was skipped"
6969
fi
70-
if [ "$arbitrator_result" != "success" ] && [ "$arbitrator_result" != "skipped" ]; then
70+
if [ "$rust_tests_result" != "success" ] && [ "$rust_tests_result" != "skipped" ]; then
7171
ok=0
72-
echo "Arbitrator job failed"
72+
echo "Rust job failed"
7373
fi
7474
if [ "$bold_legacy_result" != "success" ] && [ "$bold_legacy_result" != "skipped" ]; then
7575
ok=0

.github/workflows/shellcheck-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
./go-ethereum/**
2929
./nitro-testnode/**
3030
./brotli/**
31-
./arbitrator/**
31+
./crates/**

.github/workflows/submodule-pin-check.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ jobs:
4141
[nitro-testnode]=origin/master
4242
[bold]=origin/main
4343
[safe-smart-account]=origin/release/v1.5.0
44-
[arbitrator/langs/c]=origin/vm-storage-cache
45-
[arbitrator/tools/wasmer]=origin/stylus
44+
[crates/langs/bf]=origin/main
45+
[crates/langs/c]=origin/main
46+
[crates/tools/wasmer]=origin/stylus
4647
[contracts-local/lib/openzeppelin-contracts]=origin/release-v4.7
4748
)
4849
divergent=0

.gitmodules

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[submodule "go-ethereum"]
22
path = go-ethereum
33
url = https://github.com/OffchainLabs/go-ethereum.git
4-
[submodule "arbitrator/wasm-libraries/soft-float/SoftFloat"]
5-
path = arbitrator/wasm-libraries/soft-float/SoftFloat
4+
[submodule "crates/wasm-libraries/soft-float/SoftFloat"]
5+
path = crates/wasm-libraries/soft-float/SoftFloat
66
url = https://github.com/OffchainLabs/SoftFloat.git
77
[submodule "brotli"]
88
path = brotli
@@ -11,23 +11,23 @@
1111
path = contracts
1212
url = https://github.com/OffchainLabs/nitro-contracts.git
1313
branch = develop
14-
[submodule "arbitrator/wasm-testsuite/testsuite"]
15-
path = arbitrator/wasm-testsuite/testsuite
14+
[submodule "crates/wasm-testsuite/testsuite"]
15+
path = crates/wasm-testsuite/testsuite
1616
url = https://github.com/WebAssembly/testsuite.git
17-
[submodule "arbitrator/tools/wasmer"]
18-
path = arbitrator/tools/wasmer
17+
[submodule "crates/tools/wasmer"]
18+
path = crates/tools/wasmer
1919
url = https://github.com/OffchainLabs/wasmer.git
2020
[submodule "nitro-testnode"]
2121
path = nitro-testnode
2222
url = https://github.com/OffchainLabs/nitro-testnode.git
23-
[submodule "arbitrator/langs/rust"]
24-
path = arbitrator/langs/rust
23+
[submodule "crates/langs/rust"]
24+
path = crates/langs/rust
2525
url = https://github.com/OffchainLabs/stylus-sdk-rs.git
26-
[submodule "arbitrator/langs/c"]
27-
path = arbitrator/langs/c
26+
[submodule "crates/langs/c"]
27+
path = crates/langs/c
2828
url = https://github.com/OffchainLabs/stylus-sdk-c.git
29-
[submodule "arbitrator/langs/bf"]
30-
path = arbitrator/langs/bf
29+
[submodule "crates/langs/bf"]
30+
path = crates/langs/bf
3131
url = https://github.com/OffchainLabs/stylus-sdk-bf.git
3232
[submodule "safe-smart-account"]
3333
path = safe-smart-account

0 commit comments

Comments
 (0)