Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert: sync layer stable revert report open batch gas #3470

Closed
wants to merge 724 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
724 commits
Select commit Hold shift + click to select a range
ffdd7ac
support for non standard base token
StanislavBreadless Nov 19, 2024
9ad421c
fix contracts used
StanislavBreadless Nov 19, 2024
2f712ee
linting
kelemeno Nov 19, 2024
27fc5fe
evm-emulator false in CI
kelemeno Nov 19, 2024
86d099e
Merge pull request #13 from matter-labs/kl/merge-main
kelemeno Nov 19, 2024
8c4d517
restore revert test
StanislavBreadless Nov 20, 2024
f9ac6e5
Merge pull request #14 from matter-labs/sb-support-non-standard-tokens
StanislavBreadless Nov 20, 2024
834fb13
review
StanislavBreadless Nov 20, 2024
5cbc6e7
fix lint
StanislavBreadless Nov 20, 2024
7068619
upd contracts
StanislavBreadless Nov 20, 2024
4f7a1fb
contracts
StanislavBreadless Nov 20, 2024
aa4de68
sync with base
StanislavBreadless Nov 20, 2024
93b06fc
self review
StanislavBreadless Nov 20, 2024
b786a3d
actually add revert test to ci
StanislavBreadless Nov 20, 2024
bf437be
fix tabs
StanislavBreadless Nov 20, 2024
80cc84f
restore offline chain creation
StanislavBreadless Nov 20, 2024
dcf228e
Merge pull request #12 from matter-labs/sb-gateway-upgrade-test
StanislavBreadless Nov 21, 2024
81d51d8
fix unit tests
StanislavBreadless Nov 21, 2024
3c7e218
lint
StanislavBreadless Nov 21, 2024
b5fdee5
use latest contracts
StanislavBreadless Nov 21, 2024
8405765
fix block revert tool
StanislavBreadless Nov 21, 2024
c5d6707
fix gateway parsing
StanislavBreadless Nov 21, 2024
08e0ac1
Merge branch 'sb-restore-revert-test' into sb-fix-offline-chain-creation
StanislavBreadless Nov 21, 2024
19addb6
fix ci
StanislavBreadless Nov 21, 2024
5f9e9e8
fix ci
StanislavBreadless Nov 21, 2024
cd35e47
fix review
StanislavBreadless Nov 22, 2024
0dc031e
Merge branch 'sb-restore-revert-test' into sb-fix-offline-chain-creation
StanislavBreadless Nov 22, 2024
6cc55d8
correct place for switch
StanislavBreadless Nov 22, 2024
9dc357b
Merge branch 'sb-restore-revert-test' into sb-fix-offline-chain-creation
StanislavBreadless Nov 22, 2024
360e617
more logs
StanislavBreadless Nov 22, 2024
01c0c6b
fix unit test
StanislavBreadless Nov 23, 2024
44bb63a
lint
StanislavBreadless Nov 23, 2024
e37f0f9
debug logs
StanislavBreadless Nov 24, 2024
ff7c196
fix gateway url
StanislavBreadless Nov 24, 2024
3915373
feat: support validiums in 'zkstack'
dimazhornyk Nov 25, 2024
dd9edee
Merge pull request #15 from matter-labs/sb-restore-revert-test
StanislavBreadless Nov 25, 2024
0216130
remove unneeded prints
StanislavBreadless Nov 25, 2024
7c41e4a
Merge branch 'sync-layer-stable' into sb-fix-offline-chain-creation
StanislavBreadless Nov 25, 2024
73aeb6b
fix deny
StanislavBreadless Nov 25, 2024
264a84c
Merge pull request #16 from matter-labs/sb-fix-offline-chain-creation
StanislavBreadless Nov 25, 2024
6d3ddab
Merge main upstream
perekopskiy Nov 28, 2024
1e48f16
fix revert test
perekopskiy Nov 28, 2024
4b6aefc
fix upgrade test
perekopskiy Nov 28, 2024
e28660e
override foundry for unit tests
perekopskiy Nov 28, 2024
f4cbcca
Merge pull request #19 from matter-labs/mp-merge-main
perekopskiy Nov 28, 2024
62c776e
fix revert test
perekopskiy Nov 28, 2024
515f1d0
Merge pull request #20 from matter-labs/fix-revert-test
perekopskiy Nov 28, 2024
bf13e04
update contracts; remove "Reinstall foundry" step
perekopskiy Nov 28, 2024
083b9a9
update foundry in build jobs
perekopskiy Nov 29, 2024
f442bab
upd contracts
perekopskiy Nov 29, 2024
2720f7e
Merge pull request #22 from matter-labs/use-new-foundry-version
perekopskiy Nov 29, 2024
387bd20
ci-prover
perekopskiy Nov 29, 2024
4a2ac17
uncomment others
perekopskiy Nov 29, 2024
815fa9a
fix protobuf
perekopskiy Nov 29, 2024
0ab2fc3
fix
perekopskiy Nov 29, 2024
a48631b
fix
perekopskiy Nov 29, 2024
b850012
update PROVER_PROTOCOL_VERSION
perekopskiy Nov 29, 2024
b725237
fixes
dimazhornyk Nov 30, 2024
056e539
uncomment test suites
perekopskiy Dec 2, 2024
7b48a14
change expected tx type (caused by sdk version update 6.9->6.12)
perekopskiy Dec 2, 2024
700aac4
tests pass
StanislavBreadless Dec 2, 2024
9f0e19a
getFilterChanges test: provide explicit nonces
perekopskiy Dec 2, 2024
e996649
tests pass 2
StanislavBreadless Dec 2, 2024
91f896e
build all contracts for vm bench
perekopskiy Dec 2, 2024
23d317a
patch another test
perekopskiy Dec 2, 2024
90f7158
prover test: rename gateway -> prover gateway
perekopskiy Dec 2, 2024
6ec34ea
local gateway testing notes
StanislavBreadless Dec 2, 2024
2b830bc
fix run benchmarks on PR
perekopskiy Dec 2, 2024
5628145
temporarily disable e2e-for-prover
perekopskiy Dec 2, 2024
5d006fd
upd contracts with fmt
StanislavBreadless Dec 2, 2024
ae35b98
sync with upstream
StanislavBreadless Dec 2, 2024
a482849
update sdk
perekopskiy Dec 2, 2024
aaaf865
Merge pull request #23 from matter-labs/restore-tests
perekopskiy Dec 2, 2024
679d7b8
fix compile
StanislavBreadless Dec 2, 2024
d2f02ed
clean up etc/etv/configs
perekopskiy Dec 2, 2024
2913a64
remove diff from infrastructure/zk
perekopskiy Dec 2, 2024
6c1a731
return isLocalHost back
perekopskiy Dec 2, 2024
4c67b19
enable skipped test
perekopskiy Dec 2, 2024
5bfaaf4
update gen file
StanislavBreadless Dec 2, 2024
b7b483e
sync with main
StanislavBreadless Dec 2, 2024
9d2e0b7
remove debug stuff from context-owner.ts
perekopskiy Dec 2, 2024
c3dcca7
remove unused package
perekopskiy Dec 2, 2024
88627d4
sync with main + update
StanislavBreadless Dec 2, 2024
77facb7
clean up env.ts
perekopskiy Dec 2, 2024
4b37c2a
upgrade wip
StanislavBreadless Dec 2, 2024
a7c5923
rustfmt
StanislavBreadless Dec 2, 2024
0462463
better contracts
StanislavBreadless Dec 2, 2024
d8e6acd
int tests pass
StanislavBreadless Dec 3, 2024
4e1a2de
upd comment
perekopskiy Dec 3, 2024
c544a6d
enable some skipped tests
perekopskiy Dec 3, 2024
b5a0486
contracts
StanislavBreadless Dec 3, 2024
9525b52
provide L1DAValidator as a parameter to L1Deploy script
dimazhornyk Dec 3, 2024
db59f41
resolve conflicts
dimazhornyk Dec 3, 2024
763727a
update contracts
dimazhornyk Dec 3, 2024
0c3445b
wip
StanislavBreadless Dec 3, 2024
599f5a9
add secrets handling
dimazhornyk Dec 3, 2024
b0dcf03
fmt
dimazhornyk Dec 3, 2024
4fda43b
add comment
perekopskiy Dec 3, 2024
826801a
fix lint
dimazhornyk Dec 3, 2024
d888294
remove todo
perekopskiy Dec 3, 2024
02cae17
restore old logic
perekopskiy Dec 3, 2024
47ecef0
ignore ptr_arg lint error
dimazhornyk Dec 3, 2024
7d0221f
wip
StanislavBreadless Dec 3, 2024
65f7b95
add islocalhost
perekopskiy Dec 3, 2024
aad83f0
wait for block finalization
perekopskiy Dec 3, 2024
9dff181
return promise from `then`
perekopskiy Dec 3, 2024
a48a129
fix + nit
perekopskiy Dec 3, 2024
60a0745
upgrade works
StanislavBreadless Dec 3, 2024
511c790
local testing docs
StanislavBreadless Dec 3, 2024
a751f59
add validium-type flag
dimazhornyk Dec 3, 2024
fa440e9
Merge pull request #26 from matter-labs/clean-up-sync-stable
perekopskiy Dec 3, 2024
1e915c9
fix autocomplete
dimazhornyk Dec 3, 2024
32f46d3
upd contracts
dimazhornyk Dec 3, 2024
eba4830
fix test for validium pubdata
dimazhornyk Dec 3, 2024
a60348d
tmp
perekopskiy Dec 4, 2024
2156a91
tmp
perekopskiy Dec 5, 2024
86fe35b
use da client type instead of pubdata_type
dimazhornyk Dec 5, 2024
6181052
fix proto
dimazhornyk Dec 5, 2024
2917d51
fix
dimazhornyk Dec 5, 2024
87b7508
sqlx prepare + some fixes
dimazhornyk Dec 5, 2024
f24d79d
fix unused import
dimazhornyk Dec 5, 2024
977dc12
remove exclamation mark in query
dimazhornyk Dec 5, 2024
ad47031
upgrade stage3 works
perekopskiy Dec 10, 2024
cb61de9
merge main
perekopskiy Dec 10, 2024
0e4b403
bring pubdata_type back
dimazhornyk Dec 10, 2024
16fb79b
Merge pull request #30 from matter-labs/merge-with-main
perekopskiy Dec 10, 2024
5e0fcb5
Merge branch 'main-upstream' into sync-layer-stable
perekopskiy Dec 10, 2024
a21d89e
resolve conflict
perekopskiy Dec 10, 2024
4fc5274
fix test
dimazhornyk Dec 10, 2024
dc8a9ad
combine all the fields in pubdata_type
dimazhornyk Dec 10, 2024
89a7cf4
fix test
dimazhornyk Dec 10, 2024
4d9ef77
remove unused import
dimazhornyk Dec 10, 2024
c9cc675
use new index for proto
dimazhornyk Dec 10, 2024
c1304be
rename field
dimazhornyk Dec 10, 2024
c2a6ad1
resolve conflicts
perekopskiy Dec 10, 2024
9c6860e
fmt
perekopskiy Dec 10, 2024
cd81894
remove debug stuff
perekopskiy Dec 10, 2024
70bd91d
rename Validium to NoDA
dimazhornyk Dec 10, 2024
1d30a8a
clean up
perekopskiy Dec 11, 2024
cb37d1b
contracts
perekopskiy Dec 11, 2024
d8f61ff
update genesis
perekopskiy Dec 11, 2024
dbe91ef
update autocompletion
perekopskiy Dec 11, 2024
bd9b736
use u256 instead of string to define the DA Validator type
dimazhornyk Dec 11, 2024
7d72eed
upd contracts
dimazhornyk Dec 11, 2024
ef51d06
fmt
dimazhornyk Dec 11, 2024
6f3da17
try fix
perekopskiy Dec 11, 2024
c7f42b0
rename validium_type to da_validator_type
dimazhornyk Dec 11, 2024
481772e
update sdk
perekopskiy Dec 12, 2024
0d11d27
update tests
perekopskiy Dec 12, 2024
05bf9c1
fix gw ctm owner
perekopskiy Dec 12, 2024
f0ab48f
fmt
perekopskiy Dec 12, 2024
86992cb
Merge pull request #29 from matter-labs/mp-upgrade-script
perekopskiy Dec 12, 2024
6c9e85c
merge main
perekopskiy Dec 12, 2024
60d054a
rework sl_chain_config config
perekopskiy Dec 13, 2024
44155cf
rename settlement_layer -> gateway_chain_id, remove field from contra…
perekopskiy Dec 13, 2024
94e686c
fix tests
perekopskiy Dec 13, 2024
08a7eb4
fix test
perekopskiy Dec 13, 2024
2dc3f99
resolve conflicts
dimazhornyk Dec 13, 2024
0429d5d
fmt
dimazhornyk Dec 13, 2024
ad6c07b
remove method
perekopskiy Dec 13, 2024
22613fd
fix conflicts
dimazhornyk Dec 13, 2024
d4ee77e
Merge pull request #31 from matter-labs/rework-sl-chain-id-config
perekopskiy Dec 13, 2024
962a6b2
Merge pull request #25 from matter-labs/dz-support-validiums-in-zkstack
dimazhornyk Dec 13, 2024
fa4d517
remove settlement_layer_url from api config; remove get_l1_processing…
perekopskiy Dec 13, 2024
44ac0ba
Merge pull request #32 from matter-labs/remove-get_l1_processing_details
perekopskiy Dec 13, 2024
40c42ba
feat: Merge gateway release candidate 2 + enable loadtest (#33)
StanislavBreadless Dec 17, 2024
d8e205e
sync main with sls
StanislavBreadless Dec 17, 2024
c489c9f
fix protobuf
StanislavBreadless Dec 17, 2024
6253a7c
first round of cleanup
StanislavBreadless Dec 18, 2024
168faff
more clenaup
StanislavBreadless Dec 18, 2024
3da4f79
return old config name
StanislavBreadless Dec 18, 2024
fa83edd
remove unused function
StanislavBreadless Dec 18, 2024
4f09340
same contracts as in sls
StanislavBreadless Dec 18, 2024
af17e9b
feat: Migrate back to public repo (#34)
StanislavBreadless Dec 18, 2024
e8b245e
Merge branch 'sb-sync-main-sls' into sb-additional-server-cleanup
StanislavBreadless Dec 18, 2024
3f4e4a7
Merge pull request #3402 from matter-labs/sync-layer-stable-dev
StanislavBreadless Dec 19, 2024
9f65dbd
Merge branch 'sync-layer-stable' into sb-sync-main-sls
StanislavBreadless Dec 19, 2024
05ad8a0
fix lint/tests
StanislavBreadless Dec 19, 2024
8f25cc6
Merge branch 'sb-sync-main-sls' into sb-additional-server-cleanup
StanislavBreadless Dec 19, 2024
69ea2c6
Merge pull request #3404 from matter-labs/sb-sync-main-sls
StanislavBreadless Dec 19, 2024
e2ce995
use old admin
StanislavBreadless Dec 19, 2024
c8f4371
upd contracts
StanislavBreadless Dec 19, 2024
a59e48e
fix using old admin
StanislavBreadless Dec 19, 2024
227beac
fmt
StanislavBreadless Dec 19, 2024
9052bed
fix ci
StanislavBreadless Dec 19, 2024
16a3ddd
remove public inner field for l2chainid
StanislavBreadless Dec 19, 2024
4fc96db
correct setting token setter
StanislavBreadless Dec 19, 2024
dd4e254
upd contracts
StanislavBreadless Dec 19, 2024
78f8edd
Merge branch 'sync-layer-stable' into sb-additional-server-cleanup
StanislavBreadless Dec 19, 2024
7fb08cf
fmt
StanislavBreadless Dec 19, 2024
3f3436a
more cleanup
StanislavBreadless Dec 20, 2024
cf3dc83
upd contracts
StanislavBreadless Dec 20, 2024
133709a
fix zkstack
StanislavBreadless Dec 20, 2024
8b568b8
maybe fix ci
StanislavBreadless Dec 20, 2024
7c1b816
latest contracts
StanislavBreadless Dec 20, 2024
553f5b6
sync with main + fix aggregator
StanislavBreadless Dec 20, 2024
87e2b51
fix commitment
StanislavBreadless Dec 20, 2024
7036882
fix ci 2
StanislavBreadless Dec 20, 2024
1b5d362
fix env unit test
StanislavBreadless Dec 20, 2024
068dfe6
try fix ci 3
StanislavBreadless Dec 20, 2024
757ef37
remove contracts unit tests
StanislavBreadless Dec 20, 2024
4ce1496
Merge branch 'sb-additional-server-cleanup' into sb-sync-sls-main
StanislavBreadless Dec 20, 2024
2d4068d
fix custom token tests
StanislavBreadless Dec 30, 2024
b81ecae
fix zkstack compile
StanislavBreadless Dec 30, 2024
8ae5f0e
fix lint
StanislavBreadless Dec 30, 2024
3c1214c
upd genesis version
StanislavBreadless Dec 30, 2024
2571efc
Merge branch 'sb-additional-server-cleanup' into sb-sync-sls-main
StanislavBreadless Dec 30, 2024
1a3ded0
partial fix lint
StanislavBreadless Dec 30, 2024
0d33633
chore: Additional gateway server cleanup (#3405)
StanislavBreadless Dec 30, 2024
92ec539
sync with base
StanislavBreadless Dec 30, 2024
f0719ec
Merge branch 'main' into sb-sync-sls-main
StanislavBreadless Dec 30, 2024
eaa2e1c
upd contracts
StanislavBreadless Dec 30, 2024
bda79c9
reduce diff with main
StanislavBreadless Dec 30, 2024
abbbec0
rename contract
StanislavBreadless Dec 30, 2024
9c5135f
return back the change
StanislavBreadless Dec 30, 2024
e0ad669
correct initialization of the legacy bridge
StanislavBreadless Dec 30, 2024
7994924
lint fix
StanislavBreadless Dec 30, 2024
a47ba46
fix genesis params
StanislavBreadless Dec 30, 2024
a9b65be
Merge pull request #3408 from matter-labs/sb-sync-sls-main
StanislavBreadless Dec 31, 2024
ed83709
chore: Remove some of the wrong changes (#3417)
StanislavBreadless Jan 2, 2025
66fe82d
sync with main
StanislavBreadless Jan 5, 2025
13e8d76
make int tests pass
StanislavBreadless Jan 5, 2025
54e8e8a
fix lint
StanislavBreadless Jan 5, 2025
672f56b
fmt
StanislavBreadless Jan 5, 2025
c04251b
fix lint
StanislavBreadless Jan 6, 2025
52a44fe
Merge pull request #3423 from matter-labs/sb-sync-sls-main-2
StanislavBreadless Jan 6, 2025
7583174
feat: sync with main (#3430)
perekopskiy Jan 6, 2025
3399e57
Merge branch 'main' into sync-layer-stable
perekopskiy Jan 7, 2025
c16ace5
chore: sync layer stable clean up (#3431)
perekopskiy Jan 7, 2025
c69dac8
feat: sync with main (#3438)
perekopskiy Jan 8, 2025
3ada827
Merge branch 'main' into sync-layer-stable
perekopskiy Jan 8, 2025
4faceb9
fix
perekopskiy Jan 8, 2025
ecf5e24
fix
perekopskiy Jan 8, 2025
664d9c8
remove unused dep
perekopskiy Jan 8, 2025
7305879
upd prover version
perekopskiy Jan 8, 2025
de5bf7c
feat: Added tx hashes to upgrade yaml, disabled no_governance_prepare…
mm-zk Jan 9, 2025
2d5dcd0
sync with upstream
StanislavBreadless Jan 10, 2025
c1b1282
rustfmt
StanislavBreadless Jan 10, 2025
fd42554
fix avail da
StanislavBreadless Jan 10, 2025
ec6a219
fix validium creation
StanislavBreadless Jan 10, 2025
e957f88
autocompletion lint
StanislavBreadless Jan 10, 2025
1f1cbf0
Merge pull request #3450 from matter-labs/sb-sync-main-sls-2
StanislavBreadless Jan 10, 2025
9445a68
feat: Additional gateway upgrade testing (#3449)
StanislavBreadless Jan 10, 2025
9aa8412
chore: Optional gateway via feature flag (#3455)
StanislavBreadless Jan 10, 2025
aaa7f03
ci: finalize ci for sync layer stable (#3451)
StanislavBreadless Jan 13, 2025
4a67c91
resolve conflict
perekopskiy Jan 13, 2025
79d04ee
remove ci on push
perekopskiy Jan 13, 2025
abe67fe
try fix vm perf job
perekopskiy Jan 13, 2025
f7ec05c
Revert "feat(api_server): report gas price based on open batch (#2868)"
perekopskiy Jan 14, 2025
2427eb4
Merge branch 'main' into sync-layer-stable-revert-report-open-batch-gas
perekopskiy Jan 14, 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
2 changes: 1 addition & 1 deletion .github/workflows/build-contract-verifier-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
if: env.BUILD_CONTRACTS == 'true'
run: |
mkdir ./foundry-zksync
curl -LO https://github.com/matter-labs/foundry-zksync/releases/download/nightly-15bec2f861b3b4c71e58f85e2b2c9dd722585aa8/foundry_nightly_linux_amd64.tar.gz
curl -LO https://github.com/matter-labs/foundry-zksync/releases/download/nightly-27360d4c8d12beddbb730dae07ad33a206b38f4b/foundry_nightly_linux_amd64.tar.gz
tar zxf foundry_nightly_linux_amd64.tar.gz -C ./foundry-zksync
chmod +x ./foundry-zksync/forge ./foundry-zksync/cast
echo "$PWD/foundry-zksync" >> $GITHUB_PATH
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-core-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
if: env.BUILD_CONTRACTS == 'true'
run: |
mkdir ./foundry-zksync
curl -LO https://github.com/matter-labs/foundry-zksync/releases/download/nightly-15bec2f861b3b4c71e58f85e2b2c9dd722585aa8/foundry_nightly_linux_amd64.tar.gz
curl -LO https://github.com/matter-labs/foundry-zksync/releases/download/nightly-27360d4c8d12beddbb730dae07ad33a206b38f4b/foundry_nightly_linux_amd64.tar.gz
tar zxf foundry_nightly_linux_amd64.tar.gz -C ./foundry-zksync
chmod +x ./foundry-zksync/forge ./foundry-zksync/cast
echo "$PWD/foundry-zksync" >> $GITHUB_PATH
Expand Down
125 changes: 106 additions & 19 deletions .github/workflows/ci-core-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,12 @@ jobs:
- name: Install zkstack
run: |
ci_run ./zkstack_cli/zkstackup/install -g --path ./zkstack_cli/zkstackup/zkstackup
ci_run zkstackup -g --local
ci_run zkstackup -g --local --cargo-features gateway

- name: Build contracts
run: |
ci_run zkstack dev contracts

- name: Contracts unit tests
run: ci_run yarn l1-contracts test

- name: Download compilers for contract verifier tests
run: ci_run zkstack contract-verifier init --zksolc-version=v1.5.3 --zkvyper-version=v1.5.4 --solc-version=0.8.26 --vyper-version=v0.3.10 --era-vm-solc-version=0.8.26-1.0.1 --only --chain era

Expand Down Expand Up @@ -131,7 +128,7 @@ jobs:
- name: Install zkstack
run: |
ci_run ./zkstack_cli/zkstackup/install -g --path ./zkstack_cli/zkstackup/zkstackup || true
ci_run zkstackup -g --local
ci_run zkstackup -g --local --cargo-features gateway


- name: Create and initialize legacy chain
Expand All @@ -150,7 +147,7 @@ jobs:
--legacy-bridge \
--evm-emulator false

ci_run zkstack ecosystem init --dev --verbose
ci_run zkstack ecosystem init --dev --support-l2-legacy-shared-bridge-test true --verbose

# `sleep 60` because we need to wait until server added all the tokens
- name: Run server
Expand All @@ -174,13 +171,22 @@ jobs:

integration-tests:
runs-on: [ matterlabs-ci-runner-ultra-performance ]
strategy:
# ----------------------------------------------
# Note, that while the contracts do support gateway chain
# in reality it won't exist for quite some time and so
# we will test both cases here
# ----------------------------------------------
matrix:
use_gateway_chain: [ "WITH_GATEWAY", "WITHOUT_GATEWAY" ]
# In some cases it's useful to continue one job even if another fails.
fail-fast: false
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
with:
submodules: "recursive"
fetch-depth: 0


- name: Setup environment
run: |
echo ZKSYNC_HOME=$(pwd) >> $GITHUB_ENV
Expand All @@ -200,7 +206,7 @@ jobs:
- name: Install zkstack
run: |
ci_run ./zkstack_cli/zkstackup/install -g --path ./zkstack_cli/zkstackup/zkstackup || true
ci_run zkstackup -g --local
ci_run zkstackup -g --local --cargo-features gateway

- name: Create log directories
run: |
Expand Down Expand Up @@ -270,7 +276,8 @@ jobs:
--l1-rpc-url=http://localhost:8545 \
--server-db-url=postgres://postgres:notsecurepassword@localhost:5432 \
--server-db-name=zksync_server_localhost_validium \
--chain validium
--chain validium \
--validium-type no-da

- name: Create and initialize chain with Custom Token
run: |
Expand All @@ -292,7 +299,8 @@ jobs:
--l1-rpc-url=http://localhost:8545 \
--server-db-url=postgres://postgres:notsecurepassword@localhost:5432 \
--server-db-name=zksync_server_localhost_custom_token \
--chain custom_token
--chain custom_token \
--validium-type no-da

- name: Create and register chain with transactions signed "offline"
run: |
Expand All @@ -314,7 +322,7 @@ jobs:
governor_pk=$(awk '/governor:/ {flag=1} flag && /private_key:/ {print $2; exit}' ./configs/wallets.yaml)

ci_run zkstack dev send-transactions \
--file ./transactions/chain/offline_chain/register-hyperchain-txns.json \
--file ./transactions/chain/offline_chain/register-zk-chain-txns.json \
--l1-rpc-url http://127.0.0.1:8545 \
--private-key $governor_pk

Expand Down Expand Up @@ -350,13 +358,67 @@ jobs:
--l1-rpc-url=http://localhost:8545 \
--server-db-url=postgres://postgres:notsecurepassword@localhost:5432 \
--server-db-name=zksync_server_localhost_consensus \
--chain consensus
--chain consensus \
--validium-type no-da

- name: Export chain list to environment variable
run: |
CHAINS="era,validium,custom_token,consensus"
echo "CHAINS=$CHAINS" >> $GITHUB_ENV

# ----------------------------------------------------------------
# Only create/initialize the gateway chain *if* use_gateway_chain=WITH_GATEWAY
# ----------------------------------------------------------------
- name: Initialize gateway chain
if: matrix.use_gateway_chain == 'WITH_GATEWAY'
run: |
ci_run zkstack chain create \
--chain-name gateway \
--chain-id 505 \
--prover-mode no-proofs \
--wallet-creation localhost \
--l1-batch-commit-data-generator-mode rollup \
--base-token-address 0x0000000000000000000000000000000000000001 \
--base-token-price-nominator 1 \
--base-token-price-denominator 1 \
--set-as-default false \
--ignore-prerequisites \
--evm-emulator false

ci_run zkstack chain init \
--deploy-paymaster \
--l1-rpc-url=http://localhost:8545 \
--server-db-url=postgres://postgres:notsecurepassword@localhost:5432 \
--server-db-name=zksync_server_localhost_gateway \
--chain gateway \
--validium-type no-da

ci_run zkstack chain convert-to-gateway --chain gateway --ignore-prerequisites

- name: Run gateway
if: matrix.use_gateway_chain == 'WITH_GATEWAY'
run: |
ci_run zkstack server --ignore-prerequisites --chain gateway &> ${{ env.SERVER_LOGS_DIR }}/gateway.log &
ci_run zkstack server wait --ignore-prerequisites --verbose --chain gateway

- name: Migrate chains to gateway
if: matrix.use_gateway_chain == 'WITH_GATEWAY'
run: |
ci_run zkstack chain migrate-to-gateway --chain era --gateway-chain-name gateway
ci_run zkstack chain migrate-to-gateway --chain validium --gateway-chain-name gateway
ci_run zkstack chain migrate-to-gateway --chain custom_token --gateway-chain-name gateway
ci_run zkstack chain migrate-to-gateway --chain consensus --gateway-chain-name gateway

- name: Migrate back era
if: matrix.use_gateway_chain == 'WITH_GATEWAY'
run: |
ci_run zkstack chain migrate-from-gateway --chain era --gateway-chain-name gateway

- name: Migrate to gateway again
if: matrix.use_gateway_chain == 'WITH_GATEWAY'
run: |
ci_run zkstack chain migrate-to-gateway --chain era --gateway-chain-name gateway

- name: Build test dependencies
run: |
ci_run zkstack dev test build
Expand Down Expand Up @@ -402,20 +464,22 @@ jobs:

- name: Init external nodes
run: |
GATEWAY_RPC_URL="${{ matrix.use_gateway_chain == 'WITH_GATEWAY' && '--gateway-rpc-url=http://localhost:3550' || '' }}"

ci_run zkstack external-node configs --db-url=postgres://postgres:notsecurepassword@localhost:5432 \
--db-name=zksync_en_localhost_era_rollup --l1-rpc-url=http://localhost:8545 --chain era
--db-name=zksync_en_localhost_era_rollup --l1-rpc-url=http://localhost:8545 $GATEWAY_RPC_URL --chain era
ci_run zkstack external-node init --ignore-prerequisites --chain era

ci_run zkstack external-node configs --db-url=postgres://postgres:notsecurepassword@localhost:5432 \
--db-name=zksync_en_localhost_era_validium1 --l1-rpc-url=http://localhost:8545 --chain validium
--db-name=zksync_en_localhost_era_validium1 --l1-rpc-url=http://localhost:8545 $GATEWAY_RPC_URL --chain validium
ci_run zkstack external-node init --ignore-prerequisites --chain validium

ci_run zkstack external-node configs --db-url=postgres://postgres:notsecurepassword@localhost:5432 \
--db-name=zksync_en_localhost_era_custom_token --l1-rpc-url=http://localhost:8545 --chain custom_token
--db-name=zksync_en_localhost_era_custom_token --l1-rpc-url=http://localhost:8545 $GATEWAY_RPC_URL --chain custom_token
ci_run zkstack external-node init --ignore-prerequisites --chain custom_token

ci_run zkstack external-node configs --db-url=postgres://postgres:notsecurepassword@localhost:5432 \
--db-name=zksync_en_localhost_era_consensus --l1-rpc-url=http://localhost:8545 --chain consensus
--db-name=zksync_en_localhost_era_consensus --l1-rpc-url=http://localhost:8545 $GATEWAY_RPC_URL --chain consensus
ci_run zkstack external-node init --ignore-prerequisites --chain consensus

- name: Run recovery tests (from snapshot)
Expand All @@ -432,7 +496,7 @@ jobs:
ci_run zkstack external-node run --ignore-prerequisites --chain validium &> ${{ env.EXTERNAL_NODE_LOGS_DIR }}/validium.log &
ci_run zkstack external-node run --ignore-prerequisites --chain custom_token &> ${{ env.EXTERNAL_NODE_LOGS_DIR }}/custom_token.log &
ci_run zkstack external-node run --ignore-prerequisites --chain consensus --enable-consensus &> ${{ env.EXTERNAL_NODE_LOGS_DIR }}/consensus.log &

ci_run zkstack external-node wait --ignore-prerequisites --verbose --chain era
ci_run zkstack external-node wait --ignore-prerequisites --verbose --chain validium
ci_run zkstack external-node wait --ignore-prerequisites --verbose --chain custom_token
Expand All @@ -445,26 +509,49 @@ jobs:
- name: Fee projection tests
run: |
ci_run killall -INT zksync_server || true

# Only start & wait for the gateway server if use_gateway_chain == WITH_GATEWAY
if [ "${{ matrix.use_gateway_chain }}" == "WITH_GATEWAY" ]; then
ci_run zkstack server --ignore-prerequisites --chain gateway &> ${{ env.SERVER_LOGS_DIR }}/gateway.log &
ci_run zkstack server wait --ignore-prerequisites --verbose --chain gateway
fi

# Always run the chain-specific fee tests
ci_run ./bin/run_on_all_chains.sh "zkstack dev test fees --no-deps --no-kill" ${{ env.CHAINS }} ${{ env.FEES_LOGS_DIR }}

- name: Run revert tests
run: |
ci_run killall -INT zksync_server || true
ci_run killall -INT zksync_external_node || true

# Only start & wait for the gateway server if use_gateway_chain == WITH_GATEWAY
if [ "${{ matrix.use_gateway_chain }}" == "WITH_GATEWAY" ]; then
ci_run zkstack server --ignore-prerequisites --chain gateway &> ${{ env.SERVER_LOGS_DIR }}/gateway.log &
ci_run zkstack server wait --ignore-prerequisites --verbose --chain gateway
fi

# Always run the chain-specific revert tests
ci_run ./bin/run_on_all_chains.sh "zkstack dev test revert --no-deps --external-node --no-kill --ignore-prerequisites" ${{ env.CHAINS }} ${{ env.INTEGRATION_TESTS_LOGS_DIR }}

# Upgrade tests should run last, because as soon as they
# finish the bootloader will be different
# TODO make upgrade tests safe to run multiple times
- name: Run upgrade test
run: |
ci_run zkstack dev test upgrade --no-deps --chain era
ci_run killall -INT zksync_server || true

# Only start & wait for the gateway server if use_gateway_chain == WITH_GATEWAY
if [ "${{ matrix.use_gateway_chain }}" == "WITH_GATEWAY" ]; then
ci_run zkstack server --ignore-prerequisites --chain gateway &> ${{ env.SERVER_LOGS_DIR }}/gateway.log &
ci_run zkstack server wait --ignore-prerequisites --verbose --chain gateway
fi

# Always run the upgrade test against era
ci_run zkstack dev test upgrade --no-deps --chain era

- name: Upload logs
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
if: always()
with:
name: logs
name: logs_${{matrix.use_gateway_chain}}
path: logs
23 changes: 16 additions & 7 deletions .github/workflows/ci-prover-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,19 @@ jobs:
run: |
git fetch
# Checkout the commit with the DualVerifier contract to test FFLONK interface
git checkout b4d5b984
git checkout b68a01afa494fbb2fe85c954f0afe0d36ef589ca
git submodule update --init --recursive
git rev-parse HEAD

- name: Set new genesis for fflonk
# Note, that while `Verifier` is not explicitly a part of the genensis state,
# it affects it indirectly as it is a part of the repo.
working-directory: ./etc/env/file_based
if: matrix.compressor-mode == 'fflonk'
run: |
sudo sed -i 's/^genesis_root: .*/genesis_root: 0x596bdde3d20c57b7e1bc63dfa094c0824a82a7f11eba1658d2399c9b29216c97/' genesis.yaml
sudo sed -i "s/^genesis_batch_commitment: .*/genesis_batch_commitment: 0xa3ceee53a25ae7438d7144d3cf151d25638b866cdacc51226b04380ed8aa8bbe/" genesis.yaml

- name: Init
run: |
ci_run chmod -R +x ./bin
Expand Down Expand Up @@ -88,13 +97,13 @@ jobs:
- name: Run server
run: |
ci_run zkstack server --uring --chain=proving_chain --components=api,tree,eth,state_keeper,commitment_generator,proof_data_handler,vm_runner_protective_reads,vm_runner_bwip &>prover_logs_${{matrix.compressor-mode}}/server.log &
- name: Run Gateway
- name: Run prover gateway
run: |
ci_run zkstack prover run --component=gateway --docker=false &>prover_logs_${{matrix.compressor-mode}}/gateway.log &
- name: Run Prover Job Monitor
run: |
ci_run zkstack prover run --component=prover-job-monitor --docker=false &>prover_logs_${{matrix.compressor-mode}}/prover-job-monitor.log &
- name: Wait for batch to be passed through gateway
- name: Wait for batch to be passed through prover gateway
env:
DATABASE_URL: postgres://postgres:notsecurepassword@localhost:5432/zksync_prover_localhost_proving_chain
BATCH_NUMBER: 1
Expand Down Expand Up @@ -126,10 +135,10 @@ jobs:

- name: Wait for batch to be executed on L1
env:
DATABASE_URL: postgres://postgres:notsecurepassword@localhost:5432/zksync_prover_localhost_proving_chain
BATCH_NUMBER: 1
INTERVAL: 30
TIMEOUT: 1200
DATABASE_URL: postgres://postgres:notsecurepassword@localhost:5432/zksync_prover_localhost_proving_chain
BATCH_NUMBER: 1
INTERVAL: 30
TIMEOUT: 1200
run: |
PASSED_ENV_VARS="BATCH_NUMBER,DATABASE_URL,URL,INTERVAL,TIMEOUT" \
ci_run ./bin/prover_checkers/batch_l1_status_checker
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-prover-reusable.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Workflow template for CI jobs for Prover Components
on:
workflow_call:

jobs:
lint:
runs-on: [ matterlabs-ci-runner-highmem-long ]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
docs: ${{ steps.changed-files.outputs.docs_any_changed }}
all: ${{ steps.changed-files.outputs.all_any_changed }}
steps:

- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
with:
fetch-depth: 2
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/vm-perf-comparison.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,26 @@ jobs:
run: |
run_retried docker compose pull zk
docker compose up -d zk
- name: run benchmarks on base branch
shell: bash
run: |
ci_run zkstackup -g --local
ci_run zkstack dev contracts --system-contracts
ci_run zkstack dev contracts
ci_run cargo bench --package vm-benchmark --bench instructions -- --verbose || echo "Instructions benchmark is missing"
ci_run cargo run --package vm-benchmark --release --bin instruction_counts | tee base-opcodes
- name: checkout PR
run: |
git checkout --force FETCH_HEAD --recurse-submodules
git submodule update --init --recursive
- name: run benchmarks on PR
shell: bash
id: comparison
run: |
ci_run zkstackup -g --local
ci_run zkstack dev contracts --system-contracts
ci_run zkstack dev contracts
ci_run cargo bench --package vm-benchmark --bench instructions -- --verbose
ci_run cargo bench --package vm-benchmark --bench instructions -- --print > instructions.log 2>/dev/null
Expand Down
4 changes: 1 addition & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion contracts
Submodule contracts updated 632 files
Loading
Loading