From 42191da75d8cd86b4e51ecf0019a53732d83f5c9 Mon Sep 17 00:00:00 2001 From: "marvel.yu" Date: Fri, 7 Nov 2025 15:24:10 +0800 Subject: [PATCH] update config for qa --- contracts/src/deploy-config/qanetl1.ts | 11 ++++++----- .../deploy-config/qanet-deploy-config.json | 10 +++++----- ops/l2-genesis/qanet-l2genesis.sh | 14 +++++++------- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/contracts/src/deploy-config/qanetl1.ts b/contracts/src/deploy-config/qanetl1.ts index c266e34fd..e5b30703d 100644 --- a/contracts/src/deploy-config/qanetl1.ts +++ b/contracts/src/deploy-config/qanetl1.ts @@ -4,7 +4,8 @@ const config = { contractAdmin: '0x7161DB99e6ffA72053f0817aBfaF2fDb4ab6ccC8', // chainID config - l1ChainID: 900, + // hoodi chainID + l1ChainID: 560048, l2ChainID: 53077, // L1MessageQueue config @@ -38,10 +39,10 @@ const config = { stakingChallengerRewardPercentage: 50, // register sequencers l2SequencerAddresses: [ - "0x25d36d94b64165f72a817ae0ff9bad2ce6914c70", - "0x4a1f64dec538835c125874e275edca367bf6022a", - "0xbb8605961105bb3dcd0e86ef94a1bf9fb2270a29", - "0x7d7201ad7da2b9b9ab9a36c454a3c2d55c4fbdd8" + "0x0000fD664ED5baAF56b058ba5F090E7B72A1aebA", + "0x00003484c8B3F3c66C8AC79f768747276f5EAdAB", + "0x00007F2eF2fd5EbE1fF350024D8FAa09102c764c", + "0x0000B25e20153327CB80a63cb21bE4F21597ca3D" ], l2SequencerTmKeys: [ "0x5280d0eee2a64d3ad29480d15ffd1b048ce5908f180b5ccd65cc3dcf00941abb", diff --git a/ops/l2-genesis/deploy-config/qanet-deploy-config.json b/ops/l2-genesis/deploy-config/qanet-deploy-config.json index 5c7adb096..ae7132fbc 100644 --- a/ops/l2-genesis/deploy-config/qanet-deploy-config.json +++ b/ops/l2-genesis/deploy-config/qanet-deploy-config.json @@ -1,5 +1,5 @@ { - "l1ChainID": 900, + "l1ChainID": 560048, "l2ChainID": 53077, "finalSystemOwner": "0x716173f5BBE0b4B51AaDF5A5840fA9A79D01636E", "proxyAdminOwner": "0x716173f5BBE0b4B51AaDF5A5840fA9A79D01636E", @@ -34,10 +34,10 @@ "l2StakingUnDelegatedLockEpochs": 2, "l2StakingRewardStartTime": 1728000000, "l2StakingAddresses": [ - "0x675cfc328f9f2e79a51e499b2be44462270572fe", - "0xb096665645994775eeba8aa114752d569734dcb4", - "0x3a587733d38e5487d2a7e81d84625f25c99ab3a1", - "0xb6346ded94fc61b637763610d0c59846b7781080" + "0x0000fD664ED5baAF56b058ba5F090E7B72A1aebA", + "0x00003484c8B3F3c66C8AC79f768747276f5EAdAB", + "0x00007F2eF2fd5EbE1fF350024D8FAa09102c764c", + "0x0000B25e20153327CB80a63cb21bE4F21597ca3D" ], "l2StakingTmKeys": [ "0x5280d0eee2a64d3ad29480d15ffd1b048ce5908f180b5ccd65cc3dcf00941abb", diff --git a/ops/l2-genesis/qanet-l2genesis.sh b/ops/l2-genesis/qanet-l2genesis.sh index 04bf88f31..5ed93d4aa 100755 --- a/ops/l2-genesis/qanet-l2genesis.sh +++ b/ops/l2-genesis/qanet-l2genesis.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu -source ../../contracts/.env +source ../../contracts/.env.qa QANET=".qanet" CONTRACT_CONFIG="../../contracts/src/deploy-config/qanetl1.ts" echo "Regenerating genesis files" @@ -28,15 +28,15 @@ go run cmd/main.go genesis l2 \ --outfile.genbatchheader $QANET/genesis-batch-header.json touch "$QANET/done" ) -l2_genesis_state_root=$(cat $QANET/rollup.json | jq -r .l2_genesis_state_root) -withdraw_root=$(cat $QANET/rollup.json | jq -r .withdraw_root) +# l2_genesis_state_root=$(cat $QANET/rollup.json | jq -r .l2_genesis_state_root) +# withdraw_root=$(cat $QANET/rollup.json | jq -r .withdraw_root) genesis_batch_header=$(cat $QANET/rollup.json | jq -r .genesis_batch_header) -echo "Replacing l2_genesis_state_root: $l2_genesis_state_root" -sed -i "s#rollupGenesisStateRoot: '.*'#rollupGenesisStateRoot: '$l2_genesis_state_root'#g" $CONTRACT_CONFIG +# echo "Replacing l2_genesis_state_root: $l2_genesis_state_root" +# sed -i "s#rollupGenesisStateRoot: '.*'#rollupGenesisStateRoot: '$l2_genesis_state_root'#g" $CONTRACT_CONFIG -echo "Replacing withdraw_root: $withdraw_root" -sed -i "s#withdrawRoot: '.*'#withdrawRoot: '$withdraw_root'#g" $CONTRACT_CONFIG +# echo "Replacing withdraw_root: $withdraw_root" +# sed -i "s#withdrawRoot: '.*'#withdrawRoot: '$withdraw_root'#g" $CONTRACT_CONFIG echo "Replacing genesis_batch_header: $genesis_batch_header" sed -i "s#batchHeader: '.*'#batchHeader: '$genesis_batch_header'#g" $CONTRACT_CONFIG