@fileverse-dev/formulajs 4.4.11-mod-38-patch-9 → 4.4.11-mod-38-patch-001
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/browser/formula.js +134 -132
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +14 -3
- package/lib/esm/index.mjs +14 -4
- package/package.json +1 -1
- package/types/cjs/index.d.cts +1 -0
- package/types/esm/index.d.mts +1 -0
package/lib/browser/formula.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @fileverse-dev/formulajs v4.4.11-mod-38-patch-
|
|
1
|
+
/* @fileverse-dev/formulajs v4.4.11-mod-38-patch-001 */
|
|
2
2
|
var _excluded = [ "confirmations", "dataDecoded" ];
|
|
3
3
|
|
|
4
4
|
function _objectWithoutProperties(e, t) {
|
|
@@ -11318,11 +11318,16 @@ function _typeof(o) {
|
|
|
11318
11318
|
return _FIREFLY.apply(this, arguments);
|
|
11319
11319
|
}
|
|
11320
11320
|
function BLOCKSCOUT() {
|
|
11321
|
-
|
|
11321
|
+
console.log("HUMBLE");
|
|
11322
|
+
var data = argsToArray(arguments);
|
|
11323
|
+
return _BLOCKSCOUT.apply(void 0, _toConsumableArray(data));
|
|
11322
11324
|
}
|
|
11323
|
-
function _BLOCKSCOUT() {
|
|
11324
|
-
|
|
11325
|
-
|
|
11325
|
+
function _BLOCKSCOUT(_x6, _x7, _x8, _x9, _x0, _x1, _x10) {
|
|
11326
|
+
return _BLOCKSCOUT2.apply(this, arguments);
|
|
11327
|
+
}
|
|
11328
|
+
function _BLOCKSCOUT2() {
|
|
11329
|
+
_BLOCKSCOUT2 = _asyncToGenerator(_regeneratorRuntime().mark((function _callee5(address, type, chain, startTimestamp, endTimestamp, page, offset) {
|
|
11330
|
+
var currentTimestamp, hostname, requestUrl, _json$result, _json$result2, response, json;
|
|
11326
11331
|
return _regeneratorRuntime().wrap((function _callee5$(_context5) {
|
|
11327
11332
|
while (1) switch (_context5.prev = _context5.next) {
|
|
11328
11333
|
case 0:
|
|
@@ -11336,9 +11341,6 @@ function _typeof(o) {
|
|
|
11336
11341
|
return _context5.abrupt("return", "TYPE_MISSING");
|
|
11337
11342
|
|
|
11338
11343
|
case 3:
|
|
11339
|
-
_argsToArray5 = argsToArray(_args5), _argsToArray6 = _slicedToArray(_argsToArray5, 7),
|
|
11340
|
-
address = _argsToArray6[0], type = _argsToArray6[1], chain = _argsToArray6[2], startTimestamp = _argsToArray6[3],
|
|
11341
|
-
endTimestamp = _argsToArray6[4], page = _argsToArray6[5], offset = _argsToArray6[6];
|
|
11342
11344
|
if (!startTimestamp) {
|
|
11343
11345
|
currentTimestamp = Date.now();
|
|
11344
11346
|
startTimestamp = currentTimestamp - 30 * 24 * 60 * 60 * 1e3;
|
|
@@ -11351,111 +11353,111 @@ function _typeof(o) {
|
|
|
11351
11353
|
endTimestamp = toTimestamp(endTimestamp);
|
|
11352
11354
|
}
|
|
11353
11355
|
if (isAddress(address)) {
|
|
11354
|
-
_context5.next =
|
|
11356
|
+
_context5.next = 10;
|
|
11355
11357
|
break;
|
|
11356
11358
|
}
|
|
11357
|
-
_context5.next =
|
|
11359
|
+
_context5.next = 9;
|
|
11358
11360
|
return fromEnsNameToAddress(address);
|
|
11359
11361
|
|
|
11360
|
-
case
|
|
11362
|
+
case 9:
|
|
11361
11363
|
address = _context5.sent;
|
|
11362
11364
|
|
|
11363
|
-
case
|
|
11365
|
+
case 10:
|
|
11364
11366
|
if (address) {
|
|
11365
|
-
_context5.next =
|
|
11367
|
+
_context5.next = 12;
|
|
11366
11368
|
break;
|
|
11367
11369
|
}
|
|
11368
11370
|
return _context5.abrupt("return", "".concat(address).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
|
|
11369
11371
|
|
|
11370
|
-
case
|
|
11372
|
+
case 12:
|
|
11371
11373
|
hostname = BLOCKSCOUT_CHAINS_MAP[chain];
|
|
11372
11374
|
_context5.t0 = type;
|
|
11373
|
-
_context5.next = _context5.t0 === "stat" ?
|
|
11375
|
+
_context5.next = _context5.t0 === "stat" ? 16 : _context5.t0 === "txns" ? 18 : _context5.t0 === "tokens" ? 20 : 22;
|
|
11374
11376
|
break;
|
|
11375
11377
|
|
|
11376
|
-
case
|
|
11378
|
+
case 16:
|
|
11377
11379
|
requestUrl = "".concat(hostname, "/api/v2/addresses/").concat(address, "/counters");
|
|
11378
|
-
return _context5.abrupt("break",
|
|
11380
|
+
return _context5.abrupt("break", 23);
|
|
11379
11381
|
|
|
11380
|
-
case
|
|
11382
|
+
case 18:
|
|
11381
11383
|
requestUrl = "".concat(hostname, "/api?module=account&action=txlist&address=").concat(address, "&start_timestamp=").concat(startTimestamp, "&end_timestamp=").concat(endTimestamp, "&page=").concat(page, "&offset=").concat(offset, "&sort=asc");
|
|
11382
|
-
return _context5.abrupt("break",
|
|
11384
|
+
return _context5.abrupt("break", 23);
|
|
11383
11385
|
|
|
11384
|
-
case
|
|
11386
|
+
case 20:
|
|
11385
11387
|
requestUrl = "".concat(hostname, "/api?module=account&action=tokenlist&address=").concat(address);
|
|
11386
|
-
return _context5.abrupt("break",
|
|
11388
|
+
return _context5.abrupt("break", 23);
|
|
11387
11389
|
|
|
11388
|
-
case
|
|
11390
|
+
case 22:
|
|
11389
11391
|
return _context5.abrupt("return", "INVALID_TYPE");
|
|
11390
11392
|
|
|
11391
|
-
case
|
|
11392
|
-
_context5.prev =
|
|
11393
|
-
_context5.next =
|
|
11393
|
+
case 23:
|
|
11394
|
+
_context5.prev = 23;
|
|
11395
|
+
_context5.next = 26;
|
|
11394
11396
|
return fetch(requestUrl);
|
|
11395
11397
|
|
|
11396
|
-
case
|
|
11398
|
+
case 26:
|
|
11397
11399
|
response = _context5.sent;
|
|
11398
11400
|
if (response.ok) {
|
|
11399
|
-
_context5.next =
|
|
11401
|
+
_context5.next = 29;
|
|
11400
11402
|
break;
|
|
11401
11403
|
}
|
|
11402
11404
|
throw new Error("HTTP error! Status: ".concat(response.status));
|
|
11403
11405
|
|
|
11404
|
-
case
|
|
11405
|
-
_context5.next =
|
|
11406
|
+
case 29:
|
|
11407
|
+
_context5.next = 31;
|
|
11406
11408
|
return response.json();
|
|
11407
11409
|
|
|
11408
|
-
case
|
|
11410
|
+
case 31:
|
|
11409
11411
|
json = _context5.sent;
|
|
11410
11412
|
console.log(json);
|
|
11411
11413
|
if (!(json !== null && json !== void 0 && (_json$result = json.result) !== null && _json$result !== void 0 && _json$result.includes("Invalid parameter(s)"))) {
|
|
11412
|
-
_context5.next =
|
|
11414
|
+
_context5.next = 35;
|
|
11413
11415
|
break;
|
|
11414
11416
|
}
|
|
11415
11417
|
return _context5.abrupt("return", "INVALID_REQUEST_PARAMS");
|
|
11416
11418
|
|
|
11417
|
-
case
|
|
11419
|
+
case 35:
|
|
11418
11420
|
if (!(json !== null && json !== void 0 && (_json$result2 = json.result) !== null && _json$result2 !== void 0 && _json$result2.includes("Not found"))) {
|
|
11419
|
-
_context5.next =
|
|
11421
|
+
_context5.next = 37;
|
|
11420
11422
|
break;
|
|
11421
11423
|
}
|
|
11422
11424
|
return _context5.abrupt("return", "ADDRESS_NOT_FOUND");
|
|
11423
11425
|
|
|
11424
|
-
case
|
|
11426
|
+
case 37:
|
|
11425
11427
|
if (!(type === "stat")) {
|
|
11426
|
-
_context5.next =
|
|
11428
|
+
_context5.next = 39;
|
|
11427
11429
|
break;
|
|
11428
11430
|
}
|
|
11429
11431
|
return _context5.abrupt("return", [ json ]);
|
|
11430
11432
|
|
|
11431
|
-
case
|
|
11433
|
+
case 39:
|
|
11432
11434
|
return _context5.abrupt("return", json.result);
|
|
11433
11435
|
|
|
11434
|
-
case
|
|
11435
|
-
_context5.prev =
|
|
11436
|
-
_context5.t1 = _context5["catch"](
|
|
11436
|
+
case 42:
|
|
11437
|
+
_context5.prev = 42;
|
|
11438
|
+
_context5.t1 = _context5["catch"](23);
|
|
11437
11439
|
return _context5.abrupt("return", "ERROR IN FETCHING");
|
|
11438
11440
|
|
|
11439
|
-
case
|
|
11441
|
+
case 45:
|
|
11440
11442
|
case "end":
|
|
11441
11443
|
return _context5.stop();
|
|
11442
11444
|
}
|
|
11443
|
-
}), _callee5, null, [ [
|
|
11445
|
+
}), _callee5, null, [ [ 23, 42 ] ]);
|
|
11444
11446
|
})));
|
|
11445
|
-
return
|
|
11447
|
+
return _BLOCKSCOUT2.apply(this, arguments);
|
|
11446
11448
|
}
|
|
11447
11449
|
function BASESCAN() {
|
|
11448
11450
|
return _BASESCAN.apply(this, arguments);
|
|
11449
11451
|
}
|
|
11450
11452
|
function _BASESCAN() {
|
|
11451
11453
|
_BASESCAN = _asyncToGenerator(_regeneratorRuntime().mark((function _callee6() {
|
|
11452
|
-
var
|
|
11454
|
+
var _argsToArray5, _argsToArray6, type, chain, address, startDate, endDate, page, limit, _args6 = arguments;
|
|
11453
11455
|
return _regeneratorRuntime().wrap((function _callee6$(_context6) {
|
|
11454
11456
|
while (1) switch (_context6.prev = _context6.next) {
|
|
11455
11457
|
case 0:
|
|
11456
|
-
|
|
11457
|
-
type =
|
|
11458
|
-
endDate =
|
|
11458
|
+
_argsToArray5 = argsToArray(_args6), _argsToArray6 = _slicedToArray(_argsToArray5, 7),
|
|
11459
|
+
type = _argsToArray6[0], chain = _argsToArray6[1], address = _argsToArray6[2], startDate = _argsToArray6[3],
|
|
11460
|
+
endDate = _argsToArray6[4], page = _argsToArray6[5], limit = _argsToArray6[6];
|
|
11459
11461
|
return _context6.abrupt("return", handleScanRequest({
|
|
11460
11462
|
scanKey: SERVICE_API_KEY.Basescan,
|
|
11461
11463
|
baseUrl: "https://api.basescan.org/api",
|
|
@@ -11481,13 +11483,13 @@ function _typeof(o) {
|
|
|
11481
11483
|
}
|
|
11482
11484
|
function _GNOSISSCAN() {
|
|
11483
11485
|
_GNOSISSCAN = _asyncToGenerator(_regeneratorRuntime().mark((function _callee7() {
|
|
11484
|
-
var
|
|
11486
|
+
var _argsToArray7, _argsToArray8, type, chain, address, startDate, endDate, page, limit, _args7 = arguments;
|
|
11485
11487
|
return _regeneratorRuntime().wrap((function _callee7$(_context7) {
|
|
11486
11488
|
while (1) switch (_context7.prev = _context7.next) {
|
|
11487
11489
|
case 0:
|
|
11488
|
-
|
|
11489
|
-
type =
|
|
11490
|
-
endDate =
|
|
11490
|
+
_argsToArray7 = argsToArray(_args7), _argsToArray8 = _slicedToArray(_argsToArray7, 7),
|
|
11491
|
+
type = _argsToArray8[0], chain = _argsToArray8[1], address = _argsToArray8[2], startDate = _argsToArray8[3],
|
|
11492
|
+
endDate = _argsToArray8[4], page = _argsToArray8[5], limit = _argsToArray8[6];
|
|
11491
11493
|
return _context7.abrupt("return", handleScanRequest({
|
|
11492
11494
|
scanKey: SERVICE_API_KEY.Gnosisscan,
|
|
11493
11495
|
baseUrl: "https://api.gnosisscan.io/api",
|
|
@@ -11513,7 +11515,7 @@ function _typeof(o) {
|
|
|
11513
11515
|
}
|
|
11514
11516
|
function _NEYNAR() {
|
|
11515
11517
|
_NEYNAR = _asyncToGenerator(_regeneratorRuntime().mark((function _callee8() {
|
|
11516
|
-
var API_KEY,
|
|
11518
|
+
var API_KEY, _argsToArray9, _argsToArray0, fid, viewerFid, sortType, limit, cursor, url, _json$users, response, json, _args8 = arguments;
|
|
11517
11519
|
return _regeneratorRuntime().wrap((function _callee8$(_context8) {
|
|
11518
11520
|
while (1) switch (_context8.prev = _context8.next) {
|
|
11519
11521
|
case 0:
|
|
@@ -11525,9 +11527,9 @@ function _typeof(o) {
|
|
|
11525
11527
|
return _context8.abrupt("return", "".concat(SERVICE_API_KEY.Neynar).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
|
|
11526
11528
|
|
|
11527
11529
|
case 3:
|
|
11528
|
-
|
|
11529
|
-
fid =
|
|
11530
|
-
limit =
|
|
11530
|
+
_argsToArray9 = argsToArray(_args8), _argsToArray0 = _slicedToArray(_argsToArray9, 5),
|
|
11531
|
+
fid = _argsToArray0[0], viewerFid = _argsToArray0[1], sortType = _argsToArray0[2],
|
|
11532
|
+
limit = _argsToArray0[3], cursor = _argsToArray0[4];
|
|
11531
11533
|
url = new URL("https://api.neynar.com/v2/farcaster/followers");
|
|
11532
11534
|
url.searchParams.set("fid", fid.toString());
|
|
11533
11535
|
url.searchParams.set("sort_type", sortType);
|
|
@@ -11595,7 +11597,7 @@ function _typeof(o) {
|
|
|
11595
11597
|
}
|
|
11596
11598
|
function _GNOSISPAY() {
|
|
11597
11599
|
_GNOSISPAY = _asyncToGenerator(_regeneratorRuntime().mark((function _callee9() {
|
|
11598
|
-
var apiKeyKey, API_KEY,
|
|
11600
|
+
var apiKeyKey, API_KEY, _argsToArray1, _argsToArray10, cardId, startDate, endDate, _argsToArray10$, limit, _argsToArray10$2, offset, url, res, json, _args9 = arguments;
|
|
11599
11601
|
return _regeneratorRuntime().wrap((function _callee9$(_context9) {
|
|
11600
11602
|
while (1) switch (_context9.prev = _context9.next) {
|
|
11601
11603
|
case 0:
|
|
@@ -11615,10 +11617,10 @@ function _typeof(o) {
|
|
|
11615
11617
|
return _context9.abrupt("return", "".concat(apiKeyKey).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
|
|
11616
11618
|
|
|
11617
11619
|
case 6:
|
|
11618
|
-
|
|
11619
|
-
cardId =
|
|
11620
|
-
|
|
11621
|
-
|
|
11620
|
+
_argsToArray1 = argsToArray(_args9), _argsToArray10 = _slicedToArray(_argsToArray1, 5),
|
|
11621
|
+
cardId = _argsToArray10[0], startDate = _argsToArray10[1], endDate = _argsToArray10[2],
|
|
11622
|
+
_argsToArray10$ = _argsToArray10[3], limit = _argsToArray10$ === void 0 ? 20 : _argsToArray10$,
|
|
11623
|
+
_argsToArray10$2 = _argsToArray10[4], offset = _argsToArray10$2 === void 0 ? 0 : _argsToArray10$2;
|
|
11622
11624
|
url = new URL("https://api.gnosispay.com/cards/".concat(cardId, "/transactions"));
|
|
11623
11625
|
url.searchParams.set("limit", limit.toString());
|
|
11624
11626
|
url.searchParams.set("offset", offset.toString());
|
|
@@ -11694,14 +11696,14 @@ function _typeof(o) {
|
|
|
11694
11696
|
}
|
|
11695
11697
|
function _ETHERSCAN() {
|
|
11696
11698
|
_ETHERSCAN = _asyncToGenerator(_regeneratorRuntime().mark((function _callee0() {
|
|
11697
|
-
var
|
|
11699
|
+
var _argsToArray11, _argsToArray12, type, chain, address, startDate, endDate, page, limit, _args0 = arguments;
|
|
11698
11700
|
return _regeneratorRuntime().wrap((function _callee0$(_context0) {
|
|
11699
11701
|
while (1) switch (_context0.prev = _context0.next) {
|
|
11700
11702
|
case 0:
|
|
11701
|
-
|
|
11702
|
-
type =
|
|
11703
|
-
startDate =
|
|
11704
|
-
limit =
|
|
11703
|
+
_argsToArray11 = argsToArray(_args0), _argsToArray12 = _slicedToArray(_argsToArray11, 7),
|
|
11704
|
+
type = _argsToArray12[0], chain = _argsToArray12[1], address = _argsToArray12[2],
|
|
11705
|
+
startDate = _argsToArray12[3], endDate = _argsToArray12[4], page = _argsToArray12[5],
|
|
11706
|
+
limit = _argsToArray12[6];
|
|
11705
11707
|
return _context0.abrupt("return", handleScanRequest({
|
|
11706
11708
|
scanKey: SERVICE_API_KEY.Etherscan,
|
|
11707
11709
|
baseUrl: "https://api.etherscan.io/v2/api",
|
|
@@ -11727,7 +11729,7 @@ function _typeof(o) {
|
|
|
11727
11729
|
}
|
|
11728
11730
|
function _COINGECKO() {
|
|
11729
11731
|
_COINGECKO = _asyncToGenerator(_regeneratorRuntime().mark((function _callee1() {
|
|
11730
|
-
var API_KEY, headers, url,
|
|
11732
|
+
var API_KEY, headers, url, _argsToArray13, _argsToArray14, category, param1, param2, _argsToArray14$, page, _argsToArray14$2, perPage, lowerCategory, token, vsCurrencies, ecosystemMap, key, categoryVal, trend, _category, _trend, exchange, response, json, _json$status, message, output, _i11, _Object$entries2, _Object$entries2$_i, _token, prices, _i12, _Object$entries3, _Object$entries3$_i, currency, _value6, _key2, flatArray, _args1 = arguments;
|
|
11731
11733
|
return _regeneratorRuntime().wrap((function _callee1$(_context1) {
|
|
11732
11734
|
while (1) switch (_context1.prev = _context1.next) {
|
|
11733
11735
|
case 0:
|
|
@@ -11744,10 +11746,10 @@ function _typeof(o) {
|
|
|
11744
11746
|
"x-cg-demo-api-key": API_KEY
|
|
11745
11747
|
};
|
|
11746
11748
|
url = "";
|
|
11747
|
-
|
|
11748
|
-
category =
|
|
11749
|
-
|
|
11750
|
-
|
|
11749
|
+
_argsToArray13 = argsToArray(_args1), _argsToArray14 = _slicedToArray(_argsToArray13, 5),
|
|
11750
|
+
category = _argsToArray14[0], param1 = _argsToArray14[1], param2 = _argsToArray14[2],
|
|
11751
|
+
_argsToArray14$ = _argsToArray14[3], page = _argsToArray14$ === void 0 ? 1 : _argsToArray14$,
|
|
11752
|
+
_argsToArray14$2 = _argsToArray14[4], perPage = _argsToArray14$2 === void 0 ? 2 : _argsToArray14$2;
|
|
11751
11753
|
lowerCategory = (category || "").toLowerCase();
|
|
11752
11754
|
_context1.t0 = lowerCategory;
|
|
11753
11755
|
_context1.next = _context1.t0 === "price" ? 10 : _context1.t0 === "market" ? 16 : _context1.t0 === "stablecoins" ? 26 : _context1.t0 === "derivatives" ? 30 : 33;
|
|
@@ -11894,7 +11896,7 @@ function _typeof(o) {
|
|
|
11894
11896
|
}
|
|
11895
11897
|
function _EOA() {
|
|
11896
11898
|
_EOA = _asyncToGenerator(_regeneratorRuntime().mark((function _callee11() {
|
|
11897
|
-
var
|
|
11899
|
+
var _argsToArray15, _argsToArray16, addresses, category, chains, startTime, endTime, _argsToArray16$, page, _argsToArray16$2, offset, someError, API_KEY, INPUTS, CHAINS, out, ADDRESS_MAP, _iterator, _step, input, resolved, ADDRS, _iterator2, _step2, _loop, _ret, fetchJSON, _fetchJSON, _args13 = arguments;
|
|
11898
11900
|
return _regeneratorRuntime().wrap((function _callee11$(_context13) {
|
|
11899
11901
|
while (1) switch (_context13.prev = _context13.next) {
|
|
11900
11902
|
case 0:
|
|
@@ -11958,31 +11960,30 @@ function _typeof(o) {
|
|
|
11958
11960
|
})));
|
|
11959
11961
|
return _fetchJSON.apply(this, arguments);
|
|
11960
11962
|
};
|
|
11961
|
-
fetchJSON = function _fetchJSON2(
|
|
11963
|
+
fetchJSON = function _fetchJSON2(_x13) {
|
|
11962
11964
|
return _fetchJSON.apply(this, arguments);
|
|
11963
11965
|
};
|
|
11964
|
-
|
|
11965
|
-
|
|
11966
|
-
|
|
11967
|
-
|
|
11968
|
-
|
|
11969
|
-
offset = _argsToArray18$2 === void 0 ? 10 : _argsToArray18$2;
|
|
11966
|
+
_argsToArray15 = argsToArray(_args13), _argsToArray16 = _slicedToArray(_argsToArray15, 7),
|
|
11967
|
+
addresses = _argsToArray16[0], category = _argsToArray16[1], chains = _argsToArray16[2],
|
|
11968
|
+
startTime = _argsToArray16[3], endTime = _argsToArray16[4], _argsToArray16$ = _argsToArray16[5],
|
|
11969
|
+
page = _argsToArray16$ === void 0 ? 1 : _argsToArray16$, _argsToArray16$2 = _argsToArray16[6],
|
|
11970
|
+
offset = _argsToArray16$2 === void 0 ? 10 : _argsToArray16$2;
|
|
11970
11971
|
someError = anyError(addresses, category, chains, startTime, endTime, page, offset);
|
|
11971
11972
|
if (!someError) {
|
|
11972
|
-
_context13.next =
|
|
11973
|
+
_context13.next = 6;
|
|
11973
11974
|
break;
|
|
11974
11975
|
}
|
|
11975
11976
|
return _context13.abrupt("return", someError);
|
|
11976
11977
|
|
|
11977
|
-
case
|
|
11978
|
+
case 6:
|
|
11978
11979
|
API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Etherscan);
|
|
11979
11980
|
if (API_KEY) {
|
|
11980
|
-
_context13.next =
|
|
11981
|
+
_context13.next = 9;
|
|
11981
11982
|
break;
|
|
11982
11983
|
}
|
|
11983
11984
|
return _context13.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
|
|
11984
11985
|
|
|
11985
|
-
case
|
|
11986
|
+
case 9:
|
|
11986
11987
|
if (typeof addresses === "string") {
|
|
11987
11988
|
INPUTS = addresses.split(",").map((function(a) {
|
|
11988
11989
|
return a.trim();
|
|
@@ -11996,61 +11997,61 @@ function _typeof(o) {
|
|
|
11996
11997
|
out = [];
|
|
11997
11998
|
ADDRESS_MAP = {};
|
|
11998
11999
|
_iterator = _createForOfIteratorHelper(INPUTS);
|
|
11999
|
-
_context13.prev =
|
|
12000
|
+
_context13.prev = 14;
|
|
12000
12001
|
_iterator.s();
|
|
12001
12002
|
|
|
12002
|
-
case
|
|
12003
|
+
case 16:
|
|
12003
12004
|
if ((_step = _iterator.n()).done) {
|
|
12004
|
-
_context13.next =
|
|
12005
|
+
_context13.next = 34;
|
|
12005
12006
|
break;
|
|
12006
12007
|
}
|
|
12007
12008
|
input = _step.value;
|
|
12008
12009
|
if (!isAddress(input)) {
|
|
12009
|
-
_context13.next =
|
|
12010
|
+
_context13.next = 22;
|
|
12010
12011
|
break;
|
|
12011
12012
|
}
|
|
12012
12013
|
ADDRESS_MAP[input.toLowerCase()] = null;
|
|
12013
|
-
_context13.next =
|
|
12014
|
+
_context13.next = 32;
|
|
12014
12015
|
break;
|
|
12015
12016
|
|
|
12016
|
-
case
|
|
12017
|
-
_context13.prev =
|
|
12018
|
-
_context13.next =
|
|
12017
|
+
case 22:
|
|
12018
|
+
_context13.prev = 22;
|
|
12019
|
+
_context13.next = 25;
|
|
12019
12020
|
return fromEnsNameToAddress(input);
|
|
12020
12021
|
|
|
12021
|
-
case
|
|
12022
|
+
case 25:
|
|
12022
12023
|
resolved = _context13.sent;
|
|
12023
12024
|
if (resolved) ADDRESS_MAP[resolved.toLowerCase()] = input;
|
|
12024
|
-
_context13.next =
|
|
12025
|
+
_context13.next = 32;
|
|
12025
12026
|
break;
|
|
12026
12027
|
|
|
12027
|
-
case
|
|
12028
|
-
_context13.prev =
|
|
12029
|
-
_context13.t0 = _context13["catch"](
|
|
12028
|
+
case 29:
|
|
12029
|
+
_context13.prev = 29;
|
|
12030
|
+
_context13.t0 = _context13["catch"](22);
|
|
12030
12031
|
return _context13.abrupt("return", "".concat(input).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
|
|
12031
12032
|
|
|
12032
|
-
case
|
|
12033
|
-
_context13.next =
|
|
12033
|
+
case 32:
|
|
12034
|
+
_context13.next = 16;
|
|
12034
12035
|
break;
|
|
12035
12036
|
|
|
12036
|
-
case
|
|
12037
|
-
_context13.next =
|
|
12037
|
+
case 34:
|
|
12038
|
+
_context13.next = 39;
|
|
12038
12039
|
break;
|
|
12039
12040
|
|
|
12040
|
-
case
|
|
12041
|
-
_context13.prev =
|
|
12042
|
-
_context13.t1 = _context13["catch"](
|
|
12041
|
+
case 36:
|
|
12042
|
+
_context13.prev = 36;
|
|
12043
|
+
_context13.t1 = _context13["catch"](14);
|
|
12043
12044
|
_iterator.e(_context13.t1);
|
|
12044
12045
|
|
|
12045
|
-
case
|
|
12046
|
-
_context13.prev =
|
|
12046
|
+
case 39:
|
|
12047
|
+
_context13.prev = 39;
|
|
12047
12048
|
_iterator.f();
|
|
12048
|
-
return _context13.finish(
|
|
12049
|
+
return _context13.finish(39);
|
|
12049
12050
|
|
|
12050
|
-
case
|
|
12051
|
+
case 42:
|
|
12051
12052
|
ADDRS = Object.keys(ADDRESS_MAP);
|
|
12052
12053
|
_iterator2 = _createForOfIteratorHelper(CHAINS);
|
|
12053
|
-
_context13.prev =
|
|
12054
|
+
_context13.prev = 44;
|
|
12054
12055
|
_loop = _regeneratorRuntime().mark((function _loop() {
|
|
12055
12056
|
var chain, chainId, i, slice, action, url, _data, startBlock, endBlock, _loop2, _ret2, _i14, _ADDRS;
|
|
12056
12057
|
return _regeneratorRuntime().wrap((function _loop$(_context11) {
|
|
@@ -12201,58 +12202,58 @@ function _typeof(o) {
|
|
|
12201
12202
|
}));
|
|
12202
12203
|
_iterator2.s();
|
|
12203
12204
|
|
|
12204
|
-
case
|
|
12205
|
+
case 47:
|
|
12205
12206
|
if ((_step2 = _iterator2.n()).done) {
|
|
12206
|
-
_context13.next =
|
|
12207
|
+
_context13.next = 56;
|
|
12207
12208
|
break;
|
|
12208
12209
|
}
|
|
12209
|
-
return _context13.delegateYield(_loop(), "t2",
|
|
12210
|
+
return _context13.delegateYield(_loop(), "t2", 49);
|
|
12210
12211
|
|
|
12211
|
-
case
|
|
12212
|
+
case 49:
|
|
12212
12213
|
_ret = _context13.t2;
|
|
12213
12214
|
if (!(_ret === 0)) {
|
|
12214
|
-
_context13.next =
|
|
12215
|
+
_context13.next = 52;
|
|
12215
12216
|
break;
|
|
12216
12217
|
}
|
|
12217
|
-
return _context13.abrupt("continue",
|
|
12218
|
+
return _context13.abrupt("continue", 54);
|
|
12218
12219
|
|
|
12219
|
-
case
|
|
12220
|
+
case 52:
|
|
12220
12221
|
if (!_ret) {
|
|
12221
|
-
_context13.next =
|
|
12222
|
+
_context13.next = 54;
|
|
12222
12223
|
break;
|
|
12223
12224
|
}
|
|
12224
12225
|
return _context13.abrupt("return", _ret.v);
|
|
12225
12226
|
|
|
12226
|
-
case
|
|
12227
|
-
_context13.next =
|
|
12227
|
+
case 54:
|
|
12228
|
+
_context13.next = 47;
|
|
12228
12229
|
break;
|
|
12229
12230
|
|
|
12230
|
-
case
|
|
12231
|
-
_context13.next =
|
|
12231
|
+
case 56:
|
|
12232
|
+
_context13.next = 61;
|
|
12232
12233
|
break;
|
|
12233
12234
|
|
|
12234
|
-
case
|
|
12235
|
-
_context13.prev =
|
|
12236
|
-
_context13.t3 = _context13["catch"](
|
|
12235
|
+
case 58:
|
|
12236
|
+
_context13.prev = 58;
|
|
12237
|
+
_context13.t3 = _context13["catch"](44);
|
|
12237
12238
|
_iterator2.e(_context13.t3);
|
|
12238
12239
|
|
|
12239
|
-
case
|
|
12240
|
-
_context13.prev =
|
|
12240
|
+
case 61:
|
|
12241
|
+
_context13.prev = 61;
|
|
12241
12242
|
_iterator2.f();
|
|
12242
|
-
return _context13.finish(
|
|
12243
|
+
return _context13.finish(61);
|
|
12243
12244
|
|
|
12244
|
-
case
|
|
12245
|
+
case 64:
|
|
12245
12246
|
return _context13.abrupt("return", out);
|
|
12246
12247
|
|
|
12247
|
-
case
|
|
12248
|
+
case 65:
|
|
12248
12249
|
case "end":
|
|
12249
12250
|
return _context13.stop();
|
|
12250
12251
|
}
|
|
12251
|
-
}), _callee11, null, [ [
|
|
12252
|
+
}), _callee11, null, [ [ 14, 36, 39, 42 ], [ 22, 29 ], [ 44, 58, 61, 64 ] ]);
|
|
12252
12253
|
})));
|
|
12253
12254
|
return _EOA.apply(this, arguments);
|
|
12254
12255
|
}
|
|
12255
|
-
function FLVURL(
|
|
12256
|
+
function FLVURL(_x11, _x12) {
|
|
12256
12257
|
return _FLVURL.apply(this, arguments);
|
|
12257
12258
|
}
|
|
12258
12259
|
function _FLVURL() {
|
|
@@ -12281,13 +12282,13 @@ function _typeof(o) {
|
|
|
12281
12282
|
}
|
|
12282
12283
|
function _SAFE() {
|
|
12283
12284
|
_SAFE = _asyncToGenerator(_regeneratorRuntime().mark((function _callee13() {
|
|
12284
|
-
var
|
|
12285
|
+
var _argsToArray17, _argsToArray18, address, utility, chain, limit, offset, apiKey, chainIdentifier, url, response, json, _args15 = arguments;
|
|
12285
12286
|
return _regeneratorRuntime().wrap((function _callee13$(_context15) {
|
|
12286
12287
|
while (1) switch (_context15.prev = _context15.next) {
|
|
12287
12288
|
case 0:
|
|
12288
|
-
|
|
12289
|
-
address =
|
|
12290
|
-
limit =
|
|
12289
|
+
_argsToArray17 = argsToArray(_args15), _argsToArray18 = _slicedToArray(_argsToArray17, 5),
|
|
12290
|
+
address = _argsToArray18[0], utility = _argsToArray18[1], chain = _argsToArray18[2],
|
|
12291
|
+
limit = _argsToArray18[3], offset = _argsToArray18[4];
|
|
12291
12292
|
if (!(typeof limit !== "number" || limit < 0)) {
|
|
12292
12293
|
_context15.next = 3;
|
|
12293
12294
|
break;
|
|
@@ -12803,5 +12804,6 @@ function _typeof(o) {
|
|
|
12803
12804
|
exports.YEARFRAC = YEARFRAC;
|
|
12804
12805
|
exports.Z = Z;
|
|
12805
12806
|
exports.ZTEST = ZTEST;
|
|
12807
|
+
exports._BLOCKSCOUT = _BLOCKSCOUT;
|
|
12806
12808
|
exports.utils = utils;
|
|
12807
12809
|
}));
|