@settlemint/sdk-cli 2.6.2-main13306384 → 2.6.2-main1514d126
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 +80 -76
- package/dist/cli.js.map +8 -8
- package/package.json +8 -8
package/dist/cli.js
CHANGED
@@ -29,7 +29,7 @@ var __export = (target, all) => {
|
|
29
29
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
30
30
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
31
31
|
|
32
|
-
// ../../node_modules/.bun/commander@14.0.
|
32
|
+
// ../../node_modules/.bun/commander@14.0.1/node_modules/commander/lib/error.js
|
33
33
|
var require_error = __commonJS((exports) => {
|
34
34
|
class CommanderError extends Error {
|
35
35
|
constructor(exitCode, code, message) {
|
@@ -53,7 +53,7 @@ var require_error = __commonJS((exports) => {
|
|
53
53
|
exports.InvalidArgumentError = InvalidArgumentError;
|
54
54
|
});
|
55
55
|
|
56
|
-
// ../../node_modules/.bun/commander@14.0.
|
56
|
+
// ../../node_modules/.bun/commander@14.0.1/node_modules/commander/lib/argument.js
|
57
57
|
var require_argument = __commonJS((exports) => {
|
58
58
|
var { InvalidArgumentError } = require_error();
|
59
59
|
|
@@ -79,7 +79,7 @@ var require_argument = __commonJS((exports) => {
|
|
79
79
|
this._name = name;
|
80
80
|
break;
|
81
81
|
}
|
82
|
-
if (this._name.
|
82
|
+
if (this._name.endsWith("...")) {
|
83
83
|
this.variadic = true;
|
84
84
|
this._name = this._name.slice(0, -3);
|
85
85
|
}
|
@@ -87,11 +87,12 @@ var require_argument = __commonJS((exports) => {
|
|
87
87
|
name() {
|
88
88
|
return this._name;
|
89
89
|
}
|
90
|
-
|
90
|
+
_collectValue(value, previous) {
|
91
91
|
if (previous === this.defaultValue || !Array.isArray(previous)) {
|
92
92
|
return [value];
|
93
93
|
}
|
94
|
-
|
94
|
+
previous.push(value);
|
95
|
+
return previous;
|
95
96
|
}
|
96
97
|
default(value, description) {
|
97
98
|
this.defaultValue = value;
|
@@ -109,7 +110,7 @@ var require_argument = __commonJS((exports) => {
|
|
109
110
|
throw new InvalidArgumentError(`Allowed choices are ${this.argChoices.join(", ")}.`);
|
110
111
|
}
|
111
112
|
if (this.variadic) {
|
112
|
-
return this.
|
113
|
+
return this._collectValue(arg, previous);
|
113
114
|
}
|
114
115
|
return arg;
|
115
116
|
};
|
@@ -132,7 +133,7 @@ var require_argument = __commonJS((exports) => {
|
|
132
133
|
exports.humanReadableArgName = humanReadableArgName;
|
133
134
|
});
|
134
135
|
|
135
|
-
// ../../node_modules/.bun/commander@14.0.
|
136
|
+
// ../../node_modules/.bun/commander@14.0.1/node_modules/commander/lib/help.js
|
136
137
|
var require_help = __commonJS((exports) => {
|
137
138
|
var { humanReadableArgName } = require_argument();
|
138
139
|
|
@@ -489,7 +490,7 @@ ${itemIndentStr}`);
|
|
489
490
|
exports.stripColor = stripColor;
|
490
491
|
});
|
491
492
|
|
492
|
-
// ../../node_modules/.bun/commander@14.0.
|
493
|
+
// ../../node_modules/.bun/commander@14.0.1/node_modules/commander/lib/option.js
|
493
494
|
var require_option = __commonJS((exports) => {
|
494
495
|
var { InvalidArgumentError } = require_error();
|
495
496
|
|
@@ -556,11 +557,12 @@ var require_option = __commonJS((exports) => {
|
|
556
557
|
this.hidden = !!hide;
|
557
558
|
return this;
|
558
559
|
}
|
559
|
-
|
560
|
+
_collectValue(value, previous) {
|
560
561
|
if (previous === this.defaultValue || !Array.isArray(previous)) {
|
561
562
|
return [value];
|
562
563
|
}
|
563
|
-
|
564
|
+
previous.push(value);
|
565
|
+
return previous;
|
564
566
|
}
|
565
567
|
choices(values) {
|
566
568
|
this.argChoices = values.slice();
|
@@ -569,7 +571,7 @@ var require_option = __commonJS((exports) => {
|
|
569
571
|
throw new InvalidArgumentError(`Allowed choices are ${this.argChoices.join(", ")}.`);
|
570
572
|
}
|
571
573
|
if (this.variadic) {
|
572
|
-
return this.
|
574
|
+
return this._collectValue(arg, previous);
|
573
575
|
}
|
574
576
|
return arg;
|
575
577
|
};
|
@@ -672,7 +674,7 @@ var require_option = __commonJS((exports) => {
|
|
672
674
|
exports.DualOptions = DualOptions;
|
673
675
|
});
|
674
676
|
|
675
|
-
// ../../node_modules/.bun/commander@14.0.
|
677
|
+
// ../../node_modules/.bun/commander@14.0.1/node_modules/commander/lib/suggestSimilar.js
|
676
678
|
var require_suggestSimilar = __commonJS((exports) => {
|
677
679
|
var maxDistance = 3;
|
678
680
|
function editDistance(a, b) {
|
@@ -745,7 +747,7 @@ var require_suggestSimilar = __commonJS((exports) => {
|
|
745
747
|
exports.suggestSimilar = suggestSimilar;
|
746
748
|
});
|
747
749
|
|
748
|
-
// ../../node_modules/.bun/commander@14.0.
|
750
|
+
// ../../node_modules/.bun/commander@14.0.1/node_modules/commander/lib/command.js
|
749
751
|
var require_command = __commonJS((exports) => {
|
750
752
|
var EventEmitter = __require("node:events").EventEmitter;
|
751
753
|
var childProcess = __require("node:child_process");
|
@@ -875,7 +877,10 @@ var require_command = __commonJS((exports) => {
|
|
875
877
|
configureOutput(configuration) {
|
876
878
|
if (configuration === undefined)
|
877
879
|
return this._outputConfiguration;
|
878
|
-
this._outputConfiguration =
|
880
|
+
this._outputConfiguration = {
|
881
|
+
...this._outputConfiguration,
|
882
|
+
...configuration
|
883
|
+
};
|
879
884
|
return this;
|
880
885
|
}
|
881
886
|
showHelpAfterError(displayHelp = true) {
|
@@ -924,7 +929,7 @@ var require_command = __commonJS((exports) => {
|
|
924
929
|
}
|
925
930
|
addArgument(argument) {
|
926
931
|
const previousArgument = this.registeredArguments.slice(-1)[0];
|
927
|
-
if (previousArgument
|
932
|
+
if (previousArgument?.variadic) {
|
928
933
|
throw new Error(`only the last argument can be variadic '${previousArgument.name()}'`);
|
929
934
|
}
|
930
935
|
if (argument.required && argument.defaultValue !== undefined && argument.parseArg === undefined) {
|
@@ -1079,7 +1084,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
1079
1084
|
if (val !== null && option.parseArg) {
|
1080
1085
|
val = this._callParseArg(option, val, oldValue, invalidValueMessage);
|
1081
1086
|
} else if (val !== null && option.variadic) {
|
1082
|
-
val = option.
|
1087
|
+
val = option._collectValue(val, oldValue);
|
1083
1088
|
}
|
1084
1089
|
if (val == null) {
|
1085
1090
|
if (option.negate) {
|
@@ -1454,7 +1459,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
1454
1459
|
this.processedArgs = processedArgs;
|
1455
1460
|
}
|
1456
1461
|
_chainOrCall(promise, fn) {
|
1457
|
-
if (promise
|
1462
|
+
if (promise?.then && typeof promise.then === "function") {
|
1458
1463
|
return promise.then(() => fn());
|
1459
1464
|
}
|
1460
1465
|
return fn();
|
@@ -1531,7 +1536,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
1531
1536
|
promiseChain = this._chainOrCallHooks(promiseChain, "postAction");
|
1532
1537
|
return promiseChain;
|
1533
1538
|
}
|
1534
|
-
if (this.parent
|
1539
|
+
if (this.parent?.listenerCount(commandEvent)) {
|
1535
1540
|
checkForUnknownOptions();
|
1536
1541
|
this._processArguments();
|
1537
1542
|
this.parent.emit(commandEvent, operands, unknown);
|
@@ -1593,11 +1598,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
1593
1598
|
cmd._checkForConflictingLocalOptions();
|
1594
1599
|
});
|
1595
1600
|
}
|
1596
|
-
parseOptions(
|
1601
|
+
parseOptions(args) {
|
1597
1602
|
const operands = [];
|
1598
1603
|
const unknown = [];
|
1599
1604
|
let dest = operands;
|
1600
|
-
const args = argv.slice();
|
1601
1605
|
function maybeOption(arg) {
|
1602
1606
|
return arg.length > 1 && arg[0] === "-";
|
1603
1607
|
}
|
@@ -1607,12 +1611,15 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
1607
1611
|
return !this._getCommandAndAncestors().some((cmd) => cmd.options.map((opt) => opt.short).some((short) => /^-\d$/.test(short)));
|
1608
1612
|
};
|
1609
1613
|
let activeVariadicOption = null;
|
1610
|
-
|
1611
|
-
|
1614
|
+
let activeGroup = null;
|
1615
|
+
let i = 0;
|
1616
|
+
while (i < args.length || activeGroup) {
|
1617
|
+
const arg = activeGroup ?? args[i++];
|
1618
|
+
activeGroup = null;
|
1612
1619
|
if (arg === "--") {
|
1613
1620
|
if (dest === unknown)
|
1614
1621
|
dest.push(arg);
|
1615
|
-
dest.push(...args);
|
1622
|
+
dest.push(...args.slice(i));
|
1616
1623
|
break;
|
1617
1624
|
}
|
1618
1625
|
if (activeVariadicOption && (!maybeOption(arg) || negativeNumberArg(arg))) {
|
@@ -1624,14 +1631,14 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
1624
1631
|
const option = this._findOption(arg);
|
1625
1632
|
if (option) {
|
1626
1633
|
if (option.required) {
|
1627
|
-
const value = args
|
1634
|
+
const value = args[i++];
|
1628
1635
|
if (value === undefined)
|
1629
1636
|
this.optionMissingArgument(option);
|
1630
1637
|
this.emit(`option:${option.name()}`, value);
|
1631
1638
|
} else if (option.optional) {
|
1632
1639
|
let value = null;
|
1633
|
-
if (args.length
|
1634
|
-
value = args
|
1640
|
+
if (i < args.length && (!maybeOption(args[i]) || negativeNumberArg(args[i]))) {
|
1641
|
+
value = args[i++];
|
1635
1642
|
}
|
1636
1643
|
this.emit(`option:${option.name()}`, value);
|
1637
1644
|
} else {
|
@@ -1648,7 +1655,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
1648
1655
|
this.emit(`option:${option.name()}`, arg.slice(2));
|
1649
1656
|
} else {
|
1650
1657
|
this.emit(`option:${option.name()}`);
|
1651
|
-
|
1658
|
+
activeGroup = `-${arg.slice(2)}`;
|
1652
1659
|
}
|
1653
1660
|
continue;
|
1654
1661
|
}
|
@@ -1667,25 +1674,18 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
1667
1674
|
if ((this._enablePositionalOptions || this._passThroughOptions) && operands.length === 0 && unknown.length === 0) {
|
1668
1675
|
if (this._findCommand(arg)) {
|
1669
1676
|
operands.push(arg);
|
1670
|
-
|
1671
|
-
unknown.push(...args);
|
1677
|
+
unknown.push(...args.slice(i));
|
1672
1678
|
break;
|
1673
1679
|
} else if (this._getHelpCommand() && arg === this._getHelpCommand().name()) {
|
1674
|
-
operands.push(arg);
|
1675
|
-
if (args.length > 0)
|
1676
|
-
operands.push(...args);
|
1680
|
+
operands.push(arg, ...args.slice(i));
|
1677
1681
|
break;
|
1678
1682
|
} else if (this._defaultCommandName) {
|
1679
|
-
unknown.push(arg);
|
1680
|
-
if (args.length > 0)
|
1681
|
-
unknown.push(...args);
|
1683
|
+
unknown.push(arg, ...args.slice(i));
|
1682
1684
|
break;
|
1683
1685
|
}
|
1684
1686
|
}
|
1685
1687
|
if (this._passThroughOptions) {
|
1686
|
-
dest.push(arg);
|
1687
|
-
if (args.length > 0)
|
1688
|
-
dest.push(...args);
|
1688
|
+
dest.push(arg, ...args.slice(i));
|
1689
1689
|
break;
|
1690
1690
|
}
|
1691
1691
|
dest.push(arg);
|
@@ -2102,7 +2102,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
2102
2102
|
exports.useColor = useColor;
|
2103
2103
|
});
|
2104
2104
|
|
2105
|
-
// ../../node_modules/.bun/commander@14.0.
|
2105
|
+
// ../../node_modules/.bun/commander@14.0.1/node_modules/commander/index.js
|
2106
2106
|
var require_commander = __commonJS((exports) => {
|
2107
2107
|
var { Argument } = require_argument();
|
2108
2108
|
var { Command } = require_command();
|
@@ -2122,7 +2122,7 @@ var require_commander = __commonJS((exports) => {
|
|
2122
2122
|
exports.InvalidOptionArgumentError = InvalidArgumentError;
|
2123
2123
|
});
|
2124
2124
|
|
2125
|
-
// ../../node_modules/.bun/@commander-js+extra-typings@14.0.0+
|
2125
|
+
// ../../node_modules/.bun/@commander-js+extra-typings@14.0.0+408f7c8952c8497c/node_modules/@commander-js/extra-typings/index.js
|
2126
2126
|
var require_extra_typings = __commonJS((exports, module) => {
|
2127
2127
|
var commander = require_commander();
|
2128
2128
|
exports = module.exports = {};
|
@@ -247494,7 +247494,7 @@ var require_public_api = __commonJS((exports) => {
|
|
247494
247494
|
exports.stringify = stringify5;
|
247495
247495
|
});
|
247496
247496
|
|
247497
|
-
// ../../node_modules/.bun/@commander-js+extra-typings@14.0.0+
|
247497
|
+
// ../../node_modules/.bun/@commander-js+extra-typings@14.0.0+408f7c8952c8497c/node_modules/@commander-js/extra-typings/esm.mjs
|
247498
247498
|
var import__ = __toESM(require_extra_typings(), 1);
|
247499
247499
|
var {
|
247500
247500
|
program,
|
@@ -247510,14 +247510,14 @@ var {
|
|
247510
247510
|
Help
|
247511
247511
|
} = import__.default;
|
247512
247512
|
|
247513
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+
|
247513
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/key.js
|
247514
247514
|
var isUpKey = (key) => key.name === "up";
|
247515
247515
|
var isDownKey = (key) => key.name === "down";
|
247516
247516
|
var isBackspaceKey = (key) => key.name === "backspace";
|
247517
247517
|
var isTabKey = (key) => key.name === "tab";
|
247518
247518
|
var isNumberKey = (key) => "1234567890".includes(key.name);
|
247519
247519
|
var isEnterKey = (key) => key.name === "enter" || key.name === "return";
|
247520
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+
|
247520
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
247521
247521
|
class AbortPromptError extends Error {
|
247522
247522
|
name = "AbortPromptError";
|
247523
247523
|
message = "Prompt was aborted";
|
@@ -247543,10 +247543,10 @@ class HookError extends Error {
|
|
247543
247543
|
class ValidationError extends Error {
|
247544
247544
|
name = "ValidationError";
|
247545
247545
|
}
|
247546
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+
|
247546
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
247547
247547
|
import { AsyncResource as AsyncResource2 } from "node:async_hooks";
|
247548
247548
|
|
247549
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+
|
247549
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
247550
247550
|
import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
|
247551
247551
|
var hookStorage = new AsyncLocalStorage;
|
247552
247552
|
function createStore(rl) {
|
@@ -247651,7 +247651,7 @@ var effectScheduler = {
|
|
247651
247651
|
}
|
247652
247652
|
};
|
247653
247653
|
|
247654
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+
|
247654
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
247655
247655
|
function useState(defaultValue) {
|
247656
247656
|
return withPointer((pointer) => {
|
247657
247657
|
const setState = AsyncResource2.bind(function setState(newValue) {
|
@@ -247669,7 +247669,7 @@ function useState(defaultValue) {
|
|
247669
247669
|
});
|
247670
247670
|
}
|
247671
247671
|
|
247672
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+
|
247672
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
247673
247673
|
function useEffect(cb, depArray) {
|
247674
247674
|
withPointer((pointer) => {
|
247675
247675
|
const oldDeps = pointer.get();
|
@@ -247681,7 +247681,7 @@ function useEffect(cb, depArray) {
|
|
247681
247681
|
});
|
247682
247682
|
}
|
247683
247683
|
|
247684
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+
|
247684
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
247685
247685
|
var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
|
247686
247686
|
|
247687
247687
|
// ../../node_modules/.bun/@inquirer+figures@1.0.13/node_modules/@inquirer/figures/dist/esm/index.js
|
@@ -247970,7 +247970,7 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
247970
247970
|
var esm_default = figures;
|
247971
247971
|
var replacements = Object.entries(specialMainSymbols);
|
247972
247972
|
|
247973
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+
|
247973
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
247974
247974
|
var defaultTheme = {
|
247975
247975
|
prefix: {
|
247976
247976
|
idle: import_yoctocolors_cjs.default.blue("?"),
|
@@ -247991,7 +247991,7 @@ var defaultTheme = {
|
|
247991
247991
|
}
|
247992
247992
|
};
|
247993
247993
|
|
247994
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+
|
247994
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
247995
247995
|
function isPlainObject(value) {
|
247996
247996
|
if (typeof value !== "object" || value === null)
|
247997
247997
|
return false;
|
@@ -248019,7 +248019,7 @@ function makeTheme(...themes) {
|
|
248019
248019
|
return deepMerge(...themesToMerge);
|
248020
248020
|
}
|
248021
248021
|
|
248022
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+
|
248022
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
248023
248023
|
function usePrefix({ status = "idle", theme }) {
|
248024
248024
|
const [showLoader, setShowLoader] = useState(false);
|
248025
248025
|
const [tick, setTick] = useState(0);
|
@@ -248049,7 +248049,7 @@ function usePrefix({ status = "idle", theme }) {
|
|
248049
248049
|
const iconName = status === "loading" ? "idle" : status;
|
248050
248050
|
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
248051
248051
|
}
|
248052
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+
|
248052
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
|
248053
248053
|
function useMemo(fn, dependencies) {
|
248054
248054
|
return withPointer((pointer) => {
|
248055
248055
|
const prev = pointer.get();
|
@@ -248061,11 +248061,11 @@ function useMemo(fn, dependencies) {
|
|
248061
248061
|
return prev.value;
|
248062
248062
|
});
|
248063
248063
|
}
|
248064
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+
|
248064
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
248065
248065
|
function useRef(val) {
|
248066
248066
|
return useState({ current: val })[0];
|
248067
248067
|
}
|
248068
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+
|
248068
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
248069
248069
|
function useKeypress(userHandler) {
|
248070
248070
|
const signal = useRef(userHandler);
|
248071
248071
|
signal.current = userHandler;
|
@@ -248083,7 +248083,7 @@ function useKeypress(userHandler) {
|
|
248083
248083
|
};
|
248084
248084
|
}, []);
|
248085
248085
|
}
|
248086
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+
|
248086
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
248087
248087
|
var import_cli_width = __toESM(require_cli_width(), 1);
|
248088
248088
|
var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
|
248089
248089
|
function breakLines(content, width) {
|
@@ -248096,7 +248096,7 @@ function readlineWidth() {
|
|
248096
248096
|
return import_cli_width.default({ defaultWidth: 80, output: readline().output });
|
248097
248097
|
}
|
248098
248098
|
|
248099
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+
|
248099
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
|
248100
248100
|
function usePointerPosition({ active, renderedItems, pageSize, loop }) {
|
248101
248101
|
const state = useRef({
|
248102
248102
|
lastPointer: active,
|
@@ -248162,7 +248162,7 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
248162
248162
|
return pageBuffer.filter((line) => typeof line === "string").join(`
|
248163
248163
|
`);
|
248164
248164
|
}
|
248165
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+
|
248165
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
248166
248166
|
var import_mute_stream = __toESM(require_lib(), 1);
|
248167
248167
|
import * as readline2 from "node:readline";
|
248168
248168
|
import { AsyncResource as AsyncResource3 } from "node:async_hooks";
|
@@ -248375,7 +248375,7 @@ var {
|
|
248375
248375
|
unload
|
248376
248376
|
} = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback);
|
248377
248377
|
|
248378
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+
|
248378
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
248379
248379
|
var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
|
248380
248380
|
import { stripVTControlCharacters } from "node:util";
|
248381
248381
|
var height = (content) => content.split(`
|
@@ -248445,7 +248445,7 @@ class ScreenManager {
|
|
248445
248445
|
}
|
248446
248446
|
}
|
248447
248447
|
|
248448
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+
|
248448
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
248449
248449
|
class PromisePolyfill extends Promise {
|
248450
248450
|
static withResolver() {
|
248451
248451
|
let resolve;
|
@@ -248458,7 +248458,7 @@ class PromisePolyfill extends Promise {
|
|
248458
248458
|
}
|
248459
248459
|
}
|
248460
248460
|
|
248461
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+
|
248461
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
248462
248462
|
function getCallSites() {
|
248463
248463
|
const _prepareStackTrace = Error.prepareStackTrace;
|
248464
248464
|
let result = [];
|
@@ -248544,7 +248544,7 @@ function createPrompt(view) {
|
|
248544
248544
|
};
|
248545
248545
|
return prompt;
|
248546
248546
|
}
|
248547
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.0+
|
248547
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+5268b8880d5ab6fa/node_modules/@inquirer/core/dist/esm/lib/Separator.js
|
248548
248548
|
var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
|
248549
248549
|
class Separator {
|
248550
248550
|
separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
|
@@ -267215,7 +267215,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
267215
267215
|
var package_default = {
|
267216
267216
|
name: "@settlemint/sdk-cli",
|
267217
267217
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
267218
|
-
version: "2.6.2-
|
267218
|
+
version: "2.6.2-main1514d126",
|
267219
267219
|
type: "module",
|
267220
267220
|
private: false,
|
267221
267221
|
license: "FSL-1.1-MIT",
|
@@ -267264,16 +267264,16 @@ var package_default = {
|
|
267264
267264
|
},
|
267265
267265
|
devDependencies: {
|
267266
267266
|
"@commander-js/extra-typings": "14.0.0",
|
267267
|
-
commander: "14.0.
|
267267
|
+
commander: "14.0.1",
|
267268
267268
|
"@inquirer/confirm": "5.1.16",
|
267269
267269
|
"@inquirer/input": "4.2.2",
|
267270
267270
|
"@inquirer/password": "4.0.18",
|
267271
267271
|
"@inquirer/select": "4.3.2",
|
267272
|
-
"@settlemint/sdk-hasura": "2.6.2-
|
267273
|
-
"@settlemint/sdk-js": "2.6.2-
|
267274
|
-
"@settlemint/sdk-utils": "2.6.2-
|
267275
|
-
"@settlemint/sdk-viem": "2.6.2-
|
267276
|
-
"@types/node": "24.3.
|
267272
|
+
"@settlemint/sdk-hasura": "2.6.2-main1514d126",
|
267273
|
+
"@settlemint/sdk-js": "2.6.2-main1514d126",
|
267274
|
+
"@settlemint/sdk-utils": "2.6.2-main1514d126",
|
267275
|
+
"@settlemint/sdk-viem": "2.6.2-main1514d126",
|
267276
|
+
"@types/node": "24.3.3",
|
267277
267277
|
"@types/semver": "7.7.1",
|
267278
267278
|
"@types/which": "3.0.4",
|
267279
267279
|
"get-tsconfig": "4.10.1",
|
@@ -267289,7 +267289,7 @@ var package_default = {
|
|
267289
267289
|
},
|
267290
267290
|
peerDependencies: {
|
267291
267291
|
hardhat: "<= 4",
|
267292
|
-
"@settlemint/sdk-js": "2.6.2-
|
267292
|
+
"@settlemint/sdk-js": "2.6.2-main1514d126"
|
267293
267293
|
},
|
267294
267294
|
peerDependenciesMeta: {
|
267295
267295
|
hardhat: {
|
@@ -269051,6 +269051,7 @@ var createBlockchainNetwork = graphql(`
|
|
269051
269051
|
$quorumGenesis: QuorumGenesisInput
|
269052
269052
|
$externalNodes: [BlockchainNetworkExternalNodeInput!]
|
269053
269053
|
$privateKeyId: ID
|
269054
|
+
$includePredeployedContracts: Boolean
|
269054
269055
|
) {
|
269055
269056
|
createBlockchainNetwork(
|
269056
269057
|
applicationId: $applicationId
|
@@ -269079,6 +269080,7 @@ var createBlockchainNetwork = graphql(`
|
|
269079
269080
|
quorumGenesis: $quorumGenesis
|
269080
269081
|
externalNodes: $externalNodes
|
269081
269082
|
keyMaterial: $privateKeyId
|
269083
|
+
includePredeployedContracts: $includePredeployedContracts
|
269082
269084
|
) {
|
269083
269085
|
...BlockchainNetwork
|
269084
269086
|
}
|
@@ -273105,7 +273107,7 @@ function sanitizeName(value5, length = 35) {
|
|
273105
273107
|
}).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
|
273106
273108
|
}
|
273107
273109
|
|
273108
|
-
// ../../node_modules/.bun/@inquirer+input@4.2.2+
|
273110
|
+
// ../../node_modules/.bun/@inquirer+input@4.2.2+5268b8880d5ab6fa/node_modules/@inquirer/input/dist/esm/index.js
|
273109
273111
|
var inputTheme = {
|
273110
273112
|
validationFailureMode: "keep"
|
273111
273113
|
};
|
@@ -273195,7 +273197,7 @@ async function subgraphNamePrompt({
|
|
273195
273197
|
return sanitizeName(subgraphName);
|
273196
273198
|
}
|
273197
273199
|
|
273198
|
-
// ../../node_modules/.bun/@inquirer+select@4.3.2+
|
273200
|
+
// ../../node_modules/.bun/@inquirer+select@4.3.2+5268b8880d5ab6fa/node_modules/@inquirer/select/dist/esm/index.js
|
273199
273201
|
var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
|
273200
273202
|
var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
|
273201
273203
|
var selectTheme = {
|
@@ -298934,7 +298936,7 @@ function extractInfoFromBody(body) {
|
|
298934
298936
|
}
|
298935
298937
|
}
|
298936
298938
|
|
298937
|
-
// ../../node_modules/.bun/@inquirer+confirm@5.1.16+
|
298939
|
+
// ../../node_modules/.bun/@inquirer+confirm@5.1.16+5268b8880d5ab6fa/node_modules/@inquirer/confirm/dist/esm/index.js
|
298938
298940
|
function getBooleanValue(value5, defaultValue) {
|
298939
298941
|
let answer = defaultValue !== false;
|
298940
298942
|
if (/^(y|yes)/i.test(value5))
|
@@ -298980,7 +298982,7 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
298980
298982
|
return `${prefix} ${message}${defaultValue} ${formattedValue}`;
|
298981
298983
|
});
|
298982
298984
|
|
298983
|
-
// ../../node_modules/.bun/@inquirer+password@4.0.18+
|
298985
|
+
// ../../node_modules/.bun/@inquirer+password@4.0.18+5268b8880d5ab6fa/node_modules/@inquirer/password/dist/esm/index.js
|
298984
298986
|
var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
|
298985
298987
|
var esm_default5 = createPrompt((config3, done) => {
|
298986
298988
|
const { validate: validate8 = () => true } = config3;
|
@@ -304557,7 +304559,7 @@ function blockchainNetworkBesuCreateCommand() {
|
|
304557
304559
|
subType: "Besu",
|
304558
304560
|
alias: "b",
|
304559
304561
|
execute: (cmd2, baseAction) => {
|
304560
|
-
addClusterServiceArgs(cmd2).option("--app, --application <application>", "The unique name of the application to create the network in (defaults to application from env)").requiredOption("--node-name <name>", "Name of the node").option("--chain-id <chainId>", "The chain ID for the network", parseNumber).option("--contract-size-limit <limit>", "Maximum contract size limit", parseNumber).option("--evm-stack-size <size>", "EVM stack size", parseNumber).option("--gas-limit <limit>", "Block gas limit").option("--gas-price <price>", "Gas price in wei", parseNumber).option("--seconds-per-block <seconds>", "Block time in seconds", parseNumber).action(async (name4, {
|
304562
|
+
addClusterServiceArgs(cmd2).option("--app, --application <application>", "The unique name of the application to create the network in (defaults to application from env)").requiredOption("--node-name <name>", "Name of the node").option("--chain-id <chainId>", "The chain ID for the network", parseNumber).option("--contract-size-limit <limit>", "Maximum contract size limit", parseNumber).option("--evm-stack-size <size>", "EVM stack size", parseNumber).option("--gas-limit <limit>", "Block gas limit").option("--gas-price <price>", "Gas price in wei", parseNumber).option("--seconds-per-block <seconds>", "Block time in seconds", parseNumber).option("--includePredeployedContracts", "Include predeployed contracts in the genesis file").action(async (name4, {
|
304561
304563
|
application,
|
304562
304564
|
chainId,
|
304563
304565
|
contractSizeLimit,
|
@@ -304570,6 +304572,7 @@ function blockchainNetworkBesuCreateCommand() {
|
|
304570
304572
|
secondsPerBlock,
|
304571
304573
|
size: size5,
|
304572
304574
|
type: type5,
|
304575
|
+
includePredeployedContracts,
|
304573
304576
|
...defaultArgs
|
304574
304577
|
}) => {
|
304575
304578
|
return baseAction({
|
@@ -304595,7 +304598,8 @@ function blockchainNetworkBesuCreateCommand() {
|
|
304595
304598
|
region: region2,
|
304596
304599
|
secondsPerBlock,
|
304597
304600
|
size: size5,
|
304598
|
-
type: type5
|
304601
|
+
type: type5,
|
304602
|
+
includePredeployedContracts
|
304599
304603
|
}));
|
304600
304604
|
await new Promise((resolve8) => setTimeout(resolve8, 1000));
|
304601
304605
|
const blockchainNetworkWithNodes = await showSpinner(() => settlemint.blockchainNetwork.read(result.uniqueName));
|
@@ -308589,4 +308593,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
308589
308593
|
// src/cli.ts
|
308590
308594
|
sdkCliCommand();
|
308591
308595
|
|
308592
|
-
//# debugId=
|
308596
|
+
//# debugId=6BC8B269837B318964756E2164756E21
|