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

fix: More migration fixes, bumping contracts #1694

Merged
merged 36 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
32e06b5
missed linkcheck file
kelemeno Apr 12, 2024
3a0686d
more migration fixes
kelemeno Apr 15, 2024
18d665b
Merge branch 'kl-factory' of github.com:matter-labs/zksync-era into k…
kelemeno Apr 15, 2024
b7afbba
bump contracts and configs
kelemeno Apr 16, 2024
ba65c45
check bridge address in CI
kelemeno Apr 16, 2024
411d2e1
Merge branch 'kl-factory' of github.com:matter-labs/zksync-era into k…
kelemeno Apr 16, 2024
4c8830d
update yarn lock, bump contracts
kelemeno Apr 16, 2024
607bbdd
added extra comments
kelemeno Apr 16, 2024
c4b7aef
hyperchain-upgrade small fix
kelemeno Apr 16, 2024
ebf76d8
Merge branch 'kl-factory' of github.com:matter-labs/zksync-era into k…
kelemeno Apr 17, 2024
5a13f6b
changed protocol version in common
kelemeno Apr 17, 2024
1e3b8de
more scripts
kelemeno Apr 17, 2024
72aa031
changed upgrade process
kelemeno Apr 17, 2024
e12e765
i commit the changes often as I'm switching
kelemeno Apr 17, 2024
fbf986d
debugging
kelemeno Apr 18, 2024
a1d0939
more migration fixes
kelemeno Apr 18, 2024
e5fac6d
server l2 erc 20 bridge rpc fix
kelemeno Apr 18, 2024
7dbb5ff
bump contracts
kelemeno Apr 18, 2024
5c6d13e
Merge branch 'kl-factory' of github.com:matter-labs/zksync-era into k…
kelemeno Apr 18, 2024
7d48c4b
solpp removal propagation, extra comment
kelemeno Apr 18, 2024
e6e9cae
bump contracts
kelemeno Apr 19, 2024
539329c
making shared bridge address optional
kelemeno Apr 19, 2024
01d7c0a
making l2 bridge address optional
kelemeno Apr 19, 2024
4a123cd
bump contacts yarn lock
kelemeno Apr 19, 2024
e1d83fd
small l2 shared bridge name change
kelemeno Apr 19, 2024
1651418
small l2 bridge fix
kelemeno Apr 19, 2024
6128e5e
undid l1_shared_bridge extra proxy
kelemeno Apr 19, 2024
259867a
Merge branch 'kl-factory' of github.com:matter-labs/zksync-era into k…
kelemeno Apr 19, 2024
3f6a19e
max number of hyperchains in contracts.toml
kelemeno Apr 19, 2024
a5a598b
Merge branch 'kl-factory' of github.com:matter-labs/zksync-era into k…
kelemeno Apr 19, 2024
ba49ad4
Update infrastructure/protocol-upgrade/src/hyperchain-upgrade.ts
kelemeno Apr 19, 2024
6df17b8
Update infrastructure/protocol-upgrade/src/hyperchain-upgrade.ts
kelemeno Apr 19, 2024
ae9c1dd
stas's recommendations
kelemeno Apr 19, 2024
9d8de00
zk fmt
kelemeno Apr 19, 2024
4d40bd5
removed extra if statements
kelemeno Apr 19, 2024
0bb379c
Merge branch 'kl-factory' of github.com:matter-labs/zksync-era into k…
kelemeno Apr 19, 2024
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 contracts
Submodule contracts updated 97 files
+1 −0 l1-contracts-foundry/script-config/config-deploy-l1.toml
+5 −1 l1-contracts-foundry/script/DeployErc20.s.sol
+4 −1 l1-contracts-foundry/script/DeployL1.s.sol
+2 −1 l1-contracts/.env
+11 −12 l1-contracts/contracts/bridge/L1ERC20Bridge.sol
+155 −60 l1-contracts/contracts/bridge/L1SharedBridge.sol
+2 −2 l1-contracts/contracts/bridge/interfaces/IL1ERC20Bridge.sol
+10 −3 l1-contracts/contracts/bridge/interfaces/IL1SharedBridge.sol
+1 −1 l1-contracts/contracts/bridge/interfaces/IL2Bridge.sol
+23 −6 l1-contracts/contracts/bridgehub/Bridgehub.sol
+0 −5 l1-contracts/contracts/dev-contracts/test/DummyAdminFacet.sol
+6 −3 l1-contracts/contracts/dev-contracts/test/DummyAdminFacetNoOverlap.sol
+1 −4 l1-contracts/contracts/dev-contracts/test/DummyExecutor.sol
+6 −2 l1-contracts/contracts/dev-contracts/test/DummyStateTransitionManager.sol
+1 −1 l1-contracts/contracts/dev-contracts/test/DummyStateTransitionManagerForValidatorTimelock.sol
+6 −2 l1-contracts/contracts/dev-contracts/test/DummyStateTransitionManagerWithBridgeHubAddress.sol
+3 −4 l1-contracts/contracts/dev-contracts/test/ExecutorProvingTest.sol
+0 −58 l1-contracts/contracts/dev-contracts/test/L1SharedBridgeTest.sol
+7 −3 l1-contracts/contracts/state-transition/IStateTransitionManager.sol
+67 −29 l1-contracts/contracts/state-transition/StateTransitionManager.sol
+2 −2 l1-contracts/contracts/state-transition/ValidatorTimelock.sol
+1 −1 l1-contracts/contracts/state-transition/chain-deps/DiamondInit.sol
+1 −2 l1-contracts/contracts/state-transition/chain-deps/ZkSyncHyperchainStorage.sol
+2 −2 l1-contracts/contracts/state-transition/chain-deps/facets/Admin.sol
+4 −23 l1-contracts/contracts/state-transition/chain-deps/facets/Executor.sol
+1 −1 l1-contracts/contracts/state-transition/chain-deps/facets/Getters.sol
+8 −8 l1-contracts/contracts/state-transition/chain-deps/facets/Mailbox.sol
+1 −0 l1-contracts/contracts/state-transition/chain-interfaces/IGetters.sol
+0 −5 l1-contracts/contracts/state-transition/chain-interfaces/IMailbox.sol
+1 −2 l1-contracts/contracts/state-transition/chain-interfaces/IZkSyncHyperchain.sol
+2 −2 l1-contracts/contracts/upgrades/BaseZkSyncUpgrade.sol
+2 −30 l1-contracts/contracts/upgrades/BaseZkSyncUpgradeGenesis.sol
+1 −0 l1-contracts/contracts/upgrades/UpgradeHyperchains.sol
+1 −0 l1-contracts/package.json
+1 −5 l1-contracts/scripts/display-governance.ts
+2 −4 l1-contracts/scripts/hyperchain-upgrade-2.ts
+67 −0 l1-contracts/scripts/hyperchain-upgrade-3.ts
+1 −1 l1-contracts/scripts/initialize-l2-weth-token.ts
+1 −1 l1-contracts/scripts/read-variable.ts
+1 −1 l1-contracts/src.ts/deploy-process.ts
+70 −34 l1-contracts/src.ts/deploy-test-process.ts
+4 −0 l1-contracts/src.ts/deploy-utils.ts
+21 −8 l1-contracts/src.ts/deploy.ts
+105 −51 l1-contracts/src.ts/hyperchain-upgrade.ts
+1 −0 l1-contracts/src.ts/utils.ts
+1 −1 l1-contracts/test/foundry/unit/concrete/Bridgehub/experimental_bridge.t.sol
+10 −92 l1-contracts/test/foundry/unit/concrete/Bridges/L1SharedBridge/L1SharedBridgeBase.t.sol
+3 −13 l1-contracts/test/foundry/unit/concrete/Bridges/L1SharedBridge/L1SharedBridgeFails.t.sol
+11 −84 l1-contracts/test/foundry/unit/concrete/Bridges/L1SharedBridge/L1SharedBridgeHyperEnabled.t.sol
+4 −35 l1-contracts/test/foundry/unit/concrete/Bridges/L1SharedBridge/L1SharedBridgeLegacy.t.sol
+29 −9 l1-contracts/test/foundry/unit/concrete/Bridges/L1SharedBridge/_L1SharedBridge_Shared.t.sol
+4 −4 l1-contracts/test/foundry/unit/concrete/DiamondCut/UpgradeLogic.t.sol
+4 −12 l1-contracts/test/foundry/unit/concrete/Executor/ExecutorProof.t.sol
+2 −2 l1-contracts/test/foundry/unit/concrete/Utils/UtilsFacet.sol
+1 −1 l1-contracts/test/foundry/unit/concrete/state-transition/StateTransitionManager/CreateNewChain.t.sol
+1 −1 l1-contracts/test/foundry/unit/concrete/state-transition/StateTransitionManager/FreezeChain.t.sol
+1 −1 l1-contracts/test/foundry/unit/concrete/state-transition/StateTransitionManager/RevertBatches.t.sol
+1 −1 ...cts/test/foundry/unit/concrete/state-transition/StateTransitionManager/_StateTransitionManager_Shared.t.sol
+5 −5 l1-contracts/test/foundry/unit/concrete/state-transition/chain-deps/facets/Admin/FreezeDiamond.t.sol
+6 −6 l1-contracts/test/foundry/unit/concrete/state-transition/chain-deps/facets/Admin/UnfreezeDiamond.t.sol
+1 −1 l1-contracts/test/foundry/unit/concrete/state-transition/chain-deps/facets/Getters/_Getters_Shared.t.sol
+16 −16 l1-contracts/test/test_config/constant/hardhat.json
+1 −16 l1-contracts/test/unit_tests/hyperchain_migration_test.spec.ts
+1 −1 l1-contracts/test/unit_tests/initial_deployment_test.spec.ts
+1 −2 l1-contracts/test/unit_tests/l2-upgrade.test.spec.ts
+5 −8 l1-contracts/test/unit_tests/legacy_era_test.spec.ts
+2 −3 l1-contracts/test/unit_tests/utils.ts
+1 −1 l1-contracts/test/unit_tests/validator_timelock_test.spec.ts
+0 −8 l2-contracts/contracts/Config.sol
+7 −7 l2-contracts/contracts/bridge/L2SharedBridge.sol
+1 −4 l2-contracts/contracts/bridge/interfaces/IL2SharedBridge.sol
+0 −42 l2-contracts/hardhat.config.ts
+1 −1 l2-contracts/package.json
+206 −0 l2-contracts/src/deploy-shared-bridge-implementation-legacy.ts
+48 −19 l2-contracts/src/deploy-shared-bridge-on-l2-through-l1.ts
+3 −1 l2-contracts/test/erc20.test.ts
+2 −1 l2-contracts/test/weth.test.ts
+42 −35 system-contracts/SystemContractsHashes.json
+52 −17 system-contracts/bootloader/bootloader.yul
+2 −2 system-contracts/contracts/Compressor.sol
+2 −1 system-contracts/contracts/Constants.sol
+55 −0 system-contracts/contracts/Create2Factory.sol
+1 −1 system-contracts/contracts/DefaultAccount.sol
+7 −7 system-contracts/contracts/GasBoundCaller.sol
+0 −1 system-contracts/contracts/L1Messenger.sol
+3 −3 system-contracts/contracts/L2BaseToken.sol
+2 −0 system-contracts/contracts/SystemContext.sol
+2 −2 system-contracts/contracts/interfaces/ICompressor.sol
+1 −1 system-contracts/contracts/interfaces/ISystemContext.sol
+7 −5 system-contracts/contracts/libraries/SystemContractHelper.sol
+1 −1 system-contracts/contracts/libraries/SystemContractsCaller.sol
+3 −3 system-contracts/contracts/precompiles/CodeOracle.yul
+6 −16 system-contracts/contracts/precompiles/P256Verify.yul
+0 −5 system-contracts/package.json
+8 −0 system-contracts/scripts/constants.ts
+33 −0 system-contracts/test/Create2Factory.spec.ts
+1 −75 yarn.lock
8 changes: 4 additions & 4 deletions core/bin/external_node/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ pub(crate) struct RemoteENConfig {
pub state_transition_proxy_addr: Option<Address>,
pub transparent_proxy_admin_addr: Option<Address>,
pub diamond_proxy_addr: Address,
pub l1_shared_bridge_proxy_addr: Address,
pub l2_shared_bridge_addr: Address,
pub l1_shared_bridge_proxy_addr: Option<Address>,
pub l2_shared_bridge_addr: Option<Address>,
pub l1_erc20_bridge_proxy_addr: Option<Address>,
pub l2_erc20_bridge_addr: Option<Address>,
pub l1_weth_bridge_addr: Option<Address>,
Expand Down Expand Up @@ -158,9 +158,9 @@ impl RemoteENConfig {
l2_chain_id: L2ChainId::default(),
l1_chain_id: L1ChainId(9),
base_token_addr: Address::repeat_byte(4),
l1_shared_bridge_proxy_addr: Address::repeat_byte(5),
l1_shared_bridge_proxy_addr: Some(Address::repeat_byte(5)),
l1_weth_bridge_addr: None,
l2_shared_bridge_addr: Address::repeat_byte(6),
l2_shared_bridge_addr: Some(Address::repeat_byte(6)),
max_pubdata_per_batch: 1 << 17,
l1_batch_commit_data_generator_mode: L1BatchCommitDataGeneratorMode::Rollup,
dummy_verifier: true,
Expand Down
5 changes: 4 additions & 1 deletion core/bin/external_node/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,10 @@ async fn run_core(

let (persistence, miniblock_sealer) = StateKeeperPersistence::new(
connection_pool.clone(),
config.remote.l2_shared_bridge_addr,
config
.remote
.l2_shared_bridge_addr
.unwrap_or_else(|| config.remote.l2_erc20_bridge_addr.unwrap()),
config.optional.miniblock_seal_queue_capacity,
);
task_handles.push(tokio::spawn(miniblock_sealer.run()));
Expand Down
8 changes: 4 additions & 4 deletions core/lib/config/src/configs/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ pub struct ContractsConfig {
pub default_upgrade_addr: Address,
pub diamond_proxy_addr: Address,
pub validator_timelock_addr: Address,
pub l1_shared_bridge_proxy_addr: Address,
pub l2_shared_bridge_addr: Address,
pub l1_shared_bridge_proxy_addr: Option<Address>,
pub l2_shared_bridge_addr: Option<Address>,
pub l1_erc20_bridge_proxy_addr: Option<Address>,
pub l2_erc20_bridge_addr: Option<Address>,
pub l1_weth_bridge_proxy_addr: Option<Address>,
Expand All @@ -31,8 +31,8 @@ impl ContractsConfig {
validator_timelock_addr: Address::repeat_byte(0x0a),
l1_erc20_bridge_proxy_addr: Some(Address::repeat_byte(0x0b)),
l2_erc20_bridge_addr: Some(Address::repeat_byte(0x0c)),
l1_shared_bridge_proxy_addr: Address::repeat_byte(0x0e),
l2_shared_bridge_addr: Address::repeat_byte(0x0f),
l1_shared_bridge_proxy_addr: Some(Address::repeat_byte(0x0e)),
l2_shared_bridge_addr: Some(Address::repeat_byte(0x0f)),
l1_weth_bridge_proxy_addr: Some(Address::repeat_byte(0x0b)),
l2_weth_bridge_addr: Some(Address::repeat_byte(0x0c)),
l2_testnet_paymaster_addr: Some(Address::repeat_byte(0x11)),
Expand Down
4 changes: 2 additions & 2 deletions core/lib/env_config/src/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ mod tests {
l2_erc20_bridge_addr: Some(addr("8656770FA78c830456B00B4fFCeE6b1De0e1b888")),
l1_weth_bridge_proxy_addr: Some(addr("8656770FA78c830456B00B4fFCeE6b1De0e1b888")),
l2_weth_bridge_addr: Some(addr("8656770FA78c830456B00B4fFCeE6b1De0e1b888")),
l1_shared_bridge_proxy_addr: addr("8656770FA78c830456B00B4fFCeE6b1De0e1b888"),
l2_shared_bridge_addr: addr("8656770FA78c830456B00B4fFCeE6b1De0e1b888"),
l1_shared_bridge_proxy_addr: Some(addr("8656770FA78c830456B00B4fFCeE6b1De0e1b888")),
l2_shared_bridge_addr: Some(addr("8656770FA78c830456B00B4fFCeE6b1De0e1b888")),
l2_testnet_paymaster_addr: Some(addr("FC073319977e314F251EAE6ae6bE76B0B3BAeeCF")),
l1_multicall3_addr: addr("0xcA11bde05977b3631167028862bE2a173976CA11"),
base_token_addr: Some(SHARED_BRIDGE_ETHER_TOKEN_ADDRESS),
Expand Down
22 changes: 14 additions & 8 deletions core/lib/protobuf_config/src/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,24 @@ impl ProtoRepr for proto::Contracts {
.as_ref()
.map(|x| parse_h160(x))
.transpose()
.context("l1_erc20_bridge_proxy_addr")?,
.context("l1_erc20_bridge_addr")?,
l2_erc20_bridge_addr: erc20
.l2_address
.as_ref()
.map(|x| parse_h160(x))
.transpose()
.context("l1_erc20_bridge_impl_addr")?,
l1_shared_bridge_proxy_addr: required(&shared.l1_address)
.and_then(|x| parse_h160(x))
.context("l1_shared_bridge_addr")?,
l2_shared_bridge_addr: required(&shared.l2_address)
.and_then(|x| parse_h160(x))
l1_shared_bridge_proxy_addr: shared
.l1_address
.as_ref()
.map(|x| parse_h160(x))
.transpose()
.context("l1_shared_bridge_proxy_addr")?,
l2_shared_bridge_addr: shared
.l2_address
.as_ref()
.map(|x| parse_h160(x))
.transpose()
.context("l2_shared_bridge_proxy_addr")?,
l1_weth_bridge_proxy_addr: weth_bridge
.l1_address
Expand Down Expand Up @@ -94,8 +100,8 @@ impl ProtoRepr for proto::Contracts {
}),
bridges: Some(proto::Bridges {
shared: Some(proto::Bridge {
l1_address: Some(format!("{:?}", this.l1_shared_bridge_proxy_addr)),
l2_address: Some(format!("{:?}", this.l2_shared_bridge_addr)),
l1_address: this.l1_shared_bridge_proxy_addr.map(|a| format!("{:?}", a)),
l2_address: this.l2_shared_bridge_addr.map(|a| format!("{:?}", a)),
}),
erc20: Some(proto::Bridge {
l1_address: this.l1_erc20_bridge_proxy_addr.map(|a| format!("{:?}", a)),
Expand Down
4 changes: 2 additions & 2 deletions core/lib/types/src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ pub struct L2ToL1LogProof {
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct BridgeAddresses {
pub l1_shared_default_bridge: Address,
pub l2_shared_default_bridge: Address,
pub l1_shared_default_bridge: Option<Address>,
pub l2_shared_default_bridge: Option<Address>,
pub l1_erc20_default_bridge: Option<Address>,
pub l2_erc20_default_bridge: Option<Address>,
pub l1_weth_bridge: Option<Address>,
Expand Down
4 changes: 3 additions & 1 deletion core/lib/zksync_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,9 @@ async fn add_state_keeper_to_task_futures(
.context("failed to build miniblock_sealer_pool")?;
let (persistence, miniblock_sealer) = StateKeeperPersistence::new(
miniblock_sealer_pool,
contracts_config.l2_shared_bridge_addr,
contracts_config
.l2_shared_bridge_addr
.unwrap_or_else(|| contracts_config.l2_erc20_bridge_addr.unwrap()),
state_keeper_config.miniblock_seal_queue_capacity,
);
task_futures.push(tokio::spawn(miniblock_sealer.run()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ impl WiringLayer for MempoolIOLayer {
.get_singleton()
.await
.context("Get master pool")?,
self.contracts_config.l2_shared_bridge_addr,
self.contracts_config
.l2_shared_bridge_addr
.unwrap_or_else(|| self.contracts_config.l2_erc20_bridge_addr.unwrap()),
self.state_keeper_config.miniblock_seal_queue_capacity,
);
let output_handler = OutputHandler::new(Box::new(persistence));
Expand Down
2 changes: 1 addition & 1 deletion core/tests/loadnext/src/sdk/abi/update-abi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ cat $ZKSYNC_HOME/contracts/l1-contracts/artifacts/contracts/state-transition/cha
cat $ZKSYNC_HOME/contracts/l1-contracts/artifacts/contracts/bridge/interfaces/IL1SharedBridge.sol/IL1SharedBridge.json | jq '{ abi: .abi}' > IL1SharedBridge.json
cat $ZKSYNC_HOME/contracts/l1-contracts/artifacts/contracts/bridge/interfaces/IL1ERC20Bridge.sol/IL1ERC20Bridge.json | jq '{ abi: .abi}' > IL1ERC20Bridge.json
# Paymaster interface
cat $ZKSYNC_HOME/contracts/l2-contracts/artifacts-zk/cache-zk/solpp-generated-contracts/interfaces/IPaymasterFlow.sol/IPaymasterFlow.json | jq '{ abi: .abi}' > IPaymasterFlow.json
cat $ZKSYNC_HOME/contracts/l2-contracts/artifacts-zk/contracts/interfaces/IPaymasterFlow.sol/IPaymasterFlow.json | jq '{ abi: .abi}' > IPaymasterFlow.json
68 changes: 34 additions & 34 deletions core/tests/ts-integration/package.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
{
"name": "ts-integration",
"version": "0.1.0",
"license": "MIT",
"private": true,
"scripts": {
"test": "zk f jest --forceExit --testTimeout 60000",
"long-running-test": "zk f jest",
"fee-test": "RUN_FEE_TEST=1 zk f jest -- fees.test.ts",
"api-test": "zk f jest -- api/web3.test.ts api/debug.test.ts",
"contract-verification-test": "zk f jest -- api/contract-verification.test.ts",
"build": "hardhat compile",
"build-yul": "hardhat run scripts/compile-yul.ts"
},
"devDependencies": {
"@matterlabs/hardhat-zksync-deploy": "^0.6.5",
"@matterlabs/hardhat-zksync-solc": "0.4.2",
"@matterlabs/hardhat-zksync-vyper": "^1.0.0",
"@nomiclabs/hardhat-vyper": "^3.0.5",
"@types/jest": "^29.0.3",
"@types/node": "^18.19.15",
"@types/node-fetch": "^2.5.7",
"chalk": "^4.0.0",
"ethereumjs-abi": "^0.6.8",
"ethers": "~5.7.0",
"hardhat": "=2.16.0",
"jest": "^29.0.3",
"jest-matcher-utils": "^29.0.3",
"node-fetch": "^2.6.1",
"ts-jest": "^29.0.1",
"ts-node": "^10.1.0",
"typescript": "^4.3.5",
"zksync-ethers": "https://github.com/zksync-sdk/zksync-ethers#sb-old-sdk",
"elliptic": "^6.5.5"
}
"name": "ts-integration",
"version": "0.1.0",
"license": "MIT",
"private": true,
"scripts": {
"test": "zk f jest --forceExit --testTimeout 60000",
"long-running-test": "zk f jest",
"fee-test": "RUN_FEE_TEST=1 zk f jest -- fees.test.ts",
"api-test": "zk f jest -- api/web3.test.ts api/debug.test.ts",
"contract-verification-test": "zk f jest -- api/contract-verification.test.ts",
"build": "hardhat compile",
"build-yul": "hardhat run scripts/compile-yul.ts"
},
"devDependencies": {
"@matterlabs/hardhat-zksync-deploy": "^0.6.5",
"@matterlabs/hardhat-zksync-solc": "0.4.2",
"@matterlabs/hardhat-zksync-vyper": "^1.0.0",
"@nomiclabs/hardhat-vyper": "^3.0.5",
"@types/jest": "^29.0.3",
"@types/node": "^18.19.15",
"@types/node-fetch": "^2.5.7",
"chalk": "^4.0.0",
"ethereumjs-abi": "^0.6.8",
"ethers": "~5.7.0",
"hardhat": "=2.16.0",
"jest": "^29.0.3",
"jest-matcher-utils": "^29.0.3",
"node-fetch": "^2.6.1",
"ts-jest": "^29.0.1",
"ts-node": "^10.1.0",
"typescript": "^4.3.5",
"zksync-ethers": "https://github.com/zksync-sdk/zksync-ethers#sb-old-sdk",
"elliptic": "^6.5.5"
}
}
2 changes: 1 addition & 1 deletion core/tests/upgrade-test/tests/upgrade.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const ADMIN_FACET_ABI = new ethers.utils.Interface(
require(`${L1_CONTRACTS_FOLDER}/state-transition/chain-interfaces/IAdmin.sol/IAdmin.json`).abi
);
const L2_FORCE_DEPLOY_UPGRADER_ABI = new ethers.utils.Interface(
require(`${process.env.ZKSYNC_HOME}/contracts/l2-contracts/artifacts-zk/cache-zk/solpp-generated-contracts/ForceDeployUpgrader.sol/ForceDeployUpgrader.json`).abi
require(`${process.env.ZKSYNC_HOME}/contracts/l2-contracts/artifacts-zk/contracts/ForceDeployUpgrader.sol/ForceDeployUpgrader.json`).abi
);
const COMPLEX_UPGRADER_ABI = new ethers.utils.Interface(
require(`${process.env.ZKSYNC_HOME}/contracts/system-contracts/artifacts-zk/contracts-preprocessed/ComplexUpgrader.sol/ComplexUpgrader.json`).abi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ is common for Yul and EVMLA representations.
### System Contract

This information is requested a System Contract called
[L2BaseToken](https://github.com/code-423n4/2023-10-zksync/blob/main/code/system-contracts/contracts/L2BaseToken.sol).
[L2BaseToken](https://github.com/code-423n4/2024-03-zksync/blob/main/code/system-contracts/contracts/L2BaseToken.sol).

On how the System Contract is called, see
[this section](https://github.com/code-423n4/2023-10-zksync/blob/main/docs/VM%20Section/How%20compiler%20works/system_contracts.md).
Expand Down
4 changes: 2 additions & 2 deletions etc/env/base/chain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ fee_model_version = "V1"
validation_computational_gas_limit = 300000
save_call_traces = true

bootloader_hash = "0x010008bb22aea1e22373cb8d807b15c67eedd65523e9cba4cc556adfa504f7b8"
default_aa_hash = "0x01000563a7f32f1d97b4697f3bc996132433314b9b17351a7f7cd6073f618569"
bootloader_hash = "0x010008c5683b01d785f46d7a4237432c3898b0a2c421d362a0729e2ccaa1c076"
default_aa_hash = "0x01000563dc93ec6220498801ccef18c8e667fe26b7fdd9fb9a8d8e01796144ff"

[chain.operations_manager]
# Sleep time when there is no new input data
Expand Down
6 changes: 4 additions & 2 deletions etc/env/base/contracts.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ RECURSION_NODE_LEVEL_VK_HASH = "0x1186ec268d49f1905f8d9c1e9d39fc33e98c74f91d91a2
RECURSION_LEAF_LEVEL_VK_HASH = "0x101e08b00193e529145ee09823378ef51a3bc8966504064f1f6ba3f1ba863210"
RECURSION_CIRCUITS_SET_VKS_HASH = "0x18c1639094f58177409186e8c48d9f577c9410901d2f1d486b3e7d6cf553ae4c"
GENESIS_TX_HASH = "0xb99ebfea46cbe05a21cd80fe5597d97b204befc52a16303f579c607dc1ac2e2e"
GENESIS_ROOT = "0xb0bf9b08e30c0b9382763f62bd6dfe41f0196b65216e9225b9cd6d03120123f1"
GENESIS_BATCH_COMMITMENT = "0x0754a4d48a5c8cd818b634624180ee3414448044c87d11de5ed75bb59f61d22a"
GENESIS_ROOT = "0x7fe280b1c2209f4b34a15db4cc74568f59db98d400c8e3f3282163acb74d4b14"
GENESIS_BATCH_COMMITMENT = "0x600c2128b67ebf9b5e7c46a5dca5f47b4805baefe483951c26f7404c0f0f92e3"
PRIORITY_TX_MAX_GAS_LIMIT = 72000000
DEPLOY_L2_BRIDGE_COUNTERPART_GAS_LIMIT = 10000000
GENESIS_ROLLUP_LEAF_INDEX = "50"
Expand All @@ -51,8 +51,10 @@ TRANSPARENT_PROXY_ADMIN_ADDR = "0x0000000000000000000000000000000000000000"
BASE_TOKEN_ADDR = "0xFC073319977e314F251EAE6ae6bE76B0B3BAeeCF"
BASE_TOKEN_BRIDGE_ADDR = "0xFC073319977e314F251EAE6ae6bE76B0B3BAeeCF"
GENESIS_UPGRADE_ADDR = "0xFC073319977e314F251EAE6ae6bE76B0B3BAeeCF"
MAX_NUMBER_OF_HYPERCHAINS = 100
L1_SHARED_BRIDGE_PROXY_ADDR = "0xFC073319977e314F251EAE6ae6bE76B0B3BAeeCF"
L2_SHARED_BRIDGE_ADDR = "0xFC073319977e314F251EAE6ae6bE76B0B3BAeeCF"
L2_SHARED_BRIDGE_IMPL_ADDR = "0xFC073319977e314F251EAE6ae6bE76B0B3BAeeCF"
FRI_RECURSION_LEAF_LEVEL_VK_HASH = "0x400a4b532c6f072c00d1806ef299300d4c104f4ac55bd8698ade78894fcadc0a"
FRI_RECURSION_NODE_LEVEL_VK_HASH = "0x5a3ef282b21e12fe1f4438e5bb158fc5060b160559c5158c6389d62d9fe3d080"
FRI_RECURSION_SCHEDULER_LEVEL_VK_HASH = "0x1405880dc3317d635bddb0ab62bf5d013e5d1f462161c1f7ac3289c7fef956da"
Expand Down
2 changes: 1 addition & 1 deletion etc/upgrades/1711451944-hyperchain-upgrade/common.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "hyperchain-upgrade",
"creationTimestamp": 1711451944,
"protocolVersion": "24"
"protocolVersion": "23"
}
Loading
Loading