Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
187 commits
Select commit Hold shift + click to select a range
08d483d
Add fee config encoding
avilagaston9 Oct 27, 2025
b112619
Add fee config decoder
avilagaston9 Oct 27, 2025
8636b88
Update committer and payload builder
avilagaston9 Oct 28, 2025
8e6392a
Update prover
avilagaston9 Oct 29, 2025
50c85a7
Update state reconstruct
avilagaston9 Oct 29, 2025
e56c0b8
Restore blobs
avilagaston9 Oct 30, 2025
ba0db8e
Fix blobs
avilagaston9 Nov 3, 2025
5a94906
Merge branch 'main' into feat/l2/commit_blocks_instead_of_state_diffs
avilagaston9 Nov 3, 2025
9fdd474
make osaka activation time optional
avilagaston9 Nov 3, 2025
ddd16bc
Fix
avilagaston9 Nov 3, 2025
dcefba3
Add measurements state diff vs transaction list
gianbelinche Nov 3, 2025
b357ef3
Update block_vs_state_diff_measurements.md
gianbelinche Nov 3, 2025
7eab9ba
wip: sending messages
avilagaston9 Nov 3, 2025
d5c3c8b
Add erc20 block measurements
gianbelinche Nov 4, 2025
b23ee0b
Add erc20 state diff measurements
gianbelinche Nov 4, 2025
2d0bc2c
Add conclusion
gianbelinche Nov 4, 2025
0eb2ae0
final touches
Nov 4, 2025
e4b6530
Update measurements and code
gianbelinche Nov 4, 2025
3cfbc91
Add erc20 state diff
gianbelinche Nov 4, 2025
3e2258a
Add BalanceDiffs
avilagaston9 Nov 4, 2025
cdea5c3
Add eth transfers blocks
gianbelinche Nov 4, 2025
a37aaf6
Update ETH transfer state diff
gianbelinche Nov 4, 2025
771aa23
Implement verifyMessage
avilagaston9 Nov 4, 2025
4cba453
Fix comments
gianbelinche Nov 5, 2025
00542be
Fix solidity compilation
gianbelinche Nov 5, 2025
5e5e5fd
Add deploy router
gianbelinche Nov 5, 2025
4db8571
wip: update watcher to fetch logs from other L2s
avilagaston9 Nov 5, 2025
9752080
Merge branch 'main' into feat/l2/commit_blocks_instead_of_state_diffs
avilagaston9 Nov 5, 2025
fa13fa9
Fix linter
avilagaston9 Nov 5, 2025
2292491
Improve state reconstruct
avilagaston9 Nov 5, 2025
0888af5
Store balance diffs
gianbelinche Nov 5, 2025
b43ff95
Fix decode l2 message from log
gianbelinche Nov 5, 2025
a0b69f7
Improve payload builder
avilagaston9 Nov 5, 2025
a89e614
Update last encoded block size
avilagaston9 Nov 5, 2025
54e7962
Fix L2 watch
gianbelinche Nov 5, 2025
697e655
Remove state diff from codebase
avilagaston9 Nov 5, 2025
270392b
Restore state diff docs
avilagaston9 Nov 6, 2025
96cecbc
Update tests
avilagaston9 Nov 6, 2025
b716604
Merge branch 'main' into feat/l2/commit_blocks_instead_of_state_diffs
avilagaston9 Nov 6, 2025
186804e
Fix estimate gas
avilagaston9 Nov 6, 2025
2b2358e
Fix tests
avilagaston9 Nov 6, 2025
1f49e3c
Execute privileged transaction
gianbelinche Nov 6, 2025
32f0de9
Merge branch 'main' into feat/l2/commit_blocks_instead_of_state_diffs
avilagaston9 Nov 6, 2025
cfc0cec
Restore state diffs doc name
avilagaston9 Nov 6, 2025
6ea663e
Minor improvements
avilagaston9 Nov 6, 2025
9f474a4
Update docs
avilagaston9 Nov 6, 2025
3ce72a0
Restore blobs
avilagaston9 Nov 6, 2025
9aad9e7
Fix docs CI
avilagaston9 Nov 6, 2025
67b1978
Remove unnecesary deploy constract step
avilagaston9 Nov 7, 2025
b133b30
restore convertion from generic to transaction
avilagaston9 Nov 7, 2025
c11deb2
Inspect node logs
avilagaston9 Nov 7, 2025
d46a397
Send tx to mint eth
gianbelinche Nov 7, 2025
37aa9e0
Restore state reconstruct workflow
avilagaston9 Nov 7, 2025
c975b1e
Merge branch 'main' into feat/l2/commit_blocks_instead_of_state_diffs
avilagaston9 Nov 7, 2025
4b6ff13
Create checkpoints in state reconstruct
avilagaston9 Nov 7, 2025
71e260a
Dehardcode l2s rpcs
gianbelinche Nov 7, 2025
d57a8e4
Format
gianbelinche Nov 7, 2025
2a7aa7a
Add prints for debugging
avilagaston9 Nov 7, 2025
7fa554c
Fix rollup store path
avilagaston9 Nov 7, 2025
3f625c4
Build docker image with l2-sql
avilagaston9 Nov 7, 2025
51b7a37
Fix balance diffs double send
gianbelinche Nov 10, 2025
ea040ab
Send balances on verify
gianbelinche Nov 10, 2025
6ac9acc
Add verification of l2 messages
gianbelinche Nov 10, 2025
97f665c
Format
gianbelinche Nov 10, 2025
cd31966
Change default on chain proposer
gianbelinche Nov 10, 2025
8f14e43
Add documentation
gianbelinche Nov 11, 2025
d94dadf
Merge branch 'main' into feat/l2/commit_blocks_instead_of_state_diffs
avilagaston9 Nov 11, 2025
fb36d17
Add steps for contract call
gianbelinche Nov 11, 2025
3af87fd
Add troubleshooting
gianbelinche Nov 11, 2025
2786006
Merge branch 'feat/l2/commit_blocks_instead_of_state_diffs' into feat…
gianbelinche Nov 11, 2025
95f33dc
Fix compilation
gianbelinche Nov 11, 2025
e2d1414
Fix
gianbelinche Nov 11, 2025
4445666
Fix tests
gianbelinche Nov 11, 2025
f0b13b7
Fix tests
gianbelinche Nov 11, 2025
9d9da06
Fix clippy
gianbelinche Nov 11, 2025
e0a994c
Add source chain id
gianbelinche Nov 11, 2025
d6e567a
Format
gianbelinche Nov 12, 2025
c2dc3fa
Fix gas price
gianbelinche Nov 12, 2025
827ca13
Update calldata for commit
gianbelinche Nov 12, 2025
7bf7fe8
Test EIP1559_DEFAULT_SERIALIZED_LENGTH constant
avilagaston9 Nov 12, 2025
20007fd
Rename BlobKZGVersionedHash
avilagaston9 Nov 12, 2025
ade2665
Reuse cloned tx
avilagaston9 Nov 12, 2025
dc434fd
Update docs/l2/fundamentals/shared_bridge.md
gianbelinche Nov 12, 2025
8dead17
Break if there is no more space for privileged
avilagaston9 Nov 12, 2025
4f0af0d
Fix based commit
gianbelinche Nov 12, 2025
1d144c2
Merge branch 'feat/l2/shared_bridge' of https://github.com/lambdaclas…
gianbelinche Nov 12, 2025
59b845f
Add sanity check on blocks and fee configs length
avilagaston9 Nov 12, 2025
c17173b
Round metric numbers
avilagaston9 Nov 12, 2025
a5dd91c
Fix default on chain proposer
gianbelinche Nov 12, 2025
167cf9b
Merge branch 'main' into feat/l2/commit_blocks_instead_of_state_diffs
avilagaston9 Nov 12, 2025
5f23e66
Remove log
gianbelinche Nov 12, 2025
fa91e96
Format
gianbelinche Nov 12, 2025
872951b
Fix state diff reconstruct
gianbelinche Nov 12, 2025
7d8c2f3
Merge branch 'feat/l2/commit_blocks_instead_of_state_diffs' into feat…
gianbelinche Nov 12, 2025
b38625b
Fix bridge address
gianbelinche Nov 12, 2025
c554b10
Fix state reconstruct
gianbelinche Nov 12, 2025
ce3e847
Format
gianbelinche Nov 12, 2025
3a5df21
Merge branch 'main' into feat/l2/shared_bridge
gianbelinche Nov 12, 2025
a084a77
Add more retries
gianbelinche Nov 12, 2025
ad8a459
Update docs
Nov 12, 2025
6ca55a3
Add more retries
gianbelinche Nov 13, 2025
97a7cfa
Merge branch 'main' into feat/l2/shared_bridge
gianbelinche Nov 13, 2025
c50c185
Add log
gianbelinche Nov 13, 2025
3be8496
Add more retries
gianbelinche Nov 13, 2025
6a82086
Solve comments
gianbelinche Nov 13, 2025
f0c197c
Change base dir
gianbelinche Nov 13, 2025
db73197
Remove source chain id
gianbelinche Nov 13, 2025
4ce8a69
Merge branch 'main' into feat/l2/shared_bridge
gianbelinche Nov 14, 2025
4aaf120
Fix bridge address
gianbelinche Nov 14, 2025
1c1081c
Update blobs state reconstruct
gianbelinche Nov 14, 2025
8dbba54
Fix lint
gianbelinche Nov 14, 2025
de21ae6
Amp retries
gianbelinche Nov 14, 2025
d669f25
Fix router reverts on random chainid
gianbelinche Nov 14, 2025
722fda1
Solve comments
gianbelinche Nov 14, 2025
eb79078
Merge branch 'main' into feat/l2/shared_bridge
gianbelinche Nov 14, 2025
f72bb33
Dont add l2tol2 if chain id doesnt exist
gianbelinche Nov 14, 2025
50c9b28
Merge branch 'main' into feat/l2/shared_bridge
gianbelinche Nov 14, 2025
d90ce22
Fix merge
gianbelinche Nov 14, 2025
3900768
Fix when no router
gianbelinche Nov 14, 2025
ef53563
Update blobs
gianbelinche Nov 14, 2025
a5bd8dd
Format
gianbelinche Nov 14, 2025
293c5da
clippy
gianbelinche Nov 14, 2025
8f0a8df
Fix clippy
gianbelinche Nov 15, 2025
1ae37aa
Merge branch 'main' into feat/l2/shared_bridge
gianbelinche Nov 17, 2025
78e1ca1
Add more docs
gianbelinche Nov 17, 2025
88e9b24
add more docs
gianbelinche Nov 17, 2025
d70e620
Add image
gianbelinche Nov 25, 2025
42a2e8c
Merge branch 'main' into feat/l2/shared_bridge
gianbelinche Nov 25, 2025
8224a1e
Update docs/l2/fundamentals/shared_bridge.md
gianbelinche Nov 26, 2025
8d122a8
Update crates/l2/contracts/src/l1/CommonBridge.sol
gianbelinche Nov 26, 2025
28d793c
Update crates/l2/sequencer/l1_watcher.rs
gianbelinche Nov 26, 2025
4c6f005
Update crates/networking/p2p/rlpx/l2/messages.rs
gianbelinche Nov 26, 2025
f23a1c3
Add balance diff doc
gianbelinche Nov 26, 2025
d19ba0f
Remove context clone
gianbelinche Nov 26, 2025
cf00ad8
Differentiate l1 and l2 privileged
gianbelinche Nov 26, 2025
f821ab0
Merge branch 'main' into feat/l2/shared_bridge
gianbelinche Nov 26, 2025
1b2beb9
format
gianbelinche Nov 26, 2025
1fc11bc
Fix lint
gianbelinche Nov 26, 2025
d7b3016
Change function name
gianbelinche Nov 27, 2025
7007be8
Remove unneeded count
gianbelinche Nov 27, 2025
9b52e36
Remove comment
gianbelinche Nov 27, 2025
2f9ee96
Change info level
gianbelinche Nov 27, 2025
3bf6a02
Add not l2 source doc
gianbelinche Nov 27, 2025
6f6ce01
Fix state reconstruct
gianbelinche Nov 27, 2025
3022345
Change privileged tx count position
gianbelinche Nov 27, 2025
f754818
Change address
gianbelinche Nov 27, 2025
c54e022
Change to rex
gianbelinche Nov 27, 2025
0168d2d
Change rest of cast
gianbelinche Nov 27, 2025
453ff15
Merge branch 'main' into feat/l2/shared_bridge
gianbelinche Nov 27, 2025
eb6192f
Update crates/l2/contracts/src/l1/interfaces/ICommonBridge.sol
gianbelinche Nov 27, 2025
3485ee7
Update crates/l2/contracts/src/l1/interfaces/ICommonBridge.sol
gianbelinche Nov 27, 2025
ac4e25c
Update crates/l2/contracts/src/l1/CommonBridge.sol
gianbelinche Nov 27, 2025
7894cb8
Fix comments
gianbelinche Nov 27, 2025
4ccbb6a
Merge branch 'main' into feat/l2/shared_bridge
gianbelinche Nov 28, 2025
29c01e5
Fix comment
gianbelinche Nov 28, 2025
5c633b1
Fix index bug
gianbelinche Nov 28, 2025
084d8e4
Add shared bridge test
gianbelinche Nov 28, 2025
7a8bb5d
Fix compose
gianbelinche Nov 28, 2025
a2ada1b
Add override shared bridge
gianbelinche Nov 28, 2025
72412d7
Fix workflow
gianbelinche Nov 28, 2025
d98f876
More fix workflow
gianbelinche Nov 28, 2025
8435970
Fix compose
gianbelinche Nov 28, 2025
98b109b
Fix workflow
gianbelinche Dec 1, 2025
376718d
Fix l2 connection
gianbelinche Dec 1, 2025
615a2f9
format
gianbelinche Dec 1, 2025
45e0fbd
Fix workflow
gianbelinche Dec 1, 2025
faf6051
Fix env volume
gianbelinche Dec 1, 2025
0c9a9a3
Fix register chain
gianbelinche Dec 1, 2025
92e5987
Fix tests step
gianbelinche Dec 1, 2025
fe14547
Solve comments
gianbelinche Dec 1, 2025
83ff794
Rename l2 to l2 messenger
gianbelinche Dec 1, 2025
0aa27cd
Ignore clippy on test
gianbelinche Dec 1, 2025
02818be
Add contract call test
gianbelinche Dec 1, 2025
bbcdc3a
Merge branch 'main' into feat/l2/shared_bridge
gianbelinche Dec 1, 2025
fc06412
Format code
gianbelinche Dec 1, 2025
cbfb64f
Add migrations doc
gianbelinche Dec 1, 2025
4fcc242
Fix clippy
gianbelinche Dec 1, 2025
48f14ad
Fix messenger doc
gianbelinche Dec 1, 2025
49bd28a
Fix ci
gianbelinche Dec 1, 2025
90b2428
Move shared bridge steps
gianbelinche Dec 1, 2025
278beb7
Merge branch 'main' into feat/l2/shared_bridge
gianbelinche Dec 1, 2025
1fe8c31
Merge branch 'main' into feat/l2/shared_bridge
gianbelinche Dec 3, 2025
6d6197a
Fix conflicts
gianbelinche Dec 3, 2025
2441375
Fix get batch state reconstruct
gianbelinche Dec 3, 2025
54cbf8d
Merge branch 'main' into feat/l2/shared_bridge
gianbelinche Dec 3, 2025
f83d0d9
Fix comments
gianbelinche Dec 3, 2025
345728a
Change migrations path
gianbelinche Dec 4, 2025
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
168 changes: 167 additions & 1 deletion .github/workflows/pr-main_l2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,166 @@ jobs:
cd crates/l2
make state-diff-test

integration-test-shared-bridge:
name: Integration Test Shared Bridge
runs-on: ubuntu-latest
needs: [detect-changes, build-docker, build-docker-l2]
if: ${{ needs.detect-changes.outputs.run_tests == 'true' }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Rust Environment
uses: ./.github/actions/setup-rust

- name: Install solc
uses: lambdaclass/get-solc@master
with:
version: v0.8.29
token: ${{ secrets.GITHUB_TOKEN || '' }}

- name: Build prover
run: |
cd crates/l2
make build-prover-exec
mkdir -p prover/src/guest_program/src/sp1/out && touch prover/src/guest_program/src/sp1/out/riscv32im-succinct-zkvm-vk-bn254 && touch prover/src/guest_program/src/sp1/out/riscv32im-succinct-zkvm-vk-u32

- name: Build test
run: |
cargo test l2 --features l2 --no-run --release

- name: Download ethrex image artifact
uses: actions/download-artifact@v4
with:
name: ethrex_image
path: /tmp

- name: Load ethrex image
run: |
docker load --input /tmp/ethrex_image.tar

- name: Download ethrex L2 image artifact
uses: actions/download-artifact@v4
with:
name: ethrex_image_l2
path: /tmp

- name: Load ethrex L2 image
run: |
docker load --input /tmp/ethrex_image_l2.tar

- name: Start L1
run: |
cd crates/l2
docker compose up --detach ethrex_l1

- name: Deploy contracts L2A
run: |
#
# If this job fails due to connection refused to ethrex_l1 consider increasing the failure retries
# in the contract_deployer service in crates/l2/docker-compose.yaml
#
touch cmd/.env
cd crates/l2
DOCKER_ETHREX_WORKDIR=/usr/local/bin \
ETHREX_DEPLOYER_DEPLOY_RICH=true \
ETHREX_SHARED_BRIDGE_DEPLOY_ROUTER=true \
docker compose up contract_deployer

DEPLOYER_EXIT_CODE=$(docker inspect -f '{{.State.ExitCode}}' contract_deployer)
if [ "$DEPLOYER_EXIT_CODE" != "0" ]; then
echo "If this job fails due to connection refused to ethrex_l1 consider increasing the failure retries in the contract_deployer service in crates/l2/docker-compose.yaml"
docker logs contract_deployer
exit 1
fi

- name: Copy env to host
run: |
docker cp contract_deployer:/env/.env cmd/.env_l2a
cat cmd/.env_l2a

- name: Deploy contracts L2B
run: |
jq '.config.chainId = 1730' fixtures/genesis/l2.json > fixtures/genesis/l2b.json
#
# If this job fails due to connection refused to ethrex_l1 consider increasing the failure retries
# in the contract_deployer service in crates/l2/docker-compose.yaml
#
touch cmd/.env
cd crates/l2
export $(grep -v '^#' ../../cmd/.env_l2a | xargs)
DOCKER_ETHREX_WORKDIR=/usr/local/bin \
ETHREX_DEPLOYER_DEPLOY_RICH=true \
ETHREX_SHARED_BRIDGE_ROUTER_ADDRESS=$ETHREX_SHARED_BRIDGE_ROUTER_ADDRESS \
docker compose -f docker-compose.yaml -f docker-compose-l2-shared-bridge.overrides.yaml up contract_deployer

DEPLOYER_EXIT_CODE=$(docker inspect -f '{{.State.ExitCode}}' contract_deployer)
if [ "$DEPLOYER_EXIT_CODE" != "0" ]; then
echo "If this job fails due to connection refused to ethrex_l1 consider increasing the failure retries in the contract_deployer service in crates/l2/docker-compose.yaml"
docker logs contract_deployer
exit 1
fi

- name: Copy env to host
run: |
docker cp contract_deployer:/env/.env cmd/.env_l2b
cat cmd/.env_l2b

- name: Start Sequencer L2A
run: |
cp cmd/.env_l2a cmd/.env
export ETHREX_BLOCK_PRODUCER_BASE_FEE_VAULT_ADDRESS=0x000c0d6b7c4516a5b274c51ea331a9410fe69127
export ETHREX_BLOCK_PRODUCER_OPERATOR_FEE_VAULT_ADDRESS=0xd5d2a85751b6F158e5b9B8cD509206A865672362
export ETHREX_BLOCK_PRODUCER_OPERATOR_FEE_PER_GAS=1000000000
export ETHREX_BLOCK_PRODUCER_L1_FEE_VAULT_ADDRESS=0x45681AE1768a8936FB87aB11453B4755e322ceec
cd crates/l2
export $(xargs < ../../cmd/.env_l2a)
DOCKER_ETHREX_WORKDIR=/usr/local/bin \
ETHREX_WATCHER_BLOCK_DELAY=0 \
ETHREX_COMMITTER_COMMIT_TIME=15000 \
ETHREX_WATCHER_WATCH_INTERVAL=1000 \
ETHREX_WATCHER_L2_RPCS=http://ethrex_l2_b:1730 \
ETHREX_WATCHER_L2_CHAIN_IDS=1730 \
ETHREX_WATCHER_ROUTER_ADDRESS=$ETHREX_SHARED_BRIDGE_ROUTER_ADDRESS \
docker compose -f docker-compose.yaml up --detach --no-deps ethrex_l2

- name: Start Sequencer L2B
run: |
cp cmd/.env_l2b cmd/.env
export ETHREX_BLOCK_PRODUCER_BASE_FEE_VAULT_ADDRESS=0x000c0d6b7c4516a5b274c51ea331a9410fe69127
export ETHREX_BLOCK_PRODUCER_OPERATOR_FEE_VAULT_ADDRESS=0xd5d2a85751b6F158e5b9B8cD509206A865672362
export ETHREX_BLOCK_PRODUCER_OPERATOR_FEE_PER_GAS=1000000000
export ETHREX_BLOCK_PRODUCER_L1_FEE_VAULT_ADDRESS=0x45681AE1768a8936FB87aB11453B4755e322ceec
cd crates/l2
export $(xargs < ../../cmd/.env_l2b)
DOCKER_ETHREX_WORKDIR=/usr/local/bin \
ETHREX_WATCHER_BLOCK_DELAY=0 \
ETHREX_COMMITTER_COMMIT_TIME=15000 \
ETHREX_WATCHER_WATCH_INTERVAL=1000 \
ETHREX_WATCHER_L2_RPCS=http://ethrex_l2:1729 \
ETHREX_WATCHER_L2_CHAIN_IDS=65536999 \
ETHREX_WATCHER_ROUTER_ADDRESS=$ETHREX_SHARED_BRIDGE_ROUTER_ADDRESS \
docker compose -f docker-compose.yaml -f docker-compose-l2-shared-bridge.overrides.yaml up --detach --no-deps ethrex_l2_b

- name: Run tests
run: |
sudo chmod -R a+rw crates/l2
cd crates/l2
cargo run --release --features "l2,l2-sql" --manifest-path ../../Cargo.toml -- \
l2 prover \
--proof-coordinators tcp://127.0.0.1:3900 tcp://127.0.0.1:3901 \
--backend exec &
docker logs --follow ethrex_l2 &
docker logs --follow ethrex_l2_b &
docker logs --follow ethrex_l1 &
cargo test shared_bridge --release -- --nocapture --test-threads=1
cp ../../cmd/.env_l2a ../../cmd/.env
PROPOSER_COINBASE_ADDRESS=0x0007a881CD95B1484fca47615B64803dad620C8d INTEGRATION_TEST_SKIP_TEST_TOTAL_ETH=true cargo test l2 --release -- --nocapture --test-threads=1
cp ../../cmd/.env_l2b ../../cmd/.env
PROPOSER_COINBASE_ADDRESS=0x0007a881CD95B1484fca47615B64803dad620C8d INTEGRATION_TEST_SKIP_TEST_TOTAL_ETH=true INTEGRATION_TEST_L2_RPC=http://localhost:1730 cargo test l2 --release -- --nocapture --test-threads=1
cargo test shared_bridge --release -- --nocapture --test-threads=1
killall ethrex -s SIGINT


# The purpose of this job is to add it as a required check in GitHub so that we don't have to add every individual job as a required check
all-tests:
# "Integration Test L2" is a required check, don't change the name
Expand All @@ -605,9 +765,10 @@ jobs:
state-diff-test,
integration-test-tdx,
uniswap-swap,
integration-test-shared-bridge,
]
# Make sure this job runs even if the previous jobs failed or were skipped
if: ${{ needs.detect-changes.outputs.run_tests == 'true' && always() && needs.integration-test.result != 'skipped' && needs.state-diff-test.result != 'skipped' && needs.integration-test-tdx.result != 'skipped' && needs.uniswap-swap.result != 'skipped' }}
if: ${{ needs.detect-changes.outputs.run_tests == 'true' && always() && needs.integration-test.result != 'skipped' && needs.state-diff-test.result != 'skipped' && needs.integration-test-tdx.result != 'skipped' && needs.uniswap-swap.result != 'skipped' && needs.integration-test-shared-bridge.result != 'skipped' }}
steps:
- name: Check if any job failed
run: |
Expand All @@ -625,3 +786,8 @@ jobs:
echo "Job Uniswap Swap Token Flow failed"
exit 1
fi

if [ "${{ needs.integration-test-shared-bridge.result }}" != "success" ]; then
echo "Job Integration test shared bridge failed"
exit 1
fi
15 changes: 10 additions & 5 deletions cmd/ethrex/build_l2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ pub fn download_script() {
&Path::new("../../crates/l2/contracts/src/l1/CommonBridge.sol"),
"CommonBridge",
),
(
&Path::new("../../crates/l2/contracts/src/l1/Router.sol"),
"Router",
),
];
for (path, name) in l1_contracts {
compile_contract_to_bytecode(
Expand All @@ -122,8 +126,8 @@ pub fn download_script() {
"CommonBridgeL2",
),
(
&Path::new("../../crates/l2/contracts/src/l2/L2ToL1Messenger.sol"),
"L2ToL1Messenger",
&Path::new("../../crates/l2/contracts/src/l2/Messenger.sol"),
"Messenger",
),
(
&Path::new("../../crates/l2/contracts/src/l2/L2Upgradeable.sol"),
Expand Down Expand Up @@ -181,8 +185,9 @@ fn write_empty_bytecode_files(output_contracts_path: &Path) {
"SP1Verifier",
"OnChainProposer",
"CommonBridge",
"Router",
"CommonBridgeL2",
"L2ToL1Messenger",
"Messenger",
"UpgradeableSystemContract",
"SequencerRegistry",
"OnChainProposerBased",
Expand Down Expand Up @@ -338,9 +343,9 @@ fn common_bridge_l2_runtime(out_dir: &Path) -> Vec<u8> {
fs::read(path).expect("Failed to read bytecode file")
}

/// Bytecode of the L2ToL1Messenger contract.
/// Bytecode of the Messenger contract.
fn l2_to_l1_messenger_runtime(out_dir: &Path) -> Vec<u8> {
let path = out_dir.join("contracts/solc_out/L2ToL1Messenger.bytecode");
let path = out_dir.join("contracts/solc_out/Messenger.bytecode");
fs::read(path).expect("Failed to read bytecode file")
}

Expand Down
Loading