@fileverse-dev/formulajs 4.4.11-mod-38-patch-6 → 4.4.11-mod-38-patch-9

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.
@@ -1,4 +1,4 @@
1
- /* @fileverse-dev/formulajs v4.4.11-mod-38-patch-6 */
1
+ /* @fileverse-dev/formulajs v4.4.11-mod-38-patch-9 */
2
2
  var _excluded = [ "confirmations", "dataDecoded" ];
3
3
 
4
4
  function _objectWithoutProperties(e, t) {
@@ -11211,66 +11211,22 @@ function _typeof(o) {
11211
11211
  })));
11212
11212
  return _handleScanRequest.apply(this, arguments);
11213
11213
  }
11214
- function SUMTEST() {
11215
- return _SUMTEST.apply(this, arguments);
11216
- }
11217
- function _SUMTEST() {
11218
- _SUMTEST = _asyncToGenerator(_regeneratorRuntime().mark((function _callee4() {
11219
- var result, _args4 = arguments;
11220
- return _regeneratorRuntime().wrap((function _callee4$(_context4) {
11221
- while (1) switch (_context4.prev = _context4.next) {
11222
- case 0:
11223
- result = 0;
11224
- arrayEach(argsToArray(_args4), (function(value) {
11225
- console.log("callllllling teeeessssst");
11226
- if (result instanceof Error) {
11227
- return false;
11228
- } else if (value instanceof Error) {
11229
- result = value;
11230
- } else if (typeof value === "number") {
11231
- result += value;
11232
- } else if (typeof value === "string") {
11233
- var parsed = parseFloat(value);
11234
- !isNaN(parsed) && (result += parsed);
11235
- } else if (Array.isArray(value)) {
11236
- var inner_result = SUMTEST.apply(null, value);
11237
- if (inner_result instanceof Error) {
11238
- result = inner_result;
11239
- } else {
11240
- result += inner_result;
11241
- }
11242
- }
11243
- }));
11244
- return _context4.abrupt("return", new Promise((function(resolve) {
11245
- setTimeout((function() {
11246
- resolve(result);
11247
- }), 3e3);
11248
- })));
11249
-
11250
- case 3:
11251
- case "end":
11252
- return _context4.stop();
11253
- }
11254
- }), _callee4);
11255
- })));
11256
- return _SUMTEST.apply(this, arguments);
11257
- }
11258
11214
  function FIREFLY() {
11259
11215
  return _FIREFLY.apply(this, arguments);
11260
11216
  }
11261
11217
  function _FIREFLY() {
11262
- _FIREFLY = _asyncToGenerator(_regeneratorRuntime().mark((function _callee5() {
11218
+ _FIREFLY = _asyncToGenerator(_regeneratorRuntime().mark((function _callee4() {
11263
11219
  var _typeMap$platform;
11264
- var API_KEY, baseUrl, headers, typeMap, _argsToArray3, _argsToArray4, platform, contentType, identifier, _argsToArray4$, start, _argsToArray4$2, end, platformType, query, url, res, json, _args5 = arguments;
11265
- return _regeneratorRuntime().wrap((function _callee5$(_context5) {
11266
- while (1) switch (_context5.prev = _context5.next) {
11220
+ var API_KEY, baseUrl, headers, typeMap, _argsToArray3, _argsToArray4, platform, contentType, identifier, _argsToArray4$, start, _argsToArray4$2, end, platformType, query, url, res, json, _args4 = arguments;
11221
+ return _regeneratorRuntime().wrap((function _callee4$(_context4) {
11222
+ while (1) switch (_context4.prev = _context4.next) {
11267
11223
  case 0:
11268
11224
  API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Firefly);
11269
11225
  if (API_KEY) {
11270
- _context5.next = 3;
11226
+ _context4.next = 3;
11271
11227
  break;
11272
11228
  }
11273
- return _context5.abrupt("return", "".concat(SERVICE_API_KEY.Firefly).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
11229
+ return _context4.abrupt("return", "".concat(SERVICE_API_KEY.Firefly).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
11274
11230
 
11275
11231
  case 3:
11276
11232
  baseUrl = "https://openapi.firefly.land/v1/fileverse/fetch";
@@ -11288,16 +11244,16 @@ function _typeof(o) {
11288
11244
  replies: "lenspostid"
11289
11245
  }
11290
11246
  };
11291
- _argsToArray3 = argsToArray(_args5), _argsToArray4 = _slicedToArray(_argsToArray3, 5),
11247
+ _argsToArray3 = argsToArray(_args4), _argsToArray4 = _slicedToArray(_argsToArray3, 5),
11292
11248
  platform = _argsToArray4[0], contentType = _argsToArray4[1], identifier = _argsToArray4[2],
11293
11249
  _argsToArray4$ = _argsToArray4[3], start = _argsToArray4$ === void 0 ? 0 : _argsToArray4$,
11294
11250
  _argsToArray4$2 = _argsToArray4[4], end = _argsToArray4$2 === void 0 ? 10 : _argsToArray4$2;
11295
11251
  platformType = (_typeMap$platform = typeMap[platform]) === null || _typeMap$platform === void 0 ? void 0 : _typeMap$platform[contentType];
11296
11252
  if (platformType) {
11297
- _context5.next = 10;
11253
+ _context4.next = 10;
11298
11254
  break;
11299
11255
  }
11300
- return _context5.abrupt("return", "".concat(SERVICE_API_KEY.Firefly).concat(ERROR_MESSAGES_FLAG.INVALID_TYPE));
11256
+ return _context4.abrupt("return", "".concat(SERVICE_API_KEY.Firefly).concat(ERROR_MESSAGES_FLAG.INVALID_TYPE));
11301
11257
 
11302
11258
  case 10:
11303
11259
  query = identifier.split(",").map((function(s) {
@@ -11308,34 +11264,34 @@ function _typeof(o) {
11308
11264
  url.searchParams.set("type", platformType);
11309
11265
  url.searchParams.set("start", String(start));
11310
11266
  url.searchParams.set("end", String(end));
11311
- _context5.prev = 16;
11312
- _context5.next = 19;
11267
+ _context4.prev = 16;
11268
+ _context4.next = 19;
11313
11269
  return fetch(url.toString(), {
11314
11270
  headers: headers
11315
11271
  });
11316
11272
 
11317
11273
  case 19:
11318
- res = _context5.sent;
11274
+ res = _context4.sent;
11319
11275
  if (res.ok) {
11320
- _context5.next = 22;
11276
+ _context4.next = 22;
11321
11277
  break;
11322
11278
  }
11323
11279
  throw new Error("HTTP ".concat(res.status));
11324
11280
 
11325
11281
  case 22:
11326
- _context5.next = 24;
11282
+ _context4.next = 24;
11327
11283
  return res.json();
11328
11284
 
11329
11285
  case 24:
11330
- json = _context5.sent;
11286
+ json = _context4.sent;
11331
11287
  if (Array.isArray(json === null || json === void 0 ? void 0 : json.data)) {
11332
- _context5.next = 27;
11288
+ _context4.next = 27;
11333
11289
  break;
11334
11290
  }
11335
- return _context5.abrupt("return", []);
11291
+ return _context4.abrupt("return", []);
11336
11292
 
11337
11293
  case 27:
11338
- return _context5.abrupt("return", json.data.map((function(item) {
11294
+ return _context4.abrupt("return", json.data.map((function(item) {
11339
11295
  var flat = {};
11340
11296
  for (var _i10 = 0, _Object$entries = Object.entries(item); _i10 < _Object$entries.length; _i10++) {
11341
11297
  var _Object$entries$_i = _slicedToArray(_Object$entries[_i10], 2), key = _Object$entries$_i[0], _value5 = _Object$entries$_i[1];
@@ -11348,16 +11304,16 @@ function _typeof(o) {
11348
11304
  })));
11349
11305
 
11350
11306
  case 30:
11351
- _context5.prev = 30;
11352
- _context5.t0 = _context5["catch"](16);
11353
- console.error("FIREFLY fetch error:", _context5.t0);
11354
- return _context5.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11307
+ _context4.prev = 30;
11308
+ _context4.t0 = _context4["catch"](16);
11309
+ console.error("FIREFLY fetch error:", _context4.t0);
11310
+ return _context4.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11355
11311
 
11356
11312
  case 34:
11357
11313
  case "end":
11358
- return _context5.stop();
11314
+ return _context4.stop();
11359
11315
  }
11360
- }), _callee5, null, [ [ 16, 30 ] ]);
11316
+ }), _callee4, null, [ [ 16, 30 ] ]);
11361
11317
  })));
11362
11318
  return _FIREFLY.apply(this, arguments);
11363
11319
  }
@@ -11365,22 +11321,22 @@ function _typeof(o) {
11365
11321
  return _BLOCKSCOUT.apply(this, arguments);
11366
11322
  }
11367
11323
  function _BLOCKSCOUT() {
11368
- _BLOCKSCOUT = _asyncToGenerator(_regeneratorRuntime().mark((function _callee6() {
11369
- var _argsToArray5, _argsToArray6, address, type, chain, startTimestamp, endTimestamp, page, offset, currentTimestamp, hostname, requestUrl, _json$result, _json$result2, response, json, _args6 = arguments;
11370
- return _regeneratorRuntime().wrap((function _callee6$(_context6) {
11371
- while (1) switch (_context6.prev = _context6.next) {
11324
+ _BLOCKSCOUT = _asyncToGenerator(_regeneratorRuntime().mark((function _callee5() {
11325
+ var _argsToArray5, _argsToArray6, address, type, chain, startTimestamp, endTimestamp, page, offset, currentTimestamp, hostname, requestUrl, _json$result, _json$result2, response, json, _args5 = arguments;
11326
+ return _regeneratorRuntime().wrap((function _callee5$(_context5) {
11327
+ while (1) switch (_context5.prev = _context5.next) {
11372
11328
  case 0:
11373
11329
  if (!chain) {
11374
11330
  chain = "ethereum";
11375
11331
  }
11376
11332
  if (type) {
11377
- _context6.next = 3;
11333
+ _context5.next = 3;
11378
11334
  break;
11379
11335
  }
11380
- return _context6.abrupt("return", "TYPE_MISSING");
11336
+ return _context5.abrupt("return", "TYPE_MISSING");
11381
11337
 
11382
11338
  case 3:
11383
- _argsToArray5 = argsToArray(_args6), _argsToArray6 = _slicedToArray(_argsToArray5, 7),
11339
+ _argsToArray5 = argsToArray(_args5), _argsToArray6 = _slicedToArray(_argsToArray5, 7),
11384
11340
  address = _argsToArray6[0], type = _argsToArray6[1], chain = _argsToArray6[2], startTimestamp = _argsToArray6[3],
11385
11341
  endTimestamp = _argsToArray6[4], page = _argsToArray6[5], offset = _argsToArray6[6];
11386
11342
  if (!startTimestamp) {
@@ -11395,96 +11351,96 @@ function _typeof(o) {
11395
11351
  endTimestamp = toTimestamp(endTimestamp);
11396
11352
  }
11397
11353
  if (isAddress(address)) {
11398
- _context6.next = 11;
11354
+ _context5.next = 11;
11399
11355
  break;
11400
11356
  }
11401
- _context6.next = 10;
11357
+ _context5.next = 10;
11402
11358
  return fromEnsNameToAddress(address);
11403
11359
 
11404
11360
  case 10:
11405
- address = _context6.sent;
11361
+ address = _context5.sent;
11406
11362
 
11407
11363
  case 11:
11408
11364
  if (address) {
11409
- _context6.next = 13;
11365
+ _context5.next = 13;
11410
11366
  break;
11411
11367
  }
11412
- return _context6.abrupt("return", "".concat(address).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
11368
+ return _context5.abrupt("return", "".concat(address).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
11413
11369
 
11414
11370
  case 13:
11415
11371
  hostname = BLOCKSCOUT_CHAINS_MAP[chain];
11416
- _context6.t0 = type;
11417
- _context6.next = _context6.t0 === "stat" ? 17 : _context6.t0 === "txns" ? 19 : _context6.t0 === "tokens" ? 21 : 23;
11372
+ _context5.t0 = type;
11373
+ _context5.next = _context5.t0 === "stat" ? 17 : _context5.t0 === "txns" ? 19 : _context5.t0 === "tokens" ? 21 : 23;
11418
11374
  break;
11419
11375
 
11420
11376
  case 17:
11421
11377
  requestUrl = "".concat(hostname, "/api/v2/addresses/").concat(address, "/counters");
11422
- return _context6.abrupt("break", 24);
11378
+ return _context5.abrupt("break", 24);
11423
11379
 
11424
11380
  case 19:
11425
11381
  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");
11426
- return _context6.abrupt("break", 24);
11382
+ return _context5.abrupt("break", 24);
11427
11383
 
11428
11384
  case 21:
11429
11385
  requestUrl = "".concat(hostname, "/api?module=account&action=tokenlist&address=").concat(address);
11430
- return _context6.abrupt("break", 24);
11386
+ return _context5.abrupt("break", 24);
11431
11387
 
11432
11388
  case 23:
11433
- return _context6.abrupt("return", "INVALID_TYPE");
11389
+ return _context5.abrupt("return", "INVALID_TYPE");
11434
11390
 
11435
11391
  case 24:
11436
- _context6.prev = 24;
11437
- _context6.next = 27;
11392
+ _context5.prev = 24;
11393
+ _context5.next = 27;
11438
11394
  return fetch(requestUrl);
11439
11395
 
11440
11396
  case 27:
11441
- response = _context6.sent;
11397
+ response = _context5.sent;
11442
11398
  if (response.ok) {
11443
- _context6.next = 30;
11399
+ _context5.next = 30;
11444
11400
  break;
11445
11401
  }
11446
11402
  throw new Error("HTTP error! Status: ".concat(response.status));
11447
11403
 
11448
11404
  case 30:
11449
- _context6.next = 32;
11405
+ _context5.next = 32;
11450
11406
  return response.json();
11451
11407
 
11452
11408
  case 32:
11453
- json = _context6.sent;
11409
+ json = _context5.sent;
11454
11410
  console.log(json);
11455
11411
  if (!(json !== null && json !== void 0 && (_json$result = json.result) !== null && _json$result !== void 0 && _json$result.includes("Invalid parameter(s)"))) {
11456
- _context6.next = 36;
11412
+ _context5.next = 36;
11457
11413
  break;
11458
11414
  }
11459
- return _context6.abrupt("return", "INVALID_REQUEST_PARAMS");
11415
+ return _context5.abrupt("return", "INVALID_REQUEST_PARAMS");
11460
11416
 
11461
11417
  case 36:
11462
11418
  if (!(json !== null && json !== void 0 && (_json$result2 = json.result) !== null && _json$result2 !== void 0 && _json$result2.includes("Not found"))) {
11463
- _context6.next = 38;
11419
+ _context5.next = 38;
11464
11420
  break;
11465
11421
  }
11466
- return _context6.abrupt("return", "ADDRESS_NOT_FOUND");
11422
+ return _context5.abrupt("return", "ADDRESS_NOT_FOUND");
11467
11423
 
11468
11424
  case 38:
11469
11425
  if (!(type === "stat")) {
11470
- _context6.next = 40;
11426
+ _context5.next = 40;
11471
11427
  break;
11472
11428
  }
11473
- return _context6.abrupt("return", [ json ]);
11429
+ return _context5.abrupt("return", [ json ]);
11474
11430
 
11475
11431
  case 40:
11476
- return _context6.abrupt("return", json.result);
11432
+ return _context5.abrupt("return", json.result);
11477
11433
 
11478
11434
  case 43:
11479
- _context6.prev = 43;
11480
- _context6.t1 = _context6["catch"](24);
11481
- return _context6.abrupt("return", "ERROR IN FETCHING");
11435
+ _context5.prev = 43;
11436
+ _context5.t1 = _context5["catch"](24);
11437
+ return _context5.abrupt("return", "ERROR IN FETCHING");
11482
11438
 
11483
11439
  case 46:
11484
11440
  case "end":
11485
- return _context6.stop();
11441
+ return _context5.stop();
11486
11442
  }
11487
- }), _callee6, null, [ [ 24, 43 ] ]);
11443
+ }), _callee5, null, [ [ 24, 43 ] ]);
11488
11444
  })));
11489
11445
  return _BLOCKSCOUT.apply(this, arguments);
11490
11446
  }
@@ -11492,15 +11448,15 @@ function _typeof(o) {
11492
11448
  return _BASESCAN.apply(this, arguments);
11493
11449
  }
11494
11450
  function _BASESCAN() {
11495
- _BASESCAN = _asyncToGenerator(_regeneratorRuntime().mark((function _callee7() {
11496
- var _argsToArray7, _argsToArray8, type, chain, address, startDate, endDate, page, limit, _args7 = arguments;
11497
- return _regeneratorRuntime().wrap((function _callee7$(_context7) {
11498
- while (1) switch (_context7.prev = _context7.next) {
11451
+ _BASESCAN = _asyncToGenerator(_regeneratorRuntime().mark((function _callee6() {
11452
+ var _argsToArray7, _argsToArray8, type, chain, address, startDate, endDate, page, limit, _args6 = arguments;
11453
+ return _regeneratorRuntime().wrap((function _callee6$(_context6) {
11454
+ while (1) switch (_context6.prev = _context6.next) {
11499
11455
  case 0:
11500
- _argsToArray7 = argsToArray(_args7), _argsToArray8 = _slicedToArray(_argsToArray7, 7),
11456
+ _argsToArray7 = argsToArray(_args6), _argsToArray8 = _slicedToArray(_argsToArray7, 7),
11501
11457
  type = _argsToArray8[0], chain = _argsToArray8[1], address = _argsToArray8[2], startDate = _argsToArray8[3],
11502
11458
  endDate = _argsToArray8[4], page = _argsToArray8[5], limit = _argsToArray8[6];
11503
- return _context7.abrupt("return", handleScanRequest({
11459
+ return _context6.abrupt("return", handleScanRequest({
11504
11460
  scanKey: SERVICE_API_KEY.Basescan,
11505
11461
  baseUrl: "https://api.basescan.org/api",
11506
11462
  type: type,
@@ -11514,9 +11470,9 @@ function _typeof(o) {
11514
11470
 
11515
11471
  case 2:
11516
11472
  case "end":
11517
- return _context7.stop();
11473
+ return _context6.stop();
11518
11474
  }
11519
- }), _callee7);
11475
+ }), _callee6);
11520
11476
  })));
11521
11477
  return _BASESCAN.apply(this, arguments);
11522
11478
  }
@@ -11524,15 +11480,15 @@ function _typeof(o) {
11524
11480
  return _GNOSISSCAN.apply(this, arguments);
11525
11481
  }
11526
11482
  function _GNOSISSCAN() {
11527
- _GNOSISSCAN = _asyncToGenerator(_regeneratorRuntime().mark((function _callee8() {
11528
- var _argsToArray9, _argsToArray0, type, chain, address, startDate, endDate, page, limit, _args8 = arguments;
11529
- return _regeneratorRuntime().wrap((function _callee8$(_context8) {
11530
- while (1) switch (_context8.prev = _context8.next) {
11483
+ _GNOSISSCAN = _asyncToGenerator(_regeneratorRuntime().mark((function _callee7() {
11484
+ var _argsToArray9, _argsToArray0, type, chain, address, startDate, endDate, page, limit, _args7 = arguments;
11485
+ return _regeneratorRuntime().wrap((function _callee7$(_context7) {
11486
+ while (1) switch (_context7.prev = _context7.next) {
11531
11487
  case 0:
11532
- _argsToArray9 = argsToArray(_args8), _argsToArray0 = _slicedToArray(_argsToArray9, 7),
11488
+ _argsToArray9 = argsToArray(_args7), _argsToArray0 = _slicedToArray(_argsToArray9, 7),
11533
11489
  type = _argsToArray0[0], chain = _argsToArray0[1], address = _argsToArray0[2], startDate = _argsToArray0[3],
11534
11490
  endDate = _argsToArray0[4], page = _argsToArray0[5], limit = _argsToArray0[6];
11535
- return _context8.abrupt("return", handleScanRequest({
11491
+ return _context7.abrupt("return", handleScanRequest({
11536
11492
  scanKey: SERVICE_API_KEY.Gnosisscan,
11537
11493
  baseUrl: "https://api.gnosisscan.io/api",
11538
11494
  type: type,
@@ -11546,9 +11502,9 @@ function _typeof(o) {
11546
11502
 
11547
11503
  case 2:
11548
11504
  case "end":
11549
- return _context8.stop();
11505
+ return _context7.stop();
11550
11506
  }
11551
- }), _callee8);
11507
+ }), _callee7);
11552
11508
  })));
11553
11509
  return _GNOSISSCAN.apply(this, arguments);
11554
11510
  }
@@ -11556,20 +11512,20 @@ function _typeof(o) {
11556
11512
  return _NEYNAR.apply(this, arguments);
11557
11513
  }
11558
11514
  function _NEYNAR() {
11559
- _NEYNAR = _asyncToGenerator(_regeneratorRuntime().mark((function _callee9() {
11560
- var API_KEY, _argsToArray1, _argsToArray10, fid, viewerFid, sortType, limit, cursor, url, _json$users, response, json, _args9 = arguments;
11561
- return _regeneratorRuntime().wrap((function _callee9$(_context9) {
11562
- while (1) switch (_context9.prev = _context9.next) {
11515
+ _NEYNAR = _asyncToGenerator(_regeneratorRuntime().mark((function _callee8() {
11516
+ var API_KEY, _argsToArray1, _argsToArray10, fid, viewerFid, sortType, limit, cursor, url, _json$users, response, json, _args8 = arguments;
11517
+ return _regeneratorRuntime().wrap((function _callee8$(_context8) {
11518
+ while (1) switch (_context8.prev = _context8.next) {
11563
11519
  case 0:
11564
11520
  API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Neynar);
11565
11521
  if (API_KEY) {
11566
- _context9.next = 3;
11522
+ _context8.next = 3;
11567
11523
  break;
11568
11524
  }
11569
- return _context9.abrupt("return", "".concat(SERVICE_API_KEY.Neynar).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
11525
+ return _context8.abrupt("return", "".concat(SERVICE_API_KEY.Neynar).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
11570
11526
 
11571
11527
  case 3:
11572
- _argsToArray1 = argsToArray(_args9), _argsToArray10 = _slicedToArray(_argsToArray1, 5),
11528
+ _argsToArray1 = argsToArray(_args8), _argsToArray10 = _slicedToArray(_argsToArray1, 5),
11573
11529
  fid = _argsToArray10[0], viewerFid = _argsToArray10[1], sortType = _argsToArray10[2],
11574
11530
  limit = _argsToArray10[3], cursor = _argsToArray10[4];
11575
11531
  url = new URL("https://api.neynar.com/v2/farcaster/followers");
@@ -11578,8 +11534,8 @@ function _typeof(o) {
11578
11534
  url.searchParams.set("limit", limit.toString());
11579
11535
  if (viewerFid !== null) url.searchParams.set("viewer_fid", viewerFid.toString());
11580
11536
  if (cursor) url.searchParams.set("cursor", cursor);
11581
- _context9.prev = 10;
11582
- _context9.next = 13;
11537
+ _context8.prev = 10;
11538
+ _context8.next = 13;
11583
11539
  return fetch(url.toString(), {
11584
11540
  headers: {
11585
11541
  "x-api-key": API_KEY,
@@ -11588,27 +11544,27 @@ function _typeof(o) {
11588
11544
  });
11589
11545
 
11590
11546
  case 13:
11591
- response = _context9.sent;
11547
+ response = _context8.sent;
11592
11548
  if (response.ok) {
11593
- _context9.next = 16;
11549
+ _context8.next = 16;
11594
11550
  break;
11595
11551
  }
11596
11552
  throw new Error("HTTP ".concat(response.status));
11597
11553
 
11598
11554
  case 16:
11599
- _context9.next = 18;
11555
+ _context8.next = 18;
11600
11556
  return response.json();
11601
11557
 
11602
11558
  case 18:
11603
- json = _context9.sent;
11559
+ json = _context8.sent;
11604
11560
  if (json !== null && json !== void 0 && (_json$users = json.users) !== null && _json$users !== void 0 && _json$users.length) {
11605
- _context9.next = 21;
11561
+ _context8.next = 21;
11606
11562
  break;
11607
11563
  }
11608
- return _context9.abrupt("return", []);
11564
+ return _context8.abrupt("return", []);
11609
11565
 
11610
11566
  case 21:
11611
- return _context9.abrupt("return", json.users.map((function(_ref3) {
11567
+ return _context8.abrupt("return", json.users.map((function(_ref3) {
11612
11568
  var _user$profile, _user$profile2;
11613
11569
  var user = _ref3.user;
11614
11570
  return {
@@ -11621,16 +11577,16 @@ function _typeof(o) {
11621
11577
  })));
11622
11578
 
11623
11579
  case 24:
11624
- _context9.prev = 24;
11625
- _context9.t0 = _context9["catch"](10);
11626
- console.error("NEYNAR_FETCH_FOLLOWERS error:", _context9.t0);
11627
- return _context9.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11580
+ _context8.prev = 24;
11581
+ _context8.t0 = _context8["catch"](10);
11582
+ console.error("NEYNAR_FETCH_FOLLOWERS error:", _context8.t0);
11583
+ return _context8.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11628
11584
 
11629
11585
  case 28:
11630
11586
  case "end":
11631
- return _context9.stop();
11587
+ return _context8.stop();
11632
11588
  }
11633
- }), _callee9, null, [ [ 10, 24 ] ]);
11589
+ }), _callee8, null, [ [ 10, 24 ] ]);
11634
11590
  })));
11635
11591
  return _NEYNAR.apply(this, arguments);
11636
11592
  }
@@ -11638,28 +11594,28 @@ function _typeof(o) {
11638
11594
  return _GNOSISPAY.apply(this, arguments);
11639
11595
  }
11640
11596
  function _GNOSISPAY() {
11641
- _GNOSISPAY = _asyncToGenerator(_regeneratorRuntime().mark((function _callee0() {
11642
- var apiKeyKey, API_KEY, _argsToArray11, _argsToArray12, cardId, startDate, endDate, _argsToArray12$, limit, _argsToArray12$2, offset, url, res, json, _args0 = arguments;
11643
- return _regeneratorRuntime().wrap((function _callee0$(_context0) {
11644
- while (1) switch (_context0.prev = _context0.next) {
11597
+ _GNOSISPAY = _asyncToGenerator(_regeneratorRuntime().mark((function _callee9() {
11598
+ var apiKeyKey, API_KEY, _argsToArray11, _argsToArray12, cardId, startDate, endDate, _argsToArray12$, limit, _argsToArray12$2, offset, url, res, json, _args9 = arguments;
11599
+ return _regeneratorRuntime().wrap((function _callee9$(_context9) {
11600
+ while (1) switch (_context9.prev = _context9.next) {
11645
11601
  case 0:
11646
11602
  apiKeyKey = SERVICE_API_KEY.GnosisPay;
11647
11603
  API_KEY = window.localStorage.getItem(apiKeyKey);
11648
11604
  if (API_KEY) {
11649
- _context0.next = 4;
11605
+ _context9.next = 4;
11650
11606
  break;
11651
11607
  }
11652
- return _context0.abrupt("return", "".concat(apiKeyKey).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
11608
+ return _context9.abrupt("return", "".concat(apiKeyKey).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
11653
11609
 
11654
11610
  case 4:
11655
11611
  if (cardId) {
11656
- _context0.next = 6;
11612
+ _context9.next = 6;
11657
11613
  break;
11658
11614
  }
11659
- return _context0.abrupt("return", "".concat(apiKeyKey).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
11615
+ return _context9.abrupt("return", "".concat(apiKeyKey).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
11660
11616
 
11661
11617
  case 6:
11662
- _argsToArray11 = argsToArray(_args0), _argsToArray12 = _slicedToArray(_argsToArray11, 5),
11618
+ _argsToArray11 = argsToArray(_args9), _argsToArray12 = _slicedToArray(_argsToArray11, 5),
11663
11619
  cardId = _argsToArray12[0], startDate = _argsToArray12[1], endDate = _argsToArray12[2],
11664
11620
  _argsToArray12$ = _argsToArray12[3], limit = _argsToArray12$ === void 0 ? 20 : _argsToArray12$,
11665
11621
  _argsToArray12$2 = _argsToArray12[4], offset = _argsToArray12$2 === void 0 ? 0 : _argsToArray12$2;
@@ -11672,8 +11628,8 @@ function _typeof(o) {
11672
11628
  if (!isNaN(toTimestamp(endDate))) {
11673
11629
  url.searchParams.set("endDate", new Date(endDate * 1e3).toISOString());
11674
11630
  }
11675
- _context0.prev = 12;
11676
- _context0.next = 15;
11631
+ _context9.prev = 12;
11632
+ _context9.next = 15;
11677
11633
  return fetch(url.toString(), {
11678
11634
  headers: {
11679
11635
  Authorization: "Bearer ".concat(API_KEY),
@@ -11682,27 +11638,27 @@ function _typeof(o) {
11682
11638
  });
11683
11639
 
11684
11640
  case 15:
11685
- res = _context0.sent;
11641
+ res = _context9.sent;
11686
11642
  if (res.ok) {
11687
- _context0.next = 18;
11643
+ _context9.next = 18;
11688
11644
  break;
11689
11645
  }
11690
11646
  throw new Error("HTTP error! Status: ".concat(res.status));
11691
11647
 
11692
11648
  case 18:
11693
- _context0.next = 20;
11649
+ _context9.next = 20;
11694
11650
  return res.json();
11695
11651
 
11696
11652
  case 20:
11697
- json = _context0.sent;
11653
+ json = _context9.sent;
11698
11654
  if (Array.isArray(json)) {
11699
- _context0.next = 23;
11655
+ _context9.next = 23;
11700
11656
  break;
11701
11657
  }
11702
- return _context0.abrupt("return", []);
11658
+ return _context9.abrupt("return", []);
11703
11659
 
11704
11660
  case 23:
11705
- return _context0.abrupt("return", json.map((function(tx) {
11661
+ return _context9.abrupt("return", json.map((function(tx) {
11706
11662
  return {
11707
11663
  createdAt: tx.createdAt,
11708
11664
  clearedAt: tx.clearedAt,
@@ -11720,16 +11676,16 @@ function _typeof(o) {
11720
11676
  })));
11721
11677
 
11722
11678
  case 26:
11723
- _context0.prev = 26;
11724
- _context0.t0 = _context0["catch"](12);
11725
- console.error("GNOSISPAY_CARD_TXNS error:", _context0.t0);
11726
- return _context0.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11679
+ _context9.prev = 26;
11680
+ _context9.t0 = _context9["catch"](12);
11681
+ console.error("GNOSISPAY_CARD_TXNS error:", _context9.t0);
11682
+ return _context9.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11727
11683
 
11728
11684
  case 30:
11729
11685
  case "end":
11730
- return _context0.stop();
11686
+ return _context9.stop();
11731
11687
  }
11732
- }), _callee0, null, [ [ 12, 26 ] ]);
11688
+ }), _callee9, null, [ [ 12, 26 ] ]);
11733
11689
  })));
11734
11690
  return _GNOSISPAY.apply(this, arguments);
11735
11691
  }
@@ -11737,16 +11693,16 @@ function _typeof(o) {
11737
11693
  return _ETHERSCAN.apply(this, arguments);
11738
11694
  }
11739
11695
  function _ETHERSCAN() {
11740
- _ETHERSCAN = _asyncToGenerator(_regeneratorRuntime().mark((function _callee1() {
11741
- var _argsToArray13, _argsToArray14, type, chain, address, startDate, endDate, page, limit, _args1 = arguments;
11742
- return _regeneratorRuntime().wrap((function _callee1$(_context1) {
11743
- while (1) switch (_context1.prev = _context1.next) {
11696
+ _ETHERSCAN = _asyncToGenerator(_regeneratorRuntime().mark((function _callee0() {
11697
+ var _argsToArray13, _argsToArray14, type, chain, address, startDate, endDate, page, limit, _args0 = arguments;
11698
+ return _regeneratorRuntime().wrap((function _callee0$(_context0) {
11699
+ while (1) switch (_context0.prev = _context0.next) {
11744
11700
  case 0:
11745
- _argsToArray13 = argsToArray(_args1), _argsToArray14 = _slicedToArray(_argsToArray13, 7),
11701
+ _argsToArray13 = argsToArray(_args0), _argsToArray14 = _slicedToArray(_argsToArray13, 7),
11746
11702
  type = _argsToArray14[0], chain = _argsToArray14[1], address = _argsToArray14[2],
11747
11703
  startDate = _argsToArray14[3], endDate = _argsToArray14[4], page = _argsToArray14[5],
11748
11704
  limit = _argsToArray14[6];
11749
- return _context1.abrupt("return", handleScanRequest({
11705
+ return _context0.abrupt("return", handleScanRequest({
11750
11706
  scanKey: SERVICE_API_KEY.Etherscan,
11751
11707
  baseUrl: "https://api.etherscan.io/v2/api",
11752
11708
  type: type,
@@ -11760,9 +11716,9 @@ function _typeof(o) {
11760
11716
 
11761
11717
  case 2:
11762
11718
  case "end":
11763
- return _context1.stop();
11719
+ return _context0.stop();
11764
11720
  }
11765
- }), _callee1);
11721
+ }), _callee0);
11766
11722
  })));
11767
11723
  return _ETHERSCAN.apply(this, arguments);
11768
11724
  }
@@ -11770,17 +11726,17 @@ function _typeof(o) {
11770
11726
  return _COINGECKO.apply(this, arguments);
11771
11727
  }
11772
11728
  function _COINGECKO() {
11773
- _COINGECKO = _asyncToGenerator(_regeneratorRuntime().mark((function _callee10() {
11774
- var API_KEY, headers, url, _argsToArray15, _argsToArray16, category, param1, param2, _argsToArray16$, page, _argsToArray16$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, _args10 = arguments;
11775
- return _regeneratorRuntime().wrap((function _callee10$(_context10) {
11776
- while (1) switch (_context10.prev = _context10.next) {
11729
+ _COINGECKO = _asyncToGenerator(_regeneratorRuntime().mark((function _callee1() {
11730
+ var API_KEY, headers, url, _argsToArray15, _argsToArray16, category, param1, param2, _argsToArray16$, page, _argsToArray16$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
+ return _regeneratorRuntime().wrap((function _callee1$(_context1) {
11732
+ while (1) switch (_context1.prev = _context1.next) {
11777
11733
  case 0:
11778
11734
  API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Coingecko);
11779
11735
  if (API_KEY) {
11780
- _context10.next = 3;
11736
+ _context1.next = 3;
11781
11737
  break;
11782
11738
  }
11783
- return _context10.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
11739
+ return _context1.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
11784
11740
 
11785
11741
  case 3:
11786
11742
  headers = {
@@ -11788,27 +11744,27 @@ function _typeof(o) {
11788
11744
  "x-cg-demo-api-key": API_KEY
11789
11745
  };
11790
11746
  url = "";
11791
- _argsToArray15 = argsToArray(_args10), _argsToArray16 = _slicedToArray(_argsToArray15, 5),
11747
+ _argsToArray15 = argsToArray(_args1), _argsToArray16 = _slicedToArray(_argsToArray15, 5),
11792
11748
  category = _argsToArray16[0], param1 = _argsToArray16[1], param2 = _argsToArray16[2],
11793
11749
  _argsToArray16$ = _argsToArray16[3], page = _argsToArray16$ === void 0 ? 1 : _argsToArray16$,
11794
11750
  _argsToArray16$2 = _argsToArray16[4], perPage = _argsToArray16$2 === void 0 ? 2 : _argsToArray16$2;
11795
11751
  lowerCategory = (category || "").toLowerCase();
11796
- _context10.t0 = lowerCategory;
11797
- _context10.next = _context10.t0 === "price" ? 10 : _context10.t0 === "market" ? 16 : _context10.t0 === "stablecoins" ? 26 : _context10.t0 === "derivatives" ? 30 : 33;
11752
+ _context1.t0 = lowerCategory;
11753
+ _context1.next = _context1.t0 === "price" ? 10 : _context1.t0 === "market" ? 16 : _context1.t0 === "stablecoins" ? 26 : _context1.t0 === "derivatives" ? 30 : 33;
11798
11754
  break;
11799
11755
 
11800
11756
  case 10:
11801
11757
  token = param1;
11802
11758
  vsCurrencies = param2;
11803
11759
  if (!(!token || !vsCurrencies)) {
11804
- _context10.next = 14;
11760
+ _context1.next = 14;
11805
11761
  break;
11806
11762
  }
11807
- return _context10.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
11763
+ return _context1.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
11808
11764
 
11809
11765
  case 14:
11810
11766
  url = "https://api.coingecko.com/api/v3/simple/price?vs_currencies=".concat(vsCurrencies, "&ids=").concat(token);
11811
- return _context10.abrupt("break", 34);
11767
+ return _context1.abrupt("break", 34);
11812
11768
 
11813
11769
  case 16:
11814
11770
  ecosystemMap = {
@@ -11827,21 +11783,21 @@ function _typeof(o) {
11827
11783
  trend = param2 ? "&price_change_percentage=".concat(param2) : "";
11828
11784
  url = "https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&include_tokens=top&page=".concat(page, "&per_page=").concat(perPage);
11829
11785
  if (!(key && !categoryVal)) {
11830
- _context10.next = 23;
11786
+ _context1.next = 23;
11831
11787
  break;
11832
11788
  }
11833
- return _context10.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
11789
+ return _context1.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
11834
11790
 
11835
11791
  case 23:
11836
11792
  if (categoryVal) url += "&category=".concat(categoryVal);
11837
11793
  if (trend) url += trend;
11838
- return _context10.abrupt("break", 34);
11794
+ return _context1.abrupt("break", 34);
11839
11795
 
11840
11796
  case 26:
11841
11797
  _category = !param1 || param1.toLowerCase() === "all" ? "stablecoins" : param1.toLowerCase();
11842
11798
  _trend = param2 ? "&price_change_percentage=".concat(param2) : "";
11843
11799
  url = "https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&category=".concat(_category, "&order=market_cap_desc&page=").concat(page, "&per_page=").concat(perPage).concat(_trend);
11844
- return _context10.abrupt("break", 34);
11800
+ return _context1.abrupt("break", 34);
11845
11801
 
11846
11802
  case 30:
11847
11803
  exchange = param1;
@@ -11850,47 +11806,47 @@ function _typeof(o) {
11850
11806
  } else {
11851
11807
  url = "https://api.coingecko.com/api/v3/derivatives?page=".concat(page, "&per_page=").concat(perPage);
11852
11808
  }
11853
- return _context10.abrupt("break", 34);
11809
+ return _context1.abrupt("break", 34);
11854
11810
 
11855
11811
  case 33:
11856
- return _context10.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.INVALID_PARAMS));
11812
+ return _context1.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.INVALID_PARAMS));
11857
11813
 
11858
11814
  case 34:
11859
- _context10.prev = 34;
11860
- _context10.next = 37;
11815
+ _context1.prev = 34;
11816
+ _context1.next = 37;
11861
11817
  return fetch(url, {
11862
11818
  method: "GET",
11863
11819
  headers: headers
11864
11820
  });
11865
11821
 
11866
11822
  case 37:
11867
- response = _context10.sent;
11868
- _context10.next = 40;
11823
+ response = _context1.sent;
11824
+ _context1.next = 40;
11869
11825
  return response.json();
11870
11826
 
11871
11827
  case 40:
11872
- json = _context10.sent;
11828
+ json = _context1.sent;
11873
11829
  if (response.ok) {
11874
- _context10.next = 47;
11830
+ _context1.next = 47;
11875
11831
  break;
11876
11832
  }
11877
11833
  message = (json === null || json === void 0 || (_json$status = json.status) === null || _json$status === void 0 ? void 0 : _json$status.error_message) || "";
11878
11834
  if (!message.includes("API Key Missing")) {
11879
- _context10.next = 45;
11835
+ _context1.next = 45;
11880
11836
  break;
11881
11837
  }
11882
- return _context10.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.INVALID_API_KEY));
11838
+ return _context1.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.INVALID_API_KEY));
11883
11839
 
11884
11840
  case 45:
11885
11841
  if (!(response.status === 429)) {
11886
- _context10.next = 47;
11842
+ _context1.next = 47;
11887
11843
  break;
11888
11844
  }
11889
- return _context10.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.RATE_LIMIT));
11845
+ return _context1.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.RATE_LIMIT));
11890
11846
 
11891
11847
  case 47:
11892
11848
  if (!(lowerCategory === "price")) {
11893
- _context10.next = 51;
11849
+ _context1.next = 51;
11894
11850
  break;
11895
11851
  }
11896
11852
  output = {};
@@ -11904,11 +11860,11 @@ function _typeof(o) {
11904
11860
  output[_key2] = _value6;
11905
11861
  }
11906
11862
  }
11907
- return _context10.abrupt("return", [ output ]);
11863
+ return _context1.abrupt("return", [ output ]);
11908
11864
 
11909
11865
  case 51:
11910
11866
  flatArray = Array.isArray(json) ? json : [ json ];
11911
- return _context10.abrupt("return", flatArray.map((function(item) {
11867
+ return _context1.abrupt("return", flatArray.map((function(item) {
11912
11868
  var flat = {};
11913
11869
  for (var _i13 = 0, _Object$entries4 = Object.entries(item); _i13 < _Object$entries4.length; _i13++) {
11914
11870
  var _Object$entries4$_i = _slicedToArray(_Object$entries4[_i13], 2), _key3 = _Object$entries4$_i[0], _value7 = _Object$entries4$_i[1];
@@ -11920,16 +11876,16 @@ function _typeof(o) {
11920
11876
  })));
11921
11877
 
11922
11878
  case 55:
11923
- _context10.prev = 55;
11924
- _context10.t1 = _context10["catch"](34);
11925
- console.error(_context10.t1);
11926
- return _context10.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11879
+ _context1.prev = 55;
11880
+ _context1.t1 = _context1["catch"](34);
11881
+ console.error(_context1.t1);
11882
+ return _context1.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11927
11883
 
11928
11884
  case 59:
11929
11885
  case "end":
11930
- return _context10.stop();
11886
+ return _context1.stop();
11931
11887
  }
11932
- }), _callee10, null, [ [ 34, 55 ] ]);
11888
+ }), _callee1, null, [ [ 34, 55 ] ]);
11933
11889
  })));
11934
11890
  return _COINGECKO.apply(this, arguments);
11935
11891
  }
@@ -11937,94 +11893,94 @@ function _typeof(o) {
11937
11893
  return _EOA.apply(this, arguments);
11938
11894
  }
11939
11895
  function _EOA() {
11940
- _EOA = _asyncToGenerator(_regeneratorRuntime().mark((function _callee12() {
11941
- var _argsToArray17, _argsToArray18, addresses, category, chains, startTime, endTime, _argsToArray18$, page, _argsToArray18$2, offset, someError, API_KEY, INPUTS, CHAINS, out, ADDRESS_MAP, _iterator, _step, input, resolved, ADDRS, _iterator2, _step2, _loop, _ret, fetchJSON, _fetchJSON, _args14 = arguments;
11942
- return _regeneratorRuntime().wrap((function _callee12$(_context14) {
11943
- while (1) switch (_context14.prev = _context14.next) {
11896
+ _EOA = _asyncToGenerator(_regeneratorRuntime().mark((function _callee11() {
11897
+ var _argsToArray17, _argsToArray18, addresses, category, chains, startTime, endTime, _argsToArray18$, page, _argsToArray18$2, offset, someError, API_KEY, INPUTS, CHAINS, out, ADDRESS_MAP, _iterator, _step, input, resolved, ADDRS, _iterator2, _step2, _loop, _ret, fetchJSON, _fetchJSON, _args13 = arguments;
11898
+ return _regeneratorRuntime().wrap((function _callee11$(_context13) {
11899
+ while (1) switch (_context13.prev = _context13.next) {
11944
11900
  case 0:
11945
11901
  _fetchJSON = function _fetchJSON3() {
11946
- _fetchJSON = _asyncToGenerator(_regeneratorRuntime().mark((function _callee11(url) {
11902
+ _fetchJSON = _asyncToGenerator(_regeneratorRuntime().mark((function _callee10(url) {
11947
11903
  var _json$result3, _json$result3$include, _json$result4, _json$result4$include, res, json;
11948
- return _regeneratorRuntime().wrap((function _callee11$(_context13) {
11949
- while (1) switch (_context13.prev = _context13.next) {
11904
+ return _regeneratorRuntime().wrap((function _callee10$(_context12) {
11905
+ while (1) switch (_context12.prev = _context12.next) {
11950
11906
  case 0:
11951
- _context13.prev = 0;
11952
- _context13.next = 3;
11907
+ _context12.prev = 0;
11908
+ _context12.next = 3;
11953
11909
  return fetch(url);
11954
11910
 
11955
11911
  case 3:
11956
- res = _context13.sent;
11912
+ res = _context12.sent;
11957
11913
  if (res.ok) {
11958
- _context13.next = 6;
11914
+ _context12.next = 6;
11959
11915
  break;
11960
11916
  }
11961
- return _context13.abrupt("return", "HTTP_".concat(res.status));
11917
+ return _context12.abrupt("return", "HTTP_".concat(res.status));
11962
11918
 
11963
11919
  case 6:
11964
- _context13.next = 8;
11920
+ _context12.next = 8;
11965
11921
  return res.json();
11966
11922
 
11967
11923
  case 8:
11968
- json = _context13.sent;
11924
+ json = _context12.sent;
11969
11925
  if (!((_json$result3 = json.result) !== null && _json$result3 !== void 0 && (_json$result3$include = _json$result3.includes) !== null && _json$result3$include !== void 0 && _json$result3$include.call(_json$result3, "Invalid API Key"))) {
11970
- _context13.next = 11;
11926
+ _context12.next = 11;
11971
11927
  break;
11972
11928
  }
11973
- return _context13.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.INVALID_API_KEY));
11929
+ return _context12.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.INVALID_API_KEY));
11974
11930
 
11975
11931
  case 11:
11976
11932
  if (!((_json$result4 = json.result) !== null && _json$result4 !== void 0 && (_json$result4$include = _json$result4.includes) !== null && _json$result4$include !== void 0 && _json$result4$include.call(_json$result4, "Max rate limit reached"))) {
11977
- _context13.next = 13;
11933
+ _context12.next = 13;
11978
11934
  break;
11979
11935
  }
11980
- return _context13.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.RATE_LIMIT));
11936
+ return _context12.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.RATE_LIMIT));
11981
11937
 
11982
11938
  case 13:
11983
11939
  if (!(json.status === "0" && json.message !== "No transactions found")) {
11984
- _context13.next = 15;
11940
+ _context12.next = 15;
11985
11941
  break;
11986
11942
  }
11987
- return _context13.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11943
+ return _context12.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11988
11944
 
11989
11945
  case 15:
11990
- return _context13.abrupt("return", json.result);
11946
+ return _context12.abrupt("return", json.result);
11991
11947
 
11992
11948
  case 18:
11993
- _context13.prev = 18;
11994
- _context13.t0 = _context13["catch"](0);
11995
- return _context13.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11949
+ _context12.prev = 18;
11950
+ _context12.t0 = _context12["catch"](0);
11951
+ return _context12.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11996
11952
 
11997
11953
  case 21:
11998
11954
  case "end":
11999
- return _context13.stop();
11955
+ return _context12.stop();
12000
11956
  }
12001
- }), _callee11, null, [ [ 0, 18 ] ]);
11957
+ }), _callee10, null, [ [ 0, 18 ] ]);
12002
11958
  })));
12003
11959
  return _fetchJSON.apply(this, arguments);
12004
11960
  };
12005
11961
  fetchJSON = function _fetchJSON2(_x8) {
12006
11962
  return _fetchJSON.apply(this, arguments);
12007
11963
  };
12008
- console.log("callllllling EOOOOOOOAAAAAAA");
12009
- _argsToArray17 = argsToArray(_args14), _argsToArray18 = _slicedToArray(_argsToArray17, 7),
11964
+ console.log("EOA gettting calllled");
11965
+ _argsToArray17 = argsToArray(_args13), _argsToArray18 = _slicedToArray(_argsToArray17, 7),
12010
11966
  addresses = _argsToArray18[0], category = _argsToArray18[1], chains = _argsToArray18[2],
12011
11967
  startTime = _argsToArray18[3], endTime = _argsToArray18[4], _argsToArray18$ = _argsToArray18[5],
12012
11968
  page = _argsToArray18$ === void 0 ? 1 : _argsToArray18$, _argsToArray18$2 = _argsToArray18[6],
12013
11969
  offset = _argsToArray18$2 === void 0 ? 10 : _argsToArray18$2;
12014
11970
  someError = anyError(addresses, category, chains, startTime, endTime, page, offset);
12015
11971
  if (!someError) {
12016
- _context14.next = 7;
11972
+ _context13.next = 7;
12017
11973
  break;
12018
11974
  }
12019
- return _context14.abrupt("return", someError);
11975
+ return _context13.abrupt("return", someError);
12020
11976
 
12021
11977
  case 7:
12022
11978
  API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Etherscan);
12023
11979
  if (API_KEY) {
12024
- _context14.next = 10;
11980
+ _context13.next = 10;
12025
11981
  break;
12026
11982
  }
12027
- return _context14.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
11983
+ return _context13.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
12028
11984
 
12029
11985
  case 10:
12030
11986
  if (typeof addresses === "string") {
@@ -12040,101 +11996,101 @@ function _typeof(o) {
12040
11996
  out = [];
12041
11997
  ADDRESS_MAP = {};
12042
11998
  _iterator = _createForOfIteratorHelper(INPUTS);
12043
- _context14.prev = 15;
11999
+ _context13.prev = 15;
12044
12000
  _iterator.s();
12045
12001
 
12046
12002
  case 17:
12047
12003
  if ((_step = _iterator.n()).done) {
12048
- _context14.next = 35;
12004
+ _context13.next = 35;
12049
12005
  break;
12050
12006
  }
12051
12007
  input = _step.value;
12052
12008
  if (!isAddress(input)) {
12053
- _context14.next = 23;
12009
+ _context13.next = 23;
12054
12010
  break;
12055
12011
  }
12056
12012
  ADDRESS_MAP[input.toLowerCase()] = null;
12057
- _context14.next = 33;
12013
+ _context13.next = 33;
12058
12014
  break;
12059
12015
 
12060
12016
  case 23:
12061
- _context14.prev = 23;
12062
- _context14.next = 26;
12017
+ _context13.prev = 23;
12018
+ _context13.next = 26;
12063
12019
  return fromEnsNameToAddress(input);
12064
12020
 
12065
12021
  case 26:
12066
- resolved = _context14.sent;
12022
+ resolved = _context13.sent;
12067
12023
  if (resolved) ADDRESS_MAP[resolved.toLowerCase()] = input;
12068
- _context14.next = 33;
12024
+ _context13.next = 33;
12069
12025
  break;
12070
12026
 
12071
12027
  case 30:
12072
- _context14.prev = 30;
12073
- _context14.t0 = _context14["catch"](23);
12074
- return _context14.abrupt("return", "".concat(input).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
12028
+ _context13.prev = 30;
12029
+ _context13.t0 = _context13["catch"](23);
12030
+ return _context13.abrupt("return", "".concat(input).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
12075
12031
 
12076
12032
  case 33:
12077
- _context14.next = 17;
12033
+ _context13.next = 17;
12078
12034
  break;
12079
12035
 
12080
12036
  case 35:
12081
- _context14.next = 40;
12037
+ _context13.next = 40;
12082
12038
  break;
12083
12039
 
12084
12040
  case 37:
12085
- _context14.prev = 37;
12086
- _context14.t1 = _context14["catch"](15);
12087
- _iterator.e(_context14.t1);
12041
+ _context13.prev = 37;
12042
+ _context13.t1 = _context13["catch"](15);
12043
+ _iterator.e(_context13.t1);
12088
12044
 
12089
12045
  case 40:
12090
- _context14.prev = 40;
12046
+ _context13.prev = 40;
12091
12047
  _iterator.f();
12092
- return _context14.finish(40);
12048
+ return _context13.finish(40);
12093
12049
 
12094
12050
  case 43:
12095
12051
  ADDRS = Object.keys(ADDRESS_MAP);
12096
12052
  _iterator2 = _createForOfIteratorHelper(CHAINS);
12097
- _context14.prev = 45;
12053
+ _context13.prev = 45;
12098
12054
  _loop = _regeneratorRuntime().mark((function _loop() {
12099
12055
  var chain, chainId, i, slice, action, url, _data, startBlock, endBlock, _loop2, _ret2, _i14, _ADDRS;
12100
- return _regeneratorRuntime().wrap((function _loop$(_context12) {
12101
- while (1) switch (_context12.prev = _context12.next) {
12056
+ return _regeneratorRuntime().wrap((function _loop$(_context11) {
12057
+ while (1) switch (_context11.prev = _context11.next) {
12102
12058
  case 0:
12103
12059
  chain = _step2.value;
12104
12060
  chainId = CHAIN_ID_MAP[chain];
12105
12061
  if (chainId) {
12106
- _context12.next = 4;
12062
+ _context11.next = 4;
12107
12063
  break;
12108
12064
  }
12109
- return _context12.abrupt("return", {
12065
+ return _context11.abrupt("return", {
12110
12066
  v: ERROR_MESSAGES_FLAG.UNSUPPORTED_CHAIN
12111
12067
  });
12112
12068
 
12113
12069
  case 4:
12114
12070
  if (!(category === "balance")) {
12115
- _context12.next = 20;
12071
+ _context11.next = 20;
12116
12072
  break;
12117
12073
  }
12118
12074
  i = 0;
12119
12075
 
12120
12076
  case 6:
12121
12077
  if (!(i < ADDRS.length)) {
12122
- _context12.next = 19;
12078
+ _context11.next = 19;
12123
12079
  break;
12124
12080
  }
12125
12081
  slice = ADDRS.slice(i, i + 20).join(",");
12126
12082
  action = ADDRS.length > 1 ? "balancemulti" : "balance";
12127
12083
  url = "https://api.etherscan.io/v2/api?chainid=".concat(chainId) + "&module=account&action=".concat(action, "&address=").concat(slice) + "&tag=latest&apikey=".concat(API_KEY);
12128
- _context12.next = 12;
12084
+ _context11.next = 12;
12129
12085
  return fetchJSON(url);
12130
12086
 
12131
12087
  case 12:
12132
- _data = _context12.sent;
12088
+ _data = _context11.sent;
12133
12089
  if (!(typeof _data === "string")) {
12134
- _context12.next = 15;
12090
+ _context11.next = 15;
12135
12091
  break;
12136
12092
  }
12137
- return _context12.abrupt("return", {
12093
+ return _context11.abrupt("return", {
12138
12094
  v: _data
12139
12095
  });
12140
12096
 
@@ -12149,44 +12105,44 @@ function _typeof(o) {
12149
12105
 
12150
12106
  case 16:
12151
12107
  i += 20;
12152
- _context12.next = 6;
12108
+ _context11.next = 6;
12153
12109
  break;
12154
12110
 
12155
12111
  case 19:
12156
- return _context12.abrupt("return", 0);
12112
+ return _context11.abrupt("return", 0);
12157
12113
 
12158
12114
  case 20:
12159
12115
  if (!(category === "txns")) {
12160
- _context12.next = 38;
12116
+ _context11.next = 38;
12161
12117
  break;
12162
12118
  }
12163
- _context12.next = 23;
12119
+ _context11.next = 23;
12164
12120
  return fromTimeStampToBlock(toTimestamp(startTime), chain, API_KEY);
12165
12121
 
12166
12122
  case 23:
12167
- startBlock = _context12.sent;
12168
- _context12.next = 26;
12123
+ startBlock = _context11.sent;
12124
+ _context11.next = 26;
12169
12125
  return fromTimeStampToBlock(toTimestamp(endTime), chain, API_KEY);
12170
12126
 
12171
12127
  case 26:
12172
- endBlock = _context12.sent;
12128
+ endBlock = _context11.sent;
12173
12129
  _loop2 = _regeneratorRuntime().mark((function _loop2() {
12174
12130
  var addr, url, data;
12175
- return _regeneratorRuntime().wrap((function _loop2$(_context11) {
12176
- while (1) switch (_context11.prev = _context11.next) {
12131
+ return _regeneratorRuntime().wrap((function _loop2$(_context10) {
12132
+ while (1) switch (_context10.prev = _context10.next) {
12177
12133
  case 0:
12178
12134
  addr = _ADDRS[_i14];
12179
12135
  url = "https://api.etherscan.io/v2/api?chainid=".concat(chainId) + "&module=account&action=txlist&address=".concat(addr) + "&startblock=".concat(startBlock, "&endblock=").concat(endBlock) + "&page=".concat(page, "&offset=").concat(offset, "&sort=asc&apikey=").concat(API_KEY);
12180
- _context11.next = 4;
12136
+ _context10.next = 4;
12181
12137
  return fetchJSON(url);
12182
12138
 
12183
12139
  case 4:
12184
- data = _context11.sent;
12140
+ data = _context10.sent;
12185
12141
  if (!(typeof data === "string")) {
12186
- _context11.next = 7;
12142
+ _context10.next = 7;
12187
12143
  break;
12188
12144
  }
12189
- return _context11.abrupt("return", {
12145
+ return _context10.abrupt("return", {
12190
12146
  v: {
12191
12147
  v: data
12192
12148
  }
@@ -12203,7 +12159,7 @@ function _typeof(o) {
12203
12159
 
12204
12160
  case 8:
12205
12161
  case "end":
12206
- return _context11.stop();
12162
+ return _context10.stop();
12207
12163
  }
12208
12164
  }), _loop2);
12209
12165
  }));
@@ -12211,35 +12167,35 @@ function _typeof(o) {
12211
12167
 
12212
12168
  case 29:
12213
12169
  if (!(_i14 < _ADDRS.length)) {
12214
- _context12.next = 37;
12170
+ _context11.next = 37;
12215
12171
  break;
12216
12172
  }
12217
- return _context12.delegateYield(_loop2(), "t0", 31);
12173
+ return _context11.delegateYield(_loop2(), "t0", 31);
12218
12174
 
12219
12175
  case 31:
12220
- _ret2 = _context12.t0;
12176
+ _ret2 = _context11.t0;
12221
12177
  if (!_ret2) {
12222
- _context12.next = 34;
12178
+ _context11.next = 34;
12223
12179
  break;
12224
12180
  }
12225
- return _context12.abrupt("return", _ret2.v);
12181
+ return _context11.abrupt("return", _ret2.v);
12226
12182
 
12227
12183
  case 34:
12228
12184
  _i14++;
12229
- _context12.next = 29;
12185
+ _context11.next = 29;
12230
12186
  break;
12231
12187
 
12232
12188
  case 37:
12233
- return _context12.abrupt("return", 0);
12189
+ return _context11.abrupt("return", 0);
12234
12190
 
12235
12191
  case 38:
12236
- return _context12.abrupt("return", {
12192
+ return _context11.abrupt("return", {
12237
12193
  v: ERROR_MESSAGES_FLAG.INVALID_CATEGORY
12238
12194
  });
12239
12195
 
12240
12196
  case 39:
12241
12197
  case "end":
12242
- return _context12.stop();
12198
+ return _context11.stop();
12243
12199
  }
12244
12200
  }), _loop);
12245
12201
  }));
@@ -12247,52 +12203,52 @@ function _typeof(o) {
12247
12203
 
12248
12204
  case 48:
12249
12205
  if ((_step2 = _iterator2.n()).done) {
12250
- _context14.next = 57;
12206
+ _context13.next = 57;
12251
12207
  break;
12252
12208
  }
12253
- return _context14.delegateYield(_loop(), "t2", 50);
12209
+ return _context13.delegateYield(_loop(), "t2", 50);
12254
12210
 
12255
12211
  case 50:
12256
- _ret = _context14.t2;
12212
+ _ret = _context13.t2;
12257
12213
  if (!(_ret === 0)) {
12258
- _context14.next = 53;
12214
+ _context13.next = 53;
12259
12215
  break;
12260
12216
  }
12261
- return _context14.abrupt("continue", 55);
12217
+ return _context13.abrupt("continue", 55);
12262
12218
 
12263
12219
  case 53:
12264
12220
  if (!_ret) {
12265
- _context14.next = 55;
12221
+ _context13.next = 55;
12266
12222
  break;
12267
12223
  }
12268
- return _context14.abrupt("return", _ret.v);
12224
+ return _context13.abrupt("return", _ret.v);
12269
12225
 
12270
12226
  case 55:
12271
- _context14.next = 48;
12227
+ _context13.next = 48;
12272
12228
  break;
12273
12229
 
12274
12230
  case 57:
12275
- _context14.next = 62;
12231
+ _context13.next = 62;
12276
12232
  break;
12277
12233
 
12278
12234
  case 59:
12279
- _context14.prev = 59;
12280
- _context14.t3 = _context14["catch"](45);
12281
- _iterator2.e(_context14.t3);
12235
+ _context13.prev = 59;
12236
+ _context13.t3 = _context13["catch"](45);
12237
+ _iterator2.e(_context13.t3);
12282
12238
 
12283
12239
  case 62:
12284
- _context14.prev = 62;
12240
+ _context13.prev = 62;
12285
12241
  _iterator2.f();
12286
- return _context14.finish(62);
12242
+ return _context13.finish(62);
12287
12243
 
12288
12244
  case 65:
12289
- return _context14.abrupt("return", out);
12245
+ return _context13.abrupt("return", out);
12290
12246
 
12291
12247
  case 66:
12292
12248
  case "end":
12293
- return _context14.stop();
12249
+ return _context13.stop();
12294
12250
  }
12295
- }), _callee12, null, [ [ 15, 37, 40, 43 ], [ 23, 30 ], [ 45, 59, 62, 65 ] ]);
12251
+ }), _callee11, null, [ [ 15, 37, 40, 43 ], [ 23, 30 ], [ 45, 59, 62, 65 ] ]);
12296
12252
  })));
12297
12253
  return _EOA.apply(this, arguments);
12298
12254
  }
@@ -12300,11 +12256,11 @@ function _typeof(o) {
12300
12256
  return _FLVURL.apply(this, arguments);
12301
12257
  }
12302
12258
  function _FLVURL() {
12303
- _FLVURL = _asyncToGenerator(_regeneratorRuntime().mark((function _callee13(token, vs_currencies) {
12304
- return _regeneratorRuntime().wrap((function _callee13$(_context15) {
12305
- while (1) switch (_context15.prev = _context15.next) {
12259
+ _FLVURL = _asyncToGenerator(_regeneratorRuntime().mark((function _callee12(token, vs_currencies) {
12260
+ return _regeneratorRuntime().wrap((function _callee12$(_context14) {
12261
+ while (1) switch (_context14.prev = _context14.next) {
12306
12262
  case 0:
12307
- return _context15.abrupt("return", new Promise((function(resolve) {
12263
+ return _context14.abrupt("return", new Promise((function(resolve) {
12308
12264
  setTimeout((function() {
12309
12265
  resolve([ {
12310
12266
  Yoo: "gotcha"
@@ -12314,9 +12270,9 @@ function _typeof(o) {
12314
12270
 
12315
12271
  case 1:
12316
12272
  case "end":
12317
- return _context15.stop();
12273
+ return _context14.stop();
12318
12274
  }
12319
- }), _callee13);
12275
+ }), _callee12);
12320
12276
  })));
12321
12277
  return _FLVURL.apply(this, arguments);
12322
12278
  }
@@ -12324,72 +12280,72 @@ function _typeof(o) {
12324
12280
  return _SAFE.apply(this, arguments);
12325
12281
  }
12326
12282
  function _SAFE() {
12327
- _SAFE = _asyncToGenerator(_regeneratorRuntime().mark((function _callee14() {
12328
- var _argsToArray19, _argsToArray20, address, utility, chain, limit, offset, apiKey, chainIdentifier, url, response, json, _args16 = arguments;
12329
- return _regeneratorRuntime().wrap((function _callee14$(_context16) {
12330
- while (1) switch (_context16.prev = _context16.next) {
12283
+ _SAFE = _asyncToGenerator(_regeneratorRuntime().mark((function _callee13() {
12284
+ var _argsToArray19, _argsToArray20, address, utility, chain, limit, offset, apiKey, chainIdentifier, url, response, json, _args15 = arguments;
12285
+ return _regeneratorRuntime().wrap((function _callee13$(_context15) {
12286
+ while (1) switch (_context15.prev = _context15.next) {
12331
12287
  case 0:
12332
- _argsToArray19 = argsToArray(_args16), _argsToArray20 = _slicedToArray(_argsToArray19, 5),
12288
+ _argsToArray19 = argsToArray(_args15), _argsToArray20 = _slicedToArray(_argsToArray19, 5),
12333
12289
  address = _argsToArray20[0], utility = _argsToArray20[1], chain = _argsToArray20[2],
12334
12290
  limit = _argsToArray20[3], offset = _argsToArray20[4];
12335
12291
  if (!(typeof limit !== "number" || limit < 0)) {
12336
- _context16.next = 3;
12292
+ _context15.next = 3;
12337
12293
  break;
12338
12294
  }
12339
- return _context16.abrupt("return", "INVALID_LIMIT");
12295
+ return _context15.abrupt("return", "INVALID_LIMIT");
12340
12296
 
12341
12297
  case 3:
12342
12298
  if (!(typeof offset !== "number" || offset < 0)) {
12343
- _context16.next = 5;
12299
+ _context15.next = 5;
12344
12300
  break;
12345
12301
  }
12346
- return _context16.abrupt("return", "INVALID_OFFSET");
12302
+ return _context15.abrupt("return", "INVALID_OFFSET");
12347
12303
 
12348
12304
  case 5:
12349
12305
  if (!(utility !== "txns")) {
12350
- _context16.next = 7;
12306
+ _context15.next = 7;
12351
12307
  break;
12352
12308
  }
12353
- return _context16.abrupt("return", "UTILITY IS NOT SUPPORTED");
12309
+ return _context15.abrupt("return", "UTILITY IS NOT SUPPORTED");
12354
12310
 
12355
12311
  case 7:
12356
12312
  apiKey = window.localStorage.getItem(SERVICE_API_KEY.Safe);
12357
12313
  chainIdentifier = SAFE_CHAIN_MAP[chain];
12358
12314
  if (apiKey) {
12359
- _context16.next = 11;
12315
+ _context15.next = 11;
12360
12316
  break;
12361
12317
  }
12362
- return _context16.abrupt("return", "".concat(SERVICE_API_KEY.Safe, "_MISSING"));
12318
+ return _context15.abrupt("return", "".concat(SERVICE_API_KEY.Safe, "_MISSING"));
12363
12319
 
12364
12320
  case 11:
12365
12321
  if (chainIdentifier) {
12366
- _context16.next = 13;
12322
+ _context15.next = 13;
12367
12323
  break;
12368
12324
  }
12369
- return _context16.abrupt("return", "CHAIN IS NOT SUPPORTED");
12325
+ return _context15.abrupt("return", "CHAIN IS NOT SUPPORTED");
12370
12326
 
12371
12327
  case 13:
12372
12328
  if (isAddress(address)) {
12373
- _context16.next = 17;
12329
+ _context15.next = 17;
12374
12330
  break;
12375
12331
  }
12376
- _context16.next = 16;
12332
+ _context15.next = 16;
12377
12333
  return fromEnsNameToAddress(address);
12378
12334
 
12379
12335
  case 16:
12380
- address = _context16.sent;
12336
+ address = _context15.sent;
12381
12337
 
12382
12338
  case 17:
12383
12339
  if (address) {
12384
- _context16.next = 19;
12340
+ _context15.next = 19;
12385
12341
  break;
12386
12342
  }
12387
- return _context16.abrupt("return", "".concat(address).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
12343
+ return _context15.abrupt("return", "".concat(address).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
12388
12344
 
12389
12345
  case 19:
12390
12346
  url = "https://api.safe.global/tx-service/".concat(chainIdentifier, "/api/v2/safes/").concat(address, "/multisig-transactions?limit=").concat(limit, "&offset=").concat(offset);
12391
- _context16.prev = 20;
12392
- _context16.next = 23;
12347
+ _context15.prev = 20;
12348
+ _context15.next = 23;
12393
12349
  return fetch(url, {
12394
12350
  headers: {
12395
12351
  Authorization: "Bearer ".concat(apiKey)
@@ -12397,42 +12353,42 @@ function _typeof(o) {
12397
12353
  });
12398
12354
 
12399
12355
  case 23:
12400
- response = _context16.sent;
12356
+ response = _context15.sent;
12401
12357
  if (response.ok) {
12402
- _context16.next = 26;
12358
+ _context15.next = 26;
12403
12359
  break;
12404
12360
  }
12405
12361
  throw new Error("HTTP error! Status: ".concat(response.status));
12406
12362
 
12407
12363
  case 26:
12408
- _context16.next = 28;
12364
+ _context15.next = 28;
12409
12365
  return response.json();
12410
12366
 
12411
12367
  case 28:
12412
- json = _context16.sent;
12368
+ json = _context15.sent;
12413
12369
  if (Array.isArray(json.results)) {
12414
- _context16.next = 31;
12370
+ _context15.next = 31;
12415
12371
  break;
12416
12372
  }
12417
- return _context16.abrupt("return", "INVALID API RESPONSE");
12373
+ return _context15.abrupt("return", "INVALID API RESPONSE");
12418
12374
 
12419
12375
  case 31:
12420
- return _context16.abrupt("return", json.results.map((function(_ref4) {
12376
+ return _context15.abrupt("return", json.results.map((function(_ref4) {
12421
12377
  var confirmations = _ref4.confirmations, dataDecoded = _ref4.dataDecoded, rest = _objectWithoutProperties(_ref4, _excluded);
12422
12378
  return rest;
12423
12379
  })));
12424
12380
 
12425
12381
  case 34:
12426
- _context16.prev = 34;
12427
- _context16.t0 = _context16["catch"](20);
12428
- console.log(_context16.t0);
12429
- return _context16.abrupt("return", "ERROR IN FETCHING");
12382
+ _context15.prev = 34;
12383
+ _context15.t0 = _context15["catch"](20);
12384
+ console.log(_context15.t0);
12385
+ return _context15.abrupt("return", "ERROR IN FETCHING");
12430
12386
 
12431
12387
  case 38:
12432
12388
  case "end":
12433
- return _context16.stop();
12389
+ return _context15.stop();
12434
12390
  }
12435
- }), _callee14, null, [ [ 20, 34 ] ]);
12391
+ }), _callee13, null, [ [ 20, 34 ] ]);
12436
12392
  })));
12437
12393
  return _SAFE.apply(this, arguments);
12438
12394
  }
@@ -12795,7 +12751,6 @@ function _typeof(o) {
12795
12751
  exports.SUMIFS = SUMIFS;
12796
12752
  exports.SUMPRODUCT = SUMPRODUCT;
12797
12753
  exports.SUMSQ = SUMSQ;
12798
- exports.SUMTEST = SUMTEST;
12799
12754
  exports.SUMX2MY2 = SUMX2MY2;
12800
12755
  exports.SUMX2PY2 = SUMX2PY2;
12801
12756
  exports.SUMXMY2 = SUMXMY2;