@ledgerhq/live-cli 24.21.3-nightly.0 → 24.21.3-nightly.1
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/lib/cli.js +1297 -749
- package/package.json +2 -2
package/lib/cli.js
CHANGED
|
@@ -12131,7 +12131,7 @@ var require_form_data = __commonJS({
|
|
|
12131
12131
|
var parseUrl = require("url").parse;
|
|
12132
12132
|
var fs15 = require("fs");
|
|
12133
12133
|
var Stream5 = require("stream").Stream;
|
|
12134
|
-
var
|
|
12134
|
+
var crypto38 = require("crypto");
|
|
12135
12135
|
var mime = require_mime_types();
|
|
12136
12136
|
var asynckit = require_asynckit();
|
|
12137
12137
|
var setToStringTag = require_es_set_tostringtag();
|
|
@@ -12337,7 +12337,7 @@ var require_form_data = __commonJS({
|
|
|
12337
12337
|
return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
|
|
12338
12338
|
};
|
|
12339
12339
|
FormData6.prototype._generateBoundary = function() {
|
|
12340
|
-
this._boundary = "--------------------------" +
|
|
12340
|
+
this._boundary = "--------------------------" + crypto38.randomBytes(12).toString("hex");
|
|
12341
12341
|
};
|
|
12342
12342
|
FormData6.prototype.getLengthSync = function() {
|
|
12343
12343
|
var knownLength = this._overheadLength + this._valueLength;
|
|
@@ -12508,9 +12508,9 @@ var require_proxy_from_env = __commonJS({
|
|
|
12508
12508
|
}
|
|
12509
12509
|
});
|
|
12510
12510
|
|
|
12511
|
-
// ../../node_modules/.pnpm/follow-redirects@1.15.
|
|
12511
|
+
// ../../node_modules/.pnpm/follow-redirects@1.15.6/node_modules/follow-redirects/debug.js
|
|
12512
12512
|
var require_debug = __commonJS({
|
|
12513
|
-
"../../node_modules/.pnpm/follow-redirects@1.15.
|
|
12513
|
+
"../../node_modules/.pnpm/follow-redirects@1.15.6/node_modules/follow-redirects/debug.js"(exports2, module2) {
|
|
12514
12514
|
"use strict";
|
|
12515
12515
|
var debug;
|
|
12516
12516
|
module2.exports = function() {
|
|
@@ -12529,9 +12529,9 @@ var require_debug = __commonJS({
|
|
|
12529
12529
|
}
|
|
12530
12530
|
});
|
|
12531
12531
|
|
|
12532
|
-
// ../../node_modules/.pnpm/follow-redirects@1.15.
|
|
12532
|
+
// ../../node_modules/.pnpm/follow-redirects@1.15.6/node_modules/follow-redirects/index.js
|
|
12533
12533
|
var require_follow_redirects = __commonJS({
|
|
12534
|
-
"../../node_modules/.pnpm/follow-redirects@1.15.
|
|
12534
|
+
"../../node_modules/.pnpm/follow-redirects@1.15.6/node_modules/follow-redirects/index.js"(exports2, module2) {
|
|
12535
12535
|
"use strict";
|
|
12536
12536
|
var url4 = require("url");
|
|
12537
12537
|
var URL12 = url4.URL;
|
|
@@ -12540,17 +12540,9 @@ var require_follow_redirects = __commonJS({
|
|
|
12540
12540
|
var Writable = require("stream").Writable;
|
|
12541
12541
|
var assert10 = require("assert");
|
|
12542
12542
|
var debug = require_debug();
|
|
12543
|
-
(function detectUnsupportedEnvironment() {
|
|
12544
|
-
var looksLikeNode = typeof process !== "undefined";
|
|
12545
|
-
var looksLikeBrowser = typeof window !== "undefined" && typeof document !== "undefined";
|
|
12546
|
-
var looksLikeV8 = isFunction5(Error.captureStackTrace);
|
|
12547
|
-
if (!looksLikeNode && (looksLikeBrowser || !looksLikeV8)) {
|
|
12548
|
-
console.warn("The follow-redirects package should be excluded from browser builds.");
|
|
12549
|
-
}
|
|
12550
|
-
})();
|
|
12551
12543
|
var useNativeURL = false;
|
|
12552
12544
|
try {
|
|
12553
|
-
assert10(new URL12(
|
|
12545
|
+
assert10(new URL12());
|
|
12554
12546
|
} catch (error) {
|
|
12555
12547
|
useNativeURL = error.code === "ERR_INVALID_URL";
|
|
12556
12548
|
}
|
|
@@ -12977,9 +12969,7 @@ var require_follow_redirects = __commonJS({
|
|
|
12977
12969
|
}
|
|
12978
12970
|
function createErrorType(code, message2, baseClass) {
|
|
12979
12971
|
function CustomError(properties) {
|
|
12980
|
-
|
|
12981
|
-
Error.captureStackTrace(this, this.constructor);
|
|
12982
|
-
}
|
|
12972
|
+
Error.captureStackTrace(this, this.constructor);
|
|
12983
12973
|
Object.assign(this, properties || {});
|
|
12984
12974
|
this.code = code;
|
|
12985
12975
|
this.message = this.cause ? message2 + ": " + this.cause.message : message2;
|
|
@@ -27232,23 +27222,23 @@ var require_nacl_fast = __commonJS({
|
|
|
27232
27222
|
randombytes = fn3;
|
|
27233
27223
|
};
|
|
27234
27224
|
(function() {
|
|
27235
|
-
var
|
|
27236
|
-
if (
|
|
27225
|
+
var crypto38 = typeof self !== "undefined" ? self.crypto || self.msCrypto : null;
|
|
27226
|
+
if (crypto38 && crypto38.getRandomValues) {
|
|
27237
27227
|
var QUOTA = 65536;
|
|
27238
27228
|
nacl7.setPRNG(function(x20, n112) {
|
|
27239
27229
|
var i56, v31 = new Uint8Array(n112);
|
|
27240
27230
|
for (i56 = 0; i56 < n112; i56 += QUOTA) {
|
|
27241
|
-
|
|
27231
|
+
crypto38.getRandomValues(v31.subarray(i56, i56 + Math.min(n112 - i56, QUOTA)));
|
|
27242
27232
|
}
|
|
27243
27233
|
for (i56 = 0; i56 < n112; i56++)
|
|
27244
27234
|
x20[i56] = v31[i56];
|
|
27245
27235
|
cleanup(v31);
|
|
27246
27236
|
});
|
|
27247
27237
|
} else if (typeof require !== "undefined") {
|
|
27248
|
-
|
|
27249
|
-
if (
|
|
27238
|
+
crypto38 = require("crypto");
|
|
27239
|
+
if (crypto38 && crypto38.randomBytes) {
|
|
27250
27240
|
nacl7.setPRNG(function(x20, n112) {
|
|
27251
|
-
var i56, v31 =
|
|
27241
|
+
var i56, v31 = crypto38.randomBytes(n112);
|
|
27252
27242
|
for (i56 = 0; i56 < n112; i56++)
|
|
27253
27243
|
x20[i56] = v31[i56];
|
|
27254
27244
|
cleanup(v31);
|
|
@@ -49151,9 +49141,9 @@ var require_methods = __commonJS({
|
|
|
49151
49141
|
}
|
|
49152
49142
|
});
|
|
49153
49143
|
|
|
49154
|
-
// ../../node_modules/.pnpm/form-data@3.0.
|
|
49144
|
+
// ../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/lib/populate.js
|
|
49155
49145
|
var require_populate2 = __commonJS({
|
|
49156
|
-
"../../node_modules/.pnpm/form-data@3.0.
|
|
49146
|
+
"../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/lib/populate.js"(exports2, module2) {
|
|
49157
49147
|
"use strict";
|
|
49158
49148
|
module2.exports = function(dst, src2) {
|
|
49159
49149
|
Object.keys(src2).forEach(function(prop) {
|
|
@@ -49164,9 +49154,9 @@ var require_populate2 = __commonJS({
|
|
|
49164
49154
|
}
|
|
49165
49155
|
});
|
|
49166
49156
|
|
|
49167
|
-
// ../../node_modules/.pnpm/form-data@3.0.
|
|
49157
|
+
// ../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/lib/form_data.js
|
|
49168
49158
|
var require_form_data2 = __commonJS({
|
|
49169
|
-
"../../node_modules/.pnpm/form-data@3.0.
|
|
49159
|
+
"../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/lib/form_data.js"(exports2, module2) {
|
|
49170
49160
|
"use strict";
|
|
49171
49161
|
var CombinedStream = require_combined_stream();
|
|
49172
49162
|
var util11 = require("util");
|
|
@@ -49175,12 +49165,11 @@ var require_form_data2 = __commonJS({
|
|
|
49175
49165
|
var https7 = require("https");
|
|
49176
49166
|
var parseUrl = require("url").parse;
|
|
49177
49167
|
var fs15 = require("fs");
|
|
49178
|
-
var crypto37 = require("crypto");
|
|
49179
49168
|
var mime = require_mime_types();
|
|
49180
49169
|
var asynckit = require_asynckit();
|
|
49181
|
-
var setToStringTag = require_es_set_tostringtag();
|
|
49182
|
-
var hasOwn2 = require_hasown();
|
|
49183
49170
|
var populate3 = require_populate2();
|
|
49171
|
+
module2.exports = FormData6;
|
|
49172
|
+
util11.inherits(FormData6, CombinedStream);
|
|
49184
49173
|
function FormData6(options23) {
|
|
49185
49174
|
if (!(this instanceof FormData6)) {
|
|
49186
49175
|
return new FormData6(options23);
|
|
@@ -49194,19 +49183,18 @@ var require_form_data2 = __commonJS({
|
|
|
49194
49183
|
this[option2] = options23[option2];
|
|
49195
49184
|
}
|
|
49196
49185
|
}
|
|
49197
|
-
util11.inherits(FormData6, CombinedStream);
|
|
49198
49186
|
FormData6.LINE_BREAK = "\r\n";
|
|
49199
49187
|
FormData6.DEFAULT_CONTENT_TYPE = "application/octet-stream";
|
|
49200
49188
|
FormData6.prototype.append = function(field, value5, options23) {
|
|
49201
49189
|
options23 = options23 || {};
|
|
49202
|
-
if (typeof options23
|
|
49190
|
+
if (typeof options23 == "string") {
|
|
49203
49191
|
options23 = { filename: options23 };
|
|
49204
49192
|
}
|
|
49205
49193
|
var append3 = CombinedStream.prototype.append.bind(this);
|
|
49206
|
-
if (typeof value5
|
|
49207
|
-
value5 =
|
|
49194
|
+
if (typeof value5 == "number") {
|
|
49195
|
+
value5 = "" + value5;
|
|
49208
49196
|
}
|
|
49209
|
-
if (
|
|
49197
|
+
if (util11.isArray(value5)) {
|
|
49210
49198
|
this._error(new Error("Arrays are not supported."));
|
|
49211
49199
|
return;
|
|
49212
49200
|
}
|
|
@@ -49220,7 +49208,7 @@ var require_form_data2 = __commonJS({
|
|
|
49220
49208
|
FormData6.prototype._trackLength = function(header, value5, options23) {
|
|
49221
49209
|
var valueLength = 0;
|
|
49222
49210
|
if (options23.knownLength != null) {
|
|
49223
|
-
valueLength +=
|
|
49211
|
+
valueLength += +options23.knownLength;
|
|
49224
49212
|
} else if (Buffer.isBuffer(value5)) {
|
|
49225
49213
|
valueLength = value5.length;
|
|
49226
49214
|
} else if (typeof value5 === "string") {
|
|
@@ -49228,7 +49216,7 @@ var require_form_data2 = __commonJS({
|
|
|
49228
49216
|
}
|
|
49229
49217
|
this._valueLength += valueLength;
|
|
49230
49218
|
this._overheadLength += Buffer.byteLength(header) + FormData6.LINE_BREAK.length;
|
|
49231
|
-
if (!value5 || !value5.path && !(value5.readable &&
|
|
49219
|
+
if (!value5 || !value5.path && !(value5.readable && value5.hasOwnProperty("httpVersion"))) {
|
|
49232
49220
|
return;
|
|
49233
49221
|
}
|
|
49234
49222
|
if (!options23.knownLength) {
|
|
@@ -49236,8 +49224,8 @@ var require_form_data2 = __commonJS({
|
|
|
49236
49224
|
}
|
|
49237
49225
|
};
|
|
49238
49226
|
FormData6.prototype._lengthRetriever = function(value5, callback) {
|
|
49239
|
-
if (
|
|
49240
|
-
if (value5.end !=
|
|
49227
|
+
if (value5.hasOwnProperty("fd")) {
|
|
49228
|
+
if (value5.end != void 0 && value5.end != Infinity && value5.start != void 0) {
|
|
49241
49229
|
callback(null, value5.end + 1 - (value5.start ? value5.start : 0));
|
|
49242
49230
|
} else {
|
|
49243
49231
|
fs15.stat(value5.path, function(err, stat2) {
|
|
@@ -49250,12 +49238,12 @@ var require_form_data2 = __commonJS({
|
|
|
49250
49238
|
callback(null, fileSize);
|
|
49251
49239
|
});
|
|
49252
49240
|
}
|
|
49253
|
-
} else if (
|
|
49254
|
-
callback(null,
|
|
49255
|
-
} else if (
|
|
49241
|
+
} else if (value5.hasOwnProperty("httpVersion")) {
|
|
49242
|
+
callback(null, +value5.headers["content-length"]);
|
|
49243
|
+
} else if (value5.hasOwnProperty("httpModule")) {
|
|
49256
49244
|
value5.on("response", function(response) {
|
|
49257
49245
|
value5.pause();
|
|
49258
|
-
callback(null,
|
|
49246
|
+
callback(null, +response.headers["content-length"]);
|
|
49259
49247
|
});
|
|
49260
49248
|
value5.resume();
|
|
49261
49249
|
} else {
|
|
@@ -49263,7 +49251,7 @@ var require_form_data2 = __commonJS({
|
|
|
49263
49251
|
}
|
|
49264
49252
|
};
|
|
49265
49253
|
FormData6.prototype._multiPartHeader = function(field, value5, options23) {
|
|
49266
|
-
if (typeof options23.header
|
|
49254
|
+
if (typeof options23.header == "string") {
|
|
49267
49255
|
return options23.header;
|
|
49268
49256
|
}
|
|
49269
49257
|
var contentDisposition = this._getContentDisposition(value5, options23);
|
|
@@ -49275,22 +49263,22 @@ var require_form_data2 = __commonJS({
|
|
|
49275
49263
|
// if no content type. allow it to be empty array
|
|
49276
49264
|
"Content-Type": [].concat(contentType || [])
|
|
49277
49265
|
};
|
|
49278
|
-
if (typeof options23.header
|
|
49266
|
+
if (typeof options23.header == "object") {
|
|
49279
49267
|
populate3(headers, options23.header);
|
|
49280
49268
|
}
|
|
49281
49269
|
var header;
|
|
49282
49270
|
for (var prop in headers) {
|
|
49283
|
-
if (
|
|
49284
|
-
|
|
49285
|
-
|
|
49286
|
-
|
|
49287
|
-
|
|
49288
|
-
|
|
49289
|
-
|
|
49290
|
-
|
|
49291
|
-
|
|
49292
|
-
|
|
49293
|
-
|
|
49271
|
+
if (!headers.hasOwnProperty(prop))
|
|
49272
|
+
continue;
|
|
49273
|
+
header = headers[prop];
|
|
49274
|
+
if (header == null) {
|
|
49275
|
+
continue;
|
|
49276
|
+
}
|
|
49277
|
+
if (!Array.isArray(header)) {
|
|
49278
|
+
header = [header];
|
|
49279
|
+
}
|
|
49280
|
+
if (header.length) {
|
|
49281
|
+
contents += prop + ": " + header.join("; ") + FormData6.LINE_BREAK;
|
|
49294
49282
|
}
|
|
49295
49283
|
}
|
|
49296
49284
|
return "--" + this.getBoundary() + FormData6.LINE_BREAK + contents + FormData6.LINE_BREAK;
|
|
@@ -49299,9 +49287,9 @@ var require_form_data2 = __commonJS({
|
|
|
49299
49287
|
var filename, contentDisposition;
|
|
49300
49288
|
if (typeof options23.filepath === "string") {
|
|
49301
49289
|
filename = path4.normalize(options23.filepath).replace(/\\/g, "/");
|
|
49302
|
-
} else if (options23.filename || value5
|
|
49303
|
-
filename = path4.basename(options23.filename || value5
|
|
49304
|
-
} else if (value5 && value5.
|
|
49290
|
+
} else if (options23.filename || value5.name || value5.path) {
|
|
49291
|
+
filename = path4.basename(options23.filename || value5.name || value5.path);
|
|
49292
|
+
} else if (value5.readable && value5.hasOwnProperty("httpVersion")) {
|
|
49305
49293
|
filename = path4.basename(value5.client._httpMessage.path || "");
|
|
49306
49294
|
}
|
|
49307
49295
|
if (filename) {
|
|
@@ -49311,19 +49299,19 @@ var require_form_data2 = __commonJS({
|
|
|
49311
49299
|
};
|
|
49312
49300
|
FormData6.prototype._getContentType = function(value5, options23) {
|
|
49313
49301
|
var contentType = options23.contentType;
|
|
49314
|
-
if (!contentType && value5
|
|
49302
|
+
if (!contentType && value5.name) {
|
|
49315
49303
|
contentType = mime.lookup(value5.name);
|
|
49316
49304
|
}
|
|
49317
|
-
if (!contentType && value5
|
|
49305
|
+
if (!contentType && value5.path) {
|
|
49318
49306
|
contentType = mime.lookup(value5.path);
|
|
49319
49307
|
}
|
|
49320
|
-
if (!contentType && value5 && value5.
|
|
49308
|
+
if (!contentType && value5.readable && value5.hasOwnProperty("httpVersion")) {
|
|
49321
49309
|
contentType = value5.headers["content-type"];
|
|
49322
49310
|
}
|
|
49323
49311
|
if (!contentType && (options23.filepath || options23.filename)) {
|
|
49324
49312
|
contentType = mime.lookup(options23.filepath || options23.filename);
|
|
49325
49313
|
}
|
|
49326
|
-
if (!contentType &&
|
|
49314
|
+
if (!contentType && typeof value5 == "object") {
|
|
49327
49315
|
contentType = FormData6.DEFAULT_CONTENT_TYPE;
|
|
49328
49316
|
}
|
|
49329
49317
|
return contentType;
|
|
@@ -49347,16 +49335,13 @@ var require_form_data2 = __commonJS({
|
|
|
49347
49335
|
"content-type": "multipart/form-data; boundary=" + this.getBoundary()
|
|
49348
49336
|
};
|
|
49349
49337
|
for (header in userHeaders) {
|
|
49350
|
-
if (
|
|
49338
|
+
if (userHeaders.hasOwnProperty(header)) {
|
|
49351
49339
|
formHeaders[header.toLowerCase()] = userHeaders[header];
|
|
49352
49340
|
}
|
|
49353
49341
|
}
|
|
49354
49342
|
return formHeaders;
|
|
49355
49343
|
};
|
|
49356
49344
|
FormData6.prototype.setBoundary = function(boundary) {
|
|
49357
|
-
if (typeof boundary !== "string") {
|
|
49358
|
-
throw new TypeError("FormData boundary must be a string");
|
|
49359
|
-
}
|
|
49360
49345
|
this._boundary = boundary;
|
|
49361
49346
|
};
|
|
49362
49347
|
FormData6.prototype.getBoundary = function() {
|
|
@@ -49366,7 +49351,7 @@ var require_form_data2 = __commonJS({
|
|
|
49366
49351
|
return this._boundary;
|
|
49367
49352
|
};
|
|
49368
49353
|
FormData6.prototype.getBuffer = function() {
|
|
49369
|
-
var dataBuffer = Buffer.alloc(0);
|
|
49354
|
+
var dataBuffer = new Buffer.alloc(0);
|
|
49370
49355
|
var boundary = this.getBoundary();
|
|
49371
49356
|
for (var i56 = 0, len = this._streams.length; i56 < len; i56++) {
|
|
49372
49357
|
if (typeof this._streams[i56] !== "function") {
|
|
@@ -49383,7 +49368,11 @@ var require_form_data2 = __commonJS({
|
|
|
49383
49368
|
return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
|
|
49384
49369
|
};
|
|
49385
49370
|
FormData6.prototype._generateBoundary = function() {
|
|
49386
|
-
|
|
49371
|
+
var boundary = "--------------------------";
|
|
49372
|
+
for (var i56 = 0; i56 < 24; i56++) {
|
|
49373
|
+
boundary += Math.floor(Math.random() * 10).toString(16);
|
|
49374
|
+
}
|
|
49375
|
+
this._boundary = boundary;
|
|
49387
49376
|
};
|
|
49388
49377
|
FormData6.prototype.getLengthSync = function() {
|
|
49389
49378
|
var knownLength = this._overheadLength + this._valueLength;
|
|
@@ -49423,10 +49412,8 @@ var require_form_data2 = __commonJS({
|
|
|
49423
49412
|
});
|
|
49424
49413
|
};
|
|
49425
49414
|
FormData6.prototype.submit = function(params, cb) {
|
|
49426
|
-
var request3;
|
|
49427
|
-
|
|
49428
|
-
var defaults6 = { method: "post" };
|
|
49429
|
-
if (typeof params === "string") {
|
|
49415
|
+
var request3, options23, defaults6 = { method: "post" };
|
|
49416
|
+
if (typeof params == "string") {
|
|
49430
49417
|
params = parseUrl(params);
|
|
49431
49418
|
options23 = populate3({
|
|
49432
49419
|
port: params.port,
|
|
@@ -49437,11 +49424,11 @@ var require_form_data2 = __commonJS({
|
|
|
49437
49424
|
} else {
|
|
49438
49425
|
options23 = populate3(params, defaults6);
|
|
49439
49426
|
if (!options23.port) {
|
|
49440
|
-
options23.port = options23.protocol
|
|
49427
|
+
options23.port = options23.protocol == "https:" ? 443 : 80;
|
|
49441
49428
|
}
|
|
49442
49429
|
}
|
|
49443
49430
|
options23.headers = this.getHeaders(params.headers);
|
|
49444
|
-
if (options23.protocol
|
|
49431
|
+
if (options23.protocol == "https:") {
|
|
49445
49432
|
request3 = https7.request(options23);
|
|
49446
49433
|
} else {
|
|
49447
49434
|
request3 = http9.request(options23);
|
|
@@ -49477,8 +49464,6 @@ var require_form_data2 = __commonJS({
|
|
|
49477
49464
|
FormData6.prototype.toString = function() {
|
|
49478
49465
|
return "[object FormData]";
|
|
49479
49466
|
};
|
|
49480
|
-
setToStringTag(FormData6, "FormData");
|
|
49481
|
-
module2.exports = FormData6;
|
|
49482
49467
|
}
|
|
49483
49468
|
});
|
|
49484
49469
|
|
|
@@ -49491,7 +49476,7 @@ var require_file = __commonJS({
|
|
|
49491
49476
|
var util11 = require("util");
|
|
49492
49477
|
var fs15 = require("fs");
|
|
49493
49478
|
var EventEmitter6 = require("events").EventEmitter;
|
|
49494
|
-
var
|
|
49479
|
+
var crypto38 = require("crypto");
|
|
49495
49480
|
function File4(properties) {
|
|
49496
49481
|
EventEmitter6.call(this);
|
|
49497
49482
|
this.size = 0;
|
|
@@ -49505,7 +49490,7 @@ var require_file = __commonJS({
|
|
|
49505
49490
|
this[key2] = properties[key2];
|
|
49506
49491
|
}
|
|
49507
49492
|
if (typeof this.hash === "string") {
|
|
49508
|
-
this.hash =
|
|
49493
|
+
this.hash = crypto38.createHash(properties.hash);
|
|
49509
49494
|
} else {
|
|
49510
49495
|
this.hash = null;
|
|
49511
49496
|
}
|
|
@@ -49928,7 +49913,7 @@ var require_incoming_form = __commonJS({
|
|
|
49928
49913
|
"use strict";
|
|
49929
49914
|
if (global.GENTLY)
|
|
49930
49915
|
require = GENTLY.hijack(require);
|
|
49931
|
-
var
|
|
49916
|
+
var crypto38 = require("crypto");
|
|
49932
49917
|
var fs15 = require("fs");
|
|
49933
49918
|
var util11 = require("util");
|
|
49934
49919
|
var path4 = require("path");
|
|
@@ -50342,7 +50327,7 @@ var require_incoming_form = __commonJS({
|
|
|
50342
50327
|
this._parser = parser;
|
|
50343
50328
|
};
|
|
50344
50329
|
IncomingForm.prototype._uploadPath = function(filename) {
|
|
50345
|
-
var buf2 =
|
|
50330
|
+
var buf2 = crypto38.randomBytes(16);
|
|
50346
50331
|
var name3 = "upload_" + buf2.toString("hex");
|
|
50347
50332
|
if (this.keepExtensions) {
|
|
50348
50333
|
var ext = path4.extname(filename);
|
|
@@ -60855,16 +60840,16 @@ var require_brorand = __commonJS({
|
|
|
60855
60840
|
}
|
|
60856
60841
|
} else {
|
|
60857
60842
|
try {
|
|
60858
|
-
|
|
60859
|
-
if (typeof
|
|
60843
|
+
crypto38 = require("crypto");
|
|
60844
|
+
if (typeof crypto38.randomBytes !== "function")
|
|
60860
60845
|
throw new Error("Not supported");
|
|
60861
60846
|
Rand.prototype._rand = function _rand(n112) {
|
|
60862
|
-
return
|
|
60847
|
+
return crypto38.randomBytes(n112);
|
|
60863
60848
|
};
|
|
60864
60849
|
} catch (e36) {
|
|
60865
60850
|
}
|
|
60866
60851
|
}
|
|
60867
|
-
var
|
|
60852
|
+
var crypto38;
|
|
60868
60853
|
}
|
|
60869
60854
|
});
|
|
60870
60855
|
|
|
@@ -66596,7 +66581,7 @@ var require_bip32 = __commonJS({
|
|
|
66596
66581
|
"../../node_modules/.pnpm/bip32@2.0.6/node_modules/bip32/src/bip32.js"(exports2) {
|
|
66597
66582
|
"use strict";
|
|
66598
66583
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
66599
|
-
var
|
|
66584
|
+
var crypto38 = require_crypto();
|
|
66600
66585
|
var bs58check12 = require_bs58check();
|
|
66601
66586
|
var ecc2 = require_tiny_secp256k1();
|
|
66602
66587
|
var typeforce = require_typeforce();
|
|
@@ -66658,7 +66643,7 @@ var require_bip32 = __commonJS({
|
|
|
66658
66643
|
return this.__D;
|
|
66659
66644
|
}
|
|
66660
66645
|
get identifier() {
|
|
66661
|
-
return
|
|
66646
|
+
return crypto38.hash160(this.publicKey);
|
|
66662
66647
|
}
|
|
66663
66648
|
get fingerprint() {
|
|
66664
66649
|
return this.identifier.slice(0, 4);
|
|
@@ -66711,7 +66696,7 @@ var require_bip32 = __commonJS({
|
|
|
66711
66696
|
this.publicKey.copy(data6, 0);
|
|
66712
66697
|
data6.writeUInt32BE(index, 33);
|
|
66713
66698
|
}
|
|
66714
|
-
const I14 =
|
|
66699
|
+
const I14 = crypto38.hmacSHA512(this.chainCode, data6);
|
|
66715
66700
|
const IL = I14.slice(0, 32);
|
|
66716
66701
|
const IR = I14.slice(32);
|
|
66717
66702
|
if (!ecc2.isPrivate(IL))
|
|
@@ -66842,7 +66827,7 @@ var require_bip32 = __commonJS({
|
|
|
66842
66827
|
if (seed.length > 64)
|
|
66843
66828
|
throw new TypeError("Seed should be at most 512 bits");
|
|
66844
66829
|
network = network || BITCOIN;
|
|
66845
|
-
const I14 =
|
|
66830
|
+
const I14 = crypto38.hmacSHA512(Buffer.from("Bitcoin seed", "utf8"), seed);
|
|
66846
66831
|
const IL = I14.slice(0, 32);
|
|
66847
66832
|
const IR = I14.slice(32);
|
|
66848
66833
|
return fromPrivateKey(IL, IR, network);
|
|
@@ -74623,8 +74608,8 @@ var require_src4 = __commonJS({
|
|
|
74623
74608
|
exports2.bip32 = bip322;
|
|
74624
74609
|
var address4 = require_address();
|
|
74625
74610
|
exports2.address = address4;
|
|
74626
|
-
var
|
|
74627
|
-
exports2.crypto =
|
|
74611
|
+
var crypto38 = require_crypto2();
|
|
74612
|
+
exports2.crypto = crypto38;
|
|
74628
74613
|
var ECPair = require_ecpair();
|
|
74629
74614
|
exports2.ECPair = ECPair;
|
|
74630
74615
|
var networks2 = require_networks();
|
|
@@ -101648,7 +101633,7 @@ var require_lib5 = __commonJS({
|
|
|
101648
101633
|
return exports2.curve25519.scalarMult(privateKey, exports2.curve25519.BASE_POINT_U);
|
|
101649
101634
|
}
|
|
101650
101635
|
};
|
|
101651
|
-
var
|
|
101636
|
+
var crypto38 = {
|
|
101652
101637
|
node: nodeCrypto3,
|
|
101653
101638
|
web: typeof self === "object" && "crypto" in self ? self.crypto : void 0
|
|
101654
101639
|
};
|
|
@@ -101676,10 +101661,10 @@ var require_lib5 = __commonJS({
|
|
|
101676
101661
|
return mod7(bytesToNumberLE5(hash11), CURVE2.l - _1n32) + _1n32;
|
|
101677
101662
|
},
|
|
101678
101663
|
randomBytes: (bytesLength = 32) => {
|
|
101679
|
-
if (
|
|
101680
|
-
return
|
|
101681
|
-
} else if (
|
|
101682
|
-
const { randomBytes: randomBytes12 } =
|
|
101664
|
+
if (crypto38.web) {
|
|
101665
|
+
return crypto38.web.getRandomValues(new Uint8Array(bytesLength));
|
|
101666
|
+
} else if (crypto38.node) {
|
|
101667
|
+
const { randomBytes: randomBytes12 } = crypto38.node;
|
|
101683
101668
|
return new Uint8Array(randomBytes12(bytesLength).buffer);
|
|
101684
101669
|
} else {
|
|
101685
101670
|
throw new Error("The environment doesn't have randomBytes function");
|
|
@@ -101690,11 +101675,11 @@ var require_lib5 = __commonJS({
|
|
|
101690
101675
|
},
|
|
101691
101676
|
sha512: async (...messages) => {
|
|
101692
101677
|
const message2 = concatBytes9(...messages);
|
|
101693
|
-
if (
|
|
101694
|
-
const buffer2 = await
|
|
101678
|
+
if (crypto38.web) {
|
|
101679
|
+
const buffer2 = await crypto38.web.subtle.digest("SHA-512", message2.buffer);
|
|
101695
101680
|
return new Uint8Array(buffer2);
|
|
101696
|
-
} else if (
|
|
101697
|
-
return Uint8Array.from(
|
|
101681
|
+
} else if (crypto38.node) {
|
|
101682
|
+
return Uint8Array.from(crypto38.node.createHash("sha512").update(message2).digest());
|
|
101698
101683
|
} else {
|
|
101699
101684
|
throw new Error("The environment doesn't have sha512 function");
|
|
101700
101685
|
}
|
|
@@ -104265,7 +104250,7 @@ var require_lib6 = __commonJS({
|
|
|
104265
104250
|
verifySync: schnorrVerifySync
|
|
104266
104251
|
};
|
|
104267
104252
|
Point7.BASE._setWindowSize(8);
|
|
104268
|
-
var
|
|
104253
|
+
var crypto38 = {
|
|
104269
104254
|
node: nodeCrypto3,
|
|
104270
104255
|
web: typeof self === "object" && "crypto" in self ? self.crypto : void 0
|
|
104271
104256
|
};
|
|
@@ -104301,10 +104286,10 @@ var require_lib6 = __commonJS({
|
|
|
104301
104286
|
return numTo32b2(num);
|
|
104302
104287
|
},
|
|
104303
104288
|
randomBytes: (bytesLength = 32) => {
|
|
104304
|
-
if (
|
|
104305
|
-
return
|
|
104306
|
-
} else if (
|
|
104307
|
-
const { randomBytes: randomBytes12 } =
|
|
104289
|
+
if (crypto38.web) {
|
|
104290
|
+
return crypto38.web.getRandomValues(new Uint8Array(bytesLength));
|
|
104291
|
+
} else if (crypto38.node) {
|
|
104292
|
+
const { randomBytes: randomBytes12 } = crypto38.node;
|
|
104308
104293
|
return Uint8Array.from(randomBytes12(bytesLength));
|
|
104309
104294
|
} else {
|
|
104310
104295
|
throw new Error("The environment doesn't have randomBytes function");
|
|
@@ -104318,11 +104303,11 @@ var require_lib6 = __commonJS({
|
|
|
104318
104303
|
return cached2;
|
|
104319
104304
|
},
|
|
104320
104305
|
sha256: async (...messages) => {
|
|
104321
|
-
if (
|
|
104322
|
-
const buffer2 = await
|
|
104306
|
+
if (crypto38.web) {
|
|
104307
|
+
const buffer2 = await crypto38.web.subtle.digest("SHA-256", concatBytes9(...messages));
|
|
104323
104308
|
return new Uint8Array(buffer2);
|
|
104324
|
-
} else if (
|
|
104325
|
-
const { createHash: createHash4 } =
|
|
104309
|
+
} else if (crypto38.node) {
|
|
104310
|
+
const { createHash: createHash4 } = crypto38.node;
|
|
104326
104311
|
const hash11 = createHash4("sha256");
|
|
104327
104312
|
messages.forEach((m60) => hash11.update(m60));
|
|
104328
104313
|
return Uint8Array.from(hash11.digest());
|
|
@@ -104331,13 +104316,13 @@ var require_lib6 = __commonJS({
|
|
|
104331
104316
|
}
|
|
104332
104317
|
},
|
|
104333
104318
|
hmacSha256: async (key2, ...messages) => {
|
|
104334
|
-
if (
|
|
104335
|
-
const ckey = await
|
|
104319
|
+
if (crypto38.web) {
|
|
104320
|
+
const ckey = await crypto38.web.subtle.importKey("raw", key2, { name: "HMAC", hash: { name: "SHA-256" } }, false, ["sign"]);
|
|
104336
104321
|
const message2 = concatBytes9(...messages);
|
|
104337
|
-
const buffer2 = await
|
|
104322
|
+
const buffer2 = await crypto38.web.subtle.sign("HMAC", ckey, message2);
|
|
104338
104323
|
return new Uint8Array(buffer2);
|
|
104339
|
-
} else if (
|
|
104340
|
-
const { createHmac: createHmac3 } =
|
|
104324
|
+
} else if (crypto38.node) {
|
|
104325
|
+
const { createHmac: createHmac3 } = crypto38.node;
|
|
104341
104326
|
const hash11 = createHmac3("sha256", key2);
|
|
104342
104327
|
messages.forEach((m60) => hash11.update(m60));
|
|
104343
104328
|
return Uint8Array.from(hash11.digest());
|
|
@@ -105967,7 +105952,7 @@ var require_axios = __commonJS({
|
|
|
105967
105952
|
"../../node_modules/.pnpm/axios@1.11.0/node_modules/axios/dist/node/axios.cjs"(exports2, module2) {
|
|
105968
105953
|
"use strict";
|
|
105969
105954
|
var FormData$1 = require_form_data();
|
|
105970
|
-
var
|
|
105955
|
+
var crypto38 = require("crypto");
|
|
105971
105956
|
var url4 = require("url");
|
|
105972
105957
|
var proxyFromEnv3 = require_proxy_from_env();
|
|
105973
105958
|
var http9 = require("http");
|
|
@@ -105981,7 +105966,7 @@ var require_axios = __commonJS({
|
|
|
105981
105966
|
return e36 && typeof e36 === "object" && "default" in e36 ? e36 : { "default": e36 };
|
|
105982
105967
|
}
|
|
105983
105968
|
var FormData__default = /* @__PURE__ */ _interopDefaultLegacy(FormData$1);
|
|
105984
|
-
var crypto__default = /* @__PURE__ */ _interopDefaultLegacy(
|
|
105969
|
+
var crypto__default = /* @__PURE__ */ _interopDefaultLegacy(crypto38);
|
|
105985
105970
|
var url__default = /* @__PURE__ */ _interopDefaultLegacy(url4);
|
|
105986
105971
|
var proxyFromEnv__default = /* @__PURE__ */ _interopDefaultLegacy(proxyFromEnv3);
|
|
105987
105972
|
var http__default = /* @__PURE__ */ _interopDefaultLegacy(http9);
|
|
@@ -158254,7 +158239,7 @@ var require_WebSocketConnection = __commonJS({
|
|
|
158254
158239
|
var require_WebSocketRequest = __commonJS({
|
|
158255
158240
|
"../../node_modules/.pnpm/websocket@1.0.34/node_modules/websocket/lib/WebSocketRequest.js"(exports2, module2) {
|
|
158256
158241
|
"use strict";
|
|
158257
|
-
var
|
|
158242
|
+
var crypto38 = require("crypto");
|
|
158258
158243
|
var util11 = require("util");
|
|
158259
158244
|
var url4 = require("url");
|
|
158260
158245
|
var EventEmitter6 = require("events").EventEmitter;
|
|
@@ -158480,7 +158465,7 @@ var require_WebSocketRequest = __commonJS({
|
|
|
158480
158465
|
protocolFullCase = acceptedProtocol;
|
|
158481
158466
|
}
|
|
158482
158467
|
this.protocolFullCaseMap = null;
|
|
158483
|
-
var sha13 =
|
|
158468
|
+
var sha13 = crypto38.createHash("sha1");
|
|
158484
158469
|
sha13.update(this.key + "258EAFA5-E914-47DA-95CA-C5AB0DC85B11");
|
|
158485
158470
|
var acceptKey = sha13.digest("base64");
|
|
158486
158471
|
var response = "HTTP/1.1 101 Switching Protocols\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: " + acceptKey + "\r\n";
|
|
@@ -158885,7 +158870,7 @@ var require_WebSocketClient = __commonJS({
|
|
|
158885
158870
|
var http9 = require("http");
|
|
158886
158871
|
var https7 = require("https");
|
|
158887
158872
|
var url4 = require("url");
|
|
158888
|
-
var
|
|
158873
|
+
var crypto38 = require("crypto");
|
|
158889
158874
|
var WebSocketConnection = require_WebSocketConnection();
|
|
158890
158875
|
var bufferAllocUnsafe = utils5.bufferAllocUnsafe;
|
|
158891
158876
|
var protocolSeparators = [
|
|
@@ -159132,7 +159117,7 @@ var require_WebSocketClient = __commonJS({
|
|
|
159132
159117
|
this.failHandshake("Expected an Upgrade: websocket header from the server");
|
|
159133
159118
|
return;
|
|
159134
159119
|
}
|
|
159135
|
-
var sha13 =
|
|
159120
|
+
var sha13 = crypto38.createHash("sha1");
|
|
159136
159121
|
sha13.update(this.base64nonce + "258EAFA5-E914-47DA-95CA-C5AB0DC85B11");
|
|
159137
159122
|
var expectedKey = sha13.digest("base64");
|
|
159138
159123
|
if (!headers["sec-websocket-accept"]) {
|
|
@@ -194344,7 +194329,7 @@ var require_lib30 = __commonJS({
|
|
|
194344
194329
|
var require_getNetworkType = __commonJS({
|
|
194345
194330
|
"../../node_modules/.pnpm/web3-eth@1.10.4/node_modules/web3-eth/lib/getNetworkType.js"(exports2, module2) {
|
|
194346
194331
|
"use strict";
|
|
194347
|
-
var
|
|
194332
|
+
var getNetworkType2 = function(callback) {
|
|
194348
194333
|
var _this = this, id5;
|
|
194349
194334
|
return this.net.getId().then(function(givenId) {
|
|
194350
194335
|
id5 = givenId;
|
|
@@ -194378,7 +194363,7 @@ var require_getNetworkType = __commonJS({
|
|
|
194378
194363
|
}
|
|
194379
194364
|
});
|
|
194380
194365
|
};
|
|
194381
|
-
module2.exports =
|
|
194366
|
+
module2.exports = getNetworkType2;
|
|
194382
194367
|
}
|
|
194383
194368
|
});
|
|
194384
194369
|
|
|
@@ -194398,7 +194383,7 @@ var require_lib31 = __commonJS({
|
|
|
194398
194383
|
var Iban = require_lib16();
|
|
194399
194384
|
var Accounts = require_lib30();
|
|
194400
194385
|
var abi2 = require_lib13();
|
|
194401
|
-
var
|
|
194386
|
+
var getNetworkType2 = require_getNetworkType();
|
|
194402
194387
|
var formatter = helpers.formatters;
|
|
194403
194388
|
var blockCall = function(args3) {
|
|
194404
194389
|
return typeof args3[0] === "string" && args3[0].indexOf("0x") === 0 ? "eth_getBlockByHash" : "eth_getBlockByNumber";
|
|
@@ -194609,7 +194594,7 @@ var require_lib31 = __commonJS({
|
|
|
194609
194594
|
this.clearSubscriptions = _this._requestManager.clearSubscriptions.bind(_this._requestManager);
|
|
194610
194595
|
this.removeSubscriptionById = _this._requestManager.removeSubscription.bind(_this._requestManager);
|
|
194611
194596
|
this.net = new Net(this);
|
|
194612
|
-
this.net.getNetworkType =
|
|
194597
|
+
this.net.getNetworkType = getNetworkType2.bind(this);
|
|
194613
194598
|
this.accounts = new Accounts(this);
|
|
194614
194599
|
this.personal = new Personal(this);
|
|
194615
194600
|
this.personal.defaultAccount = this.defaultAccount;
|
|
@@ -207808,13 +207793,13 @@ var require_unpack = __commonJS({
|
|
|
207808
207793
|
var UID = Symbol("uid");
|
|
207809
207794
|
var GID = Symbol("gid");
|
|
207810
207795
|
var CHECKED_CWD = Symbol("checkedCwd");
|
|
207811
|
-
var
|
|
207796
|
+
var crypto38 = require("crypto");
|
|
207812
207797
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
207813
207798
|
var isWindows = platform === "win32";
|
|
207814
207799
|
var unlinkFile = (path5, cb) => {
|
|
207815
207800
|
if (!isWindows)
|
|
207816
207801
|
return fs15.unlink(path5, cb);
|
|
207817
|
-
const name3 = path5 + ".DELETE." +
|
|
207802
|
+
const name3 = path5 + ".DELETE." + crypto38.randomBytes(16).toString("hex");
|
|
207818
207803
|
fs15.rename(path5, name3, (er2) => {
|
|
207819
207804
|
if (er2)
|
|
207820
207805
|
return cb(er2);
|
|
@@ -207824,7 +207809,7 @@ var require_unpack = __commonJS({
|
|
|
207824
207809
|
var unlinkFileSync = (path5) => {
|
|
207825
207810
|
if (!isWindows)
|
|
207826
207811
|
return fs15.unlinkSync(path5);
|
|
207827
|
-
const name3 = path5 + ".DELETE." +
|
|
207812
|
+
const name3 = path5 + ".DELETE." + crypto38.randomBytes(16).toString("hex");
|
|
207828
207813
|
fs15.renameSync(path5, name3);
|
|
207829
207814
|
fs15.unlinkSync(name3);
|
|
207830
207815
|
};
|
|
@@ -210350,7 +210335,7 @@ var require_files = __commonJS({
|
|
|
210350
210335
|
"use strict";
|
|
210351
210336
|
var Q3 = require_bluebird();
|
|
210352
210337
|
var assert10 = require("assert");
|
|
210353
|
-
var
|
|
210338
|
+
var crypto38 = require("crypto");
|
|
210354
210339
|
var fs15 = require_lib33();
|
|
210355
210340
|
var got2 = require("got");
|
|
210356
210341
|
var mkdirp = require_lib34();
|
|
@@ -210386,7 +210371,7 @@ var require_files = __commonJS({
|
|
|
210386
210371
|
return function(path5) {
|
|
210387
210372
|
return new Q3(function(resolve, reject) {
|
|
210388
210373
|
var readStream3 = fs15.ReadStream(path5);
|
|
210389
|
-
var hash13 =
|
|
210374
|
+
var hash13 = crypto38.createHash(algorithm2);
|
|
210390
210375
|
readStream3.on("data", function(d54) {
|
|
210391
210376
|
return hash13.update(d54);
|
|
210392
210377
|
});
|
|
@@ -210520,7 +210505,7 @@ var require_files = __commonJS({
|
|
|
210520
210505
|
var archiveUrl = "http://localhost:12534";
|
|
210521
210506
|
var archiveHash = "7fa45f946bb2a696bdd9972e0fbceac2";
|
|
210522
210507
|
var archiveData = new Buffer([31, 139, 8, 0, 241, 52, 175, 88, 0, 3, 237, 207, 61, 14, 131, 48, 12, 134, 97, 102, 78, 225, 19, 84, 206, 15, 201, 121, 88, 178, 70, 130, 20, 113, 124, 210, 6, 49, 82, 117, 64, 8, 233, 125, 150, 79, 150, 61, 124, 78, 57, 191, 202, 90, 186, 43, 169, 106, 240, 94, 62, 25, 195, 240, 77, 181, 109, 222, 121, 49, 78, 7, 23, 156, 181, 49, 138, 26, 171, 198, 119, 162, 151, 182, 218, 189, 231, 50, 78, 181, 202, 242, 227, 174, 158, 165, 116, 178, 111, 143, 200, 145, 15, 145, 114, 238, 239, 238, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 248, 223, 6, 179, 42, 218, 237, 0, 40, 0, 0]);
|
|
210523
|
-
var
|
|
210508
|
+
var crypto39 = require("crypto");
|
|
210524
210509
|
var fsMock = require_lib35()({
|
|
210525
210510
|
"/swarm": {}
|
|
210526
210511
|
});
|
|
@@ -246434,39 +246419,39 @@ var require_core = __commonJS({
|
|
|
246434
246419
|
}
|
|
246435
246420
|
})(exports2, function() {
|
|
246436
246421
|
var CryptoJS = CryptoJS || function(Math2, undefined2) {
|
|
246437
|
-
var
|
|
246422
|
+
var crypto38;
|
|
246438
246423
|
if (typeof window !== "undefined" && window.crypto) {
|
|
246439
|
-
|
|
246424
|
+
crypto38 = window.crypto;
|
|
246440
246425
|
}
|
|
246441
246426
|
if (typeof self !== "undefined" && self.crypto) {
|
|
246442
|
-
|
|
246427
|
+
crypto38 = self.crypto;
|
|
246443
246428
|
}
|
|
246444
246429
|
if (typeof globalThis !== "undefined" && globalThis.crypto) {
|
|
246445
|
-
|
|
246430
|
+
crypto38 = globalThis.crypto;
|
|
246446
246431
|
}
|
|
246447
|
-
if (!
|
|
246448
|
-
|
|
246432
|
+
if (!crypto38 && typeof window !== "undefined" && window.msCrypto) {
|
|
246433
|
+
crypto38 = window.msCrypto;
|
|
246449
246434
|
}
|
|
246450
|
-
if (!
|
|
246451
|
-
|
|
246435
|
+
if (!crypto38 && typeof global !== "undefined" && global.crypto) {
|
|
246436
|
+
crypto38 = global.crypto;
|
|
246452
246437
|
}
|
|
246453
|
-
if (!
|
|
246438
|
+
if (!crypto38 && typeof require === "function") {
|
|
246454
246439
|
try {
|
|
246455
|
-
|
|
246440
|
+
crypto38 = require("crypto");
|
|
246456
246441
|
} catch (err) {
|
|
246457
246442
|
}
|
|
246458
246443
|
}
|
|
246459
246444
|
var cryptoSecureRandomInt = function() {
|
|
246460
|
-
if (
|
|
246461
|
-
if (typeof
|
|
246445
|
+
if (crypto38) {
|
|
246446
|
+
if (typeof crypto38.getRandomValues === "function") {
|
|
246462
246447
|
try {
|
|
246463
|
-
return
|
|
246448
|
+
return crypto38.getRandomValues(new Uint32Array(1))[0];
|
|
246464
246449
|
} catch (err) {
|
|
246465
246450
|
}
|
|
246466
246451
|
}
|
|
246467
|
-
if (typeof
|
|
246452
|
+
if (typeof crypto38.randomBytes === "function") {
|
|
246468
246453
|
try {
|
|
246469
|
-
return
|
|
246454
|
+
return crypto38.randomBytes(4).readInt32LE();
|
|
246470
246455
|
} catch (err) {
|
|
246471
246456
|
}
|
|
246472
246457
|
}
|
|
@@ -262439,8 +262424,8 @@ var require_codecimpl = __commonJS({
|
|
|
262439
262424
|
return base4;
|
|
262440
262425
|
}();
|
|
262441
262426
|
cosmos3.crypto = function() {
|
|
262442
|
-
const
|
|
262443
|
-
|
|
262427
|
+
const crypto38 = {};
|
|
262428
|
+
crypto38.multisig = function() {
|
|
262444
262429
|
const multisig = {};
|
|
262445
262430
|
multisig.v1beta1 = function() {
|
|
262446
262431
|
const v1beta1 = {};
|
|
@@ -262610,7 +262595,7 @@ var require_codecimpl = __commonJS({
|
|
|
262610
262595
|
}();
|
|
262611
262596
|
return multisig;
|
|
262612
262597
|
}();
|
|
262613
|
-
|
|
262598
|
+
crypto38.secp256k1 = function() {
|
|
262614
262599
|
const secp256k110 = {};
|
|
262615
262600
|
secp256k110.PubKey = function() {
|
|
262616
262601
|
function PubKey2(p61) {
|
|
@@ -262756,7 +262741,7 @@ var require_codecimpl = __commonJS({
|
|
|
262756
262741
|
}();
|
|
262757
262742
|
return secp256k110;
|
|
262758
262743
|
}();
|
|
262759
|
-
return
|
|
262744
|
+
return crypto38;
|
|
262760
262745
|
}();
|
|
262761
262746
|
cosmos3.tx = function() {
|
|
262762
262747
|
const tx = {};
|
|
@@ -265112,8 +265097,8 @@ var require_codecimpl = __commonJS({
|
|
|
265112
265097
|
exports2.tendermint = $root.tendermint = (() => {
|
|
265113
265098
|
const tendermint = {};
|
|
265114
265099
|
tendermint.crypto = function() {
|
|
265115
|
-
const
|
|
265116
|
-
|
|
265100
|
+
const crypto38 = {};
|
|
265101
|
+
crypto38.PublicKey = function() {
|
|
265117
265102
|
function PublicKey12(p61) {
|
|
265118
265103
|
if (p61) {
|
|
265119
265104
|
for (var ks2 = Object.keys(p61), i56 = 0; i56 < ks2.length; ++i56)
|
|
@@ -265199,7 +265184,7 @@ var require_codecimpl = __commonJS({
|
|
|
265199
265184
|
};
|
|
265200
265185
|
return PublicKey12;
|
|
265201
265186
|
}();
|
|
265202
|
-
return
|
|
265187
|
+
return crypto38;
|
|
265203
265188
|
}();
|
|
265204
265189
|
return tendermint;
|
|
265205
265190
|
})();
|
|
@@ -271952,8 +271937,8 @@ var require_random2 = __commonJS({
|
|
|
271952
271937
|
return out;
|
|
271953
271938
|
} catch (_a6) {
|
|
271954
271939
|
try {
|
|
271955
|
-
const
|
|
271956
|
-
return new Uint8Array([...
|
|
271940
|
+
const crypto38 = require("crypto");
|
|
271941
|
+
return new Uint8Array([...crypto38.randomBytes(count)]);
|
|
271957
271942
|
} catch (_b2) {
|
|
271958
271943
|
throw new Error("No secure random number generator found");
|
|
271959
271944
|
}
|
|
@@ -294828,8 +294813,8 @@ var require_random3 = __commonJS({
|
|
|
294828
294813
|
return out;
|
|
294829
294814
|
} catch {
|
|
294830
294815
|
try {
|
|
294831
|
-
const
|
|
294832
|
-
return new Uint8Array([...
|
|
294816
|
+
const crypto38 = require("crypto");
|
|
294817
|
+
return new Uint8Array([...crypto38.randomBytes(count)]);
|
|
294833
294818
|
} catch {
|
|
294834
294819
|
throw new Error("No secure random number generator found");
|
|
294835
294820
|
}
|
|
@@ -297568,7 +297553,7 @@ var require_cosmosApp = __commonJS({
|
|
|
297568
297553
|
var common_1 = require_common5();
|
|
297569
297554
|
var commandsV1_1 = require_commandsV1();
|
|
297570
297555
|
var commandsV2_1 = require_commandsV2();
|
|
297571
|
-
var
|
|
297556
|
+
var crypto38 = require("crypto");
|
|
297572
297557
|
var bech328 = require_bech32();
|
|
297573
297558
|
var Ripemd160 = require_ripemd160();
|
|
297574
297559
|
var CosmosApp2 = (
|
|
@@ -297593,7 +297578,7 @@ var require_cosmosApp = __commonJS({
|
|
|
297593
297578
|
if (pk.length !== 33) {
|
|
297594
297579
|
throw new Error("expected compressed public key [31 bytes]");
|
|
297595
297580
|
}
|
|
297596
|
-
var hashSha256 =
|
|
297581
|
+
var hashSha256 = crypto38.createHash("sha256").update(pk).digest();
|
|
297597
297582
|
var hashRip = new Ripemd160().update(hashSha256).digest();
|
|
297598
297583
|
return bech328.encode(hrp, bech328.toWords(hashRip));
|
|
297599
297584
|
};
|
|
@@ -299025,10 +299010,10 @@ function randomBytes4(length2) {
|
|
|
299025
299010
|
logger24.throwArgumentError("invalid length", "length", length2);
|
|
299026
299011
|
}
|
|
299027
299012
|
const result2 = new Uint8Array(length2);
|
|
299028
|
-
|
|
299013
|
+
crypto19.getRandomValues(result2);
|
|
299029
299014
|
return arrayify(result2);
|
|
299030
299015
|
}
|
|
299031
|
-
var logger24, anyGlobal,
|
|
299016
|
+
var logger24, anyGlobal, crypto19;
|
|
299032
299017
|
var init_random = __esm({
|
|
299033
299018
|
"../../node_modules/.pnpm/@ethersproject+random@5.7.0/node_modules/@ethersproject/random/lib.esm/random.js"() {
|
|
299034
299019
|
"use strict";
|
|
@@ -299037,10 +299022,10 @@ var init_random = __esm({
|
|
|
299037
299022
|
init_version18();
|
|
299038
299023
|
logger24 = new Logger2(version21);
|
|
299039
299024
|
anyGlobal = getGlobal();
|
|
299040
|
-
|
|
299041
|
-
if (!
|
|
299025
|
+
crypto19 = anyGlobal.crypto || anyGlobal.msCrypto;
|
|
299026
|
+
if (!crypto19 || !crypto19.getRandomValues) {
|
|
299042
299027
|
logger24.warn("WARNING: Missing strong random number source");
|
|
299043
|
-
|
|
299028
|
+
crypto19 = {
|
|
299044
299029
|
getRandomValues: function(buffer2) {
|
|
299045
299030
|
return logger24.throwError("no secure random source avaialble", Logger2.errors.UNSUPPORTED_OPERATION, {
|
|
299046
299031
|
operation: "crypto.getRandomValues"
|
|
@@ -302217,6 +302202,337 @@ var require_Reflect = __commonJS({
|
|
|
302217
302202
|
}
|
|
302218
302203
|
});
|
|
302219
302204
|
|
|
302205
|
+
// ../../node_modules/.pnpm/form-data@4.0.2/node_modules/form-data/lib/populate.js
|
|
302206
|
+
var require_populate3 = __commonJS({
|
|
302207
|
+
"../../node_modules/.pnpm/form-data@4.0.2/node_modules/form-data/lib/populate.js"(exports2, module2) {
|
|
302208
|
+
"use strict";
|
|
302209
|
+
module2.exports = function(dst, src2) {
|
|
302210
|
+
Object.keys(src2).forEach(function(prop) {
|
|
302211
|
+
dst[prop] = dst[prop] || src2[prop];
|
|
302212
|
+
});
|
|
302213
|
+
return dst;
|
|
302214
|
+
};
|
|
302215
|
+
}
|
|
302216
|
+
});
|
|
302217
|
+
|
|
302218
|
+
// ../../node_modules/.pnpm/form-data@4.0.2/node_modules/form-data/lib/form_data.js
|
|
302219
|
+
var require_form_data3 = __commonJS({
|
|
302220
|
+
"../../node_modules/.pnpm/form-data@4.0.2/node_modules/form-data/lib/form_data.js"(exports2, module2) {
|
|
302221
|
+
"use strict";
|
|
302222
|
+
var CombinedStream = require_combined_stream();
|
|
302223
|
+
var util11 = require("util");
|
|
302224
|
+
var path4 = require("path");
|
|
302225
|
+
var http9 = require("http");
|
|
302226
|
+
var https7 = require("https");
|
|
302227
|
+
var parseUrl = require("url").parse;
|
|
302228
|
+
var fs15 = require("fs");
|
|
302229
|
+
var Stream5 = require("stream").Stream;
|
|
302230
|
+
var mime = require_mime_types();
|
|
302231
|
+
var asynckit = require_asynckit();
|
|
302232
|
+
var setToStringTag = require_es_set_tostringtag();
|
|
302233
|
+
var populate3 = require_populate3();
|
|
302234
|
+
module2.exports = FormData6;
|
|
302235
|
+
util11.inherits(FormData6, CombinedStream);
|
|
302236
|
+
function FormData6(options23) {
|
|
302237
|
+
if (!(this instanceof FormData6)) {
|
|
302238
|
+
return new FormData6(options23);
|
|
302239
|
+
}
|
|
302240
|
+
this._overheadLength = 0;
|
|
302241
|
+
this._valueLength = 0;
|
|
302242
|
+
this._valuesToMeasure = [];
|
|
302243
|
+
CombinedStream.call(this);
|
|
302244
|
+
options23 = options23 || {};
|
|
302245
|
+
for (var option2 in options23) {
|
|
302246
|
+
this[option2] = options23[option2];
|
|
302247
|
+
}
|
|
302248
|
+
}
|
|
302249
|
+
FormData6.LINE_BREAK = "\r\n";
|
|
302250
|
+
FormData6.DEFAULT_CONTENT_TYPE = "application/octet-stream";
|
|
302251
|
+
FormData6.prototype.append = function(field, value5, options23) {
|
|
302252
|
+
options23 = options23 || {};
|
|
302253
|
+
if (typeof options23 == "string") {
|
|
302254
|
+
options23 = { filename: options23 };
|
|
302255
|
+
}
|
|
302256
|
+
var append3 = CombinedStream.prototype.append.bind(this);
|
|
302257
|
+
if (typeof value5 == "number") {
|
|
302258
|
+
value5 = "" + value5;
|
|
302259
|
+
}
|
|
302260
|
+
if (Array.isArray(value5)) {
|
|
302261
|
+
this._error(new Error("Arrays are not supported."));
|
|
302262
|
+
return;
|
|
302263
|
+
}
|
|
302264
|
+
var header = this._multiPartHeader(field, value5, options23);
|
|
302265
|
+
var footer = this._multiPartFooter();
|
|
302266
|
+
append3(header);
|
|
302267
|
+
append3(value5);
|
|
302268
|
+
append3(footer);
|
|
302269
|
+
this._trackLength(header, value5, options23);
|
|
302270
|
+
};
|
|
302271
|
+
FormData6.prototype._trackLength = function(header, value5, options23) {
|
|
302272
|
+
var valueLength = 0;
|
|
302273
|
+
if (options23.knownLength != null) {
|
|
302274
|
+
valueLength += +options23.knownLength;
|
|
302275
|
+
} else if (Buffer.isBuffer(value5)) {
|
|
302276
|
+
valueLength = value5.length;
|
|
302277
|
+
} else if (typeof value5 === "string") {
|
|
302278
|
+
valueLength = Buffer.byteLength(value5);
|
|
302279
|
+
}
|
|
302280
|
+
this._valueLength += valueLength;
|
|
302281
|
+
this._overheadLength += Buffer.byteLength(header) + FormData6.LINE_BREAK.length;
|
|
302282
|
+
if (!value5 || !value5.path && !(value5.readable && Object.prototype.hasOwnProperty.call(value5, "httpVersion")) && !(value5 instanceof Stream5)) {
|
|
302283
|
+
return;
|
|
302284
|
+
}
|
|
302285
|
+
if (!options23.knownLength) {
|
|
302286
|
+
this._valuesToMeasure.push(value5);
|
|
302287
|
+
}
|
|
302288
|
+
};
|
|
302289
|
+
FormData6.prototype._lengthRetriever = function(value5, callback) {
|
|
302290
|
+
if (Object.prototype.hasOwnProperty.call(value5, "fd")) {
|
|
302291
|
+
if (value5.end != void 0 && value5.end != Infinity && value5.start != void 0) {
|
|
302292
|
+
callback(null, value5.end + 1 - (value5.start ? value5.start : 0));
|
|
302293
|
+
} else {
|
|
302294
|
+
fs15.stat(value5.path, function(err, stat2) {
|
|
302295
|
+
var fileSize;
|
|
302296
|
+
if (err) {
|
|
302297
|
+
callback(err);
|
|
302298
|
+
return;
|
|
302299
|
+
}
|
|
302300
|
+
fileSize = stat2.size - (value5.start ? value5.start : 0);
|
|
302301
|
+
callback(null, fileSize);
|
|
302302
|
+
});
|
|
302303
|
+
}
|
|
302304
|
+
} else if (Object.prototype.hasOwnProperty.call(value5, "httpVersion")) {
|
|
302305
|
+
callback(null, +value5.headers["content-length"]);
|
|
302306
|
+
} else if (Object.prototype.hasOwnProperty.call(value5, "httpModule")) {
|
|
302307
|
+
value5.on("response", function(response) {
|
|
302308
|
+
value5.pause();
|
|
302309
|
+
callback(null, +response.headers["content-length"]);
|
|
302310
|
+
});
|
|
302311
|
+
value5.resume();
|
|
302312
|
+
} else {
|
|
302313
|
+
callback("Unknown stream");
|
|
302314
|
+
}
|
|
302315
|
+
};
|
|
302316
|
+
FormData6.prototype._multiPartHeader = function(field, value5, options23) {
|
|
302317
|
+
if (typeof options23.header == "string") {
|
|
302318
|
+
return options23.header;
|
|
302319
|
+
}
|
|
302320
|
+
var contentDisposition = this._getContentDisposition(value5, options23);
|
|
302321
|
+
var contentType = this._getContentType(value5, options23);
|
|
302322
|
+
var contents = "";
|
|
302323
|
+
var headers = {
|
|
302324
|
+
// add custom disposition as third element or keep it two elements if not
|
|
302325
|
+
"Content-Disposition": ["form-data", 'name="' + field + '"'].concat(contentDisposition || []),
|
|
302326
|
+
// if no content type. allow it to be empty array
|
|
302327
|
+
"Content-Type": [].concat(contentType || [])
|
|
302328
|
+
};
|
|
302329
|
+
if (typeof options23.header == "object") {
|
|
302330
|
+
populate3(headers, options23.header);
|
|
302331
|
+
}
|
|
302332
|
+
var header;
|
|
302333
|
+
for (var prop in headers) {
|
|
302334
|
+
if (Object.prototype.hasOwnProperty.call(headers, prop)) {
|
|
302335
|
+
header = headers[prop];
|
|
302336
|
+
if (header == null) {
|
|
302337
|
+
continue;
|
|
302338
|
+
}
|
|
302339
|
+
if (!Array.isArray(header)) {
|
|
302340
|
+
header = [header];
|
|
302341
|
+
}
|
|
302342
|
+
if (header.length) {
|
|
302343
|
+
contents += prop + ": " + header.join("; ") + FormData6.LINE_BREAK;
|
|
302344
|
+
}
|
|
302345
|
+
}
|
|
302346
|
+
}
|
|
302347
|
+
return "--" + this.getBoundary() + FormData6.LINE_BREAK + contents + FormData6.LINE_BREAK;
|
|
302348
|
+
};
|
|
302349
|
+
FormData6.prototype._getContentDisposition = function(value5, options23) {
|
|
302350
|
+
var filename, contentDisposition;
|
|
302351
|
+
if (typeof options23.filepath === "string") {
|
|
302352
|
+
filename = path4.normalize(options23.filepath).replace(/\\/g, "/");
|
|
302353
|
+
} else if (options23.filename || value5.name || value5.path) {
|
|
302354
|
+
filename = path4.basename(options23.filename || value5.name || value5.path);
|
|
302355
|
+
} else if (value5.readable && Object.prototype.hasOwnProperty.call(value5, "httpVersion")) {
|
|
302356
|
+
filename = path4.basename(value5.client._httpMessage.path || "");
|
|
302357
|
+
}
|
|
302358
|
+
if (filename) {
|
|
302359
|
+
contentDisposition = 'filename="' + filename + '"';
|
|
302360
|
+
}
|
|
302361
|
+
return contentDisposition;
|
|
302362
|
+
};
|
|
302363
|
+
FormData6.prototype._getContentType = function(value5, options23) {
|
|
302364
|
+
var contentType = options23.contentType;
|
|
302365
|
+
if (!contentType && value5.name) {
|
|
302366
|
+
contentType = mime.lookup(value5.name);
|
|
302367
|
+
}
|
|
302368
|
+
if (!contentType && value5.path) {
|
|
302369
|
+
contentType = mime.lookup(value5.path);
|
|
302370
|
+
}
|
|
302371
|
+
if (!contentType && value5.readable && Object.prototype.hasOwnProperty.call(value5, "httpVersion")) {
|
|
302372
|
+
contentType = value5.headers["content-type"];
|
|
302373
|
+
}
|
|
302374
|
+
if (!contentType && (options23.filepath || options23.filename)) {
|
|
302375
|
+
contentType = mime.lookup(options23.filepath || options23.filename);
|
|
302376
|
+
}
|
|
302377
|
+
if (!contentType && typeof value5 == "object") {
|
|
302378
|
+
contentType = FormData6.DEFAULT_CONTENT_TYPE;
|
|
302379
|
+
}
|
|
302380
|
+
return contentType;
|
|
302381
|
+
};
|
|
302382
|
+
FormData6.prototype._multiPartFooter = function() {
|
|
302383
|
+
return function(next) {
|
|
302384
|
+
var footer = FormData6.LINE_BREAK;
|
|
302385
|
+
var lastPart = this._streams.length === 0;
|
|
302386
|
+
if (lastPart) {
|
|
302387
|
+
footer += this._lastBoundary();
|
|
302388
|
+
}
|
|
302389
|
+
next(footer);
|
|
302390
|
+
}.bind(this);
|
|
302391
|
+
};
|
|
302392
|
+
FormData6.prototype._lastBoundary = function() {
|
|
302393
|
+
return "--" + this.getBoundary() + "--" + FormData6.LINE_BREAK;
|
|
302394
|
+
};
|
|
302395
|
+
FormData6.prototype.getHeaders = function(userHeaders) {
|
|
302396
|
+
var header;
|
|
302397
|
+
var formHeaders = {
|
|
302398
|
+
"content-type": "multipart/form-data; boundary=" + this.getBoundary()
|
|
302399
|
+
};
|
|
302400
|
+
for (header in userHeaders) {
|
|
302401
|
+
if (Object.prototype.hasOwnProperty.call(userHeaders, header)) {
|
|
302402
|
+
formHeaders[header.toLowerCase()] = userHeaders[header];
|
|
302403
|
+
}
|
|
302404
|
+
}
|
|
302405
|
+
return formHeaders;
|
|
302406
|
+
};
|
|
302407
|
+
FormData6.prototype.setBoundary = function(boundary) {
|
|
302408
|
+
this._boundary = boundary;
|
|
302409
|
+
};
|
|
302410
|
+
FormData6.prototype.getBoundary = function() {
|
|
302411
|
+
if (!this._boundary) {
|
|
302412
|
+
this._generateBoundary();
|
|
302413
|
+
}
|
|
302414
|
+
return this._boundary;
|
|
302415
|
+
};
|
|
302416
|
+
FormData6.prototype.getBuffer = function() {
|
|
302417
|
+
var dataBuffer = new Buffer.alloc(0);
|
|
302418
|
+
var boundary = this.getBoundary();
|
|
302419
|
+
for (var i56 = 0, len = this._streams.length; i56 < len; i56++) {
|
|
302420
|
+
if (typeof this._streams[i56] !== "function") {
|
|
302421
|
+
if (Buffer.isBuffer(this._streams[i56])) {
|
|
302422
|
+
dataBuffer = Buffer.concat([dataBuffer, this._streams[i56]]);
|
|
302423
|
+
} else {
|
|
302424
|
+
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i56])]);
|
|
302425
|
+
}
|
|
302426
|
+
if (typeof this._streams[i56] !== "string" || this._streams[i56].substring(2, boundary.length + 2) !== boundary) {
|
|
302427
|
+
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData6.LINE_BREAK)]);
|
|
302428
|
+
}
|
|
302429
|
+
}
|
|
302430
|
+
}
|
|
302431
|
+
return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
|
|
302432
|
+
};
|
|
302433
|
+
FormData6.prototype._generateBoundary = function() {
|
|
302434
|
+
var boundary = "--------------------------";
|
|
302435
|
+
for (var i56 = 0; i56 < 24; i56++) {
|
|
302436
|
+
boundary += Math.floor(Math.random() * 10).toString(16);
|
|
302437
|
+
}
|
|
302438
|
+
this._boundary = boundary;
|
|
302439
|
+
};
|
|
302440
|
+
FormData6.prototype.getLengthSync = function() {
|
|
302441
|
+
var knownLength = this._overheadLength + this._valueLength;
|
|
302442
|
+
if (this._streams.length) {
|
|
302443
|
+
knownLength += this._lastBoundary().length;
|
|
302444
|
+
}
|
|
302445
|
+
if (!this.hasKnownLength()) {
|
|
302446
|
+
this._error(new Error("Cannot calculate proper length in synchronous way."));
|
|
302447
|
+
}
|
|
302448
|
+
return knownLength;
|
|
302449
|
+
};
|
|
302450
|
+
FormData6.prototype.hasKnownLength = function() {
|
|
302451
|
+
var hasKnownLength = true;
|
|
302452
|
+
if (this._valuesToMeasure.length) {
|
|
302453
|
+
hasKnownLength = false;
|
|
302454
|
+
}
|
|
302455
|
+
return hasKnownLength;
|
|
302456
|
+
};
|
|
302457
|
+
FormData6.prototype.getLength = function(cb) {
|
|
302458
|
+
var knownLength = this._overheadLength + this._valueLength;
|
|
302459
|
+
if (this._streams.length) {
|
|
302460
|
+
knownLength += this._lastBoundary().length;
|
|
302461
|
+
}
|
|
302462
|
+
if (!this._valuesToMeasure.length) {
|
|
302463
|
+
process.nextTick(cb.bind(this, null, knownLength));
|
|
302464
|
+
return;
|
|
302465
|
+
}
|
|
302466
|
+
asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {
|
|
302467
|
+
if (err) {
|
|
302468
|
+
cb(err);
|
|
302469
|
+
return;
|
|
302470
|
+
}
|
|
302471
|
+
values.forEach(function(length2) {
|
|
302472
|
+
knownLength += length2;
|
|
302473
|
+
});
|
|
302474
|
+
cb(null, knownLength);
|
|
302475
|
+
});
|
|
302476
|
+
};
|
|
302477
|
+
FormData6.prototype.submit = function(params, cb) {
|
|
302478
|
+
var request3, options23, defaults6 = { method: "post" };
|
|
302479
|
+
if (typeof params == "string") {
|
|
302480
|
+
params = parseUrl(params);
|
|
302481
|
+
options23 = populate3({
|
|
302482
|
+
port: params.port,
|
|
302483
|
+
path: params.pathname,
|
|
302484
|
+
host: params.hostname,
|
|
302485
|
+
protocol: params.protocol
|
|
302486
|
+
}, defaults6);
|
|
302487
|
+
} else {
|
|
302488
|
+
options23 = populate3(params, defaults6);
|
|
302489
|
+
if (!options23.port) {
|
|
302490
|
+
options23.port = options23.protocol == "https:" ? 443 : 80;
|
|
302491
|
+
}
|
|
302492
|
+
}
|
|
302493
|
+
options23.headers = this.getHeaders(params.headers);
|
|
302494
|
+
if (options23.protocol == "https:") {
|
|
302495
|
+
request3 = https7.request(options23);
|
|
302496
|
+
} else {
|
|
302497
|
+
request3 = http9.request(options23);
|
|
302498
|
+
}
|
|
302499
|
+
this.getLength(function(err, length2) {
|
|
302500
|
+
if (err && err !== "Unknown stream") {
|
|
302501
|
+
this._error(err);
|
|
302502
|
+
return;
|
|
302503
|
+
}
|
|
302504
|
+
if (length2) {
|
|
302505
|
+
request3.setHeader("Content-Length", length2);
|
|
302506
|
+
}
|
|
302507
|
+
this.pipe(request3);
|
|
302508
|
+
if (cb) {
|
|
302509
|
+
var onResponse;
|
|
302510
|
+
var callback = function(error, responce) {
|
|
302511
|
+
request3.removeListener("error", callback);
|
|
302512
|
+
request3.removeListener("response", onResponse);
|
|
302513
|
+
return cb.call(this, error, responce);
|
|
302514
|
+
};
|
|
302515
|
+
onResponse = callback.bind(this, null);
|
|
302516
|
+
request3.on("error", callback);
|
|
302517
|
+
request3.on("response", onResponse);
|
|
302518
|
+
}
|
|
302519
|
+
}.bind(this));
|
|
302520
|
+
return request3;
|
|
302521
|
+
};
|
|
302522
|
+
FormData6.prototype._error = function(err) {
|
|
302523
|
+
if (!this.error) {
|
|
302524
|
+
this.error = err;
|
|
302525
|
+
this.pause();
|
|
302526
|
+
this.emit("error", err);
|
|
302527
|
+
}
|
|
302528
|
+
};
|
|
302529
|
+
FormData6.prototype.toString = function() {
|
|
302530
|
+
return "[object FormData]";
|
|
302531
|
+
};
|
|
302532
|
+
setToStringTag(FormData6, "FormData");
|
|
302533
|
+
}
|
|
302534
|
+
});
|
|
302535
|
+
|
|
302220
302536
|
// ../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/internal/constants.js
|
|
302221
302537
|
var require_constants15 = __commonJS({
|
|
302222
302538
|
"../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/internal/constants.js"(exports2, module2) {
|
|
@@ -304118,9 +304434,9 @@ var require_semver6 = __commonJS({
|
|
|
304118
304434
|
}
|
|
304119
304435
|
});
|
|
304120
304436
|
|
|
304121
|
-
// ../../node_modules/.pnpm/isomorphic-ws@5.0.0_ws@8.18.
|
|
304437
|
+
// ../../node_modules/.pnpm/isomorphic-ws@5.0.0_ws@8.18.3/node_modules/isomorphic-ws/node.js
|
|
304122
304438
|
var require_node8 = __commonJS({
|
|
304123
|
-
"../../node_modules/.pnpm/isomorphic-ws@5.0.0_ws@8.18.
|
|
304439
|
+
"../../node_modules/.pnpm/isomorphic-ws@5.0.0_ws@8.18.3/node_modules/isomorphic-ws/node.js"(exports2, module2) {
|
|
304124
304440
|
"use strict";
|
|
304125
304441
|
module2.exports = require("ws");
|
|
304126
304442
|
}
|
|
@@ -364834,7 +365150,7 @@ var require_constants22 = __commonJS({
|
|
|
364834
365150
|
var require_utils32 = __commonJS({
|
|
364835
365151
|
"../../node_modules/.pnpm/scryptsy@2.1.0/node_modules/scryptsy/lib/utils.js"(exports2, module2) {
|
|
364836
365152
|
"use strict";
|
|
364837
|
-
var
|
|
365153
|
+
var crypto38 = require("crypto");
|
|
364838
365154
|
var MAX_VALUE3 = 2147483647;
|
|
364839
365155
|
var DEFAULT_PROMISE_INTERVAL = 5e3;
|
|
364840
365156
|
function checkAndInit(key2, salt, N11, r27, p61, dkLen, progressCallback) {
|
|
@@ -364849,7 +365165,7 @@ var require_utils32 = __commonJS({
|
|
|
364849
365165
|
let B32 = new Int32Array(16);
|
|
364850
365166
|
let x20 = new Int32Array(16);
|
|
364851
365167
|
let _X = Buffer.alloc(64);
|
|
364852
|
-
let B13 =
|
|
365168
|
+
let B13 = crypto38.pbkdf2Sync(key2, salt, 1, p61 * 128 * r27, "sha256");
|
|
364853
365169
|
let tickCallback;
|
|
364854
365170
|
if (progressCallback) {
|
|
364855
365171
|
let totalOps = p61 * N11 * 2;
|
|
@@ -365021,7 +365337,7 @@ var require_utils32 = __commonJS({
|
|
|
365021
365337
|
var require_scryptSync = __commonJS({
|
|
365022
365338
|
"../../node_modules/.pnpm/scryptsy@2.1.0/node_modules/scryptsy/lib/scryptSync.js"(exports2, module2) {
|
|
365023
365339
|
"use strict";
|
|
365024
|
-
var
|
|
365340
|
+
var crypto38 = require("crypto");
|
|
365025
365341
|
var {
|
|
365026
365342
|
checkAndInit,
|
|
365027
365343
|
smixSync
|
|
@@ -365039,7 +365355,7 @@ var require_scryptSync = __commonJS({
|
|
|
365039
365355
|
for (var i56 = 0; i56 < p61; i56++) {
|
|
365040
365356
|
smixSync(B13, i56 * 128 * r27, r27, N11, V6, XY, _X, B32, x20, tickCallback);
|
|
365041
365357
|
}
|
|
365042
|
-
return
|
|
365358
|
+
return crypto38.pbkdf2Sync(key2, B13, 1, dkLen, "sha256");
|
|
365043
365359
|
}
|
|
365044
365360
|
module2.exports = scrypt4;
|
|
365045
365361
|
}
|
|
@@ -365049,7 +365365,7 @@ var require_scryptSync = __commonJS({
|
|
|
365049
365365
|
var require_scrypt2 = __commonJS({
|
|
365050
365366
|
"../../node_modules/.pnpm/scryptsy@2.1.0/node_modules/scryptsy/lib/scrypt.js"(exports2, module2) {
|
|
365051
365367
|
"use strict";
|
|
365052
|
-
var
|
|
365368
|
+
var crypto38 = require("crypto");
|
|
365053
365369
|
var {
|
|
365054
365370
|
checkAndInit,
|
|
365055
365371
|
smix
|
|
@@ -365067,7 +365383,7 @@ var require_scrypt2 = __commonJS({
|
|
|
365067
365383
|
for (var i56 = 0; i56 < p61; i56++) {
|
|
365068
365384
|
await smix(B13, i56 * 128 * r27, r27, N11, V6, XY, _X, B32, x20, tickCallback, promiseInterval);
|
|
365069
365385
|
}
|
|
365070
|
-
return
|
|
365386
|
+
return crypto38.pbkdf2Sync(key2, B13, 1, dkLen, "sha256");
|
|
365071
365387
|
}
|
|
365072
365388
|
module2.exports = scrypt4;
|
|
365073
365389
|
}
|
|
@@ -365177,16 +365493,16 @@ var require_encryptedData = __commonJS({
|
|
|
365177
365493
|
// ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/rng.js
|
|
365178
365494
|
function rng3() {
|
|
365179
365495
|
if (poolPtr3 > rnds8Pool3.length - 16) {
|
|
365180
|
-
|
|
365496
|
+
import_crypto44.default.randomFillSync(rnds8Pool3);
|
|
365181
365497
|
poolPtr3 = 0;
|
|
365182
365498
|
}
|
|
365183
365499
|
return rnds8Pool3.slice(poolPtr3, poolPtr3 += 16);
|
|
365184
365500
|
}
|
|
365185
|
-
var
|
|
365501
|
+
var import_crypto44, rnds8Pool3, poolPtr3;
|
|
365186
365502
|
var init_rng2 = __esm({
|
|
365187
365503
|
"../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/rng.js"() {
|
|
365188
365504
|
"use strict";
|
|
365189
|
-
|
|
365505
|
+
import_crypto44 = __toESM(require("crypto"));
|
|
365190
365506
|
rnds8Pool3 = new Uint8Array(256);
|
|
365191
365507
|
poolPtr3 = rnds8Pool3.length;
|
|
365192
365508
|
}
|
|
@@ -365391,13 +365707,13 @@ function md52(bytes7) {
|
|
|
365391
365707
|
} else if (typeof bytes7 === "string") {
|
|
365392
365708
|
bytes7 = Buffer.from(bytes7, "utf8");
|
|
365393
365709
|
}
|
|
365394
|
-
return
|
|
365710
|
+
return import_crypto45.default.createHash("md5").update(bytes7).digest();
|
|
365395
365711
|
}
|
|
365396
|
-
var
|
|
365712
|
+
var import_crypto45, md5_default2;
|
|
365397
365713
|
var init_md52 = __esm({
|
|
365398
365714
|
"../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/md5.js"() {
|
|
365399
365715
|
"use strict";
|
|
365400
|
-
|
|
365716
|
+
import_crypto45 = __toESM(require("crypto"));
|
|
365401
365717
|
md5_default2 = md52;
|
|
365402
365718
|
}
|
|
365403
365719
|
});
|
|
@@ -365446,13 +365762,13 @@ function sha12(bytes7) {
|
|
|
365446
365762
|
} else if (typeof bytes7 === "string") {
|
|
365447
365763
|
bytes7 = Buffer.from(bytes7, "utf8");
|
|
365448
365764
|
}
|
|
365449
|
-
return
|
|
365765
|
+
return import_crypto46.default.createHash("sha1").update(bytes7).digest();
|
|
365450
365766
|
}
|
|
365451
|
-
var
|
|
365767
|
+
var import_crypto46, sha1_default2;
|
|
365452
365768
|
var init_sha12 = __esm({
|
|
365453
365769
|
"../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/sha1.js"() {
|
|
365454
365770
|
"use strict";
|
|
365455
|
-
|
|
365771
|
+
import_crypto46 = __toESM(require("crypto"));
|
|
365456
365772
|
sha1_default2 = sha12;
|
|
365457
365773
|
}
|
|
365458
365774
|
});
|
|
@@ -365530,12 +365846,12 @@ var require_randomness = __commonJS({
|
|
|
365530
365846
|
exports2.Randomness = void 0;
|
|
365531
365847
|
var ed25519_1 = require_lib5();
|
|
365532
365848
|
var uuid_1 = (init_esm_node2(), __toCommonJS(esm_node_exports2));
|
|
365533
|
-
var
|
|
365849
|
+
var crypto38 = require("crypto");
|
|
365534
365850
|
var Randomness = class {
|
|
365535
365851
|
constructor(init5) {
|
|
365536
365852
|
this.salt = init5?.salt || Buffer.from(ed25519_1.utils.randomBytes(32));
|
|
365537
365853
|
this.iv = init5?.iv || Buffer.from(ed25519_1.utils.randomBytes(16));
|
|
365538
|
-
this.id = init5?.id || uuid_1.v4({ random:
|
|
365854
|
+
this.id = init5?.id || uuid_1.v4({ random: crypto38.randomBytes(16) });
|
|
365539
365855
|
}
|
|
365540
365856
|
};
|
|
365541
365857
|
exports2.Randomness = Randomness;
|
|
@@ -367999,8 +368315,8 @@ var require_bls = __commonJS({
|
|
|
367999
368315
|
const name3 = "bls_c";
|
|
368000
368316
|
return new Promise((resolve) => {
|
|
368001
368317
|
if (isNodeJs) {
|
|
368002
|
-
const
|
|
368003
|
-
exports3.getRandomValues =
|
|
368318
|
+
const crypto38 = require("crypto");
|
|
368319
|
+
exports3.getRandomValues = crypto38.randomFillSync;
|
|
368004
368320
|
const path4 = require("path");
|
|
368005
368321
|
const js2 = globRequire_js(`./${name3}.js`);
|
|
368006
368322
|
const Module2 = {
|
|
@@ -368015,8 +368331,8 @@ var require_bls = __commonJS({
|
|
|
368015
368331
|
resolve();
|
|
368016
368332
|
});
|
|
368017
368333
|
} else {
|
|
368018
|
-
const
|
|
368019
|
-
exports3.getRandomValues = (x20) =>
|
|
368334
|
+
const crypto38 = window.crypto || window.msCrypto;
|
|
368335
|
+
exports3.getRandomValues = (x20) => crypto38.getRandomValues(x20);
|
|
368020
368336
|
fetch(`./${name3}.wasm`).then((response) => response.arrayBuffer()).then((buffer2) => new Uint8Array(buffer2)).then(() => {
|
|
368021
368337
|
if (typeof module2 !== "undefined" && module2.exports) {
|
|
368022
368338
|
exports3.mod = require_bls_c()();
|
|
@@ -404979,7 +405295,7 @@ var require_browser3 = __commonJS({
|
|
|
404979
405295
|
var require_object_hash = __commonJS({
|
|
404980
405296
|
"../../node_modules/.pnpm/object-hash@2.2.0/node_modules/object-hash/index.js"(exports2, module2) {
|
|
404981
405297
|
"use strict";
|
|
404982
|
-
var
|
|
405298
|
+
var crypto38 = require("crypto");
|
|
404983
405299
|
exports2 = module2.exports = objectHash;
|
|
404984
405300
|
function objectHash(object5, options23) {
|
|
404985
405301
|
options23 = applyDefaults(object5, options23);
|
|
@@ -404997,7 +405313,7 @@ var require_object_hash = __commonJS({
|
|
|
404997
405313
|
exports2.keysMD5 = function(object5) {
|
|
404998
405314
|
return objectHash(object5, { algorithm: "md5", encoding: "hex", excludeValues: true });
|
|
404999
405315
|
};
|
|
405000
|
-
var hashes2 =
|
|
405316
|
+
var hashes2 = crypto38.getHashes ? crypto38.getHashes().slice() : ["sha1", "md5"];
|
|
405001
405317
|
hashes2.push("passthrough");
|
|
405002
405318
|
var encodings = ["buffer", "hex", "binary", "base64"];
|
|
405003
405319
|
function applyDefaults(object5, sourceOptions) {
|
|
@@ -405043,7 +405359,7 @@ var require_object_hash = __commonJS({
|
|
|
405043
405359
|
function hash11(object5, options23) {
|
|
405044
405360
|
var hashingStream;
|
|
405045
405361
|
if (options23.algorithm !== "passthrough") {
|
|
405046
|
-
hashingStream =
|
|
405362
|
+
hashingStream = crypto38.createHash(options23.algorithm);
|
|
405047
405363
|
} else {
|
|
405048
405364
|
hashingStream = new PassThrough5();
|
|
405049
405365
|
}
|
|
@@ -461791,9 +462107,9 @@ var require_dist31 = __commonJS({
|
|
|
461791
462107
|
}
|
|
461792
462108
|
});
|
|
461793
462109
|
|
|
461794
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
462110
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/errors/network.js
|
|
461795
462111
|
var require_network2 = __commonJS({
|
|
461796
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
462112
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/errors/network.js"(exports2) {
|
|
461797
462113
|
"use strict";
|
|
461798
462114
|
function _typeof(o37) {
|
|
461799
462115
|
"@babel/helpers - typeof";
|
|
@@ -461931,9 +462247,9 @@ var require_network2 = __commonJS({
|
|
|
461931
462247
|
}
|
|
461932
462248
|
});
|
|
461933
462249
|
|
|
461934
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
462250
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/errors/not_found.js
|
|
461935
462251
|
var require_not_found = __commonJS({
|
|
461936
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
462252
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/errors/not_found.js"(exports2) {
|
|
461937
462253
|
"use strict";
|
|
461938
462254
|
function _typeof(o37) {
|
|
461939
462255
|
"@babel/helpers - typeof";
|
|
@@ -462034,9 +462350,9 @@ var require_not_found = __commonJS({
|
|
|
462034
462350
|
}
|
|
462035
462351
|
});
|
|
462036
462352
|
|
|
462037
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
462353
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/errors/bad_request.js
|
|
462038
462354
|
var require_bad_request = __commonJS({
|
|
462039
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
462355
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/errors/bad_request.js"(exports2) {
|
|
462040
462356
|
"use strict";
|
|
462041
462357
|
function _typeof(o37) {
|
|
462042
462358
|
"@babel/helpers - typeof";
|
|
@@ -462137,9 +462453,9 @@ var require_bad_request = __commonJS({
|
|
|
462137
462453
|
}
|
|
462138
462454
|
});
|
|
462139
462455
|
|
|
462140
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
462456
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/errors/bad_response.js
|
|
462141
462457
|
var require_bad_response = __commonJS({
|
|
462142
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
462458
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/errors/bad_response.js"(exports2) {
|
|
462143
462459
|
"use strict";
|
|
462144
462460
|
function _typeof(o37) {
|
|
462145
462461
|
"@babel/helpers - typeof";
|
|
@@ -462240,9 +462556,9 @@ var require_bad_response = __commonJS({
|
|
|
462240
462556
|
}
|
|
462241
462557
|
});
|
|
462242
462558
|
|
|
462243
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
462559
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/errors/account_requires_memo.js
|
|
462244
462560
|
var require_account_requires_memo = __commonJS({
|
|
462245
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
462561
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/errors/account_requires_memo.js"(exports2) {
|
|
462246
462562
|
"use strict";
|
|
462247
462563
|
function _typeof(o37) {
|
|
462248
462564
|
"@babel/helpers - typeof";
|
|
@@ -462377,9 +462693,9 @@ var require_account_requires_memo = __commonJS({
|
|
|
462377
462693
|
}
|
|
462378
462694
|
});
|
|
462379
462695
|
|
|
462380
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
462696
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/errors/index.js
|
|
462381
462697
|
var require_errors18 = __commonJS({
|
|
462382
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
462698
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/errors/index.js"(exports2) {
|
|
462383
462699
|
"use strict";
|
|
462384
462700
|
Object.defineProperty(exports2, "__esModule", {
|
|
462385
462701
|
value: true
|
|
@@ -462452,9 +462768,9 @@ var require_errors18 = __commonJS({
|
|
|
462452
462768
|
}
|
|
462453
462769
|
});
|
|
462454
462770
|
|
|
462455
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
462771
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/config.js
|
|
462456
462772
|
var require_config5 = __commonJS({
|
|
462457
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
462773
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/config.js"(exports2) {
|
|
462458
462774
|
"use strict";
|
|
462459
462775
|
Object.defineProperty(exports2, "__esModule", {
|
|
462460
462776
|
value: true
|
|
@@ -462560,9 +462876,9 @@ var require_config5 = __commonJS({
|
|
|
462560
462876
|
}
|
|
462561
462877
|
});
|
|
462562
462878
|
|
|
462563
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
462879
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/utils.js
|
|
462564
462880
|
var require_utils43 = __commonJS({
|
|
462565
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
462881
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/utils.js"(exports2) {
|
|
462566
462882
|
"use strict";
|
|
462567
462883
|
Object.defineProperty(exports2, "__esModule", {
|
|
462568
462884
|
value: true
|
|
@@ -466379,9 +466695,9 @@ var require_toml = __commonJS({
|
|
|
466379
466695
|
}
|
|
466380
466696
|
});
|
|
466381
466697
|
|
|
466382
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
466698
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/http-client/types.js
|
|
466383
466699
|
var require_types29 = __commonJS({
|
|
466384
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
466700
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/http-client/types.js"(exports2) {
|
|
466385
466701
|
"use strict";
|
|
466386
466702
|
Object.defineProperty(exports2, "__esModule", {
|
|
466387
466703
|
value: true
|
|
@@ -466449,9 +466765,9 @@ var require_types29 = __commonJS({
|
|
|
466449
466765
|
}
|
|
466450
466766
|
});
|
|
466451
466767
|
|
|
466452
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
466768
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/http-client/axios-client.js
|
|
466453
466769
|
var require_axios_client = __commonJS({
|
|
466454
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
466770
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/http-client/axios-client.js"(exports2) {
|
|
466455
466771
|
"use strict";
|
|
466456
466772
|
Object.defineProperty(exports2, "__esModule", {
|
|
466457
466773
|
value: true
|
|
@@ -466466,9 +466782,9 @@ var require_axios_client = __commonJS({
|
|
|
466466
466782
|
}
|
|
466467
466783
|
});
|
|
466468
466784
|
|
|
466469
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
466785
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/http-client/index.js
|
|
466470
466786
|
var require_http_client = __commonJS({
|
|
466471
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
466787
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/http-client/index.js"(exports2) {
|
|
466472
466788
|
"use strict";
|
|
466473
466789
|
Object.defineProperty(exports2, "__esModule", {
|
|
466474
466790
|
value: true
|
|
@@ -466509,9 +466825,9 @@ var require_http_client = __commonJS({
|
|
|
466509
466825
|
}
|
|
466510
466826
|
});
|
|
466511
466827
|
|
|
466512
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
466828
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/stellartoml/index.js
|
|
466513
466829
|
var require_stellartoml = __commonJS({
|
|
466514
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
466830
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/stellartoml/index.js"(exports2) {
|
|
466515
466831
|
"use strict";
|
|
466516
466832
|
Object.defineProperty(exports2, "__esModule", {
|
|
466517
466833
|
value: true
|
|
@@ -487065,9 +487381,9 @@ var require_URI = __commonJS({
|
|
|
487065
487381
|
}
|
|
487066
487382
|
});
|
|
487067
487383
|
|
|
487068
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
487384
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/federation/server.js
|
|
487069
487385
|
var require_server2 = __commonJS({
|
|
487070
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
487386
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/federation/server.js"(exports2) {
|
|
487071
487387
|
"use strict";
|
|
487072
487388
|
Object.defineProperty(exports2, "__esModule", {
|
|
487073
487389
|
value: true
|
|
@@ -487483,9 +487799,9 @@ var require_server2 = __commonJS({
|
|
|
487483
487799
|
}
|
|
487484
487800
|
});
|
|
487485
487801
|
|
|
487486
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
487802
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/federation/api.js
|
|
487487
487803
|
var require_api6 = __commonJS({
|
|
487488
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
487804
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/federation/api.js"(exports2) {
|
|
487489
487805
|
"use strict";
|
|
487490
487806
|
Object.defineProperty(exports2, "__esModule", {
|
|
487491
487807
|
value: true
|
|
@@ -487494,9 +487810,9 @@ var require_api6 = __commonJS({
|
|
|
487494
487810
|
}
|
|
487495
487811
|
});
|
|
487496
487812
|
|
|
487497
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
487813
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/federation/index.js
|
|
487498
487814
|
var require_federation = __commonJS({
|
|
487499
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
487815
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/federation/index.js"(exports2) {
|
|
487500
487816
|
"use strict";
|
|
487501
487817
|
Object.defineProperty(exports2, "__esModule", {
|
|
487502
487818
|
value: true
|
|
@@ -487536,9 +487852,9 @@ var require_federation = __commonJS({
|
|
|
487536
487852
|
}
|
|
487537
487853
|
});
|
|
487538
487854
|
|
|
487539
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
487855
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/webauth/errors.js
|
|
487540
487856
|
var require_errors19 = __commonJS({
|
|
487541
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
487857
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/webauth/errors.js"(exports2) {
|
|
487542
487858
|
"use strict";
|
|
487543
487859
|
function _typeof(o37) {
|
|
487544
487860
|
"@babel/helpers - typeof";
|
|
@@ -487671,9 +487987,9 @@ var require_errors19 = __commonJS({
|
|
|
487671
487987
|
}
|
|
487672
487988
|
});
|
|
487673
487989
|
|
|
487674
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
487990
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/webauth/utils.js
|
|
487675
487991
|
var require_utils46 = __commonJS({
|
|
487676
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
487992
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/webauth/utils.js"(exports2) {
|
|
487677
487993
|
"use strict";
|
|
487678
487994
|
Object.defineProperty(exports2, "__esModule", {
|
|
487679
487995
|
value: true
|
|
@@ -488070,9 +488386,9 @@ var require_utils46 = __commonJS({
|
|
|
488070
488386
|
}
|
|
488071
488387
|
});
|
|
488072
488388
|
|
|
488073
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
488389
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/webauth/index.js
|
|
488074
488390
|
var require_webauth = __commonJS({
|
|
488075
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
488391
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/webauth/index.js"(exports2) {
|
|
488076
488392
|
"use strict";
|
|
488077
488393
|
Object.defineProperty(exports2, "__esModule", {
|
|
488078
488394
|
value: true
|
|
@@ -488105,9 +488421,9 @@ var require_webauth = __commonJS({
|
|
|
488105
488421
|
}
|
|
488106
488422
|
});
|
|
488107
488423
|
|
|
488108
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
488424
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/friendbot/index.js
|
|
488109
488425
|
var require_friendbot = __commonJS({
|
|
488110
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
488426
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/friendbot/index.js"(exports2) {
|
|
488111
488427
|
"use strict";
|
|
488112
488428
|
Object.defineProperty(exports2, "__esModule", {
|
|
488113
488429
|
value: true
|
|
@@ -488116,9 +488432,9 @@ var require_friendbot = __commonJS({
|
|
|
488116
488432
|
}
|
|
488117
488433
|
});
|
|
488118
488434
|
|
|
488119
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
488435
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/horizon_api.js
|
|
488120
488436
|
var require_horizon_api = __commonJS({
|
|
488121
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
488437
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/horizon_api.js"(exports2) {
|
|
488122
488438
|
"use strict";
|
|
488123
488439
|
Object.defineProperty(exports2, "__esModule", {
|
|
488124
488440
|
value: true
|
|
@@ -488217,9 +488533,9 @@ var require_horizon_api = __commonJS({
|
|
|
488217
488533
|
}
|
|
488218
488534
|
});
|
|
488219
488535
|
|
|
488220
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
488536
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/types/effects.js
|
|
488221
488537
|
var require_effects = __commonJS({
|
|
488222
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
488538
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/types/effects.js"(exports2) {
|
|
488223
488539
|
"use strict";
|
|
488224
488540
|
Object.defineProperty(exports2, "__esModule", {
|
|
488225
488541
|
value: true
|
|
@@ -488284,9 +488600,9 @@ var require_effects = __commonJS({
|
|
|
488284
488600
|
}
|
|
488285
488601
|
});
|
|
488286
488602
|
|
|
488287
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
488603
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/server_api.js
|
|
488288
488604
|
var require_server_api = __commonJS({
|
|
488289
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
488605
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/server_api.js"(exports2) {
|
|
488290
488606
|
"use strict";
|
|
488291
488607
|
function _typeof(o37) {
|
|
488292
488608
|
"@babel/helpers - typeof";
|
|
@@ -488337,9 +488653,9 @@ var require_server_api = __commonJS({
|
|
|
488337
488653
|
}
|
|
488338
488654
|
});
|
|
488339
488655
|
|
|
488340
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
488656
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/account_response.js
|
|
488341
488657
|
var require_account_response = __commonJS({
|
|
488342
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
488658
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/account_response.js"(exports2) {
|
|
488343
488659
|
"use strict";
|
|
488344
488660
|
Object.defineProperty(exports2, "__esModule", {
|
|
488345
488661
|
value: true
|
|
@@ -488826,9 +489142,9 @@ var require_URITemplate = __commonJS({
|
|
|
488826
489142
|
}
|
|
488827
489143
|
});
|
|
488828
489144
|
|
|
488829
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
489145
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/horizon_axios_client.js
|
|
488830
489146
|
var require_horizon_axios_client = __commonJS({
|
|
488831
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
489147
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/horizon_axios_client.js"(exports2) {
|
|
488832
489148
|
"use strict";
|
|
488833
489149
|
Object.defineProperty(exports2, "__esModule", {
|
|
488834
489150
|
value: true
|
|
@@ -488849,7 +489165,7 @@ var require_horizon_axios_client = __commonJS({
|
|
|
488849
489165
|
return o38 && "function" == typeof Symbol && o38.constructor === Symbol && o38 !== Symbol.prototype ? "symbol" : typeof o38;
|
|
488850
489166
|
}, _typeof(o37);
|
|
488851
489167
|
}
|
|
488852
|
-
var version33 = exports2.version = "14.
|
|
489168
|
+
var version33 = exports2.version = "14.1.0";
|
|
488853
489169
|
var SERVER_TIME_MAP = exports2.SERVER_TIME_MAP = {};
|
|
488854
489170
|
var AxiosClient = exports2.AxiosClient = (0, _httpClient.create)({
|
|
488855
489171
|
headers: {
|
|
@@ -488899,9 +489215,9 @@ var require_horizon_axios_client = __commonJS({
|
|
|
488899
489215
|
}
|
|
488900
489216
|
});
|
|
488901
489217
|
|
|
488902
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
489218
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/call_builder.js
|
|
488903
489219
|
var require_call_builder = __commonJS({
|
|
488904
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
489220
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/call_builder.js"(exports2) {
|
|
488905
489221
|
"use strict";
|
|
488906
489222
|
Object.defineProperty(exports2, "__esModule", {
|
|
488907
489223
|
value: true
|
|
@@ -489391,9 +489707,9 @@ var require_call_builder = __commonJS({
|
|
|
489391
489707
|
}
|
|
489392
489708
|
});
|
|
489393
489709
|
|
|
489394
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
489710
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/account_call_builder.js
|
|
489395
489711
|
var require_account_call_builder = __commonJS({
|
|
489396
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
489712
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/account_call_builder.js"(exports2) {
|
|
489397
489713
|
"use strict";
|
|
489398
489714
|
function _typeof(o37) {
|
|
489399
489715
|
"@babel/helpers - typeof";
|
|
@@ -489522,9 +489838,9 @@ var require_account_call_builder = __commonJS({
|
|
|
489522
489838
|
}
|
|
489523
489839
|
});
|
|
489524
489840
|
|
|
489525
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
489841
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/assets_call_builder.js
|
|
489526
489842
|
var require_assets_call_builder = __commonJS({
|
|
489527
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
489843
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/assets_call_builder.js"(exports2) {
|
|
489528
489844
|
"use strict";
|
|
489529
489845
|
function _typeof(o37) {
|
|
489530
489846
|
"@babel/helpers - typeof";
|
|
@@ -489634,9 +489950,9 @@ var require_assets_call_builder = __commonJS({
|
|
|
489634
489950
|
}
|
|
489635
489951
|
});
|
|
489636
489952
|
|
|
489637
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
489953
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/claimable_balances_call_builder.js
|
|
489638
489954
|
var require_claimable_balances_call_builder = __commonJS({
|
|
489639
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
489955
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/claimable_balances_call_builder.js"(exports2) {
|
|
489640
489956
|
"use strict";
|
|
489641
489957
|
function _typeof(o37) {
|
|
489642
489958
|
"@babel/helpers - typeof";
|
|
@@ -489759,9 +490075,9 @@ var require_claimable_balances_call_builder = __commonJS({
|
|
|
489759
490075
|
}
|
|
489760
490076
|
});
|
|
489761
490077
|
|
|
489762
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
490078
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/effect_call_builder.js
|
|
489763
490079
|
var require_effect_call_builder = __commonJS({
|
|
489764
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
490080
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/effect_call_builder.js"(exports2) {
|
|
489765
490081
|
"use strict";
|
|
489766
490082
|
function _typeof(o37) {
|
|
489767
490083
|
"@babel/helpers - typeof";
|
|
@@ -489884,9 +490200,9 @@ var require_effect_call_builder = __commonJS({
|
|
|
489884
490200
|
}
|
|
489885
490201
|
});
|
|
489886
490202
|
|
|
489887
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
490203
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/friendbot_builder.js
|
|
489888
490204
|
var require_friendbot_builder = __commonJS({
|
|
489889
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
490205
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/friendbot_builder.js"(exports2) {
|
|
489890
490206
|
"use strict";
|
|
489891
490207
|
function _typeof(o37) {
|
|
489892
490208
|
"@babel/helpers - typeof";
|
|
@@ -489985,9 +490301,9 @@ var require_friendbot_builder = __commonJS({
|
|
|
489985
490301
|
}
|
|
489986
490302
|
});
|
|
489987
490303
|
|
|
489988
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
490304
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/ledger_call_builder.js
|
|
489989
490305
|
var require_ledger_call_builder = __commonJS({
|
|
489990
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
490306
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/ledger_call_builder.js"(exports2) {
|
|
489991
490307
|
"use strict";
|
|
489992
490308
|
function _typeof(o37) {
|
|
489993
490309
|
"@babel/helpers - typeof";
|
|
@@ -490091,9 +490407,9 @@ var require_ledger_call_builder = __commonJS({
|
|
|
490091
490407
|
}
|
|
490092
490408
|
});
|
|
490093
490409
|
|
|
490094
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
490410
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/liquidity_pool_call_builder.js
|
|
490095
490411
|
var require_liquidity_pool_call_builder = __commonJS({
|
|
490096
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
490412
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/liquidity_pool_call_builder.js"(exports2) {
|
|
490097
490413
|
"use strict";
|
|
490098
490414
|
function _typeof(o37) {
|
|
490099
490415
|
"@babel/helpers - typeof";
|
|
@@ -490219,9 +490535,9 @@ var require_liquidity_pool_call_builder = __commonJS({
|
|
|
490219
490535
|
}
|
|
490220
490536
|
});
|
|
490221
490537
|
|
|
490222
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
490538
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/offer_call_builder.js
|
|
490223
490539
|
var require_offer_call_builder = __commonJS({
|
|
490224
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
490540
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/offer_call_builder.js"(exports2) {
|
|
490225
490541
|
"use strict";
|
|
490226
490542
|
function _typeof(o37) {
|
|
490227
490543
|
"@babel/helpers - typeof";
|
|
@@ -490367,9 +490683,9 @@ var require_offer_call_builder = __commonJS({
|
|
|
490367
490683
|
}
|
|
490368
490684
|
});
|
|
490369
490685
|
|
|
490370
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
490686
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/operation_call_builder.js
|
|
490371
490687
|
var require_operation_call_builder = __commonJS({
|
|
490372
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
490688
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/operation_call_builder.js"(exports2) {
|
|
490373
490689
|
"use strict";
|
|
490374
490690
|
function _typeof(o37) {
|
|
490375
490691
|
"@babel/helpers - typeof";
|
|
@@ -490505,9 +490821,9 @@ var require_operation_call_builder = __commonJS({
|
|
|
490505
490821
|
}
|
|
490506
490822
|
});
|
|
490507
490823
|
|
|
490508
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
490824
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/orderbook_call_builder.js
|
|
490509
490825
|
var require_orderbook_call_builder = __commonJS({
|
|
490510
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
490826
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/orderbook_call_builder.js"(exports2) {
|
|
490511
490827
|
"use strict";
|
|
490512
490828
|
function _typeof(o37) {
|
|
490513
490829
|
"@babel/helpers - typeof";
|
|
@@ -490619,9 +490935,9 @@ var require_orderbook_call_builder = __commonJS({
|
|
|
490619
490935
|
}
|
|
490620
490936
|
});
|
|
490621
490937
|
|
|
490622
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
490938
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/payment_call_builder.js
|
|
490623
490939
|
var require_payment_call_builder = __commonJS({
|
|
490624
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
490940
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/payment_call_builder.js"(exports2) {
|
|
490625
490941
|
"use strict";
|
|
490626
490942
|
function _typeof(o37) {
|
|
490627
490943
|
"@babel/helpers - typeof";
|
|
@@ -490740,9 +491056,9 @@ var require_payment_call_builder = __commonJS({
|
|
|
490740
491056
|
}
|
|
490741
491057
|
});
|
|
490742
491058
|
|
|
490743
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
491059
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/strict_receive_path_call_builder.js
|
|
490744
491060
|
var require_strict_receive_path_call_builder = __commonJS({
|
|
490745
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
491061
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/strict_receive_path_call_builder.js"(exports2) {
|
|
490746
491062
|
"use strict";
|
|
490747
491063
|
function _typeof(o37) {
|
|
490748
491064
|
"@babel/helpers - typeof";
|
|
@@ -490859,9 +491175,9 @@ var require_strict_receive_path_call_builder = __commonJS({
|
|
|
490859
491175
|
}
|
|
490860
491176
|
});
|
|
490861
491177
|
|
|
490862
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
491178
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/strict_send_path_call_builder.js
|
|
490863
491179
|
var require_strict_send_path_call_builder = __commonJS({
|
|
490864
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
491180
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/strict_send_path_call_builder.js"(exports2) {
|
|
490865
491181
|
"use strict";
|
|
490866
491182
|
function _typeof(o37) {
|
|
490867
491183
|
"@babel/helpers - typeof";
|
|
@@ -490978,9 +491294,9 @@ var require_strict_send_path_call_builder = __commonJS({
|
|
|
490978
491294
|
}
|
|
490979
491295
|
});
|
|
490980
491296
|
|
|
490981
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
491297
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/trade_aggregation_call_builder.js
|
|
490982
491298
|
var require_trade_aggregation_call_builder = __commonJS({
|
|
490983
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
491299
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/trade_aggregation_call_builder.js"(exports2) {
|
|
490984
491300
|
"use strict";
|
|
490985
491301
|
function _typeof(o37) {
|
|
490986
491302
|
"@babel/helpers - typeof";
|
|
@@ -491123,9 +491439,9 @@ var require_trade_aggregation_call_builder = __commonJS({
|
|
|
491123
491439
|
}
|
|
491124
491440
|
});
|
|
491125
491441
|
|
|
491126
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
491442
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/trades_call_builder.js
|
|
491127
491443
|
var require_trades_call_builder = __commonJS({
|
|
491128
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
491444
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/trades_call_builder.js"(exports2) {
|
|
491129
491445
|
"use strict";
|
|
491130
491446
|
function _typeof(o37) {
|
|
491131
491447
|
"@babel/helpers - typeof";
|
|
@@ -491264,9 +491580,9 @@ var require_trades_call_builder = __commonJS({
|
|
|
491264
491580
|
}
|
|
491265
491581
|
});
|
|
491266
491582
|
|
|
491267
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
491583
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/transaction_call_builder.js
|
|
491268
491584
|
var require_transaction_call_builder = __commonJS({
|
|
491269
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
491585
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/transaction_call_builder.js"(exports2) {
|
|
491270
491586
|
"use strict";
|
|
491271
491587
|
function _typeof(o37) {
|
|
491272
491588
|
"@babel/helpers - typeof";
|
|
@@ -491397,9 +491713,9 @@ var require_transaction_call_builder = __commonJS({
|
|
|
491397
491713
|
}
|
|
491398
491714
|
});
|
|
491399
491715
|
|
|
491400
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
491716
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/server.js
|
|
491401
491717
|
var require_server3 = __commonJS({
|
|
491402
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
491718
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/server.js"(exports2) {
|
|
491403
491719
|
"use strict";
|
|
491404
491720
|
Object.defineProperty(exports2, "__esModule", {
|
|
491405
491721
|
value: true
|
|
@@ -492134,9 +492450,9 @@ var require_server3 = __commonJS({
|
|
|
492134
492450
|
}
|
|
492135
492451
|
});
|
|
492136
492452
|
|
|
492137
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
492453
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/index.js
|
|
492138
492454
|
var require_horizon = __commonJS({
|
|
492139
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
492455
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/horizon/index.js"(exports2, module2) {
|
|
492140
492456
|
"use strict";
|
|
492141
492457
|
function _typeof(o37) {
|
|
492142
492458
|
"@babel/helpers - typeof";
|
|
@@ -492250,9 +492566,9 @@ var require_horizon = __commonJS({
|
|
|
492250
492566
|
}
|
|
492251
492567
|
});
|
|
492252
492568
|
|
|
492253
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
492569
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/rpc/api.js
|
|
492254
492570
|
var require_api7 = __commonJS({
|
|
492255
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
492571
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/rpc/api.js"(exports2) {
|
|
492256
492572
|
"use strict";
|
|
492257
492573
|
Object.defineProperty(exports2, "__esModule", {
|
|
492258
492574
|
value: true
|
|
@@ -492287,16 +492603,16 @@ var require_api7 = __commonJS({
|
|
|
492287
492603
|
}
|
|
492288
492604
|
});
|
|
492289
492605
|
|
|
492290
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
492606
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/rpc/axios.js
|
|
492291
492607
|
var require_axios6 = __commonJS({
|
|
492292
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
492608
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/rpc/axios.js"(exports2) {
|
|
492293
492609
|
"use strict";
|
|
492294
492610
|
Object.defineProperty(exports2, "__esModule", {
|
|
492295
492611
|
value: true
|
|
492296
492612
|
});
|
|
492297
492613
|
exports2.version = exports2.default = exports2.AxiosClient = void 0;
|
|
492298
492614
|
var _httpClient = require_http_client();
|
|
492299
|
-
var version33 = exports2.version = "14.
|
|
492615
|
+
var version33 = exports2.version = "14.1.0";
|
|
492300
492616
|
var AxiosClient = exports2.AxiosClient = (0, _httpClient.create)({
|
|
492301
492617
|
headers: {
|
|
492302
492618
|
"X-Client-Name": "js-soroban-client",
|
|
@@ -492307,9 +492623,9 @@ var require_axios6 = __commonJS({
|
|
|
492307
492623
|
}
|
|
492308
492624
|
});
|
|
492309
492625
|
|
|
492310
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
492626
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/rpc/jsonrpc.js
|
|
492311
492627
|
var require_jsonrpc2 = __commonJS({
|
|
492312
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
492628
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/rpc/jsonrpc.js"(exports2) {
|
|
492313
492629
|
"use strict";
|
|
492314
492630
|
Object.defineProperty(exports2, "__esModule", {
|
|
492315
492631
|
value: true
|
|
@@ -492465,9 +492781,9 @@ var require_jsonrpc2 = __commonJS({
|
|
|
492465
492781
|
}
|
|
492466
492782
|
});
|
|
492467
492783
|
|
|
492468
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
492784
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/rpc/parsers.js
|
|
492469
492785
|
var require_parsers2 = __commonJS({
|
|
492470
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
492786
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/rpc/parsers.js"(exports2) {
|
|
492471
492787
|
"use strict";
|
|
492472
492788
|
Object.defineProperty(exports2, "__esModule", {
|
|
492473
492789
|
value: true
|
|
@@ -492686,9 +493002,9 @@ var require_parsers2 = __commonJS({
|
|
|
492686
493002
|
}
|
|
492687
493003
|
});
|
|
492688
493004
|
|
|
492689
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
493005
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/rpc/transaction.js
|
|
492690
493006
|
var require_transaction7 = __commonJS({
|
|
492691
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
493007
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/rpc/transaction.js"(exports2) {
|
|
492692
493008
|
"use strict";
|
|
492693
493009
|
Object.defineProperty(exports2, "__esModule", {
|
|
492694
493010
|
value: true
|
|
@@ -492744,9 +493060,9 @@ var require_transaction7 = __commonJS({
|
|
|
492744
493060
|
}
|
|
492745
493061
|
});
|
|
492746
493062
|
|
|
492747
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
493063
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/rpc/server.js
|
|
492748
493064
|
var require_server4 = __commonJS({
|
|
492749
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
493065
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/rpc/server.js"(exports2) {
|
|
492750
493066
|
"use strict";
|
|
492751
493067
|
Object.defineProperty(exports2, "__esModule", {
|
|
492752
493068
|
value: true
|
|
@@ -493759,9 +494075,9 @@ var require_server4 = __commonJS({
|
|
|
493759
494075
|
}
|
|
493760
494076
|
});
|
|
493761
494077
|
|
|
493762
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
494078
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/rpc/index.js
|
|
493763
494079
|
var require_rpc3 = __commonJS({
|
|
493764
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
494080
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/rpc/index.js"(exports2, module2) {
|
|
493765
494081
|
"use strict";
|
|
493766
494082
|
Object.defineProperty(exports2, "__esModule", {
|
|
493767
494083
|
value: true
|
|
@@ -493858,9 +494174,9 @@ var require_rpc3 = __commonJS({
|
|
|
493858
494174
|
}
|
|
493859
494175
|
});
|
|
493860
494176
|
|
|
493861
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
494177
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/contract/rust_result.js
|
|
493862
494178
|
var require_rust_result = __commonJS({
|
|
493863
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
494179
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/contract/rust_result.js"(exports2) {
|
|
493864
494180
|
"use strict";
|
|
493865
494181
|
Object.defineProperty(exports2, "__esModule", {
|
|
493866
494182
|
value: true
|
|
@@ -493960,9 +494276,9 @@ var require_rust_result = __commonJS({
|
|
|
493960
494276
|
}
|
|
493961
494277
|
});
|
|
493962
494278
|
|
|
493963
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
494279
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/contract/types.js
|
|
493964
494280
|
var require_types30 = __commonJS({
|
|
493965
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
494281
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/contract/types.js"(exports2) {
|
|
493966
494282
|
"use strict";
|
|
493967
494283
|
Object.defineProperty(exports2, "__esModule", {
|
|
493968
494284
|
value: true
|
|
@@ -493974,9 +494290,9 @@ var require_types30 = __commonJS({
|
|
|
493974
494290
|
}
|
|
493975
494291
|
});
|
|
493976
494292
|
|
|
493977
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
494293
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/contract/utils.js
|
|
493978
494294
|
var require_utils47 = __commonJS({
|
|
493979
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
494295
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/contract/utils.js"(exports2) {
|
|
493980
494296
|
"use strict";
|
|
493981
494297
|
Object.defineProperty(exports2, "__esModule", {
|
|
493982
494298
|
value: true
|
|
@@ -493985,6 +494301,7 @@ var require_utils47 = __commonJS({
|
|
|
493985
494301
|
exports2.getAccount = getAccount12;
|
|
493986
494302
|
exports2.implementsToString = implementsToString;
|
|
493987
494303
|
exports2.processSpecEntryStream = processSpecEntryStream;
|
|
494304
|
+
exports2.specFromWasm = specFromWasm;
|
|
493988
494305
|
exports2.withExponentialBackoff = withExponentialBackoff;
|
|
493989
494306
|
var _stellarBase = require_lib62();
|
|
493990
494307
|
var _types = require_types30();
|
|
@@ -494071,6 +494388,34 @@ var require_utils47 = __commonJS({
|
|
|
494071
494388
|
r28 ? i56 ? i56(e37, r28, { value: n113, enumerable: !t44, configurable: !t44, writable: !t44 }) : e37[r28] = n113 : (o37("next", 0), o37("throw", 1), o37("return", 2));
|
|
494072
494389
|
}, _regeneratorDefine2(e36, r27, n112, t43);
|
|
494073
494390
|
}
|
|
494391
|
+
function _toConsumableArray(r27) {
|
|
494392
|
+
return _arrayWithoutHoles(r27) || _iterableToArray(r27) || _unsupportedIterableToArray2(r27) || _nonIterableSpread();
|
|
494393
|
+
}
|
|
494394
|
+
function _nonIterableSpread() {
|
|
494395
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
494396
|
+
}
|
|
494397
|
+
function _unsupportedIterableToArray2(r27, a63) {
|
|
494398
|
+
if (r27) {
|
|
494399
|
+
if ("string" == typeof r27)
|
|
494400
|
+
return _arrayLikeToArray2(r27, a63);
|
|
494401
|
+
var t43 = {}.toString.call(r27).slice(8, -1);
|
|
494402
|
+
return "Object" === t43 && r27.constructor && (t43 = r27.constructor.name), "Map" === t43 || "Set" === t43 ? Array.from(r27) : "Arguments" === t43 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t43) ? _arrayLikeToArray2(r27, a63) : void 0;
|
|
494403
|
+
}
|
|
494404
|
+
}
|
|
494405
|
+
function _iterableToArray(r27) {
|
|
494406
|
+
if ("undefined" != typeof Symbol && null != r27[Symbol.iterator] || null != r27["@@iterator"])
|
|
494407
|
+
return Array.from(r27);
|
|
494408
|
+
}
|
|
494409
|
+
function _arrayWithoutHoles(r27) {
|
|
494410
|
+
if (Array.isArray(r27))
|
|
494411
|
+
return _arrayLikeToArray2(r27);
|
|
494412
|
+
}
|
|
494413
|
+
function _arrayLikeToArray2(r27, a63) {
|
|
494414
|
+
(null == a63 || a63 > r27.length) && (a63 = r27.length);
|
|
494415
|
+
for (var e36 = 0, n112 = Array(a63); e36 < a63; e36++)
|
|
494416
|
+
n112[e36] = r27[e36];
|
|
494417
|
+
return n112;
|
|
494418
|
+
}
|
|
494074
494419
|
function _typeof(o37) {
|
|
494075
494420
|
"@babel/helpers - typeof";
|
|
494076
494421
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o38) {
|
|
@@ -494173,6 +494518,94 @@ var require_utils47 = __commonJS({
|
|
|
494173
494518
|
function implementsToString(obj2) {
|
|
494174
494519
|
return _typeof(obj2) === "object" && obj2 !== null && "toString" in obj2;
|
|
494175
494520
|
}
|
|
494521
|
+
function specFromWasm(_x4) {
|
|
494522
|
+
return _specFromWasm.apply(this, arguments);
|
|
494523
|
+
}
|
|
494524
|
+
function _specFromWasm() {
|
|
494525
|
+
_specFromWasm = _asyncToGenerator(_regenerator().m(function _callee2(wasm) {
|
|
494526
|
+
var xdrSections, wasmModule, customData, _t3;
|
|
494527
|
+
return _regenerator().w(function(_context2) {
|
|
494528
|
+
while (1)
|
|
494529
|
+
switch (_context2.p = _context2.n) {
|
|
494530
|
+
case 0:
|
|
494531
|
+
_context2.p = 0;
|
|
494532
|
+
_context2.n = 1;
|
|
494533
|
+
return WebAssembly.compile(wasm);
|
|
494534
|
+
case 1:
|
|
494535
|
+
wasmModule = _context2.v;
|
|
494536
|
+
xdrSections = WebAssembly.Module.customSections(wasmModule, "contractspecv0");
|
|
494537
|
+
_context2.n = 3;
|
|
494538
|
+
break;
|
|
494539
|
+
case 2:
|
|
494540
|
+
_context2.p = 2;
|
|
494541
|
+
_t3 = _context2.v;
|
|
494542
|
+
customData = parseWasmCustomSections(wasm);
|
|
494543
|
+
xdrSections = customData.get("contractspecv0");
|
|
494544
|
+
case 3:
|
|
494545
|
+
if (!(!xdrSections || xdrSections.length === 0)) {
|
|
494546
|
+
_context2.n = 4;
|
|
494547
|
+
break;
|
|
494548
|
+
}
|
|
494549
|
+
throw new Error("Could not obtain contract spec from wasm");
|
|
494550
|
+
case 4:
|
|
494551
|
+
return _context2.a(2, Buffer.from(xdrSections[0]));
|
|
494552
|
+
}
|
|
494553
|
+
}, _callee2, null, [[0, 2]]);
|
|
494554
|
+
}));
|
|
494555
|
+
return _specFromWasm.apply(this, arguments);
|
|
494556
|
+
}
|
|
494557
|
+
function parseWasmCustomSections(buffer2) {
|
|
494558
|
+
var sections = /* @__PURE__ */ new Map();
|
|
494559
|
+
var arrayBuffer = buffer2.buffer.slice(buffer2.byteOffset, buffer2.byteOffset + buffer2.byteLength);
|
|
494560
|
+
var offset2 = 0;
|
|
494561
|
+
var read4 = function read5(length2) {
|
|
494562
|
+
if (offset2 + length2 > buffer2.byteLength)
|
|
494563
|
+
throw new Error("Buffer overflow");
|
|
494564
|
+
var bytes7 = new Uint8Array(arrayBuffer, offset2, length2);
|
|
494565
|
+
offset2 += length2;
|
|
494566
|
+
return bytes7;
|
|
494567
|
+
};
|
|
494568
|
+
if (_toConsumableArray(read4(4)).join() !== "0,97,115,109")
|
|
494569
|
+
throw new Error("Invalid WASM magic");
|
|
494570
|
+
if (_toConsumableArray(read4(4)).join() !== "1,0,0,0")
|
|
494571
|
+
throw new Error("Invalid WASM version");
|
|
494572
|
+
while (offset2 < buffer2.byteLength) {
|
|
494573
|
+
var sectionId = read4(1)[0];
|
|
494574
|
+
var sectionLength = readVarUint32();
|
|
494575
|
+
var start = offset2;
|
|
494576
|
+
if (sectionId === 0) {
|
|
494577
|
+
var nameLen = readVarUint32();
|
|
494578
|
+
if (nameLen === 0 || offset2 + nameLen > start + sectionLength)
|
|
494579
|
+
continue;
|
|
494580
|
+
var nameBytes = read4(nameLen);
|
|
494581
|
+
var payload = read4(sectionLength - (offset2 - start));
|
|
494582
|
+
try {
|
|
494583
|
+
var name3 = new TextDecoder("utf-8", {
|
|
494584
|
+
fatal: true
|
|
494585
|
+
}).decode(nameBytes);
|
|
494586
|
+
if (payload.length > 0) {
|
|
494587
|
+
sections.set(name3, (sections.get(name3) || []).concat(payload));
|
|
494588
|
+
}
|
|
494589
|
+
} catch (_unused) {
|
|
494590
|
+
}
|
|
494591
|
+
} else {
|
|
494592
|
+
offset2 += sectionLength;
|
|
494593
|
+
}
|
|
494594
|
+
}
|
|
494595
|
+
function readVarUint32() {
|
|
494596
|
+
var value5 = 0, shift = 0;
|
|
494597
|
+
while (true) {
|
|
494598
|
+
var byte = read4(1)[0];
|
|
494599
|
+
value5 |= (byte & 127) << shift;
|
|
494600
|
+
if ((byte & 128) === 0)
|
|
494601
|
+
break;
|
|
494602
|
+
if ((shift += 7) >= 32)
|
|
494603
|
+
throw new Error("Invalid WASM value");
|
|
494604
|
+
}
|
|
494605
|
+
return value5 >>> 0;
|
|
494606
|
+
}
|
|
494607
|
+
return sections;
|
|
494608
|
+
}
|
|
494176
494609
|
function processSpecEntryStream(buffer2) {
|
|
494177
494610
|
var reader = new _stellarBase.cereal.XdrReader(buffer2);
|
|
494178
494611
|
var res = [];
|
|
@@ -494181,27 +494614,27 @@ var require_utils47 = __commonJS({
|
|
|
494181
494614
|
}
|
|
494182
494615
|
return res;
|
|
494183
494616
|
}
|
|
494184
|
-
function getAccount12(
|
|
494617
|
+
function getAccount12(_x5, _x6) {
|
|
494185
494618
|
return _getAccount2.apply(this, arguments);
|
|
494186
494619
|
}
|
|
494187
494620
|
function _getAccount2() {
|
|
494188
|
-
_getAccount2 = _asyncToGenerator(_regenerator().m(function
|
|
494189
|
-
return _regenerator().w(function(
|
|
494621
|
+
_getAccount2 = _asyncToGenerator(_regenerator().m(function _callee3(options23, server) {
|
|
494622
|
+
return _regenerator().w(function(_context3) {
|
|
494190
494623
|
while (1)
|
|
494191
|
-
switch (
|
|
494624
|
+
switch (_context3.n) {
|
|
494192
494625
|
case 0:
|
|
494193
|
-
return
|
|
494626
|
+
return _context3.a(2, options23.publicKey ? server.getAccount(options23.publicKey) : new _stellarBase.Account(_types.NULL_ACCOUNT, "0"));
|
|
494194
494627
|
}
|
|
494195
|
-
},
|
|
494628
|
+
}, _callee3);
|
|
494196
494629
|
}));
|
|
494197
494630
|
return _getAccount2.apply(this, arguments);
|
|
494198
494631
|
}
|
|
494199
494632
|
}
|
|
494200
494633
|
});
|
|
494201
494634
|
|
|
494202
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
494635
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/contract/sent_transaction.js
|
|
494203
494636
|
var require_sent_transaction = __commonJS({
|
|
494204
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
494637
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/contract/sent_transaction.js"(exports2) {
|
|
494205
494638
|
"use strict";
|
|
494206
494639
|
Object.defineProperty(exports2, "__esModule", {
|
|
494207
494640
|
value: true
|
|
@@ -494572,9 +495005,9 @@ var require_sent_transaction = __commonJS({
|
|
|
494572
495005
|
}
|
|
494573
495006
|
});
|
|
494574
495007
|
|
|
494575
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
495008
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/contract/assembled_transaction.js
|
|
494576
495009
|
var require_assembled_transaction = __commonJS({
|
|
494577
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
495010
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/contract/assembled_transaction.js"(exports2) {
|
|
494578
495011
|
"use strict";
|
|
494579
495012
|
Object.defineProperty(exports2, "__esModule", {
|
|
494580
495013
|
value: true
|
|
@@ -495678,9 +496111,9 @@ var require_assembled_transaction = __commonJS({
|
|
|
495678
496111
|
}
|
|
495679
496112
|
});
|
|
495680
496113
|
|
|
495681
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
496114
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/contract/basic_node_signer.js
|
|
495682
496115
|
var require_basic_node_signer = __commonJS({
|
|
495683
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
496116
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/contract/basic_node_signer.js"(exports2) {
|
|
495684
496117
|
"use strict";
|
|
495685
496118
|
Object.defineProperty(exports2, "__esModule", {
|
|
495686
496119
|
value: true
|
|
@@ -495793,64 +496226,171 @@ var require_basic_node_signer = __commonJS({
|
|
|
495793
496226
|
});
|
|
495794
496227
|
};
|
|
495795
496228
|
}
|
|
495796
|
-
var basicNodeSigner = exports2.basicNodeSigner = function basicNodeSigner2(keypair, networkPassphrase) {
|
|
495797
|
-
return {
|
|
495798
|
-
signTransaction: function() {
|
|
495799
|
-
var _signTransaction = _asyncToGenerator(_regenerator().m(function _callee(xdr2, opts) {
|
|
495800
|
-
var t43;
|
|
495801
|
-
return _regenerator().w(function(_context) {
|
|
495802
|
-
while (1)
|
|
495803
|
-
switch (_context.n) {
|
|
495804
|
-
case 0:
|
|
495805
|
-
t43 = _stellarBase.TransactionBuilder.fromXDR(xdr2, (opts === null || opts === void 0 ? void 0 : opts.networkPassphrase) || networkPassphrase);
|
|
495806
|
-
t43.sign(keypair);
|
|
495807
|
-
return _context.a(2, {
|
|
495808
|
-
signedTxXdr: t43.toXDR(),
|
|
495809
|
-
signerAddress: keypair.publicKey()
|
|
495810
|
-
});
|
|
495811
|
-
}
|
|
495812
|
-
}, _callee);
|
|
495813
|
-
}));
|
|
495814
|
-
function signTransaction5(_x, _x2) {
|
|
495815
|
-
return _signTransaction.apply(this, arguments);
|
|
495816
|
-
}
|
|
495817
|
-
return signTransaction5;
|
|
495818
|
-
}(),
|
|
495819
|
-
signAuthEntry: function() {
|
|
495820
|
-
var _signAuthEntry = _asyncToGenerator(_regenerator().m(function _callee2(authEntry) {
|
|
495821
|
-
var signedAuthEntry;
|
|
495822
|
-
return _regenerator().w(function(_context2) {
|
|
495823
|
-
while (1)
|
|
495824
|
-
switch (_context2.n) {
|
|
495825
|
-
case 0:
|
|
495826
|
-
signedAuthEntry = keypair.sign((0, _stellarBase.hash)(Buffer.from(authEntry, "base64"))).toString("base64");
|
|
495827
|
-
return _context2.a(2, {
|
|
495828
|
-
signedAuthEntry,
|
|
495829
|
-
signerAddress: keypair.publicKey()
|
|
495830
|
-
});
|
|
495831
|
-
}
|
|
495832
|
-
}, _callee2);
|
|
495833
|
-
}));
|
|
495834
|
-
function signAuthEntry(_x3) {
|
|
495835
|
-
return _signAuthEntry.apply(this, arguments);
|
|
495836
|
-
}
|
|
495837
|
-
return signAuthEntry;
|
|
495838
|
-
}()
|
|
495839
|
-
};
|
|
495840
|
-
};
|
|
495841
|
-
}
|
|
495842
|
-
});
|
|
495843
|
-
|
|
495844
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
495845
|
-
var require_spec = __commonJS({
|
|
495846
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
495847
|
-
"use strict";
|
|
495848
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
495849
|
-
value: true
|
|
495850
|
-
});
|
|
495851
|
-
exports2.Spec = void 0;
|
|
495852
|
-
var _stellarBase = require_lib62();
|
|
495853
|
-
var _rust_result = require_rust_result();
|
|
496229
|
+
var basicNodeSigner = exports2.basicNodeSigner = function basicNodeSigner2(keypair, networkPassphrase) {
|
|
496230
|
+
return {
|
|
496231
|
+
signTransaction: function() {
|
|
496232
|
+
var _signTransaction = _asyncToGenerator(_regenerator().m(function _callee(xdr2, opts) {
|
|
496233
|
+
var t43;
|
|
496234
|
+
return _regenerator().w(function(_context) {
|
|
496235
|
+
while (1)
|
|
496236
|
+
switch (_context.n) {
|
|
496237
|
+
case 0:
|
|
496238
|
+
t43 = _stellarBase.TransactionBuilder.fromXDR(xdr2, (opts === null || opts === void 0 ? void 0 : opts.networkPassphrase) || networkPassphrase);
|
|
496239
|
+
t43.sign(keypair);
|
|
496240
|
+
return _context.a(2, {
|
|
496241
|
+
signedTxXdr: t43.toXDR(),
|
|
496242
|
+
signerAddress: keypair.publicKey()
|
|
496243
|
+
});
|
|
496244
|
+
}
|
|
496245
|
+
}, _callee);
|
|
496246
|
+
}));
|
|
496247
|
+
function signTransaction5(_x, _x2) {
|
|
496248
|
+
return _signTransaction.apply(this, arguments);
|
|
496249
|
+
}
|
|
496250
|
+
return signTransaction5;
|
|
496251
|
+
}(),
|
|
496252
|
+
signAuthEntry: function() {
|
|
496253
|
+
var _signAuthEntry = _asyncToGenerator(_regenerator().m(function _callee2(authEntry) {
|
|
496254
|
+
var signedAuthEntry;
|
|
496255
|
+
return _regenerator().w(function(_context2) {
|
|
496256
|
+
while (1)
|
|
496257
|
+
switch (_context2.n) {
|
|
496258
|
+
case 0:
|
|
496259
|
+
signedAuthEntry = keypair.sign((0, _stellarBase.hash)(Buffer.from(authEntry, "base64"))).toString("base64");
|
|
496260
|
+
return _context2.a(2, {
|
|
496261
|
+
signedAuthEntry,
|
|
496262
|
+
signerAddress: keypair.publicKey()
|
|
496263
|
+
});
|
|
496264
|
+
}
|
|
496265
|
+
}, _callee2);
|
|
496266
|
+
}));
|
|
496267
|
+
function signAuthEntry(_x3) {
|
|
496268
|
+
return _signAuthEntry.apply(this, arguments);
|
|
496269
|
+
}
|
|
496270
|
+
return signAuthEntry;
|
|
496271
|
+
}()
|
|
496272
|
+
};
|
|
496273
|
+
};
|
|
496274
|
+
}
|
|
496275
|
+
});
|
|
496276
|
+
|
|
496277
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/contract/spec.js
|
|
496278
|
+
var require_spec = __commonJS({
|
|
496279
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/contract/spec.js"(exports2) {
|
|
496280
|
+
"use strict";
|
|
496281
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
496282
|
+
value: true
|
|
496283
|
+
});
|
|
496284
|
+
exports2.Spec = void 0;
|
|
496285
|
+
var _stellarBase = require_lib62();
|
|
496286
|
+
var _rust_result = require_rust_result();
|
|
496287
|
+
var _utils = require_utils47();
|
|
496288
|
+
function _regenerator() {
|
|
496289
|
+
var e36, t43, r27 = "function" == typeof Symbol ? Symbol : {}, n112 = r27.iterator || "@@iterator", o37 = r27.toStringTag || "@@toStringTag";
|
|
496290
|
+
function i56(r28, n113, o38, i57) {
|
|
496291
|
+
var c57 = n113 && n113.prototype instanceof Generator ? n113 : Generator, u46 = Object.create(c57.prototype);
|
|
496292
|
+
return _regeneratorDefine2(u46, "_invoke", function(r29, n114, o39) {
|
|
496293
|
+
var i58, c58, u47, f44 = 0, p61 = o39 || [], y34 = false, G6 = { p: 0, n: 0, v: e36, a: d54, f: d54.bind(e36, 4), d: function d55(t44, r30) {
|
|
496294
|
+
return i58 = t44, c58 = 0, u47 = e36, G6.n = r30, a63;
|
|
496295
|
+
} };
|
|
496296
|
+
function d54(r30, n115) {
|
|
496297
|
+
for (c58 = r30, u47 = n115, t43 = 0; !y34 && f44 && !o40 && t43 < p61.length; t43++) {
|
|
496298
|
+
var o40, i59 = p61[t43], d55 = G6.p, l66 = i59[2];
|
|
496299
|
+
r30 > 3 ? (o40 = l66 === n115) && (u47 = i59[(c58 = i59[4]) ? 5 : (c58 = 3, 3)], i59[4] = i59[5] = e36) : i59[0] <= d55 && ((o40 = r30 < 2 && d55 < i59[1]) ? (c58 = 0, G6.v = n115, G6.n = i59[1]) : d55 < l66 && (o40 = r30 < 3 || i59[0] > n115 || n115 > l66) && (i59[4] = r30, i59[5] = n115, G6.n = l66, c58 = 0));
|
|
496300
|
+
}
|
|
496301
|
+
if (o40 || r30 > 1)
|
|
496302
|
+
return a63;
|
|
496303
|
+
throw y34 = true, n115;
|
|
496304
|
+
}
|
|
496305
|
+
return function(o40, p62, l66) {
|
|
496306
|
+
if (f44 > 1)
|
|
496307
|
+
throw TypeError("Generator is already running");
|
|
496308
|
+
for (y34 && 1 === p62 && d54(p62, l66), c58 = p62, u47 = l66; (t43 = c58 < 2 ? e36 : u47) || !y34; ) {
|
|
496309
|
+
i58 || (c58 ? c58 < 3 ? (c58 > 1 && (G6.n = -1), d54(c58, u47)) : G6.n = u47 : G6.v = u47);
|
|
496310
|
+
try {
|
|
496311
|
+
if (f44 = 2, i58) {
|
|
496312
|
+
if (c58 || (o40 = "next"), t43 = i58[o40]) {
|
|
496313
|
+
if (!(t43 = t43.call(i58, u47)))
|
|
496314
|
+
throw TypeError("iterator result is not an object");
|
|
496315
|
+
if (!t43.done)
|
|
496316
|
+
return t43;
|
|
496317
|
+
u47 = t43.value, c58 < 2 && (c58 = 0);
|
|
496318
|
+
} else
|
|
496319
|
+
1 === c58 && (t43 = i58.return) && t43.call(i58), c58 < 2 && (u47 = TypeError("The iterator does not provide a '" + o40 + "' method"), c58 = 1);
|
|
496320
|
+
i58 = e36;
|
|
496321
|
+
} else if ((t43 = (y34 = G6.n < 0) ? u47 : r29.call(n114, G6)) !== a63)
|
|
496322
|
+
break;
|
|
496323
|
+
} catch (t44) {
|
|
496324
|
+
i58 = e36, c58 = 1, u47 = t44;
|
|
496325
|
+
} finally {
|
|
496326
|
+
f44 = 1;
|
|
496327
|
+
}
|
|
496328
|
+
}
|
|
496329
|
+
return { value: t43, done: y34 };
|
|
496330
|
+
};
|
|
496331
|
+
}(r28, o38, i57), true), u46;
|
|
496332
|
+
}
|
|
496333
|
+
var a63 = {};
|
|
496334
|
+
function Generator() {
|
|
496335
|
+
}
|
|
496336
|
+
function GeneratorFunction() {
|
|
496337
|
+
}
|
|
496338
|
+
function GeneratorFunctionPrototype() {
|
|
496339
|
+
}
|
|
496340
|
+
t43 = Object.getPrototypeOf;
|
|
496341
|
+
var c56 = [][n112] ? t43(t43([][n112]())) : (_regeneratorDefine2(t43 = {}, n112, function() {
|
|
496342
|
+
return this;
|
|
496343
|
+
}), t43), u45 = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c56);
|
|
496344
|
+
function f43(e37) {
|
|
496345
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e37, GeneratorFunctionPrototype) : (e37.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e37, o37, "GeneratorFunction")), e37.prototype = Object.create(u45), e37;
|
|
496346
|
+
}
|
|
496347
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u45, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o37, "GeneratorFunction"), _regeneratorDefine2(u45), _regeneratorDefine2(u45, o37, "Generator"), _regeneratorDefine2(u45, n112, function() {
|
|
496348
|
+
return this;
|
|
496349
|
+
}), _regeneratorDefine2(u45, "toString", function() {
|
|
496350
|
+
return "[object Generator]";
|
|
496351
|
+
}), (_regenerator = function _regenerator2() {
|
|
496352
|
+
return { w: i56, m: f43 };
|
|
496353
|
+
})();
|
|
496354
|
+
}
|
|
496355
|
+
function _regeneratorDefine2(e36, r27, n112, t43) {
|
|
496356
|
+
var i56 = Object.defineProperty;
|
|
496357
|
+
try {
|
|
496358
|
+
i56({}, "", {});
|
|
496359
|
+
} catch (e37) {
|
|
496360
|
+
i56 = 0;
|
|
496361
|
+
}
|
|
496362
|
+
_regeneratorDefine2 = function _regeneratorDefine(e37, r28, n113, t44) {
|
|
496363
|
+
function o37(r29, n114) {
|
|
496364
|
+
_regeneratorDefine2(e37, r29, function(e38) {
|
|
496365
|
+
return this._invoke(r29, n114, e38);
|
|
496366
|
+
});
|
|
496367
|
+
}
|
|
496368
|
+
r28 ? i56 ? i56(e37, r28, { value: n113, enumerable: !t44, configurable: !t44, writable: !t44 }) : e37[r28] = n113 : (o37("next", 0), o37("throw", 1), o37("return", 2));
|
|
496369
|
+
}, _regeneratorDefine2(e36, r27, n112, t43);
|
|
496370
|
+
}
|
|
496371
|
+
function asyncGeneratorStep(n112, t43, e36, r27, o37, a63, c56) {
|
|
496372
|
+
try {
|
|
496373
|
+
var i56 = n112[a63](c56), u45 = i56.value;
|
|
496374
|
+
} catch (n113) {
|
|
496375
|
+
return void e36(n113);
|
|
496376
|
+
}
|
|
496377
|
+
i56.done ? t43(u45) : Promise.resolve(u45).then(r27, o37);
|
|
496378
|
+
}
|
|
496379
|
+
function _asyncToGenerator(n112) {
|
|
496380
|
+
return function() {
|
|
496381
|
+
var t43 = this, e36 = arguments;
|
|
496382
|
+
return new Promise(function(r27, o37) {
|
|
496383
|
+
var a63 = n112.apply(t43, e36);
|
|
496384
|
+
function _next(n113) {
|
|
496385
|
+
asyncGeneratorStep(a63, r27, o37, _next, _throw, "next", n113);
|
|
496386
|
+
}
|
|
496387
|
+
function _throw(n113) {
|
|
496388
|
+
asyncGeneratorStep(a63, r27, o37, _next, _throw, "throw", n113);
|
|
496389
|
+
}
|
|
496390
|
+
_next(void 0);
|
|
496391
|
+
});
|
|
496392
|
+
};
|
|
496393
|
+
}
|
|
495854
496394
|
function ownKeys(e36, r27) {
|
|
495855
496395
|
var t43 = Object.keys(e36);
|
|
495856
496396
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -496371,16 +496911,22 @@ var require_spec = __commonJS({
|
|
|
496371
496911
|
function Spec2(entries) {
|
|
496372
496912
|
_classCallCheck(this, Spec2);
|
|
496373
496913
|
_defineProperty(this, "entries", []);
|
|
496374
|
-
if (entries
|
|
496375
|
-
|
|
496376
|
-
}
|
|
496377
|
-
|
|
496378
|
-
|
|
496379
|
-
|
|
496380
|
-
|
|
496381
|
-
}
|
|
496382
|
-
|
|
496383
|
-
|
|
496914
|
+
if (Buffer.isBuffer(entries)) {
|
|
496915
|
+
this.entries = (0, _utils.processSpecEntryStream)(entries);
|
|
496916
|
+
} else if (typeof entries === "string") {
|
|
496917
|
+
this.entries = (0, _utils.processSpecEntryStream)(Buffer.from(entries, "base64"));
|
|
496918
|
+
} else {
|
|
496919
|
+
if (entries.length === 0) {
|
|
496920
|
+
throw new Error("Contract spec must have at least one entry");
|
|
496921
|
+
}
|
|
496922
|
+
var entry = entries[0];
|
|
496923
|
+
if (typeof entry === "string") {
|
|
496924
|
+
this.entries = entries.map(function(s48) {
|
|
496925
|
+
return _stellarBase.xdr.ScSpecEntry.fromXDR(s48, "base64");
|
|
496926
|
+
});
|
|
496927
|
+
} else {
|
|
496928
|
+
this.entries = entries;
|
|
496929
|
+
}
|
|
496384
496930
|
}
|
|
496385
496931
|
}
|
|
496386
496932
|
return _createClass2(Spec2, [{
|
|
@@ -496898,14 +497444,36 @@ var require_spec = __commonJS({
|
|
|
496898
497444
|
}
|
|
496899
497445
|
return res;
|
|
496900
497446
|
}
|
|
497447
|
+
}], [{
|
|
497448
|
+
key: "fromWasm",
|
|
497449
|
+
value: function() {
|
|
497450
|
+
var _fromWasm = _asyncToGenerator(_regenerator().m(function _callee(wasm) {
|
|
497451
|
+
var spec2;
|
|
497452
|
+
return _regenerator().w(function(_context) {
|
|
497453
|
+
while (1)
|
|
497454
|
+
switch (_context.n) {
|
|
497455
|
+
case 0:
|
|
497456
|
+
_context.n = 1;
|
|
497457
|
+
return (0, _utils.specFromWasm)(wasm);
|
|
497458
|
+
case 1:
|
|
497459
|
+
spec2 = _context.v;
|
|
497460
|
+
return _context.a(2, new Spec2(spec2));
|
|
497461
|
+
}
|
|
497462
|
+
}, _callee);
|
|
497463
|
+
}));
|
|
497464
|
+
function fromWasm(_x) {
|
|
497465
|
+
return _fromWasm.apply(this, arguments);
|
|
497466
|
+
}
|
|
497467
|
+
return fromWasm;
|
|
497468
|
+
}()
|
|
496901
497469
|
}]);
|
|
496902
497470
|
}();
|
|
496903
497471
|
}
|
|
496904
497472
|
});
|
|
496905
497473
|
|
|
496906
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
497474
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/contract/client.js
|
|
496907
497475
|
var require_client2 = __commonJS({
|
|
496908
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
497476
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/contract/client.js"(exports2) {
|
|
496909
497477
|
"use strict";
|
|
496910
497478
|
function _typeof(o37) {
|
|
496911
497479
|
"@babel/helpers - typeof";
|
|
@@ -496923,7 +497491,6 @@ var require_client2 = __commonJS({
|
|
|
496923
497491
|
var _spec = require_spec();
|
|
496924
497492
|
var _rpc = require_rpc3();
|
|
496925
497493
|
var _assembled_transaction = require_assembled_transaction();
|
|
496926
|
-
var _utils = require_utils47();
|
|
496927
497494
|
var _excluded = ["method"];
|
|
496928
497495
|
var _excluded2 = ["wasmHash", "salt", "format", "fee", "timeoutInSeconds", "simulate"];
|
|
496929
497496
|
function _regenerator() {
|
|
@@ -497085,34 +497652,6 @@ var require_client2 = __commonJS({
|
|
|
497085
497652
|
}
|
|
497086
497653
|
return ("string" === r27 ? String : Number)(t43);
|
|
497087
497654
|
}
|
|
497088
|
-
function _toConsumableArray(r27) {
|
|
497089
|
-
return _arrayWithoutHoles(r27) || _iterableToArray(r27) || _unsupportedIterableToArray2(r27) || _nonIterableSpread();
|
|
497090
|
-
}
|
|
497091
|
-
function _nonIterableSpread() {
|
|
497092
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
497093
|
-
}
|
|
497094
|
-
function _unsupportedIterableToArray2(r27, a63) {
|
|
497095
|
-
if (r27) {
|
|
497096
|
-
if ("string" == typeof r27)
|
|
497097
|
-
return _arrayLikeToArray2(r27, a63);
|
|
497098
|
-
var t43 = {}.toString.call(r27).slice(8, -1);
|
|
497099
|
-
return "Object" === t43 && r27.constructor && (t43 = r27.constructor.name), "Map" === t43 || "Set" === t43 ? Array.from(r27) : "Arguments" === t43 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t43) ? _arrayLikeToArray2(r27, a63) : void 0;
|
|
497100
|
-
}
|
|
497101
|
-
}
|
|
497102
|
-
function _iterableToArray(r27) {
|
|
497103
|
-
if ("undefined" != typeof Symbol && null != r27[Symbol.iterator] || null != r27["@@iterator"])
|
|
497104
|
-
return Array.from(r27);
|
|
497105
|
-
}
|
|
497106
|
-
function _arrayWithoutHoles(r27) {
|
|
497107
|
-
if (Array.isArray(r27))
|
|
497108
|
-
return _arrayLikeToArray2(r27);
|
|
497109
|
-
}
|
|
497110
|
-
function _arrayLikeToArray2(r27, a63) {
|
|
497111
|
-
(null == a63 || a63 > r27.length) && (a63 = r27.length);
|
|
497112
|
-
for (var e36 = 0, n112 = Array(a63); e36 < a63; e36++)
|
|
497113
|
-
n112[e36] = r27[e36];
|
|
497114
|
-
return n112;
|
|
497115
|
-
}
|
|
497116
497655
|
function asyncGeneratorStep(n112, t43, e36, r27, o37, a63, c56) {
|
|
497117
497656
|
try {
|
|
497118
497657
|
var i56 = n112[a63](c56), u45 = i56.value;
|
|
@@ -497137,110 +497676,19 @@ var require_client2 = __commonJS({
|
|
|
497137
497676
|
};
|
|
497138
497677
|
}
|
|
497139
497678
|
var CONSTRUCTOR_FUNC = "__constructor";
|
|
497140
|
-
function
|
|
497141
|
-
return _specFromWasm.apply(this, arguments);
|
|
497142
|
-
}
|
|
497143
|
-
function _specFromWasm() {
|
|
497144
|
-
_specFromWasm = _asyncToGenerator(_regenerator().m(function _callee5(wasm) {
|
|
497145
|
-
var xdrSections, wasmModule, customData, bufferSection, specEntryArray, spec2, _t;
|
|
497146
|
-
return _regenerator().w(function(_context5) {
|
|
497147
|
-
while (1)
|
|
497148
|
-
switch (_context5.p = _context5.n) {
|
|
497149
|
-
case 0:
|
|
497150
|
-
_context5.p = 0;
|
|
497151
|
-
_context5.n = 1;
|
|
497152
|
-
return WebAssembly.compile(wasm);
|
|
497153
|
-
case 1:
|
|
497154
|
-
wasmModule = _context5.v;
|
|
497155
|
-
xdrSections = WebAssembly.Module.customSections(wasmModule, "contractspecv0");
|
|
497156
|
-
_context5.n = 3;
|
|
497157
|
-
break;
|
|
497158
|
-
case 2:
|
|
497159
|
-
_context5.p = 2;
|
|
497160
|
-
_t = _context5.v;
|
|
497161
|
-
customData = parseWasmCustomSections(wasm);
|
|
497162
|
-
xdrSections = customData.get("contractspecv0");
|
|
497163
|
-
case 3:
|
|
497164
|
-
if (!(!xdrSections || xdrSections.length === 0)) {
|
|
497165
|
-
_context5.n = 4;
|
|
497166
|
-
break;
|
|
497167
|
-
}
|
|
497168
|
-
throw new Error("Could not obtain contract spec from wasm");
|
|
497169
|
-
case 4:
|
|
497170
|
-
bufferSection = Buffer.from(xdrSections[0]);
|
|
497171
|
-
specEntryArray = (0, _utils.processSpecEntryStream)(bufferSection);
|
|
497172
|
-
spec2 = new _spec.Spec(specEntryArray);
|
|
497173
|
-
return _context5.a(2, spec2);
|
|
497174
|
-
}
|
|
497175
|
-
}, _callee5, null, [[0, 2]]);
|
|
497176
|
-
}));
|
|
497177
|
-
return _specFromWasm.apply(this, arguments);
|
|
497178
|
-
}
|
|
497179
|
-
function parseWasmCustomSections(buffer2) {
|
|
497180
|
-
var sections = /* @__PURE__ */ new Map();
|
|
497181
|
-
var arrayBuffer = buffer2.buffer.slice(buffer2.byteOffset, buffer2.byteOffset + buffer2.byteLength);
|
|
497182
|
-
var offset2 = 0;
|
|
497183
|
-
var read4 = function read5(length2) {
|
|
497184
|
-
if (offset2 + length2 > buffer2.byteLength)
|
|
497185
|
-
throw new Error("Buffer overflow");
|
|
497186
|
-
var bytes7 = new Uint8Array(arrayBuffer, offset2, length2);
|
|
497187
|
-
offset2 += length2;
|
|
497188
|
-
return bytes7;
|
|
497189
|
-
};
|
|
497190
|
-
if (_toConsumableArray(read4(4)).join() !== "0,97,115,109")
|
|
497191
|
-
throw new Error("Invalid WASM magic");
|
|
497192
|
-
if (_toConsumableArray(read4(4)).join() !== "1,0,0,0")
|
|
497193
|
-
throw new Error("Invalid WASM version");
|
|
497194
|
-
while (offset2 < buffer2.byteLength) {
|
|
497195
|
-
var sectionId = read4(1)[0];
|
|
497196
|
-
var sectionLength = readVarUint32();
|
|
497197
|
-
var start = offset2;
|
|
497198
|
-
if (sectionId === 0) {
|
|
497199
|
-
var nameLen = readVarUint32();
|
|
497200
|
-
if (nameLen === 0 || offset2 + nameLen > start + sectionLength)
|
|
497201
|
-
continue;
|
|
497202
|
-
var nameBytes = read4(nameLen);
|
|
497203
|
-
var payload = read4(sectionLength - (offset2 - start));
|
|
497204
|
-
try {
|
|
497205
|
-
var name3 = new TextDecoder("utf-8", {
|
|
497206
|
-
fatal: true
|
|
497207
|
-
}).decode(nameBytes);
|
|
497208
|
-
if (payload.length > 0) {
|
|
497209
|
-
sections.set(name3, (sections.get(name3) || []).concat(payload));
|
|
497210
|
-
}
|
|
497211
|
-
} catch (_unused) {
|
|
497212
|
-
}
|
|
497213
|
-
} else {
|
|
497214
|
-
offset2 += sectionLength;
|
|
497215
|
-
}
|
|
497216
|
-
}
|
|
497217
|
-
function readVarUint32() {
|
|
497218
|
-
var value5 = 0, shift = 0;
|
|
497219
|
-
while (true) {
|
|
497220
|
-
var byte = read4(1)[0];
|
|
497221
|
-
value5 |= (byte & 127) << shift;
|
|
497222
|
-
if ((byte & 128) === 0)
|
|
497223
|
-
break;
|
|
497224
|
-
if ((shift += 7) >= 32)
|
|
497225
|
-
throw new Error("Invalid WASM value");
|
|
497226
|
-
}
|
|
497227
|
-
return value5 >>> 0;
|
|
497228
|
-
}
|
|
497229
|
-
return sections;
|
|
497230
|
-
}
|
|
497231
|
-
function specFromWasmHash(_x2, _x3) {
|
|
497679
|
+
function specFromWasmHash(_x, _x2) {
|
|
497232
497680
|
return _specFromWasmHash.apply(this, arguments);
|
|
497233
497681
|
}
|
|
497234
497682
|
function _specFromWasmHash() {
|
|
497235
|
-
_specFromWasmHash = _asyncToGenerator(_regenerator().m(function
|
|
497236
|
-
var format6, rpcUrl, allowHttp, serverOpts, server, wasm,
|
|
497237
|
-
return _regenerator().w(function(
|
|
497683
|
+
_specFromWasmHash = _asyncToGenerator(_regenerator().m(function _callee5(wasmHash, options23) {
|
|
497684
|
+
var format6, rpcUrl, allowHttp, serverOpts, server, wasm, _args5 = arguments;
|
|
497685
|
+
return _regenerator().w(function(_context5) {
|
|
497238
497686
|
while (1)
|
|
497239
|
-
switch (
|
|
497687
|
+
switch (_context5.n) {
|
|
497240
497688
|
case 0:
|
|
497241
|
-
format6 =
|
|
497689
|
+
format6 = _args5.length > 2 && _args5[2] !== void 0 ? _args5[2] : "hex";
|
|
497242
497690
|
if (!(!options23 || !options23.rpcUrl)) {
|
|
497243
|
-
|
|
497691
|
+
_context5.n = 1;
|
|
497244
497692
|
break;
|
|
497245
497693
|
}
|
|
497246
497694
|
throw new TypeError("options must contain rpcUrl");
|
|
@@ -497250,13 +497698,13 @@ var require_client2 = __commonJS({
|
|
|
497250
497698
|
allowHttp
|
|
497251
497699
|
};
|
|
497252
497700
|
server = new _rpc.Server(rpcUrl, serverOpts);
|
|
497253
|
-
|
|
497701
|
+
_context5.n = 2;
|
|
497254
497702
|
return server.getContractWasmByHash(wasmHash, format6);
|
|
497255
497703
|
case 2:
|
|
497256
|
-
wasm =
|
|
497257
|
-
return
|
|
497704
|
+
wasm = _context5.v;
|
|
497705
|
+
return _context5.a(2, _spec.Spec.fromWasm(wasm));
|
|
497258
497706
|
}
|
|
497259
|
-
},
|
|
497707
|
+
}, _callee5);
|
|
497260
497708
|
}));
|
|
497261
497709
|
return _specFromWasmHash.apply(this, arguments);
|
|
497262
497710
|
}
|
|
@@ -497339,7 +497787,7 @@ var require_client2 = __commonJS({
|
|
|
497339
497787
|
}
|
|
497340
497788
|
}, _callee);
|
|
497341
497789
|
}));
|
|
497342
|
-
function deploy(
|
|
497790
|
+
function deploy(_x3, _x4) {
|
|
497343
497791
|
return _deploy.apply(this, arguments);
|
|
497344
497792
|
}
|
|
497345
497793
|
return deploy;
|
|
@@ -497373,7 +497821,7 @@ var require_client2 = __commonJS({
|
|
|
497373
497821
|
}
|
|
497374
497822
|
}, _callee2);
|
|
497375
497823
|
}));
|
|
497376
|
-
function fromWasmHash(
|
|
497824
|
+
function fromWasmHash(_x5, _x6) {
|
|
497377
497825
|
return _fromWasmHash.apply(this, arguments);
|
|
497378
497826
|
}
|
|
497379
497827
|
return fromWasmHash;
|
|
@@ -497388,14 +497836,14 @@ var require_client2 = __commonJS({
|
|
|
497388
497836
|
switch (_context3.n) {
|
|
497389
497837
|
case 0:
|
|
497390
497838
|
_context3.n = 1;
|
|
497391
|
-
return
|
|
497839
|
+
return _spec.Spec.fromWasm(wasm);
|
|
497392
497840
|
case 1:
|
|
497393
497841
|
spec2 = _context3.v;
|
|
497394
497842
|
return _context3.a(2, new Client5(spec2, options23));
|
|
497395
497843
|
}
|
|
497396
497844
|
}, _callee3);
|
|
497397
497845
|
}));
|
|
497398
|
-
function fromWasm(
|
|
497846
|
+
function fromWasm(_x7, _x8) {
|
|
497399
497847
|
return _fromWasm.apply(this, arguments);
|
|
497400
497848
|
}
|
|
497401
497849
|
return fromWasm;
|
|
@@ -497428,7 +497876,7 @@ var require_client2 = __commonJS({
|
|
|
497428
497876
|
}
|
|
497429
497877
|
}, _callee4);
|
|
497430
497878
|
}));
|
|
497431
|
-
function from91(
|
|
497879
|
+
function from91(_x9) {
|
|
497432
497880
|
return _from.apply(this, arguments);
|
|
497433
497881
|
}
|
|
497434
497882
|
return from91;
|
|
@@ -497438,9 +497886,9 @@ var require_client2 = __commonJS({
|
|
|
497438
497886
|
}
|
|
497439
497887
|
});
|
|
497440
497888
|
|
|
497441
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
497889
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/contract/index.js
|
|
497442
497890
|
var require_contract4 = __commonJS({
|
|
497443
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
497891
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/contract/index.js"(exports2) {
|
|
497444
497892
|
"use strict";
|
|
497445
497893
|
Object.defineProperty(exports2, "__esModule", {
|
|
497446
497894
|
value: true
|
|
@@ -497539,9 +497987,9 @@ var require_contract4 = __commonJS({
|
|
|
497539
497987
|
}
|
|
497540
497988
|
});
|
|
497541
497989
|
|
|
497542
|
-
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
497990
|
+
// ../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/index.js
|
|
497543
497991
|
var require_lib63 = __commonJS({
|
|
497544
|
-
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.
|
|
497992
|
+
"../../node_modules/.pnpm/@stellar+stellar-sdk@14.1.0/node_modules/@stellar/stellar-sdk/lib/index.js"(exports2, module2) {
|
|
497545
497993
|
"use strict";
|
|
497546
497994
|
function _typeof(o37) {
|
|
497547
497995
|
"@babel/helpers - typeof";
|
|
@@ -525365,7 +525813,7 @@ var require_package7 = __commonJS({
|
|
|
525365
525813
|
module2.exports = {
|
|
525366
525814
|
name: "@ledgerhq/live-common",
|
|
525367
525815
|
description: "Common ground for the Ledger Live apps",
|
|
525368
|
-
version: "34.47.0-nightly.
|
|
525816
|
+
version: "34.47.0-nightly.1",
|
|
525369
525817
|
repository: {
|
|
525370
525818
|
type: "git",
|
|
525371
525819
|
url: "https://github.com/LedgerHQ/ledger-live.git"
|
|
@@ -531820,7 +532268,7 @@ var require_bip325 = __commonJS({
|
|
|
531820
532268
|
"use strict";
|
|
531821
532269
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
531822
532270
|
exports2.BIP32Factory = void 0;
|
|
531823
|
-
var
|
|
532271
|
+
var crypto38 = require_crypto7();
|
|
531824
532272
|
var testecc_1 = require_testecc();
|
|
531825
532273
|
var base_1 = require_lib64();
|
|
531826
532274
|
var sha256_1 = require_sha2565();
|
|
@@ -531932,7 +532380,7 @@ var require_bip325 = __commonJS({
|
|
|
531932
532380
|
return this.__PARENT_FINGERPRINT;
|
|
531933
532381
|
}
|
|
531934
532382
|
get identifier() {
|
|
531935
|
-
return
|
|
532383
|
+
return crypto38.hash160(this.publicKey);
|
|
531936
532384
|
}
|
|
531937
532385
|
get fingerprint() {
|
|
531938
532386
|
return this.identifier.slice(0, 4);
|
|
@@ -531985,7 +532433,7 @@ var require_bip325 = __commonJS({
|
|
|
531985
532433
|
this.publicKey.copy(data6, 0);
|
|
531986
532434
|
data6.writeUInt32BE(index, 33);
|
|
531987
532435
|
}
|
|
531988
|
-
const I14 =
|
|
532436
|
+
const I14 = crypto38.hmacSHA512(this.chainCode, data6);
|
|
531989
532437
|
const IL = I14.slice(0, 32);
|
|
531990
532438
|
const IR = I14.slice(32);
|
|
531991
532439
|
if (!ecc2.isPrivate(IL))
|
|
@@ -532127,7 +532575,7 @@ var require_bip325 = __commonJS({
|
|
|
532127
532575
|
if (seed.length > 64)
|
|
532128
532576
|
throw new TypeError("Seed should be at most 512 bits");
|
|
532129
532577
|
network = network || BITCOIN;
|
|
532130
|
-
const I14 =
|
|
532578
|
+
const I14 = crypto38.hmacSHA512(Buffer.from("Bitcoin seed", "utf8"), seed);
|
|
532131
532579
|
const IL = I14.slice(0, 32);
|
|
532132
532580
|
const IR = I14.slice(32);
|
|
532133
532581
|
return fromPrivateKey(IL, IR, network);
|
|
@@ -532172,7 +532620,7 @@ var require_package8 = __commonJS({
|
|
|
532172
532620
|
"package.json"(exports2, module2) {
|
|
532173
532621
|
module2.exports = {
|
|
532174
532622
|
name: "@ledgerhq/live-cli",
|
|
532175
|
-
version: "24.21.3-nightly.
|
|
532623
|
+
version: "24.21.3-nightly.1",
|
|
532176
532624
|
description: "ledger-live CLI version",
|
|
532177
532625
|
repository: {
|
|
532178
532626
|
type: "git",
|
|
@@ -538620,7 +539068,71 @@ var cryptocurrenciesById = {
|
|
|
538620
539068
|
address: "https://explorer-to-define.io/address/$address"
|
|
538621
539069
|
}
|
|
538622
539070
|
],
|
|
538623
|
-
keywords: ["
|
|
539071
|
+
keywords: ["canton_network"]
|
|
539072
|
+
},
|
|
539073
|
+
canton_network_localnet: {
|
|
539074
|
+
type: "CryptoCurrency",
|
|
539075
|
+
id: "canton_network_localnet",
|
|
539076
|
+
coinType: CoinType.CANTON_NETWORK,
|
|
539077
|
+
name: "Canton Network (Localnet)",
|
|
539078
|
+
managerAppName: "Canton",
|
|
539079
|
+
ticker: "CC",
|
|
539080
|
+
scheme: "canton_network_localnet",
|
|
539081
|
+
color: "#F8FFAE",
|
|
539082
|
+
family: "canton",
|
|
539083
|
+
blockAvgTime: 20,
|
|
539084
|
+
isTestnetFor: "canton_network",
|
|
539085
|
+
units: [
|
|
539086
|
+
{
|
|
539087
|
+
name: "cc",
|
|
539088
|
+
code: "CC",
|
|
539089
|
+
magnitude: 11
|
|
539090
|
+
},
|
|
539091
|
+
{
|
|
539092
|
+
name: "ucc",
|
|
539093
|
+
code: "ucc",
|
|
539094
|
+
magnitude: 0
|
|
539095
|
+
}
|
|
539096
|
+
],
|
|
539097
|
+
explorerViews: [
|
|
539098
|
+
{
|
|
539099
|
+
tx: "https://explorer-to-define.io/transaction/$hash",
|
|
539100
|
+
address: "https://explorer-to-define.io/address/$address"
|
|
539101
|
+
}
|
|
539102
|
+
],
|
|
539103
|
+
keywords: ["canton_network_localnet"]
|
|
539104
|
+
},
|
|
539105
|
+
canton_network_devnet: {
|
|
539106
|
+
type: "CryptoCurrency",
|
|
539107
|
+
id: "canton_network_devnet",
|
|
539108
|
+
coinType: CoinType.CANTON_NETWORK,
|
|
539109
|
+
name: "Canton Network (Devnet)",
|
|
539110
|
+
managerAppName: "Canton",
|
|
539111
|
+
ticker: "CC",
|
|
539112
|
+
scheme: "canton_network_devnet",
|
|
539113
|
+
color: "#F8FFAE",
|
|
539114
|
+
family: "canton",
|
|
539115
|
+
blockAvgTime: 20,
|
|
539116
|
+
isTestnetFor: "canton_network",
|
|
539117
|
+
units: [
|
|
539118
|
+
{
|
|
539119
|
+
name: "cc",
|
|
539120
|
+
code: "CC",
|
|
539121
|
+
magnitude: 11
|
|
539122
|
+
},
|
|
539123
|
+
{
|
|
539124
|
+
name: "ucc",
|
|
539125
|
+
code: "ucc",
|
|
539126
|
+
magnitude: 0
|
|
539127
|
+
}
|
|
539128
|
+
],
|
|
539129
|
+
explorerViews: [
|
|
539130
|
+
{
|
|
539131
|
+
tx: "https://explorer-to-define.io/transaction/$hash",
|
|
539132
|
+
address: "https://explorer-to-define.io/address/$address"
|
|
539133
|
+
}
|
|
539134
|
+
],
|
|
539135
|
+
keywords: ["canton_network_devnet"]
|
|
538624
539136
|
},
|
|
538625
539137
|
cardano: {
|
|
538626
539138
|
type: "CryptoCurrency",
|
|
@@ -543293,7 +543805,9 @@ var abandonSeedAddresses = {
|
|
|
543293
543805
|
hyperevm: EVM_DEAD_ADDRESS,
|
|
543294
543806
|
sei_network_evm: EVM_DEAD_ADDRESS,
|
|
543295
543807
|
berachain: EVM_DEAD_ADDRESS,
|
|
543296
|
-
canton_network: "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
|
543808
|
+
canton_network: "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
|
543809
|
+
canton_network_devnet: "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
|
543810
|
+
canton_network_localnet: "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
|
543297
543811
|
};
|
|
543298
543812
|
var getAbandonSeedAddress = (currencyId) => {
|
|
543299
543813
|
(0, import_invariant.default)(abandonSeedAddresses[currencyId] !== void 0, `No abandonseed available for ${currencyId}`);
|
|
@@ -553838,7 +554352,9 @@ setSupportedCurrencies([
|
|
|
553838
554352
|
"sonic_blaze",
|
|
553839
554353
|
"mina",
|
|
553840
554354
|
"babylon",
|
|
553841
|
-
"canton_network"
|
|
554355
|
+
"canton_network",
|
|
554356
|
+
"canton_network_devnet",
|
|
554357
|
+
"canton_network_localnet"
|
|
553842
554358
|
]);
|
|
553843
554359
|
for (const k15 in process.env)
|
|
553844
554360
|
setEnvUnsafe(k15, process.env[k15]);
|
|
@@ -554794,18 +555310,18 @@ var getDependencies = (appName, appVersion) => {
|
|
|
554794
555310
|
return !maybeDep || import_semver.default.lt(import_semver.default.coerce(appVersion) ?? "", maybeDep);
|
|
554795
555311
|
});
|
|
554796
555312
|
};
|
|
554797
|
-
function matchAppNameAndCryptoCurrency(appName,
|
|
555313
|
+
function matchAppNameAndCryptoCurrency(appName, crypto38) {
|
|
554798
555314
|
if (appName === "Ethereum") {
|
|
554799
|
-
return
|
|
555315
|
+
return crypto38.id === "ethereum";
|
|
554800
555316
|
}
|
|
554801
|
-
return appName.toLowerCase() ===
|
|
555317
|
+
return appName.toLowerCase() === crypto38.managerAppName.toLowerCase();
|
|
554802
555318
|
}
|
|
554803
555319
|
var getCurrencyIdFromAppName = (appName) => {
|
|
554804
|
-
const
|
|
555320
|
+
const crypto38 = (
|
|
554805
555321
|
// try to find the "official" currency when possible (2 currencies can have the same manager app and ticker)
|
|
554806
555322
|
listCryptoCurrencies(true, true).find((c56) => c56.name === appName || matchAppNameAndCryptoCurrency(appName, c56))
|
|
554807
555323
|
);
|
|
554808
|
-
return
|
|
555324
|
+
return crypto38?.id;
|
|
554809
555325
|
};
|
|
554810
555326
|
var mapApplicationV2ToApp = ({
|
|
554811
555327
|
versionId: id5,
|
|
@@ -597811,8 +598327,8 @@ function isValidAddress2(address4, currency24) {
|
|
|
597811
598327
|
if (!currency24) {
|
|
597812
598328
|
return fallbackValidateAddress(address4);
|
|
597813
598329
|
}
|
|
597814
|
-
const
|
|
597815
|
-
return
|
|
598330
|
+
const crypto38 = cryptoFactory(currency24);
|
|
598331
|
+
return crypto38.validateAddress(address4);
|
|
597816
598332
|
}
|
|
597817
598333
|
function isTaprootAddress(address4, currency24) {
|
|
597818
598334
|
if (currency24 === "bitcoin") {
|
|
@@ -597849,10 +598365,10 @@ var Xpub = class {
|
|
|
597849
598365
|
syncedBlockHeight = -1;
|
|
597850
598366
|
// the height of the current block in blockchain
|
|
597851
598367
|
currentBlockHeight = void 0;
|
|
597852
|
-
constructor({ storage, explorer, crypto:
|
|
598368
|
+
constructor({ storage, explorer, crypto: crypto38, xpub, derivationMode }) {
|
|
597853
598369
|
this.storage = storage;
|
|
597854
598370
|
this.explorer = explorer;
|
|
597855
|
-
this.crypto =
|
|
598371
|
+
this.crypto = crypto38;
|
|
597856
598372
|
this.xpub = xpub;
|
|
597857
598373
|
this.derivationMode = derivationMode;
|
|
597858
598374
|
this.freshAddress = "";
|
|
@@ -598492,7 +599008,7 @@ var BitcoinLikeWallet = class {
|
|
|
598492
599008
|
async generateAccount(params, cryptoCurrency) {
|
|
598493
599009
|
const explorerURI = blockchainBaseURL(cryptoCurrency);
|
|
598494
599010
|
this.explorers[explorerURI] = this.getExplorer(cryptoCurrency);
|
|
598495
|
-
const
|
|
599011
|
+
const crypto38 = cryptoFactory(params.currency);
|
|
598496
599012
|
const storageId = params.xpub + cryptoCurrency.id;
|
|
598497
599013
|
if (!this.storages[storageId]) {
|
|
598498
599014
|
this.storages[storageId] = new storage_default();
|
|
@@ -598502,7 +599018,7 @@ var BitcoinLikeWallet = class {
|
|
|
598502
599018
|
xpub: new xpub_default({
|
|
598503
599019
|
storage: this.storages[storageId],
|
|
598504
599020
|
explorer: this.explorers[explorerURI],
|
|
598505
|
-
crypto:
|
|
599021
|
+
crypto: crypto38,
|
|
598506
599022
|
xpub: params.xpub,
|
|
598507
599023
|
derivationMode: params.derivationMode
|
|
598508
599024
|
})
|
|
@@ -598658,7 +599174,7 @@ var BitcoinLikeWallet = class {
|
|
|
598658
599174
|
instantiateXpubFromSerializedAccount(account3) {
|
|
598659
599175
|
const currencyId = account3.params.currency;
|
|
598660
599176
|
const cryptoCurrency = getCryptoCurrencyById(currencyId);
|
|
598661
|
-
const
|
|
599177
|
+
const crypto38 = cryptoFactory(currencyId);
|
|
598662
599178
|
const storageId = account3.xpub.xpub + currencyId;
|
|
598663
599179
|
if (!this.storages[storageId]) {
|
|
598664
599180
|
this.storages[storageId] = new storage_default();
|
|
@@ -598666,7 +599182,7 @@ var BitcoinLikeWallet = class {
|
|
|
598666
599182
|
return new xpub_default({
|
|
598667
599183
|
storage: this.storages[storageId],
|
|
598668
599184
|
explorer: this.getExplorer(cryptoCurrency),
|
|
598669
|
-
crypto:
|
|
599185
|
+
crypto: crypto38,
|
|
598670
599186
|
xpub: account3.xpub.xpub,
|
|
598671
599187
|
derivationMode: account3.params.derivationMode
|
|
598672
599188
|
});
|
|
@@ -598722,8 +599238,8 @@ var PickingStrategy = class {
|
|
|
598722
599238
|
derivationMode;
|
|
598723
599239
|
// TODO Write tests for excluded UTXOs
|
|
598724
599240
|
excludedUTXOs;
|
|
598725
|
-
constructor(
|
|
598726
|
-
this.crypto =
|
|
599241
|
+
constructor(crypto38, derivationMode, excludedUTXOs) {
|
|
599242
|
+
this.crypto = crypto38;
|
|
598727
599243
|
this.derivationMode = derivationMode;
|
|
598728
599244
|
this.excludedUTXOs = excludedUTXOs;
|
|
598729
599245
|
}
|
|
@@ -599697,8 +600213,8 @@ var getTransactionStatus3 = async (account3, transaction) => {
|
|
|
599697
600213
|
}
|
|
599698
600214
|
if (transaction.feePerByte) {
|
|
599699
600215
|
const txSize = Math.ceil(estimatedFees.toNumber() / transaction.feePerByte.toNumber());
|
|
599700
|
-
const
|
|
599701
|
-
const dustAmount = computeDustAmount(
|
|
600216
|
+
const crypto38 = cryptoFactory(account3.currency.id);
|
|
600217
|
+
const dustAmount = computeDustAmount(crypto38, txSize);
|
|
599702
600218
|
if (amount.gt(0) && amount.lt(dustAmount)) {
|
|
599703
600219
|
errors.dustLimit = new DustLimit();
|
|
599704
600220
|
}
|
|
@@ -600395,14 +600911,14 @@ var getCurrencyConfiguration = (currency24) => {
|
|
|
600395
600911
|
var createSigner3 = (transport, currency24) => {
|
|
600396
600912
|
return new Btc({ transport, currency: currency24.id });
|
|
600397
600913
|
};
|
|
600398
|
-
var signerContext = (deviceId,
|
|
600914
|
+
var signerContext = (deviceId, crypto38, fn3) => (0, import_rxjs13.firstValueFrom)(withDevice(deviceId)((transport) => (0, import_rxjs13.from)(fn3(createSigner3(transport, crypto38)))));
|
|
600399
600915
|
var getCurrencyConfig = (currency24) => {
|
|
600400
600916
|
return { info: getCurrencyConfiguration(currency24) };
|
|
600401
600917
|
};
|
|
600402
600918
|
var bridge3 = createBridges3(signerContext, getCurrencyConfig);
|
|
600403
600919
|
function createMessageSigner2() {
|
|
600404
600920
|
return (transport, account3, messageData) => {
|
|
600405
|
-
const signerContext4 = (_13,
|
|
600921
|
+
const signerContext4 = (_13, crypto38, fn3) => fn3(createSigner3(transport, crypto38));
|
|
600406
600922
|
return signMessage2(signerContext4)("", account3, messageData);
|
|
600407
600923
|
};
|
|
600408
600924
|
}
|
|
@@ -600410,7 +600926,7 @@ var messageSigner = {
|
|
|
600410
600926
|
signMessage: createMessageSigner2()
|
|
600411
600927
|
};
|
|
600412
600928
|
var resolver6 = (transport, addressOpt) => {
|
|
600413
|
-
const signerContext4 = (_13,
|
|
600929
|
+
const signerContext4 = (_13, crypto38, fn3) => fn3(createSigner3(transport, crypto38));
|
|
600414
600930
|
return hw_getAddress_default2(signerContext4)("", addressOpt);
|
|
600415
600931
|
};
|
|
600416
600932
|
var cliTools3 = makeCliTools3();
|
|
@@ -603294,10 +603810,37 @@ init_lib_es();
|
|
|
603294
603810
|
var SimulationError = createCustomErrorClass("SimulationError");
|
|
603295
603811
|
|
|
603296
603812
|
// ../../libs/coin-modules/coin-canton/lib-es/network/node.js
|
|
603297
|
-
var
|
|
603813
|
+
var import_crypto8 = __toESM(require("crypto"));
|
|
603814
|
+
var getNodeUrl = () => config_default3.getCoinConfig().nodeUrl || "";
|
|
603815
|
+
var getNetworkType = () => config_default3.getCoinConfig().networkType;
|
|
603816
|
+
var generateJWT = () => {
|
|
603817
|
+
const encode29 = (obj2) => Buffer.from(JSON.stringify(obj2)).toString("base64").replace(/[+/=]/g, (c56) => ({ "+": "-", "/": "_", "=": "" })[c56] || "");
|
|
603818
|
+
const header = encode29({ alg: "HS256", typ: "JWT" });
|
|
603819
|
+
const payload = encode29({
|
|
603820
|
+
sub: "ledger-api-user",
|
|
603821
|
+
aud: "https://canton.network.global",
|
|
603822
|
+
iss: "unsafe-issuer",
|
|
603823
|
+
exp: Math.floor(Date.now() / 1e3) + 3600,
|
|
603824
|
+
iat: Math.floor(Date.now() / 1e3)
|
|
603825
|
+
});
|
|
603826
|
+
const data6 = `${header}.${payload}`;
|
|
603827
|
+
const signature4 = import_crypto8.default.createHmac("sha256", "unsafe").update(data6).digest("base64").replace(/[+/=]/g, (c56) => ({ "+": "-", "/": "_", "=": "" })[c56] || "");
|
|
603828
|
+
return `${data6}.${signature4}`;
|
|
603829
|
+
};
|
|
603830
|
+
var networkW = (req) => {
|
|
603831
|
+
const envJwt = process.env[getNetworkType().toUpperCase() + "_JWT"];
|
|
603832
|
+
const bearerJwt = envJwt !== void 0 ? envJwt : generateJWT();
|
|
603833
|
+
return lib_es_default({
|
|
603834
|
+
...req,
|
|
603835
|
+
headers: {
|
|
603836
|
+
...req.headers || {},
|
|
603837
|
+
Authorization: `Bearer ${bearerJwt}`
|
|
603838
|
+
}
|
|
603839
|
+
});
|
|
603840
|
+
};
|
|
603298
603841
|
var simulate = async (serializedTx) => {
|
|
603299
603842
|
const url4 = `${getEnv("NODE_BOILERPLATE")}/simulate`;
|
|
603300
|
-
const { data: data6 } = await
|
|
603843
|
+
const { data: data6 } = await lib_es_default({
|
|
603301
603844
|
url: url4,
|
|
603302
603845
|
method: "POST",
|
|
603303
603846
|
data: {
|
|
@@ -603312,7 +603855,7 @@ var simulate = async (serializedTx) => {
|
|
|
603312
603855
|
var getNextSequence = async (address4) => {
|
|
603313
603856
|
const url4 = `${getEnv("NODE_BOILERPLATE")}/${address4}/sequence`;
|
|
603314
603857
|
try {
|
|
603315
|
-
const { data: data6 } = await
|
|
603858
|
+
const { data: data6 } = await lib_es_default({
|
|
603316
603859
|
url: url4,
|
|
603317
603860
|
method: "GET"
|
|
603318
603861
|
});
|
|
@@ -603321,24 +603864,24 @@ var getNextSequence = async (address4) => {
|
|
|
603321
603864
|
return 0;
|
|
603322
603865
|
}
|
|
603323
603866
|
};
|
|
603324
|
-
var
|
|
603325
|
-
const url4 = `${
|
|
603326
|
-
const { data: data6 } = await
|
|
603867
|
+
var getLedgerEnd = async () => {
|
|
603868
|
+
const url4 = `${getNodeUrl()}/state/ledger-end`;
|
|
603869
|
+
const { data: data6 } = await networkW({
|
|
603327
603870
|
url: url4,
|
|
603328
603871
|
method: "GET"
|
|
603329
603872
|
});
|
|
603330
|
-
return data6.
|
|
603873
|
+
return data6.offset;
|
|
603331
603874
|
};
|
|
603332
603875
|
var submit = async (signedTx) => {
|
|
603333
603876
|
const url4 = `${getEnv("NODE_BOILERPLATE")}/submit`;
|
|
603334
|
-
const { data: data6 } = await
|
|
603877
|
+
const { data: data6 } = await lib_es_default({
|
|
603335
603878
|
url: url4,
|
|
603336
603879
|
method: "GET"
|
|
603337
603880
|
});
|
|
603338
603881
|
return data6;
|
|
603339
603882
|
};
|
|
603340
603883
|
var getAccountInfo = async (address4) => {
|
|
603341
|
-
const { data: { result: result2 } } = await
|
|
603884
|
+
const { data: { result: result2 } } = await lib_es_default({
|
|
603342
603885
|
method: "POST",
|
|
603343
603886
|
url: getNodeUrl(),
|
|
603344
603887
|
data: {
|
|
@@ -603451,7 +603994,7 @@ var import_bignumber112 = __toESM(require("bignumber.js"));
|
|
|
603451
603994
|
var getTransactionStatus6 = async (account3, transaction) => {
|
|
603452
603995
|
const errors = {};
|
|
603453
603996
|
const warnings3 = {};
|
|
603454
|
-
const reserveAmount = new import_bignumber112.default(config_default3.getCoinConfig().minReserve);
|
|
603997
|
+
const reserveAmount = new import_bignumber112.default(config_default3.getCoinConfig().minReserve || 0);
|
|
603455
603998
|
const estimatedFees = new import_bignumber112.default(transaction.fee || 0);
|
|
603456
603999
|
const totalSpent = new import_bignumber112.default(transaction.amount).plus(estimatedFees);
|
|
603457
604000
|
const amount = new import_bignumber112.default(transaction.amount);
|
|
@@ -603629,11 +604172,11 @@ var getAccountShape4 = async (info6) => {
|
|
|
603629
604172
|
xpubOrAddress: address4,
|
|
603630
604173
|
derivationMode
|
|
603631
604174
|
});
|
|
603632
|
-
const blockHeight = await
|
|
604175
|
+
const blockHeight = await getLedgerEnd();
|
|
603633
604176
|
const accountInfo = await getAccountInfo(address4);
|
|
603634
604177
|
const balance = new import_bignumber115.default(accountInfo.account_data.Balance);
|
|
603635
|
-
const reserveMin = config_default3.getCoinConfig().minReserve;
|
|
603636
|
-
const spendableBalance = new import_bignumber115.default(accountInfo.account_data.Balance).minus(reserveMin);
|
|
604178
|
+
const reserveMin = config_default3.getCoinConfig().minReserve || 0;
|
|
604179
|
+
const spendableBalance = new import_bignumber115.default(accountInfo.account_data.Balance).minus((0, import_bignumber115.default)(reserveMin));
|
|
603637
604180
|
const oldOperations = initialAccount?.operations || [];
|
|
603638
604181
|
const startAt = oldOperations.length ? (oldOperations[0].blockHeight || 0) + 1 : 0;
|
|
603639
604182
|
const newTransactions = await getTransactions2(address4, {
|
|
@@ -608748,10 +609291,10 @@ var CosmosAPI = class {
|
|
|
608748
609291
|
return this._cosmosSDKVersion;
|
|
608749
609292
|
}
|
|
608750
609293
|
constructor(currencyId, options23) {
|
|
608751
|
-
const
|
|
608752
|
-
this.chainInstance =
|
|
608753
|
-
this.defaultEndpoint = options23?.endpoint?.toString() ??
|
|
608754
|
-
this.version = options23?.version ??
|
|
609294
|
+
const crypto38 = cryptoFactory2(currencyId);
|
|
609295
|
+
this.chainInstance = crypto38;
|
|
609296
|
+
this.defaultEndpoint = options23?.endpoint?.toString() ?? crypto38.lcd;
|
|
609297
|
+
this.version = options23?.version ?? crypto38.version;
|
|
608755
609298
|
}
|
|
608756
609299
|
getAccountInfo = async (address4, currency24) => {
|
|
608757
609300
|
try {
|
|
@@ -610196,7 +610739,7 @@ function toOperationExtraRaw3(extra) {
|
|
|
610196
610739
|
var import_bignumber144 = __toESM(require("bignumber.js"));
|
|
610197
610740
|
var import_rxjs21 = require("rxjs");
|
|
610198
610741
|
var import_amino = __toESM(require_build13());
|
|
610199
|
-
var
|
|
610742
|
+
var import_crypto9 = __toESM(require_build12());
|
|
610200
610743
|
init_lib_es();
|
|
610201
610744
|
var buildSignOperation8 = (signerContext4) => ({ account: account3, deviceId, transaction }) => new import_rxjs21.Observable((o37) => {
|
|
610202
610745
|
let cancelled;
|
|
@@ -610239,7 +610782,7 @@ var buildSignOperation8 = (signerContext4) => ({ account: account3, deviceId, tr
|
|
|
610239
610782
|
case RETURN_CODES.REFUSED_OPERATION:
|
|
610240
610783
|
throw new UserRefusedOnDevice();
|
|
610241
610784
|
}
|
|
610242
|
-
const signature4 = Buffer.from(
|
|
610785
|
+
const signature4 = Buffer.from(import_crypto9.Secp256k1Signature.fromDer(resSignature).toFixedLength());
|
|
610243
610786
|
const txBytes = buildTransaction5({
|
|
610244
610787
|
protoMsgs,
|
|
610245
610788
|
memo: transaction.memo || "",
|
|
@@ -610972,7 +611515,7 @@ var resolver16 = (signerContext4) => {
|
|
|
610972
611515
|
var hw_getAddress_default6 = resolver16;
|
|
610973
611516
|
|
|
610974
611517
|
// ../../libs/coin-modules/coin-evm/lib-es/cryptoAssetsStore.js
|
|
610975
|
-
var CRYPTO_ASSETS_STORE_NO_SET_ERROR_MESSAGE = "CryptoAssetsStore is not set. Please call
|
|
611518
|
+
var CRYPTO_ASSETS_STORE_NO_SET_ERROR_MESSAGE = "CryptoAssetsStore is not set. Please call setCryptoAssetsStoreGetter first on coin EVM";
|
|
610976
611519
|
var getStore;
|
|
610977
611520
|
function setCryptoAssetsStoreGetter(cryptoAssetsStoreGetter) {
|
|
610978
611521
|
getStore = cryptoAssetsStoreGetter;
|
|
@@ -623959,7 +624502,7 @@ AxiosError3.from = (error, code, config4, request3, response, customProps) => {
|
|
|
623959
624502
|
var AxiosError_default2 = AxiosError3;
|
|
623960
624503
|
|
|
623961
624504
|
// ../../node_modules/.pnpm/axios@1.8.2/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
623962
|
-
var import_form_data2 = __toESM(
|
|
624505
|
+
var import_form_data2 = __toESM(require_form_data3(), 1);
|
|
623963
624506
|
var FormData_default2 = import_form_data2.default;
|
|
623964
624507
|
|
|
623965
624508
|
// ../../node_modules/.pnpm/axios@1.8.2/node_modules/axios/lib/helpers/toFormData.js
|
|
@@ -624213,7 +624756,7 @@ var transitional_default2 = {
|
|
|
624213
624756
|
};
|
|
624214
624757
|
|
|
624215
624758
|
// ../../node_modules/.pnpm/axios@1.8.2/node_modules/axios/lib/platform/node/index.js
|
|
624216
|
-
var
|
|
624759
|
+
var import_crypto10 = __toESM(require("crypto"), 1);
|
|
624217
624760
|
|
|
624218
624761
|
// ../../node_modules/.pnpm/axios@1.8.2/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
624219
624762
|
var import_url5 = __toESM(require("url"), 1);
|
|
@@ -624231,7 +624774,7 @@ var generateString2 = (size2 = 16, alphabet4 = ALPHABET3.ALPHA_DIGIT) => {
|
|
|
624231
624774
|
let str = "";
|
|
624232
624775
|
const { length: length2 } = alphabet4;
|
|
624233
624776
|
const randomValues = new Uint32Array(size2);
|
|
624234
|
-
|
|
624777
|
+
import_crypto10.default.randomFillSync(randomValues);
|
|
624235
624778
|
for (let i56 = 0; i56 < size2; i56++) {
|
|
624236
624779
|
str += alphabet4[randomValues[i56] % length2];
|
|
624237
624780
|
}
|
|
@@ -630920,20 +631463,20 @@ function unsafeStringify2(arr, offset2 = 0) {
|
|
|
630920
631463
|
}
|
|
630921
631464
|
|
|
630922
631465
|
// ../../node_modules/.pnpm/uuid@11.0.3/node_modules/uuid/dist/esm/rng.js
|
|
630923
|
-
var
|
|
631466
|
+
var import_crypto11 = require("crypto");
|
|
630924
631467
|
var rnds8Pool2 = new Uint8Array(256);
|
|
630925
631468
|
var poolPtr2 = rnds8Pool2.length;
|
|
630926
631469
|
function rng2() {
|
|
630927
631470
|
if (poolPtr2 > rnds8Pool2.length - 16) {
|
|
630928
|
-
(0,
|
|
631471
|
+
(0, import_crypto11.randomFillSync)(rnds8Pool2);
|
|
630929
631472
|
poolPtr2 = 0;
|
|
630930
631473
|
}
|
|
630931
631474
|
return rnds8Pool2.slice(poolPtr2, poolPtr2 += 16);
|
|
630932
631475
|
}
|
|
630933
631476
|
|
|
630934
631477
|
// ../../node_modules/.pnpm/uuid@11.0.3/node_modules/uuid/dist/esm/native.js
|
|
630935
|
-
var
|
|
630936
|
-
var native_default2 = { randomUUID:
|
|
631478
|
+
var import_crypto12 = require("crypto");
|
|
631479
|
+
var native_default2 = { randomUUID: import_crypto12.randomUUID };
|
|
630937
631480
|
|
|
630938
631481
|
// ../../node_modules/.pnpm/uuid@11.0.3/node_modules/uuid/dist/esm/v4.js
|
|
630939
631482
|
function v42(options23, buf2, offset2) {
|
|
@@ -635402,12 +635945,12 @@ var Reader2 = class _Reader {
|
|
|
635402
635945
|
};
|
|
635403
635946
|
|
|
635404
635947
|
// ../../node_modules/.pnpm/ethers@6.14.1/node_modules/ethers/lib.esm/crypto/crypto.js
|
|
635405
|
-
var
|
|
635948
|
+
var import_crypto13 = require("crypto");
|
|
635406
635949
|
|
|
635407
635950
|
// ../../node_modules/.pnpm/ethers@6.14.1/node_modules/ethers/lib.esm/crypto/hmac.js
|
|
635408
635951
|
var locked2 = false;
|
|
635409
635952
|
var _computeHmac = function(algorithm2, key2, data6) {
|
|
635410
|
-
return (0,
|
|
635953
|
+
return (0, import_crypto13.createHmac)(algorithm2, key2).update(data6).digest();
|
|
635411
635954
|
};
|
|
635412
635955
|
var __computeHmac = _computeHmac;
|
|
635413
635956
|
function computeHmac2(algorithm2, _key, _data2) {
|
|
@@ -635482,7 +636025,7 @@ var rotlBL3 = (h31, l66, s48) => h31 << s48 - 32 | l66 >>> 64 - s48;
|
|
|
635482
636025
|
|
|
635483
636026
|
// ../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/cryptoNode.js
|
|
635484
636027
|
var nc4 = __toESM(require("crypto"), 1);
|
|
635485
|
-
var
|
|
636028
|
+
var crypto21 = nc4 && typeof nc4 === "object" && "webcrypto" in nc4 ? nc4.webcrypto : void 0;
|
|
635486
636029
|
|
|
635487
636030
|
// ../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js
|
|
635488
636031
|
var u8a = (a63) => a63 instanceof Uint8Array;
|
|
@@ -635558,8 +636101,8 @@ function wrapXOFConstructorWithOpts3(hashCons) {
|
|
|
635558
636101
|
return hashC;
|
|
635559
636102
|
}
|
|
635560
636103
|
function randomBytes6(bytesLength = 32) {
|
|
635561
|
-
if (
|
|
635562
|
-
return
|
|
636104
|
+
if (crypto21 && typeof crypto21.getRandomValues === "function") {
|
|
636105
|
+
return crypto21.getRandomValues(new Uint8Array(bytesLength));
|
|
635563
636106
|
}
|
|
635564
636107
|
throw new Error("crypto.getRandomValues must be defined");
|
|
635565
636108
|
}
|
|
@@ -635988,7 +636531,7 @@ Object.freeze(ripemd1605);
|
|
|
635988
636531
|
// ../../node_modules/.pnpm/ethers@6.14.1/node_modules/ethers/lib.esm/crypto/pbkdf2.js
|
|
635989
636532
|
var locked5 = false;
|
|
635990
636533
|
var _pbkdf2 = function(password, salt, iterations, keylen, algo) {
|
|
635991
|
-
return (0,
|
|
636534
|
+
return (0, import_crypto13.pbkdf2Sync)(password, salt, iterations, keylen, algo);
|
|
635992
636535
|
};
|
|
635993
636536
|
var __pbkdf2 = _pbkdf2;
|
|
635994
636537
|
function pbkdf24(_password, _salt, iterations, keylen, algo) {
|
|
@@ -636011,7 +636554,7 @@ Object.freeze(pbkdf24);
|
|
|
636011
636554
|
// ../../node_modules/.pnpm/ethers@6.14.1/node_modules/ethers/lib.esm/crypto/random.js
|
|
636012
636555
|
var locked6 = false;
|
|
636013
636556
|
var _randomBytes = function(length2) {
|
|
636014
|
-
return new Uint8Array((0,
|
|
636557
|
+
return new Uint8Array((0, import_crypto13.randomBytes)(length2));
|
|
636015
636558
|
};
|
|
636016
636559
|
var __randomBytes = _randomBytes;
|
|
636017
636560
|
function randomBytes7(length2) {
|
|
@@ -636513,10 +637056,10 @@ Object.freeze(scryptSync);
|
|
|
636513
637056
|
|
|
636514
637057
|
// ../../node_modules/.pnpm/ethers@6.14.1/node_modules/ethers/lib.esm/crypto/sha2.js
|
|
636515
637058
|
var _sha256 = function(data6) {
|
|
636516
|
-
return (0,
|
|
637059
|
+
return (0, import_crypto13.createHash)("sha256").update(data6).digest();
|
|
636517
637060
|
};
|
|
636518
637061
|
var _sha512 = function(data6) {
|
|
636519
|
-
return (0,
|
|
637062
|
+
return (0, import_crypto13.createHash)("sha512").update(data6).digest();
|
|
636520
637063
|
};
|
|
636521
637064
|
var __sha256 = _sha256;
|
|
636522
637065
|
var __sha512 = _sha512;
|
|
@@ -665458,13 +666001,13 @@ var bip39_default = [
|
|
|
665458
666001
|
var import_tweetnacl6 = __toESM(require_nacl_fast(), 1);
|
|
665459
666002
|
|
|
665460
666003
|
// ../../node_modules/.pnpm/@hashgraph+cryptography@1.1.2/node_modules/@hashgraph/cryptography/src/primitive/sha256.js
|
|
665461
|
-
var
|
|
666004
|
+
var import_crypto38 = __toESM(require("crypto"), 1);
|
|
665462
666005
|
async function digest(data6) {
|
|
665463
|
-
return
|
|
666006
|
+
return import_crypto38.default.createHash("sha256").update(data6).digest();
|
|
665464
666007
|
}
|
|
665465
666008
|
|
|
665466
666009
|
// ../../node_modules/.pnpm/@hashgraph+cryptography@1.1.2/node_modules/@hashgraph/cryptography/src/primitive/hmac.js
|
|
665467
|
-
var
|
|
666010
|
+
var import_crypto39 = __toESM(require("crypto"), 1);
|
|
665468
666011
|
|
|
665469
666012
|
// ../../node_modules/.pnpm/@hashgraph+cryptography@1.1.2/node_modules/@hashgraph/cryptography/src/encoding/utf8.js
|
|
665470
666013
|
function decode11(data6) {
|
|
@@ -665486,15 +666029,15 @@ function hash4(algorithm2, secretKey, data6) {
|
|
|
665486
666029
|
switch (algorithm2) {
|
|
665487
666030
|
case HashAlgorithm.Sha256:
|
|
665488
666031
|
return Promise.resolve(
|
|
665489
|
-
|
|
666032
|
+
import_crypto39.default.createHmac("SHA256", key2).update(value5).digest()
|
|
665490
666033
|
);
|
|
665491
666034
|
case HashAlgorithm.Sha384:
|
|
665492
666035
|
return Promise.resolve(
|
|
665493
|
-
|
|
666036
|
+
import_crypto39.default.createHmac("SHA384", key2).update(value5).digest()
|
|
665494
666037
|
);
|
|
665495
666038
|
case HashAlgorithm.Sha512:
|
|
665496
666039
|
return Promise.resolve(
|
|
665497
|
-
|
|
666040
|
+
import_crypto39.default.createHmac("SHA512", key2).update(value5).digest()
|
|
665498
666041
|
);
|
|
665499
666042
|
default:
|
|
665500
666043
|
throw new Error(
|
|
@@ -665505,7 +666048,7 @@ function hash4(algorithm2, secretKey, data6) {
|
|
|
665505
666048
|
|
|
665506
666049
|
// ../../node_modules/.pnpm/@hashgraph+cryptography@1.1.2/node_modules/@hashgraph/cryptography/src/primitive/pbkdf2.js
|
|
665507
666050
|
var import_util5 = __toESM(require("util"), 1);
|
|
665508
|
-
var
|
|
666051
|
+
var import_crypto40 = __toESM(require("crypto"), 1);
|
|
665509
666052
|
async function deriveKey(algorithm2, password, salt, iterations, length2) {
|
|
665510
666053
|
const pass = typeof password === "string" ? (
|
|
665511
666054
|
// Valid ASCII is also valid UTF-8 so encoding the password as UTF-8
|
|
@@ -665513,7 +666056,7 @@ async function deriveKey(algorithm2, password, salt, iterations, length2) {
|
|
|
665513
666056
|
encode15(password)
|
|
665514
666057
|
) : password;
|
|
665515
666058
|
const nacl7 = typeof salt === "string" ? encode15(salt) : salt;
|
|
665516
|
-
const pbkdf26 = import_util5.default.promisify(
|
|
666059
|
+
const pbkdf26 = import_util5.default.promisify(import_crypto40.default.pbkdf2);
|
|
665517
666060
|
switch (algorithm2) {
|
|
665518
666061
|
case HashAlgorithm.Sha256:
|
|
665519
666062
|
return pbkdf26(pass, nacl7, iterations, length2, "sha256");
|
|
@@ -666697,19 +667240,19 @@ var PublicKey5 = class _PublicKey2 extends Key2 {
|
|
|
666697
667240
|
};
|
|
666698
667241
|
|
|
666699
667242
|
// ../../node_modules/.pnpm/@hashgraph+cryptography@1.1.2/node_modules/@hashgraph/cryptography/src/primitive/aes.js
|
|
666700
|
-
var
|
|
667243
|
+
var import_crypto41 = __toESM(require("crypto"), 1);
|
|
666701
667244
|
var CipherAlgorithm = {
|
|
666702
667245
|
Aes128Ctr: "AES-128-CTR",
|
|
666703
667246
|
Aes128Cbc: "AES-128-CBC"
|
|
666704
667247
|
};
|
|
666705
667248
|
function createCipheriv(algorithm2, key2, iv, data6) {
|
|
666706
|
-
const cipher =
|
|
667249
|
+
const cipher = import_crypto41.default.createCipheriv(algorithm2, key2.slice(0, 16), iv);
|
|
666707
667250
|
return Promise.resolve(
|
|
666708
667251
|
Buffer.concat([cipher.update(data6), cipher["final"]()])
|
|
666709
667252
|
);
|
|
666710
667253
|
}
|
|
666711
667254
|
function createDecipheriv(algorithm2, key2, iv, data6) {
|
|
666712
|
-
const decipher =
|
|
667255
|
+
const decipher = import_crypto41.default.createDecipheriv(algorithm2, key2.slice(0, 16), iv);
|
|
666713
667256
|
return Promise.resolve(
|
|
666714
667257
|
Buffer.concat([decipher.update(data6), decipher["final"]()])
|
|
666715
667258
|
);
|
|
@@ -675288,9 +675831,9 @@ var TransactionResponse2 = class _TransactionResponse {
|
|
|
675288
675831
|
};
|
|
675289
675832
|
|
|
675290
675833
|
// ../../node_modules/.pnpm/@hashgraph+sdk@2.14.2_patch_hash=hno7opkpqo3efbuenv6ysglr4m/node_modules/@hashgraph/sdk/src/cryptography/sha384.js
|
|
675291
|
-
var
|
|
675834
|
+
var import_crypto42 = __toESM(require("crypto"), 1);
|
|
675292
675835
|
function digest2(data6) {
|
|
675293
|
-
return Promise.resolve(
|
|
675836
|
+
return Promise.resolve(import_crypto42.default.createHash("sha384").update(data6).digest());
|
|
675294
675837
|
}
|
|
675295
675838
|
|
|
675296
675839
|
// ../../node_modules/.pnpm/@hashgraph+sdk@2.14.2_patch_hash=hno7opkpqo3efbuenv6ysglr4m/node_modules/@hashgraph/sdk/src/transaction/TransactionHashMap.js
|
|
@@ -707050,7 +707593,7 @@ function output2(out, instance3) {
|
|
|
707050
707593
|
|
|
707051
707594
|
// ../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/cryptoNode.js
|
|
707052
707595
|
var nc5 = __toESM(require("crypto"), 1);
|
|
707053
|
-
var
|
|
707596
|
+
var crypto27 = nc5 && typeof nc5 === "object" && "webcrypto" in nc5 ? nc5.webcrypto : nc5 && typeof nc5 === "object" && "randomBytes" in nc5 ? nc5 : void 0;
|
|
707054
707597
|
|
|
707055
707598
|
// ../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/utils.js
|
|
707056
707599
|
var createView4 = (arr) => new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
|
|
@@ -707098,11 +707641,11 @@ function wrapConstructor4(hashCons) {
|
|
|
707098
707641
|
return hashC;
|
|
707099
707642
|
}
|
|
707100
707643
|
function randomBytes8(bytesLength = 32) {
|
|
707101
|
-
if (
|
|
707102
|
-
return
|
|
707644
|
+
if (crypto27 && typeof crypto27.getRandomValues === "function") {
|
|
707645
|
+
return crypto27.getRandomValues(new Uint8Array(bytesLength));
|
|
707103
707646
|
}
|
|
707104
|
-
if (
|
|
707105
|
-
return
|
|
707647
|
+
if (crypto27 && typeof crypto27.randomBytes === "function") {
|
|
707648
|
+
return crypto27.randomBytes(bytesLength);
|
|
707106
707649
|
}
|
|
707107
707650
|
throw new Error("crypto.getRandomValues must be defined");
|
|
707108
707651
|
}
|
|
@@ -713236,9 +713779,9 @@ function stringToHex(value5) {
|
|
|
713236
713779
|
|
|
713237
713780
|
// ../../node_modules/.pnpm/@polkadot+x-randomvalues@12.6.2_@polkadot+util@12.6.2_@polkadot+wasm-util@7.3.2_@polkadot+util@12.6.2_/node_modules/@polkadot/x-randomvalues/node.js
|
|
713238
713781
|
var import_node_crypto = __toESM(require("crypto"), 1);
|
|
713239
|
-
var
|
|
713782
|
+
var crypto31 = /* @__PURE__ */ extractGlobal("crypto", import_node_crypto.default.webcrypto);
|
|
713240
713783
|
function getRandomValues(output4) {
|
|
713241
|
-
return
|
|
713784
|
+
return crypto31.getRandomValues(output4);
|
|
713242
713785
|
}
|
|
713243
713786
|
|
|
713244
713787
|
// ../../node_modules/.pnpm/@polkadot+wasm-bridge@7.3.2_@polkadot+util@12.6.2_@polkadot+x-randomvalues@12.6.2_@polkadot+u_pwfswwnziuno3vvds52zh5buqu/node_modules/@polkadot/wasm-bridge/wbg.js
|
|
@@ -753911,7 +754454,7 @@ var import_rxjs65 = require("rxjs");
|
|
|
753911
754454
|
function zeroBalance(api7) {
|
|
753912
754455
|
return api7.registry.createType("Balance");
|
|
753913
754456
|
}
|
|
753914
|
-
function
|
|
754457
|
+
function getBalance3(api7, [freeBalance, reservedBalance, frozenFee, frozenMisc]) {
|
|
753915
754458
|
const votingBalance2 = api7.registry.createType("Balance", freeBalance.toBn());
|
|
753916
754459
|
return {
|
|
753917
754460
|
freeBalance,
|
|
@@ -753925,8 +754468,8 @@ function calcBalances2(api7, [accountId2, [accountNonce, [primary, ...additional
|
|
|
753925
754468
|
return objectSpread({
|
|
753926
754469
|
accountId: accountId2,
|
|
753927
754470
|
accountNonce,
|
|
753928
|
-
additional: additional.map((b17) =>
|
|
753929
|
-
},
|
|
754471
|
+
additional: additional.map((b17) => getBalance3(api7, b17))
|
|
754472
|
+
}, getBalance3(api7, primary));
|
|
753930
754473
|
}
|
|
753931
754474
|
function queryBalancesFree(api7, accountId2) {
|
|
753932
754475
|
return (0, import_rxjs65.combineLatest)([
|
|
@@ -758634,7 +759177,7 @@ var getRegistry = async () => {
|
|
|
758634
759177
|
]);
|
|
758635
759178
|
return createRegistryAndExtrinsics(material, spec2);
|
|
758636
759179
|
};
|
|
758637
|
-
var
|
|
759180
|
+
var getLastBlock = async () => {
|
|
758638
759181
|
const { data: data6 } = await callSidecar("/blocks/head");
|
|
758639
759182
|
return { hash: data6.hash, height: parseInt(data6.number), time: /* @__PURE__ */ new Date() };
|
|
758640
759183
|
};
|
|
@@ -758682,7 +759225,7 @@ var network_default2 = {
|
|
|
758682
759225
|
getAccount: async (address4) => getAccount7(address4),
|
|
758683
759226
|
getBalances: async (address4) => getBalances(address4),
|
|
758684
759227
|
getOperations: getOperations3,
|
|
758685
|
-
getLastBlock
|
|
759228
|
+
getLastBlock,
|
|
758686
759229
|
getMinimumBondBalance: getMinimumBondBalance2,
|
|
758687
759230
|
getRegistry: getRegistry2,
|
|
758688
759231
|
getStakingProgress,
|
|
@@ -777027,6 +777570,11 @@ var SWAP_DATA_CDN = {
|
|
|
777027
777570
|
displayName: "CIC",
|
|
777028
777571
|
type: "CEX",
|
|
777029
777572
|
useInExchangeApp: true,
|
|
777573
|
+
usefulUrls: [
|
|
777574
|
+
"https://changelly.com/terms-of-use",
|
|
777575
|
+
"https://changelly.com/aml-kyc",
|
|
777576
|
+
"https://support.changelly.com/en/support/tickets/new"
|
|
777577
|
+
],
|
|
777030
777578
|
termsOfUseUrl: "https://criptointercambio.com/terms-of-use",
|
|
777031
777579
|
supportUrl: "https://criptointercambio.com/en/about",
|
|
777032
777580
|
mainUrl: "https://criptointercambio.com/"
|
|
@@ -779359,7 +779907,7 @@ function signSync(msgHash, privKey, opts = {}) {
|
|
|
779359
779907
|
return finalizeSig(sig2, opts);
|
|
779360
779908
|
}
|
|
779361
779909
|
Point6.BASE._setWindowSize(8);
|
|
779362
|
-
var
|
|
779910
|
+
var crypto33 = {
|
|
779363
779911
|
node: nodeCrypto2,
|
|
779364
779912
|
web: typeof self === "object" && "crypto" in self ? self.crypto : void 0
|
|
779365
779913
|
};
|
|
@@ -779390,10 +779938,10 @@ var utils3 = {
|
|
|
779390
779938
|
return numTo32b(num);
|
|
779391
779939
|
},
|
|
779392
779940
|
randomBytes: (bytesLength = 32) => {
|
|
779393
|
-
if (
|
|
779394
|
-
return
|
|
779395
|
-
} else if (
|
|
779396
|
-
const { randomBytes: randomBytes12 } =
|
|
779941
|
+
if (crypto33.web) {
|
|
779942
|
+
return crypto33.web.getRandomValues(new Uint8Array(bytesLength));
|
|
779943
|
+
} else if (crypto33.node) {
|
|
779944
|
+
const { randomBytes: randomBytes12 } = crypto33.node;
|
|
779397
779945
|
return Uint8Array.from(randomBytes12(bytesLength));
|
|
779398
779946
|
} else {
|
|
779399
779947
|
throw new Error("The environment doesn't have randomBytes function");
|
|
@@ -779407,11 +779955,11 @@ var utils3 = {
|
|
|
779407
779955
|
return cached2;
|
|
779408
779956
|
},
|
|
779409
779957
|
sha256: async (...messages) => {
|
|
779410
|
-
if (
|
|
779411
|
-
const buffer2 = await
|
|
779958
|
+
if (crypto33.web) {
|
|
779959
|
+
const buffer2 = await crypto33.web.subtle.digest("SHA-256", concatBytes8(...messages));
|
|
779412
779960
|
return new Uint8Array(buffer2);
|
|
779413
|
-
} else if (
|
|
779414
|
-
const { createHash: createHash4 } =
|
|
779961
|
+
} else if (crypto33.node) {
|
|
779962
|
+
const { createHash: createHash4 } = crypto33.node;
|
|
779415
779963
|
const hash11 = createHash4("sha256");
|
|
779416
779964
|
messages.forEach((m60) => hash11.update(m60));
|
|
779417
779965
|
return Uint8Array.from(hash11.digest());
|
|
@@ -779420,13 +779968,13 @@ var utils3 = {
|
|
|
779420
779968
|
}
|
|
779421
779969
|
},
|
|
779422
779970
|
hmacSha256: async (key2, ...messages) => {
|
|
779423
|
-
if (
|
|
779424
|
-
const ckey = await
|
|
779971
|
+
if (crypto33.web) {
|
|
779972
|
+
const ckey = await crypto33.web.subtle.importKey("raw", key2, { name: "HMAC", hash: { name: "SHA-256" } }, false, ["sign"]);
|
|
779425
779973
|
const message2 = concatBytes8(...messages);
|
|
779426
|
-
const buffer2 = await
|
|
779974
|
+
const buffer2 = await crypto33.web.subtle.sign("HMAC", ckey, message2);
|
|
779427
779975
|
return new Uint8Array(buffer2);
|
|
779428
|
-
} else if (
|
|
779429
|
-
const { createHmac: createHmac3 } =
|
|
779976
|
+
} else if (crypto33.node) {
|
|
779977
|
+
const { createHmac: createHmac3 } = crypto33.node;
|
|
779430
779978
|
const hash11 = createHmac3("sha256", key2);
|
|
779431
779979
|
messages.forEach((m60) => hash11.update(m60));
|
|
779432
779980
|
return Uint8Array.from(hash11.digest());
|
|
@@ -800877,7 +801425,7 @@ var defaultConfigStreamer = {
|
|
|
800877
801425
|
shouldObservableSubscriptionRetry: false,
|
|
800878
801426
|
observableSubscriptionRetryFunction: (0, import_operators8.retry)()
|
|
800879
801427
|
};
|
|
800880
|
-
var
|
|
801428
|
+
var getLastBlock2 = (context) => {
|
|
800881
801429
|
return (0, import_rxjs141.from)(context.rpc.getBlock()).pipe((0, import_operators8.first)());
|
|
800882
801430
|
};
|
|
800883
801431
|
var applyFilter = (filter26) => (0, import_operators8.concatMap)((block2) => {
|
|
@@ -800927,7 +801475,7 @@ var PollingSubscribeProvider = class {
|
|
|
800927
801475
|
return (0, import_rxjs141.timer)(0, pollingIntervalMilliseconds);
|
|
800928
801476
|
}
|
|
800929
801477
|
}));
|
|
800930
|
-
this.newBlock$ = this.timer$.pipe((0, import_operators8.switchMap)(() =>
|
|
801478
|
+
this.newBlock$ = this.timer$.pipe((0, import_operators8.switchMap)(() => getLastBlock2(this.context)), (0, import_operators8.distinctUntilKeyChanged)("hash"), (0, import_operators8.publish)(), (0, import_operators8.refCount)());
|
|
800931
801479
|
}
|
|
800932
801480
|
get config() {
|
|
800933
801481
|
return this._config$.getValue();
|
|
@@ -804046,7 +804594,7 @@ async function fetchTronAccount(addr) {
|
|
|
804046
804594
|
return [];
|
|
804047
804595
|
}
|
|
804048
804596
|
}
|
|
804049
|
-
async function
|
|
804597
|
+
async function getLastBlock3() {
|
|
804050
804598
|
const data6 = await fetch13(`/wallet/getnowblock`);
|
|
804051
804599
|
return toBlock(data6);
|
|
804052
804600
|
}
|
|
@@ -804299,14 +804847,14 @@ var claimRewardTronTransaction = async (account3) => {
|
|
|
804299
804847
|
|
|
804300
804848
|
// ../../libs/coin-modules/coin-tron/lib-es/logic/utils.js
|
|
804301
804849
|
var import_bignumber290 = __toESM(require("bignumber.js"));
|
|
804302
|
-
var
|
|
804850
|
+
var import_crypto48 = require("crypto");
|
|
804303
804851
|
var import_get2 = __toESM(require("lodash/get"));
|
|
804304
804852
|
var import_tronweb2 = __toESM(require_TronWeb_node());
|
|
804305
804853
|
async function decodeTransaction(rawTx) {
|
|
804306
804854
|
const { Transaction: Transaction7 } = globalThis.TronWebProto;
|
|
804307
804855
|
const transaction = Transaction7.raw.deserializeBinary(Buffer.from(rawTx, "hex"));
|
|
804308
804856
|
return {
|
|
804309
|
-
txID: (0,
|
|
804857
|
+
txID: (0, import_crypto48.createHash)("sha256").update(Buffer.from(rawTx, "hex")).digest("hex"),
|
|
804310
804858
|
raw_data: convertTxFromRaw(transaction),
|
|
804311
804859
|
raw_data_hex: rawTx
|
|
804312
804860
|
};
|
|
@@ -804803,7 +805351,7 @@ function fromBigNumberToBigInt(bigNumber, defaultValue) {
|
|
|
804803
805351
|
|
|
804804
805352
|
// ../../libs/coin-modules/coin-tron/lib-es/logic/lastBlock.js
|
|
804805
805353
|
async function lastBlock5() {
|
|
804806
|
-
return await
|
|
805354
|
+
return await getLastBlock3();
|
|
804807
805355
|
}
|
|
804808
805356
|
|
|
804809
805357
|
// ../../libs/coin-modules/coin-tron/lib-es/logic/getAccount.js
|
|
@@ -806598,7 +807146,7 @@ var RLPError = class _RLPError extends Error {
|
|
|
806598
807146
|
};
|
|
806599
807147
|
|
|
806600
807148
|
// ../../node_modules/.pnpm/thor-devkit@2.0.9/node_modules/thor-devkit/esm/secp256k1.js
|
|
806601
|
-
var
|
|
807149
|
+
var import_crypto49 = require("crypto");
|
|
806602
807150
|
var import_elliptic4 = __toESM(require_elliptic());
|
|
806603
807151
|
var import_buffer22 = require("buffer");
|
|
806604
807152
|
var curve = new import_elliptic4.ec("secp256k1");
|
|
@@ -806613,7 +807161,7 @@ function isValidMessageHash(hash11) {
|
|
|
806613
807161
|
var secp256k17;
|
|
806614
807162
|
(function(secp256k110) {
|
|
806615
807163
|
function generatePrivateKey2(rng4) {
|
|
806616
|
-
rng4 = rng4 !== null && rng4 !== void 0 ? rng4 : () => (0,
|
|
807164
|
+
rng4 = rng4 !== null && rng4 !== void 0 ? rng4 : () => (0, import_crypto49.randomBytes)(32);
|
|
806617
807165
|
for (; ; ) {
|
|
806618
807166
|
const privKey = rng4();
|
|
806619
807167
|
if (isValidPrivateKey(privKey)) {
|
|
@@ -807363,7 +807911,7 @@ var padAddress = (address4) => {
|
|
|
807363
807911
|
|
|
807364
807912
|
// ../../libs/coin-modules/coin-vechain/lib-es/common-logic/transaction-utils.js
|
|
807365
807913
|
var import_bignumber306 = __toESM(require("bignumber.js"));
|
|
807366
|
-
var
|
|
807914
|
+
var import_crypto50 = __toESM(require("crypto"));
|
|
807367
807915
|
|
|
807368
807916
|
// ../../libs/coin-modules/coin-vechain/lib-es/contracts/abis/params.js
|
|
807369
807917
|
var set2 = {
|
|
@@ -807435,7 +807983,7 @@ var ImpossibleToCalculateAmountAndFees = createCustomErrorClass("ImpossibleToCal
|
|
|
807435
807983
|
// ../../libs/coin-modules/coin-vechain/lib-es/common-logic/transaction-utils.js
|
|
807436
807984
|
var GAS_COEFFICIENT = 15e3;
|
|
807437
807985
|
var generateNonce = () => {
|
|
807438
|
-
const randBuffer =
|
|
807986
|
+
const randBuffer = import_crypto50.default.randomBytes(Math.ceil(4));
|
|
807439
807987
|
if (!randBuffer)
|
|
807440
807988
|
throw Error("Failed to generate random hex");
|
|
807441
807989
|
return `${HEX_PREFIX}${randBuffer.toString("hex").substring(0, 8)}`;
|
|
@@ -822516,8 +823064,8 @@ var getTransactionStatus25 = (account3, t43) => {
|
|
|
822516
823064
|
}
|
|
822517
823065
|
if (t43.feePerByte) {
|
|
822518
823066
|
const txSize = Math.ceil(estimatedFees.toNumber() / t43.feePerByte.toNumber());
|
|
822519
|
-
const
|
|
822520
|
-
if (amount.gt(0) && amount.lt(computeDustAmount(
|
|
823067
|
+
const crypto38 = cryptoFactory(account3.currency.id);
|
|
823068
|
+
if (amount.gt(0) && amount.lt(computeDustAmount(crypto38, txSize))) {
|
|
822521
823069
|
errors.dustLimit = new DustLimit();
|
|
822522
823070
|
}
|
|
822523
823071
|
}
|
|
@@ -825686,7 +826234,7 @@ async function estimateFees6(networkInfo) {
|
|
|
825686
826234
|
}
|
|
825687
826235
|
|
|
825688
826236
|
// ../../libs/coin-modules/coin-xrp/lib-es/logic/getBalance.js
|
|
825689
|
-
async function
|
|
826237
|
+
async function getBalance7(address4) {
|
|
825690
826238
|
const accountInfo = await getAccountInfo2(address4);
|
|
825691
826239
|
const serverInfo = await getServerInfos();
|
|
825692
826240
|
const reserveMinXRP = parseAPIValue2(serverInfo.info.validated_ledger.reserve_base_xrp.toString());
|
|
@@ -825855,7 +826403,7 @@ var validateIntent = async (transactionIntent, customFees) => {
|
|
|
825855
826403
|
if (amount > 0 && estimatedFees * 10n > amount) {
|
|
825856
826404
|
warnings3.feeTooHigh = new FeeTooHigh();
|
|
825857
826405
|
}
|
|
825858
|
-
const balances = await
|
|
826406
|
+
const balances = await getBalance7(transactionIntent.sender);
|
|
825859
826407
|
const nativeBalance = balances.find((b17) => b17.asset.type === "native");
|
|
825860
826408
|
if (nativeBalance === void 0) {
|
|
825861
826409
|
throw Error("Shouldn't happen");
|
|
@@ -825908,7 +826456,7 @@ function createApi(config4) {
|
|
|
825908
826456
|
combine: combine5,
|
|
825909
826457
|
craftTransaction: craft,
|
|
825910
826458
|
estimateFees: estimate,
|
|
825911
|
-
getBalance:
|
|
826459
|
+
getBalance: getBalance7,
|
|
825912
826460
|
lastBlock: lastBlock7,
|
|
825913
826461
|
listOperations: operations,
|
|
825914
826462
|
validateIntent,
|
|
@@ -826030,14 +826578,9 @@ var NetworkCongestionLevel;
|
|
|
826030
826578
|
// ../../libs/coin-modules/coin-stellar/lib-es/network/serialization.js
|
|
826031
826579
|
var import_bignumber354 = __toESM(require("bignumber.js"));
|
|
826032
826580
|
var currency = getCryptoCurrencyById("stellar");
|
|
826033
|
-
|
|
826034
|
-
|
|
826035
|
-
|
|
826036
|
-
return import_bignumber354.default.max(balance.minus(minimumBalance).minus(recommendedFee), 0);
|
|
826037
|
-
}
|
|
826038
|
-
var getMinimumBalance2 = (account3) => {
|
|
826039
|
-
return parseCurrencyUnit(currency.units[0], getReservedBalance(account3).toString());
|
|
826040
|
-
};
|
|
826581
|
+
var BASE_RESERVE_MIN_COUNT = 2;
|
|
826582
|
+
var BASE_RESERVE = 0.5;
|
|
826583
|
+
var MIN_BALANCE = 1;
|
|
826041
826584
|
function getReservedBalance(account3) {
|
|
826042
826585
|
const numOfSponsoringEntries = Number(account3.num_sponsoring);
|
|
826043
826586
|
const numOfSponsoredEntries = Number(account3.num_sponsored);
|
|
@@ -826246,9 +826789,6 @@ function getServer() {
|
|
|
826246
826789
|
}
|
|
826247
826790
|
return server;
|
|
826248
826791
|
}
|
|
826249
|
-
var BASE_RESERVE = 0.5;
|
|
826250
|
-
var BASE_RESERVE_MIN_COUNT = 2;
|
|
826251
|
-
var MIN_BALANCE = 1;
|
|
826252
826792
|
import_stellar_sdk2.Horizon.AxiosClient.interceptors.request.use((config4) => {
|
|
826253
826793
|
if (!config_default11.getCoinConfig().enableNetworkLogs) {
|
|
826254
826794
|
return config4;
|
|
@@ -826262,6 +826802,14 @@ function useConfigHost(url4) {
|
|
|
826262
826802
|
u45.host = new URL(config_default11.getCoinConfig().explorer.url).host;
|
|
826263
826803
|
return u45.toString();
|
|
826264
826804
|
}
|
|
826805
|
+
var getMinimumBalance2 = (account3) => {
|
|
826806
|
+
return parseCurrencyUnit(currency2.units[0], getReservedBalance(account3).toString());
|
|
826807
|
+
};
|
|
826808
|
+
async function getAccountSpendableBalance2(balance, account3) {
|
|
826809
|
+
const minimumBalance = getMinimumBalance2(account3);
|
|
826810
|
+
const { recommendedFee } = await fetchBaseFee();
|
|
826811
|
+
return import_bignumber355.BigNumber.max(balance.minus(minimumBalance).minus(recommendedFee), 0);
|
|
826812
|
+
}
|
|
826265
826813
|
import_stellar_sdk2.Horizon.AxiosClient.interceptors.response.use((response) => {
|
|
826266
826814
|
if (config_default11.getCoinConfig().enableNetworkLogs) {
|
|
826267
826815
|
const { url: url4, method: method2 } = response.config;
|
|
@@ -826422,7 +826970,7 @@ async function loadAccount(addr) {
|
|
|
826422
826970
|
return null;
|
|
826423
826971
|
}
|
|
826424
826972
|
}
|
|
826425
|
-
async function
|
|
826973
|
+
async function getLastBlock5() {
|
|
826426
826974
|
const ledger = await getServer().ledgers().order("desc").limit(1).call();
|
|
826427
826975
|
return {
|
|
826428
826976
|
height: ledger.records[0].sequence,
|
|
@@ -826640,7 +827188,7 @@ function isAddressValid3(address4) {
|
|
|
826640
827188
|
|
|
826641
827189
|
// ../../libs/coin-modules/coin-stellar/lib-es/logic/getBalance.js
|
|
826642
827190
|
var import_bignumber357 = __toESM(require("bignumber.js"));
|
|
826643
|
-
async function
|
|
827191
|
+
async function getBalance8(addr) {
|
|
826644
827192
|
const { balance, assets, spendableBalance } = await fetchAccount(addr);
|
|
826645
827193
|
const locked7 = BigInt(balance.toString()) - BigInt(spendableBalance.toString());
|
|
826646
827194
|
const nativeRes = [
|
|
@@ -826675,7 +827223,7 @@ async function getBalance7(addr) {
|
|
|
826675
827223
|
|
|
826676
827224
|
// ../../libs/coin-modules/coin-stellar/lib-es/logic/lastBlock.js
|
|
826677
827225
|
async function lastBlock8() {
|
|
826678
|
-
return await
|
|
827226
|
+
return await getLastBlock5();
|
|
826679
827227
|
}
|
|
826680
827228
|
|
|
826681
827229
|
// ../../libs/coin-modules/coin-stellar/lib-es/logic/listOperations.js
|
|
@@ -826738,7 +827286,7 @@ var validateIntent2 = async (transactionIntent, customFees) => {
|
|
|
826738
827286
|
const estimatedFees = customFees?.value ?? 0n;
|
|
826739
827287
|
const baseReserve = networkInfo.baseReserve ? BigInt(Math.round(networkInfo.baseReserve.toNumber() * 10)) / 10n : 0n;
|
|
826740
827288
|
const isAssetPayment = transactionIntent.asset.type !== "native";
|
|
826741
|
-
const balances = await
|
|
827289
|
+
const balances = await getBalance8(transactionIntent.sender);
|
|
826742
827290
|
const nativeBalance = BigInt(balance.toString());
|
|
826743
827291
|
const nativeAmountAvailable = BigInt(spendableBalance.toString()) - estimatedFees;
|
|
826744
827292
|
let amount = 0n;
|
|
@@ -826864,7 +827412,7 @@ function createApi2(config4) {
|
|
|
826864
827412
|
combine: compose,
|
|
826865
827413
|
craftTransaction: craft2,
|
|
826866
827414
|
estimateFees: estimate2,
|
|
826867
|
-
getBalance:
|
|
827415
|
+
getBalance: getBalance8,
|
|
826868
827416
|
lastBlock: lastBlock8,
|
|
826869
827417
|
listOperations: operations2,
|
|
826870
827418
|
getBlock(_height) {
|
|
@@ -827040,7 +827588,7 @@ var buildValidateIntent = (networkFamily) => async function validateIntent3(tran
|
|
|
827040
827588
|
});
|
|
827041
827589
|
return data6;
|
|
827042
827590
|
};
|
|
827043
|
-
var buildGetBalance = (networkFamily) => async function
|
|
827591
|
+
var buildGetBalance = (networkFamily) => async function getBalance9(address4) {
|
|
827044
827592
|
const { data: data6 } = await lib_es_default({
|
|
827045
827593
|
method: "GET",
|
|
827046
827594
|
url: `${ALPACA_URL}/${networkFamily}/account/${address4}/balance`
|
|
@@ -843148,14 +843696,14 @@ var import_lib2 = __toESM(require_lib67());
|
|
|
843148
843696
|
var createSigner27 = (transport, currency24) => {
|
|
843149
843697
|
return new import_lib2.default({ transport, currency: currency24.id });
|
|
843150
843698
|
};
|
|
843151
|
-
var signerContext3 = (deviceId,
|
|
843699
|
+
var signerContext3 = (deviceId, crypto38, fn3) => (0, import_rxjs180.firstValueFrom)(withDevice(deviceId)((transport) => (0, import_rxjs180.from)(fn3(createSigner27(transport, crypto38)))));
|
|
843152
843700
|
var getCurrencyConfig12 = (currency24) => {
|
|
843153
843701
|
return { info: getCurrencyConfiguration(currency24) };
|
|
843154
843702
|
};
|
|
843155
843703
|
var bridge26 = createBridges3(signerContext3, getCurrencyConfig12);
|
|
843156
843704
|
function createMessageSigner3() {
|
|
843157
843705
|
return (transport, account3, messageData) => {
|
|
843158
|
-
const signerContext4 = (_13,
|
|
843706
|
+
const signerContext4 = (_13, crypto38, fn3) => fn3(createSigner27(transport, crypto38));
|
|
843159
843707
|
return signMessage2(signerContext4)("", account3, messageData);
|
|
843160
843708
|
};
|
|
843161
843709
|
}
|
|
@@ -843171,7 +843719,7 @@ function createWithdrawSigner() {
|
|
|
843171
843719
|
};
|
|
843172
843720
|
};
|
|
843173
843721
|
return (transport, account3, messageData) => {
|
|
843174
|
-
const signerContext4 = (_13,
|
|
843722
|
+
const signerContext4 = (_13, crypto38, fn3) => fn3(createSigner27(transport, crypto38));
|
|
843175
843723
|
return signWithdraw(signerContext4)("", account3, messageData);
|
|
843176
843724
|
};
|
|
843177
843725
|
}
|
|
@@ -843187,7 +843735,7 @@ function createSignInSigner() {
|
|
|
843187
843735
|
};
|
|
843188
843736
|
};
|
|
843189
843737
|
return (transport, account3, messageData) => {
|
|
843190
|
-
const signerContext4 = (_13,
|
|
843738
|
+
const signerContext4 = (_13, crypto38, fn3) => fn3(createSigner27(transport, crypto38));
|
|
843191
843739
|
return signIn(signerContext4)("", account3, messageData);
|
|
843192
843740
|
};
|
|
843193
843741
|
}
|
|
@@ -845431,9 +845979,9 @@ var listApps2 = ({ transport, deviceInfo, deviceProxyModel, managerDevModeEnable
|
|
|
845431
845979
|
]);
|
|
845432
845980
|
calculateDependencies();
|
|
845433
845981
|
catalogForDevice.forEach((app) => {
|
|
845434
|
-
const
|
|
845435
|
-
if (
|
|
845436
|
-
app.indexOfMarketCap = sortedCryptoCurrencies.indexOf(
|
|
845982
|
+
const crypto38 = app.currencyId && findCryptoCurrencyById(app.currencyId);
|
|
845983
|
+
if (crypto38) {
|
|
845984
|
+
app.indexOfMarketCap = sortedCryptoCurrencies.indexOf(crypto38);
|
|
845437
845985
|
}
|
|
845438
845986
|
});
|
|
845439
845987
|
const installedList = [];
|
|
@@ -846960,7 +847508,7 @@ async function generateCustomLockScreenImageFormat(hexImage, compressImage, padI
|
|
|
846960
847508
|
}
|
|
846961
847509
|
|
|
846962
847510
|
// src/commands/device/customLockScreenFetchAndRestore.ts
|
|
846963
|
-
var
|
|
847511
|
+
var import_crypto52 = __toESM(require("crypto"));
|
|
846964
847512
|
var exec3 = async (opts) => {
|
|
846965
847513
|
const { fileInput, device: deviceId = "", deviceModelId } = opts;
|
|
846966
847514
|
if (!isCustomLockScreenSupported(deviceModelId)) {
|
|
@@ -846976,7 +847524,7 @@ var exec3 = async (opts) => {
|
|
|
846976
847524
|
getScreenSpecs(clsSupportedDeviceModelId)
|
|
846977
847525
|
);
|
|
846978
847526
|
await new Promise(async () => {
|
|
846979
|
-
const hash11 =
|
|
847527
|
+
const hash11 = import_crypto52.default.createHash("sha256").update(hexImage).digest("hex");
|
|
846980
847528
|
console.log("Computing hash for input file");
|
|
846981
847529
|
console.log(hash11);
|
|
846982
847530
|
console.log("Extracting hash from device");
|
|
@@ -850192,7 +850740,7 @@ var secp256k18 = __toESM(require_secp256k110());
|
|
|
850192
850740
|
var ecc = __toESM(require_tiny_secp256k12());
|
|
850193
850741
|
var import_bip3212 = __toESM(require_src22());
|
|
850194
850742
|
var import_create_hmac2 = __toESM(require_create_hmac());
|
|
850195
|
-
var
|
|
850743
|
+
var crypto36 = __toESM(require("crypto"));
|
|
850196
850744
|
var bip32 = (0, import_bip3212.BIP32Factory)(ecc);
|
|
850197
850745
|
var AES_BLOCK_SIZE = 16;
|
|
850198
850746
|
var PRIVATE_KEY_SIZE2 = 32;
|
|
@@ -850200,7 +850748,7 @@ var NobleCryptoSecp256k1 = class {
|
|
|
850200
850748
|
randomKeypair() {
|
|
850201
850749
|
let pk;
|
|
850202
850750
|
do {
|
|
850203
|
-
pk =
|
|
850751
|
+
pk = crypto36.randomBytes(PRIVATE_KEY_SIZE2);
|
|
850204
850752
|
} while (!secp256k18.privateKeyVerify(pk));
|
|
850205
850753
|
return this.keypairFromSecretKey(pk);
|
|
850206
850754
|
}
|
|
@@ -850287,7 +850835,7 @@ var NobleCryptoSecp256k1 = class {
|
|
|
850287
850835
|
encrypt(secret, nonce, message2) {
|
|
850288
850836
|
const normalizedSecret = this.normalizeKey(secret);
|
|
850289
850837
|
const normalizeNonce = this.normalizeNonce(nonce);
|
|
850290
|
-
const cipher =
|
|
850838
|
+
const cipher = crypto36.createCipheriv("aes-256-gcm", normalizedSecret, normalizeNonce);
|
|
850291
850839
|
cipher.setAutoPadding(false);
|
|
850292
850840
|
let result2 = cipher.update(this.to_hex(message2), "hex", "hex");
|
|
850293
850841
|
result2 += cipher.final("hex");
|
|
@@ -850299,7 +850847,7 @@ var NobleCryptoSecp256k1 = class {
|
|
|
850299
850847
|
const normalizeNonce = this.normalizeNonce(nonce);
|
|
850300
850848
|
const encryptedData = ciphertext.slice(0, ciphertext.length - AES_BLOCK_SIZE);
|
|
850301
850849
|
const authTag = ciphertext.slice(encryptedData.length);
|
|
850302
|
-
const decipher =
|
|
850850
|
+
const decipher = crypto36.createDecipheriv("aes-256-gcm", normalizedSecret, normalizeNonce);
|
|
850303
850851
|
decipher.setAuthTag(authTag);
|
|
850304
850852
|
let result2 = decipher.update(this.to_hex(encryptedData), "hex", "hex");
|
|
850305
850853
|
result2 += decipher.final("hex");
|
|
@@ -850321,8 +850869,8 @@ var NobleCryptoSecp256k1 = class {
|
|
|
850321
850869
|
const ephemeralKeypair = this.randomKeypair();
|
|
850322
850870
|
const sharedSecret = this.ecdh(this.keypairFromSecretKey(commandStreamPrivateKey), ephemeralKeypair.publicKey);
|
|
850323
850871
|
const aesKey = this.computeSymmetricKey(sharedSecret, new Uint8Array());
|
|
850324
|
-
const iv =
|
|
850325
|
-
const cipher =
|
|
850872
|
+
const iv = crypto36.randomBytes(16);
|
|
850873
|
+
const cipher = crypto36.createCipheriv("aes-256-gcm", aesKey, iv);
|
|
850326
850874
|
let encryptedData = cipher.update(data6);
|
|
850327
850875
|
encryptedData = Buffer.concat([encryptedData, cipher.final()]);
|
|
850328
850876
|
const tag = cipher.getAuthTag();
|
|
@@ -850345,14 +850893,14 @@ var NobleCryptoSecp256k1 = class {
|
|
|
850345
850893
|
const encryptedData = data6.slice(66);
|
|
850346
850894
|
const sharedSecret = this.ecdh(this.keypairFromSecretKey(commandStreamPrivateKey), ephemeralPublicKey);
|
|
850347
850895
|
const aesKey = this.computeSymmetricKey(sharedSecret, new Uint8Array());
|
|
850348
|
-
const decipher =
|
|
850896
|
+
const decipher = crypto36.createDecipheriv("aes-256-gcm", aesKey, iv);
|
|
850349
850897
|
decipher.setAuthTag(tag);
|
|
850350
850898
|
let decryptedData = decipher.update(encryptedData);
|
|
850351
850899
|
decryptedData = Buffer.concat([decryptedData, decipher.final()]);
|
|
850352
850900
|
return new Uint8Array(decryptedData.buffer, decryptedData.byteOffset, decryptedData.byteLength);
|
|
850353
850901
|
}
|
|
850354
850902
|
randomBytes(size2) {
|
|
850355
|
-
return
|
|
850903
|
+
return crypto36.randomBytes(size2);
|
|
850356
850904
|
}
|
|
850357
850905
|
ecdh(keyPair3, publicKey3) {
|
|
850358
850906
|
const pubkey = Buffer.from(publicKey3);
|
|
@@ -850365,7 +850913,7 @@ var NobleCryptoSecp256k1 = class {
|
|
|
850365
850913
|
return digest3;
|
|
850366
850914
|
}
|
|
850367
850915
|
hash(message2) {
|
|
850368
|
-
return
|
|
850916
|
+
return crypto36.createHash("sha256").update(Buffer.from(message2)).digest();
|
|
850369
850917
|
}
|
|
850370
850918
|
from_hex(hex4) {
|
|
850371
850919
|
const bytes7 = new Uint8Array(hex4.length / 2);
|
|
@@ -850421,7 +850969,7 @@ var DerivationPath = class {
|
|
|
850421
850969
|
}).join("/");
|
|
850422
850970
|
}
|
|
850423
850971
|
};
|
|
850424
|
-
var
|
|
850972
|
+
var crypto37 = new NobleCryptoSecp256k1();
|
|
850425
850973
|
|
|
850426
850974
|
// ../../libs/hw-ledger-key-ring-protocol/lib-es/CommandBlock.js
|
|
850427
850975
|
var CommandType;
|
|
@@ -850530,7 +851078,7 @@ var CloseStream = class {
|
|
|
850530
851078
|
};
|
|
850531
851079
|
function createCommandBlock(issuer, commands2, signature4 = new Uint8Array(), parent = null) {
|
|
850532
851080
|
if (parent === null) {
|
|
850533
|
-
parent = parent =
|
|
851081
|
+
parent = parent = crypto37.randomBytes(32);
|
|
850534
851082
|
}
|
|
850535
851083
|
return {
|
|
850536
851084
|
version: 1,
|
|
@@ -850541,20 +851089,20 @@ function createCommandBlock(issuer, commands2, signature4 = new Uint8Array(), pa
|
|
|
850541
851089
|
};
|
|
850542
851090
|
}
|
|
850543
851091
|
function signCommandBlock(block2, issuer, secretKey) {
|
|
850544
|
-
const signature4 =
|
|
851092
|
+
const signature4 = crypto37.sign(hashCommandBlock(block2), crypto37.keypairFromSecretKey(secretKey));
|
|
850545
851093
|
return {
|
|
850546
851094
|
...block2,
|
|
850547
851095
|
signature: signature4
|
|
850548
851096
|
};
|
|
850549
851097
|
}
|
|
850550
851098
|
function hashCommandBlock(block2) {
|
|
850551
|
-
return
|
|
851099
|
+
return crypto37.hash(CommandStreamEncoder.encode([block2]));
|
|
850552
851100
|
}
|
|
850553
851101
|
function verifyCommandBlock(block2) {
|
|
850554
851102
|
const unsignedBlock = { ...block2 };
|
|
850555
851103
|
unsignedBlock.signature = new Uint8Array();
|
|
850556
851104
|
const hash11 = hashCommandBlock(unsignedBlock);
|
|
850557
|
-
return
|
|
851105
|
+
return crypto37.verify(hash11, block2.signature, block2.issuer);
|
|
850558
851106
|
}
|
|
850559
851107
|
|
|
850560
851108
|
// ../../libs/hw-ledger-key-ring-protocol/lib-es/CommandStreamResolver.js
|
|
@@ -850590,25 +851138,25 @@ var ResolvedCommandStream = class {
|
|
|
850590
851138
|
return this._internals.topic;
|
|
850591
851139
|
}
|
|
850592
851140
|
isOwner(publicKey3) {
|
|
850593
|
-
return this._internals.permission.get(
|
|
851141
|
+
return this._internals.permission.get(crypto37.to_hex(publicKey3)) === Permissions.OWNER;
|
|
850594
851142
|
}
|
|
850595
851143
|
isKeyCreator(publicKey3) {
|
|
850596
|
-
return (this._internals.permission.get(
|
|
851144
|
+
return (this._internals.permission.get(crypto37.to_hex(publicKey3)) & Permissions.KEY_CREATOR) === Permissions.KEY_CREATOR;
|
|
850597
851145
|
}
|
|
850598
851146
|
ownsKey(publicKey3) {
|
|
850599
|
-
return this._internals.keys.get(
|
|
851147
|
+
return this._internals.keys.get(crypto37.to_hex(publicKey3)) !== void 0;
|
|
850600
851148
|
}
|
|
850601
851149
|
isMemberAdder(publicKey3) {
|
|
850602
|
-
return (this._internals.permission.get(
|
|
851150
|
+
return (this._internals.permission.get(crypto37.to_hex(publicKey3)) & Permissions.ADD_MEMBER) === Permissions.ADD_MEMBER;
|
|
850603
851151
|
}
|
|
850604
851152
|
isMemberRemover(publicKey3) {
|
|
850605
|
-
return (this._internals.permission.get(
|
|
851153
|
+
return (this._internals.permission.get(crypto37.to_hex(publicKey3)) & Permissions.REMOVE_MEMBER) === Permissions.REMOVE_MEMBER;
|
|
850606
851154
|
}
|
|
850607
851155
|
keyCount() {
|
|
850608
851156
|
return this._internals.keys.size;
|
|
850609
851157
|
}
|
|
850610
851158
|
getEncryptedKey(publicKey3) {
|
|
850611
|
-
const key2 = this._internals.keys.get(
|
|
851159
|
+
const key2 = this._internals.keys.get(crypto37.to_hex(publicKey3));
|
|
850612
851160
|
if (key2)
|
|
850613
851161
|
return key2;
|
|
850614
851162
|
return null;
|
|
@@ -850639,13 +851187,13 @@ var CommandStreamResolver = class _CommandStreamResolver {
|
|
|
850639
851187
|
if (!exists4(internals.members, issuer)) {
|
|
850640
851188
|
throw new Error("Issuer is not a member of the group at height " + internals.height);
|
|
850641
851189
|
}
|
|
850642
|
-
if ((internals.permission.get(
|
|
851190
|
+
if ((internals.permission.get(crypto37.to_hex(issuer)) & 2) === Permissions.KEY_READER) {
|
|
850643
851191
|
throw new Error("Issuer does not have permission to publish keys at height " + internals.height);
|
|
850644
851192
|
}
|
|
850645
|
-
if (internals.keys.get(
|
|
851193
|
+
if (internals.keys.get(crypto37.to_hex(issuer)) === void 0 && (internals.permission.get(crypto37.to_hex(issuer)) & Permissions.KEY_CREATOR) != Permissions.KEY_CREATOR) {
|
|
850646
851194
|
throw new Error("Issuer does not have a key to publish at height " + internals.height);
|
|
850647
851195
|
}
|
|
850648
|
-
if (!internals.keys.has(
|
|
851196
|
+
if (!internals.keys.has(crypto37.to_hex(issuer)) && (internals.permission.get(crypto37.to_hex(issuer)) & Permissions.KEY_CREATOR) !== Permissions.KEY_CREATOR && internals.keys.keys.length > 0) {
|
|
850649
851197
|
throw new Error("Issuer is trying to publish a new key at height " + internals.height);
|
|
850650
851198
|
}
|
|
850651
851199
|
}
|
|
@@ -850653,7 +851201,7 @@ var CommandStreamResolver = class _CommandStreamResolver {
|
|
|
850653
851201
|
if (!exists4(internals.members, issuer)) {
|
|
850654
851202
|
throw new Error("Issuer is not a member of the group at height " + internals.height);
|
|
850655
851203
|
}
|
|
850656
|
-
if ((internals.permission.get(
|
|
851204
|
+
if ((internals.permission.get(crypto37.to_hex(issuer)) & Permissions.ADD_MEMBER) !== Permissions.ADD_MEMBER) {
|
|
850657
851205
|
throw new Error("Issuer does not have permission to add members at height " + internals.height);
|
|
850658
851206
|
}
|
|
850659
851207
|
}
|
|
@@ -850668,9 +851216,9 @@ var CommandStreamResolver = class _CommandStreamResolver {
|
|
|
850668
851216
|
internals.isCreated = true;
|
|
850669
851217
|
internals.topic = command4.topic;
|
|
850670
851218
|
internals.members.push(block2.issuer);
|
|
850671
|
-
internals.permission.set(
|
|
851219
|
+
internals.permission.set(crypto37.to_hex(block2.issuer), Permissions.OWNER);
|
|
850672
851220
|
internals.streamId = blockHash;
|
|
850673
|
-
internals.keys.set(
|
|
851221
|
+
internals.keys.set(crypto37.to_hex(block2.issuer), {
|
|
850674
851222
|
encryptedXpriv: command4.encryptedXpriv,
|
|
850675
851223
|
issuer: block2.issuer,
|
|
850676
851224
|
ephemeralPublicKey: command4.ephemeralPublicKey,
|
|
@@ -850681,9 +851229,9 @@ var CommandStreamResolver = class _CommandStreamResolver {
|
|
|
850681
851229
|
case CommandType.Derive:
|
|
850682
851230
|
internals.isCreated = true;
|
|
850683
851231
|
internals.members.push(block2.issuer);
|
|
850684
|
-
internals.permission.set(
|
|
851232
|
+
internals.permission.set(crypto37.to_hex(block2.issuer), Permissions.OWNER);
|
|
850685
851233
|
internals.streamId = blockHash;
|
|
850686
|
-
internals.keys.set(
|
|
851234
|
+
internals.keys.set(crypto37.to_hex(block2.issuer), {
|
|
850687
851235
|
encryptedXpriv: command4.encryptedXpriv,
|
|
850688
851236
|
ephemeralPublicKey: command4.ephemeralPublicKey,
|
|
850689
851237
|
initialiationVector: command4.initializationVector,
|
|
@@ -850696,7 +851244,7 @@ var CommandStreamResolver = class _CommandStreamResolver {
|
|
|
850696
851244
|
this.assertStreamIsCreated(internals);
|
|
850697
851245
|
this.assertIssuerCanAddMember(block2.issuer, internals);
|
|
850698
851246
|
const { publicKey: publicKey3, permissions, name: name3 } = command4;
|
|
850699
|
-
const id5 =
|
|
851247
|
+
const id5 = crypto37.to_hex(publicKey3);
|
|
850700
851248
|
internals.members.push(publicKey3);
|
|
850701
851249
|
internals.permission.set(id5, permissions);
|
|
850702
851250
|
internals.names.set(id5, name3);
|
|
@@ -850706,7 +851254,7 @@ var CommandStreamResolver = class _CommandStreamResolver {
|
|
|
850706
851254
|
case CommandType.PublishKey:
|
|
850707
851255
|
this.assertStreamIsCreated(internals);
|
|
850708
851256
|
this.assertIssuerCanPublish(block2.issuer, internals);
|
|
850709
|
-
internals.keys.set(
|
|
851257
|
+
internals.keys.set(crypto37.to_hex(command4.recipient), {
|
|
850710
851258
|
encryptedXpriv: command4.encryptedXpriv,
|
|
850711
851259
|
ephemeralPublicKey: command4.ephemeralPublicKey,
|
|
850712
851260
|
issuer: block2.issuer,
|
|
@@ -850723,7 +851271,7 @@ var CommandStreamResolver = class _CommandStreamResolver {
|
|
|
850723
851271
|
if (height > 0 && !exists4(internals.members, block2.issuer)) {
|
|
850724
851272
|
throw new Error("Issuer is not part of the group at height " + height);
|
|
850725
851273
|
}
|
|
850726
|
-
const blockHash =
|
|
851274
|
+
const blockHash = crypto37.to_hex(await hashCommandBlock(block2));
|
|
850727
851275
|
for (const command4 of block2.commands) {
|
|
850728
851276
|
internals = _CommandStreamResolver.replayCommand(command4, block2, blockHash, height, internals);
|
|
850729
851277
|
}
|
|
@@ -850735,7 +851283,7 @@ var CommandStreamResolver = class _CommandStreamResolver {
|
|
|
850735
851283
|
for (let height = 0; height < stream7.length; height++) {
|
|
850736
851284
|
internals.height = height;
|
|
850737
851285
|
const block2 = stream7[height];
|
|
850738
|
-
if (height > 0 &&
|
|
851286
|
+
if (height > 0 && crypto37.to_hex(block2.parent) !== crypto37.to_hex(await hashCommandBlock(stream7[height - 1]))) {
|
|
850739
851287
|
throw new Error("Command stream has been tampered with (invalid parent hash) at height " + height);
|
|
850740
851288
|
}
|
|
850741
851289
|
if (block2.signature.length === 0)
|
|
@@ -850756,15 +851304,15 @@ var SoftwareDevice = class {
|
|
|
850756
851304
|
return new PublicKey11(this.keyPair.publicKey);
|
|
850757
851305
|
}
|
|
850758
851306
|
generateSharedKey() {
|
|
850759
|
-
const xpriv =
|
|
850760
|
-
const pk =
|
|
851307
|
+
const xpriv = crypto37.randomBytes(64);
|
|
851308
|
+
const pk = crypto37.derivePrivate(xpriv, []);
|
|
850761
851309
|
return { xpriv, publicKey: pk.publicKey };
|
|
850762
851310
|
}
|
|
850763
851311
|
encryptSharedKey(sharedKey, recipient) {
|
|
850764
|
-
const kp =
|
|
850765
|
-
const ecdh =
|
|
850766
|
-
const initializationVector =
|
|
850767
|
-
const encryptedXpriv =
|
|
851312
|
+
const kp = crypto37.randomKeypair();
|
|
851313
|
+
const ecdh = crypto37.ecdh(kp, recipient);
|
|
851314
|
+
const initializationVector = crypto37.randomBytes(16);
|
|
851315
|
+
const encryptedXpriv = crypto37.encrypt(ecdh, initializationVector, sharedKey.xpriv);
|
|
850768
851316
|
return {
|
|
850769
851317
|
encryptedXpriv,
|
|
850770
851318
|
publicKey: sharedKey.publicKey,
|
|
@@ -850773,8 +851321,8 @@ var SoftwareDevice = class {
|
|
|
850773
851321
|
};
|
|
850774
851322
|
}
|
|
850775
851323
|
decryptSharedKey(encryptedSharedKey) {
|
|
850776
|
-
const ecdh =
|
|
850777
|
-
const xpriv =
|
|
851324
|
+
const ecdh = crypto37.ecdh(this.keyPair, encryptedSharedKey.ephemeralPublicKey);
|
|
851325
|
+
const xpriv = crypto37.decrypt(ecdh, encryptedSharedKey.initializationVector, encryptedSharedKey.encryptedXpriv);
|
|
850778
851326
|
return { xpriv, publicKey: encryptedSharedKey.publicKey };
|
|
850779
851327
|
}
|
|
850780
851328
|
async deriveKey(tree, path4) {
|
|
@@ -850789,7 +851337,7 @@ var SoftwareDevice = class {
|
|
|
850789
851337
|
initializationVector: event.nonce
|
|
850790
851338
|
};
|
|
850791
851339
|
const sharedKey = this.decryptSharedKey(encryptedSharedKey);
|
|
850792
|
-
const newKey =
|
|
851340
|
+
const newKey = crypto37.derivePrivate(sharedKey.xpriv, path4);
|
|
850793
851341
|
const xpriv = new Uint8Array(64);
|
|
850794
851342
|
xpriv.set(newKey.privateKey);
|
|
850795
851343
|
xpriv.set(newKey.chainCode, 32);
|
|
@@ -850841,7 +851389,7 @@ var SoftwareDevice = class {
|
|
|
850841
851389
|
ephemeralPublicKey: encryptedKey.ephemeralPublicKey
|
|
850842
851390
|
});
|
|
850843
851391
|
} else if (stream7[0].commands[0].getType() == CommandType.Seed) {
|
|
850844
|
-
if (
|
|
851392
|
+
if (crypto37.to_hex(stream7[0].issuer) !== crypto37.to_hex(this.keyPair.publicKey)) {
|
|
850845
851393
|
throw new Error("Cannot read the seed key from another device");
|
|
850846
851394
|
}
|
|
850847
851395
|
} else {
|
|
@@ -850876,7 +851424,7 @@ var SoftwareDevice = class {
|
|
|
850876
851424
|
const sharedKey = this.decryptSharedKey(encryptedSharedKey);
|
|
850877
851425
|
let index = DerivationPath.toIndexArray(event.stream.getStreamPath()).length;
|
|
850878
851426
|
while (index < path4.length) {
|
|
850879
|
-
const derivation =
|
|
851427
|
+
const derivation = crypto37.derivePrivate(sharedKey.xpriv, [index]);
|
|
850880
851428
|
const xpriv = new Uint8Array(64);
|
|
850881
851429
|
xpriv.set(derivation.privateKey);
|
|
850882
851430
|
xpriv.set(derivation.chainCode, 32);
|
|
@@ -850891,7 +851439,7 @@ var SoftwareDevice = class {
|
|
|
850891
851439
|
}
|
|
850892
851440
|
};
|
|
850893
851441
|
function createDevice() {
|
|
850894
|
-
const kp =
|
|
851442
|
+
const kp = crypto37.randomKeypair();
|
|
850895
851443
|
return new SoftwareDevice(kp);
|
|
850896
851444
|
}
|
|
850897
851445
|
var ISSUER_PLACEHOLDER = new Uint8Array([
|
|
@@ -851125,7 +851673,7 @@ var PubKeyCredential = class _PubKeyCredential {
|
|
|
851125
851673
|
version: this.version,
|
|
851126
851674
|
curveId: this.curveId,
|
|
851127
851675
|
signAlgorithm: this.signAlgorithm,
|
|
851128
|
-
publicKey:
|
|
851676
|
+
publicKey: crypto37.to_hex(this.publicKey)
|
|
851129
851677
|
};
|
|
851130
851678
|
}
|
|
851131
851679
|
assertValidity() {
|
|
@@ -851273,14 +851821,14 @@ var Challenge = class _Challenge {
|
|
|
851273
851821
|
version: this.version,
|
|
851274
851822
|
protocolVersion: this.protocolVersion,
|
|
851275
851823
|
challenge: {
|
|
851276
|
-
data:
|
|
851824
|
+
data: crypto37.to_hex(this.challengeData),
|
|
851277
851825
|
expiry: this.challengeExpiry.toISOString()
|
|
851278
851826
|
},
|
|
851279
851827
|
host: this.host,
|
|
851280
851828
|
rp: [
|
|
851281
851829
|
{
|
|
851282
851830
|
credential: this.rpCredential.toJSON(),
|
|
851283
|
-
signature:
|
|
851831
|
+
signature: crypto37.to_hex(this.rpSignature)
|
|
851284
851832
|
}
|
|
851285
851833
|
]
|
|
851286
851834
|
};
|
|
@@ -851565,7 +852113,7 @@ function injectTrustedProperties(command4, properties, secret) {
|
|
|
851565
852113
|
case CommandType.Seed: {
|
|
851566
852114
|
const seedCommand = command4;
|
|
851567
852115
|
const seedProperties = properties;
|
|
851568
|
-
seedCommand.encryptedXpriv =
|
|
852116
|
+
seedCommand.encryptedXpriv = crypto37.decrypt(secret, seedProperties.iv, seedProperties.xpriv);
|
|
851569
852117
|
seedCommand.ephemeralPublicKey = seedProperties.ephemeralPublicKey;
|
|
851570
852118
|
seedCommand.initializationVector = seedProperties.commandIv;
|
|
851571
852119
|
seedCommand.groupKey = seedProperties.groupKey;
|
|
@@ -851574,7 +852122,7 @@ function injectTrustedProperties(command4, properties, secret) {
|
|
|
851574
852122
|
case CommandType.Derive: {
|
|
851575
852123
|
const deriveCommand = command4;
|
|
851576
852124
|
const deriveProperties = properties;
|
|
851577
|
-
deriveCommand.encryptedXpriv =
|
|
852125
|
+
deriveCommand.encryptedXpriv = crypto37.decrypt(secret, deriveProperties.iv, deriveProperties.xpriv);
|
|
851578
852126
|
deriveCommand.ephemeralPublicKey = deriveProperties.ephemeralPublicKey;
|
|
851579
852127
|
deriveCommand.initializationVector = deriveProperties.commandIv;
|
|
851580
852128
|
deriveCommand.groupKey = deriveProperties.groupKey;
|
|
@@ -851587,7 +852135,7 @@ function injectTrustedProperties(command4, properties, secret) {
|
|
|
851587
852135
|
const publishKeyProperties = properties;
|
|
851588
852136
|
publishKeyCommand.ephemeralPublicKey = publishKeyProperties.ephemeralPublicKey;
|
|
851589
852137
|
publishKeyCommand.initializationVector = publishKeyProperties.commandIv;
|
|
851590
|
-
publishKeyCommand.encryptedXpriv =
|
|
852138
|
+
publishKeyCommand.encryptedXpriv = crypto37.decrypt(secret, publishKeyProperties.iv, publishKeyProperties.xpriv);
|
|
851591
852139
|
return publishKeyCommand;
|
|
851592
852140
|
}
|
|
851593
852141
|
case CommandType.CloseStream:
|
|
@@ -851601,7 +852149,7 @@ var ApduDevice = class {
|
|
|
851601
852149
|
sessionKeyPair;
|
|
851602
852150
|
constructor(transport) {
|
|
851603
852151
|
this.transport = transport;
|
|
851604
|
-
this.sessionKeyPair =
|
|
852152
|
+
this.sessionKeyPair = crypto37.randomKeypair();
|
|
851605
852153
|
}
|
|
851606
852154
|
isPublicKeyAvailable() {
|
|
851607
852155
|
return false;
|
|
@@ -851636,15 +852184,15 @@ var ApduDevice = class {
|
|
|
851636
852184
|
if (member2 === null || iv === null) {
|
|
851637
852185
|
return;
|
|
851638
852186
|
}
|
|
851639
|
-
trustedParams.members.set(
|
|
851640
|
-
trustedParams.lastTrustedMember =
|
|
852187
|
+
trustedParams.members.set(crypto37.to_hex(publicKey3), { iv, data: member2 });
|
|
852188
|
+
trustedParams.lastTrustedMember = crypto37.to_hex(publicKey3);
|
|
851641
852189
|
}
|
|
851642
852190
|
hasTrustedMember(trustedParams, publicKey3) {
|
|
851643
|
-
return trustedParams.members.has(
|
|
852191
|
+
return trustedParams.members.has(crypto37.to_hex(publicKey3));
|
|
851644
852192
|
}
|
|
851645
852193
|
// Throws if the trusted member is not found
|
|
851646
852194
|
getTrustedMember(trustedParams, publicKey3) {
|
|
851647
|
-
const member2 = trustedParams.members.get(
|
|
852195
|
+
const member2 = trustedParams.members.get(crypto37.to_hex(publicKey3));
|
|
851648
852196
|
if (member2 === void 0) {
|
|
851649
852197
|
throw new Error("Trusted member not found");
|
|
851650
852198
|
}
|
|
@@ -851652,7 +852200,7 @@ var ApduDevice = class {
|
|
|
851652
852200
|
}
|
|
851653
852201
|
// Set the trusted member on the device if it's not already set
|
|
851654
852202
|
async setTrustedMember(params, publicKey3) {
|
|
851655
|
-
if (params.lastTrustedMember ==
|
|
852203
|
+
if (params.lastTrustedMember == crypto37.to_hex(publicKey3)) {
|
|
851656
852204
|
return;
|
|
851657
852205
|
}
|
|
851658
852206
|
if (this.hasTrustedMember(params, publicKey3) == false) {
|
|
@@ -851728,8 +852276,8 @@ var ApduDevice = class {
|
|
|
851728
852276
|
trustedProperties.push(APDU.parseTrustedProperties(blockToSign.commands[commandIndex], tp));
|
|
851729
852277
|
}
|
|
851730
852278
|
const signature4 = await APDU.finalizeSignature(this.transport);
|
|
851731
|
-
const secret =
|
|
851732
|
-
const issuer =
|
|
852279
|
+
const secret = crypto37.ecdh(sessionKey, signature4.sessionKey);
|
|
852280
|
+
const issuer = crypto37.decrypt(secret, trustedIssuer.iv, trustedIssuer.issuer);
|
|
851733
852281
|
for (let commandIndex = 0; commandIndex < blockToSign.commands.length; commandIndex++) {
|
|
851734
852282
|
blockToSign.commands[commandIndex] = await injectTrustedProperties(blockToSign.commands[commandIndex], trustedProperties[commandIndex], secret);
|
|
851735
852283
|
}
|
|
@@ -852019,7 +852567,7 @@ var StreamTree = class _StreamTree {
|
|
|
852019
852567
|
}
|
|
852020
852568
|
serialize() {
|
|
852021
852569
|
const streamEntries = serializeTree(this.tree, []);
|
|
852022
|
-
const entries = streamEntries.flatMap(([path4, stream7]) => stream7 ? [[path4,
|
|
852570
|
+
const entries = streamEntries.flatMap(([path4, stream7]) => stream7 ? [[path4, crypto37.to_hex(CommandStreamEncoder.encode(stream7.blocks))]] : []);
|
|
852023
852571
|
return Object.fromEntries(entries);
|
|
852024
852572
|
function serializeTree(tree, path4) {
|
|
852025
852573
|
const stream7 = tree.getValue();
|
|
@@ -852031,7 +852579,7 @@ var StreamTree = class _StreamTree {
|
|
|
852031
852579
|
}
|
|
852032
852580
|
}
|
|
852033
852581
|
static deserialize(data6) {
|
|
852034
|
-
const streams = Object.values(data6).map((data7) => new CommandStream2(CommandStreamDecoder.decode(
|
|
852582
|
+
const streams = Object.values(data6).map((data7) => new CommandStream2(CommandStreamDecoder.decode(crypto37.from_hex(data7))));
|
|
852035
852583
|
return _StreamTree.from(...streams);
|
|
852036
852584
|
}
|
|
852037
852585
|
static async createNewTree(owner, opts = {}) {
|
|
@@ -852316,15 +852864,15 @@ var HWDeviceProvider = class {
|
|
|
852316
852864
|
}
|
|
852317
852865
|
async _authWithDevice(deviceId, callbacks) {
|
|
852318
852866
|
const challenge = await this.api.getAuthenticationChallenge();
|
|
852319
|
-
const data6 =
|
|
852867
|
+
const data6 = crypto37.from_hex(challenge.tlv);
|
|
852320
852868
|
const seedId = await this.withHw(deviceId, (hw) => hw.getSeedId(data6), callbacks);
|
|
852321
|
-
const signature4 =
|
|
852869
|
+
const signature4 = crypto37.to_hex(seedId.signature);
|
|
852322
852870
|
return this.api.postChallengeResponse({
|
|
852323
852871
|
challenge: challenge.json,
|
|
852324
852872
|
signature: {
|
|
852325
852873
|
credential: seedId.pubkeyCredential.toJSON(),
|
|
852326
852874
|
signature: signature4,
|
|
852327
|
-
attestation:
|
|
852875
|
+
attestation: crypto37.to_hex(seedId.attestationResult)
|
|
852328
852876
|
}
|
|
852329
852877
|
});
|
|
852330
852878
|
}
|
|
@@ -852375,7 +852923,7 @@ var SDK = class {
|
|
|
852375
852923
|
}, this.jwt, () => this.auth(trustchain, memberCredentials), (jwt) => this.api.refreshAuth(jwt), policy);
|
|
852376
852924
|
}
|
|
852377
852925
|
async initMemberCredentials() {
|
|
852378
|
-
const kp =
|
|
852926
|
+
const kp = crypto37.randomKeypair();
|
|
852379
852927
|
return convertKeyPairToLiveCredentials(kp);
|
|
852380
852928
|
}
|
|
852381
852929
|
async getOrCreateTrustchain(deviceId, memberCredentials, callbacks, topic, currentTrustchain) {
|
|
@@ -852397,7 +852945,7 @@ var SDK = class {
|
|
|
852397
852945
|
const streamTree2 = await this.hwDeviceProvider.withHw(deviceId, (hw) => StreamTree.createNewTree(hw, { topic }));
|
|
852398
852946
|
await streamTree2.getRoot().resolve();
|
|
852399
852947
|
const commandStream = CommandStreamEncoder.encode(streamTree2.getRoot().blocks);
|
|
852400
|
-
await withJwt((jwt) => this.api.postSeed(jwt,
|
|
852948
|
+
await withJwt((jwt) => this.api.postSeed(jwt, crypto37.to_hex(commandStream)));
|
|
852401
852949
|
await this.hwDeviceProvider.refreshJwt(deviceId, callbacks);
|
|
852402
852950
|
trustchains2 = await withJwt(this.api.getTrustchains);
|
|
852403
852951
|
}
|
|
@@ -852419,7 +852967,7 @@ var SDK = class {
|
|
|
852419
852967
|
if (child) {
|
|
852420
852968
|
const resolved = await child.resolve();
|
|
852421
852969
|
const members7 = resolved.getMembers();
|
|
852422
|
-
shouldShare = !members7.some((m60) =>
|
|
852970
|
+
shouldShare = !members7.some((m60) => crypto37.to_hex(m60) === memberCredentials.pubkey);
|
|
852423
852971
|
}
|
|
852424
852972
|
if (shouldShare) {
|
|
852425
852973
|
if (type4 === TrustchainResultType.restored)
|
|
@@ -852509,13 +853057,13 @@ var SDK = class {
|
|
|
852509
853057
|
this.invalidateJwt();
|
|
852510
853058
|
}
|
|
852511
853059
|
async encryptUserData(trustchain, input) {
|
|
852512
|
-
const key2 =
|
|
852513
|
-
const encrypted = await
|
|
853060
|
+
const key2 = crypto37.from_hex(trustchain.walletSyncEncryptionKey);
|
|
853061
|
+
const encrypted = await crypto37.encryptUserData(key2, input);
|
|
852514
853062
|
return encrypted;
|
|
852515
853063
|
}
|
|
852516
853064
|
async decryptUserData(trustchain, data6) {
|
|
852517
|
-
const key2 =
|
|
852518
|
-
const decrypted = await
|
|
853065
|
+
const key2 = crypto37.from_hex(trustchain.walletSyncEncryptionKey);
|
|
853066
|
+
const decrypted = await crypto37.decryptUserData(key2, data6);
|
|
852519
853067
|
return decrypted;
|
|
852520
853068
|
}
|
|
852521
853069
|
async fetchTrustchain(jwt, trustchainId) {
|
|
@@ -852533,16 +853081,16 @@ var SDK = class {
|
|
|
852533
853081
|
}
|
|
852534
853082
|
async auth(trustchain, memberCredentials) {
|
|
852535
853083
|
const challenge = await this.api.getAuthenticationChallenge();
|
|
852536
|
-
const data6 =
|
|
853084
|
+
const data6 = crypto37.from_hex(challenge.tlv);
|
|
852537
853085
|
const [parsed2, _13] = Challenge.fromBytes(data6);
|
|
852538
|
-
const hash11 = await
|
|
853086
|
+
const hash11 = await crypto37.hash(parsed2.getUnsignedTLV());
|
|
852539
853087
|
const keypair = convertLiveCredentialsToKeyPair(memberCredentials);
|
|
852540
853088
|
const response = await this.api.postChallengeResponse({
|
|
852541
853089
|
challenge: challenge.json,
|
|
852542
853090
|
signature: {
|
|
852543
853091
|
credential: credentialForPubKey(memberCredentials.pubkey),
|
|
852544
|
-
signature:
|
|
852545
|
-
attestation:
|
|
853092
|
+
signature: crypto37.to_hex(await crypto37.sign(hash11, keypair)),
|
|
853093
|
+
attestation: crypto37.to_hex(liveAuthentication(trustchain.rootId))
|
|
852546
853094
|
}
|
|
852547
853095
|
}).catch((e36) => {
|
|
852548
853096
|
if (e36 instanceof LedgerAPI4xx && (e36.message.includes("Not a member of trustchain") || e36.message.includes("You are not member"))) {
|
|
@@ -852558,18 +853106,18 @@ var SDK = class {
|
|
|
852558
853106
|
return streamTree;
|
|
852559
853107
|
}
|
|
852560
853108
|
const isNewDerivation = !streamTree.getChild(path4);
|
|
852561
|
-
streamTree = await withDevice2((device2) => streamTree.share(path4, device2,
|
|
853109
|
+
streamTree = await withDevice2((device2) => streamTree.share(path4, device2, crypto37.from_hex(member2.id), member2.name, member2.permissions));
|
|
852562
853110
|
const child = streamTree.getChild(path4);
|
|
852563
853111
|
invariant124(child, "StreamTree.share failed to create the child stream.");
|
|
852564
853112
|
await child.resolve();
|
|
852565
853113
|
if (isNewDerivation) {
|
|
852566
853114
|
const commandStream = CommandStreamEncoder.encode(child.blocks);
|
|
852567
|
-
await withJwt((jwt) => this.api.postDerivation(jwt, trustchainId,
|
|
853115
|
+
await withJwt((jwt) => this.api.postDerivation(jwt, trustchainId, crypto37.to_hex(commandStream)));
|
|
852568
853116
|
} else {
|
|
852569
853117
|
const commandStream = CommandStreamEncoder.encode([child.blocks[child.blocks.length - 1]]);
|
|
852570
853118
|
const request3 = {
|
|
852571
853119
|
path: path4,
|
|
852572
|
-
blocks: [
|
|
853120
|
+
blocks: [crypto37.to_hex(commandStream)]
|
|
852573
853121
|
};
|
|
852574
853122
|
await withJwt((jwt) => this.api.putCommands(jwt, trustchainId, request3));
|
|
852575
853123
|
}
|
|
@@ -852583,21 +853131,21 @@ var SDK = class {
|
|
|
852583
853131
|
const commandStream = CommandStreamEncoder.encode([child.blocks[child.blocks.length - 1]]);
|
|
852584
853132
|
const request3 = {
|
|
852585
853133
|
path: path4,
|
|
852586
|
-
blocks: [
|
|
853134
|
+
blocks: [crypto37.to_hex(commandStream)]
|
|
852587
853135
|
};
|
|
852588
853136
|
return () => withJwt((jwt) => this.api.putCommands(jwt, trustchainId, request3));
|
|
852589
853137
|
}
|
|
852590
853138
|
};
|
|
852591
853139
|
function convertKeyPairToLiveCredentials(keyPair3) {
|
|
852592
853140
|
return {
|
|
852593
|
-
pubkey:
|
|
852594
|
-
privatekey:
|
|
853141
|
+
pubkey: crypto37.to_hex(keyPair3.publicKey),
|
|
853142
|
+
privatekey: crypto37.to_hex(keyPair3.privateKey)
|
|
852595
853143
|
};
|
|
852596
853144
|
}
|
|
852597
853145
|
function convertLiveCredentialsToKeyPair(memberCredentials) {
|
|
852598
853146
|
return {
|
|
852599
|
-
publicKey:
|
|
852600
|
-
privateKey:
|
|
853147
|
+
publicKey: crypto37.from_hex(memberCredentials.pubkey),
|
|
853148
|
+
privateKey: crypto37.from_hex(memberCredentials.privatekey)
|
|
852601
853149
|
};
|
|
852602
853150
|
}
|
|
852603
853151
|
function getSoftwareDevice(memberCredentials) {
|
|
@@ -852609,7 +853157,7 @@ async function extractEncryptionKey(streamTree, path4, memberCredentials) {
|
|
|
852609
853157
|
const pathNumbers = DerivationPath.toIndexArray(path4);
|
|
852610
853158
|
try {
|
|
852611
853159
|
const key2 = await softwareDevice.readKey(streamTree, pathNumbers);
|
|
852612
|
-
return
|
|
853160
|
+
return crypto37.to_hex(key2.slice(0, 32));
|
|
852613
853161
|
} catch (e36) {
|
|
852614
853162
|
if (e36 instanceof Error) {
|
|
852615
853163
|
throw new TrustchainEjected(e36.message);
|
|
@@ -852979,7 +853527,7 @@ var ledgerKeyRingProtocol_default = {
|
|
|
852979
853527
|
}
|
|
852980
853528
|
return sdk.decryptUserData(
|
|
852981
853529
|
{ rootId, walletSyncEncryptionKey, applicationPath },
|
|
852982
|
-
|
|
853530
|
+
crypto37.from_hex(message2)
|
|
852983
853531
|
).then((array5) => new TextDecoder().decode(array5));
|
|
852984
853532
|
}
|
|
852985
853533
|
return Promise.reject("command does not exist");
|