@settlemint/sdk-cli 2.1.4-prbb806de1 → 2.1.4-pre91fc413
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +31 -9
- package/dist/cli.js.map +9 -9
- package/package.json +3 -3
package/dist/cli.js
CHANGED
@@ -245085,7 +245085,7 @@ var DotEnvSchema = z.object({
|
|
245085
245085
|
SETTLEMINT_APPLICATION: UniqueNameSchema.optional(),
|
245086
245086
|
SETTLEMINT_BLOCKCHAIN_NETWORK: UniqueNameSchema.optional(),
|
245087
245087
|
SETTLEMINT_BLOCKCHAIN_NODE: UniqueNameSchema.optional(),
|
245088
|
-
|
245088
|
+
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_PUBLIC: UniqueNameSchema.optional(),
|
245089
245089
|
SETTLEMINT_HASURA: UniqueNameSchema.optional(),
|
245090
245090
|
SETTLEMINT_HASURA_ENDPOINT: UrlSchema.optional(),
|
245091
245091
|
SETTLEMINT_HASURA_ADMIN_SECRET: z.string().optional(),
|
@@ -245278,7 +245278,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
245278
245278
|
var package_default = {
|
245279
245279
|
name: "@settlemint/sdk-cli",
|
245280
245280
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
245281
|
-
version: "2.1.4-
|
245281
|
+
version: "2.1.4-pre91fc413",
|
245282
245282
|
type: "module",
|
245283
245283
|
private: false,
|
245284
245284
|
license: "FSL-1.1-MIT",
|
@@ -245327,8 +245327,8 @@ var package_default = {
|
|
245327
245327
|
"@inquirer/input": "4.1.9",
|
245328
245328
|
"@inquirer/password": "4.0.12",
|
245329
245329
|
"@inquirer/select": "4.1.1",
|
245330
|
-
"@settlemint/sdk-js": "2.1.4-
|
245331
|
-
"@settlemint/sdk-utils": "2.1.4-
|
245330
|
+
"@settlemint/sdk-js": "2.1.4-pre91fc413",
|
245331
|
+
"@settlemint/sdk-utils": "2.1.4-pre91fc413",
|
245332
245332
|
"@types/node": "22.14.1",
|
245333
245333
|
"@types/semver": "7.7.0",
|
245334
245334
|
"@types/which": "3.0.4",
|
@@ -246742,7 +246742,7 @@ var DotEnvSchema2 = z.object({
|
|
246742
246742
|
SETTLEMINT_APPLICATION: UniqueNameSchema2.optional(),
|
246743
246743
|
SETTLEMINT_BLOCKCHAIN_NETWORK: UniqueNameSchema2.optional(),
|
246744
246744
|
SETTLEMINT_BLOCKCHAIN_NODE: UniqueNameSchema2.optional(),
|
246745
|
-
|
246745
|
+
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_PUBLIC: UniqueNameSchema2.optional(),
|
246746
246746
|
SETTLEMINT_HASURA: UniqueNameSchema2.optional(),
|
246747
246747
|
SETTLEMINT_HASURA_ENDPOINT: UrlSchema2.optional(),
|
246748
246748
|
SETTLEMINT_HASURA_ADMIN_SECRET: z.string().optional(),
|
@@ -248059,6 +248059,15 @@ var getLoadBalancer = graphql(`
|
|
248059
248059
|
}
|
248060
248060
|
}
|
248061
248061
|
`, [LoadBalancerFragment]);
|
248062
|
+
var getLoadBalancers = graphql(`
|
248063
|
+
query getLoadBalancers($applicationUniqueName: String!) {
|
248064
|
+
loadBalancersByUniqueName(applicationUniqueName: $applicationUniqueName) {
|
248065
|
+
items {
|
248066
|
+
...LoadBalancer
|
248067
|
+
}
|
248068
|
+
}
|
248069
|
+
}
|
248070
|
+
`, [LoadBalancerFragment]);
|
248062
248071
|
var loadBalancerRead = (gqlClient) => {
|
248063
248072
|
return async (loadBalancerUniqueName) => {
|
248064
248073
|
const { loadBalancerByUniqueName: loadBalancer } = await gqlClient.request(getLoadBalancer, {
|
@@ -248067,6 +248076,14 @@ var loadBalancerRead = (gqlClient) => {
|
|
248067
248076
|
return loadBalancer;
|
248068
248077
|
};
|
248069
248078
|
};
|
248079
|
+
var loadBalancerList = (gqlClient) => {
|
248080
|
+
return async (applicationUniqueName) => {
|
248081
|
+
const {
|
248082
|
+
loadBalancersByUniqueName: { items }
|
248083
|
+
} = await gqlClient.request(getLoadBalancers, { applicationUniqueName });
|
248084
|
+
return items;
|
248085
|
+
};
|
248086
|
+
};
|
248070
248087
|
var InsightsFragment = graphql(`
|
248071
248088
|
fragment Insights on Insights {
|
248072
248089
|
__typename
|
@@ -248767,6 +248784,10 @@ function createSettleMintClient(options) {
|
|
248767
248784
|
create: blockchainNodeCreate(gqlClient),
|
248768
248785
|
restart: blockchainNodeRestart(gqlClient)
|
248769
248786
|
},
|
248787
|
+
loadBalancer: {
|
248788
|
+
list: loadBalancerList(gqlClient),
|
248789
|
+
read: loadBalancerRead(gqlClient)
|
248790
|
+
},
|
248770
248791
|
middleware: {
|
248771
248792
|
list: middlewareList(gqlClient),
|
248772
248793
|
read: middlewareRead(gqlClient),
|
@@ -252618,7 +252639,7 @@ async function writeEnvSpinner(prod, env2) {
|
|
252618
252639
|
SETTLEMINT_APPLICATION: env2.SETTLEMINT_APPLICATION,
|
252619
252640
|
SETTLEMINT_BLOCKCHAIN_NETWORK: env2.SETTLEMINT_BLOCKCHAIN_NETWORK,
|
252620
252641
|
SETTLEMINT_BLOCKCHAIN_NODE: env2.SETTLEMINT_BLOCKCHAIN_NODE,
|
252621
|
-
|
252642
|
+
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_PUBLIC: env2.SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_PUBLIC,
|
252622
252643
|
SETTLEMINT_HASURA: env2.SETTLEMINT_HASURA,
|
252623
252644
|
SETTLEMINT_HASURA_ENDPOINT: env2.SETTLEMINT_HASURA_ENDPOINT,
|
252624
252645
|
SETTLEMINT_THEGRAPH: env2.SETTLEMINT_THEGRAPH,
|
@@ -257322,7 +257343,7 @@ function blockscoutInsightsCreateCommand() {
|
|
257322
257343
|
return missingApplication();
|
257323
257344
|
}
|
257324
257345
|
let blockchainNodeUniqueName = loadBalancer ? undefined : blockchainNode ?? env2.SETTLEMINT_BLOCKCHAIN_NODE;
|
257325
|
-
const loadBalancerUniqueName = blockchainNodeUniqueName ? undefined : loadBalancer ?? env2.
|
257346
|
+
const loadBalancerUniqueName = blockchainNodeUniqueName ? undefined : loadBalancer ?? env2.SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_PUBLIC;
|
257326
257347
|
if (!blockchainNodeUniqueName && !loadBalancerUniqueName) {
|
257327
257348
|
const blockchainNodes = await serviceSpinner("blockchain node", () => settlemint.blockchainNode.list(applicationUniqueName));
|
257328
257349
|
const node = await blockchainNodePrompt({
|
@@ -257543,7 +257564,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
257543
257564
|
return missingApplication();
|
257544
257565
|
}
|
257545
257566
|
let blockchainNodeUniqueName = loadBalancer ? undefined : blockchainNode ?? env2.SETTLEMINT_BLOCKCHAIN_NODE;
|
257546
|
-
const loadBalancerUniqueName = blockchainNodeUniqueName ? undefined : loadBalancer ?? env2.
|
257567
|
+
const loadBalancerUniqueName = blockchainNodeUniqueName ? undefined : loadBalancer ?? env2.SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_PUBLIC;
|
257547
257568
|
if (!blockchainNodeUniqueName && !loadBalancerUniqueName) {
|
257548
257569
|
const blockchainNodes = await serviceSpinner("blockchain node", () => settlemint.blockchainNode.list(applicationUniqueName));
|
257549
257570
|
const node = await blockchainNodePrompt({
|
@@ -259130,6 +259151,7 @@ async function selectTargetNode({
|
|
259130
259151
|
nodes: validNodes,
|
259131
259152
|
accept: autoAccept,
|
259132
259153
|
isRequired: true,
|
259154
|
+
filterRunningOnly: true,
|
259133
259155
|
promptMessage: "Which blockchain node do you want to connect to? (Only nodes with private keys activated are shown)",
|
259134
259156
|
singleOptionMessage: (node2) => `Using '${node2}' - the only node with active private keys. To use a different node, ensure it has a private key activated.`
|
259135
259157
|
});
|
@@ -259901,4 +259923,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
259901
259923
|
// src/cli.ts
|
259902
259924
|
sdkCliCommand();
|
259903
259925
|
|
259904
|
-
//# debugId=
|
259926
|
+
//# debugId=579B1D5EE52893B764756E2164756E21
|