Skip to content
Merged

v0.15.2 #1879

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 46 additions & 4 deletions .github/workflows/build-and-test-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
branches: ["*"]
paths:
- "batcher/**"
- "aggregation_mode/**"
- ".github/workflows/build-rust.yml"

jobs:
Expand All @@ -22,6 +23,14 @@ jobs:
toolchain: stable
components: rustfmt, clippy
override: true

# Reference: https://github.com/succinctlabs/sp1/actions/runs/8886659400/workflow#L61-L65
- name: Install sp1 toolchain
run: |
curl -L https://sp1.succinct.xyz | bash
source /home/runner/.bashrc
~/.sp1/bin/sp1up

- name: Cache Rust dependencies
uses: actions/cache@v3
with:
Expand All @@ -32,27 +41,54 @@ jobs:
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-rust-
- name: Check formatting of Rust projects

- name: Check formatting of Batcher
run: |
cd batcher
cargo fmt --all -- --check
- name: Run Clippy

- name: Run Clippy on Batcher
run: |
cd batcher
cargo clippy --all -- -D warnings
- name: Build Rust projects

- name: Build Batcher
run: |
cd batcher
cargo build --all

- name: Check formatting of AggregationMode
run: |
cd aggregation_mode
cargo fmt --all -- --check

- name: Build AggregationMode # We build before clippy to generate the ELF
run: |
cd aggregation_mode
cargo build --all

- name: Run Clippy on AggregationMode
run: |
cd aggregation_mode
cargo clippy --all -- -D warnings

test:
runs-on: aligned-runner
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: foundry-toolchain
uses: foundry-rs/foundry-toolchain@v1.2.0

# Reference: https://github.com/succinctlabs/sp1/actions/runs/8886659400/workflow#L61-L65
- name: Install sp1 toolchain
run: |
curl -L https://sp1.succinct.xyz | bash
source /home/runner/.bashrc
~/.sp1/bin/sp1up

- name: Cache Rust dependencies
uses: actions/cache@v3
with:
Expand All @@ -63,7 +99,13 @@ jobs:
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-rust-
- name: Run tests

- name: Run Batcher tests
run: |
cd batcher
cargo test --all

- name: Run AggregationMode tests
run: |
cd aggregation_mode
cargo test --all
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ batcher/aligned/batch_inclusion_responses/*
**/broadcast
volume
config-files/*.last_processed_batch.json
config-files/*.last_aggregated_block.json

nonce_*.bin

Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@
[submodule "claim_contracts/lib/openzeppelin-contracts"]
path = claim_contracts/lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "contracts/lib/sp1-contracts"]
path = contracts/lib/sp1-contracts
url = https://github.com/succinctlabs/sp1-contracts
20 changes: 17 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ CONFIG_FILE?=config-files/config.yaml
export OPERATOR_ADDRESS ?= $(shell yq -r '.operator.address' $(CONFIG_FILE))
AGG_CONFIG_FILE?=config-files/config-aggregator.yaml

OPERATOR_VERSION=v0.15.1
OPERATOR_VERSION=v0.15.2
EIGEN_SDK_GO_VERSION_TESTNET=v0.2.0-beta.1
EIGEN_SDK_GO_VERSION_MAINNET=v0.1.13
EIGEN_SDK_GO_VERSION_MAINNET=v0.2.0-beta.1

ifeq ($(OS),Linux)
BUILD_ALL_FFI = $(MAKE) build_all_ffi_linux
Expand Down Expand Up @@ -75,6 +75,10 @@ anvil_deploy_eigen_contracts:
@echo "Deploying Eigen Contracts..."
. contracts/scripts/anvil/deploy_eigen_contracts.sh

anvil_deploy_sp1_contracts:
@echo "Deploying SP1 Contracts..."
. contracts/scripts/anvil/deploy_sp1_contracts.sh

anvil_deploy_aligned_contracts:
@echo "Deploying Aligned Contracts..."
. contracts/scripts/anvil/deploy_aligned_contracts.sh
Expand Down Expand Up @@ -146,6 +150,13 @@ anvil_start_with_more_prefunded_accounts:
@echo "Starting Anvil..."
anvil --load-state contracts/scripts/anvil/state/alignedlayer-deployed-anvil-state.json --block-time 7 -a 2000

__AGGREGATION_MODE__: ## ____
start_proof_aggregator_local: ## Start the proof aggregator locally using Mock Verifier Contract
cargo run --manifest-path ./aggregation_mode/Cargo.toml --release -- config-files/config-proof-aggregator-mock.yaml

start_proof_aggregator_local_with_proving: ## Start the proof aggregator locally using SP1 Verifier Contract
cargo run --manifest-path ./aggregation_mode/Cargo.toml --release --features prove -- config-files/config-proof-aggregator.yaml

_AGGREGATOR_:

build_aggregator:
Expand Down Expand Up @@ -584,7 +595,6 @@ aligned_get_user_balance_holesky:
--network holesky \
--user_addr $(USER_ADDR)


__GENERATE_PROOFS__:
# TODO add a default proving system

Expand Down Expand Up @@ -684,6 +694,10 @@ upgrade_batcher_payment_service: ## Upgrade BatcherPayments contract. Parameters
@echo "Upgrading BatcherPayments Contract on $(NETWORK) network..."
@. contracts/scripts/.env.$(NETWORK) && . contracts/scripts/upgrade_batcher_payment_service.sh

deploy_proof_aggregator:
@echo "Deploying ProofAggregator contract on $(NETWORK) network..."
@. contracts/scripts/.env.$(NETWORK) && . contracts/scripts/deploy_proof_aggregator.sh

build_aligned_contracts:
@cd contracts/src/core && forge build

Expand Down
Loading
Loading