@settlemint/sdk-mcp 2.1.4-pr734908a7 → 2.1.4-pr78131058
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/mcp.js +25 -209
- package/dist/mcp.js.map +6 -6
- package/package.json +3 -3
package/dist/mcp.js
CHANGED
|
@@ -30543,7 +30543,7 @@ var require_webcrypto = __commonJS((exports) => {
|
|
|
30543
30543
|
exports.gcm = /* @__PURE__ */ (() => generate(mode.GCM))();
|
|
30544
30544
|
});
|
|
30545
30545
|
|
|
30546
|
-
// ../../node_modules
|
|
30546
|
+
// ../../node_modules/@noble/hashes/_assert.js
|
|
30547
30547
|
var require__assert2 = __commonJS((exports) => {
|
|
30548
30548
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30549
30549
|
exports.anumber = anumber;
|
|
@@ -30585,7 +30585,7 @@ var require__assert2 = __commonJS((exports) => {
|
|
|
30585
30585
|
}
|
|
30586
30586
|
});
|
|
30587
30587
|
|
|
30588
|
-
// ../../node_modules
|
|
30588
|
+
// ../../node_modules/@noble/hashes/cryptoNode.js
|
|
30589
30589
|
var require_cryptoNode2 = __commonJS((exports) => {
|
|
30590
30590
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30591
30591
|
exports.crypto = undefined;
|
|
@@ -30593,7 +30593,7 @@ var require_cryptoNode2 = __commonJS((exports) => {
|
|
|
30593
30593
|
exports.crypto = nc && typeof nc === "object" && "webcrypto" in nc ? nc.webcrypto : nc && typeof nc === "object" && ("randomBytes" in nc) ? nc : undefined;
|
|
30594
30594
|
});
|
|
30595
30595
|
|
|
30596
|
-
// ../../node_modules
|
|
30596
|
+
// ../../node_modules/@noble/hashes/utils.js
|
|
30597
30597
|
var require_utils8 = __commonJS((exports) => {
|
|
30598
30598
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
30599
30599
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -30772,7 +30772,7 @@ var require_utils8 = __commonJS((exports) => {
|
|
|
30772
30772
|
}
|
|
30773
30773
|
});
|
|
30774
30774
|
|
|
30775
|
-
// ../../node_modules
|
|
30775
|
+
// ../../node_modules/@noble/hashes/_md.js
|
|
30776
30776
|
var require__md = __commonJS((exports) => {
|
|
30777
30777
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30778
30778
|
exports.HashMD = undefined;
|
|
@@ -30889,7 +30889,7 @@ var require__md = __commonJS((exports) => {
|
|
|
30889
30889
|
exports.HashMD = HashMD;
|
|
30890
30890
|
});
|
|
30891
30891
|
|
|
30892
|
-
// ../../node_modules
|
|
30892
|
+
// ../../node_modules/@noble/hashes/_u64.js
|
|
30893
30893
|
var require__u64 = __commonJS((exports) => {
|
|
30894
30894
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30895
30895
|
exports.add5L = exports.add5H = exports.add4H = exports.add4L = exports.add3H = exports.add3L = exports.rotlBL = exports.rotlBH = exports.rotlSL = exports.rotlSH = exports.rotr32L = exports.rotr32H = exports.rotrBL = exports.rotrBH = exports.rotrSL = exports.rotrSH = exports.shrSL = exports.shrSH = exports.toBig = undefined;
|
|
@@ -30981,7 +30981,7 @@ var require__u64 = __commonJS((exports) => {
|
|
|
30981
30981
|
exports.default = u64;
|
|
30982
30982
|
});
|
|
30983
30983
|
|
|
30984
|
-
// ../../node_modules
|
|
30984
|
+
// ../../node_modules/@noble/hashes/sha512.js
|
|
30985
30985
|
var require_sha512 = __commonJS((exports) => {
|
|
30986
30986
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30987
30987
|
exports.sha384 = exports.sha512_256 = exports.sha512_224 = exports.sha512 = exports.SHA384 = exports.SHA512_256 = exports.SHA512_224 = exports.SHA512 = undefined;
|
|
@@ -31262,7 +31262,7 @@ var require_sha512 = __commonJS((exports) => {
|
|
|
31262
31262
|
exports.sha384 = (0, utils_js_1.wrapConstructor)(() => new SHA384);
|
|
31263
31263
|
});
|
|
31264
31264
|
|
|
31265
|
-
// ../../node_modules
|
|
31265
|
+
// ../../node_modules/@noble/curves/abstract/utils.js
|
|
31266
31266
|
var require_utils9 = __commonJS((exports) => {
|
|
31267
31267
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
31268
31268
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -31532,7 +31532,7 @@ var require_utils9 = __commonJS((exports) => {
|
|
|
31532
31532
|
}
|
|
31533
31533
|
});
|
|
31534
31534
|
|
|
31535
|
-
// ../../node_modules
|
|
31535
|
+
// ../../node_modules/@noble/curves/abstract/modular.js
|
|
31536
31536
|
var require_modular = __commonJS((exports) => {
|
|
31537
31537
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31538
31538
|
exports.isNegativeLE = undefined;
|
|
@@ -31867,7 +31867,7 @@ var require_modular = __commonJS((exports) => {
|
|
|
31867
31867
|
}
|
|
31868
31868
|
});
|
|
31869
31869
|
|
|
31870
|
-
// ../../node_modules
|
|
31870
|
+
// ../../node_modules/@noble/curves/abstract/curve.js
|
|
31871
31871
|
var require_curve = __commonJS((exports) => {
|
|
31872
31872
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31873
31873
|
exports.wNAF = wNAF;
|
|
@@ -32109,7 +32109,7 @@ var require_curve = __commonJS((exports) => {
|
|
|
32109
32109
|
}
|
|
32110
32110
|
});
|
|
32111
32111
|
|
|
32112
|
-
// ../../node_modules
|
|
32112
|
+
// ../../node_modules/@noble/curves/abstract/edwards.js
|
|
32113
32113
|
var require_edwards = __commonJS((exports) => {
|
|
32114
32114
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32115
32115
|
exports.twistedEdwards = twistedEdwards;
|
|
@@ -32471,7 +32471,7 @@ var require_edwards = __commonJS((exports) => {
|
|
|
32471
32471
|
}
|
|
32472
32472
|
});
|
|
32473
32473
|
|
|
32474
|
-
// ../../node_modules
|
|
32474
|
+
// ../../node_modules/@noble/curves/abstract/hash-to-curve.js
|
|
32475
32475
|
var require_hash_to_curve = __commonJS((exports) => {
|
|
32476
32476
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32477
32477
|
exports.expand_message_xmd = expand_message_xmd;
|
|
@@ -32618,7 +32618,7 @@ var require_hash_to_curve = __commonJS((exports) => {
|
|
|
32618
32618
|
}
|
|
32619
32619
|
});
|
|
32620
32620
|
|
|
32621
|
-
// ../../node_modules
|
|
32621
|
+
// ../../node_modules/@noble/curves/abstract/montgomery.js
|
|
32622
32622
|
var require_montgomery = __commonJS((exports) => {
|
|
32623
32623
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32624
32624
|
exports.montgomery = montgomery;
|
|
@@ -32743,7 +32743,7 @@ var require_montgomery = __commonJS((exports) => {
|
|
|
32743
32743
|
}
|
|
32744
32744
|
});
|
|
32745
32745
|
|
|
32746
|
-
// ../../node_modules
|
|
32746
|
+
// ../../node_modules/@noble/curves/ed25519.js
|
|
32747
32747
|
var require_ed25519 = __commonJS((exports) => {
|
|
32748
32748
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32749
32749
|
exports.hash_to_ristretto255 = exports.hashToRistretto255 = exports.RistrettoPoint = exports.encodeToCurve = exports.hashToCurve = exports.edwardsToMontgomery = exports.x25519 = exports.ed25519ph = exports.ed25519ctx = exports.ed25519 = exports.ED25519_TORSION_SUBGROUP = undefined;
|
|
@@ -33110,7 +33110,7 @@ var require_ed25519 = __commonJS((exports) => {
|
|
|
33110
33110
|
exports.hash_to_ristretto255 = exports.hashToRistretto255;
|
|
33111
33111
|
});
|
|
33112
33112
|
|
|
33113
|
-
// ../../node_modules
|
|
33113
|
+
// ../../node_modules/@noble/hashes/sha256.js
|
|
33114
33114
|
var require_sha256 = __commonJS((exports) => {
|
|
33115
33115
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33116
33116
|
exports.sha224 = exports.sha256 = exports.SHA256 = undefined;
|
|
@@ -33283,7 +33283,7 @@ var require_sha256 = __commonJS((exports) => {
|
|
|
33283
33283
|
exports.sha224 = (0, utils_js_1.wrapConstructor)(() => new SHA224);
|
|
33284
33284
|
});
|
|
33285
33285
|
|
|
33286
|
-
// ../../node_modules
|
|
33286
|
+
// ../../node_modules/@noble/hashes/hmac.js
|
|
33287
33287
|
var require_hmac = __commonJS((exports) => {
|
|
33288
33288
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33289
33289
|
exports.hmac = exports.HMAC = undefined;
|
|
@@ -33357,7 +33357,7 @@ var require_hmac = __commonJS((exports) => {
|
|
|
33357
33357
|
exports.hmac.create = (hash, key) => new HMAC(hash, key);
|
|
33358
33358
|
});
|
|
33359
33359
|
|
|
33360
|
-
// ../../node_modules
|
|
33360
|
+
// ../../node_modules/@noble/curves/abstract/weierstrass.js
|
|
33361
33361
|
var require_weierstrass = __commonJS((exports) => {
|
|
33362
33362
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33363
33363
|
exports.DER = exports.DERErr = undefined;
|
|
@@ -34264,7 +34264,7 @@ var require_weierstrass = __commonJS((exports) => {
|
|
|
34264
34264
|
}
|
|
34265
34265
|
});
|
|
34266
34266
|
|
|
34267
|
-
// ../../node_modules
|
|
34267
|
+
// ../../node_modules/@noble/curves/_shortw_utils.js
|
|
34268
34268
|
var require__shortw_utils = __commonJS((exports) => {
|
|
34269
34269
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34270
34270
|
exports.getHash = getHash;
|
|
@@ -34286,7 +34286,7 @@ var require__shortw_utils = __commonJS((exports) => {
|
|
|
34286
34286
|
}
|
|
34287
34287
|
});
|
|
34288
34288
|
|
|
34289
|
-
// ../../node_modules
|
|
34289
|
+
// ../../node_modules/@noble/curves/secp256k1.js
|
|
34290
34290
|
var require_secp256k1 = __commonJS((exports) => {
|
|
34291
34291
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34292
34292
|
exports.encodeToCurve = exports.hashToCurve = exports.schnorr = exports.secp256k1 = undefined;
|
|
@@ -34612,7 +34612,7 @@ var require_elliptic = __commonJS((exports) => {
|
|
|
34612
34612
|
};
|
|
34613
34613
|
});
|
|
34614
34614
|
|
|
34615
|
-
// ../../node_modules
|
|
34615
|
+
// ../../node_modules/@noble/hashes/hkdf.js
|
|
34616
34616
|
var require_hkdf = __commonJS((exports) => {
|
|
34617
34617
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34618
34618
|
exports.hkdf = undefined;
|
|
@@ -62675,11 +62675,8 @@ var DotEnvSchema = z.object({
|
|
|
62675
62675
|
SETTLEMINT_WORKSPACE: UniqueNameSchema.optional(),
|
|
62676
62676
|
SETTLEMINT_APPLICATION: UniqueNameSchema.optional(),
|
|
62677
62677
|
SETTLEMINT_BLOCKCHAIN_NETWORK: UniqueNameSchema.optional(),
|
|
62678
|
-
SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID: z.string().optional(),
|
|
62679
62678
|
SETTLEMINT_BLOCKCHAIN_NODE: UniqueNameSchema.optional(),
|
|
62680
|
-
|
|
62681
|
-
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER: UniqueNameSchema.optional(),
|
|
62682
|
-
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT: UrlSchema.optional(),
|
|
62679
|
+
SETTLEMINT_LOAD_BALANCER: UniqueNameSchema.optional(),
|
|
62683
62680
|
SETTLEMINT_HASURA: UniqueNameSchema.optional(),
|
|
62684
62681
|
SETTLEMINT_HASURA_ENDPOINT: UrlSchema.optional(),
|
|
62685
62682
|
SETTLEMINT_HASURA_ADMIN_SECRET: z.string().optional(),
|
|
@@ -62783,11 +62780,8 @@ var DotEnvSchema2 = z.object({
|
|
|
62783
62780
|
SETTLEMINT_WORKSPACE: UniqueNameSchema2.optional(),
|
|
62784
62781
|
SETTLEMINT_APPLICATION: UniqueNameSchema2.optional(),
|
|
62785
62782
|
SETTLEMINT_BLOCKCHAIN_NETWORK: UniqueNameSchema2.optional(),
|
|
62786
|
-
SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID: z.string().optional(),
|
|
62787
62783
|
SETTLEMINT_BLOCKCHAIN_NODE: UniqueNameSchema2.optional(),
|
|
62788
|
-
|
|
62789
|
-
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER: UniqueNameSchema2.optional(),
|
|
62790
|
-
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT: UrlSchema2.optional(),
|
|
62784
|
+
SETTLEMINT_LOAD_BALANCER: UniqueNameSchema2.optional(),
|
|
62791
62785
|
SETTLEMINT_HASURA: UniqueNameSchema2.optional(),
|
|
62792
62786
|
SETTLEMINT_HASURA_ENDPOINT: UrlSchema2.optional(),
|
|
62793
62787
|
SETTLEMINT_HASURA_ADMIN_SECRET: z.string().optional(),
|
|
@@ -62841,7 +62835,7 @@ var {
|
|
|
62841
62835
|
var package_default = {
|
|
62842
62836
|
name: "@settlemint/sdk-mcp",
|
|
62843
62837
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
62844
|
-
version: "2.1.4-
|
|
62838
|
+
version: "2.1.4-pr78131058",
|
|
62845
62839
|
type: "module",
|
|
62846
62840
|
private: false,
|
|
62847
62841
|
license: "FSL-1.1-MIT",
|
|
@@ -62883,8 +62877,8 @@ var package_default = {
|
|
|
62883
62877
|
"@graphql-tools/load": "8.1.0",
|
|
62884
62878
|
"@graphql-tools/url-loader": "8.0.31",
|
|
62885
62879
|
"@modelcontextprotocol/sdk": "1.10.2",
|
|
62886
|
-
"@settlemint/sdk-js": "2.1.4-
|
|
62887
|
-
"@settlemint/sdk-utils": "2.1.4-
|
|
62880
|
+
"@settlemint/sdk-js": "2.1.4-pr78131058",
|
|
62881
|
+
"@settlemint/sdk-utils": "2.1.4-pr78131058",
|
|
62888
62882
|
"@commander-js/extra-typings": "11.1.0",
|
|
62889
62883
|
commander: "11.1.0",
|
|
62890
62884
|
zod: "3.24.2"
|
|
@@ -65448,61 +65442,11 @@ var BlockchainNetworkFragment = graphql(`
|
|
|
65448
65442
|
healthStatus
|
|
65449
65443
|
provider
|
|
65450
65444
|
region
|
|
65451
|
-
... on BesuQBFTBlockchainNetwork {
|
|
65452
|
-
chainId
|
|
65453
|
-
}
|
|
65454
|
-
... on BesuIbftv2BlockchainNetwork {
|
|
65455
|
-
chainId
|
|
65456
|
-
}
|
|
65457
|
-
... on GethPoWBlockchainNetwork {
|
|
65458
|
-
chainId
|
|
65459
|
-
}
|
|
65460
|
-
... on GethPoSRinkebyBlockchainNetwork {
|
|
65461
|
-
chainId
|
|
65462
|
-
}
|
|
65463
|
-
... on GethVenidiumBlockchainNetwork {
|
|
65464
|
-
chainId
|
|
65465
|
-
}
|
|
65466
|
-
... on GethGoerliBlockchainNetwork {
|
|
65467
|
-
chainId
|
|
65468
|
-
}
|
|
65469
|
-
... on AvalancheBlockchainNetwork {
|
|
65470
|
-
chainId
|
|
65471
|
-
}
|
|
65472
|
-
... on AvalancheFujiBlockchainNetwork {
|
|
65473
|
-
chainId
|
|
65474
|
-
}
|
|
65475
|
-
... on BscPoWBlockchainNetwork {
|
|
65476
|
-
chainId
|
|
65477
|
-
}
|
|
65478
|
-
... on BscPoWTestnetBlockchainNetwork {
|
|
65479
|
-
chainId
|
|
65480
|
-
}
|
|
65481
|
-
... on PolygonBlockchainNetwork {
|
|
65482
|
-
chainId
|
|
65483
|
-
}
|
|
65484
|
-
... on PolygonMumbaiBlockchainNetwork {
|
|
65485
|
-
chainId
|
|
65486
|
-
}
|
|
65487
|
-
... on PolygonEdgePoABlockchainNetwork {
|
|
65488
|
-
chainId
|
|
65489
|
-
}
|
|
65490
|
-
... on QuorumQBFTBlockchainNetwork {
|
|
65491
|
-
chainId
|
|
65492
|
-
}
|
|
65493
|
-
... on GethCliqueBlockchainNetwork {
|
|
65494
|
-
chainId
|
|
65495
|
-
}
|
|
65496
65445
|
blockchainNodes {
|
|
65497
65446
|
... on BlockchainNode {
|
|
65498
65447
|
id
|
|
65499
65448
|
name
|
|
65500
65449
|
uniqueName
|
|
65501
|
-
endpoints {
|
|
65502
|
-
id
|
|
65503
|
-
label
|
|
65504
|
-
displayValue
|
|
65505
|
-
}
|
|
65506
65450
|
}
|
|
65507
65451
|
}
|
|
65508
65452
|
}
|
|
@@ -65664,51 +65608,6 @@ var BlockchainNodeFragment = graphql(`
|
|
|
65664
65608
|
id
|
|
65665
65609
|
name
|
|
65666
65610
|
uniqueName
|
|
65667
|
-
... on BesuQBFTBlockchainNetwork {
|
|
65668
|
-
chainId
|
|
65669
|
-
}
|
|
65670
|
-
... on BesuIbftv2BlockchainNetwork {
|
|
65671
|
-
chainId
|
|
65672
|
-
}
|
|
65673
|
-
... on GethPoWBlockchainNetwork {
|
|
65674
|
-
chainId
|
|
65675
|
-
}
|
|
65676
|
-
... on GethPoSRinkebyBlockchainNetwork {
|
|
65677
|
-
chainId
|
|
65678
|
-
}
|
|
65679
|
-
... on GethVenidiumBlockchainNetwork {
|
|
65680
|
-
chainId
|
|
65681
|
-
}
|
|
65682
|
-
... on GethGoerliBlockchainNetwork {
|
|
65683
|
-
chainId
|
|
65684
|
-
}
|
|
65685
|
-
... on AvalancheBlockchainNetwork {
|
|
65686
|
-
chainId
|
|
65687
|
-
}
|
|
65688
|
-
... on AvalancheFujiBlockchainNetwork {
|
|
65689
|
-
chainId
|
|
65690
|
-
}
|
|
65691
|
-
... on BscPoWBlockchainNetwork {
|
|
65692
|
-
chainId
|
|
65693
|
-
}
|
|
65694
|
-
... on BscPoWTestnetBlockchainNetwork {
|
|
65695
|
-
chainId
|
|
65696
|
-
}
|
|
65697
|
-
... on PolygonBlockchainNetwork {
|
|
65698
|
-
chainId
|
|
65699
|
-
}
|
|
65700
|
-
... on PolygonMumbaiBlockchainNetwork {
|
|
65701
|
-
chainId
|
|
65702
|
-
}
|
|
65703
|
-
... on PolygonEdgePoABlockchainNetwork {
|
|
65704
|
-
chainId
|
|
65705
|
-
}
|
|
65706
|
-
... on QuorumQBFTBlockchainNetwork {
|
|
65707
|
-
chainId
|
|
65708
|
-
}
|
|
65709
|
-
... on GethCliqueBlockchainNetwork {
|
|
65710
|
-
chainId
|
|
65711
|
-
}
|
|
65712
65611
|
}
|
|
65713
65612
|
}
|
|
65714
65613
|
privateKeys {
|
|
@@ -65952,11 +65851,6 @@ var LoadBalancerFragment = graphql(`
|
|
|
65952
65851
|
healthStatus
|
|
65953
65852
|
provider
|
|
65954
65853
|
region
|
|
65955
|
-
endpoints {
|
|
65956
|
-
id
|
|
65957
|
-
label
|
|
65958
|
-
displayValue
|
|
65959
|
-
}
|
|
65960
65854
|
}
|
|
65961
65855
|
`);
|
|
65962
65856
|
var getLoadBalancer = graphql(`
|
|
@@ -65966,47 +65860,6 @@ var getLoadBalancer = graphql(`
|
|
|
65966
65860
|
}
|
|
65967
65861
|
}
|
|
65968
65862
|
`, [LoadBalancerFragment]);
|
|
65969
|
-
var getLoadBalancers = graphql(`
|
|
65970
|
-
query getLoadBalancers($applicationUniqueName: String!) {
|
|
65971
|
-
loadBalancersByUniqueName(applicationUniqueName: $applicationUniqueName) {
|
|
65972
|
-
items {
|
|
65973
|
-
...LoadBalancer
|
|
65974
|
-
}
|
|
65975
|
-
}
|
|
65976
|
-
}
|
|
65977
|
-
`, [LoadBalancerFragment]);
|
|
65978
|
-
var createLoadBalancer = graphql(`
|
|
65979
|
-
mutation createLoadBalancer(
|
|
65980
|
-
$applicationId: ID!
|
|
65981
|
-
$blockchainNetworkId: ID!
|
|
65982
|
-
$name: String!
|
|
65983
|
-
$provider: String!
|
|
65984
|
-
$region: String!
|
|
65985
|
-
$size: ClusterServiceSize
|
|
65986
|
-
$type: ClusterServiceType
|
|
65987
|
-
$connectedNodes: [ID!]!
|
|
65988
|
-
) {
|
|
65989
|
-
createLoadBalancer(
|
|
65990
|
-
applicationId: $applicationId
|
|
65991
|
-
blockchainNetworkId: $blockchainNetworkId
|
|
65992
|
-
name: $name
|
|
65993
|
-
provider: $provider
|
|
65994
|
-
region: $region
|
|
65995
|
-
size: $size
|
|
65996
|
-
type: $type
|
|
65997
|
-
connectedNodes: $connectedNodes
|
|
65998
|
-
) {
|
|
65999
|
-
...LoadBalancer
|
|
66000
|
-
}
|
|
66001
|
-
}
|
|
66002
|
-
`, [LoadBalancerFragment]);
|
|
66003
|
-
var restartLoadBalancer = graphql(`
|
|
66004
|
-
mutation RestartLoadBalancer($uniqueName: String!) {
|
|
66005
|
-
restartLoadBalancerByUniqueName(uniqueName: $uniqueName) {
|
|
66006
|
-
...LoadBalancer
|
|
66007
|
-
}
|
|
66008
|
-
}
|
|
66009
|
-
`, [LoadBalancerFragment]);
|
|
66010
65863
|
var loadBalancerRead = (gqlClient) => {
|
|
66011
65864
|
return async (loadBalancerUniqueName) => {
|
|
66012
65865
|
const { loadBalancerByUniqueName: loadBalancer } = await gqlClient.request(getLoadBalancer, {
|
|
@@ -66015,37 +65868,6 @@ var loadBalancerRead = (gqlClient) => {
|
|
|
66015
65868
|
return loadBalancer;
|
|
66016
65869
|
};
|
|
66017
65870
|
};
|
|
66018
|
-
var loadBalancerList = (gqlClient) => {
|
|
66019
|
-
return async (applicationUniqueName) => {
|
|
66020
|
-
const {
|
|
66021
|
-
loadBalancersByUniqueName: { items }
|
|
66022
|
-
} = await gqlClient.request(getLoadBalancers, { applicationUniqueName });
|
|
66023
|
-
return items;
|
|
66024
|
-
};
|
|
66025
|
-
};
|
|
66026
|
-
var loadBalancerCreate = (gqlClient) => {
|
|
66027
|
-
return async (args) => {
|
|
66028
|
-
const { applicationUniqueName, blockchainNetworkUniqueName, connectedNodesUniqueNames, ...otherArgs } = args;
|
|
66029
|
-
const [application, blockchainNetwork, connectedNodes] = await Promise.all([
|
|
66030
|
-
applicationRead(gqlClient)(applicationUniqueName),
|
|
66031
|
-
blockchainNetworkRead(gqlClient)(blockchainNetworkUniqueName),
|
|
66032
|
-
Promise.all(connectedNodesUniqueNames.map((uniqueName) => blockchainNodeRead(gqlClient)(uniqueName)))
|
|
66033
|
-
]);
|
|
66034
|
-
const { createLoadBalancer: loadBalancer } = await gqlClient.request(createLoadBalancer, {
|
|
66035
|
-
...otherArgs,
|
|
66036
|
-
applicationId: application.id,
|
|
66037
|
-
blockchainNetworkId: blockchainNetwork.id,
|
|
66038
|
-
connectedNodes: connectedNodes.map((node) => node.id)
|
|
66039
|
-
});
|
|
66040
|
-
return loadBalancer;
|
|
66041
|
-
};
|
|
66042
|
-
};
|
|
66043
|
-
var loadBalancerRestart = (gqlClient) => async (loadBalancerUniqueName) => {
|
|
66044
|
-
const { restartLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(restartLoadBalancer, {
|
|
66045
|
-
uniqueName: loadBalancerUniqueName
|
|
66046
|
-
});
|
|
66047
|
-
return loadBalancer;
|
|
66048
|
-
};
|
|
66049
65871
|
var InsightsFragment = graphql(`
|
|
66050
65872
|
fragment Insights on Insights {
|
|
66051
65873
|
__typename
|
|
@@ -66746,12 +66568,6 @@ function createSettleMintClient(options) {
|
|
|
66746
66568
|
create: blockchainNodeCreate(gqlClient),
|
|
66747
66569
|
restart: blockchainNodeRestart(gqlClient)
|
|
66748
66570
|
},
|
|
66749
|
-
loadBalancer: {
|
|
66750
|
-
list: loadBalancerList(gqlClient),
|
|
66751
|
-
read: loadBalancerRead(gqlClient),
|
|
66752
|
-
create: loadBalancerCreate(gqlClient),
|
|
66753
|
-
restart: loadBalancerRestart(gqlClient)
|
|
66754
|
-
},
|
|
66755
66571
|
middleware: {
|
|
66756
66572
|
list: middlewareList(gqlClient),
|
|
66757
66573
|
read: middlewareRead(gqlClient),
|
|
@@ -68480,4 +68296,4 @@ await main().catch((error2) => {
|
|
|
68480
68296
|
process.exit(1);
|
|
68481
68297
|
});
|
|
68482
68298
|
|
|
68483
|
-
//# debugId=
|
|
68299
|
+
//# debugId=6B3B1A2C74F4BA5164756E2164756E21
|