@fileverse-dev/formulajs 4.4.11-mod-61 → 4.4.11-mod-61-patch-1

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-61 */
1
+ /* @fileverse-dev/formulajs v4.4.11-mod-61-patch-1 */
2
2
  var _excluded = [ "confirmations", "dataDecoded" ];
3
3
 
4
4
  function _objectWithoutProperties(e, t) {
@@ -11723,11 +11723,11 @@ function _typeof(o) {
11723
11723
  })));
11724
11724
  return _BLOCKSCOUT.apply(this, arguments);
11725
11725
  }
11726
- function GNOSIS() {
11727
- return _GNOSIS.apply(this, arguments);
11726
+ function BASE() {
11727
+ return _BASE.apply(this, arguments);
11728
11728
  }
11729
- function _GNOSIS() {
11730
- _GNOSIS = _asyncToGenerator(_regeneratorRuntime().mark((function _callee9() {
11729
+ function _BASE() {
11730
+ _BASE = _asyncToGenerator(_regeneratorRuntime().mark((function _callee9() {
11731
11731
  var _argsToArray1, _argsToArray10, type, chain, address, startDate, endDate, page, limit, _args9 = arguments;
11732
11732
  return _regeneratorRuntime().wrap((function _callee9$(_context9) {
11733
11733
  while (1) switch (_context9.prev = _context9.next) {
@@ -11737,8 +11737,8 @@ function _typeof(o) {
11737
11737
  startDate = _argsToArray10[3], endDate = _argsToArray10[4], page = _argsToArray10[5],
11738
11738
  limit = _argsToArray10[6];
11739
11739
  return _context9.abrupt("return", handleScanRequest({
11740
- scanKey: SERVICE_API_KEY.Gnosisscan,
11741
- baseUrl: "https://api.gnosisscan.io/api",
11740
+ scanKey: SERVICE_API_KEY.Basescan,
11741
+ baseUrl: "https://api.basescan.org/api",
11742
11742
  type: type,
11743
11743
  chain: chain,
11744
11744
  address: address,
@@ -11754,49 +11754,82 @@ function _typeof(o) {
11754
11754
  }
11755
11755
  }), _callee9);
11756
11756
  })));
11757
+ return _BASE.apply(this, arguments);
11758
+ }
11759
+ function GNOSIS() {
11760
+ return _GNOSIS.apply(this, arguments);
11761
+ }
11762
+ function _GNOSIS() {
11763
+ _GNOSIS = _asyncToGenerator(_regeneratorRuntime().mark((function _callee0() {
11764
+ var _argsToArray11, _argsToArray12, type, chain, address, startDate, endDate, page, limit, _args0 = arguments;
11765
+ return _regeneratorRuntime().wrap((function _callee0$(_context0) {
11766
+ while (1) switch (_context0.prev = _context0.next) {
11767
+ case 0:
11768
+ _argsToArray11 = argsToArray(_args0), _argsToArray12 = _slicedToArray(_argsToArray11, 7),
11769
+ type = _argsToArray12[0], chain = _argsToArray12[1], address = _argsToArray12[2],
11770
+ startDate = _argsToArray12[3], endDate = _argsToArray12[4], page = _argsToArray12[5],
11771
+ limit = _argsToArray12[6];
11772
+ return _context0.abrupt("return", handleScanRequest({
11773
+ scanKey: SERVICE_API_KEY.Gnosisscan,
11774
+ baseUrl: "https://api.gnosisscan.io/api",
11775
+ type: type,
11776
+ chain: chain,
11777
+ address: address,
11778
+ startDate: startDate,
11779
+ endDate: endDate,
11780
+ page: page,
11781
+ offset: limit
11782
+ }));
11783
+
11784
+ case 2:
11785
+ case "end":
11786
+ return _context0.stop();
11787
+ }
11788
+ }), _callee0);
11789
+ })));
11757
11790
  return _GNOSIS.apply(this, arguments);
11758
11791
  }
11759
11792
  function NEYNAR() {
11760
11793
  return _NEYNAR.apply(this, arguments);
11761
11794
  }
11762
11795
  function _NEYNAR() {
11763
- _NEYNAR = _asyncToGenerator(_regeneratorRuntime().mark((function _callee0() {
11764
- var _argsToArray11, _argsToArray12, username, API_KEY, fid, url, _json$users, response, json, _args0 = arguments;
11765
- return _regeneratorRuntime().wrap((function _callee0$(_context0) {
11766
- while (1) switch (_context0.prev = _context0.next) {
11796
+ _NEYNAR = _asyncToGenerator(_regeneratorRuntime().mark((function _callee1() {
11797
+ var _argsToArray13, _argsToArray14, username, API_KEY, fid, url, _json$users, response, json, _args1 = arguments;
11798
+ return _regeneratorRuntime().wrap((function _callee1$(_context1) {
11799
+ while (1) switch (_context1.prev = _context1.next) {
11767
11800
  case 0:
11768
- _argsToArray11 = argsToArray(_args0), _argsToArray12 = _slicedToArray(_argsToArray11, 1),
11769
- username = _argsToArray12[0];
11801
+ _argsToArray13 = argsToArray(_args1), _argsToArray14 = _slicedToArray(_argsToArray13, 1),
11802
+ username = _argsToArray14[0];
11770
11803
  API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Neynar);
11771
11804
  if (API_KEY) {
11772
- _context0.next = 4;
11805
+ _context1.next = 4;
11773
11806
  break;
11774
11807
  }
11775
- return _context0.abrupt("return", "".concat(SERVICE_API_KEY.Neynar).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
11808
+ return _context1.abrupt("return", "".concat(SERVICE_API_KEY.Neynar).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
11776
11809
 
11777
11810
  case 4:
11778
11811
  if (username) {
11779
- _context0.next = 6;
11812
+ _context1.next = 6;
11780
11813
  break;
11781
11814
  }
11782
- return _context0.abrupt("return", "".concat(SERVICE_API_KEY.Neynar).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
11815
+ return _context1.abrupt("return", "".concat(SERVICE_API_KEY.Neynar).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
11783
11816
 
11784
11817
  case 6:
11785
- _context0.next = 8;
11818
+ _context1.next = 8;
11786
11819
  return fromUsernameToFid(username, API_KEY);
11787
11820
 
11788
11821
  case 8:
11789
- fid = _context0.sent;
11822
+ fid = _context1.sent;
11790
11823
  if (fid) {
11791
- _context0.next = 11;
11824
+ _context1.next = 11;
11792
11825
  break;
11793
11826
  }
11794
- return _context0.abrupt("return", "".concat(SERVICE_API_KEY.Neynar).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
11827
+ return _context1.abrupt("return", "".concat(SERVICE_API_KEY.Neynar).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
11795
11828
 
11796
11829
  case 11:
11797
11830
  url = "https://api.neynar.com/v2/farcaster/followers?fid=".concat(fid);
11798
- _context0.prev = 12;
11799
- _context0.next = 15;
11831
+ _context1.prev = 12;
11832
+ _context1.next = 15;
11800
11833
  return fetch(url, {
11801
11834
  headers: {
11802
11835
  "x-api-key": API_KEY,
@@ -11805,27 +11838,27 @@ function _typeof(o) {
11805
11838
  });
11806
11839
 
11807
11840
  case 15:
11808
- response = _context0.sent;
11841
+ response = _context1.sent;
11809
11842
  if (response.ok) {
11810
- _context0.next = 18;
11843
+ _context1.next = 18;
11811
11844
  break;
11812
11845
  }
11813
11846
  throw new Error("HTTP ".concat(response.status));
11814
11847
 
11815
11848
  case 18:
11816
- _context0.next = 20;
11849
+ _context1.next = 20;
11817
11850
  return response.json();
11818
11851
 
11819
11852
  case 20:
11820
- json = _context0.sent;
11853
+ json = _context1.sent;
11821
11854
  if (json !== null && json !== void 0 && (_json$users = json.users) !== null && _json$users !== void 0 && _json$users.length) {
11822
- _context0.next = 23;
11855
+ _context1.next = 23;
11823
11856
  break;
11824
11857
  }
11825
- return _context0.abrupt("return", []);
11858
+ return _context1.abrupt("return", []);
11826
11859
 
11827
11860
  case 23:
11828
- return _context0.abrupt("return", json.users.map((function(_ref5) {
11861
+ return _context1.abrupt("return", json.users.map((function(_ref5) {
11829
11862
  var _user$profile, _user$profile2;
11830
11863
  var user = _ref5.user;
11831
11864
  return {
@@ -11838,16 +11871,16 @@ function _typeof(o) {
11838
11871
  })));
11839
11872
 
11840
11873
  case 26:
11841
- _context0.prev = 26;
11842
- _context0.t0 = _context0["catch"](12);
11843
- console.error("NEYNAR_FETCH_FOLLOWERS error:", _context0.t0);
11844
- return _context0.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11874
+ _context1.prev = 26;
11875
+ _context1.t0 = _context1["catch"](12);
11876
+ console.error("NEYNAR_FETCH_FOLLOWERS error:", _context1.t0);
11877
+ return _context1.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11845
11878
 
11846
11879
  case 30:
11847
11880
  case "end":
11848
- return _context0.stop();
11881
+ return _context1.stop();
11849
11882
  }
11850
- }), _callee0, null, [ [ 12, 26 ] ]);
11883
+ }), _callee1, null, [ [ 12, 26 ] ]);
11851
11884
  })));
11852
11885
  return _NEYNAR.apply(this, arguments);
11853
11886
  }
@@ -11855,10 +11888,10 @@ function _typeof(o) {
11855
11888
  return _GNOSISPAY.apply(this, arguments);
11856
11889
  }
11857
11890
  function _GNOSISPAY() {
11858
- _GNOSISPAY = _asyncToGenerator(_regeneratorRuntime().mark((function _callee1(_ref4) {
11891
+ _GNOSISPAY = _asyncToGenerator(_regeneratorRuntime().mark((function _callee10(_ref4) {
11859
11892
  var cardId, startDate, endDate, _ref4$limit, limit, _ref4$offset, offset, apiKeyKey, API_KEY, url, res, json;
11860
- return _regeneratorRuntime().wrap((function _callee1$(_context1) {
11861
- while (1) switch (_context1.prev = _context1.next) {
11893
+ return _regeneratorRuntime().wrap((function _callee10$(_context10) {
11894
+ while (1) switch (_context10.prev = _context10.next) {
11862
11895
  case 0:
11863
11896
  cardId = _ref4.cardId, startDate = _ref4.startDate, endDate = _ref4.endDate, _ref4$limit = _ref4.limit,
11864
11897
  limit = _ref4$limit === void 0 ? 20 : _ref4$limit, _ref4$offset = _ref4.offset,
@@ -11866,24 +11899,24 @@ function _typeof(o) {
11866
11899
  apiKeyKey = SERVICE_API_KEY.GnosisPay;
11867
11900
  API_KEY = window.localStorage.getItem(apiKeyKey);
11868
11901
  if (API_KEY) {
11869
- _context1.next = 5;
11902
+ _context10.next = 5;
11870
11903
  break;
11871
11904
  }
11872
- return _context1.abrupt("return", "".concat(apiKeyKey).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
11905
+ return _context10.abrupt("return", "".concat(apiKeyKey).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
11873
11906
 
11874
11907
  case 5:
11875
11908
  if (cardId) {
11876
- _context1.next = 7;
11909
+ _context10.next = 7;
11877
11910
  break;
11878
11911
  }
11879
- return _context1.abrupt("return", "".concat(apiKeyKey).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
11912
+ return _context10.abrupt("return", "".concat(apiKeyKey).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
11880
11913
 
11881
11914
  case 7:
11882
11915
  if (!(limit > MAX_PAGE_LIMIT)) {
11883
- _context1.next = 9;
11916
+ _context10.next = 9;
11884
11917
  break;
11885
11918
  }
11886
- return _context1.abrupt("return", ERROR_MESSAGES_FLAG.MAX_PAGE_LIMIT);
11919
+ return _context10.abrupt("return", ERROR_MESSAGES_FLAG.MAX_PAGE_LIMIT);
11887
11920
 
11888
11921
  case 9:
11889
11922
  url = new URL("https://api.gnosispay.com/cards/".concat(cardId, "/transactions"));
@@ -11895,8 +11928,8 @@ function _typeof(o) {
11895
11928
  if (!isNaN(toTimestamp(endDate))) {
11896
11929
  url.searchParams.set("endDate", new Date(endDate * 1e3).toISOString());
11897
11930
  }
11898
- _context1.prev = 14;
11899
- _context1.next = 17;
11931
+ _context10.prev = 14;
11932
+ _context10.next = 17;
11900
11933
  return fetch(url.toString(), {
11901
11934
  headers: {
11902
11935
  Authorization: "Bearer ".concat(API_KEY),
@@ -11905,27 +11938,27 @@ function _typeof(o) {
11905
11938
  });
11906
11939
 
11907
11940
  case 17:
11908
- res = _context1.sent;
11941
+ res = _context10.sent;
11909
11942
  if (res.ok) {
11910
- _context1.next = 20;
11943
+ _context10.next = 20;
11911
11944
  break;
11912
11945
  }
11913
11946
  throw new Error("HTTP error! Status: ".concat(res.status));
11914
11947
 
11915
11948
  case 20:
11916
- _context1.next = 22;
11949
+ _context10.next = 22;
11917
11950
  return res.json();
11918
11951
 
11919
11952
  case 22:
11920
- json = _context1.sent;
11953
+ json = _context10.sent;
11921
11954
  if (Array.isArray(json)) {
11922
- _context1.next = 25;
11955
+ _context10.next = 25;
11923
11956
  break;
11924
11957
  }
11925
- return _context1.abrupt("return", []);
11958
+ return _context10.abrupt("return", []);
11926
11959
 
11927
11960
  case 25:
11928
- return _context1.abrupt("return", json.map((function(tx) {
11961
+ return _context10.abrupt("return", json.map((function(tx) {
11929
11962
  return {
11930
11963
  createdAt: tx.createdAt,
11931
11964
  clearedAt: tx.clearedAt,
@@ -11943,16 +11976,16 @@ function _typeof(o) {
11943
11976
  })));
11944
11977
 
11945
11978
  case 28:
11946
- _context1.prev = 28;
11947
- _context1.t0 = _context1["catch"](14);
11948
- console.error("GNOSISPAY_CARD_TXNS error:", _context1.t0);
11949
- return _context1.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11979
+ _context10.prev = 28;
11980
+ _context10.t0 = _context10["catch"](14);
11981
+ console.error("GNOSISPAY_CARD_TXNS error:", _context10.t0);
11982
+ return _context10.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
11950
11983
 
11951
11984
  case 32:
11952
11985
  case "end":
11953
- return _context1.stop();
11986
+ return _context10.stop();
11954
11987
  }
11955
- }), _callee1, null, [ [ 14, 28 ] ]);
11988
+ }), _callee10, null, [ [ 14, 28 ] ]);
11956
11989
  })));
11957
11990
  return _GNOSISPAY.apply(this, arguments);
11958
11991
  }
@@ -11960,17 +11993,17 @@ function _typeof(o) {
11960
11993
  return _ETHERSCAN.apply(this, arguments);
11961
11994
  }
11962
11995
  function _ETHERSCAN() {
11963
- _ETHERSCAN = _asyncToGenerator(_regeneratorRuntime().mark((function _callee10() {
11964
- var _len2, args, _key2, type, chain, address, startDate, endDate, page, limit, _args10 = arguments;
11965
- return _regeneratorRuntime().wrap((function _callee10$(_context10) {
11966
- while (1) switch (_context10.prev = _context10.next) {
11996
+ _ETHERSCAN = _asyncToGenerator(_regeneratorRuntime().mark((function _callee11() {
11997
+ var _len2, args, _key2, type, chain, address, startDate, endDate, page, limit, _args11 = arguments;
11998
+ return _regeneratorRuntime().wrap((function _callee11$(_context11) {
11999
+ while (1) switch (_context11.prev = _context11.next) {
11967
12000
  case 0:
11968
- for (_len2 = _args10.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
11969
- args[_key2] = _args10[_key2];
12001
+ for (_len2 = _args11.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
12002
+ args[_key2] = _args11[_key2];
11970
12003
  }
11971
12004
  type = args[0], chain = args[1], address = args[2], startDate = args[3], endDate = args[4],
11972
12005
  page = args[5], limit = args[6];
11973
- return _context10.abrupt("return", handleScanRequest({
12006
+ return _context11.abrupt("return", handleScanRequest({
11974
12007
  scanKey: SERVICE_API_KEY.Etherscan,
11975
12008
  baseUrl: "https://api.etherscan.io/v2/api",
11976
12009
  type: type,
@@ -11984,9 +12017,9 @@ function _typeof(o) {
11984
12017
 
11985
12018
  case 3:
11986
12019
  case "end":
11987
- return _context10.stop();
12020
+ return _context11.stop();
11988
12021
  }
11989
- }), _callee10);
12022
+ }), _callee11);
11990
12023
  })));
11991
12024
  return _ETHERSCAN.apply(this, arguments);
11992
12025
  }
@@ -11994,17 +12027,17 @@ function _typeof(o) {
11994
12027
  return _COINGECKO.apply(this, arguments);
11995
12028
  }
11996
12029
  function _COINGECKO() {
11997
- _COINGECKO = _asyncToGenerator(_regeneratorRuntime().mark((function _callee11(category, param1, param2) {
12030
+ _COINGECKO = _asyncToGenerator(_regeneratorRuntime().mark((function _callee12(category, param1, param2) {
11998
12031
  var API_KEY, headers, url, lowerCategory, token, vsCurrencies, ecosystemMap, key, categoryVal, trend, _category, _trend, exchange, response, json, _json$status, message, output, _i14, _Object$entries5, _Object$entries5$_i, _token, prices, _i15, _Object$entries6, _Object$entries6$_i, currency, _value9, _key3, _data, exchangeDetails, flatArray;
11999
- return _regeneratorRuntime().wrap((function _callee11$(_context11) {
12000
- while (1) switch (_context11.prev = _context11.next) {
12032
+ return _regeneratorRuntime().wrap((function _callee12$(_context12) {
12033
+ while (1) switch (_context12.prev = _context12.next) {
12001
12034
  case 0:
12002
12035
  API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Coingecko);
12003
12036
  if (API_KEY) {
12004
- _context11.next = 3;
12037
+ _context12.next = 3;
12005
12038
  break;
12006
12039
  }
12007
- return _context11.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
12040
+ return _context12.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
12008
12041
 
12009
12042
  case 3:
12010
12043
  headers = {
@@ -12013,22 +12046,22 @@ function _typeof(o) {
12013
12046
  };
12014
12047
  url = "";
12015
12048
  lowerCategory = (category || "").toLowerCase();
12016
- _context11.t0 = lowerCategory;
12017
- _context11.next = _context11.t0 === "price" ? 9 : _context11.t0 === "market" ? 15 : _context11.t0 === "stablecoins" ? 23 : _context11.t0 === "derivatives" ? 27 : 30;
12049
+ _context12.t0 = lowerCategory;
12050
+ _context12.next = _context12.t0 === "price" ? 9 : _context12.t0 === "market" ? 15 : _context12.t0 === "stablecoins" ? 23 : _context12.t0 === "derivatives" ? 27 : 30;
12018
12051
  break;
12019
12052
 
12020
12053
  case 9:
12021
12054
  token = param1;
12022
12055
  vsCurrencies = param2;
12023
12056
  if (token) {
12024
- _context11.next = 13;
12057
+ _context12.next = 13;
12025
12058
  break;
12026
12059
  }
12027
- return _context11.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
12060
+ return _context12.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
12028
12061
 
12029
12062
  case 13:
12030
12063
  url = "https://api.coingecko.com/api/v3/simple/price?vs_currencies=".concat(vsCurrencies ? vsCurrencies : "usd", "&symbols=").concat(token);
12031
- return _context11.abrupt("break", 31);
12064
+ return _context12.abrupt("break", 31);
12032
12065
 
12033
12066
  case 15:
12034
12067
  ecosystemMap = {
@@ -12049,13 +12082,13 @@ function _typeof(o) {
12049
12082
  url = "https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&include_tokens=top&page=1&per_page=100";
12050
12083
  if (categoryVal) url += "&category=".concat(categoryVal);
12051
12084
  if (trend) url += trend;
12052
- return _context11.abrupt("break", 31);
12085
+ return _context12.abrupt("break", 31);
12053
12086
 
12054
12087
  case 23:
12055
12088
  _category = !param1 || param1.toLowerCase() === "all" ? "stablecoins" : param1.toLowerCase();
12056
12089
  _trend = param2 ? "&price_change_percentage=".concat(param2) : "";
12057
12090
  url = "https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&category=".concat(_category, "&order=market_cap_desc&page=1&per_page=100").concat(_trend);
12058
- return _context11.abrupt("break", 31);
12091
+ return _context12.abrupt("break", 31);
12059
12092
 
12060
12093
  case 27:
12061
12094
  exchange = param1;
@@ -12064,47 +12097,47 @@ function _typeof(o) {
12064
12097
  } else {
12065
12098
  url = "https://api.coingecko.com/api/v3/derivatives/exchanges/".concat(exchange, "?include_tickers=all");
12066
12099
  }
12067
- return _context11.abrupt("break", 31);
12100
+ return _context12.abrupt("break", 31);
12068
12101
 
12069
12102
  case 30:
12070
- return _context11.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
12103
+ return _context12.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
12071
12104
 
12072
12105
  case 31:
12073
- _context11.prev = 31;
12074
- _context11.next = 34;
12106
+ _context12.prev = 31;
12107
+ _context12.next = 34;
12075
12108
  return fetch(url, {
12076
12109
  method: "GET",
12077
12110
  headers: headers
12078
12111
  });
12079
12112
 
12080
12113
  case 34:
12081
- response = _context11.sent;
12082
- _context11.next = 37;
12114
+ response = _context12.sent;
12115
+ _context12.next = 37;
12083
12116
  return response.json();
12084
12117
 
12085
12118
  case 37:
12086
- json = _context11.sent;
12119
+ json = _context12.sent;
12087
12120
  if (response.ok) {
12088
- _context11.next = 44;
12121
+ _context12.next = 44;
12089
12122
  break;
12090
12123
  }
12091
12124
  message = (json === null || json === void 0 || (_json$status = json.status) === null || _json$status === void 0 ? void 0 : _json$status.error_message) || "";
12092
- if (!message.includes("API Key Missing")) {
12093
- _context11.next = 42;
12125
+ if (!(response.status === 429)) {
12126
+ _context12.next = 42;
12094
12127
  break;
12095
12128
  }
12096
- return _context11.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.INVALID_API_KEY));
12129
+ return _context12.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.RATE_LIMIT));
12097
12130
 
12098
12131
  case 42:
12099
- if (!(response.status === 429)) {
12100
- _context11.next = 44;
12132
+ if (!message.includes("API Key Missing")) {
12133
+ _context12.next = 44;
12101
12134
  break;
12102
12135
  }
12103
- return _context11.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.RATE_LIMIT));
12136
+ return _context12.abrupt("return", "".concat(SERVICE_API_KEY.Coingecko).concat(ERROR_MESSAGES_FLAG.INVALID_API_KEY));
12104
12137
 
12105
12138
  case 44:
12106
12139
  if (!(lowerCategory === "price")) {
12107
- _context11.next = 48;
12140
+ _context12.next = 48;
12108
12141
  break;
12109
12142
  }
12110
12143
  output = {};
@@ -12118,7 +12151,7 @@ function _typeof(o) {
12118
12151
  output[_key3] = _value9;
12119
12152
  }
12120
12153
  }
12121
- return _context11.abrupt("return", [ output ]);
12154
+ return _context12.abrupt("return", [ output ]);
12122
12155
 
12123
12156
  case 48:
12124
12157
  _data = json;
@@ -12145,7 +12178,7 @@ function _typeof(o) {
12145
12178
  }
12146
12179
  }
12147
12180
  flatArray = Array.isArray(_data) ? _data : [ _data ];
12148
- return _context11.abrupt("return", flatArray.map((function(item) {
12181
+ return _context12.abrupt("return", flatArray.map((function(item) {
12149
12182
  var flat = {};
12150
12183
  for (var _i16 = 0, _Object$entries7 = Object.entries(item); _i16 < _Object$entries7.length; _i16++) {
12151
12184
  var _Object$entries7$_i = _slicedToArray(_Object$entries7[_i16], 2), _key4 = _Object$entries7$_i[0], _value0 = _Object$entries7$_i[1];
@@ -12157,16 +12190,16 @@ function _typeof(o) {
12157
12190
  })));
12158
12191
 
12159
12192
  case 54:
12160
- _context11.prev = 54;
12161
- _context11.t1 = _context11["catch"](31);
12162
- console.error(_context11.t1);
12163
- return _context11.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
12193
+ _context12.prev = 54;
12194
+ _context12.t1 = _context12["catch"](31);
12195
+ console.error(_context12.t1);
12196
+ return _context12.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
12164
12197
 
12165
12198
  case 58:
12166
12199
  case "end":
12167
- return _context11.stop();
12200
+ return _context12.stop();
12168
12201
  }
12169
- }), _callee11, null, [ [ 31, 54 ] ]);
12202
+ }), _callee12, null, [ [ 31, 54 ] ]);
12170
12203
  })));
12171
12204
  return _COINGECKO.apply(this, arguments);
12172
12205
  }
@@ -12174,68 +12207,68 @@ function _typeof(o) {
12174
12207
  return _EOA.apply(this, arguments);
12175
12208
  }
12176
12209
  function _EOA() {
12177
- _EOA = _asyncToGenerator(_regeneratorRuntime().mark((function _callee13() {
12178
- var API_KEY, _argsToArray13, _argsToArray14, addresses, category, chains, startTime, endTime, _argsToArray14$, page, _argsToArray14$2, offset, INPUTS, CHAINS, out, ADDRESS_MAP, _iterator, _step, input, resolved, ADDRS, _iterator2, _step2, _loop, _ret, fetchJSON, _fetchJSON, _args16 = arguments;
12179
- return _regeneratorRuntime().wrap((function _callee13$(_context16) {
12180
- while (1) switch (_context16.prev = _context16.next) {
12210
+ _EOA = _asyncToGenerator(_regeneratorRuntime().mark((function _callee14() {
12211
+ var API_KEY, _argsToArray15, _argsToArray16, addresses, category, chains, startTime, endTime, _argsToArray16$, page, _argsToArray16$2, offset, INPUTS, CHAINS, out, ADDRESS_MAP, _iterator, _step, input, resolved, ADDRS, _iterator2, _step2, _loop, _ret, fetchJSON, _fetchJSON, _args17 = arguments;
12212
+ return _regeneratorRuntime().wrap((function _callee14$(_context17) {
12213
+ while (1) switch (_context17.prev = _context17.next) {
12181
12214
  case 0:
12182
12215
  _fetchJSON = function _fetchJSON3() {
12183
- _fetchJSON = _asyncToGenerator(_regeneratorRuntime().mark((function _callee12(url) {
12216
+ _fetchJSON = _asyncToGenerator(_regeneratorRuntime().mark((function _callee13(url) {
12184
12217
  var _json$result3, _json$result3$include, _json$result4, _json$result4$include, res, json;
12185
- return _regeneratorRuntime().wrap((function _callee12$(_context15) {
12186
- while (1) switch (_context15.prev = _context15.next) {
12218
+ return _regeneratorRuntime().wrap((function _callee13$(_context16) {
12219
+ while (1) switch (_context16.prev = _context16.next) {
12187
12220
  case 0:
12188
- _context15.prev = 0;
12189
- _context15.next = 3;
12221
+ _context16.prev = 0;
12222
+ _context16.next = 3;
12190
12223
  return fetch(url);
12191
12224
 
12192
12225
  case 3:
12193
- res = _context15.sent;
12226
+ res = _context16.sent;
12194
12227
  if (res.ok) {
12195
- _context15.next = 6;
12228
+ _context16.next = 6;
12196
12229
  break;
12197
12230
  }
12198
- return _context15.abrupt("return", "HTTP_".concat(res.status));
12231
+ return _context16.abrupt("return", "HTTP_".concat(res.status));
12199
12232
 
12200
12233
  case 6:
12201
- _context15.next = 8;
12234
+ _context16.next = 8;
12202
12235
  return res.json();
12203
12236
 
12204
12237
  case 8:
12205
- json = _context15.sent;
12238
+ json = _context16.sent;
12206
12239
  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"))) {
12207
- _context15.next = 11;
12240
+ _context16.next = 11;
12208
12241
  break;
12209
12242
  }
12210
- return _context15.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.INVALID_API_KEY));
12243
+ return _context16.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.INVALID_API_KEY));
12211
12244
 
12212
12245
  case 11:
12213
12246
  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"))) {
12214
- _context15.next = 13;
12247
+ _context16.next = 13;
12215
12248
  break;
12216
12249
  }
12217
- return _context15.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.RATE_LIMIT));
12250
+ return _context16.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.RATE_LIMIT));
12218
12251
 
12219
12252
  case 13:
12220
12253
  if (!(json.status === "0" && json.message !== "No transactions found")) {
12221
- _context15.next = 15;
12254
+ _context16.next = 15;
12222
12255
  break;
12223
12256
  }
12224
- return _context15.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
12257
+ return _context16.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
12225
12258
 
12226
12259
  case 15:
12227
- return _context15.abrupt("return", json.result);
12260
+ return _context16.abrupt("return", json.result);
12228
12261
 
12229
12262
  case 18:
12230
- _context15.prev = 18;
12231
- _context15.t0 = _context15["catch"](0);
12232
- return _context15.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
12263
+ _context16.prev = 18;
12264
+ _context16.t0 = _context16["catch"](0);
12265
+ return _context16.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
12233
12266
 
12234
12267
  case 21:
12235
12268
  case "end":
12236
- return _context15.stop();
12269
+ return _context16.stop();
12237
12270
  }
12238
- }), _callee12, null, [ [ 0, 18 ] ]);
12271
+ }), _callee13, null, [ [ 0, 18 ] ]);
12239
12272
  })));
12240
12273
  return _fetchJSON.apply(this, arguments);
12241
12274
  };
@@ -12244,22 +12277,22 @@ function _typeof(o) {
12244
12277
  };
12245
12278
  API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Etherscan);
12246
12279
  if (API_KEY) {
12247
- _context16.next = 5;
12280
+ _context17.next = 5;
12248
12281
  break;
12249
12282
  }
12250
- return _context16.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
12283
+ return _context17.abrupt("return", "".concat(SERVICE_API_KEY.Etherscan).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
12251
12284
 
12252
12285
  case 5:
12253
- _argsToArray13 = argsToArray(_args16), _argsToArray14 = _slicedToArray(_argsToArray13, 7),
12254
- addresses = _argsToArray14[0], category = _argsToArray14[1], chains = _argsToArray14[2],
12255
- startTime = _argsToArray14[3], endTime = _argsToArray14[4], _argsToArray14$ = _argsToArray14[5],
12256
- page = _argsToArray14$ === void 0 ? 1 : _argsToArray14$, _argsToArray14$2 = _argsToArray14[6],
12257
- offset = _argsToArray14$2 === void 0 ? 10 : _argsToArray14$2;
12286
+ _argsToArray15 = argsToArray(_args17), _argsToArray16 = _slicedToArray(_argsToArray15, 7),
12287
+ addresses = _argsToArray16[0], category = _argsToArray16[1], chains = _argsToArray16[2],
12288
+ startTime = _argsToArray16[3], endTime = _argsToArray16[4], _argsToArray16$ = _argsToArray16[5],
12289
+ page = _argsToArray16$ === void 0 ? 1 : _argsToArray16$, _argsToArray16$2 = _argsToArray16[6],
12290
+ offset = _argsToArray16$2 === void 0 ? 10 : _argsToArray16$2;
12258
12291
  if (!(offset > MAX_PAGE_LIMIT)) {
12259
- _context16.next = 8;
12292
+ _context17.next = 8;
12260
12293
  break;
12261
12294
  }
12262
- return _context16.abrupt("return", ERROR_MESSAGES_FLAG.MAX_PAGE_LIMIT);
12295
+ return _context17.abrupt("return", ERROR_MESSAGES_FLAG.MAX_PAGE_LIMIT);
12263
12296
 
12264
12297
  case 8:
12265
12298
  INPUTS = addresses.split(",").map((function(a) {
@@ -12271,99 +12304,99 @@ function _typeof(o) {
12271
12304
  out = [];
12272
12305
  ADDRESS_MAP = {};
12273
12306
  _iterator = _createForOfIteratorHelper(INPUTS);
12274
- _context16.prev = 13;
12307
+ _context17.prev = 13;
12275
12308
  _iterator.s();
12276
12309
 
12277
12310
  case 15:
12278
12311
  if ((_step = _iterator.n()).done) {
12279
- _context16.next = 33;
12312
+ _context17.next = 33;
12280
12313
  break;
12281
12314
  }
12282
12315
  input = _step.value;
12283
12316
  if (!isAddress(input)) {
12284
- _context16.next = 21;
12317
+ _context17.next = 21;
12285
12318
  break;
12286
12319
  }
12287
12320
  ADDRESS_MAP[input.toLowerCase()] = null;
12288
- _context16.next = 31;
12321
+ _context17.next = 31;
12289
12322
  break;
12290
12323
 
12291
12324
  case 21:
12292
- _context16.prev = 21;
12293
- _context16.next = 24;
12325
+ _context17.prev = 21;
12326
+ _context17.next = 24;
12294
12327
  return fromEnsNameToAddress(input);
12295
12328
 
12296
12329
  case 24:
12297
- resolved = _context16.sent;
12330
+ resolved = _context17.sent;
12298
12331
  if (resolved) ADDRESS_MAP[resolved.toLowerCase()] = input;
12299
- _context16.next = 31;
12332
+ _context17.next = 31;
12300
12333
  break;
12301
12334
 
12302
12335
  case 28:
12303
- _context16.prev = 28;
12304
- _context16.t0 = _context16["catch"](21);
12305
- return _context16.abrupt("return", "".concat(input).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
12336
+ _context17.prev = 28;
12337
+ _context17.t0 = _context17["catch"](21);
12338
+ return _context17.abrupt("return", "".concat(input).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
12306
12339
 
12307
12340
  case 31:
12308
- _context16.next = 15;
12341
+ _context17.next = 15;
12309
12342
  break;
12310
12343
 
12311
12344
  case 33:
12312
- _context16.next = 38;
12345
+ _context17.next = 38;
12313
12346
  break;
12314
12347
 
12315
12348
  case 35:
12316
- _context16.prev = 35;
12317
- _context16.t1 = _context16["catch"](13);
12318
- _iterator.e(_context16.t1);
12349
+ _context17.prev = 35;
12350
+ _context17.t1 = _context17["catch"](13);
12351
+ _iterator.e(_context17.t1);
12319
12352
 
12320
12353
  case 38:
12321
- _context16.prev = 38;
12354
+ _context17.prev = 38;
12322
12355
  _iterator.f();
12323
- return _context16.finish(38);
12356
+ return _context17.finish(38);
12324
12357
 
12325
12358
  case 41:
12326
12359
  ADDRS = Object.keys(ADDRESS_MAP);
12327
12360
  _iterator2 = _createForOfIteratorHelper(CHAINS);
12328
- _context16.prev = 43;
12361
+ _context17.prev = 43;
12329
12362
  _loop = _regeneratorRuntime().mark((function _loop() {
12330
12363
  var chain, chainId, _loop2, _ret2, i, startBlock, endBlock, _loop3, _ret3, _i17, _ADDRS;
12331
- return _regeneratorRuntime().wrap((function _loop$(_context14) {
12332
- while (1) switch (_context14.prev = _context14.next) {
12364
+ return _regeneratorRuntime().wrap((function _loop$(_context15) {
12365
+ while (1) switch (_context15.prev = _context15.next) {
12333
12366
  case 0:
12334
12367
  chain = _step2.value;
12335
12368
  chainId = CHAIN_ID_MAP[chain];
12336
12369
  if (chainId) {
12337
- _context14.next = 4;
12370
+ _context15.next = 4;
12338
12371
  break;
12339
12372
  }
12340
- return _context14.abrupt("return", {
12373
+ return _context15.abrupt("return", {
12341
12374
  v: ERROR_MESSAGES_FLAG.UNSUPPORTED_CHAIN
12342
12375
  });
12343
12376
 
12344
12377
  case 4:
12345
12378
  if (!(category === "balance")) {
12346
- _context14.next = 16;
12379
+ _context15.next = 16;
12347
12380
  break;
12348
12381
  }
12349
12382
  _loop2 = _regeneratorRuntime().mark((function _loop2(i) {
12350
12383
  var slice, action, url, data;
12351
- return _regeneratorRuntime().wrap((function _loop2$(_context12) {
12352
- while (1) switch (_context12.prev = _context12.next) {
12384
+ return _regeneratorRuntime().wrap((function _loop2$(_context13) {
12385
+ while (1) switch (_context13.prev = _context13.next) {
12353
12386
  case 0:
12354
12387
  slice = ADDRS.slice(i, i + 20).join(",");
12355
12388
  action = "addresstokenbalance";
12356
12389
  url = "https://api.etherscan.io/v2/api?chainid=".concat(chainId) + "&module=account&action=".concat(action, "&address=").concat(slice) + "&page=".concat(page, "&offset=100&apikey=").concat(API_KEY);
12357
- _context12.next = 5;
12390
+ _context13.next = 5;
12358
12391
  return fetchJSON(url);
12359
12392
 
12360
12393
  case 5:
12361
- data = _context12.sent;
12394
+ data = _context13.sent;
12362
12395
  if (!(typeof data === "string")) {
12363
- _context12.next = 8;
12396
+ _context13.next = 8;
12364
12397
  break;
12365
12398
  }
12366
- return _context12.abrupt("return", {
12399
+ return _context13.abrupt("return", {
12367
12400
  v: {
12368
12401
  v: data
12369
12402
  }
@@ -12380,7 +12413,7 @@ function _typeof(o) {
12380
12413
 
12381
12414
  case 9:
12382
12415
  case "end":
12383
- return _context12.stop();
12416
+ return _context13.stop();
12384
12417
  }
12385
12418
  }), _loop2);
12386
12419
  }));
@@ -12388,59 +12421,59 @@ function _typeof(o) {
12388
12421
 
12389
12422
  case 7:
12390
12423
  if (!(i < ADDRS.length)) {
12391
- _context14.next = 15;
12424
+ _context15.next = 15;
12392
12425
  break;
12393
12426
  }
12394
- return _context14.delegateYield(_loop2(i), "t0", 9);
12427
+ return _context15.delegateYield(_loop2(i), "t0", 9);
12395
12428
 
12396
12429
  case 9:
12397
- _ret2 = _context14.t0;
12430
+ _ret2 = _context15.t0;
12398
12431
  if (!_ret2) {
12399
- _context14.next = 12;
12432
+ _context15.next = 12;
12400
12433
  break;
12401
12434
  }
12402
- return _context14.abrupt("return", _ret2.v);
12435
+ return _context15.abrupt("return", _ret2.v);
12403
12436
 
12404
12437
  case 12:
12405
12438
  i += 20;
12406
- _context14.next = 7;
12439
+ _context15.next = 7;
12407
12440
  break;
12408
12441
 
12409
12442
  case 15:
12410
- return _context14.abrupt("return", 0);
12443
+ return _context15.abrupt("return", 0);
12411
12444
 
12412
12445
  case 16:
12413
12446
  if (!(category === "txns")) {
12414
- _context14.next = 34;
12447
+ _context15.next = 34;
12415
12448
  break;
12416
12449
  }
12417
- _context14.next = 19;
12450
+ _context15.next = 19;
12418
12451
  return fromTimeStampToBlock(toTimestamp(startTime), chain, API_KEY);
12419
12452
 
12420
12453
  case 19:
12421
- startBlock = _context14.sent;
12422
- _context14.next = 22;
12454
+ startBlock = _context15.sent;
12455
+ _context15.next = 22;
12423
12456
  return fromTimeStampToBlock(toTimestamp(endTime), chain, API_KEY);
12424
12457
 
12425
12458
  case 22:
12426
- endBlock = _context14.sent;
12459
+ endBlock = _context15.sent;
12427
12460
  _loop3 = _regeneratorRuntime().mark((function _loop3() {
12428
12461
  var addr, url, data;
12429
- return _regeneratorRuntime().wrap((function _loop3$(_context13) {
12430
- while (1) switch (_context13.prev = _context13.next) {
12462
+ return _regeneratorRuntime().wrap((function _loop3$(_context14) {
12463
+ while (1) switch (_context14.prev = _context14.next) {
12431
12464
  case 0:
12432
12465
  addr = _ADDRS[_i17];
12433
12466
  url = "https://api.etherscan.io/v2/api?chainid=".concat(chainId) + "&module=account&action=tokentx&address=".concat(addr) + "&startblock=".concat(startBlock, "&endblock=").concat(endBlock) + "&page=".concat(page, "&offset=").concat(offset, "&sort=asc&apikey=").concat(API_KEY);
12434
- _context13.next = 4;
12467
+ _context14.next = 4;
12435
12468
  return fetchJSON(url);
12436
12469
 
12437
12470
  case 4:
12438
- data = _context13.sent;
12471
+ data = _context14.sent;
12439
12472
  if (!(typeof data === "string")) {
12440
- _context13.next = 7;
12473
+ _context14.next = 7;
12441
12474
  break;
12442
12475
  }
12443
- return _context13.abrupt("return", {
12476
+ return _context14.abrupt("return", {
12444
12477
  v: {
12445
12478
  v: data
12446
12479
  }
@@ -12457,7 +12490,7 @@ function _typeof(o) {
12457
12490
 
12458
12491
  case 8:
12459
12492
  case "end":
12460
- return _context13.stop();
12493
+ return _context14.stop();
12461
12494
  }
12462
12495
  }), _loop3);
12463
12496
  }));
@@ -12465,35 +12498,35 @@ function _typeof(o) {
12465
12498
 
12466
12499
  case 25:
12467
12500
  if (!(_i17 < _ADDRS.length)) {
12468
- _context14.next = 33;
12501
+ _context15.next = 33;
12469
12502
  break;
12470
12503
  }
12471
- return _context14.delegateYield(_loop3(), "t1", 27);
12504
+ return _context15.delegateYield(_loop3(), "t1", 27);
12472
12505
 
12473
12506
  case 27:
12474
- _ret3 = _context14.t1;
12507
+ _ret3 = _context15.t1;
12475
12508
  if (!_ret3) {
12476
- _context14.next = 30;
12509
+ _context15.next = 30;
12477
12510
  break;
12478
12511
  }
12479
- return _context14.abrupt("return", _ret3.v);
12512
+ return _context15.abrupt("return", _ret3.v);
12480
12513
 
12481
12514
  case 30:
12482
12515
  _i17++;
12483
- _context14.next = 25;
12516
+ _context15.next = 25;
12484
12517
  break;
12485
12518
 
12486
12519
  case 33:
12487
- return _context14.abrupt("return", 0);
12520
+ return _context15.abrupt("return", 0);
12488
12521
 
12489
12522
  case 34:
12490
- return _context14.abrupt("return", {
12523
+ return _context15.abrupt("return", {
12491
12524
  v: ERROR_MESSAGES_FLAG.INVALID_CATEGORY
12492
12525
  });
12493
12526
 
12494
12527
  case 35:
12495
12528
  case "end":
12496
- return _context14.stop();
12529
+ return _context15.stop();
12497
12530
  }
12498
12531
  }), _loop);
12499
12532
  }));
@@ -12501,52 +12534,52 @@ function _typeof(o) {
12501
12534
 
12502
12535
  case 46:
12503
12536
  if ((_step2 = _iterator2.n()).done) {
12504
- _context16.next = 55;
12537
+ _context17.next = 55;
12505
12538
  break;
12506
12539
  }
12507
- return _context16.delegateYield(_loop(), "t2", 48);
12540
+ return _context17.delegateYield(_loop(), "t2", 48);
12508
12541
 
12509
12542
  case 48:
12510
- _ret = _context16.t2;
12543
+ _ret = _context17.t2;
12511
12544
  if (!(_ret === 0)) {
12512
- _context16.next = 51;
12545
+ _context17.next = 51;
12513
12546
  break;
12514
12547
  }
12515
- return _context16.abrupt("continue", 53);
12548
+ return _context17.abrupt("continue", 53);
12516
12549
 
12517
12550
  case 51:
12518
12551
  if (!_ret) {
12519
- _context16.next = 53;
12552
+ _context17.next = 53;
12520
12553
  break;
12521
12554
  }
12522
- return _context16.abrupt("return", _ret.v);
12555
+ return _context17.abrupt("return", _ret.v);
12523
12556
 
12524
12557
  case 53:
12525
- _context16.next = 46;
12558
+ _context17.next = 46;
12526
12559
  break;
12527
12560
 
12528
12561
  case 55:
12529
- _context16.next = 60;
12562
+ _context17.next = 60;
12530
12563
  break;
12531
12564
 
12532
12565
  case 57:
12533
- _context16.prev = 57;
12534
- _context16.t3 = _context16["catch"](43);
12535
- _iterator2.e(_context16.t3);
12566
+ _context17.prev = 57;
12567
+ _context17.t3 = _context17["catch"](43);
12568
+ _iterator2.e(_context17.t3);
12536
12569
 
12537
12570
  case 60:
12538
- _context16.prev = 60;
12571
+ _context17.prev = 60;
12539
12572
  _iterator2.f();
12540
- return _context16.finish(60);
12573
+ return _context17.finish(60);
12541
12574
 
12542
12575
  case 63:
12543
- return _context16.abrupt("return", out);
12576
+ return _context17.abrupt("return", out);
12544
12577
 
12545
12578
  case 64:
12546
12579
  case "end":
12547
- return _context16.stop();
12580
+ return _context17.stop();
12548
12581
  }
12549
- }), _callee13, null, [ [ 13, 35, 38, 41 ], [ 21, 28 ], [ 43, 57, 60, 63 ] ]);
12582
+ }), _callee14, null, [ [ 13, 35, 38, 41 ], [ 21, 28 ], [ 43, 57, 60, 63 ] ]);
12550
12583
  })));
12551
12584
  return _EOA.apply(this, arguments);
12552
12585
  }
@@ -12554,11 +12587,11 @@ function _typeof(o) {
12554
12587
  return _FLVURL.apply(this, arguments);
12555
12588
  }
12556
12589
  function _FLVURL() {
12557
- _FLVURL = _asyncToGenerator(_regeneratorRuntime().mark((function _callee14(token, vs_currencies) {
12558
- return _regeneratorRuntime().wrap((function _callee14$(_context17) {
12559
- while (1) switch (_context17.prev = _context17.next) {
12590
+ _FLVURL = _asyncToGenerator(_regeneratorRuntime().mark((function _callee15(token, vs_currencies) {
12591
+ return _regeneratorRuntime().wrap((function _callee15$(_context18) {
12592
+ while (1) switch (_context18.prev = _context18.next) {
12560
12593
  case 0:
12561
- return _context17.abrupt("return", new Promise((function(resolve) {
12594
+ return _context18.abrupt("return", new Promise((function(resolve) {
12562
12595
  setTimeout((function() {
12563
12596
  resolve([ {
12564
12597
  Yoo: "gotcha"
@@ -12568,9 +12601,9 @@ function _typeof(o) {
12568
12601
 
12569
12602
  case 1:
12570
12603
  case "end":
12571
- return _context17.stop();
12604
+ return _context18.stop();
12572
12605
  }
12573
- }), _callee14);
12606
+ }), _callee15);
12574
12607
  })));
12575
12608
  return _FLVURL.apply(this, arguments);
12576
12609
  }
@@ -12578,80 +12611,80 @@ function _typeof(o) {
12578
12611
  return _SAFE.apply(this, arguments);
12579
12612
  }
12580
12613
  function _SAFE() {
12581
- _SAFE = _asyncToGenerator(_regeneratorRuntime().mark((function _callee15() {
12582
- var _argsToArray15, _argsToArray16, address, utility, chain, _argsToArray16$, limit, _argsToArray16$2, offset, apiKey, chainIdentifier, url, response, json, _args18 = arguments;
12583
- return _regeneratorRuntime().wrap((function _callee15$(_context18) {
12584
- while (1) switch (_context18.prev = _context18.next) {
12614
+ _SAFE = _asyncToGenerator(_regeneratorRuntime().mark((function _callee16() {
12615
+ var _argsToArray17, _argsToArray18, address, utility, chain, _argsToArray18$, limit, _argsToArray18$2, offset, apiKey, chainIdentifier, url, response, json, _args19 = arguments;
12616
+ return _regeneratorRuntime().wrap((function _callee16$(_context19) {
12617
+ while (1) switch (_context19.prev = _context19.next) {
12585
12618
  case 0:
12586
- _argsToArray15 = argsToArray(_args18), _argsToArray16 = _slicedToArray(_argsToArray15, 5),
12587
- address = _argsToArray16[0], utility = _argsToArray16[1], chain = _argsToArray16[2],
12588
- _argsToArray16$ = _argsToArray16[3], limit = _argsToArray16$ === void 0 ? 10 : _argsToArray16$,
12589
- _argsToArray16$2 = _argsToArray16[4], offset = _argsToArray16$2 === void 0 ? 0 : _argsToArray16$2;
12619
+ _argsToArray17 = argsToArray(_args19), _argsToArray18 = _slicedToArray(_argsToArray17, 5),
12620
+ address = _argsToArray18[0], utility = _argsToArray18[1], chain = _argsToArray18[2],
12621
+ _argsToArray18$ = _argsToArray18[3], limit = _argsToArray18$ === void 0 ? 10 : _argsToArray18$,
12622
+ _argsToArray18$2 = _argsToArray18[4], offset = _argsToArray18$2 === void 0 ? 0 : _argsToArray18$2;
12590
12623
  if (!(typeof limit !== "number" || limit < 0)) {
12591
- _context18.next = 3;
12624
+ _context19.next = 3;
12592
12625
  break;
12593
12626
  }
12594
- return _context18.abrupt("return", "INVALID_LIMIT");
12627
+ return _context19.abrupt("return", "INVALID_LIMIT");
12595
12628
 
12596
12629
  case 3:
12597
12630
  if (!(typeof offset !== "number" || offset < 0)) {
12598
- _context18.next = 5;
12631
+ _context19.next = 5;
12599
12632
  break;
12600
12633
  }
12601
- return _context18.abrupt("return", "INVALID_OFFSET");
12634
+ return _context19.abrupt("return", "INVALID_OFFSET");
12602
12635
 
12603
12636
  case 5:
12604
12637
  if (!(utility !== "txns")) {
12605
- _context18.next = 7;
12638
+ _context19.next = 7;
12606
12639
  break;
12607
12640
  }
12608
- return _context18.abrupt("return", "UTILITY IS NOT SUPPORTED");
12641
+ return _context19.abrupt("return", "UTILITY IS NOT SUPPORTED");
12609
12642
 
12610
12643
  case 7:
12611
12644
  if (!(limit > MAX_PAGE_LIMIT)) {
12612
- _context18.next = 9;
12645
+ _context19.next = 9;
12613
12646
  break;
12614
12647
  }
12615
- return _context18.abrupt("return", ERROR_MESSAGES_FLAG.MAX_PAGE_LIMIT);
12648
+ return _context19.abrupt("return", ERROR_MESSAGES_FLAG.MAX_PAGE_LIMIT);
12616
12649
 
12617
12650
  case 9:
12618
12651
  apiKey = window.localStorage.getItem(SERVICE_API_KEY.Safe);
12619
12652
  chainIdentifier = SAFE_CHAIN_MAP[chain];
12620
12653
  if (apiKey) {
12621
- _context18.next = 13;
12654
+ _context19.next = 13;
12622
12655
  break;
12623
12656
  }
12624
- return _context18.abrupt("return", "".concat(SERVICE_API_KEY.Safe, "_MISSING"));
12657
+ return _context19.abrupt("return", "".concat(SERVICE_API_KEY.Safe, "_MISSING"));
12625
12658
 
12626
12659
  case 13:
12627
12660
  if (chainIdentifier) {
12628
- _context18.next = 15;
12661
+ _context19.next = 15;
12629
12662
  break;
12630
12663
  }
12631
- return _context18.abrupt("return", "CHAIN IS NOT SUPPORTED");
12664
+ return _context19.abrupt("return", "CHAIN IS NOT SUPPORTED");
12632
12665
 
12633
12666
  case 15:
12634
12667
  if (isAddress(address)) {
12635
- _context18.next = 19;
12668
+ _context19.next = 19;
12636
12669
  break;
12637
12670
  }
12638
- _context18.next = 18;
12671
+ _context19.next = 18;
12639
12672
  return fromEnsNameToAddress(address);
12640
12673
 
12641
12674
  case 18:
12642
- address = _context18.sent;
12675
+ address = _context19.sent;
12643
12676
 
12644
12677
  case 19:
12645
12678
  if (address) {
12646
- _context18.next = 21;
12679
+ _context19.next = 21;
12647
12680
  break;
12648
12681
  }
12649
- return _context18.abrupt("return", "".concat(address).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
12682
+ return _context19.abrupt("return", "".concat(address).concat(ERROR_MESSAGES_FLAG.INVALID_PARAM));
12650
12683
 
12651
12684
  case 21:
12652
12685
  url = "https://api.safe.global/tx-service/".concat(chainIdentifier, "/api/v2/safes/").concat(address, "/multisig-transactions?limit=").concat(limit, "&offset=").concat(offset);
12653
- _context18.prev = 22;
12654
- _context18.next = 25;
12686
+ _context19.prev = 22;
12687
+ _context19.next = 25;
12655
12688
  return fetch(url, {
12656
12689
  headers: {
12657
12690
  Authorization: "Bearer ".concat(apiKey)
@@ -12659,42 +12692,42 @@ function _typeof(o) {
12659
12692
  });
12660
12693
 
12661
12694
  case 25:
12662
- response = _context18.sent;
12695
+ response = _context19.sent;
12663
12696
  if (response.ok) {
12664
- _context18.next = 28;
12697
+ _context19.next = 28;
12665
12698
  break;
12666
12699
  }
12667
12700
  throw new Error("HTTP error! Status: ".concat(response.status));
12668
12701
 
12669
12702
  case 28:
12670
- _context18.next = 30;
12703
+ _context19.next = 30;
12671
12704
  return response.json();
12672
12705
 
12673
12706
  case 30:
12674
- json = _context18.sent;
12707
+ json = _context19.sent;
12675
12708
  if (Array.isArray(json.results)) {
12676
- _context18.next = 33;
12709
+ _context19.next = 33;
12677
12710
  break;
12678
12711
  }
12679
- return _context18.abrupt("return", "INVALID API RESPONSE");
12712
+ return _context19.abrupt("return", "INVALID API RESPONSE");
12680
12713
 
12681
12714
  case 33:
12682
- return _context18.abrupt("return", json.results.map((function(_ref6) {
12715
+ return _context19.abrupt("return", json.results.map((function(_ref6) {
12683
12716
  var confirmations = _ref6.confirmations, dataDecoded = _ref6.dataDecoded, rest = _objectWithoutProperties(_ref6, _excluded);
12684
12717
  return rest;
12685
12718
  })));
12686
12719
 
12687
12720
  case 36:
12688
- _context18.prev = 36;
12689
- _context18.t0 = _context18["catch"](22);
12690
- console.log(_context18.t0);
12691
- return _context18.abrupt("return", "ERROR IN FETCHING");
12721
+ _context19.prev = 36;
12722
+ _context19.t0 = _context19["catch"](22);
12723
+ console.log(_context19.t0);
12724
+ return _context19.abrupt("return", "ERROR IN FETCHING");
12692
12725
 
12693
12726
  case 40:
12694
12727
  case "end":
12695
- return _context18.stop();
12728
+ return _context19.stop();
12696
12729
  }
12697
- }), _callee15, null, [ [ 22, 36 ] ]);
12730
+ }), _callee16, null, [ [ 22, 36 ] ]);
12698
12731
  })));
12699
12732
  return _SAFE.apply(this, arguments);
12700
12733
  }
@@ -12702,78 +12735,78 @@ function _typeof(o) {
12702
12735
  return _DEFILLAMA.apply(this, arguments);
12703
12736
  }
12704
12737
  function _DEFILLAMA() {
12705
- _DEFILLAMA = _asyncToGenerator(_regeneratorRuntime().mark((function _callee16() {
12706
- var _argsToArray17, _argsToArray18, category, apiKey, categoryList, categoryMap, url, response, json, _args19 = arguments;
12707
- return _regeneratorRuntime().wrap((function _callee16$(_context19) {
12708
- while (1) switch (_context19.prev = _context19.next) {
12738
+ _DEFILLAMA = _asyncToGenerator(_regeneratorRuntime().mark((function _callee17() {
12739
+ var _argsToArray19, _argsToArray20, category, apiKey, categoryList, categoryMap, url, response, json, _args20 = arguments;
12740
+ return _regeneratorRuntime().wrap((function _callee17$(_context20) {
12741
+ while (1) switch (_context20.prev = _context20.next) {
12709
12742
  case 0:
12710
- _argsToArray17 = argsToArray(_args19), _argsToArray18 = _slicedToArray(_argsToArray17, 1),
12711
- category = _argsToArray18[0];
12743
+ _argsToArray19 = argsToArray(_args20), _argsToArray20 = _slicedToArray(_argsToArray19, 1),
12744
+ category = _argsToArray20[0];
12712
12745
  apiKey = window.localStorage.getItem(SERVICE_API_KEY.Defillama);
12713
12746
  if (apiKey) {
12714
- _context19.next = 4;
12747
+ _context20.next = 4;
12715
12748
  break;
12716
12749
  }
12717
- return _context19.abrupt("return", "".concat(SERVICE_API_KEY.Defillama).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
12750
+ return _context20.abrupt("return", "".concat(SERVICE_API_KEY.Defillama).concat(ERROR_MESSAGES_FLAG.MISSING_KEY));
12718
12751
 
12719
12752
  case 4:
12720
12753
  categoryList = [ "protocols", "yields", "dex", "fees" ];
12721
12754
  categoryMap = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, categoryList[0], "https://api.llama.fi/protocols"), categoryList[1], "https://yields.llama.fi/pools"), categoryList[2], "https://api.llama.fi/overview/dexs?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true"), categoryList[3], "https://api.llama.fi/overview/fees?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyFees");
12722
12755
  url = categoryMap[category];
12723
- _context19.prev = 7;
12724
- _context19.next = 10;
12756
+ _context20.prev = 7;
12757
+ _context20.next = 10;
12725
12758
  return fetch(url);
12726
12759
 
12727
12760
  case 10:
12728
- response = _context19.sent;
12761
+ response = _context20.sent;
12729
12762
  if (response.ok) {
12730
- _context19.next = 13;
12763
+ _context20.next = 13;
12731
12764
  break;
12732
12765
  }
12733
12766
  throw new Error("HTTP error! Status: ".concat(response.status));
12734
12767
 
12735
12768
  case 13:
12736
- _context19.next = 15;
12769
+ _context20.next = 15;
12737
12770
  return response.json();
12738
12771
 
12739
12772
  case 15:
12740
- json = _context19.sent;
12741
- _context19.t0 = category;
12742
- _context19.next = _context19.t0 === categoryList[0] ? 19 : _context19.t0 === categoryList[1] ? 21 : _context19.t0 === categoryList[2] ? 23 : _context19.t0 === categoryList[3] ? 25 : 27;
12773
+ json = _context20.sent;
12774
+ _context20.t0 = category;
12775
+ _context20.next = _context20.t0 === categoryList[0] ? 19 : _context20.t0 === categoryList[1] ? 21 : _context20.t0 === categoryList[2] ? 23 : _context20.t0 === categoryList[3] ? 25 : 27;
12743
12776
  break;
12744
12777
 
12745
12778
  case 19:
12746
12779
  if (json.length > 500) {
12747
12780
  json = json.slice(0, 500);
12748
12781
  }
12749
- return _context19.abrupt("break", 27);
12782
+ return _context20.abrupt("break", 27);
12750
12783
 
12751
12784
  case 21:
12752
12785
  json = json.data.slice(0, 500);
12753
- return _context19.abrupt("break", 27);
12786
+ return _context20.abrupt("break", 27);
12754
12787
 
12755
12788
  case 23:
12756
12789
  json = json.protocols.slice(0, 500);
12757
- return _context19.abrupt("break", 27);
12790
+ return _context20.abrupt("break", 27);
12758
12791
 
12759
12792
  case 25:
12760
12793
  json = json.protocols.slice(0, 500);
12761
- return _context19.abrupt("break", 27);
12794
+ return _context20.abrupt("break", 27);
12762
12795
 
12763
12796
  case 27:
12764
- return _context19.abrupt("return", removeNestedStructure(Array.isArray(json) ? json : [ json ]));
12797
+ return _context20.abrupt("return", removeNestedStructure(Array.isArray(json) ? json : [ json ]));
12765
12798
 
12766
12799
  case 30:
12767
- _context19.prev = 30;
12768
- _context19.t1 = _context19["catch"](7);
12769
- console.log(_context19.t1);
12770
- return _context19.abrupt("return", "ERROR IN FETCHING");
12800
+ _context20.prev = 30;
12801
+ _context20.t1 = _context20["catch"](7);
12802
+ console.log(_context20.t1);
12803
+ return _context20.abrupt("return", "ERROR IN FETCHING");
12771
12804
 
12772
12805
  case 34:
12773
12806
  case "end":
12774
- return _context19.stop();
12807
+ return _context20.stop();
12775
12808
  }
12776
- }), _callee16, null, [ [ 7, 30 ] ]);
12809
+ }), _callee17, null, [ [ 7, 30 ] ]);
12777
12810
  })));
12778
12811
  return _DEFILLAMA.apply(this, arguments);
12779
12812
  }
@@ -12781,47 +12814,47 @@ function _typeof(o) {
12781
12814
  return _UNISWAP.apply(this, arguments);
12782
12815
  }
12783
12816
  function _UNISWAP() {
12784
- _UNISWAP = _asyncToGenerator(_regeneratorRuntime().mark((function _callee17() {
12785
- var _argsToArray19, _argsToArray20, graphType, category, param1, param2, baseUrl, url, res, json, _args20 = arguments;
12786
- return _regeneratorRuntime().wrap((function _callee17$(_context20) {
12787
- while (1) switch (_context20.prev = _context20.next) {
12817
+ _UNISWAP = _asyncToGenerator(_regeneratorRuntime().mark((function _callee18() {
12818
+ var _argsToArray21, _argsToArray22, graphType, category, param1, param2, baseUrl, url, res, json, _args21 = arguments;
12819
+ return _regeneratorRuntime().wrap((function _callee18$(_context21) {
12820
+ while (1) switch (_context21.prev = _context21.next) {
12788
12821
  case 0:
12789
- _argsToArray19 = argsToArray(_args20), _argsToArray20 = _slicedToArray(_argsToArray19, 4),
12790
- graphType = _argsToArray20[0], category = _argsToArray20[1], param1 = _argsToArray20[2],
12791
- param2 = _argsToArray20[3];
12822
+ _argsToArray21 = argsToArray(_args21), _argsToArray22 = _slicedToArray(_argsToArray21, 4),
12823
+ graphType = _argsToArray22[0], category = _argsToArray22[1], param1 = _argsToArray22[2],
12824
+ param2 = _argsToArray22[3];
12792
12825
  baseUrl = "https://onchain-proxy.fileverse.io/third-party";
12793
- _context20.prev = 2;
12826
+ _context21.prev = 2;
12794
12827
  url = "".concat(baseUrl, "?service=uniswap&graphType=").concat(graphType, "&category=").concat(category, "&input1=").concat(param1, "&input2=").concat(param2);
12795
- _context20.next = 6;
12828
+ _context21.next = 6;
12796
12829
  return fetch(url);
12797
12830
 
12798
12831
  case 6:
12799
- res = _context20.sent;
12832
+ res = _context21.sent;
12800
12833
  if (res.ok) {
12801
- _context20.next = 9;
12834
+ _context21.next = 9;
12802
12835
  break;
12803
12836
  }
12804
12837
  throw new Error("HTTP ".concat(res.status));
12805
12838
 
12806
12839
  case 9:
12807
- _context20.next = 11;
12840
+ _context21.next = 11;
12808
12841
  return res.json();
12809
12842
 
12810
12843
  case 11:
12811
- json = _context20.sent;
12812
- return _context20.abrupt("return", removeNestedStructure(json));
12844
+ json = _context21.sent;
12845
+ return _context21.abrupt("return", removeNestedStructure(json));
12813
12846
 
12814
12847
  case 15:
12815
- _context20.prev = 15;
12816
- _context20.t0 = _context20["catch"](2);
12817
- console.error("UNISWAP fetch error:", _context20.t0);
12818
- return _context20.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
12848
+ _context21.prev = 15;
12849
+ _context21.t0 = _context21["catch"](2);
12850
+ console.error("UNISWAP fetch error:", _context21.t0);
12851
+ return _context21.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
12819
12852
 
12820
12853
  case 19:
12821
12854
  case "end":
12822
- return _context20.stop();
12855
+ return _context21.stop();
12823
12856
  }
12824
- }), _callee17, null, [ [ 2, 15 ] ]);
12857
+ }), _callee18, null, [ [ 2, 15 ] ]);
12825
12858
  })));
12826
12859
  return _UNISWAP.apply(this, arguments);
12827
12860
  }
@@ -12829,47 +12862,47 @@ function _typeof(o) {
12829
12862
  return _AAVE.apply(this, arguments);
12830
12863
  }
12831
12864
  function _AAVE() {
12832
- _AAVE = _asyncToGenerator(_regeneratorRuntime().mark((function _callee18() {
12833
- var _argsToArray21, _argsToArray22, graphType, category, param1, param2, baseUrl, url, res, json, _args21 = arguments;
12834
- return _regeneratorRuntime().wrap((function _callee18$(_context21) {
12835
- while (1) switch (_context21.prev = _context21.next) {
12865
+ _AAVE = _asyncToGenerator(_regeneratorRuntime().mark((function _callee19() {
12866
+ var _argsToArray23, _argsToArray24, graphType, category, param1, param2, baseUrl, url, res, json, _args22 = arguments;
12867
+ return _regeneratorRuntime().wrap((function _callee19$(_context22) {
12868
+ while (1) switch (_context22.prev = _context22.next) {
12836
12869
  case 0:
12837
- _argsToArray21 = argsToArray(_args21), _argsToArray22 = _slicedToArray(_argsToArray21, 4),
12838
- graphType = _argsToArray22[0], category = _argsToArray22[1], param1 = _argsToArray22[2],
12839
- param2 = _argsToArray22[3];
12870
+ _argsToArray23 = argsToArray(_args22), _argsToArray24 = _slicedToArray(_argsToArray23, 4),
12871
+ graphType = _argsToArray24[0], category = _argsToArray24[1], param1 = _argsToArray24[2],
12872
+ param2 = _argsToArray24[3];
12840
12873
  baseUrl = "https://onchain-proxy.fileverse.io/third-party";
12841
- _context21.prev = 2;
12874
+ _context22.prev = 2;
12842
12875
  url = "".concat(baseUrl, "?service=aave&graphType=").concat(graphType, "&category=").concat(category, "&input1=").concat(param1, "&input2=").concat(param2);
12843
- _context21.next = 6;
12876
+ _context22.next = 6;
12844
12877
  return fetch(url);
12845
12878
 
12846
12879
  case 6:
12847
- res = _context21.sent;
12880
+ res = _context22.sent;
12848
12881
  if (res.ok) {
12849
- _context21.next = 9;
12882
+ _context22.next = 9;
12850
12883
  break;
12851
12884
  }
12852
12885
  throw new Error("HTTP ".concat(res.status));
12853
12886
 
12854
12887
  case 9:
12855
- _context21.next = 11;
12888
+ _context22.next = 11;
12856
12889
  return res.json();
12857
12890
 
12858
12891
  case 11:
12859
- json = _context21.sent;
12860
- return _context21.abrupt("return", removeNestedStructure(json));
12892
+ json = _context22.sent;
12893
+ return _context22.abrupt("return", removeNestedStructure(json));
12861
12894
 
12862
12895
  case 15:
12863
- _context21.prev = 15;
12864
- _context21.t0 = _context21["catch"](2);
12865
- console.error("AAVE fetch error:", _context21.t0);
12866
- return _context21.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
12896
+ _context22.prev = 15;
12897
+ _context22.t0 = _context22["catch"](2);
12898
+ console.error("AAVE fetch error:", _context22.t0);
12899
+ return _context22.abrupt("return", ERROR_MESSAGES_FLAG.DEFAULT);
12867
12900
 
12868
12901
  case 19:
12869
12902
  case "end":
12870
- return _context21.stop();
12903
+ return _context22.stop();
12871
12904
  }
12872
- }), _callee18, null, [ [ 2, 15 ] ]);
12905
+ }), _callee19, null, [ [ 2, 15 ] ]);
12873
12906
  })));
12874
12907
  return _AAVE.apply(this, arguments);
12875
12908
  }
@@ -12920,6 +12953,7 @@ function _typeof(o) {
12920
12953
  exports.AVERAGEA = AVERAGEA;
12921
12954
  exports.AVERAGEIF = AVERAGEIF;
12922
12955
  exports.AVERAGEIFS = AVERAGEIFS;
12956
+ exports.BASE = BASE;
12923
12957
  exports.BESSELI = BESSELI;
12924
12958
  exports.BESSELJ = BESSELJ;
12925
12959
  exports.BESSELK = BESSELK;