Skip to content

Commit 52a1181

Browse files
deployment: add sepolia-alpha native config override layer
Translate the sepolia-alpha config.sequencerConfig overrides (the public common.yaml + services/*.yaml flat dotted keys) into the nested sequencer_config.jsonnet override layer the native config builder consumes, mirroring the existing sepolia-integration layer. Add a regression test asserting the jsonnet layer stays in lockstep with the combined YAML overrides (folded: #is_none applied, components dropped). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent f649b77 commit 52a1181

2 files changed

Lines changed: 88 additions & 0 deletions

File tree

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
// Overrides layer for the `sepolia-alpha` environment (hybrid layout).
2+
{
3+
chain_id: 'SN_SEPOLIA',
4+
native_classes_whitelist: 'All',
5+
recorder_url: 'http://starknet-sepolia-alpha.cende-recorder-proxy.starknet.io/',
6+
starknet_url: 'https://feeder.alpha-sepolia.starknet.io/',
7+
8+
base_layer_config: {
9+
bpo1_start_block_number: 9456501,
10+
bpo2_start_block_number: 9504747,
11+
fusaka_no_bpo_start_block_number: 9408577,
12+
starknet_contract_address: '0xE2Bb56ee936fd6433DC0F6e7e3b8365C906AA057',
13+
},
14+
15+
batcher_config: {
16+
dynamic_config: {
17+
n_concurrent_txs: 8,
18+
},
19+
static_config: {
20+
block_builder_config: {
21+
bouncer_config: {
22+
block_max_capacity: {
23+
state_diff_size: 5000,
24+
},
25+
},
26+
execute_config: {
27+
n_workers: 5,
28+
},
29+
},
30+
first_block_with_partial_block_hash: {
31+
block_hash: '0x578b4e2f34e4da24e7482de643b4e3435fa7e34770cdb8d71002bb19e415ffa',
32+
block_number: 86311,
33+
parent_block_hash: '0x5c980ea7747167d2ae98fa7ef7d62f52243e924c453b4934045443d977458d3',
34+
},
35+
},
36+
},
37+
38+
committer_config: {
39+
storage_config: {
40+
cache_size: 10000000,
41+
inner_storage_config: {
42+
cache_size: 1073741824,
43+
},
44+
},
45+
},
46+
47+
consensus_manager_config: {
48+
context_config: {
49+
dynamic_config: {
50+
min_l2_gas_price_per_height: '',
51+
},
52+
},
53+
staking_manager_config: {
54+
dynamic_config: {
55+
default_committee: '0,10:0x64,1,0x1,true;0x65,1,0x1,true;0x66,1,0x1,true;0x67,1,0x1,true;0x68,1,0x1,true',
56+
},
57+
},
58+
},
59+
60+
gateway_config: {
61+
static_config: {
62+
proof_archive_writer_config: {
63+
bucket_name: 'starkware-starknet-alpha',
64+
},
65+
},
66+
},
67+
68+
sierra_compiler_config: {
69+
audited_libfuncs_only: true,
70+
},
71+
72+
state_sync_config: {
73+
static_config: {
74+
central_sync_client_config: {
75+
sync_config: {
76+
store_sierras_and_casms_block_threshold: 0,
77+
},
78+
},
79+
network_config: null,
80+
},
81+
},
82+
}

deployments/sequencer/test/test_native_config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
HYBRID_OVERLAYS_DIR = DEPLOYMENTS_SEQUENCER / "configs" / "overlays" / LAYOUT
4747
COMMON_LAYER_DIR = HYBRID_OVERLAYS_DIR / "common"
4848
INTEGRATION_LAYER_DIR = HYBRID_OVERLAYS_DIR / "sepolia-integration"
49+
SEPOLIA_ALPHA_LAYER_DIR = HYBRID_OVERLAYS_DIR / "sepolia-alpha"
4950

5051
# The committed dump of Rust `private_parameters()` (the secrets): every non-pointer private param
5152
# plus every pointer target pointed by a private param. These are filled at deploy from the
@@ -600,6 +601,11 @@ def test_integration_layer_jsonnet_mirrors_combined_yaml():
600601
_assert_layer_jsonnet_mirrors_combined_yaml(INTEGRATION_LAYER_DIR)
601602

602603

604+
def test_sepolia_alpha_layer_jsonnet_mirrors_combined_yaml():
605+
"""REGRESSION: same invariant for the `sepolia-alpha` env layer."""
606+
_assert_layer_jsonnet_mirrors_combined_yaml(SEPOLIA_ALPHA_LAYER_DIR)
607+
608+
603609
def _relative_layer_files(overlays_root: Path) -> set[str]:
604610
"""Every overlay file under `overlays_root`, as posix paths relative to that root."""
605611
return {

0 commit comments

Comments
 (0)