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