Skip to content

Commit c0221db

Browse files
deployment: add SignatureManager to ServicePort (starkware-libs#8143)
1 parent 0a61b62 commit c0221db

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

crates/apollo_deployments/resources/deployments/testing/deployment_config_consolidated.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"Mempool": 55006,
4040
"MempoolP2p": 53200,
4141
"SierraCompiler": 55007,
42+
"SignatureManager": 55009,
4243
"StateSync": 55008,
4344
"HttpServer": 8080,
4445
"MonitoringEndpoint": 8082

crates/apollo_deployments/src/deployment_definitions.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const MEMPOOL_PORT: u16 = 55006;
4343
const MEMPOOL_P2P_PORT: u16 = 53200;
4444
const SIERRA_COMPILER_PORT: u16 = 55007;
4545
const STATE_SYNC_PORT: u16 = 55008;
46+
const SIGNATURE_MANAGER_PORT: u16 = 55009;
4647

4748
pub const DEPLOYMENTS: &[DeploymentFn] = &[
4849
system_test_deployments,
@@ -118,6 +119,7 @@ pub enum ServicePort {
118119
Mempool,
119120
MempoolP2p,
120121
SierraCompiler,
122+
SignatureManager,
121123
StateSync,
122124
HttpServer,
123125
MonitoringEndpoint,
@@ -136,6 +138,7 @@ impl ServicePort {
136138
ServicePort::Mempool => MEMPOOL_PORT,
137139
ServicePort::MempoolP2p => MEMPOOL_P2P_PORT,
138140
ServicePort::SierraCompiler => SIERRA_COMPILER_PORT,
141+
ServicePort::SignatureManager => SIGNATURE_MANAGER_PORT,
139142
ServicePort::StateSync => STATE_SYNC_PORT,
140143
ServicePort::HttpServer => HTTP_SERVER_PORT,
141144
ServicePort::MonitoringEndpoint => MONITORING_ENDPOINT_DEFAULT_PORT,

crates/apollo_deployments/src/deployments/distributed.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ impl ServiceNameInner for DistributedNodeServiceName {
292292
| ServicePort::Mempool
293293
| ServicePort::Gateway
294294
| ServicePort::MempoolP2p
295+
| ServicePort::SignatureManager
295296
| ServicePort::SierraCompiler => {
296297
// TODO(Nadin): should define the ports for these services (if needed).
297298
}
@@ -315,6 +316,7 @@ impl ServiceNameInner for DistributedNodeServiceName {
315316
| ServicePort::Mempool
316317
| ServicePort::Gateway
317318
| ServicePort::MempoolP2p
319+
| ServicePort::SignatureManager
318320
| ServicePort::SierraCompiler => {
319321
// TODO(Nadin): should define the ports for these services (if needed).
320322
}
@@ -338,6 +340,7 @@ impl ServiceNameInner for DistributedNodeServiceName {
338340
| ServicePort::Mempool
339341
| ServicePort::Gateway
340342
| ServicePort::MempoolP2p
343+
| ServicePort::SignatureManager
341344
| ServicePort::SierraCompiler => {
342345
// TODO(Nadin): should define the ports for these services (if needed).
343346
}
@@ -363,6 +366,7 @@ impl ServiceNameInner for DistributedNodeServiceName {
363366
| ServicePort::Mempool
364367
| ServicePort::Gateway
365368
| ServicePort::MempoolP2p
369+
| ServicePort::SignatureManager
366370
| ServicePort::SierraCompiler => {
367371
// TODO(Nadin): should define the ports for these services (if needed).
368372
}
@@ -386,6 +390,7 @@ impl ServiceNameInner for DistributedNodeServiceName {
386390
| ServicePort::Mempool
387391
| ServicePort::Gateway
388392
| ServicePort::MempoolP2p
393+
| ServicePort::SignatureManager
389394
| ServicePort::SierraCompiler => {
390395
// TODO(Nadin): should define the ports for these services (if needed).
391396
}
@@ -409,6 +414,7 @@ impl ServiceNameInner for DistributedNodeServiceName {
409414
| ServicePort::Mempool
410415
| ServicePort::Gateway
411416
| ServicePort::MempoolP2p
417+
| ServicePort::SignatureManager
412418
| ServicePort::SierraCompiler => {
413419
// TODO(Nadin): should define the ports for these services (if needed).
414420
}
@@ -432,6 +438,7 @@ impl ServiceNameInner for DistributedNodeServiceName {
432438
| ServicePort::Mempool
433439
| ServicePort::Gateway
434440
| ServicePort::MempoolP2p
441+
| ServicePort::SignatureManager
435442
| ServicePort::SierraCompiler => {
436443
// TODO(Nadin): should define the ports for these services (if needed).
437444
}
@@ -455,6 +462,7 @@ impl ServiceNameInner for DistributedNodeServiceName {
455462
| ServicePort::Mempool
456463
| ServicePort::Gateway
457464
| ServicePort::MempoolP2p
465+
| ServicePort::SignatureManager
458466
| ServicePort::SierraCompiler => {
459467
// TODO(Nadin): should define the ports for these services (if needed).
460468
}
@@ -478,6 +486,7 @@ impl ServiceNameInner for DistributedNodeServiceName {
478486
| ServicePort::Mempool
479487
| ServicePort::Gateway
480488
| ServicePort::MempoolP2p
489+
| ServicePort::SignatureManager
481490
| ServicePort::SierraCompiler => {
482491
// TODO(Nadin): should define the ports for these services (if needed).
483492
}

crates/apollo_deployments/src/deployments/hybrid.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ impl ServiceNameInner for HybridNodeServiceName {
298298
| ServicePort::Mempool
299299
| ServicePort::Gateway
300300
| ServicePort::MempoolP2p
301+
| ServicePort::SignatureManager
301302
| ServicePort::SierraCompiler => {
302303
// TODO(Nadin): should define the ports for these services (if needed).
303304
}
@@ -323,6 +324,7 @@ impl ServiceNameInner for HybridNodeServiceName {
323324
| ServicePort::Mempool
324325
| ServicePort::Gateway
325326
| ServicePort::MempoolP2p
327+
| ServicePort::SignatureManager
326328
| ServicePort::SierraCompiler => {
327329
// TODO(Nadin): should define the ports for these services (if needed).
328330
}
@@ -346,6 +348,7 @@ impl ServiceNameInner for HybridNodeServiceName {
346348
| ServicePort::Mempool
347349
| ServicePort::Gateway
348350
| ServicePort::MempoolP2p
351+
| ServicePort::SignatureManager
349352
| ServicePort::SierraCompiler => {
350353
// TODO(Nadin): should define the ports for these services (if needed).
351354
}
@@ -369,6 +372,7 @@ impl ServiceNameInner for HybridNodeServiceName {
369372
| ServicePort::Mempool
370373
| ServicePort::Gateway
371374
| ServicePort::MempoolP2p
375+
| ServicePort::SignatureManager
372376
| ServicePort::SierraCompiler => {
373377
// TODO(Nadin): should define the ports for these services (if needed).
374378
}
@@ -392,6 +396,7 @@ impl ServiceNameInner for HybridNodeServiceName {
392396
| ServicePort::Mempool
393397
| ServicePort::Gateway
394398
| ServicePort::MempoolP2p
399+
| ServicePort::SignatureManager
395400
| ServicePort::SierraCompiler => {
396401
// TODO(Nadin): should define the ports for these services (if needed).
397402
}

0 commit comments

Comments
 (0)