diff --git a/deployments/sequencer/configs/overlays/hybrid/sepolia-integration/sequencer_config.jsonnet b/deployments/sequencer/configs/overlays/hybrid/sepolia-integration/sequencer_config.jsonnet new file mode 100644 index 00000000000..a6cafadfe37 --- /dev/null +++ b/deployments/sequencer/configs/overlays/hybrid/sepolia-integration/sequencer_config.jsonnet @@ -0,0 +1,79 @@ +// Overrides layer for the `sepolia-integration` environment (hybrid layout). +{ + chain_id: 'SN_INTEGRATION_SEPOLIA', + native_classes_whitelist: 'All', + recorder_url: 'http://starknet-sepolia-integration.cende-recorder-proxy.starknet.io/', + starknet_url: 'https://feeder.integration-sepolia.starknet.io/', + + base_layer_config: { + bpo1_start_block_number: 9456501, + bpo2_start_block_number: 9504747, + fusaka_no_bpo_start_block_number: 9408577, + starknet_contract_address: '0x4737c0c1B4D5b1A687B42610DdabEE781152359c', + }, + + batcher_config: { + dynamic_config: { + n_concurrent_txs: 2, + }, + static_config: { + block_builder_config: { + bouncer_config: { + block_max_capacity: { + state_diff_size: 4000, + }, + }, + execute_config: { + n_workers: 1, + }, + }, + first_block_with_partial_block_hash: { + block_hash: '0x1ea2a9cfa3df5297d58c0a04d09d276bc68d40fe64701305bbe2ed8f417e869', + block_number: 35748, + parent_block_hash: '0x77140bef51bbb4d1932f17cc5081825ff18465a1df4440ca0429a4fa80f1dc5', + }, + }, + }, + + committer_config: { + storage_config: { + cache_size: 10000000, + }, + }, + + consensus_manager_config: { + context_config: { + dynamic_config: { + min_l2_gas_price_per_height: '', + }, + }, + staking_manager_config: { + dynamic_config: { + default_committee: '0,10:0x64,1,0x1,true;0x65,1,0x1,true;0x66,1,0x1,true', + }, + }, + }, + + gateway_config: { + static_config: { + proof_archive_writer_config: { + bucket_name: 'starkware-starknet-integration', + }, + }, + }, + + sierra_compiler_config: { + audited_libfuncs_only: false, + }, + + state_sync_config: { + static_config: { + central_sync_client_config: { + sync_config: { + store_sierras_and_casms_block_threshold: 0, + }, + }, + network_config: null, + }, + }, +} diff --git a/deployments/sequencer/test/test_native_config.py b/deployments/sequencer/test/test_native_config.py index 7b2286422e6..1a9acf8dafc 100644 --- a/deployments/sequencer/test/test_native_config.py +++ b/deployments/sequencer/test/test_native_config.py @@ -2,8 +2,8 @@ Covers: - the null-preserving deep-merge, - - the per-layer lockstep test: the common base `sequencer_config.jsonnet` mirrors the combined - `config.sequencerConfig` of the common-layer YAMLs (folded). + - the per-layer lockstep test: each layer's `sequencer_config.jsonnet` mirrors the combined + `config.sequencerConfig` of that layer's YAMLs (folded). """ import json @@ -17,11 +17,12 @@ LAYOUT = "hybrid" -# Per-layer override-file dirs: the base/common layer holds a `sequencer_config.jsonnet` that must -# mirror the combined `config.sequencerConfig` of the YAMLs in the same dir (see +# Per-layer override-file dirs: each layer holds a `sequencer_config.jsonnet` that must mirror the +# combined `config.sequencerConfig` of the YAMLs in the same dir (see # `_assert_layer_jsonnet_mirrors_combined_yaml`). HYBRID_OVERLAYS_DIR = DEPLOYMENTS_SEQUENCER / "configs" / "overlays" / LAYOUT COMMON_LAYER_DIR = HYBRID_OVERLAYS_DIR / "common" +INTEGRATION_LAYER_DIR = HYBRID_OVERLAYS_DIR / "sepolia-integration" def test_deep_merge_preserves_explicit_null(): @@ -166,3 +167,8 @@ def test_common_layer_jsonnet_mirrors_combined_yaml(): a stale/extra key in the jsonnet, or a value mismatch. """ _assert_layer_jsonnet_mirrors_combined_yaml(COMMON_LAYER_DIR) + + +def test_integration_layer_jsonnet_mirrors_combined_yaml(): + """REGRESSION: same invariant for the `sepolia-integration` env layer.""" + _assert_layer_jsonnet_mirrors_combined_yaml(INTEGRATION_LAYER_DIR)