Skip to content

Commit 048b83a

Browse files
committed
Merge remote-tracking branch 'origin/draft-v31' into sma/faster-tbm-script
2 parents e0a38b2 + bc1b4db commit 048b83a

Some content is hidden

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

45 files changed

+521
-572
lines changed

.github/actions/setup-env/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ runs:
7171
uses: actions/cache/restore@v4
7272
with:
7373
path: zkstack
74-
key: zkstack-${{ runner.os }}-${{ hashFiles('zkstack_cli/**') }}
74+
key: zkstack-${{ runner.os }}-${{ hashFiles('zkstack_cli/**', 'contracts/l1-contracts/zkstack-out/**/*.json') }}
7575

7676
- name: Copy cached zkstack binary to inside docker (on cache hit)
7777
if: steps.zkstack_cache.outputs.cache-hit == 'true'

contracts

Submodule contracts updated 154 files

core/lib/basic_types/src/protocol_version.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ impl ProtocolVersionId {
134134
ProtocolVersionId::Version27 => VmVersion::VmEvmEmulator,
135135
ProtocolVersionId::Version28 => VmVersion::VmEcPrecompiles,
136136
ProtocolVersionId::Version29 => VmVersion::VmInterop,
137-
ProtocolVersionId::Version30 => VmVersion::VmMediumInterop,
137+
// Note V30 is only present on zksync os
138+
ProtocolVersionId::Version30 => VmVersion::VmInterop,
138139
ProtocolVersionId::Version31 => VmVersion::VmMediumInterop,
139140
// Speculative VM version for the next protocol version to be used in the upgrade integration test etc.
140141
ProtocolVersionId::Version32 => VmVersion::VmMediumInterop,
@@ -326,7 +327,7 @@ impl From<ProtocolVersionId> for VmVersion {
326327
ProtocolVersionId::Version27 => VmVersion::VmEvmEmulator,
327328
ProtocolVersionId::Version28 => VmVersion::VmEcPrecompiles,
328329
ProtocolVersionId::Version29 => VmVersion::VmInterop,
329-
ProtocolVersionId::Version30 => VmVersion::VmMediumInterop,
330+
ProtocolVersionId::Version30 => VmVersion::VmInterop,
330331
ProtocolVersionId::Version31 => VmVersion::VmMediumInterop,
331332
// Speculative VM version for the next protocol version to be used in the upgrade integration test etc.
332333
ProtocolVersionId::Version32 => VmVersion::VmMediumInterop,

core/lib/types/src/api/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ pub enum InteropMode {
205205
// Proof-based interop on Gateway, meaning the Merkle proof hashes to Gateway's MessageRoot
206206
ProofBasedGateway,
207207
// Proof-based interop on L1, meaning the Merkle proof hashes to L1's MessageRoot
208-
// ProofBasedL1, // todo: v30
208+
// ProofBasedL1, // todo: v31
209209
}
210210

211211
impl Serialize for InteropMode {

core/node/eth_sender/src/eth_tx_aggregator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ impl EthTxAggregator {
855855
let reason = Some("Gateway migration started");
856856
op_restrictions.commit_restriction = reason;
857857
op_restrictions.precommit_restriction = reason;
858-
// From V30 when migrating to or from gateway, we need to wait for all blocks to be executed,
858+
// From V31 when migrating to or from gateway, we need to wait for all blocks to be executed,
859859
// so there is no restriction for prove and execute operations
860860
if let Some(SettlementLayer::Gateway(_)) = self.settlement_layer {
861861
// For the migration from gateway to L1, we need we need to ensure all batches containing interop roots get committed and executed.

core/node/state_keeper/src/io/mempool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ impl MempoolIO {
535535
}
536536

537537
fn pubdata_params(&self, protocol_version: ProtocolVersionId) -> anyhow::Result<PubdataParams> {
538-
// Starting from v30 we have to use commitment schema instead of address
538+
// Starting from v31 we have to use commitment schema instead of address
539539
let pubdata_params = match (
540540
protocol_version.is_pre_medium_interop(),
541541
self.l2_da_validator_address,

infrastructure/local-upgrade-testing/era-cacher/do-no-server-upgrade-gateway.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
upgrade_version="v28-1-vk"
66

7-
zkstackup --local --cargo-features upgrades && zkstack dev clean containers && zkstack up --observability false
7+
zkstackup --local && zkstack dev clean containers && zkstack up --observability false
88
zkstack dev contracts
99

1010
zkstack ecosystem init --deploy-paymaster --deploy-erc20 \

infrastructure/local-upgrade-testing/era-cacher/do-no-server-upgrade.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
# era-cacher/use-new-era.sh && cd zksync-working
44

5-
upgrade_version="v29-interop-a-ff"
5+
upgrade_version="v31-interop-b"
66
# "v28-1-vk"
7-
upgrade_file_extension="v29"
7+
upgrade_file_extension="v31"
88
# v28-1-zk-os
99

1010

11-
zkstackup --local --cargo-features upgrades && zkstack dev clean containers && zkstack up --observability false
11+
zkstackup --local && zkstack dev clean containers && zkstack up --observability false
1212
zkstack dev contracts
1313

1414
zkstack ecosystem init --deploy-paymaster --deploy-erc20 \

infrastructure/local-upgrade-testing/era-cacher/do-upgrade.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ cd .. && era-cacher/use-new-era.sh && cd zksync-working
5353
# `cd ..` and then `cd zksync-working`.
5454
# Sometimes, the console may not reflect the changes made to the codebase.
5555

56-
zkstackup --local --cargo-features upgrades
56+
zkstackup --local
5757
zkstack dev contracts
5858

5959
cd contracts

infrastructure/scripts/interop.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ zkstack ecosystem init --deploy-paymaster --deploy-erc20 \
4040
--ignore-prerequisites --observability=false \
4141
--chain era \
4242
--update-submodules false
43+
# --pause-deposits \
44+
4345

4446
zkstack chain create \
4547
--chain-name $SECOND_CHAIN_NAME \

0 commit comments

Comments
 (0)