From 7080d348fb7546f91dcf0e23ad782eed9b7708ce Mon Sep 17 00:00:00 2001 From: stanlou Date: Mon, 9 Feb 2026 20:20:57 +0300 Subject: [PATCH] support mina network config --- package-lock.json | 11 ----------- packages/stack/src/presets/modules/index.ts | 2 +- packages/stack/src/presets/modules/types.ts | 2 +- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index 083518689..fa18feec8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6914,7 +6914,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "Apache-2.0 AND MIT", "optional": true, "os": [ @@ -6931,7 +6930,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "Apache-2.0 AND MIT", "optional": true, "os": [ @@ -6948,7 +6946,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -6965,7 +6962,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "Apache-2.0 AND MIT", "optional": true, "os": [ @@ -6982,7 +6978,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "Apache-2.0 AND MIT", "optional": true, "os": [ @@ -6999,7 +6994,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "Apache-2.0 AND MIT", "optional": true, "os": [ @@ -7016,7 +7010,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "Apache-2.0 AND MIT", "optional": true, "os": [ @@ -7033,7 +7026,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "Apache-2.0 AND MIT", "optional": true, "os": [ @@ -7050,7 +7042,6 @@ "cpu": [ "ia32" ], - "dev": true, "license": "Apache-2.0 AND MIT", "optional": true, "os": [ @@ -7067,7 +7058,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "Apache-2.0 AND MIT", "optional": true, "os": [ @@ -7087,7 +7077,6 @@ "version": "0.5.18", "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.18.tgz", "integrity": "sha512-TXTnIcNJQEKwThMMqBXsZ4VGAza6bvN4pa41Rkqoio6QBKMvo+5lexeTMScGCIxtzgQJzElcvIltani+adC5PQ==", - "dev": true, "license": "Apache-2.0", "optional": true, "peer": true, diff --git a/packages/stack/src/presets/modules/index.ts b/packages/stack/src/presets/modules/index.ts index 90347a2f1..f4c193666 100644 --- a/packages/stack/src/presets/modules/index.ts +++ b/packages/stack/src/presets/modules/index.ts @@ -374,7 +374,7 @@ export class DefaultConfigs { return { BaseLayer: { network: { - type: "lightnet" as const, + type: config.minaNetwork, graphql: config.minaNodeGraphqlHost, archive: config.minaArchiveGraphqlHost, accountManager: config.minaAccountManagerHost, diff --git a/packages/stack/src/presets/modules/types.ts b/packages/stack/src/presets/modules/types.ts index 65efe1603..0d5ca4d0c 100644 --- a/packages/stack/src/presets/modules/types.ts +++ b/packages/stack/src/presets/modules/types.ts @@ -21,7 +21,7 @@ export type MetricsEnv = { tracingUrl: string; }; export type SettlementEnv = { - minaNetwork: string; + minaNetwork: "lightnet" | "remote"; minaNodeGraphqlHost: string; minaNodeGraphqlPort: number; minaArchiveGraphqlHost: string;