Skip to content

Commit a0ebc25

Browse files
committed
Merge remote-tracking branch 'aligned/testnet' into mina
2 parents 10bd8c6 + 21f45f8 commit a0ebc25

File tree

609 files changed

+68870
-21994
lines changed

Some content is hidden

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

609 files changed

+68870
-21994
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ Please delete options that are not relevant.
2727
- [ ] Has a known issue
2828
- [Link to the open issue addressing it]()
2929
- [ ] If your PR changes the Operator compatibility (Ex: Upgrade prover versions)
30-
- [ ] This PR adds compatibility for operator for both versions and do not change batcher/docs/examples
30+
- [ ] This PR adds compatibility for operator for both versions and do not change crates/docs/examples
3131
- [ ] This PR updates batcher and docs/examples to the newer version. This requires the operator are already updated to be compatible

.github/workflows/build-and-test-go.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: build-go-projects
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
6+
- testnet
7+
- staging
68
pull_request:
79
branches: ["*"]
810
paths:

.github/workflows/build-and-test-rust.yml

Lines changed: 70 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@ name: build-and-test-rust-projects
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
6+
- testnet
7+
- staging
68
pull_request:
79
branches: ["*"]
810
paths:
9-
- "batcher/**"
10-
- ".github/workflows/build-rust.yml"
11+
- "crates/**"
12+
- "aggregation_mode/**"
13+
- ".github/workflows/build-and-test-rust.yml"
1114

1215
jobs:
1316
build:
@@ -19,51 +22,105 @@ jobs:
1922
- name: Set up Rust
2023
uses: actions-rs/toolchain@v1
2124
with:
22-
toolchain: stable
25+
toolchain: 1.86.0
2326
components: rustfmt, clippy
2427
override: true
28+
29+
# Reference: https://github.com/succinctlabs/sp1/actions/runs/8886659400/workflow#L61-L65
30+
- name: Install sp1 toolchain
31+
run: |
32+
curl -L https://sp1.succinct.xyz | bash
33+
source /home/runner/.bashrc
34+
~/.sp1/bin/sp1up
35+
36+
- name: Install risc0 toolchain
37+
run: |
38+
curl -L https://risczero.com/install | bash
39+
source ~/.bashrc
40+
~/.risc0/bin/rzup install
41+
2542
- name: Cache Rust dependencies
2643
uses: actions/cache@v3
2744
with:
2845
path: |
2946
~/.cargo/registry
3047
~/.cargo/git
31-
batcher/target
48+
crates/target
3249
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
3350
restore-keys: |
3451
${{ runner.os }}-rust-
35-
- name: Check formatting of Rust projects
52+
53+
- name: Check formatting
3654
run: |
37-
cd batcher
55+
cd crates
3856
cargo fmt --all -- --check
57+
3958
- name: Run Clippy
4059
run: |
41-
cd batcher
60+
cd crates
4261
cargo clippy --all -- -D warnings
43-
- name: Build Rust projects
62+
63+
- name: Build Batcher
64+
run: |
65+
cd crates
66+
cargo build --all
67+
68+
- name: Check formatting of AggregationMode
69+
run: |
70+
cd aggregation_mode
71+
cargo fmt --all -- --check
72+
73+
- name: Build AggregationMode # We build before clippy to generate the ELF
4474
run: |
45-
cd batcher
75+
cd aggregation_mode
4676
cargo build --all
4777
78+
- name: Run Clippy on AggregationMode
79+
run: |
80+
cd aggregation_mode
81+
# We need to skip the build as clippy does not support the riscv32im-risc0-zkvm-elf target
82+
RISC0_SKIP_BUILD=1 cargo clippy --all -- -D warnings
83+
4884
test:
4985
runs-on: aligned-runner
5086
needs: build
5187
steps:
5288
- name: Checkout code
5389
uses: actions/checkout@v4
90+
5491
- name: foundry-toolchain
5592
uses: foundry-rs/[email protected]
93+
94+
# Reference: https://github.com/succinctlabs/sp1/actions/runs/8886659400/workflow#L61-L65
95+
- name: Install sp1 toolchain
96+
run: |
97+
curl -L https://sp1.succinct.xyz | bash
98+
source /home/runner/.bashrc
99+
~/.sp1/bin/sp1up
100+
101+
- name: Install risc0 toolchain
102+
run: |
103+
curl -L https://risczero.com/install | bash
104+
source ~/.bashrc
105+
~/.risc0/bin/rzup install
106+
56107
- name: Cache Rust dependencies
57108
uses: actions/cache@v3
58109
with:
59110
path: |
60111
~/.cargo/registry
61112
~/.cargo/git
62-
batcher/target
113+
crates/target
63114
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
64115
restore-keys: |
65116
${{ runner.os }}-rust-
66-
- name: Run tests
117+
118+
- name: Run Batcher tests
119+
run: |
120+
cd crates
121+
cargo test --all
122+
123+
- name: Run AggregationMode tests
67124
run: |
68-
cd batcher
125+
cd aggregation_mode
69126
cargo test --all

.github/workflows/build-contracts.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Build contracts
22
on:
33
push:
4-
branches: [main]
4+
branches:
5+
- testnet
6+
- staging
57
pull_request:
68
branches: ["*"]
79
paths:

.github/workflows/foundry-gas-diff.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Report gas diff
33
on:
44
push:
55
branches:
6-
- main
6+
- testnet
7+
- staging
78
pull_request:
89
# Run only for changes in specific files.
910
paths:

.github/workflows/golangci-lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: golangci-lint
22
on:
33
push:
44
branches:
5-
- master
6-
- main
5+
- testnet
6+
- staging
77
pull_request:
88
paths:
99
- 'operator/**'
@@ -26,13 +26,13 @@ jobs:
2626
- uses: actions/checkout@v4
2727
- uses: actions/setup-go@v5
2828
with:
29-
go-version: '1.22'
29+
go-version: '1.24'
3030
cache: false
3131
- name: golangci-lint
32-
uses: golangci/golangci-lint-action@v4
32+
uses: golangci/golangci-lint-action@v8
3333
with:
3434
# Require: The version of golangci-lint to use.
3535
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
3636
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
37-
version: v1.54
37+
version: v2.1.6
3838
args: --timeout=5m

.github/workflows/lint-contracts.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Lint contracts
22
on:
33
push:
4-
branches: [main]
4+
branches:
5+
- testnet
6+
- staging
57
pull_request:
68
branches: ["*"]
79
paths:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: make build_batcher_client
2626

2727
- name: Rename binary
28-
run: mv batcher/target/release/aligned ${{ matrix.artifact_name }}
28+
run: mv crates/target/release/aligned ${{ matrix.artifact_name }}
2929

3030
- name: Release
3131
uses: softprops/action-gh-release@v2

.github/workflows/test-merkle-tree.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: test-merkle-tree
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
6+
- testnet
7+
- staging
68
pull_request:
79
branches: ["*"]
810
paths:

.github/workflows/test-risc-zero.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: test-risc-zero
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
6+
- testnet
7+
- staging
68
pull_request:
79
branches: ["*"]
810
paths:

0 commit comments

Comments
 (0)