Skip to content

Commit ebffab7

Browse files
committed
update configs for Darwin
1 parent 11ef777 commit ebffab7

File tree

7 files changed

+28
-12
lines changed

7 files changed

+28
-12
lines changed

docker/config-example.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ CHAIN_ID_L2 = 222222
99
MAX_TX_IN_CHUNK = 100
1010
MAX_BLOCK_IN_CHUNK = 100
1111
MAX_CHUNK_IN_BATCH = 15
12+
MAX_BATCH_IN_BUNDLE = 30
1213
MAX_L1_MESSAGE_GAS_LIMIT = 10000000
1314

1415
L1_CONTRACT_DEPLOYMENT_BLOCK = 0

docker/templates/coordinator-config.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
"session_attempts": 100,
55
"chunk_collection_time_sec": 3600,
66
"batch_collection_time_sec": 600,
7+
"bundle_collection_time_sec": 600,
78
"verifier": {
8-
"fork_name": "bernoulli",
9+
"fork_name": "darwin",
910
"mock_mode": false,
1011
"params_path": "/verifier/params",
11-
"assets_path": "/verifier/assets"
12+
"assets_path_lo": "/verifier/assets/lo",
13+
"assets_path_hi": "/verifier/assets/hi"
1214
},
1315
"max_verifier_workers": 4,
1416
"min_prover_version": "v4.3.41"

docker/templates/genesis.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"shanghaiBlock": 0,
1717
"bernoulliBlock": 0,
1818
"curieBlock": 0,
19+
"darwinTime": 0,
1920
"clique": {
2021
"period": 3,
2122
"epoch": 30000

docker/templates/rollup-config.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"l1_config": {
3-
"confirmations": "0x0",
43
"endpoint": null,
5-
"l1_message_queue_address": null,
6-
"scroll_chain_address": null,
74
"start_height": 0,
85
"relayer_config": {
96
"gas_price_oracle_contract_address": null,
@@ -12,8 +9,9 @@
129
"escalate_blocks": 100,
1310
"escalate_multiple_num": 11,
1411
"escalate_multiple_den": 10,
12+
"min_gas_tip": 1,
1513
"max_gas_price": 10000000000000,
16-
"tx_type": "LegacyTx",
14+
"tx_type": "DynamicFeeTx",
1715
"check_pending_time": 3,
1816
"confirmations": "0x0"
1917
},
@@ -38,11 +36,13 @@
3836
"escalate_blocks": 4,
3937
"escalate_multiple_num": 12,
4038
"escalate_multiple_den": 10,
39+
"min_gas_tip": 100000000,
4140
"max_gas_price": 200000000000,
4241
"max_blob_gas_price": 200000000000,
4342
"tx_type": "DynamicFeeTx",
4443
"check_pending_time": 10,
45-
"confirmations": "0x0"
44+
"confirmations": "0x0",
45+
"max_pending_blob_txs": 3
4646
},
4747
"gas_oracle_config": {
4848
"min_gas_price": 0,
@@ -56,12 +56,14 @@
5656
},
5757
"enable_test_env_bypass_features": null,
5858
"finalize_batch_without_proof_timeout_sec": null,
59+
"finalize_bundle_without_proof_timeout_sec": null,
5960
"gas_oracle_sender_private_key": null,
6061
"commit_sender_private_key": null,
6162
"finalize_sender_private_key": null,
6263
"l1_commit_gas_limit_multiplier": 1.2
6364
},
6465
"chunk_proposer_config": {
66+
"propose_interval_milliseconds": 100,
6567
"max_block_num_per_chunk": null,
6668
"max_tx_num_per_chunk": null,
6769
"max_l1_commit_gas_per_chunk": 5000000,
@@ -72,12 +74,17 @@
7274
"max_uncompressed_batch_bytes_size": 634880
7375
},
7476
"batch_proposer_config": {
77+
"propose_interval_milliseconds": 1000,
7578
"max_chunk_num_per_batch": null,
7679
"max_l1_commit_gas_per_batch": 5000000,
7780
"max_l1_commit_calldata_size_per_batch": 110000,
7881
"batch_timeout_sec": 2700,
7982
"gas_cost_increase_multiplier": 1.2,
8083
"max_uncompressed_batch_bytes_size": 634880
84+
},
85+
"bundle_proposer_config": {
86+
"max_batch_num_per_bundle": 20,
87+
"bundle_timeout_sec": 36000
8188
}
8289
},
8390
"db_config": {

scripts/deterministic/Configuration.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ abstract contract Configuration is Script {
3232
uint256 internal MAX_TX_IN_CHUNK;
3333
uint256 internal MAX_BLOCK_IN_CHUNK;
3434
uint256 internal MAX_CHUNK_IN_BATCH;
35+
uint256 internal MAX_BATCH_IN_BUNDLE;
3536
uint256 internal MAX_L1_MESSAGE_GAS_LIMIT;
3637

3738
uint256 internal L1_CONTRACT_DEPLOYMENT_BLOCK;
@@ -106,6 +107,7 @@ abstract contract Configuration is Script {
106107
MAX_TX_IN_CHUNK = cfg.readUint(".general.MAX_TX_IN_CHUNK");
107108
MAX_BLOCK_IN_CHUNK = cfg.readUint(".general.MAX_BLOCK_IN_CHUNK");
108109
MAX_CHUNK_IN_BATCH = cfg.readUint(".general.MAX_CHUNK_IN_BATCH");
110+
MAX_BATCH_IN_BUNDLE = cfg.readUint(".general.MAX_BATCH_IN_BUNDLE");
109111
MAX_L1_MESSAGE_GAS_LIMIT = cfg.readUint(".general.MAX_L1_MESSAGE_GAS_LIMIT");
110112

111113
L1_CONTRACT_DEPLOYMENT_BLOCK = cfg.readUint(".general.L1_CONTRACT_DEPLOYMENT_BLOCK");

scripts/deterministic/DeployScroll.s.sol

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,11 +1051,14 @@ contract DeployScroll is DeterminsticDeployment {
10511051
MAX_L1_MESSAGE_GAS_LIMIT
10521052
);
10531053
}
1054-
if (
1055-
getInitializeCount(L1_MESSAGE_QUEUE_PROXY_ADDR) == 0 || getInitializeCount(L1_MESSAGE_QUEUE_PROXY_ADDR) == 1
1056-
) {
1054+
1055+
if (getInitializeCount(L1_MESSAGE_QUEUE_PROXY_ADDR) < 2) {
10571056
L1MessageQueueWithGasPriceOracle(L1_MESSAGE_QUEUE_PROXY_ADDR).initializeV2();
10581057
}
1058+
1059+
if (getInitializeCount(L1_MESSAGE_QUEUE_PROXY_ADDR) < 3) {
1060+
L1MessageQueueWithGasPriceOracle(L1_MESSAGE_QUEUE_PROXY_ADDR).initializeV3();
1061+
}
10591062
}
10601063

10611064
function initializeL1ScrollMessenger() private {

scripts/deterministic/GenerateConfigs.s.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ contract GenerateRollupConfig is DeployScroll {
3737
vm.writeJson(L1_RPC_ENDPOINT, ROLLUP_CONFIG_PATH, ".l2_config.relayer_config.sender_config.endpoint");
3838

3939
// contracts
40-
vm.writeJson(vm.toString(L1_MESSAGE_QUEUE_PROXY_ADDR), ROLLUP_CONFIG_PATH, ".l1_config.l1_message_queue_address");
41-
vm.writeJson(vm.toString(L1_SCROLL_CHAIN_PROXY_ADDR), ROLLUP_CONFIG_PATH, ".l1_config.scroll_chain_address");
4240
vm.writeJson(vm.toString(L1_GAS_PRICE_ORACLE_ADDR), ROLLUP_CONFIG_PATH, ".l1_config.relayer_config.gas_price_oracle_contract_address");
4341
vm.writeJson(vm.toString(L2_MESSAGE_QUEUE_ADDR), ROLLUP_CONFIG_PATH, ".l2_config.l2_message_queue_address");
4442
vm.writeJson(vm.toString(L1_SCROLL_CHAIN_PROXY_ADDR), ROLLUP_CONFIG_PATH, ".l2_config.relayer_config.rollup_contract_address");
@@ -53,10 +51,12 @@ contract GenerateRollupConfig is DeployScroll {
5351
// other
5452
vm.writeJson(vm.toString(TEST_ENV_MOCK_FINALIZE_ENABLED), ROLLUP_CONFIG_PATH, ".l2_config.relayer_config.enable_test_env_bypass_features");
5553
vm.writeJson(vm.toString(TEST_ENV_MOCK_FINALIZE_TIMEOUT_SEC), ROLLUP_CONFIG_PATH, ".l2_config.relayer_config.finalize_batch_without_proof_timeout_sec");
54+
vm.writeJson(vm.toString(TEST_ENV_MOCK_FINALIZE_TIMEOUT_SEC), ROLLUP_CONFIG_PATH, ".l2_config.relayer_config.finalize_bundle_without_proof_timeout_sec");
5655

5756
vm.writeJson(vm.toString(MAX_BLOCK_IN_CHUNK), ROLLUP_CONFIG_PATH, ".l2_config.chunk_proposer_config.max_block_num_per_chunk");
5857
vm.writeJson(vm.toString(MAX_TX_IN_CHUNK), ROLLUP_CONFIG_PATH, ".l2_config.chunk_proposer_config.max_tx_num_per_chunk");
5958
vm.writeJson(vm.toString(MAX_CHUNK_IN_BATCH), ROLLUP_CONFIG_PATH, ".l2_config.batch_proposer_config.max_chunk_num_per_batch");
59+
vm.writeJson(vm.toString(MAX_BATCH_IN_BUNDLE), ROLLUP_CONFIG_PATH, ".l2_config.bundle_proposer_config.max_batch_num_per_bundle");
6060

6161
vm.writeJson(SCROLL_DB_CONNECTION_STRING, ROLLUP_CONFIG_PATH, ".db_config.dsn");
6262
}

0 commit comments

Comments
 (0)