@settlemint/sdk-mcp 2.1.4-pre91fc413 → 2.1.4-prfa41b757
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 +190 -27
- package/dist/mcp.js.map +6 -6
- package/package.json +4 -4
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/@noble/hashes/_assert.js
|
|
30546
|
+
// ../../node_modules/eciesjs/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/@noble/hashes/cryptoNode.js
|
|
30588
|
+
// ../../node_modules/eciesjs/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/@noble/hashes/utils.js
|
|
30596
|
+
// ../../node_modules/eciesjs/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/@noble/hashes/_md.js
|
|
30775
|
+
// ../../node_modules/eciesjs/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/@noble/hashes/_u64.js
|
|
30892
|
+
// ../../node_modules/eciesjs/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/@noble/hashes/sha512.js
|
|
30984
|
+
// ../../node_modules/eciesjs/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/@noble/curves/abstract/utils.js
|
|
31265
|
+
// ../../node_modules/eciesjs/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/@noble/curves/abstract/modular.js
|
|
31535
|
+
// ../../node_modules/eciesjs/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/@noble/curves/abstract/curve.js
|
|
31870
|
+
// ../../node_modules/eciesjs/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/@noble/curves/abstract/edwards.js
|
|
32112
|
+
// ../../node_modules/eciesjs/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/@noble/curves/abstract/hash-to-curve.js
|
|
32474
|
+
// ../../node_modules/eciesjs/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/@noble/curves/abstract/montgomery.js
|
|
32621
|
+
// ../../node_modules/eciesjs/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/@noble/curves/ed25519.js
|
|
32746
|
+
// ../../node_modules/eciesjs/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/@noble/hashes/sha256.js
|
|
33113
|
+
// ../../node_modules/eciesjs/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/@noble/hashes/hmac.js
|
|
33286
|
+
// ../../node_modules/eciesjs/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/@noble/curves/abstract/weierstrass.js
|
|
33360
|
+
// ../../node_modules/eciesjs/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/@noble/curves/_shortw_utils.js
|
|
34267
|
+
// ../../node_modules/eciesjs/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/@noble/curves/secp256k1.js
|
|
34289
|
+
// ../../node_modules/eciesjs/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/@noble/hashes/hkdf.js
|
|
34615
|
+
// ../../node_modules/eciesjs/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,8 +62675,11 @@ 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(),
|
|
62678
62679
|
SETTLEMINT_BLOCKCHAIN_NODE: UniqueNameSchema.optional(),
|
|
62679
|
-
|
|
62680
|
+
SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT: UrlSchema.optional(),
|
|
62681
|
+
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER: UniqueNameSchema.optional(),
|
|
62682
|
+
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT: UrlSchema.optional(),
|
|
62680
62683
|
SETTLEMINT_HASURA: UniqueNameSchema.optional(),
|
|
62681
62684
|
SETTLEMINT_HASURA_ENDPOINT: UrlSchema.optional(),
|
|
62682
62685
|
SETTLEMINT_HASURA_ADMIN_SECRET: z.string().optional(),
|
|
@@ -62780,8 +62783,11 @@ var DotEnvSchema2 = z.object({
|
|
|
62780
62783
|
SETTLEMINT_WORKSPACE: UniqueNameSchema2.optional(),
|
|
62781
62784
|
SETTLEMINT_APPLICATION: UniqueNameSchema2.optional(),
|
|
62782
62785
|
SETTLEMINT_BLOCKCHAIN_NETWORK: UniqueNameSchema2.optional(),
|
|
62786
|
+
SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID: z.string().optional(),
|
|
62783
62787
|
SETTLEMINT_BLOCKCHAIN_NODE: UniqueNameSchema2.optional(),
|
|
62784
|
-
|
|
62788
|
+
SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT: UrlSchema2.optional(),
|
|
62789
|
+
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER: UniqueNameSchema2.optional(),
|
|
62790
|
+
SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT: UrlSchema2.optional(),
|
|
62785
62791
|
SETTLEMINT_HASURA: UniqueNameSchema2.optional(),
|
|
62786
62792
|
SETTLEMINT_HASURA_ENDPOINT: UrlSchema2.optional(),
|
|
62787
62793
|
SETTLEMINT_HASURA_ADMIN_SECRET: z.string().optional(),
|
|
@@ -62835,7 +62841,7 @@ var {
|
|
|
62835
62841
|
var package_default = {
|
|
62836
62842
|
name: "@settlemint/sdk-mcp",
|
|
62837
62843
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
62838
|
-
version: "2.1.4-
|
|
62844
|
+
version: "2.1.4-prfa41b757",
|
|
62839
62845
|
type: "module",
|
|
62840
62846
|
private: false,
|
|
62841
62847
|
license: "FSL-1.1-MIT",
|
|
@@ -62876,9 +62882,9 @@ var package_default = {
|
|
|
62876
62882
|
dependencies: {
|
|
62877
62883
|
"@graphql-tools/load": "8.1.0",
|
|
62878
62884
|
"@graphql-tools/url-loader": "8.0.31",
|
|
62879
|
-
"@modelcontextprotocol/sdk": "1.10.
|
|
62880
|
-
"@settlemint/sdk-js": "2.1.4-
|
|
62881
|
-
"@settlemint/sdk-utils": "2.1.4-
|
|
62885
|
+
"@modelcontextprotocol/sdk": "1.10.2",
|
|
62886
|
+
"@settlemint/sdk-js": "2.1.4-prfa41b757",
|
|
62887
|
+
"@settlemint/sdk-utils": "2.1.4-prfa41b757",
|
|
62882
62888
|
"@commander-js/extra-typings": "11.1.0",
|
|
62883
62889
|
commander: "11.1.0",
|
|
62884
62890
|
zod: "3.24.2"
|
|
@@ -65442,11 +65448,61 @@ var BlockchainNetworkFragment = graphql(`
|
|
|
65442
65448
|
healthStatus
|
|
65443
65449
|
provider
|
|
65444
65450
|
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
|
+
}
|
|
65445
65496
|
blockchainNodes {
|
|
65446
65497
|
... on BlockchainNode {
|
|
65447
65498
|
id
|
|
65448
65499
|
name
|
|
65449
65500
|
uniqueName
|
|
65501
|
+
endpoints {
|
|
65502
|
+
id
|
|
65503
|
+
label
|
|
65504
|
+
displayValue
|
|
65505
|
+
}
|
|
65450
65506
|
}
|
|
65451
65507
|
}
|
|
65452
65508
|
}
|
|
@@ -65608,6 +65664,51 @@ var BlockchainNodeFragment = graphql(`
|
|
|
65608
65664
|
id
|
|
65609
65665
|
name
|
|
65610
65666
|
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
|
+
}
|
|
65611
65712
|
}
|
|
65612
65713
|
}
|
|
65613
65714
|
privateKeys {
|
|
@@ -65851,6 +65952,11 @@ var LoadBalancerFragment = graphql(`
|
|
|
65851
65952
|
healthStatus
|
|
65852
65953
|
provider
|
|
65853
65954
|
region
|
|
65955
|
+
endpoints {
|
|
65956
|
+
id
|
|
65957
|
+
label
|
|
65958
|
+
displayValue
|
|
65959
|
+
}
|
|
65854
65960
|
}
|
|
65855
65961
|
`);
|
|
65856
65962
|
var getLoadBalancer = graphql(`
|
|
@@ -65869,6 +65975,38 @@ var getLoadBalancers = graphql(`
|
|
|
65869
65975
|
}
|
|
65870
65976
|
}
|
|
65871
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]);
|
|
65872
66010
|
var loadBalancerRead = (gqlClient) => {
|
|
65873
66011
|
return async (loadBalancerUniqueName) => {
|
|
65874
66012
|
const { loadBalancerByUniqueName: loadBalancer } = await gqlClient.request(getLoadBalancer, {
|
|
@@ -65885,6 +66023,29 @@ var loadBalancerList = (gqlClient) => {
|
|
|
65885
66023
|
return items;
|
|
65886
66024
|
};
|
|
65887
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
|
+
};
|
|
65888
66049
|
var InsightsFragment = graphql(`
|
|
65889
66050
|
fragment Insights on Insights {
|
|
65890
66051
|
__typename
|
|
@@ -66587,7 +66748,9 @@ function createSettleMintClient(options) {
|
|
|
66587
66748
|
},
|
|
66588
66749
|
loadBalancer: {
|
|
66589
66750
|
list: loadBalancerList(gqlClient),
|
|
66590
|
-
read: loadBalancerRead(gqlClient)
|
|
66751
|
+
read: loadBalancerRead(gqlClient),
|
|
66752
|
+
create: loadBalancerCreate(gqlClient),
|
|
66753
|
+
restart: loadBalancerRestart(gqlClient)
|
|
66591
66754
|
},
|
|
66592
66755
|
middleware: {
|
|
66593
66756
|
list: middlewareList(gqlClient),
|
|
@@ -68317,4 +68480,4 @@ await main().catch((error2) => {
|
|
|
68317
68480
|
process.exit(1);
|
|
68318
68481
|
});
|
|
68319
68482
|
|
|
68320
|
-
//# debugId=
|
|
68483
|
+
//# debugId=D97C79CB6433184464756E2164756E21
|