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

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