@settlemint/sdk-cli 2.5.12 → 2.5.13-pr393954e8
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/README.md +1 -1
- package/dist/cli.js +308 -236
- package/dist/cli.js.map +5 -4
- package/package.json +7 -7
package/dist/cli.js
CHANGED
@@ -4722,7 +4722,7 @@ var require_colors = __commonJS((exports, module) => {
|
|
4722
4722
|
}
|
4723
4723
|
return (message) => message;
|
4724
4724
|
}
|
4725
|
-
function
|
4725
|
+
function bold3(message) {
|
4726
4726
|
if (depth.getColorDepth() >= 4) {
|
4727
4727
|
return `\x1B[1m${message}\x1B[22m`;
|
4728
4728
|
}
|
@@ -4730,14 +4730,14 @@ var require_colors = __commonJS((exports, module) => {
|
|
4730
4730
|
}
|
4731
4731
|
module.exports = {
|
4732
4732
|
getColor,
|
4733
|
-
bold:
|
4733
|
+
bold: bold3
|
4734
4734
|
};
|
4735
4735
|
});
|
4736
4736
|
|
4737
4737
|
// ../../node_modules/.bun/@dotenvx+dotenvx@1.48.4/node_modules/@dotenvx/dotenvx/src/shared/logger.js
|
4738
4738
|
var require_logger = __commonJS((exports, module) => {
|
4739
4739
|
var packageJson = require_packageJson();
|
4740
|
-
var { getColor, bold:
|
4740
|
+
var { getColor, bold: bold3 } = require_colors();
|
4741
4741
|
var levels = {
|
4742
4742
|
error: 0,
|
4743
4743
|
warn: 1,
|
@@ -4749,7 +4749,7 @@ var require_logger = __commonJS((exports, module) => {
|
|
4749
4749
|
debug: 5,
|
4750
4750
|
silly: 6
|
4751
4751
|
};
|
4752
|
-
var error43 = (m) =>
|
4752
|
+
var error43 = (m) => bold3(getColor("red")(m));
|
4753
4753
|
var warn = getColor("orangered");
|
4754
4754
|
var success2 = getColor("green");
|
4755
4755
|
var successv = getColor("olive");
|
@@ -6211,11 +6211,11 @@ var require_picomatch = __commonJS((exports, module) => {
|
|
6211
6211
|
return { isMatch: false, output: "" };
|
6212
6212
|
}
|
6213
6213
|
const opts = options || {};
|
6214
|
-
const
|
6214
|
+
const format3 = opts.format || (posix ? utils.toPosixSlashes : null);
|
6215
6215
|
let match = input === glob;
|
6216
|
-
let output = match &&
|
6216
|
+
let output = match && format3 ? format3(input) : input;
|
6217
6217
|
if (match === false) {
|
6218
|
-
output =
|
6218
|
+
output = format3 ? format3(input) : input;
|
6219
6219
|
match = output === glob;
|
6220
6220
|
}
|
6221
6221
|
if (match === false || opts.capture === true) {
|
@@ -7025,7 +7025,7 @@ var require_main = __commonJS((exports, module) => {
|
|
7025
7025
|
function supportsAnsi() {
|
7026
7026
|
return process.stdout.isTTY;
|
7027
7027
|
}
|
7028
|
-
function
|
7028
|
+
function dim3(text) {
|
7029
7029
|
return supportsAnsi() ? `\x1B[2m${text}\x1B[0m` : text;
|
7030
7030
|
}
|
7031
7031
|
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
@@ -7222,7 +7222,7 @@ var require_main = __commonJS((exports, module) => {
|
|
7222
7222
|
lastError = e;
|
7223
7223
|
}
|
7224
7224
|
}
|
7225
|
-
_log(`injecting env (${keysCount}) from ${shortPaths.join(",")} ${
|
7225
|
+
_log(`injecting env (${keysCount}) from ${shortPaths.join(",")} ${dim3(`-- tip: ${_getRandomTip()}`)}`);
|
7226
7226
|
}
|
7227
7227
|
if (lastError) {
|
7228
7228
|
return { parsed: parsedAll, error: lastError };
|
@@ -8949,7 +8949,7 @@ var require_utils4 = __commonJS((exports) => {
|
|
8949
8949
|
let v = u8n(hashLen);
|
8950
8950
|
let k = u8n(hashLen);
|
8951
8951
|
let i = 0;
|
8952
|
-
const
|
8952
|
+
const reset3 = () => {
|
8953
8953
|
v.fill(1);
|
8954
8954
|
k.fill(0);
|
8955
8955
|
i = 0;
|
@@ -8977,12 +8977,12 @@ var require_utils4 = __commonJS((exports) => {
|
|
8977
8977
|
return (0, utils_js_1.concatBytes)(...out);
|
8978
8978
|
};
|
8979
8979
|
const genUntil = (seed, pred) => {
|
8980
|
-
|
8980
|
+
reset3();
|
8981
8981
|
reseed(seed);
|
8982
8982
|
let res = undefined;
|
8983
8983
|
while (!(res = pred(gen())))
|
8984
8984
|
reseed();
|
8985
|
-
|
8985
|
+
reset3();
|
8986
8986
|
return res;
|
8987
8987
|
};
|
8988
8988
|
return genUntil;
|
@@ -11452,10 +11452,10 @@ var require_weierstrass = __commonJS((exports) => {
|
|
11452
11452
|
normalizeS() {
|
11453
11453
|
return this.hasHighS() ? new Signature(this.r, Fn.neg(this.s), this.recovery) : this;
|
11454
11454
|
}
|
11455
|
-
toBytes(
|
11456
|
-
if (
|
11455
|
+
toBytes(format3) {
|
11456
|
+
if (format3 === "compact")
|
11457
11457
|
return (0, utils_ts_1.concatBytes)(Fn.toBytes(this.r), Fn.toBytes(this.s));
|
11458
|
-
if (
|
11458
|
+
if (format3 === "der")
|
11459
11459
|
return (0, utils_ts_1.hexToBytes)(exports.DER.hexFromSig(this));
|
11460
11460
|
throw new Error("invalid format");
|
11461
11461
|
}
|
@@ -11588,20 +11588,20 @@ var require_weierstrass = __commonJS((exports) => {
|
|
11588
11588
|
msgHash = (0, utils_ts_1.ensureBytes)("msgHash", msgHash);
|
11589
11589
|
publicKey = (0, utils_ts_1.ensureBytes)("publicKey", publicKey);
|
11590
11590
|
validateSigVerOpts(opts);
|
11591
|
-
const { lowS, prehash, format:
|
11591
|
+
const { lowS, prehash, format: format3 } = opts;
|
11592
11592
|
if ("strict" in opts)
|
11593
11593
|
throw new Error("options.strict was renamed to lowS");
|
11594
|
-
if (
|
11594
|
+
if (format3 !== undefined && !["compact", "der", "js"].includes(format3))
|
11595
11595
|
throw new Error('format must be "compact", "der" or "js"');
|
11596
11596
|
const isHex = typeof sg === "string" || (0, utils_ts_1.isBytes)(sg);
|
11597
|
-
const isObj = !isHex && !
|
11597
|
+
const isObj = !isHex && !format3 && typeof sg === "object" && sg !== null && typeof sg.r === "bigint" && typeof sg.s === "bigint";
|
11598
11598
|
if (!isHex && !isObj)
|
11599
11599
|
throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");
|
11600
11600
|
let _sig = undefined;
|
11601
11601
|
let P;
|
11602
11602
|
try {
|
11603
11603
|
if (isObj) {
|
11604
|
-
if (
|
11604
|
+
if (format3 === undefined || format3 === "js") {
|
11605
11605
|
_sig = new Signature(sg.r, sg.s);
|
11606
11606
|
} else {
|
11607
11607
|
throw new Error("invalid format");
|
@@ -11609,13 +11609,13 @@ var require_weierstrass = __commonJS((exports) => {
|
|
11609
11609
|
}
|
11610
11610
|
if (isHex) {
|
11611
11611
|
try {
|
11612
|
-
if (
|
11612
|
+
if (format3 !== "compact")
|
11613
11613
|
_sig = Signature.fromDER(sg);
|
11614
11614
|
} catch (derError) {
|
11615
11615
|
if (!(derError instanceof exports.DER.Err))
|
11616
11616
|
throw derError;
|
11617
11617
|
}
|
11618
|
-
if (!_sig &&
|
11618
|
+
if (!_sig && format3 !== "der")
|
11619
11619
|
_sig = Signature.fromCompact(sg);
|
11620
11620
|
}
|
11621
11621
|
P = Point.fromHex(publicKey);
|
@@ -14540,7 +14540,7 @@ var require_isIgnoringDotenvKeys = __commonJS((exports, module) => {
|
|
14540
14540
|
var require_main2 = __commonJS((exports, module) => {
|
14541
14541
|
var path = __require("path");
|
14542
14542
|
var { setLogLevel, setLogName, setLogVersion, logger } = require_logger();
|
14543
|
-
var { getColor, bold:
|
14543
|
+
var { getColor, bold: bold3 } = require_colors();
|
14544
14544
|
var Ls = require_ls();
|
14545
14545
|
var Run = require_run();
|
14546
14546
|
var Sets = require_sets();
|
@@ -14786,7 +14786,7 @@ var require_main2 = __commonJS((exports, module) => {
|
|
14786
14786
|
setLogLevel,
|
14787
14787
|
logger,
|
14788
14788
|
getColor,
|
14789
|
-
bold:
|
14789
|
+
bold: bold3
|
14790
14790
|
};
|
14791
14791
|
});
|
14792
14792
|
|
@@ -41726,11 +41726,11 @@ var require_lib12 = __commonJS((exports, module) => {
|
|
41726
41726
|
[Symbol.for("newline")]: newline,
|
41727
41727
|
...rest
|
41728
41728
|
} = this.content;
|
41729
|
-
const
|
41729
|
+
const format3 = indent === undefined ? " " : indent;
|
41730
41730
|
const eol = newline === undefined ? `
|
41731
41731
|
` : newline;
|
41732
41732
|
const content = sort ? packageSort(rest) : rest;
|
41733
|
-
const fileContent = `${JSON.stringify(content, null,
|
41733
|
+
const fileContent = `${JSON.stringify(content, null, format3)}
|
41734
41734
|
`.replace(/\n/g, eol);
|
41735
41735
|
if (fileContent.trim() !== this.#readFileContent.trim()) {
|
41736
41736
|
const written = await writeFile2(this.filename, fileContent);
|
@@ -75039,14 +75039,14 @@ ${lanes.join(`
|
|
75039
75039
|
const {
|
75040
75040
|
languageVersion,
|
75041
75041
|
setExternalModuleIndicator: overrideSetExternalModuleIndicator,
|
75042
|
-
impliedNodeFormat:
|
75042
|
+
impliedNodeFormat: format3,
|
75043
75043
|
jsDocParsingMode
|
75044
75044
|
} = typeof languageVersionOrOptions === "object" ? languageVersionOrOptions : { languageVersion: languageVersionOrOptions };
|
75045
75045
|
if (languageVersion === 100) {
|
75046
75046
|
result = Parser.parseSourceFile(fileName, sourceText, languageVersion, undefined, setParentNodes, 6, noop, jsDocParsingMode);
|
75047
75047
|
} else {
|
75048
|
-
const setIndicator =
|
75049
|
-
file2.impliedNodeFormat =
|
75048
|
+
const setIndicator = format3 === undefined ? overrideSetExternalModuleIndicator : (file2) => {
|
75049
|
+
file2.impliedNodeFormat = format3;
|
75050
75050
|
return (overrideSetExternalModuleIndicator || setExternalModuleIndicator)(file2);
|
75051
75051
|
};
|
75052
75052
|
result = Parser.parseSourceFile(fileName, sourceText, languageVersion, undefined, setParentNodes, scriptKind, setIndicator, jsDocParsingMode);
|
@@ -146463,8 +146463,8 @@ ${lanes.join(`
|
|
146463
146463
|
writeNode(hint, node, sourceFile, beginPrint());
|
146464
146464
|
return endPrint();
|
146465
146465
|
}
|
146466
|
-
function printList(
|
146467
|
-
writeList(
|
146466
|
+
function printList(format3, nodes, sourceFile) {
|
146467
|
+
writeList(format3, nodes, sourceFile, beginPrint());
|
146468
146468
|
return endPrint();
|
146469
146469
|
}
|
146470
146470
|
function printBundle(bundle) {
|
@@ -146482,13 +146482,13 @@ ${lanes.join(`
|
|
146482
146482
|
reset22();
|
146483
146483
|
writer = previousWriter;
|
146484
146484
|
}
|
146485
|
-
function writeList(
|
146485
|
+
function writeList(format3, nodes, sourceFile, output) {
|
146486
146486
|
const previousWriter = writer;
|
146487
146487
|
setWriter(output, undefined);
|
146488
146488
|
if (sourceFile) {
|
146489
146489
|
setSourceFile(sourceFile);
|
146490
146490
|
}
|
146491
|
-
emitList(undefined, nodes,
|
146491
|
+
emitList(undefined, nodes, format3);
|
146492
146492
|
reset22();
|
146493
146493
|
writer = previousWriter;
|
146494
146494
|
}
|
@@ -147853,9 +147853,9 @@ ${lanes.join(`
|
|
147853
147853
|
}
|
147854
147854
|
function emitBlockStatements(node, forceSingleLine) {
|
147855
147855
|
emitTokenWithComment(19, node.pos, writePunctuation, node);
|
147856
|
-
const
|
147857
|
-
emitList(node, node.statements,
|
147858
|
-
emitTokenWithComment(20, node.statements.end, writePunctuation, node, !!(
|
147856
|
+
const format3 = forceSingleLine || getEmitFlags(node) & 1 ? 768 : 129;
|
147857
|
+
emitList(node, node.statements, format3);
|
147858
|
+
emitTokenWithComment(20, node.statements.end, writePunctuation, node, !!(format3 & 1));
|
147859
147859
|
}
|
147860
147860
|
function emitVariableStatement(node) {
|
147861
147861
|
emitDecoratorsAndModifiers(node, node.modifiers, false);
|
@@ -148604,15 +148604,15 @@ ${lanes.join(`
|
|
148604
148604
|
}
|
148605
148605
|
function emitCaseOrDefaultClauseRest(parentNode, statements, colonPos) {
|
148606
148606
|
const emitAsSingleStatement = statements.length === 1 && (!currentSourceFile || nodeIsSynthesized(parentNode) || nodeIsSynthesized(statements[0]) || rangeStartPositionsAreOnSameLine(parentNode, statements[0], currentSourceFile));
|
148607
|
-
let
|
148607
|
+
let format3 = 163969;
|
148608
148608
|
if (emitAsSingleStatement) {
|
148609
148609
|
writeToken(59, colonPos, writePunctuation, parentNode);
|
148610
148610
|
writeSpace();
|
148611
|
-
|
148611
|
+
format3 &= ~(1 | 128);
|
148612
148612
|
} else {
|
148613
148613
|
emitTokenWithComment(59, colonPos, writePunctuation, parentNode);
|
148614
148614
|
}
|
148615
|
-
emitList(parentNode, statements,
|
148615
|
+
emitList(parentNode, statements, format3);
|
148616
148616
|
}
|
148617
148617
|
function emitHeritageClause(node) {
|
148618
148618
|
writeSpace();
|
@@ -149091,8 +149091,8 @@ ${lanes.join(`
|
|
149091
149091
|
function emitParametersForIndexSignature(parentNode, parameters) {
|
149092
149092
|
emitList(parentNode, parameters, 8848);
|
149093
149093
|
}
|
149094
|
-
function writeDelimiter(
|
149095
|
-
switch (
|
149094
|
+
function writeDelimiter(format3) {
|
149095
|
+
switch (format3 & 60) {
|
149096
149096
|
case 0:
|
149097
149097
|
break;
|
149098
149098
|
case 16:
|
@@ -149113,58 +149113,58 @@ ${lanes.join(`
|
|
149113
149113
|
break;
|
149114
149114
|
}
|
149115
149115
|
}
|
149116
|
-
function emitList(parentNode, children,
|
149117
|
-
emitNodeList(emit, parentNode, children,
|
149116
|
+
function emitList(parentNode, children, format3, parenthesizerRule, start, count) {
|
149117
|
+
emitNodeList(emit, parentNode, children, format3 | (parentNode && getEmitFlags(parentNode) & 2 ? 65536 : 0), parenthesizerRule, start, count);
|
149118
149118
|
}
|
149119
|
-
function emitExpressionList(parentNode, children,
|
149120
|
-
emitNodeList(emitExpression, parentNode, children,
|
149119
|
+
function emitExpressionList(parentNode, children, format3, parenthesizerRule, start, count) {
|
149120
|
+
emitNodeList(emitExpression, parentNode, children, format3, parenthesizerRule, start, count);
|
149121
149121
|
}
|
149122
|
-
function emitNodeList(emit2, parentNode, children,
|
149122
|
+
function emitNodeList(emit2, parentNode, children, format3, parenthesizerRule, start = 0, count = children ? children.length - start : 0) {
|
149123
149123
|
const isUndefined = children === undefined;
|
149124
|
-
if (isUndefined &&
|
149124
|
+
if (isUndefined && format3 & 16384) {
|
149125
149125
|
return;
|
149126
149126
|
}
|
149127
149127
|
const isEmpty2 = children === undefined || start >= children.length || count === 0;
|
149128
|
-
if (isEmpty2 &&
|
149128
|
+
if (isEmpty2 && format3 & 32768) {
|
149129
149129
|
onBeforeEmitNodeArray == null || onBeforeEmitNodeArray(children);
|
149130
149130
|
onAfterEmitNodeArray == null || onAfterEmitNodeArray(children);
|
149131
149131
|
return;
|
149132
149132
|
}
|
149133
|
-
if (
|
149134
|
-
writePunctuation(getOpeningBracket(
|
149133
|
+
if (format3 & 15360) {
|
149134
|
+
writePunctuation(getOpeningBracket(format3));
|
149135
149135
|
if (isEmpty2 && children) {
|
149136
149136
|
emitTrailingCommentsOfPosition(children.pos, true);
|
149137
149137
|
}
|
149138
149138
|
}
|
149139
149139
|
onBeforeEmitNodeArray == null || onBeforeEmitNodeArray(children);
|
149140
149140
|
if (isEmpty2) {
|
149141
|
-
if (
|
149141
|
+
if (format3 & 1 && !(preserveSourceNewlines && (!parentNode || currentSourceFile && rangeIsOnSingleLine(parentNode, currentSourceFile)))) {
|
149142
149142
|
writeLine();
|
149143
|
-
} else if (
|
149143
|
+
} else if (format3 & 256 && !(format3 & 524288)) {
|
149144
149144
|
writeSpace();
|
149145
149145
|
}
|
149146
149146
|
} else {
|
149147
|
-
emitNodeListItems(emit2, parentNode, children,
|
149147
|
+
emitNodeListItems(emit2, parentNode, children, format3, parenthesizerRule, start, count, children.hasTrailingComma, children);
|
149148
149148
|
}
|
149149
149149
|
onAfterEmitNodeArray == null || onAfterEmitNodeArray(children);
|
149150
|
-
if (
|
149150
|
+
if (format3 & 15360) {
|
149151
149151
|
if (isEmpty2 && children) {
|
149152
149152
|
emitLeadingCommentsOfPosition(children.end);
|
149153
149153
|
}
|
149154
|
-
writePunctuation(getClosingBracket(
|
149154
|
+
writePunctuation(getClosingBracket(format3));
|
149155
149155
|
}
|
149156
149156
|
}
|
149157
|
-
function emitNodeListItems(emit2, parentNode, children,
|
149158
|
-
const mayEmitInterveningComments = (
|
149157
|
+
function emitNodeListItems(emit2, parentNode, children, format3, parenthesizerRule, start, count, hasTrailingComma, childrenTextRange) {
|
149158
|
+
const mayEmitInterveningComments = (format3 & 262144) === 0;
|
149159
149159
|
let shouldEmitInterveningComments = mayEmitInterveningComments;
|
149160
|
-
const leadingLineTerminatorCount = getLeadingLineTerminatorCount(parentNode, children[start],
|
149160
|
+
const leadingLineTerminatorCount = getLeadingLineTerminatorCount(parentNode, children[start], format3);
|
149161
149161
|
if (leadingLineTerminatorCount) {
|
149162
149162
|
writeLine(leadingLineTerminatorCount);
|
149163
149163
|
shouldEmitInterveningComments = false;
|
149164
|
-
} else if (
|
149164
|
+
} else if (format3 & 256) {
|
149165
149165
|
writeSpace();
|
149166
149166
|
}
|
149167
|
-
if (
|
149167
|
+
if (format3 & 128) {
|
149168
149168
|
increaseIndent();
|
149169
149169
|
}
|
149170
149170
|
const emitListItem = getEmitListItem(emit2, parenthesizerRule);
|
@@ -149172,30 +149172,30 @@ ${lanes.join(`
|
|
149172
149172
|
let shouldDecreaseIndentAfterEmit = false;
|
149173
149173
|
for (let i2 = 0;i2 < count; i2++) {
|
149174
149174
|
const child = children[start + i2];
|
149175
|
-
if (
|
149175
|
+
if (format3 & 32) {
|
149176
149176
|
writeLine();
|
149177
|
-
writeDelimiter(
|
149177
|
+
writeDelimiter(format3);
|
149178
149178
|
} else if (previousSibling) {
|
149179
|
-
if (
|
149179
|
+
if (format3 & 60 && previousSibling.end !== (parentNode ? parentNode.end : -1)) {
|
149180
149180
|
const previousSiblingEmitFlags = getEmitFlags(previousSibling);
|
149181
149181
|
if (!(previousSiblingEmitFlags & 2048)) {
|
149182
149182
|
emitLeadingCommentsOfPosition(previousSibling.end);
|
149183
149183
|
}
|
149184
149184
|
}
|
149185
|
-
writeDelimiter(
|
149186
|
-
const separatingLineTerminatorCount = getSeparatingLineTerminatorCount(previousSibling, child,
|
149185
|
+
writeDelimiter(format3);
|
149186
|
+
const separatingLineTerminatorCount = getSeparatingLineTerminatorCount(previousSibling, child, format3);
|
149187
149187
|
if (separatingLineTerminatorCount > 0) {
|
149188
|
-
if ((
|
149188
|
+
if ((format3 & (3 | 128)) === 0) {
|
149189
149189
|
increaseIndent();
|
149190
149190
|
shouldDecreaseIndentAfterEmit = true;
|
149191
149191
|
}
|
149192
|
-
if (shouldEmitInterveningComments &&
|
149192
|
+
if (shouldEmitInterveningComments && format3 & 60 && !positionIsSynthesized(child.pos)) {
|
149193
149193
|
const commentRange = getCommentRange(child);
|
149194
|
-
emitTrailingCommentsOfPosition(commentRange.pos, !!(
|
149194
|
+
emitTrailingCommentsOfPosition(commentRange.pos, !!(format3 & 512), true);
|
149195
149195
|
}
|
149196
149196
|
writeLine(separatingLineTerminatorCount);
|
149197
149197
|
shouldEmitInterveningComments = false;
|
149198
|
-
} else if (previousSibling &&
|
149198
|
+
} else if (previousSibling && format3 & 512) {
|
149199
149199
|
writeSpace();
|
149200
149200
|
}
|
149201
149201
|
}
|
@@ -149215,7 +149215,7 @@ ${lanes.join(`
|
|
149215
149215
|
}
|
149216
149216
|
const emitFlags = previousSibling ? getEmitFlags(previousSibling) : 0;
|
149217
149217
|
const skipTrailingComments = commentsDisabled || !!(emitFlags & 2048);
|
149218
|
-
const emitTrailingComma = hasTrailingComma &&
|
149218
|
+
const emitTrailingComma = hasTrailingComma && format3 & 64 && format3 & 16;
|
149219
149219
|
if (emitTrailingComma) {
|
149220
149220
|
if (previousSibling && !skipTrailingComments) {
|
149221
149221
|
emitTokenWithComment(28, previousSibling.end, writePunctuation, previousSibling);
|
@@ -149223,16 +149223,16 @@ ${lanes.join(`
|
|
149223
149223
|
writePunctuation(",");
|
149224
149224
|
}
|
149225
149225
|
}
|
149226
|
-
if (previousSibling && (parentNode ? parentNode.end : -1) !== previousSibling.end &&
|
149226
|
+
if (previousSibling && (parentNode ? parentNode.end : -1) !== previousSibling.end && format3 & 60 && !skipTrailingComments) {
|
149227
149227
|
emitLeadingCommentsOfPosition(emitTrailingComma && (childrenTextRange == null ? undefined : childrenTextRange.end) ? childrenTextRange.end : previousSibling.end);
|
149228
149228
|
}
|
149229
|
-
if (
|
149229
|
+
if (format3 & 128) {
|
149230
149230
|
decreaseIndent();
|
149231
149231
|
}
|
149232
|
-
const closingLineTerminatorCount = getClosingLineTerminatorCount(parentNode, children[start + count - 1],
|
149232
|
+
const closingLineTerminatorCount = getClosingLineTerminatorCount(parentNode, children[start + count - 1], format3, childrenTextRange);
|
149233
149233
|
if (closingLineTerminatorCount) {
|
149234
149234
|
writeLine(closingLineTerminatorCount);
|
149235
|
-
} else if (
|
149235
|
+
} else if (format3 & (2097152 | 256)) {
|
149236
149236
|
writeSpace();
|
149237
149237
|
}
|
149238
149238
|
}
|
@@ -149348,9 +149348,9 @@ ${lanes.join(`
|
|
149348
149348
|
decreaseIndent();
|
149349
149349
|
}
|
149350
149350
|
}
|
149351
|
-
function getLeadingLineTerminatorCount(parentNode, firstChild,
|
149352
|
-
if (
|
149353
|
-
if (
|
149351
|
+
function getLeadingLineTerminatorCount(parentNode, firstChild, format3) {
|
149352
|
+
if (format3 & 2 || preserveSourceNewlines) {
|
149353
|
+
if (format3 & 65536) {
|
149354
149354
|
return 1;
|
149355
149355
|
}
|
149356
149356
|
if (firstChild === undefined) {
|
@@ -149368,14 +149368,14 @@ ${lanes.join(`
|
|
149368
149368
|
}
|
149369
149369
|
return rangeStartPositionsAreOnSameLine(parentNode, firstChild, currentSourceFile) ? 0 : 1;
|
149370
149370
|
}
|
149371
|
-
if (synthesizedNodeStartsOnNewLine(firstChild,
|
149371
|
+
if (synthesizedNodeStartsOnNewLine(firstChild, format3)) {
|
149372
149372
|
return 1;
|
149373
149373
|
}
|
149374
149374
|
}
|
149375
|
-
return
|
149375
|
+
return format3 & 1 ? 1 : 0;
|
149376
149376
|
}
|
149377
|
-
function getSeparatingLineTerminatorCount(previousNode, nextNode,
|
149378
|
-
if (
|
149377
|
+
function getSeparatingLineTerminatorCount(previousNode, nextNode, format3) {
|
149378
|
+
if (format3 & 2 || preserveSourceNewlines) {
|
149379
149379
|
if (previousNode === undefined || nextNode === undefined) {
|
149380
149380
|
return 0;
|
149381
149381
|
}
|
@@ -149387,18 +149387,18 @@ ${lanes.join(`
|
|
149387
149387
|
} else if (!preserveSourceNewlines && originalNodesHaveSameParent(previousNode, nextNode)) {
|
149388
149388
|
return rangeEndIsOnSameLineAsRangeStart(previousNode, nextNode, currentSourceFile) ? 0 : 1;
|
149389
149389
|
}
|
149390
|
-
return
|
149391
|
-
} else if (synthesizedNodeStartsOnNewLine(previousNode,
|
149390
|
+
return format3 & 65536 ? 1 : 0;
|
149391
|
+
} else if (synthesizedNodeStartsOnNewLine(previousNode, format3) || synthesizedNodeStartsOnNewLine(nextNode, format3)) {
|
149392
149392
|
return 1;
|
149393
149393
|
}
|
149394
149394
|
} else if (getStartsOnNewLine(nextNode)) {
|
149395
149395
|
return 1;
|
149396
149396
|
}
|
149397
|
-
return
|
149397
|
+
return format3 & 1 ? 1 : 0;
|
149398
149398
|
}
|
149399
|
-
function getClosingLineTerminatorCount(parentNode, lastChild,
|
149400
|
-
if (
|
149401
|
-
if (
|
149399
|
+
function getClosingLineTerminatorCount(parentNode, lastChild, format3, childrenTextRange) {
|
149400
|
+
if (format3 & 2 || preserveSourceNewlines) {
|
149401
|
+
if (format3 & 65536) {
|
149402
149402
|
return 1;
|
149403
149403
|
}
|
149404
149404
|
if (lastChild === undefined) {
|
@@ -149411,11 +149411,11 @@ ${lanes.join(`
|
|
149411
149411
|
}
|
149412
149412
|
return rangeEndPositionsAreOnSameLine(parentNode, lastChild, currentSourceFile) ? 0 : 1;
|
149413
149413
|
}
|
149414
|
-
if (synthesizedNodeStartsOnNewLine(lastChild,
|
149414
|
+
if (synthesizedNodeStartsOnNewLine(lastChild, format3)) {
|
149415
149415
|
return 1;
|
149416
149416
|
}
|
149417
149417
|
}
|
149418
|
-
if (
|
149418
|
+
if (format3 & 1 && !(format3 & 131072)) {
|
149419
149419
|
return 1;
|
149420
149420
|
}
|
149421
149421
|
return 0;
|
@@ -149441,15 +149441,15 @@ ${lanes.join(`
|
|
149441
149441
|
writeLine(trailingNewlines);
|
149442
149442
|
}
|
149443
149443
|
}
|
149444
|
-
function synthesizedNodeStartsOnNewLine(node,
|
149444
|
+
function synthesizedNodeStartsOnNewLine(node, format3) {
|
149445
149445
|
if (nodeIsSynthesized(node)) {
|
149446
149446
|
const startsOnNewLine = getStartsOnNewLine(node);
|
149447
149447
|
if (startsOnNewLine === undefined) {
|
149448
|
-
return (
|
149448
|
+
return (format3 & 65536) !== 0;
|
149449
149449
|
}
|
149450
149450
|
return startsOnNewLine;
|
149451
149451
|
}
|
149452
|
-
return (
|
149452
|
+
return (format3 & 65536) !== 0;
|
149453
149453
|
}
|
149454
149454
|
function getLinesBetweenNodes(parent2, node1, node2) {
|
149455
149455
|
if (getEmitFlags(parent2) & 262144) {
|
@@ -150279,11 +150279,11 @@ ${lanes.join(`
|
|
150279
150279
|
brackets2[8192] = ["[", "]"];
|
150280
150280
|
return brackets2;
|
150281
150281
|
}
|
150282
|
-
function getOpeningBracket(
|
150283
|
-
return brackets[
|
150282
|
+
function getOpeningBracket(format3) {
|
150283
|
+
return brackets[format3 & 15360][0];
|
150284
150284
|
}
|
150285
|
-
function getClosingBracket(
|
150286
|
-
return brackets[
|
150285
|
+
function getClosingBracket(format3) {
|
150286
|
+
return brackets[format3 & 15360][1];
|
150287
150287
|
}
|
150288
150288
|
function emitListItemNoParenthesizer(node, emit, _parenthesizerRule, _index) {
|
150289
150289
|
emit(node);
|
@@ -159645,13 +159645,13 @@ ${lanes.join(`
|
|
159645
159645
|
brightWhite: (str) => str
|
159646
159646
|
};
|
159647
159647
|
}
|
159648
|
-
function
|
159648
|
+
function bold3(str) {
|
159649
159649
|
return `\x1B[1m${str}\x1B[22m`;
|
159650
159650
|
}
|
159651
159651
|
const isWindows2 = sys2.getEnvironmentVariable("OS") && sys2.getEnvironmentVariable("OS").toLowerCase().includes("windows");
|
159652
159652
|
const isWindowsTerminal = sys2.getEnvironmentVariable("WT_SESSION");
|
159653
159653
|
const isVSCode = sys2.getEnvironmentVariable("TERM_PROGRAM") && sys2.getEnvironmentVariable("TERM_PROGRAM") === "vscode";
|
159654
|
-
function
|
159654
|
+
function blue3(str) {
|
159655
159655
|
if (isWindows2 && !isWindowsTerminal && !isVSCode) {
|
159656
159656
|
return brightWhite(str);
|
159657
159657
|
}
|
@@ -159669,8 +159669,8 @@ ${lanes.join(`
|
|
159669
159669
|
return `\x1B[97m${str}\x1B[39m`;
|
159670
159670
|
}
|
159671
159671
|
return {
|
159672
|
-
bold:
|
159673
|
-
blue:
|
159672
|
+
bold: bold3,
|
159673
|
+
blue: blue3,
|
159674
159674
|
brightWhite,
|
159675
159675
|
blueBackground
|
159676
159676
|
};
|
@@ -167734,7 +167734,7 @@ interface Symbol {
|
|
167734
167734
|
try {
|
167735
167735
|
return map2(primaryNavBarMenuItems(rootNavigationBarNode(sourceFile)), convertToPrimaryNavBarMenuItem);
|
167736
167736
|
} finally {
|
167737
|
-
|
167737
|
+
reset3();
|
167738
167738
|
}
|
167739
167739
|
}
|
167740
167740
|
function getNavigationTree(sourceFile, cancellationToken) {
|
@@ -167743,10 +167743,10 @@ interface Symbol {
|
|
167743
167743
|
try {
|
167744
167744
|
return convertToTree(rootNavigationBarNode(sourceFile));
|
167745
167745
|
} finally {
|
167746
|
-
|
167746
|
+
reset3();
|
167747
167747
|
}
|
167748
167748
|
}
|
167749
|
-
function
|
167749
|
+
function reset3() {
|
167750
167750
|
curSourceFile = undefined;
|
167751
167751
|
curCancellationToken = undefined;
|
167752
167752
|
parentsStack = [];
|
@@ -174644,18 +174644,18 @@ ${newComment.split(`
|
|
174644
174644
|
function getNavigationTree2(fileName) {
|
174645
174645
|
return getNavigationTree(syntaxTreeCache.getCurrentSourceFile(fileName), cancellationToken);
|
174646
174646
|
}
|
174647
|
-
function getSemanticClassifications3(fileName, span,
|
174647
|
+
function getSemanticClassifications3(fileName, span, format3) {
|
174648
174648
|
synchronizeHostData();
|
174649
|
-
const responseFormat =
|
174649
|
+
const responseFormat = format3 || "original";
|
174650
174650
|
if (responseFormat === "2020") {
|
174651
174651
|
return getSemanticClassifications2(program2, cancellationToken, getValidSourceFile(fileName), span);
|
174652
174652
|
} else {
|
174653
174653
|
return getSemanticClassifications(program2.getTypeChecker(), cancellationToken, getValidSourceFile(fileName), program2.getClassifiableNames(), span);
|
174654
174654
|
}
|
174655
174655
|
}
|
174656
|
-
function getEncodedSemanticClassifications3(fileName, span,
|
174656
|
+
function getEncodedSemanticClassifications3(fileName, span, format3) {
|
174657
174657
|
synchronizeHostData();
|
174658
|
-
const responseFormat =
|
174658
|
+
const responseFormat = format3 || "original";
|
174659
174659
|
if (responseFormat === "original") {
|
174660
174660
|
return getEncodedSemanticClassifications(program2.getTypeChecker(), cancellationToken, getValidSourceFile(fileName), program2.getClassifiableNames(), span);
|
174661
174661
|
} else {
|
@@ -186485,11 +186485,11 @@ ${newComment.split(`
|
|
186485
186485
|
completionNodes[completionNodes.length - 1] = factory.replaceDecoratorsAndModifiers(lastNode, presentDecorators.concat(getModifiers(lastNode) || []));
|
186486
186486
|
}
|
186487
186487
|
}
|
186488
|
-
const
|
186488
|
+
const format3 = 1 | 131072;
|
186489
186489
|
if (formatContext) {
|
186490
|
-
insertText = printer.printAndFormatSnippetList(
|
186490
|
+
insertText = printer.printAndFormatSnippetList(format3, factory.createNodeArray(completionNodes), sourceFile, formatContext);
|
186491
186491
|
} else {
|
186492
|
-
insertText = printer.printSnippetList(
|
186492
|
+
insertText = printer.printSnippetList(format3, factory.createNodeArray(completionNodes), sourceFile);
|
186493
186493
|
}
|
186494
186494
|
}
|
186495
186495
|
return { insertText, filterText, isSnippet, importAdder, eraseRange };
|
@@ -186643,19 +186643,19 @@ ${newComment.split(`
|
|
186643
186643
|
write();
|
186644
186644
|
}
|
186645
186645
|
}
|
186646
|
-
function printSnippetList(
|
186647
|
-
const unescaped = printUnescapedSnippetList(
|
186646
|
+
function printSnippetList(format3, list2, sourceFile) {
|
186647
|
+
const unescaped = printUnescapedSnippetList(format3, list2, sourceFile);
|
186648
186648
|
return escapes ? ts_textChanges_exports.applyChanges(unescaped, escapes) : unescaped;
|
186649
186649
|
}
|
186650
|
-
function printUnescapedSnippetList(
|
186650
|
+
function printUnescapedSnippetList(format3, list2, sourceFile) {
|
186651
186651
|
escapes = undefined;
|
186652
186652
|
writer.clear();
|
186653
|
-
printer.writeList(
|
186653
|
+
printer.writeList(format3, list2, sourceFile, writer);
|
186654
186654
|
return writer.getText();
|
186655
186655
|
}
|
186656
|
-
function printAndFormatSnippetList(
|
186656
|
+
function printAndFormatSnippetList(format3, list2, sourceFile, formatContext) {
|
186657
186657
|
const syntheticFile = {
|
186658
|
-
text: printUnescapedSnippetList(
|
186658
|
+
text: printUnescapedSnippetList(format3, list2, sourceFile),
|
186659
186659
|
getLineAndCharacterOfPosition(pos) {
|
186660
186660
|
return getLineAndCharacterOfPosition(this, pos);
|
186661
186661
|
}
|
@@ -197017,8 +197017,8 @@ ${options.prefix}` : `
|
|
197017
197017
|
return change.text;
|
197018
197018
|
}
|
197019
197019
|
const { options = {}, range: { pos } } = change;
|
197020
|
-
const
|
197021
|
-
const text = change.kind === 2 ? change.nodes.map((n2) => removeSuffix(
|
197020
|
+
const format3 = (n2) => getFormattedTextOfNode(n2, targetSourceFile, sourceFile, pos, options, newLineCharacter, formatContext, validate3);
|
197021
|
+
const text = change.kind === 2 ? change.nodes.map((n2) => removeSuffix(format3(n2), newLineCharacter)).join(((_a = change.options) == null ? undefined : _a.joiner) || newLineCharacter) : format3(change.node);
|
197022
197022
|
const noIndent = options.indentation !== undefined || getLineStartPositionForPosition(pos, targetSourceFile) === pos ? text : text.replace(/^\s+/, "");
|
197023
197023
|
return (options.prefix || "") + noIndent + (!options.suffix || endsWith(noIndent, options.suffix) ? "" : options.suffix);
|
197024
197024
|
}
|
@@ -210059,8 +210059,8 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
210059
210059
|
}
|
210060
210060
|
getEncodedSemanticClassifications(args) {
|
210061
210061
|
const { file: file2, project } = this.getFileAndProject(args);
|
210062
|
-
const
|
210063
|
-
return project.getLanguageService().getEncodedSemanticClassifications(file2, args,
|
210062
|
+
const format3 = args.format === "2020" ? "2020" : "original";
|
210063
|
+
return project.getLanguageService().getEncodedSemanticClassifications(file2, args, format3);
|
210064
210064
|
}
|
210065
210065
|
getProject(projectFileName) {
|
210066
210066
|
return projectFileName === undefined ? undefined : this.projectService.findProject(projectFileName);
|
@@ -223705,7 +223705,7 @@ function indent(e11, t9) {
|
|
223705
223705
|
function code(e11) {
|
223706
223706
|
return text`${cmd(Se.Style, $e.Underline)}${e11}${cmd(Se.Style, $e.NoUnderline)}`;
|
223707
223707
|
}
|
223708
|
-
function
|
223708
|
+
function bold3(e11) {
|
223709
223709
|
return text`${cmd(Se.Style, $e.Bold)}${e11}${cmd(Se.Style, $e.Normal)}`;
|
223710
223710
|
}
|
223711
223711
|
function hint(e11) {
|
@@ -224792,7 +224792,7 @@ async function* run$1() {
|
|
224792
224792
|
} else if (!semverComply(r7, Xe)) {
|
224793
224793
|
yield failedTask(mt.CHECK_TS_VERSION);
|
224794
224794
|
throw errorMessage(`The version of ${code("typescript")} in your dependencies is out of date.
|
224795
|
-
` + hint(`${code("gql.tada")} requires at least ${
|
224795
|
+
` + hint(`${code("gql.tada")} requires at least ${bold3(Xe)}`));
|
224796
224796
|
}
|
224797
224797
|
yield completedTask(mt.CHECK_TS_VERSION);
|
224798
224798
|
yield runningTask(mt.CHECK_DEPENDENCIES);
|
@@ -224818,7 +224818,7 @@ async function* run$1() {
|
|
224818
224818
|
} else if (!semverComply(l4, Ze)) {
|
224819
224819
|
yield failedTask(mt.CHECK_DEPENDENCIES);
|
224820
224820
|
throw errorMessage(`The version of ${code("@0no-co/graphqlsp")} in your dependencies is out of date.
|
224821
|
-
` + hint(`${code("gql.tada")} requires at least ${
|
224821
|
+
` + hint(`${code("gql.tada")} requires at least ${bold3(Ze)}`));
|
224822
224822
|
}
|
224823
224823
|
}
|
224824
224824
|
var c3 = await (async (e12) => {
|
@@ -224840,7 +224840,7 @@ async function* run$1() {
|
|
224840
224840
|
} else if (!semverComply(c3, "1.0.0")) {
|
224841
224841
|
yield failedTask(mt.CHECK_DEPENDENCIES);
|
224842
224842
|
throw errorMessage(`The version of ${code("gql.tada")} in your dependencies is out of date.
|
224843
|
-
` + hint(`It's recommended to upgrade ${code("gql.tada")} to at least ${
|
224843
|
+
` + hint(`It's recommended to upgrade ${code("gql.tada")} to at least ${bold3(Ze)}`));
|
224844
224844
|
}
|
224845
224845
|
yield completedTask(mt.CHECK_DEPENDENCIES);
|
224846
224846
|
yield runningTask(mt.CHECK_TSCONFIG);
|
@@ -234491,7 +234491,7 @@ function createHmacDrbg(hashLen, qByteLen, hmacFn) {
|
|
234491
234491
|
let v6 = u8n(hashLen);
|
234492
234492
|
let k5 = u8n(hashLen);
|
234493
234493
|
let i7 = 0;
|
234494
|
-
const
|
234494
|
+
const reset3 = () => {
|
234495
234495
|
v6.fill(1);
|
234496
234496
|
k5.fill(0);
|
234497
234497
|
i7 = 0;
|
@@ -234519,12 +234519,12 @@ function createHmacDrbg(hashLen, qByteLen, hmacFn) {
|
|
234519
234519
|
return concatBytes(...out);
|
234520
234520
|
};
|
234521
234521
|
const genUntil = (seed, pred) => {
|
234522
|
-
|
234522
|
+
reset3();
|
234523
234523
|
reseed(seed);
|
234524
234524
|
let res = undefined;
|
234525
234525
|
while (!(res = pred(gen2())))
|
234526
234526
|
reseed();
|
234527
|
-
|
234527
|
+
reset3();
|
234528
234528
|
return res;
|
234529
234529
|
};
|
234530
234530
|
return genUntil;
|
@@ -235187,10 +235187,10 @@ function _splitEndoScalar(k5, basis, n7) {
|
|
235187
235187
|
}
|
235188
235188
|
return { k1neg, k1, k2neg, k2: k22 };
|
235189
235189
|
}
|
235190
|
-
function validateSigFormat(
|
235191
|
-
if (!["compact", "recovered", "der"].includes(
|
235190
|
+
function validateSigFormat(format3) {
|
235191
|
+
if (!["compact", "recovered", "der"].includes(format3))
|
235192
235192
|
throw new Error('Signature format must be "compact", "recovered", or "der"');
|
235193
|
-
return
|
235193
|
+
return format3;
|
235194
235194
|
}
|
235195
235195
|
function validateSigOpts(opts, def) {
|
235196
235196
|
const optsn = {};
|
@@ -235834,11 +235834,11 @@ function ecdsa(Point, hash2, ecdsaOpts = {}) {
|
|
235834
235834
|
throw new Error(`invalid signature ${title}: out of range 1..Point.Fn.ORDER`);
|
235835
235835
|
return num;
|
235836
235836
|
}
|
235837
|
-
function validateSigLength(bytes,
|
235838
|
-
validateSigFormat(
|
235837
|
+
function validateSigLength(bytes, format3) {
|
235838
|
+
validateSigFormat(format3);
|
235839
235839
|
const size2 = lengths.signature;
|
235840
|
-
const sizer =
|
235841
|
-
return _abytes2(bytes, sizer, `${
|
235840
|
+
const sizer = format3 === "compact" ? size2 : format3 === "recovered" ? size2 + 1 : undefined;
|
235841
|
+
return _abytes2(bytes, sizer, `${format3} signature`);
|
235842
235842
|
}
|
235843
235843
|
|
235844
235844
|
class Signature {
|
@@ -235849,16 +235849,16 @@ function ecdsa(Point, hash2, ecdsaOpts = {}) {
|
|
235849
235849
|
this.recovery = recovery;
|
235850
235850
|
Object.freeze(this);
|
235851
235851
|
}
|
235852
|
-
static fromBytes(bytes,
|
235853
|
-
validateSigLength(bytes,
|
235852
|
+
static fromBytes(bytes, format3 = defaultSigOpts_format) {
|
235853
|
+
validateSigLength(bytes, format3);
|
235854
235854
|
let recid;
|
235855
|
-
if (
|
235855
|
+
if (format3 === "der") {
|
235856
235856
|
const { r: r8, s: s8 } = DER.toSig(_abytes2(bytes));
|
235857
235857
|
return new Signature(r8, s8);
|
235858
235858
|
}
|
235859
|
-
if (
|
235859
|
+
if (format3 === "recovered") {
|
235860
235860
|
recid = bytes[0];
|
235861
|
-
|
235861
|
+
format3 = "compact";
|
235862
235862
|
bytes = bytes.subarray(1);
|
235863
235863
|
}
|
235864
235864
|
const L5 = Fn.BYTES;
|
@@ -235866,8 +235866,8 @@ function ecdsa(Point, hash2, ecdsaOpts = {}) {
|
|
235866
235866
|
const s7 = bytes.subarray(L5, L5 * 2);
|
235867
235867
|
return new Signature(Fn.fromBytes(r7), Fn.fromBytes(s7), recid);
|
235868
235868
|
}
|
235869
|
-
static fromHex(hex,
|
235870
|
-
return this.fromBytes(hexToBytes2(hex),
|
235869
|
+
static fromHex(hex, format3) {
|
235870
|
+
return this.fromBytes(hexToBytes2(hex), format3);
|
235871
235871
|
}
|
235872
235872
|
addRecoveryBit(recovery) {
|
235873
235873
|
return new Signature(this.r, this.s, recovery);
|
@@ -235898,21 +235898,21 @@ function ecdsa(Point, hash2, ecdsaOpts = {}) {
|
|
235898
235898
|
hasHighS() {
|
235899
235899
|
return isBiggerThanHalfOrder(this.s);
|
235900
235900
|
}
|
235901
|
-
toBytes(
|
235902
|
-
validateSigFormat(
|
235903
|
-
if (
|
235901
|
+
toBytes(format3 = defaultSigOpts_format) {
|
235902
|
+
validateSigFormat(format3);
|
235903
|
+
if (format3 === "der")
|
235904
235904
|
return hexToBytes2(DER.hexFromSig(this));
|
235905
235905
|
const r7 = Fn.toBytes(this.r);
|
235906
235906
|
const s7 = Fn.toBytes(this.s);
|
235907
|
-
if (
|
235907
|
+
if (format3 === "recovered") {
|
235908
235908
|
if (this.recovery == null)
|
235909
235909
|
throw new Error("recovery bit must be present");
|
235910
235910
|
return concatBytes(Uint8Array.of(this.recovery), r7, s7);
|
235911
235911
|
}
|
235912
235912
|
return concatBytes(r7, s7);
|
235913
235913
|
}
|
235914
|
-
toHex(
|
235915
|
-
return bytesToHex2(this.toBytes(
|
235914
|
+
toHex(format3) {
|
235915
|
+
return bytesToHex2(this.toBytes(format3));
|
235916
235916
|
}
|
235917
235917
|
assertValidity() {}
|
235918
235918
|
static fromCompact(hex) {
|
@@ -236027,12 +236027,12 @@ function ecdsa(Point, hash2, ecdsaOpts = {}) {
|
|
236027
236027
|
return sig;
|
236028
236028
|
}
|
236029
236029
|
function verify(signature, message, publicKey, opts = {}) {
|
236030
|
-
const { lowS, prehash, format:
|
236030
|
+
const { lowS, prehash, format: format3 } = validateSigOpts(opts, defaultSigOpts);
|
236031
236031
|
publicKey = ensureBytes("publicKey", publicKey);
|
236032
236032
|
message = validateMsgAndHash(ensureBytes("message", message), prehash);
|
236033
236033
|
if ("strict" in opts)
|
236034
236034
|
throw new Error("options.strict was renamed to lowS");
|
236035
|
-
const sig =
|
236035
|
+
const sig = format3 === undefined ? tryParsingSig(signature) : Signature.fromBytes(ensureBytes("sig", signature), format3);
|
236036
236036
|
if (sig === false)
|
236037
236037
|
return false;
|
236038
236038
|
try {
|
@@ -236873,8 +236873,8 @@ var init_getNodeError = __esm(() => {
|
|
236873
236873
|
});
|
236874
236874
|
|
236875
236875
|
// ../../node_modules/.bun/viem@2.34.0+f2e3f0548df57a15/node_modules/viem/_esm/utils/formatters/extract.js
|
236876
|
-
function extract2(value_, { format:
|
236877
|
-
if (!
|
236876
|
+
function extract2(value_, { format: format3 }) {
|
236877
|
+
if (!format3)
|
236878
236878
|
return {};
|
236879
236879
|
const value5 = {};
|
236880
236880
|
function extract_(formatted2) {
|
@@ -236886,18 +236886,18 @@ function extract2(value_, { format: format2 }) {
|
|
236886
236886
|
extract_(formatted2[key2]);
|
236887
236887
|
}
|
236888
236888
|
}
|
236889
|
-
const formatted =
|
236889
|
+
const formatted = format3(value_ || {});
|
236890
236890
|
extract_(formatted);
|
236891
236891
|
return value5;
|
236892
236892
|
}
|
236893
236893
|
|
236894
236894
|
// ../../node_modules/.bun/viem@2.34.0+f2e3f0548df57a15/node_modules/viem/_esm/utils/formatters/formatter.js
|
236895
|
-
function defineFormatter(type5,
|
236895
|
+
function defineFormatter(type5, format3) {
|
236896
236896
|
return ({ exclude, format: overrides }) => {
|
236897
236897
|
return {
|
236898
236898
|
exclude,
|
236899
236899
|
format: (args) => {
|
236900
|
-
const formatted =
|
236900
|
+
const formatted = format3(args);
|
236901
236901
|
if (exclude) {
|
236902
236902
|
for (const key2 of exclude) {
|
236903
236903
|
delete formatted[key2];
|
@@ -238494,8 +238494,8 @@ async function call(client, args) {
|
|
238494
238494
|
const rpcBlockOverrides = blockOverrides ? toRpc2(blockOverrides) : undefined;
|
238495
238495
|
const rpcStateOverride = serializeStateOverride(stateOverride);
|
238496
238496
|
const chainFormat = client.chain?.formatters?.transactionRequest?.format;
|
238497
|
-
const
|
238498
|
-
const request2 =
|
238497
|
+
const format3 = chainFormat || formatTransactionRequest;
|
238498
|
+
const request2 = format3({
|
238499
238499
|
...extract2(rest, { format: chainFormat }),
|
238500
238500
|
from: account?.address,
|
238501
238501
|
accessList,
|
@@ -240862,14 +240862,14 @@ var require_bool = __commonJS((exports) => {
|
|
240862
240862
|
|
240863
240863
|
// ../../node_modules/.bun/yaml@2.8.1/node_modules/yaml/dist/stringify/stringifyNumber.js
|
240864
240864
|
var require_stringifyNumber = __commonJS((exports) => {
|
240865
|
-
function stringifyNumber({ format:
|
240865
|
+
function stringifyNumber({ format: format4, minFractionDigits, tag, value: value5 }) {
|
240866
240866
|
if (typeof value5 === "bigint")
|
240867
240867
|
return String(value5);
|
240868
240868
|
const num2 = typeof value5 === "number" ? value5 : Number(value5);
|
240869
240869
|
if (!isFinite(num2))
|
240870
240870
|
return isNaN(num2) ? ".nan" : num2 < 0 ? "-.inf" : ".inf";
|
240871
240871
|
let n8 = JSON.stringify(value5);
|
240872
|
-
if (!
|
240872
|
+
if (!format4 && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^\d/.test(n8)) {
|
240873
240873
|
let i8 = n8.indexOf(".");
|
240874
240874
|
if (i8 < 0) {
|
240875
240875
|
i8 = n8.length;
|
@@ -246633,51 +246633,7 @@ class Separator {
|
|
246633
246633
|
return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
|
246634
246634
|
}
|
246635
246635
|
}
|
246636
|
-
// ../../node_modules/.bun/yoctocolors@2.1.
|
246637
|
-
var exports_base = {};
|
246638
|
-
__export(exports_base, {
|
246639
|
-
yellowBright: () => yellowBright,
|
246640
|
-
yellow: () => yellow,
|
246641
|
-
whiteBright: () => whiteBright,
|
246642
|
-
white: () => white,
|
246643
|
-
underline: () => underline,
|
246644
|
-
strikethrough: () => strikethrough,
|
246645
|
-
reset: () => reset,
|
246646
|
-
redBright: () => redBright,
|
246647
|
-
red: () => red,
|
246648
|
-
overline: () => overline,
|
246649
|
-
magentaBright: () => magentaBright,
|
246650
|
-
magenta: () => magenta,
|
246651
|
-
italic: () => italic,
|
246652
|
-
inverse: () => inverse,
|
246653
|
-
hidden: () => hidden,
|
246654
|
-
greenBright: () => greenBright,
|
246655
|
-
green: () => green,
|
246656
|
-
gray: () => gray,
|
246657
|
-
dim: () => dim,
|
246658
|
-
cyanBright: () => cyanBright,
|
246659
|
-
cyan: () => cyan,
|
246660
|
-
bold: () => bold,
|
246661
|
-
blueBright: () => blueBright,
|
246662
|
-
blue: () => blue,
|
246663
|
-
black: () => black,
|
246664
|
-
bgYellowBright: () => bgYellowBright,
|
246665
|
-
bgYellow: () => bgYellow,
|
246666
|
-
bgWhiteBright: () => bgWhiteBright,
|
246667
|
-
bgWhite: () => bgWhite,
|
246668
|
-
bgRedBright: () => bgRedBright,
|
246669
|
-
bgRed: () => bgRed,
|
246670
|
-
bgMagentaBright: () => bgMagentaBright,
|
246671
|
-
bgMagenta: () => bgMagenta,
|
246672
|
-
bgGreenBright: () => bgGreenBright,
|
246673
|
-
bgGreen: () => bgGreen,
|
246674
|
-
bgGray: () => bgGray,
|
246675
|
-
bgCyanBright: () => bgCyanBright,
|
246676
|
-
bgCyan: () => bgCyan,
|
246677
|
-
bgBlueBright: () => bgBlueBright,
|
246678
|
-
bgBlue: () => bgBlue,
|
246679
|
-
bgBlack: () => bgBlack
|
246680
|
-
});
|
246636
|
+
// ../../node_modules/.bun/yoctocolors@2.1.2/node_modules/yoctocolors/base.js
|
246681
246637
|
import tty from "node:tty";
|
246682
246638
|
var hasColors = tty?.WriteStream?.prototype?.hasColors?.() ?? false;
|
246683
246639
|
var format = (open, close) => {
|
@@ -246694,8 +246650,10 @@ var format = (open, close) => {
|
|
246694
246650
|
}
|
246695
246651
|
let result = openCode;
|
246696
246652
|
let lastIndex = 0;
|
246653
|
+
const reopenOnNestedClose = close === 22;
|
246654
|
+
const replaceCode = (reopenOnNestedClose ? closeCode : "") + openCode;
|
246697
246655
|
while (index !== -1) {
|
246698
|
-
result += string.slice(lastIndex, index) +
|
246656
|
+
result += string.slice(lastIndex, index) + replaceCode;
|
246699
246657
|
lastIndex = index + closeCode.length;
|
246700
246658
|
index = string.indexOf(closeCode, lastIndex);
|
246701
246659
|
}
|
@@ -246744,6 +246702,7 @@ var bgBlueBright = format(104, 49);
|
|
246744
246702
|
var bgMagentaBright = format(105, 49);
|
246745
246703
|
var bgCyanBright = format(106, 49);
|
246746
246704
|
var bgWhiteBright = format(107, 49);
|
246705
|
+
|
246747
246706
|
// ../utils/dist/terminal.js
|
246748
246707
|
import { spawn } from "node:child_process";
|
246749
246708
|
|
@@ -246756,6 +246715,119 @@ var is_in_ci_default = isInCi;
|
|
246756
246715
|
// ../../node_modules/.bun/yocto-spinner@1.0.0/node_modules/yocto-spinner/index.js
|
246757
246716
|
import process4 from "node:process";
|
246758
246717
|
import { stripVTControlCharacters as stripVTControlCharacters2 } from "node:util";
|
246718
|
+
|
246719
|
+
// ../../node_modules/.bun/yoctocolors@2.1.1/node_modules/yoctocolors/base.js
|
246720
|
+
var exports_base = {};
|
246721
|
+
__export(exports_base, {
|
246722
|
+
yellowBright: () => yellowBright2,
|
246723
|
+
yellow: () => yellow2,
|
246724
|
+
whiteBright: () => whiteBright2,
|
246725
|
+
white: () => white2,
|
246726
|
+
underline: () => underline2,
|
246727
|
+
strikethrough: () => strikethrough2,
|
246728
|
+
reset: () => reset2,
|
246729
|
+
redBright: () => redBright2,
|
246730
|
+
red: () => red2,
|
246731
|
+
overline: () => overline2,
|
246732
|
+
magentaBright: () => magentaBright2,
|
246733
|
+
magenta: () => magenta2,
|
246734
|
+
italic: () => italic2,
|
246735
|
+
inverse: () => inverse2,
|
246736
|
+
hidden: () => hidden2,
|
246737
|
+
greenBright: () => greenBright2,
|
246738
|
+
green: () => green2,
|
246739
|
+
gray: () => gray2,
|
246740
|
+
dim: () => dim2,
|
246741
|
+
cyanBright: () => cyanBright2,
|
246742
|
+
cyan: () => cyan2,
|
246743
|
+
bold: () => bold2,
|
246744
|
+
blueBright: () => blueBright2,
|
246745
|
+
blue: () => blue2,
|
246746
|
+
black: () => black2,
|
246747
|
+
bgYellowBright: () => bgYellowBright2,
|
246748
|
+
bgYellow: () => bgYellow2,
|
246749
|
+
bgWhiteBright: () => bgWhiteBright2,
|
246750
|
+
bgWhite: () => bgWhite2,
|
246751
|
+
bgRedBright: () => bgRedBright2,
|
246752
|
+
bgRed: () => bgRed2,
|
246753
|
+
bgMagentaBright: () => bgMagentaBright2,
|
246754
|
+
bgMagenta: () => bgMagenta2,
|
246755
|
+
bgGreenBright: () => bgGreenBright2,
|
246756
|
+
bgGreen: () => bgGreen2,
|
246757
|
+
bgGray: () => bgGray2,
|
246758
|
+
bgCyanBright: () => bgCyanBright2,
|
246759
|
+
bgCyan: () => bgCyan2,
|
246760
|
+
bgBlueBright: () => bgBlueBright2,
|
246761
|
+
bgBlue: () => bgBlue2,
|
246762
|
+
bgBlack: () => bgBlack2
|
246763
|
+
});
|
246764
|
+
import tty2 from "node:tty";
|
246765
|
+
var hasColors2 = tty2?.WriteStream?.prototype?.hasColors?.() ?? false;
|
246766
|
+
var format2 = (open, close) => {
|
246767
|
+
if (!hasColors2) {
|
246768
|
+
return (input) => input;
|
246769
|
+
}
|
246770
|
+
const openCode = `\x1B[${open}m`;
|
246771
|
+
const closeCode = `\x1B[${close}m`;
|
246772
|
+
return (input) => {
|
246773
|
+
const string = input + "";
|
246774
|
+
let index = string.indexOf(closeCode);
|
246775
|
+
if (index === -1) {
|
246776
|
+
return openCode + string + closeCode;
|
246777
|
+
}
|
246778
|
+
let result = openCode;
|
246779
|
+
let lastIndex = 0;
|
246780
|
+
while (index !== -1) {
|
246781
|
+
result += string.slice(lastIndex, index) + openCode;
|
246782
|
+
lastIndex = index + closeCode.length;
|
246783
|
+
index = string.indexOf(closeCode, lastIndex);
|
246784
|
+
}
|
246785
|
+
result += string.slice(lastIndex) + closeCode;
|
246786
|
+
return result;
|
246787
|
+
};
|
246788
|
+
};
|
246789
|
+
var reset2 = format2(0, 0);
|
246790
|
+
var bold2 = format2(1, 22);
|
246791
|
+
var dim2 = format2(2, 22);
|
246792
|
+
var italic2 = format2(3, 23);
|
246793
|
+
var underline2 = format2(4, 24);
|
246794
|
+
var overline2 = format2(53, 55);
|
246795
|
+
var inverse2 = format2(7, 27);
|
246796
|
+
var hidden2 = format2(8, 28);
|
246797
|
+
var strikethrough2 = format2(9, 29);
|
246798
|
+
var black2 = format2(30, 39);
|
246799
|
+
var red2 = format2(31, 39);
|
246800
|
+
var green2 = format2(32, 39);
|
246801
|
+
var yellow2 = format2(33, 39);
|
246802
|
+
var blue2 = format2(34, 39);
|
246803
|
+
var magenta2 = format2(35, 39);
|
246804
|
+
var cyan2 = format2(36, 39);
|
246805
|
+
var white2 = format2(37, 39);
|
246806
|
+
var gray2 = format2(90, 39);
|
246807
|
+
var bgBlack2 = format2(40, 49);
|
246808
|
+
var bgRed2 = format2(41, 49);
|
246809
|
+
var bgGreen2 = format2(42, 49);
|
246810
|
+
var bgYellow2 = format2(43, 49);
|
246811
|
+
var bgBlue2 = format2(44, 49);
|
246812
|
+
var bgMagenta2 = format2(45, 49);
|
246813
|
+
var bgCyan2 = format2(46, 49);
|
246814
|
+
var bgWhite2 = format2(47, 49);
|
246815
|
+
var bgGray2 = format2(100, 49);
|
246816
|
+
var redBright2 = format2(91, 39);
|
246817
|
+
var greenBright2 = format2(92, 39);
|
246818
|
+
var yellowBright2 = format2(93, 39);
|
246819
|
+
var blueBright2 = format2(94, 39);
|
246820
|
+
var magentaBright2 = format2(95, 39);
|
246821
|
+
var cyanBright2 = format2(96, 39);
|
246822
|
+
var whiteBright2 = format2(97, 39);
|
246823
|
+
var bgRedBright2 = format2(101, 49);
|
246824
|
+
var bgGreenBright2 = format2(102, 49);
|
246825
|
+
var bgYellowBright2 = format2(103, 49);
|
246826
|
+
var bgBlueBright2 = format2(104, 49);
|
246827
|
+
var bgMagentaBright2 = format2(105, 49);
|
246828
|
+
var bgCyanBright2 = format2(106, 49);
|
246829
|
+
var bgWhiteBright2 = format2(107, 49);
|
246830
|
+
// ../../node_modules/.bun/yocto-spinner@1.0.0/node_modules/yocto-spinner/index.js
|
246759
246831
|
var isUnicodeSupported2 = process4.platform !== "win32" || Boolean(process4.env.WT_SESSION) || process4.env.TERM_PROGRAM === "vscode";
|
246760
246832
|
var isInteractive = (stream) => Boolean(stream.isTTY && process4.env.TERM !== "dumb" && !("CI" in process4.env));
|
246761
246833
|
var infoSymbol = exports_base.blue(isUnicodeSupported2 ? "ℹ" : "i");
|
@@ -256719,13 +256791,13 @@ function _stringbool(Classes, _params) {
|
|
256719
256791
|
});
|
256720
256792
|
return outerPipe;
|
256721
256793
|
}
|
256722
|
-
function _stringFormat(Class2,
|
256794
|
+
function _stringFormat(Class2, format3, fnOrRegex, _params = {}) {
|
256723
256795
|
const params = normalizeParams(_params);
|
256724
256796
|
const def = {
|
256725
256797
|
...normalizeParams(_params),
|
256726
256798
|
check: "string_format",
|
256727
256799
|
type: "string",
|
256728
|
-
format:
|
256800
|
+
format: format3,
|
256729
256801
|
fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val),
|
256730
256802
|
...params
|
256731
256803
|
};
|
@@ -256857,13 +256929,13 @@ class JSONSchemaGenerator {
|
|
256857
256929
|
case "string": {
|
256858
256930
|
const json = _json;
|
256859
256931
|
json.type = "string";
|
256860
|
-
const { minimum, maximum, format:
|
256932
|
+
const { minimum, maximum, format: format3, patterns, contentEncoding } = schema._zod.bag;
|
256861
256933
|
if (typeof minimum === "number")
|
256862
256934
|
json.minLength = minimum;
|
256863
256935
|
if (typeof maximum === "number")
|
256864
256936
|
json.maxLength = maximum;
|
256865
|
-
if (
|
256866
|
-
json.format = formatMap[
|
256937
|
+
if (format3) {
|
256938
|
+
json.format = formatMap[format3] ?? format3;
|
256867
256939
|
if (json.format === "")
|
256868
256940
|
delete json.format;
|
256869
256941
|
}
|
@@ -256886,8 +256958,8 @@ class JSONSchemaGenerator {
|
|
256886
256958
|
}
|
256887
256959
|
case "number": {
|
256888
256960
|
const json = _json;
|
256889
|
-
const { minimum, maximum, format:
|
256890
|
-
if (typeof
|
256961
|
+
const { minimum, maximum, format: format3, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
|
256962
|
+
if (typeof format3 === "string" && format3.includes("int"))
|
256891
256963
|
json.type = "integer";
|
256892
256964
|
else
|
256893
256965
|
json.type = "number";
|
@@ -257934,8 +258006,8 @@ var ZodCustomStringFormat = /* @__PURE__ */ $constructor("ZodCustomStringFormat"
|
|
257934
258006
|
$ZodCustomStringFormat.init(inst, def);
|
257935
258007
|
ZodStringFormat.init(inst, def);
|
257936
258008
|
});
|
257937
|
-
function stringFormat(
|
257938
|
-
return _stringFormat(ZodCustomStringFormat,
|
258009
|
+
function stringFormat(format3, fnOrRegex, _params = {}) {
|
258010
|
+
return _stringFormat(ZodCustomStringFormat, format3, fnOrRegex, _params);
|
257939
258011
|
}
|
257940
258012
|
function hostname2(_params) {
|
257941
258013
|
return _stringFormat(ZodCustomStringFormat, "hostname", exports_regexes.hostname, _params);
|
@@ -264873,7 +264945,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
264873
264945
|
var package_default = {
|
264874
264946
|
name: "@settlemint/sdk-cli",
|
264875
264947
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
264876
|
-
version: "2.5.
|
264948
|
+
version: "2.5.13-pr393954e8",
|
264877
264949
|
type: "module",
|
264878
264950
|
private: false,
|
264879
264951
|
license: "FSL-1.1-MIT",
|
@@ -264927,10 +264999,10 @@ var package_default = {
|
|
264927
264999
|
"@inquirer/input": "4.2.1",
|
264928
265000
|
"@inquirer/password": "4.0.17",
|
264929
265001
|
"@inquirer/select": "4.3.1",
|
264930
|
-
"@settlemint/sdk-hasura": "2.5.
|
264931
|
-
"@settlemint/sdk-js": "2.5.
|
264932
|
-
"@settlemint/sdk-utils": "2.5.
|
264933
|
-
"@settlemint/sdk-viem": "2.5.
|
265002
|
+
"@settlemint/sdk-hasura": "2.5.13-pr393954e8",
|
265003
|
+
"@settlemint/sdk-js": "2.5.13-pr393954e8",
|
265004
|
+
"@settlemint/sdk-utils": "2.5.13-pr393954e8",
|
265005
|
+
"@settlemint/sdk-viem": "2.5.13-pr393954e8",
|
264934
265006
|
"@types/node": "24.3.0",
|
264935
265007
|
"@types/semver": "7.7.0",
|
264936
265008
|
"@types/which": "3.0.4",
|
@@ -264942,12 +265014,12 @@ var package_default = {
|
|
264942
265014
|
viem: "2.34.0",
|
264943
265015
|
which: "5.0.0",
|
264944
265016
|
yaml: "2.8.1",
|
264945
|
-
yoctocolors: "2.1.
|
265017
|
+
yoctocolors: "2.1.2",
|
264946
265018
|
"yocto-spinner": "^1.0.0"
|
264947
265019
|
},
|
264948
265020
|
peerDependencies: {
|
264949
265021
|
hardhat: "<= 4",
|
264950
|
-
"@settlemint/sdk-js": "2.5.
|
265022
|
+
"@settlemint/sdk-js": "2.5.13-pr393954e8"
|
264951
265023
|
},
|
264952
265024
|
peerDependenciesMeta: {
|
264953
265025
|
hardhat: {
|
@@ -271967,8 +272039,8 @@ async function getBlock(client, { blockHash, blockNumber, blockTag = client.expe
|
|
271967
272039
|
}
|
271968
272040
|
if (!block)
|
271969
272041
|
throw new BlockNotFoundError({ blockHash, blockNumber });
|
271970
|
-
const
|
271971
|
-
return
|
272042
|
+
const format3 = client.chain?.formatters?.block?.format || formatBlock;
|
272043
|
+
return format3(block);
|
271972
272044
|
}
|
271973
272045
|
|
271974
272046
|
// ../../node_modules/.bun/viem@2.34.0+f2e3f0548df57a15/node_modules/viem/_esm/actions/public/getGasPrice.js
|
@@ -272466,8 +272538,8 @@ async function estimateGas(client, args) {
|
|
272466
272538
|
})();
|
272467
272539
|
assertRequest(args);
|
272468
272540
|
const chainFormat = client.chain?.formatters?.transactionRequest?.format;
|
272469
|
-
const
|
272470
|
-
const request2 =
|
272541
|
+
const format3 = chainFormat || formatTransactionRequest;
|
272542
|
+
const request2 = format3({
|
272471
272543
|
...extract2(rest, { format: chainFormat }),
|
272472
272544
|
from: account?.address,
|
272473
272545
|
accessList,
|
@@ -274284,8 +274356,8 @@ async function createAccessList(client, args) {
|
|
274284
274356
|
const blockNumberHex = typeof blockNumber === "bigint" ? numberToHex(blockNumber) : undefined;
|
274285
274357
|
const block = blockNumberHex || blockTag;
|
274286
274358
|
const chainFormat = client.chain?.formatters?.transactionRequest?.format;
|
274287
|
-
const
|
274288
|
-
const request2 =
|
274359
|
+
const format3 = chainFormat || formatTransactionRequest;
|
274360
|
+
const request2 = format3({
|
274289
274361
|
...extract2(rest, { format: chainFormat }),
|
274290
274362
|
from: account?.address,
|
274291
274363
|
blobs,
|
@@ -275206,8 +275278,8 @@ async function getTransaction(client, { blockHash, blockNumber, blockTag: blockT
|
|
275206
275278
|
hash: hash2,
|
275207
275279
|
index: index2
|
275208
275280
|
});
|
275209
|
-
const
|
275210
|
-
return
|
275281
|
+
const format3 = client.chain?.formatters?.transaction?.format || formatTransaction;
|
275282
|
+
return format3(transaction);
|
275211
275283
|
}
|
275212
275284
|
|
275213
275285
|
// ../../node_modules/.bun/viem@2.34.0+f2e3f0548df57a15/node_modules/viem/_esm/actions/public/getTransactionConfirmations.js
|
@@ -275231,8 +275303,8 @@ async function getTransactionReceipt(client, { hash: hash2 }) {
|
|
275231
275303
|
}, { dedupe: true });
|
275232
275304
|
if (!receipt)
|
275233
275305
|
throw new TransactionReceiptNotFoundError({ hash: hash2 });
|
275234
|
-
const
|
275235
|
-
return
|
275306
|
+
const format3 = client.chain?.formatters?.transactionReceipt?.format || formatTransactionReceipt;
|
275307
|
+
return format3(receipt);
|
275236
275308
|
}
|
275237
275309
|
|
275238
275310
|
// ../../node_modules/.bun/viem@2.34.0+f2e3f0548df57a15/node_modules/viem/_esm/actions/public/multicall.js
|
@@ -286033,8 +286105,8 @@ async function estimateGas2(client, args) {
|
|
286033
286105
|
const block = blockNumberHex || blockTag;
|
286034
286106
|
assertRequest(args);
|
286035
286107
|
const chainFormat = client.chain?.formatters?.transactionRequest?.format;
|
286036
|
-
const
|
286037
|
-
const request2 =
|
286108
|
+
const format3 = chainFormat || formatTransactionRequest;
|
286109
|
+
const request2 = format3({
|
286038
286110
|
...extract2(rest, { format: chainFormat }),
|
286039
286111
|
from: account?.address,
|
286040
286112
|
accessList,
|
@@ -303031,7 +303103,7 @@ function hardhatDeployLocalCommand() {
|
|
303031
303103
|
description: "Deploy and verify contracts on Etherscan",
|
303032
303104
|
command: "scs hardhat deploy local --verify"
|
303033
303105
|
}
|
303034
|
-
])).option("-m, --module <ignitionmodule>", 'The module to deploy with Ignition, defaults to "ignition/modules/main.ts"').option("--deployment-id <deploymentId>", "Set the id of the deployment").option("-r, --reset", "Wipes the existing deployment state before deploying").option("-v, --verify", "Verify the deployment on Etherscan").action(async ({ module, reset:
|
303106
|
+
])).option("-m, --module <ignitionmodule>", 'The module to deploy with Ignition, defaults to "ignition/modules/main.ts"').option("--deployment-id <deploymentId>", "Set the id of the deployment").option("-r, --reset", "Wipes the existing deployment state before deploying").option("-v, --verify", "Verify the deployment on Etherscan").action(async ({ module, reset: reset3, verify, deploymentId }) => {
|
303035
303107
|
intro("Deploying smart contracts to local network using Hardhat/Ignition");
|
303036
303108
|
await validateIfRequiredPackagesAreInstalled(["hardhat"]);
|
303037
303109
|
const { command, args } = await getPackageManagerExecutable();
|
@@ -303040,7 +303112,7 @@ function hardhatDeployLocalCommand() {
|
|
303040
303112
|
"hardhat",
|
303041
303113
|
"ignition",
|
303042
303114
|
"deploy",
|
303043
|
-
...
|
303115
|
+
...reset3 ? ["--reset"] : [],
|
303044
303116
|
...verify ? ["--verify"] : [],
|
303045
303117
|
...deploymentId ? ["--deployment-id", deploymentId] : [],
|
303046
303118
|
"--network",
|
@@ -303226,7 +303298,7 @@ function hardhatDeployRemoteCommand() {
|
|
303226
303298
|
])).option("-m, --module <ignitionmodule>", 'The module to deploy with Ignition, defaults to "ignition/modules/main.ts"').option("--deployment-id <deploymentId>", "Set the id of the deployment").option("-r, --reset", "Wipes the existing deployment state before deploying").option("-v, --verify", "Verify the deployment on Etherscan").option("--default-sender <defaultSender>", "Set the default sender for the deployment").option("--parameters <parameters>", "A relative path to a JSON file to use for the module parameters").option("--strategy <strategy>", `Set the deployment strategy to use (default: "basic")`).option("--blockchain-node <blockchainNode>", "Blockchain Node unique name (optional, defaults to the blockchain node in the environment)").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values");
|
303227
303299
|
cmd2.action(async ({
|
303228
303300
|
module,
|
303229
|
-
reset:
|
303301
|
+
reset: reset3,
|
303230
303302
|
verify,
|
303231
303303
|
deploymentId,
|
303232
303304
|
defaultSender,
|
@@ -303279,7 +303351,7 @@ function hardhatDeployRemoteCommand() {
|
|
303279
303351
|
"hardhat",
|
303280
303352
|
"ignition",
|
303281
303353
|
"deploy",
|
303282
|
-
...
|
303354
|
+
...reset3 ? ["--reset"] : [],
|
303283
303355
|
...verify ? ["--verify"] : [],
|
303284
303356
|
...deploymentId ? ["--deployment-id", deploymentId] : [],
|
303285
303357
|
...parameters ? ["--parameters", parameters] : [],
|
@@ -304106,4 +304178,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
304106
304178
|
// src/cli.ts
|
304107
304179
|
sdkCliCommand();
|
304108
304180
|
|
304109
|
-
//# debugId=
|
304181
|
+
//# debugId=B6E3045F3C30FBC764756E2164756E21
|