@fileverse-dev/formulajs 4.4.11-mod-38-patch-2 → 4.4.11-mod-38-patch-4

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