@settlemint/sdk-mcp 2.2.2 → 2.2.3-main0e9aa0e1

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.
Files changed (3) hide show
  1. package/dist/mcp.js +717 -55
  2. package/dist/mcp.js.map +15 -14
  3. package/package.json +5 -5
package/dist/mcp.js CHANGED
@@ -14412,6 +14412,10 @@ var require_permessage_deflate = __commonJS((exports, module) => {
14412
14412
  }
14413
14413
  function inflateOnError(err) {
14414
14414
  this[kPerMessageDeflate]._inflate = null;
14415
+ if (this[kError]) {
14416
+ this[kCallback](this[kError]);
14417
+ return;
14418
+ }
14415
14419
  err[kStatusCode] = 1007;
14416
14420
  this[kCallback](err);
14417
14421
  }
@@ -16055,7 +16059,7 @@ var require_websocket = __commonJS((exports, module) => {
16055
16059
  const isIpcUrl = parsedUrl.protocol === "ws+unix:";
16056
16060
  let invalidUrlMessage;
16057
16061
  if (parsedUrl.protocol !== "ws:" && !isSecure && !isIpcUrl) {
16058
- invalidUrlMessage = `The URL's protocol must be one of "ws:", "wss:", ` + '"http:", "https", or "ws+unix:"';
16062
+ invalidUrlMessage = `The URL's protocol must be one of "ws:", "wss:", ` + '"http:", "https:", or "ws+unix:"';
16059
16063
  } else if (isIpcUrl && !parsedUrl.pathname) {
16060
16064
  invalidUrlMessage = "The URL's pathname is empty";
16061
16065
  } else if (parsedUrl.hash) {
@@ -20480,7 +20484,7 @@ var require_File = __commonJS((exports) => {
20480
20484
  exports.PonyfillFile = PonyfillFile;
20481
20485
  });
20482
20486
 
20483
- // ../../node_modules/tslib/tslib.js
20487
+ // ../../node_modules/@whatwg-node/disposablestack/node_modules/tslib/tslib.js
20484
20488
  var require_tslib = __commonJS((exports, module) => {
20485
20489
  var __extends;
20486
20490
  var __assign;
@@ -22543,11 +22547,616 @@ var require_fetchCurl = __commonJS((exports) => {
22543
22547
  }
22544
22548
  });
22545
22549
 
22550
+ // ../../node_modules/@whatwg-node/node-fetch/node_modules/tslib/tslib.js
22551
+ var require_tslib2 = __commonJS((exports, module) => {
22552
+ var __extends;
22553
+ var __assign;
22554
+ var __rest;
22555
+ var __decorate;
22556
+ var __param;
22557
+ var __esDecorate;
22558
+ var __runInitializers;
22559
+ var __propKey;
22560
+ var __setFunctionName;
22561
+ var __metadata;
22562
+ var __awaiter;
22563
+ var __generator;
22564
+ var __exportStar;
22565
+ var __values;
22566
+ var __read;
22567
+ var __spread;
22568
+ var __spreadArrays;
22569
+ var __spreadArray;
22570
+ var __await;
22571
+ var __asyncGenerator;
22572
+ var __asyncDelegator;
22573
+ var __asyncValues;
22574
+ var __makeTemplateObject;
22575
+ var __importStar;
22576
+ var __importDefault;
22577
+ var __classPrivateFieldGet;
22578
+ var __classPrivateFieldSet;
22579
+ var __classPrivateFieldIn;
22580
+ var __createBinding;
22581
+ var __addDisposableResource;
22582
+ var __disposeResources;
22583
+ var __rewriteRelativeImportExtension;
22584
+ (function(factory) {
22585
+ var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
22586
+ if (typeof define === "function" && define.amd) {
22587
+ define("tslib", ["exports"], function(exports2) {
22588
+ factory(createExporter(root, createExporter(exports2)));
22589
+ });
22590
+ } else if (typeof module === "object" && typeof exports === "object") {
22591
+ factory(createExporter(root, createExporter(exports)));
22592
+ } else {
22593
+ factory(createExporter(root));
22594
+ }
22595
+ function createExporter(exports2, previous) {
22596
+ if (exports2 !== root) {
22597
+ if (typeof Object.create === "function") {
22598
+ Object.defineProperty(exports2, "__esModule", { value: true });
22599
+ } else {
22600
+ exports2.__esModule = true;
22601
+ }
22602
+ }
22603
+ return function(id, v) {
22604
+ return exports2[id] = previous ? previous(id, v) : v;
22605
+ };
22606
+ }
22607
+ })(function(exporter) {
22608
+ var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
22609
+ d.__proto__ = b;
22610
+ } || function(d, b) {
22611
+ for (var p in b)
22612
+ if (Object.prototype.hasOwnProperty.call(b, p))
22613
+ d[p] = b[p];
22614
+ };
22615
+ __extends = function(d, b) {
22616
+ if (typeof b !== "function" && b !== null)
22617
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
22618
+ extendStatics(d, b);
22619
+ function __() {
22620
+ this.constructor = d;
22621
+ }
22622
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);
22623
+ };
22624
+ __assign = Object.assign || function(t) {
22625
+ for (var s, i = 1, n = arguments.length;i < n; i++) {
22626
+ s = arguments[i];
22627
+ for (var p in s)
22628
+ if (Object.prototype.hasOwnProperty.call(s, p))
22629
+ t[p] = s[p];
22630
+ }
22631
+ return t;
22632
+ };
22633
+ __rest = function(s, e) {
22634
+ var t = {};
22635
+ for (var p in s)
22636
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
22637
+ t[p] = s[p];
22638
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
22639
+ for (var i = 0, p = Object.getOwnPropertySymbols(s);i < p.length; i++) {
22640
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
22641
+ t[p[i]] = s[p[i]];
22642
+ }
22643
+ return t;
22644
+ };
22645
+ __decorate = function(decorators, target, key, desc) {
22646
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22647
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
22648
+ r = Reflect.decorate(decorators, target, key, desc);
22649
+ else
22650
+ for (var i = decorators.length - 1;i >= 0; i--)
22651
+ if (d = decorators[i])
22652
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22653
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22654
+ };
22655
+ __param = function(paramIndex, decorator) {
22656
+ return function(target, key) {
22657
+ decorator(target, key, paramIndex);
22658
+ };
22659
+ };
22660
+ __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
22661
+ function accept(f) {
22662
+ if (f !== undefined && typeof f !== "function")
22663
+ throw new TypeError("Function expected");
22664
+ return f;
22665
+ }
22666
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
22667
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
22668
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
22669
+ var _, done = false;
22670
+ for (var i = decorators.length - 1;i >= 0; i--) {
22671
+ var context = {};
22672
+ for (var p in contextIn)
22673
+ context[p] = p === "access" ? {} : contextIn[p];
22674
+ for (var p in contextIn.access)
22675
+ context.access[p] = contextIn.access[p];
22676
+ context.addInitializer = function(f) {
22677
+ if (done)
22678
+ throw new TypeError("Cannot add initializers after decoration has completed");
22679
+ extraInitializers.push(accept(f || null));
22680
+ };
22681
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
22682
+ if (kind === "accessor") {
22683
+ if (result === undefined)
22684
+ continue;
22685
+ if (result === null || typeof result !== "object")
22686
+ throw new TypeError("Object expected");
22687
+ if (_ = accept(result.get))
22688
+ descriptor.get = _;
22689
+ if (_ = accept(result.set))
22690
+ descriptor.set = _;
22691
+ if (_ = accept(result.init))
22692
+ initializers.unshift(_);
22693
+ } else if (_ = accept(result)) {
22694
+ if (kind === "field")
22695
+ initializers.unshift(_);
22696
+ else
22697
+ descriptor[key] = _;
22698
+ }
22699
+ }
22700
+ if (target)
22701
+ Object.defineProperty(target, contextIn.name, descriptor);
22702
+ done = true;
22703
+ };
22704
+ __runInitializers = function(thisArg, initializers, value) {
22705
+ var useValue = arguments.length > 2;
22706
+ for (var i = 0;i < initializers.length; i++) {
22707
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
22708
+ }
22709
+ return useValue ? value : undefined;
22710
+ };
22711
+ __propKey = function(x) {
22712
+ return typeof x === "symbol" ? x : "".concat(x);
22713
+ };
22714
+ __setFunctionName = function(f, name, prefix) {
22715
+ if (typeof name === "symbol")
22716
+ name = name.description ? "[".concat(name.description, "]") : "";
22717
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
22718
+ };
22719
+ __metadata = function(metadataKey, metadataValue) {
22720
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
22721
+ return Reflect.metadata(metadataKey, metadataValue);
22722
+ };
22723
+ __awaiter = function(thisArg, _arguments, P, generator) {
22724
+ function adopt(value) {
22725
+ return value instanceof P ? value : new P(function(resolve) {
22726
+ resolve(value);
22727
+ });
22728
+ }
22729
+ return new (P || (P = Promise))(function(resolve, reject) {
22730
+ function fulfilled(value) {
22731
+ try {
22732
+ step(generator.next(value));
22733
+ } catch (e) {
22734
+ reject(e);
22735
+ }
22736
+ }
22737
+ function rejected(value) {
22738
+ try {
22739
+ step(generator["throw"](value));
22740
+ } catch (e) {
22741
+ reject(e);
22742
+ }
22743
+ }
22744
+ function step(result) {
22745
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
22746
+ }
22747
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22748
+ });
22749
+ };
22750
+ __generator = function(thisArg, body) {
22751
+ var _ = { label: 0, sent: function() {
22752
+ if (t[0] & 1)
22753
+ throw t[1];
22754
+ return t[1];
22755
+ }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
22756
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
22757
+ return this;
22758
+ }), g;
22759
+ function verb(n) {
22760
+ return function(v) {
22761
+ return step([n, v]);
22762
+ };
22763
+ }
22764
+ function step(op) {
22765
+ if (f)
22766
+ throw new TypeError("Generator is already executing.");
22767
+ while (g && (g = 0, op[0] && (_ = 0)), _)
22768
+ try {
22769
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
22770
+ return t;
22771
+ if (y = 0, t)
22772
+ op = [op[0] & 2, t.value];
22773
+ switch (op[0]) {
22774
+ case 0:
22775
+ case 1:
22776
+ t = op;
22777
+ break;
22778
+ case 4:
22779
+ _.label++;
22780
+ return { value: op[1], done: false };
22781
+ case 5:
22782
+ _.label++;
22783
+ y = op[1];
22784
+ op = [0];
22785
+ continue;
22786
+ case 7:
22787
+ op = _.ops.pop();
22788
+ _.trys.pop();
22789
+ continue;
22790
+ default:
22791
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
22792
+ _ = 0;
22793
+ continue;
22794
+ }
22795
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
22796
+ _.label = op[1];
22797
+ break;
22798
+ }
22799
+ if (op[0] === 6 && _.label < t[1]) {
22800
+ _.label = t[1];
22801
+ t = op;
22802
+ break;
22803
+ }
22804
+ if (t && _.label < t[2]) {
22805
+ _.label = t[2];
22806
+ _.ops.push(op);
22807
+ break;
22808
+ }
22809
+ if (t[2])
22810
+ _.ops.pop();
22811
+ _.trys.pop();
22812
+ continue;
22813
+ }
22814
+ op = body.call(thisArg, _);
22815
+ } catch (e) {
22816
+ op = [6, e];
22817
+ y = 0;
22818
+ } finally {
22819
+ f = t = 0;
22820
+ }
22821
+ if (op[0] & 5)
22822
+ throw op[1];
22823
+ return { value: op[0] ? op[1] : undefined, done: true };
22824
+ }
22825
+ };
22826
+ __exportStar = function(m, o) {
22827
+ for (var p in m)
22828
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
22829
+ __createBinding(o, m, p);
22830
+ };
22831
+ __createBinding = Object.create ? function(o, m, k, k2) {
22832
+ if (k2 === undefined)
22833
+ k2 = k;
22834
+ var desc = Object.getOwnPropertyDescriptor(m, k);
22835
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
22836
+ desc = { enumerable: true, get: function() {
22837
+ return m[k];
22838
+ } };
22839
+ }
22840
+ Object.defineProperty(o, k2, desc);
22841
+ } : function(o, m, k, k2) {
22842
+ if (k2 === undefined)
22843
+ k2 = k;
22844
+ o[k2] = m[k];
22845
+ };
22846
+ __values = function(o) {
22847
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
22848
+ if (m)
22849
+ return m.call(o);
22850
+ if (o && typeof o.length === "number")
22851
+ return {
22852
+ next: function() {
22853
+ if (o && i >= o.length)
22854
+ o = undefined;
22855
+ return { value: o && o[i++], done: !o };
22856
+ }
22857
+ };
22858
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
22859
+ };
22860
+ __read = function(o, n) {
22861
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
22862
+ if (!m)
22863
+ return o;
22864
+ var i = m.call(o), r, ar = [], e;
22865
+ try {
22866
+ while ((n === undefined || n-- > 0) && !(r = i.next()).done)
22867
+ ar.push(r.value);
22868
+ } catch (error) {
22869
+ e = { error };
22870
+ } finally {
22871
+ try {
22872
+ if (r && !r.done && (m = i["return"]))
22873
+ m.call(i);
22874
+ } finally {
22875
+ if (e)
22876
+ throw e.error;
22877
+ }
22878
+ }
22879
+ return ar;
22880
+ };
22881
+ __spread = function() {
22882
+ for (var ar = [], i = 0;i < arguments.length; i++)
22883
+ ar = ar.concat(__read(arguments[i]));
22884
+ return ar;
22885
+ };
22886
+ __spreadArrays = function() {
22887
+ for (var s = 0, i = 0, il = arguments.length;i < il; i++)
22888
+ s += arguments[i].length;
22889
+ for (var r = Array(s), k = 0, i = 0;i < il; i++)
22890
+ for (var a = arguments[i], j = 0, jl = a.length;j < jl; j++, k++)
22891
+ r[k] = a[j];
22892
+ return r;
22893
+ };
22894
+ __spreadArray = function(to, from, pack) {
22895
+ if (pack || arguments.length === 2)
22896
+ for (var i = 0, l = from.length, ar;i < l; i++) {
22897
+ if (ar || !(i in from)) {
22898
+ if (!ar)
22899
+ ar = Array.prototype.slice.call(from, 0, i);
22900
+ ar[i] = from[i];
22901
+ }
22902
+ }
22903
+ return to.concat(ar || Array.prototype.slice.call(from));
22904
+ };
22905
+ __await = function(v) {
22906
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
22907
+ };
22908
+ __asyncGenerator = function(thisArg, _arguments, generator) {
22909
+ if (!Symbol.asyncIterator)
22910
+ throw new TypeError("Symbol.asyncIterator is not defined.");
22911
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
22912
+ return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function() {
22913
+ return this;
22914
+ }, i;
22915
+ function awaitReturn(f) {
22916
+ return function(v) {
22917
+ return Promise.resolve(v).then(f, reject);
22918
+ };
22919
+ }
22920
+ function verb(n, f) {
22921
+ if (g[n]) {
22922
+ i[n] = function(v) {
22923
+ return new Promise(function(a, b) {
22924
+ q.push([n, v, a, b]) > 1 || resume(n, v);
22925
+ });
22926
+ };
22927
+ if (f)
22928
+ i[n] = f(i[n]);
22929
+ }
22930
+ }
22931
+ function resume(n, v) {
22932
+ try {
22933
+ step(g[n](v));
22934
+ } catch (e) {
22935
+ settle(q[0][3], e);
22936
+ }
22937
+ }
22938
+ function step(r) {
22939
+ r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
22940
+ }
22941
+ function fulfill(value) {
22942
+ resume("next", value);
22943
+ }
22944
+ function reject(value) {
22945
+ resume("throw", value);
22946
+ }
22947
+ function settle(f, v) {
22948
+ if (f(v), q.shift(), q.length)
22949
+ resume(q[0][0], q[0][1]);
22950
+ }
22951
+ };
22952
+ __asyncDelegator = function(o) {
22953
+ var i, p;
22954
+ return i = {}, verb("next"), verb("throw", function(e) {
22955
+ throw e;
22956
+ }), verb("return"), i[Symbol.iterator] = function() {
22957
+ return this;
22958
+ }, i;
22959
+ function verb(n, f) {
22960
+ i[n] = o[n] ? function(v) {
22961
+ return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v;
22962
+ } : f;
22963
+ }
22964
+ };
22965
+ __asyncValues = function(o) {
22966
+ if (!Symbol.asyncIterator)
22967
+ throw new TypeError("Symbol.asyncIterator is not defined.");
22968
+ var m = o[Symbol.asyncIterator], i;
22969
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
22970
+ return this;
22971
+ }, i);
22972
+ function verb(n) {
22973
+ i[n] = o[n] && function(v) {
22974
+ return new Promise(function(resolve, reject) {
22975
+ v = o[n](v), settle(resolve, reject, v.done, v.value);
22976
+ });
22977
+ };
22978
+ }
22979
+ function settle(resolve, reject, d, v) {
22980
+ Promise.resolve(v).then(function(v2) {
22981
+ resolve({ value: v2, done: d });
22982
+ }, reject);
22983
+ }
22984
+ };
22985
+ __makeTemplateObject = function(cooked, raw) {
22986
+ if (Object.defineProperty) {
22987
+ Object.defineProperty(cooked, "raw", { value: raw });
22988
+ } else {
22989
+ cooked.raw = raw;
22990
+ }
22991
+ return cooked;
22992
+ };
22993
+ var __setModuleDefault = Object.create ? function(o, v) {
22994
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
22995
+ } : function(o, v) {
22996
+ o["default"] = v;
22997
+ };
22998
+ var ownKeys = function(o) {
22999
+ ownKeys = Object.getOwnPropertyNames || function(o2) {
23000
+ var ar = [];
23001
+ for (var k in o2)
23002
+ if (Object.prototype.hasOwnProperty.call(o2, k))
23003
+ ar[ar.length] = k;
23004
+ return ar;
23005
+ };
23006
+ return ownKeys(o);
23007
+ };
23008
+ __importStar = function(mod) {
23009
+ if (mod && mod.__esModule)
23010
+ return mod;
23011
+ var result = {};
23012
+ if (mod != null) {
23013
+ for (var k = ownKeys(mod), i = 0;i < k.length; i++)
23014
+ if (k[i] !== "default")
23015
+ __createBinding(result, mod, k[i]);
23016
+ }
23017
+ __setModuleDefault(result, mod);
23018
+ return result;
23019
+ };
23020
+ __importDefault = function(mod) {
23021
+ return mod && mod.__esModule ? mod : { default: mod };
23022
+ };
23023
+ __classPrivateFieldGet = function(receiver, state, kind, f) {
23024
+ if (kind === "a" && !f)
23025
+ throw new TypeError("Private accessor was defined without a getter");
23026
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
23027
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
23028
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
23029
+ };
23030
+ __classPrivateFieldSet = function(receiver, state, value, kind, f) {
23031
+ if (kind === "m")
23032
+ throw new TypeError("Private method is not writable");
23033
+ if (kind === "a" && !f)
23034
+ throw new TypeError("Private accessor was defined without a setter");
23035
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
23036
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
23037
+ return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
23038
+ };
23039
+ __classPrivateFieldIn = function(state, receiver) {
23040
+ if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
23041
+ throw new TypeError("Cannot use 'in' operator on non-object");
23042
+ return typeof state === "function" ? receiver === state : state.has(receiver);
23043
+ };
23044
+ __addDisposableResource = function(env3, value, async) {
23045
+ if (value !== null && value !== undefined) {
23046
+ if (typeof value !== "object" && typeof value !== "function")
23047
+ throw new TypeError("Object expected.");
23048
+ var dispose, inner;
23049
+ if (async) {
23050
+ if (!Symbol.asyncDispose)
23051
+ throw new TypeError("Symbol.asyncDispose is not defined.");
23052
+ dispose = value[Symbol.asyncDispose];
23053
+ }
23054
+ if (dispose === undefined) {
23055
+ if (!Symbol.dispose)
23056
+ throw new TypeError("Symbol.dispose is not defined.");
23057
+ dispose = value[Symbol.dispose];
23058
+ if (async)
23059
+ inner = dispose;
23060
+ }
23061
+ if (typeof dispose !== "function")
23062
+ throw new TypeError("Object not disposable.");
23063
+ if (inner)
23064
+ dispose = function() {
23065
+ try {
23066
+ inner.call(this);
23067
+ } catch (e) {
23068
+ return Promise.reject(e);
23069
+ }
23070
+ };
23071
+ env3.stack.push({ value, dispose, async });
23072
+ } else if (async) {
23073
+ env3.stack.push({ async: true });
23074
+ }
23075
+ return value;
23076
+ };
23077
+ var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
23078
+ var e = new Error(message);
23079
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
23080
+ };
23081
+ __disposeResources = function(env3) {
23082
+ function fail(e) {
23083
+ env3.error = env3.hasError ? new _SuppressedError(e, env3.error, "An error was suppressed during disposal.") : e;
23084
+ env3.hasError = true;
23085
+ }
23086
+ var r, s = 0;
23087
+ function next() {
23088
+ while (r = env3.stack.pop()) {
23089
+ try {
23090
+ if (!r.async && s === 1)
23091
+ return s = 0, env3.stack.push(r), Promise.resolve().then(next);
23092
+ if (r.dispose) {
23093
+ var result = r.dispose.call(r.value);
23094
+ if (r.async)
23095
+ return s |= 2, Promise.resolve(result).then(next, function(e) {
23096
+ fail(e);
23097
+ return next();
23098
+ });
23099
+ } else
23100
+ s |= 1;
23101
+ } catch (e) {
23102
+ fail(e);
23103
+ }
23104
+ }
23105
+ if (s === 1)
23106
+ return env3.hasError ? Promise.reject(env3.error) : Promise.resolve();
23107
+ if (env3.hasError)
23108
+ throw env3.error;
23109
+ }
23110
+ return next();
23111
+ };
23112
+ __rewriteRelativeImportExtension = function(path, preserveJsx) {
23113
+ if (typeof path === "string" && /^\.\.?\//.test(path)) {
23114
+ return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
23115
+ return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : d + ext + "." + cm.toLowerCase() + "js";
23116
+ });
23117
+ }
23118
+ return path;
23119
+ };
23120
+ exporter("__extends", __extends);
23121
+ exporter("__assign", __assign);
23122
+ exporter("__rest", __rest);
23123
+ exporter("__decorate", __decorate);
23124
+ exporter("__param", __param);
23125
+ exporter("__esDecorate", __esDecorate);
23126
+ exporter("__runInitializers", __runInitializers);
23127
+ exporter("__propKey", __propKey);
23128
+ exporter("__setFunctionName", __setFunctionName);
23129
+ exporter("__metadata", __metadata);
23130
+ exporter("__awaiter", __awaiter);
23131
+ exporter("__generator", __generator);
23132
+ exporter("__exportStar", __exportStar);
23133
+ exporter("__createBinding", __createBinding);
23134
+ exporter("__values", __values);
23135
+ exporter("__read", __read);
23136
+ exporter("__spread", __spread);
23137
+ exporter("__spreadArrays", __spreadArrays);
23138
+ exporter("__spreadArray", __spreadArray);
23139
+ exporter("__await", __await);
23140
+ exporter("__asyncGenerator", __asyncGenerator);
23141
+ exporter("__asyncDelegator", __asyncDelegator);
23142
+ exporter("__asyncValues", __asyncValues);
23143
+ exporter("__makeTemplateObject", __makeTemplateObject);
23144
+ exporter("__importStar", __importStar);
23145
+ exporter("__importDefault", __importDefault);
23146
+ exporter("__classPrivateFieldGet", __classPrivateFieldGet);
23147
+ exporter("__classPrivateFieldSet", __classPrivateFieldSet);
23148
+ exporter("__classPrivateFieldIn", __classPrivateFieldIn);
23149
+ exporter("__addDisposableResource", __addDisposableResource);
23150
+ exporter("__disposeResources", __disposeResources);
23151
+ exporter("__rewriteRelativeImportExtension", __rewriteRelativeImportExtension);
23152
+ });
23153
+ });
23154
+
22546
23155
  // ../../node_modules/@whatwg-node/node-fetch/cjs/URL.js
22547
23156
  var require_URL = __commonJS((exports) => {
22548
23157
  Object.defineProperty(exports, "__esModule", { value: true });
22549
23158
  exports.PonyfillURL = undefined;
22550
- var tslib_1 = require_tslib();
23159
+ var tslib_1 = require_tslib2();
22551
23160
  var node_buffer_1 = tslib_1.__importDefault(__require("node:buffer"));
22552
23161
  var node_crypto_1 = __require("node:crypto");
22553
23162
  var NativeURL = globalThis.URL;
@@ -25492,7 +26101,7 @@ var require_dist2 = __commonJS((exports) => {
25492
26101
  // ../../node_modules/@dotenvx/dotenvx/package.json
25493
26102
  var require_package = __commonJS((exports, module) => {
25494
26103
  module.exports = {
25495
- version: "1.41.0",
26104
+ version: "1.43.0",
25496
26105
  name: "@dotenvx/dotenvx",
25497
26106
  description: "a better dotenv–from the creator of `dotenv`",
25498
26107
  author: "@motdotla",
@@ -25645,14 +26254,11 @@ var require_logger = __commonJS((exports, module) => {
25645
26254
  var { getColor, bold: bold2 } = require_colors();
25646
26255
  var levels = {
25647
26256
  error: 0,
25648
- errorv: 0,
25649
- errornocolor: 0,
25650
26257
  warn: 1,
25651
26258
  success: 2,
25652
26259
  successv: 2,
25653
26260
  info: 2,
25654
26261
  help: 2,
25655
- blank: 2,
25656
26262
  verbose: 4,
25657
26263
  debug: 5,
25658
26264
  silly: 6
@@ -25665,7 +26271,11 @@ var require_logger = __commonJS((exports, module) => {
25665
26271
  var verbose = getColor("plum");
25666
26272
  var debug = getColor("plum");
25667
26273
  var currentLevel = levels.info;
25668
- function log(level, message) {
26274
+ function stderr(level, message) {
26275
+ const formattedMessage = formatMessage(level, message);
26276
+ console.error(formattedMessage);
26277
+ }
26278
+ function stdout(level, message) {
25669
26279
  if (levels[level] === undefined) {
25670
26280
  throw new Error(`MISSING_LOG_LEVEL: '${level}'. implement in logger.`);
25671
26281
  }
@@ -25679,10 +26289,6 @@ var require_logger = __commonJS((exports, module) => {
25679
26289
  switch (level.toLowerCase()) {
25680
26290
  case "error":
25681
26291
  return error(formattedMessage);
25682
- case "errorv":
25683
- return error(`[dotenvx@${packageJson.version}] ${formattedMessage}`);
25684
- case "errornocolor":
25685
- return formattedMessage;
25686
26292
  case "warn":
25687
26293
  return warn(formattedMessage);
25688
26294
  case "success":
@@ -25697,23 +26303,18 @@ var require_logger = __commonJS((exports, module) => {
25697
26303
  return verbose(formattedMessage);
25698
26304
  case "debug":
25699
26305
  return debug(formattedMessage);
25700
- case "blank":
25701
- return formattedMessage;
25702
26306
  }
25703
26307
  }
25704
26308
  var logger = {
25705
26309
  level: "info",
25706
- error: (msg) => log("error", msg),
25707
- errorv: (msg) => log("errorv", msg),
25708
- errornocolor: (msg) => log("errornocolor", msg),
25709
- warn: (msg) => log("warn", msg),
25710
- success: (msg) => log("success", msg),
25711
- successv: (msg) => log("successv", msg),
25712
- info: (msg) => log("info", msg),
25713
- help: (msg) => log("help", msg),
25714
- verbose: (msg) => log("verbose", msg),
25715
- debug: (msg) => log("debug", msg),
25716
- blank: (msg) => log("blank", msg),
26310
+ error: (msg) => stderr("error", msg),
26311
+ warn: (msg) => stdout("warn", msg),
26312
+ success: (msg) => stdout("success", msg),
26313
+ successv: (msg) => stdout("successv", msg),
26314
+ info: (msg) => stdout("info", msg),
26315
+ help: (msg) => stdout("help", msg),
26316
+ verbose: (msg) => stdout("verbose", msg),
26317
+ debug: (msg) => stdout("debug", msg),
25717
26318
  setLevel: (level) => {
25718
26319
  if (levels[level] !== undefined) {
25719
26320
  currentLevel = levels[level];
@@ -35351,15 +35952,15 @@ var require_main3 = __commonJS((exports, module) => {
35351
35952
  lastError = error;
35352
35953
  if (error.code === "MISSING_ENV_FILE") {
35353
35954
  if (!options.convention) {
35354
- console.error(error.message);
35955
+ logger.error(error.message);
35355
35956
  if (error.help) {
35356
- console.error(error.help);
35957
+ logger.error(error.help);
35357
35958
  }
35358
35959
  }
35359
35960
  } else {
35360
- console.error(error.message);
35961
+ logger.error(error.message);
35361
35962
  if (error.help) {
35362
- console.error(error.help);
35963
+ logger.error(error.help);
35363
35964
  }
35364
35965
  }
35365
35966
  }
@@ -35404,9 +36005,9 @@ var require_main3 = __commonJS((exports, module) => {
35404
36005
  const overload = options.overload || options.override;
35405
36006
  const { parsed, errors: errors2 } = new Parse(src, privateKey, processEnv, overload).run();
35406
36007
  for (const error of errors2) {
35407
- console.error(error.message);
36008
+ logger.error(error.message);
35408
36009
  if (error.help) {
35409
- console.error(error.help);
36010
+ logger.error(error.help);
35410
36011
  }
35411
36012
  }
35412
36013
  return parsed;
@@ -35477,9 +36078,9 @@ var require_main3 = __commonJS((exports, module) => {
35477
36078
  }
35478
36079
  if (options.strict)
35479
36080
  throw error;
35480
- console.error(error.message);
36081
+ logger.error(error.message);
35481
36082
  if (error.help) {
35482
- console.error(error.help);
36083
+ logger.error(error.help);
35483
36084
  }
35484
36085
  }
35485
36086
  if (key) {
@@ -49797,13 +50398,14 @@ var base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_
49797
50398
  var dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
49798
50399
  var dateRegex = new RegExp(`^${dateRegexSource}$`);
49799
50400
  function timeRegexSource(args) {
49800
- let regex = `([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;
50401
+ let secondsRegexSource = `[0-5]\\d`;
49801
50402
  if (args.precision) {
49802
- regex = `${regex}\\.\\d{${args.precision}}`;
50403
+ secondsRegexSource = `${secondsRegexSource}\\.\\d{${args.precision}}`;
49803
50404
  } else if (args.precision == null) {
49804
- regex = `${regex}(\\.\\d+)?`;
50405
+ secondsRegexSource = `${secondsRegexSource}(\\.\\d+)?`;
49805
50406
  }
49806
- return regex;
50407
+ const secondsQuantifier = args.precision ? "+" : "?";
50408
+ return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`;
49807
50409
  }
49808
50410
  function timeRegex(args) {
49809
50411
  return new RegExp(`^${timeRegexSource(args)}$`);
@@ -52956,18 +53558,20 @@ var z = /* @__PURE__ */ Object.freeze({
52956
53558
  });
52957
53559
 
52958
53560
  // ../../node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
52959
- var LATEST_PROTOCOL_VERSION = "2024-11-05";
53561
+ var LATEST_PROTOCOL_VERSION = "2025-03-26";
52960
53562
  var SUPPORTED_PROTOCOL_VERSIONS = [
52961
53563
  LATEST_PROTOCOL_VERSION,
53564
+ "2024-11-05",
52962
53565
  "2024-10-07"
52963
53566
  ];
52964
53567
  var JSONRPC_VERSION = "2.0";
52965
53568
  var ProgressTokenSchema = z.union([z.string(), z.number().int()]);
52966
53569
  var CursorSchema = z.string();
53570
+ var RequestMetaSchema = z.object({
53571
+ progressToken: z.optional(ProgressTokenSchema)
53572
+ }).passthrough();
52967
53573
  var BaseRequestParamsSchema = z.object({
52968
- _meta: z.optional(z.object({
52969
- progressToken: z.optional(ProgressTokenSchema)
52970
- }).passthrough())
53574
+ _meta: z.optional(RequestMetaSchema)
52971
53575
  }).passthrough();
52972
53576
  var RequestSchema = z.object({
52973
53577
  method: z.string(),
@@ -53218,13 +53822,21 @@ var GetPromptResultSchema = ResultSchema.extend({
53218
53822
  var PromptListChangedNotificationSchema = NotificationSchema.extend({
53219
53823
  method: z.literal("notifications/prompts/list_changed")
53220
53824
  });
53825
+ var ToolAnnotationsSchema = z.object({
53826
+ title: z.optional(z.string()),
53827
+ readOnlyHint: z.optional(z.boolean()),
53828
+ destructiveHint: z.optional(z.boolean()),
53829
+ idempotentHint: z.optional(z.boolean()),
53830
+ openWorldHint: z.optional(z.boolean())
53831
+ }).passthrough();
53221
53832
  var ToolSchema = z.object({
53222
53833
  name: z.string(),
53223
53834
  description: z.optional(z.string()),
53224
53835
  inputSchema: z.object({
53225
53836
  type: z.literal("object"),
53226
53837
  properties: z.optional(z.object({}).passthrough())
53227
- }).passthrough()
53838
+ }).passthrough(),
53839
+ annotations: z.optional(ToolAnnotationsSchema)
53228
53840
  }).passthrough();
53229
53841
  var ListToolsRequestSchema = PaginatedRequestSchema.extend({
53230
53842
  method: z.literal("tools/list")
@@ -53507,7 +54119,7 @@ class Protocol {
53507
54119
  Promise.resolve().then(() => handler(notification)).catch((error) => this._onerror(new Error(`Uncaught error in notification handler: ${error}`)));
53508
54120
  }
53509
54121
  _onrequest(request, extra) {
53510
- var _a, _b, _c;
54122
+ var _a, _b, _c, _d;
53511
54123
  const handler = (_a = this._requestHandlers.get(request.method)) !== null && _a !== undefined ? _a : this.fallbackRequestHandler;
53512
54124
  if (handler === undefined) {
53513
54125
  (_b = this._transport) === null || _b === undefined || _b.send({
@@ -53525,9 +54137,11 @@ class Protocol {
53525
54137
  const fullExtra = {
53526
54138
  signal: abortController.signal,
53527
54139
  sessionId: (_c = this._transport) === null || _c === undefined ? undefined : _c.sessionId,
54140
+ _meta: (_d = request.params) === null || _d === undefined ? undefined : _d._meta,
53528
54141
  sendNotification: (notification) => this.notification(notification, { relatedRequestId: request.id }),
53529
54142
  sendRequest: (r, resultSchema, options) => this.request(r, resultSchema, { ...options, relatedRequestId: request.id }),
53530
- authInfo: extra === null || extra === undefined ? undefined : extra.authInfo
54143
+ authInfo: extra === null || extra === undefined ? undefined : extra.authInfo,
54144
+ requestId: request.id
53531
54145
  };
53532
54146
  Promise.resolve().then(() => handler(request, fullExtra)).then((result) => {
53533
54147
  var _a2;
@@ -55157,7 +55771,8 @@ class McpServer {
55157
55771
  description: tool.description,
55158
55772
  inputSchema: tool.inputSchema ? zodToJsonSchema(tool.inputSchema, {
55159
55773
  strictUnions: true
55160
- }) : EMPTY_OBJECT_JSON_SCHEMA
55774
+ }) : EMPTY_OBJECT_JSON_SCHEMA,
55775
+ annotations: tool.annotations
55161
55776
  };
55162
55777
  })
55163
55778
  }));
@@ -55447,13 +56062,23 @@ class McpServer {
55447
56062
  description = rest.shift();
55448
56063
  }
55449
56064
  let paramsSchema;
56065
+ let annotations;
55450
56066
  if (rest.length > 1) {
55451
- paramsSchema = rest.shift();
56067
+ const firstArg = rest[0];
56068
+ if (isZodRawShape(firstArg)) {
56069
+ paramsSchema = rest.shift();
56070
+ if (rest.length > 1 && typeof rest[0] === "object" && rest[0] !== null && !isZodRawShape(rest[0])) {
56071
+ annotations = rest.shift();
56072
+ }
56073
+ } else if (typeof firstArg === "object" && firstArg !== null) {
56074
+ annotations = rest.shift();
56075
+ }
55452
56076
  }
55453
56077
  const cb = rest[0];
55454
56078
  const registeredTool = {
55455
56079
  description,
55456
56080
  inputSchema: paramsSchema === undefined ? undefined : z.object(paramsSchema),
56081
+ annotations,
55457
56082
  callback: cb,
55458
56083
  enabled: true,
55459
56084
  disable: () => registeredTool.update({ enabled: false }),
@@ -55471,6 +56096,8 @@ class McpServer {
55471
56096
  registeredTool.inputSchema = z.object(updates.paramsSchema);
55472
56097
  if (typeof updates.callback !== "undefined")
55473
56098
  registeredTool.callback = updates.callback;
56099
+ if (typeof updates.annotations !== "undefined")
56100
+ registeredTool.annotations = updates.annotations;
55474
56101
  if (typeof updates.enabled !== "undefined")
55475
56102
  registeredTool.enabled = updates.enabled;
55476
56103
  this.sendToolListChanged();
@@ -55546,6 +56173,15 @@ class McpServer {
55546
56173
  var EMPTY_OBJECT_JSON_SCHEMA = {
55547
56174
  type: "object"
55548
56175
  };
56176
+ function isZodRawShape(obj) {
56177
+ if (typeof obj !== "object" || obj === null)
56178
+ return false;
56179
+ const isEmptyObject = Object.keys(obj).length === 0;
56180
+ return isEmptyObject || Object.values(obj).some(isZodTypeLike);
56181
+ }
56182
+ function isZodTypeLike(value) {
56183
+ return value !== null && typeof value === "object" && "parse" in value && typeof value.parse === "function" && "safeParse" in value && typeof value.safeParse === "function";
56184
+ }
55549
56185
  function promptArgumentsFromSchema(schema) {
55550
56186
  return Object.entries(schema.shape).map(([name, field]) => ({
55551
56187
  name,
@@ -56954,7 +57590,7 @@ minimatch.unescape = unescape;
56954
57590
  // ../../node_modules/glob/dist/esm/glob.js
56955
57591
  import { fileURLToPath as fileURLToPath2 } from "node:url";
56956
57592
 
56957
- // ../../node_modules/lru-cache/dist/esm/index.js
57593
+ // ../../node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js
56958
57594
  var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
56959
57595
  var warned = new Set;
56960
57596
  var PROCESS = typeof process === "object" && !!process ? process : {};
@@ -61083,7 +61719,9 @@ var DotEnvSchema = z.object({
61083
61719
  SETTLEMINT_PORTAL: UniqueNameSchema.optional(),
61084
61720
  SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT: UrlSchema.optional(),
61085
61721
  SETTLEMINT_PORTAL_REST_ENDPOINT: UrlSchema.optional(),
61722
+ SETTLEMINT_PORTAL_WS_ENDPOINT: UrlSchema.optional(),
61086
61723
  SETTLEMINT_HD_PRIVATE_KEY: UniqueNameSchema.optional(),
61724
+ SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS: z.string().optional(),
61087
61725
  SETTLEMINT_ACCESSIBLE_PRIVATE_KEY: UniqueNameSchema.optional(),
61088
61726
  SETTLEMINT_MINIO: UniqueNameSchema.optional(),
61089
61727
  SETTLEMINT_MINIO_ENDPOINT: UrlSchema.optional(),
@@ -61191,7 +61829,9 @@ var DotEnvSchema2 = z.object({
61191
61829
  SETTLEMINT_PORTAL: UniqueNameSchema2.optional(),
61192
61830
  SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT: UrlSchema2.optional(),
61193
61831
  SETTLEMINT_PORTAL_REST_ENDPOINT: UrlSchema2.optional(),
61832
+ SETTLEMINT_PORTAL_WS_ENDPOINT: UrlSchema2.optional(),
61194
61833
  SETTLEMINT_HD_PRIVATE_KEY: UniqueNameSchema2.optional(),
61834
+ SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS: z.string().optional(),
61195
61835
  SETTLEMINT_ACCESSIBLE_PRIVATE_KEY: UniqueNameSchema2.optional(),
61196
61836
  SETTLEMINT_MINIO: UniqueNameSchema2.optional(),
61197
61837
  SETTLEMINT_MINIO_ENDPOINT: UrlSchema2.optional(),
@@ -61234,7 +61874,7 @@ var {
61234
61874
  var package_default = {
61235
61875
  name: "@settlemint/sdk-mcp",
61236
61876
  description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
61237
- version: "2.2.2",
61877
+ version: "2.2.3-main0e9aa0e1",
61238
61878
  type: "module",
61239
61879
  private: false,
61240
61880
  license: "FSL-1.1-MIT",
@@ -61275,12 +61915,12 @@ var package_default = {
61275
61915
  dependencies: {
61276
61916
  "@graphql-tools/load": "8.1.0",
61277
61917
  "@graphql-tools/url-loader": "8.0.31",
61278
- "@modelcontextprotocol/sdk": "1.10.2",
61279
- "@settlemint/sdk-js": "2.2.2",
61280
- "@settlemint/sdk-utils": "2.2.2",
61918
+ "@modelcontextprotocol/sdk": "1.11.2",
61919
+ "@settlemint/sdk-js": "2.2.3-main0e9aa0e1",
61920
+ "@settlemint/sdk-utils": "2.2.3-main0e9aa0e1",
61281
61921
  "@commander-js/extra-typings": "11.1.0",
61282
61922
  commander: "11.1.0",
61283
- zod: "3.24.3"
61923
+ zod: "3.24.4"
61284
61924
  },
61285
61925
  devDependencies: {},
61286
61926
  peerDependencies: {},
@@ -64927,7 +65567,12 @@ var getPlatformConfigQuery = graphql(`
64927
65567
  disabled
64928
65568
  }
64929
65569
  }
64930
- preDeployedContracts
65570
+ preDeployedAbis {
65571
+ id
65572
+ featureflagged
65573
+ abis
65574
+ label
65575
+ }
64931
65576
  sdkVersion
64932
65577
  kits {
64933
65578
  id
@@ -64956,6 +65601,15 @@ var PrivateKeyFragment = graphql(`
64956
65601
  provider
64957
65602
  region
64958
65603
  address
65604
+ trustedForwarderName
65605
+ trustedForwarderAddress
65606
+ relayerKey {
65607
+ ... on PrivateKey {
65608
+ id
65609
+ name
65610
+ uniqueName
65611
+ }
65612
+ }
64959
65613
  blockchainNodes {
64960
65614
  ... on BlockchainNode {
64961
65615
  id
@@ -64991,6 +65645,9 @@ var createPrivateKey = graphql(`
64991
65645
  $size: ClusterServiceSize
64992
65646
  $type: ClusterServiceType
64993
65647
  $blockchainNodes: [ID!]
65648
+ $trustedForwarderName: String
65649
+ $trustedForwarderAddress: String
65650
+ $relayerKey: ID
64994
65651
  ) {
64995
65652
  createPrivateKey(
64996
65653
  applicationId: $applicationId
@@ -65001,6 +65658,9 @@ var createPrivateKey = graphql(`
65001
65658
  size: $size
65002
65659
  type: $type
65003
65660
  blockchainNodes: $blockchainNodes
65661
+ trustedForwarderName: $trustedForwarderName
65662
+ trustedForwarderAddress: $trustedForwarderAddress
65663
+ relayerKey: $relayerKey
65004
65664
  ) {
65005
65665
  ...PrivateKey
65006
65666
  }
@@ -65031,9 +65691,10 @@ var privatekeyRead = (gqlClient) => {
65031
65691
  };
65032
65692
  var privateKeyCreate = (gqlClient) => {
65033
65693
  return async (args) => {
65034
- const { applicationUniqueName, blockchainNodeUniqueNames, ...otherArgs } = args;
65694
+ const { applicationUniqueName, blockchainNodeUniqueNames, relayerKeyUniqueName, ...otherArgs } = args;
65035
65695
  const application = await applicationRead(gqlClient)(applicationUniqueName);
65036
65696
  const blockchainNodes = blockchainNodeUniqueNames ? await Promise.all(blockchainNodeUniqueNames.map((uniqueName) => blockchainNodeRead(gqlClient)(uniqueName))) : [];
65697
+ const relayerKey = relayerKeyUniqueName ? await privatekeyRead(gqlClient)(relayerKeyUniqueName) : undefined;
65037
65698
  const platformConfig = await getPlatformConfig(gqlClient)();
65038
65699
  const defaultProvider = platformConfig.deploymentEngineTargets.find((target) => !target.disabled && target.clusters.some((cluster) => !cluster.disabled));
65039
65700
  const defaultRegion = defaultProvider?.clusters.find((cluster) => !cluster.disabled);
@@ -65041,6 +65702,7 @@ var privateKeyCreate = (gqlClient) => {
65041
65702
  ...otherArgs,
65042
65703
  applicationId: application.id,
65043
65704
  blockchainNodes: blockchainNodes.map((node) => node?.id),
65705
+ relayerKey: relayerKey?.id,
65044
65706
  provider: defaultProvider?.id ?? "gke",
65045
65707
  region: defaultRegion?.id?.split("-")[1] ?? "europe",
65046
65708
  size: "SMALL",
@@ -67025,4 +67687,4 @@ await main().catch((error2) => {
67025
67687
  process.exit(1);
67026
67688
  });
67027
67689
 
67028
- //# debugId=E228BB8121FD1AF164756E2164756E21
67690
+ //# debugId=A4DA9EEBB3EE8C4464756E2164756E21