Skip to content

Commit 5dba304

Browse files
authored
Merge branch 'testnet' into 1728-hotfixoperator-manage-subscription-to-events-without-panic
2 parents 2f0b243 + 14f831f commit 5dba304

File tree

344 files changed

+53593
-14955
lines changed

Some content is hidden

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

344 files changed

+53593
-14955
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,26 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@v4
23+
2324
- uses: actions/setup-go@v5
2425
with:
2526
go-version: "1.23"
2627
cache: false
28+
2729
- name: foundry-toolchain
2830
uses: foundry-rs/foundry-toolchain@v1.2.0
31+
2932
- name: Build SP1 bindings
3033
run: make build_sp1_linux
31-
- name: Build Old SP1 bindings
32-
run: make build_sp1_linux_old
34+
3335
- name: Build Risc Zero go bindings
3436
run: make build_risc_zero_linux
35-
- name: Build Old Risc Zero go bindings
36-
run: make build_risc_zero_linux_old
37+
3738
- name: Build Merkle Tree bindings
3839
run: make build_merkle_tree_linux
40+
3941
- name: Build operator
4042
run: go build operator/cmd/main.go
43+
4144
- name: Build aggregator
4245
run: go build aggregator/cmd/main.go

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

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
branches: ["*"]
88
paths:
99
- "batcher/**"
10+
- "aggregation_mode/**"
1011
- ".github/workflows/build-rust.yml"
1112

1213
jobs:
@@ -22,6 +23,14 @@ jobs:
2223
toolchain: stable
2324
components: rustfmt, clippy
2425
override: true
26+
27+
# Reference: https://github.com/succinctlabs/sp1/actions/runs/8886659400/workflow#L61-L65
28+
- name: Install sp1 toolchain
29+
run: |
30+
curl -L https://sp1.succinct.xyz | bash
31+
source /home/runner/.bashrc
32+
~/.sp1/bin/sp1up
33+
2534
- name: Cache Rust dependencies
2635
uses: actions/cache@v3
2736
with:
@@ -32,27 +41,54 @@ jobs:
3241
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
3342
restore-keys: |
3443
${{ runner.os }}-rust-
35-
- name: Check formatting of Rust projects
44+
45+
- name: Check formatting of Batcher
3646
run: |
3747
cd batcher
3848
cargo fmt --all -- --check
39-
- name: Run Clippy
49+
50+
- name: Run Clippy on Batcher
4051
run: |
4152
cd batcher
4253
cargo clippy --all -- -D warnings
43-
- name: Build Rust projects
54+
55+
- name: Build Batcher
4456
run: |
4557
cd batcher
4658
cargo build --all
4759
60+
- name: Check formatting of AggregationMode
61+
run: |
62+
cd aggregation_mode
63+
cargo fmt --all -- --check
64+
65+
- name: Build AggregationMode # We build before clippy to generate the ELF
66+
run: |
67+
cd aggregation_mode
68+
cargo build --all
69+
70+
- name: Run Clippy on AggregationMode
71+
run: |
72+
cd aggregation_mode
73+
cargo clippy --all -- -D warnings
74+
4875
test:
4976
runs-on: aligned-runner
5077
needs: build
5178
steps:
5279
- name: Checkout code
5380
uses: actions/checkout@v4
81+
5482
- name: foundry-toolchain
5583
uses: foundry-rs/foundry-toolchain@v1.2.0
84+
85+
# Reference: https://github.com/succinctlabs/sp1/actions/runs/8886659400/workflow#L61-L65
86+
- name: Install sp1 toolchain
87+
run: |
88+
curl -L https://sp1.succinct.xyz | bash
89+
source /home/runner/.bashrc
90+
~/.sp1/bin/sp1up
91+
5692
- name: Cache Rust dependencies
5793
uses: actions/cache@v3
5894
with:
@@ -63,7 +99,13 @@ jobs:
6399
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
64100
restore-keys: |
65101
${{ runner.os }}-rust-
66-
- name: Run tests
102+
103+
- name: Run Batcher tests
67104
run: |
68105
cd batcher
69106
cargo test --all
107+
108+
- name: Run AggregationMode tests
109+
run: |
110+
cd aggregation_mode
111+
cargo test --all

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
FOUNDRY_FUZZ_SEED: 0x${{ github.event.pull_request.base.sha || github.sha }}
3636

3737
- name: Compare gas reports
38-
uses: Rubilmax/foundry-gas-diff@v3.16
38+
uses: Rubilmax/foundry-gas-diff@v3.21
3939
with:
4040
summaryQuantile: 0.9 # only display the 10% most significant gas diffs in the summary (defaults to 20%)
4141
sortCriteria: avg,max # sort diff rows by criteria

.github/workflows/send-proofs-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- '**.md'
1111

1212
concurrency:
13-
group: pull_request-${{ github.event.pull_request.number }}
13+
group: ${{ github.event_name == 'merge_group' && format('merge_group-{0}', github.event.merge_group.head_sha) || format('pull_request-{0}', github.event.pull_request.number) }}
1414
cancel-in-progress: true
1515

1616
jobs:

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

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/test-sp1-old.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ batcher/aligned/batch_inclusion_responses/*
1212
**/broadcast
1313
volume
1414
config-files/*.last_processed_batch.json
15+
config-files/*.last_aggregated_block.json
1516

1617
nonce_*.bin
1718

1819
infra/ansible/playbooks/ini/**.ini
20+
infra/ansible/playbooks/files/**.pem

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@
3131
[submodule "claim_contracts/lib/openzeppelin-contracts"]
3232
path = claim_contracts/lib/openzeppelin-contracts
3333
url = https://github.com/OpenZeppelin/openzeppelin-contracts
34+
[submodule "contracts/lib/sp1-contracts"]
35+
path = contracts/lib/sp1-contracts
36+
url = https://github.com/succinctlabs/sp1-contracts

0 commit comments

Comments
 (0)