From efeaa46b60f4de7fd7493ecd63f751acc35eb392 Mon Sep 17 00:00:00 2001 From: Red Panda Date: Wed, 11 Feb 2026 12:18:11 +0530 Subject: [PATCH 1/2] add: sessions key registry --- examples/devnet-schema.js | 1 + src/commands/start/curio/constants.rs | 2 +- src/commands/start/foc_deployer/mod.rs | 26 ++++++++++++++++++++++++++ src/external_api/devnet_info.rs | 2 ++ src/external_api/export.rs | 3 +++ 5 files changed, 33 insertions(+), 1 deletion(-) diff --git a/examples/devnet-schema.js b/examples/devnet-schema.js index d558f4f0..fe08b5ed 100644 --- a/examples/devnet-schema.js +++ b/examples/devnet-schema.js @@ -38,6 +38,7 @@ const ContractsInfo = z.object({ service_provider_registry_impl_addr: z.string().startsWith("0x"), filecoin_pay_v1_addr: z.string().startsWith("0x"), endorsements_addr: z.string().startsWith("0x"), + session_key_registry_addr: z.string().startsWith("0x"), }); const UserInfo = z.object({ diff --git a/src/commands/start/curio/constants.rs b/src/commands/start/curio/constants.rs index e270b6f4..4c710789 100644 --- a/src/commands/start/curio/constants.rs +++ b/src/commands/start/curio/constants.rs @@ -8,7 +8,7 @@ pub const CURIO_FAST_STORAGE_PATH: &str = "/home/foc-user/curio/fast-storage"; /// Curio storage path inside container (long-term) pub const CURIO_LONG_TERM_STORAGE_PATH: &str = "/home/foc-user/curio/long-term-storage"; -pub const CURIO_LAYERS: &str = "seal,post,pdp-only,gui"; +pub const CURIO_LAYERS: &str = "pdp-only,gui"; /// PDP layer configuration template pub const PDP_LAYER_CONFIG_TEMPLATE: &str = r#"[HTTP] diff --git a/src/commands/start/foc_deployer/mod.rs b/src/commands/start/foc_deployer/mod.rs index 972f6932..0fb0599b 100644 --- a/src/commands/start/foc_deployer/mod.rs +++ b/src/commands/start/foc_deployer/mod.rs @@ -263,6 +263,15 @@ pub fn parse_deployment_output(output_str: &str) -> Result Result deployed at 0x..." line. +/// +/// # Example +/// ```text +/// SessionKeyRegistry deployed at 0xaF69542d01111EdfB7B63Aa974E6A2c9A31EA1E9 +/// ``` +fn extract_address_from_deployed_line(line: &str) -> Option { + let marker = "deployed at "; + let idx = line.find(marker)?; + let addr = line[idx + marker.len()..].trim(); + if addr.starts_with("0x") && addr.len() >= 42 { + Some(addr.to_string()) + } else { + None + } +} + /// Convert a contract name to snake_case /// Examples: /// - "FilecoinWarmStorageService Implementation" -> "filecoin_warm_storage_service_implementation" diff --git a/src/external_api/devnet_info.rs b/src/external_api/devnet_info.rs index 89801780..64326e3e 100644 --- a/src/external_api/devnet_info.rs +++ b/src/external_api/devnet_info.rs @@ -77,6 +77,8 @@ pub struct ContractsInfo { pub filecoin_pay_v1_addr: String, /// Endorsements contract address pub endorsements_addr: String, + /// SessionKeyRegistry contract address + pub session_key_registry_addr: String, } /// Lotus node information. diff --git a/src/external_api/export.rs b/src/external_api/export.rs index 379828b3..5335fd39 100644 --- a/src/external_api/export.rs +++ b/src/external_api/export.rs @@ -135,6 +135,9 @@ fn build_contracts(ctx: &SetupContext) -> Result Date: Thu, 12 Feb 2026 22:15:34 +0530 Subject: [PATCH 2/2] Update src/commands/start/foc_deployer/mod.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/commands/start/foc_deployer/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/start/foc_deployer/mod.rs b/src/commands/start/foc_deployer/mod.rs index 0fb0599b..2800639c 100644 --- a/src/commands/start/foc_deployer/mod.rs +++ b/src/commands/start/foc_deployer/mod.rs @@ -268,8 +268,8 @@ pub fn parse_deployment_output(output_str: &str) -> Result