@fileverse-dev/formulajs 4.4.45 → 4.4.46-remove-lens-fc-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.45 */
1
+ /* @fileverse-dev/formulajs v4.4.46-remove-lens-fc-1 */
2
2
  var _excluded = [ "confirmations", "dataDecoded" ];
3
3
 
4
4
  function _objectWithoutProperties(e, t) {
@@ -16487,13 +16487,13 @@ function _typeof(o) {
16487
16487
  return _AAVE.apply(this, arguments);
16488
16488
  }
16489
16489
  function _AAVE() {
16490
- _AAVE = _asyncToGenerator(_regenerator().m(function _callee42() {
16491
- var _argsToArray3, _argsToArray4, graphType, category, param1, columnName, baseUrl, url, res, _json, filterColumnName, _data5, _args43 = arguments, _t1;
16492
- return _regenerator().w(function(_context43) {
16493
- while (1) switch (_context43.p = _context43.n) {
16490
+ _AAVE = _asyncToGenerator(_regenerator().m(function _callee41() {
16491
+ var _argsToArray3, _argsToArray4, graphType, category, param1, columnName, baseUrl, url, res, _json, filterColumnName, _data5, _args42 = arguments, _t1;
16492
+ return _regenerator().w(function(_context42) {
16493
+ while (1) switch (_context42.p = _context42.n) {
16494
16494
  case 0:
16495
- _context43.p = 0;
16496
- _argsToArray3 = argsToArray(_args43), _argsToArray4 = _slicedToArray(_argsToArray3, 4),
16495
+ _context42.p = 0;
16496
+ _argsToArray3 = argsToArray(_args42), _argsToArray4 = _slicedToArray(_argsToArray3, 4),
16497
16497
  graphType = _argsToArray4[0], category = _argsToArray4[1], param1 = _argsToArray4[2],
16498
16498
  columnName = _argsToArray4[3];
16499
16499
  validateParams(aaveParamsSchema, {
@@ -16504,59 +16504,63 @@ function _typeof(o) {
16504
16504
  });
16505
16505
  baseUrl = "https://onchain-proxy.fileverse.io/third-party";
16506
16506
  url = "".concat(baseUrl) + "?service=aave" + "&graphType=".concat(encodeURIComponent(graphType)) + "&category=".concat(encodeURIComponent(category)) + "&input1=".concat(encodeURIComponent(param1));
16507
- _context43.n = 1;
16507
+ _context42.n = 1;
16508
16508
  return fetch(url);
16509
16509
 
16510
16510
  case 1:
16511
- res = _context43.v;
16511
+ res = _context42.v;
16512
16512
  if (res.ok) {
16513
- _context43.n = 2;
16513
+ _context42.n = 2;
16514
16514
  break;
16515
16515
  }
16516
16516
  throw new NetworkError("AAVE", res.status);
16517
16517
 
16518
16518
  case 2:
16519
- _context43.n = 3;
16519
+ _context42.n = 3;
16520
16520
  return res.json();
16521
16521
 
16522
16522
  case 3:
16523
- _json = _context43.v;
16523
+ _json = _context42.v;
16524
16524
  filterColumnName = columnName === null || columnName === void 0 ? void 0 : columnName.split(",").map(function(s) {
16525
16525
  return s.trim();
16526
16526
  });
16527
16527
  if (!Array.isArray(_json)) {
16528
- _context43.n = 4;
16528
+ _context42.n = 4;
16529
16529
  break;
16530
16530
  }
16531
- return _context43.a(2, _json.map(function(item) {
16531
+ return _context42.a(2, _json.map(function(item) {
16532
16532
  var flat = {};
16533
- Object.entries(item).forEach(function(_ref29) {
16534
- var _ref30 = _slicedToArray(_ref29, 2), k = _ref30[0], v = _ref30[1];
16535
- if (columnName && filterColumnName.includes(k) && (v === null || _typeof(v) !== "object")) flat[k] = v;
16533
+ Object.entries(item).forEach(function(_ref28) {
16534
+ var _ref29 = _slicedToArray(_ref28, 2), k = _ref29[0], v = _ref29[1];
16535
+ if (columnName) {
16536
+ if (filterColumnName.includes(k) && (v === null || _typeof(v) !== "object")) flat[k] = v;
16537
+ } else {
16538
+ if (v === null || _typeof(v) !== "object") flat[k] = v;
16539
+ }
16536
16540
  });
16537
16541
  return flat;
16538
16542
  }));
16539
16543
 
16540
16544
  case 4:
16541
16545
  if (!(columnName && _typeof(_json) === "object")) {
16542
- _context43.n = 5;
16546
+ _context42.n = 5;
16543
16547
  break;
16544
16548
  }
16545
16549
  _data5 = {};
16546
16550
  filterColumnName.forEach(function(k) {
16547
16551
  _data5[k] = _json[k];
16548
16552
  });
16549
- return _context43.a(2, _data5);
16553
+ return _context42.a(2, _data5);
16550
16554
 
16551
16555
  case 5:
16552
- return _context43.a(2, _json);
16556
+ return _context42.a(2, _json);
16553
16557
 
16554
16558
  case 6:
16555
- _context43.p = 6;
16556
- _t1 = _context43.v;
16557
- return _context43.a(2, errorMessageHandler(_t1, "AAVE"));
16559
+ _context42.p = 6;
16560
+ _t1 = _context42.v;
16561
+ return _context42.a(2, errorMessageHandler(_t1, "AAVE"));
16558
16562
  }
16559
- }, _callee42, null, [ [ 0, 6 ] ]);
16563
+ }, _callee41, null, [ [ 0, 6 ] ]);
16560
16564
  }));
16561
16565
  return _AAVE.apply(this, arguments);
16562
16566
  }
@@ -16617,16 +16621,16 @@ function _typeof(o) {
16617
16621
  return _fromEnsNameToAddress.apply(this, arguments);
16618
16622
  }
16619
16623
  function _fromEnsNameToAddress() {
16620
- _fromEnsNameToAddress = _asyncToGenerator(_regenerator().m(function _callee43(name) {
16624
+ _fromEnsNameToAddress = _asyncToGenerator(_regenerator().m(function _callee42(name) {
16621
16625
  var ALCHEMY_KEY, provider, resolved, _t10;
16622
- return _regenerator().w(function(_context44) {
16623
- while (1) switch (_context44.p = _context44.n) {
16626
+ return _regenerator().w(function(_context43) {
16627
+ while (1) switch (_context43.p = _context43.n) {
16624
16628
  case 0:
16625
16629
  if (!(typeof ethers === "undefined")) {
16626
- _context44.n = 1;
16630
+ _context43.n = 1;
16627
16631
  break;
16628
16632
  }
16629
- _context44.n = 1;
16633
+ _context43.n = 1;
16630
16634
  return new Promise(function(resolve, reject) {
16631
16635
  var script = document.createElement("script");
16632
16636
  script.src = "https://cdn.jsdelivr.net/npm/ethers@6.10.0/dist/ethers.umd.min.js";
@@ -16638,29 +16642,29 @@ function _typeof(o) {
16638
16642
  case 1:
16639
16643
  ALCHEMY_KEY = window.localStorage.getItem(UTILITY.ALCHEMY_API_KEY);
16640
16644
  if (ALCHEMY_KEY) {
16641
- _context44.n = 2;
16645
+ _context43.n = 2;
16642
16646
  break;
16643
16647
  }
16644
16648
  console.error("alchemy api key missing");
16645
- return _context44.a(2, null);
16649
+ return _context43.a(2, null);
16646
16650
 
16647
16651
  case 2:
16648
16652
  provider = new ethers.AlchemyProvider("mainnet", ALCHEMY_KEY);
16649
- _context44.p = 3;
16650
- _context44.n = 4;
16653
+ _context43.p = 3;
16654
+ _context43.n = 4;
16651
16655
  return provider.resolveName(name);
16652
16656
 
16653
16657
  case 4:
16654
- resolved = _context44.v;
16655
- return _context44.a(2, resolved || null);
16658
+ resolved = _context43.v;
16659
+ return _context43.a(2, resolved || null);
16656
16660
 
16657
16661
  case 5:
16658
- _context44.p = 5;
16659
- _t10 = _context44.v;
16662
+ _context43.p = 5;
16663
+ _t10 = _context43.v;
16660
16664
  console.error("ENS resolution failed:", _t10.message);
16661
- return _context44.a(2, null);
16665
+ return _context43.a(2, null);
16662
16666
  }
16663
- }, _callee43, null, [ [ 3, 5 ] ]);
16667
+ }, _callee42, null, [ [ 3, 5 ] ]);
16664
16668
  }));
16665
16669
  return _fromEnsNameToAddress.apply(this, arguments);
16666
16670
  }
@@ -16846,70 +16850,70 @@ function _typeof(o) {
16846
16850
  return _EOA.apply(this, arguments);
16847
16851
  }
16848
16852
  function _EOA() {
16849
- _EOA = _asyncToGenerator(_regenerator().m(function _callee45() {
16850
- var fetchJSON, _argsToArray5, _argsToArray6, addresses, category, chains, startTime, endTime, _argsToArray6$, page, _argsToArray6$2, offset, columnName, apiKey, INPUTS, CHAINS, ADDRESS_MAP, _iterator55, _step55, inp, _address, ADDRS, out, _iterator56, _step56, _loop2, _ret, filterColumnName, _args49 = arguments, _t11, _t12, _t13;
16851
- return _regenerator().w(function(_context49) {
16852
- while (1) switch (_context49.p = _context49.n) {
16853
+ _EOA = _asyncToGenerator(_regenerator().m(function _callee44() {
16854
+ var fetchJSON, _argsToArray5, _argsToArray6, addresses, category, chains, startTime, endTime, _argsToArray6$, page, _argsToArray6$2, offset, columnName, apiKey, INPUTS, CHAINS, ADDRESS_MAP, _iterator55, _step55, inp, _address, ADDRS, out, _iterator56, _step56, _loop2, _ret, filterColumnName, _args48 = arguments, _t11, _t12, _t13;
16855
+ return _regenerator().w(function(_context48) {
16856
+ while (1) switch (_context48.p = _context48.n) {
16853
16857
  case 0:
16854
- _context49.p = 0;
16858
+ _context48.p = 0;
16855
16859
  fetchJSON = function() {
16856
- var _ref31 = _asyncToGenerator(_regenerator().m(function _callee44(url) {
16857
- var _getUrlAndHeaders3, finalUrl, HEADERS, res, json;
16858
- return _regenerator().w(function(_context45) {
16859
- while (1) switch (_context45.n) {
16860
+ var _ref30 = _asyncToGenerator(_regenerator().m(function _callee43(url) {
16861
+ var _getUrlAndHeaders2, finalUrl, HEADERS, res, json;
16862
+ return _regenerator().w(function(_context44) {
16863
+ while (1) switch (_context44.n) {
16860
16864
  case 0:
16861
- _getUrlAndHeaders3 = getUrlAndHeaders({
16865
+ _getUrlAndHeaders2 = getUrlAndHeaders({
16862
16866
  url: url,
16863
16867
  serviceName: "Etherscan",
16864
16868
  headers: {}
16865
- }), finalUrl = _getUrlAndHeaders3.URL, HEADERS = _getUrlAndHeaders3.HEADERS;
16866
- _context45.n = 1;
16869
+ }), finalUrl = _getUrlAndHeaders2.URL, HEADERS = _getUrlAndHeaders2.HEADERS;
16870
+ _context44.n = 1;
16867
16871
  return fetch(finalUrl, {
16868
16872
  method: "GET",
16869
16873
  headers: HEADERS
16870
16874
  });
16871
16875
 
16872
16876
  case 1:
16873
- res = _context45.v;
16877
+ res = _context44.v;
16874
16878
  if (res.ok) {
16875
- _context45.n = 2;
16879
+ _context44.n = 2;
16876
16880
  break;
16877
16881
  }
16878
16882
  throw new NetworkError(SERVICES_API_KEY.Etherscan, res.status);
16879
16883
 
16880
16884
  case 2:
16881
- _context45.n = 3;
16885
+ _context44.n = 3;
16882
16886
  return res.json();
16883
16887
 
16884
16888
  case 3:
16885
- json = _context45.v;
16889
+ json = _context44.v;
16886
16890
  if (!(typeof json.result === "string")) {
16887
- _context45.n = 5;
16891
+ _context44.n = 5;
16888
16892
  break;
16889
16893
  }
16890
16894
  if (!json.result.includes("Invalid API Key")) {
16891
- _context45.n = 4;
16895
+ _context44.n = 4;
16892
16896
  break;
16893
16897
  }
16894
16898
  throw new InvalidApiKeyError(SERVICES_API_KEY.Etherscan);
16895
16899
 
16896
16900
  case 4:
16897
16901
  if (!json.result.includes("Max rate limit reached")) {
16898
- _context45.n = 5;
16902
+ _context44.n = 5;
16899
16903
  break;
16900
16904
  }
16901
16905
  throw new RateLimitError(SERVICES_API_KEY.Etherscan);
16902
16906
 
16903
16907
  case 5:
16904
- return _context45.a(2, json.result);
16908
+ return _context44.a(2, json.result);
16905
16909
  }
16906
- }, _callee44);
16910
+ }, _callee43);
16907
16911
  }));
16908
- return function fetchJSON(_x67) {
16909
- return _ref31.apply(this, arguments);
16912
+ return function fetchJSON(_x65) {
16913
+ return _ref30.apply(this, arguments);
16910
16914
  };
16911
16915
  }();
16912
- _argsToArray5 = argsToArray(_args49), _argsToArray6 = _slicedToArray(_argsToArray5, 8),
16916
+ _argsToArray5 = argsToArray(_args48), _argsToArray6 = _slicedToArray(_argsToArray5, 8),
16913
16917
  addresses = _argsToArray6[0], category = _argsToArray6[1], chains = _argsToArray6[2],
16914
16918
  startTime = _argsToArray6[3], endTime = _argsToArray6[4], _argsToArray6$ = _argsToArray6[5],
16915
16919
  page = _argsToArray6$ === void 0 ? 1 : _argsToArray6$, _argsToArray6$2 = _argsToArray6[6],
@@ -16933,89 +16937,89 @@ function _typeof(o) {
16933
16937
  }).filter(Boolean);
16934
16938
  ADDRESS_MAP = {};
16935
16939
  _iterator55 = _createForOfIteratorHelper(INPUTS);
16936
- _context49.p = 1;
16940
+ _context48.p = 1;
16937
16941
  _iterator55.s();
16938
16942
 
16939
16943
  case 2:
16940
16944
  if ((_step55 = _iterator55.n()).done) {
16941
- _context49.n = 6;
16945
+ _context48.n = 6;
16942
16946
  break;
16943
16947
  }
16944
16948
  inp = _step55.value;
16945
16949
  if (!isAddress$1.isAddress(inp)) {
16946
- _context49.n = 3;
16950
+ _context48.n = 3;
16947
16951
  break;
16948
16952
  }
16949
16953
  ADDRESS_MAP[inp.toLowerCase()] = null;
16950
- _context49.n = 5;
16954
+ _context48.n = 5;
16951
16955
  break;
16952
16956
 
16953
16957
  case 3:
16954
- _context49.n = 4;
16958
+ _context48.n = 4;
16955
16959
  return fromEnsNameToAddress$1.validateAndGetAddress(inp);
16956
16960
 
16957
16961
  case 4:
16958
- _address = _context49.v;
16962
+ _address = _context48.v;
16959
16963
  ADDRESS_MAP[_address.toLowerCase()] = _address;
16960
16964
 
16961
16965
  case 5:
16962
- _context49.n = 2;
16966
+ _context48.n = 2;
16963
16967
  break;
16964
16968
 
16965
16969
  case 6:
16966
- _context49.n = 8;
16970
+ _context48.n = 8;
16967
16971
  break;
16968
16972
 
16969
16973
  case 7:
16970
- _context49.p = 7;
16971
- _t11 = _context49.v;
16974
+ _context48.p = 7;
16975
+ _t11 = _context48.v;
16972
16976
  _iterator55.e(_t11);
16973
16977
 
16974
16978
  case 8:
16975
- _context49.p = 8;
16979
+ _context48.p = 8;
16976
16980
  _iterator55.f();
16977
- return _context49.f(8);
16981
+ return _context48.f(8);
16978
16982
 
16979
16983
  case 9:
16980
16984
  ADDRS = Object.keys(ADDRESS_MAP);
16981
16985
  out = [];
16982
16986
  _iterator56 = _createForOfIteratorHelper(CHAINS);
16983
- _context49.p = 10;
16987
+ _context48.p = 10;
16984
16988
  _loop2 = _regenerator().m(function _loop2() {
16985
16989
  var chain, chainId, _loop3, _ret2, _i32, sb, eb, _loop4, _ret3, _i33, _ADDRS;
16986
- return _regenerator().w(function(_context48) {
16987
- while (1) switch (_context48.n) {
16990
+ return _regenerator().w(function(_context47) {
16991
+ while (1) switch (_context47.n) {
16988
16992
  case 0:
16989
16993
  chain = _step56.value;
16990
16994
  chainId = CHAIN_ID_MAP[chain];
16991
16995
  if (chainId) {
16992
- _context48.n = 1;
16996
+ _context47.n = 1;
16993
16997
  break;
16994
16998
  }
16995
16999
  throw new ValidationError("Invalid chain: ".concat(chain));
16996
17000
 
16997
17001
  case 1:
16998
17002
  if (!(category === "balance")) {
16999
- _context48.n = 6;
17003
+ _context47.n = 6;
17000
17004
  break;
17001
17005
  }
17002
17006
  _loop3 = _regenerator().m(function _loop3(_i32) {
17003
17007
  var slice, url, data;
17004
- return _regenerator().w(function(_context46) {
17005
- while (1) switch (_context46.n) {
17008
+ return _regenerator().w(function(_context45) {
17009
+ while (1) switch (_context45.n) {
17006
17010
  case 0:
17007
17011
  slice = ADDRS.slice(_i32, _i32 + 20).join(",");
17008
17012
  url = "https://api.etherscan.io/v2/api?chainid=".concat(chainId) + "&module=account&action=addresstokenbalance&address=".concat(slice) + "&page=".concat(page, "&offset=").concat(offset, "&apikey=").concat(apiKey);
17009
- _context46.n = 1;
17013
+ _context45.n = 1;
17010
17014
  return fetchJSON(url);
17011
17015
 
17012
17016
  case 1:
17013
- data = _context46.v;
17017
+ data = _context45.v;
17014
17018
  if (Array.isArray(data)) {
17015
- _context46.n = 2;
17019
+ _context45.n = 2;
17016
17020
  break;
17017
17021
  }
17018
- return _context46.a(2, {
17022
+ return _context45.a(2, {
17019
17023
  v: {
17020
17024
  v: data
17021
17025
  }
@@ -17031,7 +17035,7 @@ function _typeof(o) {
17031
17035
  });
17032
17036
 
17033
17037
  case 3:
17034
- return _context46.a(2);
17038
+ return _context45.a(2);
17035
17039
  }
17036
17040
  }, _loop3);
17037
17041
  });
@@ -17039,48 +17043,48 @@ function _typeof(o) {
17039
17043
 
17040
17044
  case 2:
17041
17045
  if (!(_i32 < ADDRS.length)) {
17042
- _context48.n = 5;
17046
+ _context47.n = 5;
17043
17047
  break;
17044
17048
  }
17045
- return _context48.d(_regeneratorValues(_loop3(_i32)), 3);
17049
+ return _context47.d(_regeneratorValues(_loop3(_i32)), 3);
17046
17050
 
17047
17051
  case 3:
17048
- _ret2 = _context48.v;
17052
+ _ret2 = _context47.v;
17049
17053
  if (!_ret2) {
17050
- _context48.n = 4;
17054
+ _context47.n = 4;
17051
17055
  break;
17052
17056
  }
17053
- return _context48.a(2, _ret2.v);
17057
+ return _context47.a(2, _ret2.v);
17054
17058
 
17055
17059
  case 4:
17056
17060
  _i32 += 20;
17057
- _context48.n = 2;
17061
+ _context47.n = 2;
17058
17062
  break;
17059
17063
 
17060
17064
  case 5:
17061
- _context48.n = 14;
17065
+ _context47.n = 14;
17062
17066
  break;
17063
17067
 
17064
17068
  case 6:
17065
- _context48.n = 7;
17069
+ _context47.n = 7;
17066
17070
  return fromTimestampToBlock.fromTimeStampToBlock(toTimestamp(startTime), chain, apiKey);
17067
17071
 
17068
17072
  case 7:
17069
- sb = _context48.v;
17070
- _context48.n = 8;
17073
+ sb = _context47.v;
17074
+ _context47.n = 8;
17071
17075
  return fromTimestampToBlock.fromTimeStampToBlock(toTimestamp(endTime), chain, apiKey);
17072
17076
 
17073
17077
  case 8:
17074
- eb = _context48.v;
17078
+ eb = _context47.v;
17075
17079
  if (sb) {
17076
- _context48.n = 9;
17080
+ _context47.n = 9;
17077
17081
  break;
17078
17082
  }
17079
17083
  throw new ValidationError("Invalid startTime: ".concat(startTime));
17080
17084
 
17081
17085
  case 9:
17082
17086
  if (eb) {
17083
- _context48.n = 10;
17087
+ _context47.n = 10;
17084
17088
  break;
17085
17089
  }
17086
17090
  throw new ValidationError("Invalid endTime: ".concat(endTime));
@@ -17088,21 +17092,21 @@ function _typeof(o) {
17088
17092
  case 10:
17089
17093
  _loop4 = _regenerator().m(function _loop4() {
17090
17094
  var addr, url, data;
17091
- return _regenerator().w(function(_context47) {
17092
- while (1) switch (_context47.n) {
17095
+ return _regenerator().w(function(_context46) {
17096
+ while (1) switch (_context46.n) {
17093
17097
  case 0:
17094
17098
  addr = _ADDRS[_i33];
17095
17099
  url = "https://api.etherscan.io/v2/api?chainid=".concat(chainId) + "&module=account&action=tokentx&address=".concat(addr) + "&startblock=".concat(sb, "&endblock=").concat(eb) + "&page=".concat(page, "&offset=").concat(offset, "&sort=asc&apikey=").concat(apiKey);
17096
- _context47.n = 1;
17100
+ _context46.n = 1;
17097
17101
  return fetchJSON(url);
17098
17102
 
17099
17103
  case 1:
17100
- data = _context47.v;
17104
+ data = _context46.v;
17101
17105
  if (Array.isArray(data)) {
17102
- _context47.n = 2;
17106
+ _context46.n = 2;
17103
17107
  break;
17104
17108
  }
17105
- return _context47.a(2, {
17109
+ return _context46.a(2, {
17106
17110
  v: {
17107
17111
  v: data
17108
17112
  }
@@ -17118,7 +17122,7 @@ function _typeof(o) {
17118
17122
  });
17119
17123
 
17120
17124
  case 3:
17121
- return _context47.a(2);
17125
+ return _context46.a(2);
17122
17126
  }
17123
17127
  }, _loop4);
17124
17128
  });
@@ -17126,26 +17130,26 @@ function _typeof(o) {
17126
17130
 
17127
17131
  case 11:
17128
17132
  if (!(_i33 < _ADDRS.length)) {
17129
- _context48.n = 14;
17133
+ _context47.n = 14;
17130
17134
  break;
17131
17135
  }
17132
- return _context48.d(_regeneratorValues(_loop4()), 12);
17136
+ return _context47.d(_regeneratorValues(_loop4()), 12);
17133
17137
 
17134
17138
  case 12:
17135
- _ret3 = _context48.v;
17139
+ _ret3 = _context47.v;
17136
17140
  if (!_ret3) {
17137
- _context48.n = 13;
17141
+ _context47.n = 13;
17138
17142
  break;
17139
17143
  }
17140
- return _context48.a(2, _ret3.v);
17144
+ return _context47.a(2, _ret3.v);
17141
17145
 
17142
17146
  case 13:
17143
17147
  _i33++;
17144
- _context48.n = 11;
17148
+ _context47.n = 11;
17145
17149
  break;
17146
17150
 
17147
17151
  case 14:
17148
- return _context48.a(2);
17152
+ return _context47.a(2);
17149
17153
  }
17150
17154
  }, _loop2);
17151
17155
  });
@@ -17153,46 +17157,46 @@ function _typeof(o) {
17153
17157
 
17154
17158
  case 11:
17155
17159
  if ((_step56 = _iterator56.n()).done) {
17156
- _context49.n = 14;
17160
+ _context48.n = 14;
17157
17161
  break;
17158
17162
  }
17159
- return _context49.d(_regeneratorValues(_loop2()), 12);
17163
+ return _context48.d(_regeneratorValues(_loop2()), 12);
17160
17164
 
17161
17165
  case 12:
17162
- _ret = _context49.v;
17166
+ _ret = _context48.v;
17163
17167
  if (!_ret) {
17164
- _context49.n = 13;
17168
+ _context48.n = 13;
17165
17169
  break;
17166
17170
  }
17167
- return _context49.a(2, _ret.v);
17171
+ return _context48.a(2, _ret.v);
17168
17172
 
17169
17173
  case 13:
17170
- _context49.n = 11;
17174
+ _context48.n = 11;
17171
17175
  break;
17172
17176
 
17173
17177
  case 14:
17174
- _context49.n = 16;
17178
+ _context48.n = 16;
17175
17179
  break;
17176
17180
 
17177
17181
  case 15:
17178
- _context49.p = 15;
17179
- _t12 = _context49.v;
17182
+ _context48.p = 15;
17183
+ _t12 = _context48.v;
17180
17184
  _iterator56.e(_t12);
17181
17185
 
17182
17186
  case 16:
17183
- _context49.p = 16;
17187
+ _context48.p = 16;
17184
17188
  _iterator56.f();
17185
- return _context49.f(16);
17189
+ return _context48.f(16);
17186
17190
 
17187
17191
  case 17:
17188
17192
  if (!columnName) {
17189
- _context49.n = 18;
17193
+ _context48.n = 18;
17190
17194
  break;
17191
17195
  }
17192
17196
  filterColumnName = columnName.split(",").map(function(s) {
17193
17197
  return s.trim();
17194
17198
  });
17195
- return _context49.a(2, out.map(function(obj) {
17199
+ return _context48.a(2, out.map(function(obj) {
17196
17200
  return Object.fromEntries(filterColumnName.filter(function(key) {
17197
17201
  return key in obj;
17198
17202
  }).map(function(key) {
@@ -17201,14 +17205,14 @@ function _typeof(o) {
17201
17205
  }));
17202
17206
 
17203
17207
  case 18:
17204
- return _context49.a(2, out);
17208
+ return _context48.a(2, out);
17205
17209
 
17206
17210
  case 19:
17207
- _context49.p = 19;
17208
- _t13 = _context49.v;
17209
- return _context49.a(2, errorMessageHandler(_t13, "EOA"));
17211
+ _context48.p = 19;
17212
+ _t13 = _context48.v;
17213
+ return _context48.a(2, errorMessageHandler(_t13, "EOA"));
17210
17214
  }
17211
- }, _callee45, null, [ [ 10, 15, 16, 17 ], [ 1, 7, 8, 9 ], [ 0, 19 ] ]);
17215
+ }, _callee44, null, [ [ 10, 15, 16, 17 ], [ 1, 7, 8, 9 ], [ 0, 19 ] ]);
17212
17216
  }));
17213
17217
  return _EOA.apply(this, arguments);
17214
17218
  }
@@ -17238,24 +17242,24 @@ function _typeof(o) {
17238
17242
  return _handleScanRequest.apply(this, arguments);
17239
17243
  }
17240
17244
  function _handleScanRequest() {
17241
- _handleScanRequest = _asyncToGenerator(_regenerator().m(function _callee46(_ref13) {
17242
- var type, address, startDate, endDate, _ref13$page, page, _ref13$offset, offset, apiKey, functionName, chainId, network, apiInfo, baseUrl, ACTION_MAP, action, module, url, _yield$Promise$all, _yield$Promise$all2, startBlock, endBlock, _getUrlAndHeaders4, finalUrl, HEADERS, res, json;
17243
- return _regenerator().w(function(_context50) {
17244
- while (1) switch (_context50.n) {
17245
+ _handleScanRequest = _asyncToGenerator(_regenerator().m(function _callee45(_ref13) {
17246
+ var type, address, startDate, endDate, _ref13$page, page, _ref13$offset, offset, apiKey, functionName, chainId, network, apiInfo, baseUrl, ACTION_MAP, action, module, url, _yield$Promise$all, _yield$Promise$all2, startBlock, endBlock, _getUrlAndHeaders3, finalUrl, HEADERS, res, json;
17247
+ return _regenerator().w(function(_context49) {
17248
+ while (1) switch (_context49.n) {
17245
17249
  case 0:
17246
17250
  type = _ref13.type, address = _ref13.address, startDate = _ref13.startDate, endDate = _ref13.endDate,
17247
17251
  _ref13$page = _ref13.page, page = _ref13$page === void 0 ? 1 : _ref13$page, _ref13$offset = _ref13.offset,
17248
17252
  offset = _ref13$offset === void 0 ? 10 : _ref13$offset, apiKey = _ref13.apiKey,
17249
17253
  functionName = _ref13.functionName, chainId = _ref13.chainId, network = _ref13.network;
17250
17254
  if (!(type !== "gas")) {
17251
- _context50.n = 2;
17255
+ _context49.n = 2;
17252
17256
  break;
17253
17257
  }
17254
- _context50.n = 1;
17258
+ _context49.n = 1;
17255
17259
  return fromEnsNameToAddress$1.validateAndGetAddress(address);
17256
17260
 
17257
17261
  case 1:
17258
- address = _context50.v;
17262
+ address = _context49.v;
17259
17263
 
17260
17264
  case 2:
17261
17265
  apiInfo = {
@@ -17271,7 +17275,7 @@ function _typeof(o) {
17271
17275
  };
17272
17276
  action = ACTION_MAP[type];
17273
17277
  if (action) {
17274
- _context50.n = 3;
17278
+ _context49.n = 3;
17275
17279
  break;
17276
17280
  }
17277
17281
  throw new ValidationError("Invalid type: ".concat(type));
@@ -17280,19 +17284,19 @@ function _typeof(o) {
17280
17284
  module = action === "gasoracle" ? "gastracker" : "account";
17281
17285
  url = "".concat(baseUrl, "?chainid=").concat(chainId, "&module=").concat(module, "&action=").concat(action, "&apikey=").concat(apiKey);
17282
17286
  if (![ "all-txns", "token-txns", "nft-txns" ].includes(type)) {
17283
- _context50.n = 6;
17287
+ _context49.n = 6;
17284
17288
  break;
17285
17289
  }
17286
17290
  url += "&address=".concat(address, "&startblock=0&endblock=99999999&sort=asc");
17287
17291
  if (!(!isNaN(startDate) && !isNaN(endDate))) {
17288
- _context50.n = 5;
17292
+ _context49.n = 5;
17289
17293
  break;
17290
17294
  }
17291
- _context50.n = 4;
17295
+ _context49.n = 4;
17292
17296
  return Promise.all([ fromTimestampToBlock.fromTimeStampToBlock(toTimestamp(startDate), network, apiKey), fromTimestampToBlock.fromTimeStampToBlock(toTimestamp(endDate), network, apiKey) ]);
17293
17297
 
17294
17298
  case 4:
17295
- _yield$Promise$all = _context50.v;
17299
+ _yield$Promise$all = _context49.v;
17296
17300
  _yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
17297
17301
  startBlock = _yield$Promise$all2[0];
17298
17302
  endBlock = _yield$Promise$all2[1];
@@ -17302,52 +17306,52 @@ function _typeof(o) {
17302
17306
  url += "&page=".concat(page, "&offset=").concat(offset);
17303
17307
 
17304
17308
  case 6:
17305
- _getUrlAndHeaders4 = getUrlAndHeaders({
17309
+ _getUrlAndHeaders3 = getUrlAndHeaders({
17306
17310
  url: url,
17307
17311
  serviceName: apiInfo.apiKeyName,
17308
17312
  headers: {}
17309
- }), finalUrl = _getUrlAndHeaders4.URL, HEADERS = _getUrlAndHeaders4.HEADERS;
17310
- _context50.n = 7;
17313
+ }), finalUrl = _getUrlAndHeaders3.URL, HEADERS = _getUrlAndHeaders3.HEADERS;
17314
+ _context49.n = 7;
17311
17315
  return fetch(finalUrl, {
17312
17316
  method: "GET",
17313
17317
  headers: HEADERS
17314
17318
  });
17315
17319
 
17316
17320
  case 7:
17317
- res = _context50.v;
17321
+ res = _context49.v;
17318
17322
  if (res.ok) {
17319
- _context50.n = 8;
17323
+ _context49.n = 8;
17320
17324
  break;
17321
17325
  }
17322
17326
  throw new NetworkError(apiInfo.apiKeyName, res.status);
17323
17327
 
17324
17328
  case 8:
17325
- _context50.n = 9;
17329
+ _context49.n = 9;
17326
17330
  return res.json();
17327
17331
 
17328
17332
  case 9:
17329
- json = _context50.v;
17333
+ json = _context49.v;
17330
17334
  if (!(typeof json.result === "string")) {
17331
- _context50.n = 11;
17335
+ _context49.n = 11;
17332
17336
  break;
17333
17337
  }
17334
17338
  if (!json.result.includes("Invalid API Key")) {
17335
- _context50.n = 10;
17339
+ _context49.n = 10;
17336
17340
  break;
17337
17341
  }
17338
17342
  throw new InvalidApiKeyError(apiInfo.apiKeyName);
17339
17343
 
17340
17344
  case 10:
17341
17345
  if (!json.result.includes("Max rate limit reached")) {
17342
- _context50.n = 11;
17346
+ _context49.n = 11;
17343
17347
  break;
17344
17348
  }
17345
17349
  throw new RateLimitError(apiInfo.apiKeyName);
17346
17350
 
17347
17351
  case 11:
17348
- return _context50.a(2, type === "gas" && !Array.isArray(json.result) ? [ json.result ] : json.result);
17352
+ return _context49.a(2, type === "gas" && !Array.isArray(json.result) ? [ json.result ] : json.result);
17349
17353
  }
17350
- }, _callee46);
17354
+ }, _callee45);
17351
17355
  }));
17352
17356
  return _handleScanRequest.apply(this, arguments);
17353
17357
  }
@@ -17355,13 +17359,13 @@ function _typeof(o) {
17355
17359
  return _BASE.apply(this, arguments);
17356
17360
  }
17357
17361
  function _BASE() {
17358
- _BASE = _asyncToGenerator(_regenerator().m(function _callee47() {
17359
- var _argsToArray7, _argsToArray8, type, address, startDate, endDate, page, limit, columnName, API_KEY, out, filterColumnName, _args51 = arguments, _t14;
17360
- return _regenerator().w(function(_context51) {
17361
- while (1) switch (_context51.p = _context51.n) {
17362
+ _BASE = _asyncToGenerator(_regenerator().m(function _callee46() {
17363
+ var _argsToArray7, _argsToArray8, type, address, startDate, endDate, page, limit, columnName, API_KEY, out, filterColumnName, _args50 = arguments, _t14;
17364
+ return _regenerator().w(function(_context50) {
17365
+ while (1) switch (_context50.p = _context50.n) {
17362
17366
  case 0:
17363
- _context51.p = 0;
17364
- _argsToArray7 = argsToArray(_args51), _argsToArray8 = _slicedToArray(_argsToArray7, 7),
17367
+ _context50.p = 0;
17368
+ _argsToArray7 = argsToArray(_args50), _argsToArray8 = _slicedToArray(_argsToArray7, 7),
17365
17369
  type = _argsToArray8[0], address = _argsToArray8[1], startDate = _argsToArray8[2],
17366
17370
  endDate = _argsToArray8[3], page = _argsToArray8[4], limit = _argsToArray8[5], columnName = _argsToArray8[6];
17367
17371
  validateParams(baseParamsSchema, {
@@ -17374,7 +17378,7 @@ function _typeof(o) {
17374
17378
  columnName: columnName
17375
17379
  });
17376
17380
  API_KEY = window.localStorage.getItem(SERVICES_API_KEY.Basescan);
17377
- _context51.n = 1;
17381
+ _context50.n = 1;
17378
17382
  return handleScanRequest({
17379
17383
  type: type,
17380
17384
  address: address,
@@ -17389,15 +17393,15 @@ function _typeof(o) {
17389
17393
  });
17390
17394
 
17391
17395
  case 1:
17392
- out = _context51.v;
17396
+ out = _context50.v;
17393
17397
  if (!columnName) {
17394
- _context51.n = 2;
17398
+ _context50.n = 2;
17395
17399
  break;
17396
17400
  }
17397
17401
  filterColumnName = columnName.split(",").map(function(s) {
17398
17402
  return s.trim();
17399
17403
  });
17400
- return _context51.a(2, out.map(function(obj) {
17404
+ return _context50.a(2, out.map(function(obj) {
17401
17405
  return Object.fromEntries(filterColumnName.filter(function(key) {
17402
17406
  return key in obj;
17403
17407
  }).map(function(key) {
@@ -17406,14 +17410,14 @@ function _typeof(o) {
17406
17410
  }));
17407
17411
 
17408
17412
  case 2:
17409
- return _context51.a(2, out);
17413
+ return _context50.a(2, out);
17410
17414
 
17411
17415
  case 3:
17412
- _context51.p = 3;
17413
- _t14 = _context51.v;
17414
- return _context51.a(2, errorMessageHandler(_t14, "BASE"));
17416
+ _context50.p = 3;
17417
+ _t14 = _context50.v;
17418
+ return _context50.a(2, errorMessageHandler(_t14, "BASE"));
17415
17419
  }
17416
- }, _callee47, null, [ [ 0, 3 ] ]);
17420
+ }, _callee46, null, [ [ 0, 3 ] ]);
17417
17421
  }));
17418
17422
  return _BASE.apply(this, arguments);
17419
17423
  }
@@ -17432,13 +17436,13 @@ function _typeof(o) {
17432
17436
  return _BLOCKSCOUT.apply(this, arguments);
17433
17437
  }
17434
17438
  function _BLOCKSCOUT() {
17435
- _BLOCKSCOUT = _asyncToGenerator(_regenerator().m(function _callee48() {
17436
- var _json2$result, _json2$result2, _argsToArray9, _argsToArray0, address, type, _argsToArray0$, chain, startTimestamp, endTimestamp, page, offset, startTs, endTs, resolvedAddress, hostname, requestUrl, response, _json2, _args52 = arguments, _t15, _t16;
17437
- return _regenerator().w(function(_context52) {
17438
- while (1) switch (_context52.p = _context52.n) {
17439
+ _BLOCKSCOUT = _asyncToGenerator(_regenerator().m(function _callee47() {
17440
+ var _json2$result, _json2$result2, _argsToArray9, _argsToArray0, address, type, _argsToArray0$, chain, startTimestamp, endTimestamp, page, offset, startTs, endTs, resolvedAddress, hostname, requestUrl, response, _json2, _args51 = arguments, _t15, _t16;
17441
+ return _regenerator().w(function(_context51) {
17442
+ while (1) switch (_context51.p = _context51.n) {
17439
17443
  case 0:
17440
- _context52.p = 0;
17441
- _argsToArray9 = argsToArray(_args52), _argsToArray0 = _slicedToArray(_argsToArray9, 7),
17444
+ _context51.p = 0;
17445
+ _argsToArray9 = argsToArray(_args51), _argsToArray0 = _slicedToArray(_argsToArray9, 7),
17442
17446
  address = _argsToArray0[0], type = _argsToArray0[1], _argsToArray0$ = _argsToArray0[2],
17443
17447
  chain = _argsToArray0$ === void 0 ? "ethereum" : _argsToArray0$, startTimestamp = _argsToArray0[3],
17444
17448
  endTimestamp = _argsToArray0[4], page = _argsToArray0[5], offset = _argsToArray0[6];
@@ -17453,68 +17457,68 @@ function _typeof(o) {
17453
17457
  });
17454
17458
  startTs = startTimestamp !== null && startTimestamp !== void 0 ? startTimestamp : Math.floor((Date.now() - 30 * 24 * 3600 * 1e3) / 1e3);
17455
17459
  endTs = endTimestamp;
17456
- _context52.n = 1;
17460
+ _context51.n = 1;
17457
17461
  return fromEnsNameToAddress$1.validateAndGetAddress(address);
17458
17462
 
17459
17463
  case 1:
17460
- resolvedAddress = _context52.v;
17464
+ resolvedAddress = _context51.v;
17461
17465
  hostname = BLOCKSCOUT_CHAINS_MAP[chain];
17462
17466
  _t15 = type;
17463
- _context52.n = _t15 === "stat" ? 2 : _t15 === "txns" ? 3 : _t15 === "tokens" ? 4 : 5;
17467
+ _context51.n = _t15 === "stat" ? 2 : _t15 === "txns" ? 3 : _t15 === "tokens" ? 4 : 5;
17464
17468
  break;
17465
17469
 
17466
17470
  case 2:
17467
17471
  requestUrl = "".concat(hostname, "/api/v2/addresses/").concat(resolvedAddress, "/counters");
17468
- return _context52.a(3, 5);
17472
+ return _context51.a(3, 5);
17469
17473
 
17470
17474
  case 3:
17471
17475
  requestUrl = "".concat(hostname, "/api?module=account&action=txlist") + "&address=".concat(resolvedAddress) + "&start_timestamp=".concat(startTs) + "&end_timestamp=".concat(endTs !== null && endTs !== void 0 ? endTs : "") + "&page=".concat(page) + "&offset=".concat(offset) + "&sort=asc";
17472
- return _context52.a(3, 5);
17476
+ return _context51.a(3, 5);
17473
17477
 
17474
17478
  case 4:
17475
17479
  requestUrl = "".concat(hostname, "/api?module=account&action=tokenlist") + "&address=".concat(resolvedAddress);
17476
- return _context52.a(3, 5);
17480
+ return _context51.a(3, 5);
17477
17481
 
17478
17482
  case 5:
17479
- _context52.n = 6;
17483
+ _context51.n = 6;
17480
17484
  return fetch(requestUrl);
17481
17485
 
17482
17486
  case 6:
17483
- response = _context52.v;
17487
+ response = _context51.v;
17484
17488
  if (response.ok) {
17485
- _context52.n = 7;
17489
+ _context51.n = 7;
17486
17490
  break;
17487
17491
  }
17488
17492
  throw new NetworkError("BLOCKSCOUT", response.status);
17489
17493
 
17490
17494
  case 7:
17491
- _context52.n = 8;
17495
+ _context51.n = 8;
17492
17496
  return response.json();
17493
17497
 
17494
17498
  case 8:
17495
- _json2 = _context52.v;
17499
+ _json2 = _context51.v;
17496
17500
  if (!(_json2 !== null && _json2 !== void 0 && (_json2$result = _json2.result) !== null && _json2$result !== void 0 && _json2$result.includes("Invalid parameter(s)"))) {
17497
- _context52.n = 9;
17501
+ _context51.n = 9;
17498
17502
  break;
17499
17503
  }
17500
17504
  throw new ValidationError("Invalid parameters");
17501
17505
 
17502
17506
  case 9:
17503
17507
  if (!(_json2 !== null && _json2 !== void 0 && (_json2$result2 = _json2.result) !== null && _json2$result2 !== void 0 && _json2$result2.includes("Not found"))) {
17504
- _context52.n = 10;
17508
+ _context51.n = 10;
17505
17509
  break;
17506
17510
  }
17507
17511
  throw new ValidationError("Address information not found");
17508
17512
 
17509
17513
  case 10:
17510
- return _context52.a(2, type === "stat" ? [ _json2 ] : _json2.result);
17514
+ return _context51.a(2, type === "stat" ? [ _json2 ] : _json2.result);
17511
17515
 
17512
17516
  case 11:
17513
- _context52.p = 11;
17514
- _t16 = _context52.v;
17515
- return _context52.a(2, errorMessageHandler(_t16, "BLOCKSCOUT"));
17517
+ _context51.p = 11;
17518
+ _t16 = _context51.v;
17519
+ return _context51.a(2, errorMessageHandler(_t16, "BLOCKSCOUT"));
17516
17520
  }
17517
- }, _callee48, null, [ [ 0, 11 ] ]);
17521
+ }, _callee47, null, [ [ 0, 11 ] ]);
17518
17522
  }));
17519
17523
  return _BLOCKSCOUT.apply(this, arguments);
17520
17524
  }
@@ -17559,13 +17563,13 @@ function _typeof(o) {
17559
17563
  return _COINGECKO.apply(this, arguments);
17560
17564
  }
17561
17565
  function _COINGECKO() {
17562
- _COINGECKO = _asyncToGenerator(_regenerator().m(function _callee49() {
17563
- var _category$toLowerCase, _argsToArray1, _argsToArray10, category, param1, param2, columnName, apiKey, headers, url, vs, map, _category, trend, _category2, _trend, _getUrlAndHeaders5, finalUrl, HEADERS, res, _json3, _json3$status, msg, out, _i34, _Object$entries, _Object$entries$_i, token, prices, _i35, _Object$entries2, _Object$entries2$_i, cur, val, _data6, _args53 = arguments, _t17, _t18;
17564
- return _regenerator().w(function(_context53) {
17565
- while (1) switch (_context53.p = _context53.n) {
17566
+ _COINGECKO = _asyncToGenerator(_regenerator().m(function _callee48() {
17567
+ var _category$toLowerCase, _argsToArray1, _argsToArray10, category, param1, param2, columnName, apiKey, headers, url, vs, map, _category, trend, _category2, _trend, _getUrlAndHeaders4, finalUrl, HEADERS, res, _json3, _json3$status, msg, out, _i34, _Object$entries, _Object$entries$_i, token, prices, _i35, _Object$entries2, _Object$entries2$_i, cur, val, _data6, _args52 = arguments, _t17, _t18;
17568
+ return _regenerator().w(function(_context52) {
17569
+ while (1) switch (_context52.p = _context52.n) {
17566
17570
  case 0:
17567
- _context53.p = 0;
17568
- _argsToArray1 = argsToArray(_args53), _argsToArray10 = _slicedToArray(_argsToArray1, 4),
17571
+ _context52.p = 0;
17572
+ _argsToArray1 = argsToArray(_args52), _argsToArray10 = _slicedToArray(_argsToArray1, 4),
17569
17573
  category = _argsToArray10[0], param1 = _argsToArray10[1], param2 = _argsToArray10[2],
17570
17574
  columnName = _argsToArray10[3];
17571
17575
  validateParams(coingeckoParamsSchema, {
@@ -17581,13 +17585,13 @@ function _typeof(o) {
17581
17585
  };
17582
17586
  url = "";
17583
17587
  _t17 = category === null || category === void 0 || (_category$toLowerCase = category.toLowerCase) === null || _category$toLowerCase === void 0 ? void 0 : _category$toLowerCase.call(category);
17584
- _context53.n = _t17 === "price" ? 1 : _t17 === "market" ? 2 : _t17 === "stablecoins" ? 3 : _t17 === "derivatives" ? 4 : 5;
17588
+ _context52.n = _t17 === "price" ? 1 : _t17 === "market" ? 2 : _t17 === "stablecoins" ? 3 : _t17 === "derivatives" ? 4 : 5;
17585
17589
  break;
17586
17590
 
17587
17591
  case 1:
17588
17592
  vs = param2 || "usd";
17589
17593
  url = "https://api.coingecko.com/api/v3/simple/price?vs_currencies=".concat(vs, "&symbols=").concat(param1);
17590
- return _context53.a(3, 5);
17594
+ return _context52.a(3, 5);
17591
17595
 
17592
17596
  case 2:
17593
17597
  map = {
@@ -17604,43 +17608,43 @@ function _typeof(o) {
17604
17608
  _category = map[param1] || "";
17605
17609
  trend = param2 ? "&price_change_percentage=".concat(param2) : "";
17606
17610
  url = "https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&include_tokens=top&page=1&per_page=100".concat(_category ? "&category=".concat(_category) : "").concat(trend);
17607
- return _context53.a(3, 5);
17611
+ return _context52.a(3, 5);
17608
17612
 
17609
17613
  case 3:
17610
17614
  _category2 = param1 === "all" ? "stablecoins" : param1;
17611
17615
  _trend = param2 ? "&price_change_percentage=".concat(param2) : "";
17612
17616
  url = "https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&category=".concat(_category2, "&order=market_cap_desc&page=1&per_page=100").concat(_trend);
17613
- return _context53.a(3, 5);
17617
+ return _context52.a(3, 5);
17614
17618
 
17615
17619
  case 4:
17616
17620
  url = !param1 || param1 === "all" ? "https://api.coingecko.com/api/v3/derivatives" : "https://api.coingecko.com/api/v3/derivatives/exchanges/".concat(param1, "?include_tickers=all");
17617
- return _context53.a(3, 5);
17621
+ return _context52.a(3, 5);
17618
17622
 
17619
17623
  case 5:
17620
- _getUrlAndHeaders5 = getUrlAndHeaders({
17624
+ _getUrlAndHeaders4 = getUrlAndHeaders({
17621
17625
  url: url,
17622
17626
  serviceName: "Coingecko",
17623
17627
  headers: headers
17624
- }), finalUrl = _getUrlAndHeaders5.URL, HEADERS = _getUrlAndHeaders5.HEADERS;
17625
- _context53.n = 6;
17628
+ }), finalUrl = _getUrlAndHeaders4.URL, HEADERS = _getUrlAndHeaders4.HEADERS;
17629
+ _context52.n = 6;
17626
17630
  return fetch(finalUrl + "?refresh=true", {
17627
17631
  headers: HEADERS
17628
17632
  });
17629
17633
 
17630
17634
  case 6:
17631
- res = _context53.v;
17632
- _context53.n = 7;
17635
+ res = _context52.v;
17636
+ _context52.n = 7;
17633
17637
  return res.json();
17634
17638
 
17635
17639
  case 7:
17636
- _json3 = _context53.v;
17640
+ _json3 = _context52.v;
17637
17641
  if (res.ok) {
17638
- _context53.n = 9;
17642
+ _context52.n = 9;
17639
17643
  break;
17640
17644
  }
17641
17645
  msg = (_json3 === null || _json3 === void 0 || (_json3$status = _json3.status) === null || _json3$status === void 0 ? void 0 : _json3$status.error_message) || "";
17642
17646
  if (!msg.includes("API Key Missing")) {
17643
- _context53.n = 8;
17647
+ _context52.n = 8;
17644
17648
  break;
17645
17649
  }
17646
17650
  throw new InvalidApiKeyError(SERVICES_API_KEY.Coingecko);
@@ -17650,7 +17654,7 @@ function _typeof(o) {
17650
17654
 
17651
17655
  case 9:
17652
17656
  if (!(category === "price")) {
17653
- _context53.n = 10;
17657
+ _context52.n = 10;
17654
17658
  break;
17655
17659
  }
17656
17660
  out = {};
@@ -17663,11 +17667,11 @@ function _typeof(o) {
17663
17667
  out["".concat(token.toUpperCase(), "_").concat(cur.toUpperCase())] = val;
17664
17668
  }
17665
17669
  }
17666
- return _context53.a(2, [ out ]);
17670
+ return _context52.a(2, [ out ]);
17667
17671
 
17668
17672
  case 10:
17669
17673
  _data6 = Array.isArray(_json3) ? _json3 : [ _json3 ];
17670
- return _context53.a(2, _data6.map(function(item) {
17674
+ return _context52.a(2, _data6.map(function(item) {
17671
17675
  var flat = {};
17672
17676
  for (var _i36 = 0, _Object$entries3 = Object.entries(item); _i36 < _Object$entries3.length; _i36++) {
17673
17677
  var _Object$entries3$_i = _slicedToArray(_Object$entries3[_i36], 2), key = _Object$entries3$_i[0], _value22 = _Object$entries3$_i[1];
@@ -17691,11 +17695,11 @@ function _typeof(o) {
17691
17695
  }));
17692
17696
 
17693
17697
  case 11:
17694
- _context53.p = 11;
17695
- _t18 = _context53.v;
17696
- return _context53.a(2, errorMessageHandler(_t18, "COINGECKO"));
17698
+ _context52.p = 11;
17699
+ _t18 = _context52.v;
17700
+ return _context52.a(2, errorMessageHandler(_t18, "COINGECKO"));
17697
17701
  }
17698
- }, _callee49, null, [ [ 0, 11 ] ]);
17702
+ }, _callee48, null, [ [ 0, 11 ] ]);
17699
17703
  }));
17700
17704
  return _COINGECKO.apply(this, arguments);
17701
17705
  }
@@ -17714,13 +17718,13 @@ function _typeof(o) {
17714
17718
  return _DEFILLAMA.apply(this, arguments);
17715
17719
  }
17716
17720
  function _DEFILLAMA() {
17717
- _DEFILLAMA = _asyncToGenerator(_regenerator().m(function _callee50() {
17718
- var _argsToArray11, _argsToArray12, category, columnName, url, res, _json4, filterColumnName, _args54 = arguments, _t19, _t20;
17719
- return _regenerator().w(function(_context54) {
17720
- while (1) switch (_context54.p = _context54.n) {
17721
+ _DEFILLAMA = _asyncToGenerator(_regenerator().m(function _callee49() {
17722
+ var _argsToArray11, _argsToArray12, category, columnName, url, res, _json4, filterColumnName, _args53 = arguments, _t19, _t20;
17723
+ return _regenerator().w(function(_context53) {
17724
+ while (1) switch (_context53.p = _context53.n) {
17721
17725
  case 0:
17722
- _context54.p = 0;
17723
- _argsToArray11 = argsToArray(_args54), _argsToArray12 = _slicedToArray(_argsToArray11, 2),
17726
+ _context53.p = 0;
17727
+ _argsToArray11 = argsToArray(_args53), _argsToArray12 = _slicedToArray(_argsToArray11, 2),
17724
17728
  category = _argsToArray12[0], columnName = _argsToArray12[1];
17725
17729
  validateParams(defillamaParamsSchema, {
17726
17730
  category: category,
@@ -17728,50 +17732,50 @@ function _typeof(o) {
17728
17732
  });
17729
17733
  url = CATEGORY_URLS[category];
17730
17734
  if (url) {
17731
- _context54.n = 1;
17735
+ _context53.n = 1;
17732
17736
  break;
17733
17737
  }
17734
17738
  throw new ValidationError("Invalid category: ".concat(category));
17735
17739
 
17736
17740
  case 1:
17737
- _context54.n = 2;
17741
+ _context53.n = 2;
17738
17742
  return fetch(url);
17739
17743
 
17740
17744
  case 2:
17741
- res = _context54.v;
17745
+ res = _context53.v;
17742
17746
  if (res.ok) {
17743
- _context54.n = 3;
17747
+ _context53.n = 3;
17744
17748
  break;
17745
17749
  }
17746
17750
  throw new NetworkError(SERVICES_API_KEY.Defillama, res.status);
17747
17751
 
17748
17752
  case 3:
17749
- _context54.n = 4;
17753
+ _context53.n = 4;
17750
17754
  return res.json();
17751
17755
 
17752
17756
  case 4:
17753
- _json4 = _context54.v;
17757
+ _json4 = _context53.v;
17754
17758
  _t19 = category;
17755
- _context54.n = _t19 === "protocols" ? 5 : _t19 === "yields" ? 6 : _t19 === "dex" ? 7 : _t19 === "fees" ? 7 : 8;
17759
+ _context53.n = _t19 === "protocols" ? 5 : _t19 === "yields" ? 6 : _t19 === "dex" ? 7 : _t19 === "fees" ? 7 : 8;
17756
17760
  break;
17757
17761
 
17758
17762
  case 5:
17759
17763
  _json4 = Array.isArray(_json4) ? _json4.slice(0, 500) : [];
17760
- return _context54.a(3, 8);
17764
+ return _context53.a(3, 8);
17761
17765
 
17762
17766
  case 6:
17763
17767
  _json4 = Array.isArray(_json4.data) ? _json4.data.slice(0, 500) : [];
17764
- return _context54.a(3, 8);
17768
+ return _context53.a(3, 8);
17765
17769
 
17766
17770
  case 7:
17767
17771
  _json4 = Array.isArray(_json4.protocols) ? _json4.protocols.slice(0, 500) : [];
17768
- return _context54.a(3, 8);
17772
+ return _context53.a(3, 8);
17769
17773
 
17770
17774
  case 8:
17771
17775
  filterColumnName = columnName === null || columnName === void 0 ? void 0 : columnName.split(",").map(function(s) {
17772
17776
  return s.trim();
17773
17777
  });
17774
- return _context54.a(2, (Array.isArray(_json4) ? _json4 : [ _json4 ]).map(function(item) {
17778
+ return _context53.a(2, (Array.isArray(_json4) ? _json4 : [ _json4 ]).map(function(item) {
17775
17779
  if (!columnName) return item;
17776
17780
  var out = {};
17777
17781
  for (var _i37 = 0, _Object$entries4 = Object.entries(item); _i37 < _Object$entries4.length; _i37++) {
@@ -17782,11 +17786,11 @@ function _typeof(o) {
17782
17786
  }));
17783
17787
 
17784
17788
  case 9:
17785
- _context54.p = 9;
17786
- _t20 = _context54.v;
17787
- return _context54.a(2, errorMessageHandler(_t20, "DEFILLAMA"));
17789
+ _context53.p = 9;
17790
+ _t20 = _context53.v;
17791
+ return _context53.a(2, errorMessageHandler(_t20, "DEFILLAMA"));
17788
17792
  }
17789
- }, _callee50, null, [ [ 0, 9 ] ]);
17793
+ }, _callee49, null, [ [ 0, 9 ] ]);
17790
17794
  }));
17791
17795
  return _DEFILLAMA.apply(this, arguments);
17792
17796
  }
@@ -17817,13 +17821,13 @@ function _typeof(o) {
17817
17821
  return _ETHERSCAN.apply(this, arguments);
17818
17822
  }
17819
17823
  function _ETHERSCAN() {
17820
- _ETHERSCAN = _asyncToGenerator(_regenerator().m(function _callee51() {
17821
- var _argsToArray13, _argsToArray14, type, chain, address, startDate, endDate, _argsToArray14$, page, _argsToArray14$2, limit, columnName, chainId, apiKey, out, filterColumnName, _args55 = arguments, _t21;
17822
- return _regenerator().w(function(_context55) {
17823
- while (1) switch (_context55.p = _context55.n) {
17824
+ _ETHERSCAN = _asyncToGenerator(_regenerator().m(function _callee50() {
17825
+ var _argsToArray13, _argsToArray14, type, chain, address, startDate, endDate, _argsToArray14$, page, _argsToArray14$2, limit, columnName, chainId, apiKey, out, filterColumnName, _args54 = arguments, _t21;
17826
+ return _regenerator().w(function(_context54) {
17827
+ while (1) switch (_context54.p = _context54.n) {
17824
17828
  case 0:
17825
- _context55.p = 0;
17826
- _argsToArray13 = argsToArray(_args55), _argsToArray14 = _slicedToArray(_argsToArray13, 8),
17829
+ _context54.p = 0;
17830
+ _argsToArray13 = argsToArray(_args54), _argsToArray14 = _slicedToArray(_argsToArray13, 8),
17827
17831
  type = _argsToArray14[0], chain = _argsToArray14[1], address = _argsToArray14[2],
17828
17832
  startDate = _argsToArray14[3], endDate = _argsToArray14[4], _argsToArray14$ = _argsToArray14[5],
17829
17833
  page = _argsToArray14$ === void 0 ? 1 : _argsToArray14$, _argsToArray14$2 = _argsToArray14[6],
@@ -17840,14 +17844,14 @@ function _typeof(o) {
17840
17844
  });
17841
17845
  chainId = CHAIN_ID_MAP[chain];
17842
17846
  if (chainId) {
17843
- _context55.n = 1;
17847
+ _context54.n = 1;
17844
17848
  break;
17845
17849
  }
17846
17850
  throw new ValidationError("Invalid chain: ".concat(chain));
17847
17851
 
17848
17852
  case 1:
17849
17853
  apiKey = window.localStorage.getItem(SERVICES_API_KEY.Etherscan);
17850
- _context55.n = 2;
17854
+ _context54.n = 2;
17851
17855
  return handleScanRequest({
17852
17856
  type: type,
17853
17857
  address: address,
@@ -17862,15 +17866,15 @@ function _typeof(o) {
17862
17866
  });
17863
17867
 
17864
17868
  case 2:
17865
- out = _context55.v;
17869
+ out = _context54.v;
17866
17870
  if (!columnName) {
17867
- _context55.n = 3;
17871
+ _context54.n = 3;
17868
17872
  break;
17869
17873
  }
17870
17874
  filterColumnName = columnName.split(",").map(function(s) {
17871
17875
  return s.trim();
17872
17876
  });
17873
- return _context55.a(2, out.map(function(obj) {
17877
+ return _context54.a(2, out.map(function(obj) {
17874
17878
  return Object.fromEntries(filterColumnName.filter(function(key) {
17875
17879
  return key in obj;
17876
17880
  }).map(function(key) {
@@ -17879,114 +17883,17 @@ function _typeof(o) {
17879
17883
  }));
17880
17884
 
17881
17885
  case 3:
17882
- return _context55.a(2, out);
17886
+ return _context54.a(2, out);
17883
17887
 
17884
17888
  case 4:
17885
- _context55.p = 4;
17886
- _t21 = _context55.v;
17887
- return _context55.a(2, errorMessageHandler(_t21, "ETHERSCAN"));
17889
+ _context54.p = 4;
17890
+ _t21 = _context54.v;
17891
+ return _context54.a(2, errorMessageHandler(_t21, "ETHERSCAN"));
17888
17892
  }
17889
- }, _callee51, null, [ [ 0, 4 ] ]);
17893
+ }, _callee50, null, [ [ 0, 4 ] ]);
17890
17894
  }));
17891
17895
  return _ETHERSCAN.apply(this, arguments);
17892
17896
  }
17893
- var farcasterParamsSchema = objectType({
17894
- contentType: enumType([ "posts", "replies", "channels" ]),
17895
- identifier: stringType().nonempty(),
17896
- start: numberType()["int"]().nonnegative()["default"](0),
17897
- end: numberType()["int"]().nonnegative().max(MAX_PAGE_LIMIT, {
17898
- message: '"end" must be less than or equal to '.concat(MAX_PAGE_LIMIT)
17899
- })["default"](10)
17900
- });
17901
- function FARCASTER() {
17902
- return _FARCASTER.apply(this, arguments);
17903
- }
17904
- function _FARCASTER() {
17905
- _FARCASTER = _asyncToGenerator(_regenerator().m(function _callee52() {
17906
- var _argsToArray15, _argsToArray16, contentType, identifier, _argsToArray16$, start, _argsToArray16$2, end, apiKey, url, typeMap, _getUrlAndHeaders6, finalUrl, HEADERS, response, _yield$response$json, _data7, _args56 = arguments, _t22;
17907
- return _regenerator().w(function(_context56) {
17908
- while (1) switch (_context56.p = _context56.n) {
17909
- case 0:
17910
- _context56.p = 0;
17911
- _argsToArray15 = argsToArray(_args56), _argsToArray16 = _slicedToArray(_argsToArray15, 4),
17912
- contentType = _argsToArray16[0], identifier = _argsToArray16[1], _argsToArray16$ = _argsToArray16[2],
17913
- start = _argsToArray16$ === void 0 ? 0 : _argsToArray16$, _argsToArray16$2 = _argsToArray16[3],
17914
- end = _argsToArray16$2 === void 0 ? 10 : _argsToArray16$2;
17915
- validateParams(farcasterParamsSchema, {
17916
- contentType: contentType,
17917
- identifier: identifier,
17918
- start: start,
17919
- end: end
17920
- });
17921
- apiKey = window.localStorage.getItem(SERVICES_API_KEY.Firefly);
17922
- url = new URL("https://openapi.firefly.land/v1/fileverse/fetch");
17923
- url.searchParams.set("query", identifier.split(",").map(function(s) {
17924
- return s.trim();
17925
- }).filter(Boolean).join(","));
17926
- typeMap = {
17927
- posts: "farcasterid",
17928
- replies: "farcasterpostid",
17929
- channels: "farcasterchannels"
17930
- };
17931
- url.searchParams.set("type", typeMap[contentType]);
17932
- url.searchParams.set("start", String(start));
17933
- url.searchParams.set("end", String(end));
17934
- _getUrlAndHeaders6 = getUrlAndHeaders({
17935
- url: url.toString(),
17936
- serviceName: "Firefly",
17937
- headers: {
17938
- "x-api-key": apiKey
17939
- }
17940
- }), finalUrl = _getUrlAndHeaders6.URL, HEADERS = _getUrlAndHeaders6.HEADERS;
17941
- _context56.n = 1;
17942
- return fetch(finalUrl, {
17943
- method: "GET",
17944
- headers: HEADERS
17945
- });
17946
-
17947
- case 1:
17948
- response = _context56.v;
17949
- if (response.ok) {
17950
- _context56.n = 2;
17951
- break;
17952
- }
17953
- throw new NetworkError(SERVICES_API_KEY.Firefly, response.status);
17954
-
17955
- case 2:
17956
- _context56.n = 3;
17957
- return response.json();
17958
-
17959
- case 3:
17960
- _yield$response$json = _context56.v;
17961
- _data7 = _yield$response$json.data;
17962
- if (Array.isArray(_data7)) {
17963
- _context56.n = 4;
17964
- break;
17965
- }
17966
- return _context56.a(2, []);
17967
-
17968
- case 4:
17969
- return _context56.a(2, _data7.map(function(item) {
17970
- var flat = {};
17971
- for (var _i38 = 0, _Object$entries5 = Object.entries(item); _i38 < _Object$entries5.length; _i38++) {
17972
- var _Object$entries5$_i = _slicedToArray(_Object$entries5[_i38], 2), k = _Object$entries5$_i[0], v = _Object$entries5$_i[1];
17973
- if (v == null || _typeof(v) !== "object") {
17974
- flat[k] = v;
17975
- }
17976
- }
17977
- flat.platform = "farcaster";
17978
- return flat;
17979
- }));
17980
-
17981
- case 5:
17982
- _context56.p = 5;
17983
- _t22 = _context56.v;
17984
- return _context56.a(2, errorMessageHandler(_t22, "FARCASTER"));
17985
- }
17986
- }, _callee52, null, [ [ 0, 5 ] ]);
17987
- }));
17988
- return _FARCASTER.apply(this, arguments);
17989
- }
17990
17897
  var farcasterSchema = objectType({
17991
17898
  platform: literalType("farcaster"),
17992
17899
  contentType: enumType([ "posts", "replies", "channels" ]),
@@ -18021,16 +17928,16 @@ function _typeof(o) {
18021
17928
  return _FIREFLY.apply(this, arguments);
18022
17929
  }
18023
17930
  function _FIREFLY() {
18024
- _FIREFLY = _asyncToGenerator(_regenerator().m(function _callee53() {
18025
- var _argsToArray17, _argsToArray18, platform, contentType, identifier, _argsToArray18$, start, _argsToArray18$2, end, apiKey, url, _getUrlAndHeaders7, finalUrl, HEADERS, response, _yield$response$json2, _data8, _args57 = arguments, _t23;
18026
- return _regenerator().w(function(_context57) {
18027
- while (1) switch (_context57.p = _context57.n) {
17931
+ _FIREFLY = _asyncToGenerator(_regenerator().m(function _callee51() {
17932
+ var _argsToArray15, _argsToArray16, platform, contentType, identifier, _argsToArray16$, start, _argsToArray16$2, end, apiKey, url, _getUrlAndHeaders5, finalUrl, HEADERS, response, _yield$response$json, _data7, _args55 = arguments, _t22;
17933
+ return _regenerator().w(function(_context55) {
17934
+ while (1) switch (_context55.p = _context55.n) {
18028
17935
  case 0:
18029
- _context57.p = 0;
18030
- _argsToArray17 = argsToArray(_args57), _argsToArray18 = _slicedToArray(_argsToArray17, 5),
18031
- platform = _argsToArray18[0], contentType = _argsToArray18[1], identifier = _argsToArray18[2],
18032
- _argsToArray18$ = _argsToArray18[3], start = _argsToArray18$ === void 0 ? 0 : _argsToArray18$,
18033
- _argsToArray18$2 = _argsToArray18[4], end = _argsToArray18$2 === void 0 ? 10 : _argsToArray18$2;
17936
+ _context55.p = 0;
17937
+ _argsToArray15 = argsToArray(_args55), _argsToArray16 = _slicedToArray(_argsToArray15, 5),
17938
+ platform = _argsToArray16[0], contentType = _argsToArray16[1], identifier = _argsToArray16[2],
17939
+ _argsToArray16$ = _argsToArray16[3], start = _argsToArray16$ === void 0 ? 0 : _argsToArray16$,
17940
+ _argsToArray16$2 = _argsToArray16[4], end = _argsToArray16$2 === void 0 ? 10 : _argsToArray16$2;
18034
17941
  validateParams(fireflyParamsSchema, {
18035
17942
  platform: platform,
18036
17943
  contentType: contentType,
@@ -18046,45 +17953,45 @@ function _typeof(o) {
18046
17953
  url.searchParams.set("type", fireFlyPlaformType[platform][contentType]);
18047
17954
  url.searchParams.set("start", String(start));
18048
17955
  url.searchParams.set("end", String(end));
18049
- _getUrlAndHeaders7 = getUrlAndHeaders({
17956
+ _getUrlAndHeaders5 = getUrlAndHeaders({
18050
17957
  url: url.toString(),
18051
17958
  serviceName: "Firefly",
18052
17959
  headers: {
18053
17960
  "x-api-key": apiKey
18054
17961
  }
18055
- }), finalUrl = _getUrlAndHeaders7.URL, HEADERS = _getUrlAndHeaders7.HEADERS;
18056
- _context57.n = 1;
17962
+ }), finalUrl = _getUrlAndHeaders5.URL, HEADERS = _getUrlAndHeaders5.HEADERS;
17963
+ _context55.n = 1;
18057
17964
  return fetch(finalUrl, {
18058
17965
  method: "GET",
18059
17966
  headers: HEADERS
18060
17967
  });
18061
17968
 
18062
17969
  case 1:
18063
- response = _context57.v;
17970
+ response = _context55.v;
18064
17971
  if (response.ok) {
18065
- _context57.n = 2;
17972
+ _context55.n = 2;
18066
17973
  break;
18067
17974
  }
18068
17975
  throw new NetworkError(SERVICES_API_KEY.Firefly, response.status);
18069
17976
 
18070
17977
  case 2:
18071
- _context57.n = 3;
17978
+ _context55.n = 3;
18072
17979
  return response.json();
18073
17980
 
18074
17981
  case 3:
18075
- _yield$response$json2 = _context57.v;
18076
- _data8 = _yield$response$json2.data;
18077
- if (Array.isArray(_data8)) {
18078
- _context57.n = 4;
17982
+ _yield$response$json = _context55.v;
17983
+ _data7 = _yield$response$json.data;
17984
+ if (Array.isArray(_data7)) {
17985
+ _context55.n = 4;
18079
17986
  break;
18080
17987
  }
18081
- return _context57.a(2, []);
17988
+ return _context55.a(2, []);
18082
17989
 
18083
17990
  case 4:
18084
- return _context57.a(2, _data8.map(function(item) {
17991
+ return _context55.a(2, _data7.map(function(item) {
18085
17992
  var flat = {};
18086
- for (var _i39 = 0, _Object$entries6 = Object.entries(item); _i39 < _Object$entries6.length; _i39++) {
18087
- var _Object$entries6$_i = _slicedToArray(_Object$entries6[_i39], 2), key = _Object$entries6$_i[0], _value23 = _Object$entries6$_i[1];
17993
+ for (var _i38 = 0, _Object$entries5 = Object.entries(item); _i38 < _Object$entries5.length; _i38++) {
17994
+ var _Object$entries5$_i = _slicedToArray(_Object$entries5[_i38], 2), key = _Object$entries5$_i[0], _value23 = _Object$entries5$_i[1];
18088
17995
  if (_typeof(_value23) !== "object" || _value23 === null) {
18089
17996
  flat[key] = _value23;
18090
17997
  }
@@ -18094,11 +18001,11 @@ function _typeof(o) {
18094
18001
  }));
18095
18002
 
18096
18003
  case 5:
18097
- _context57.p = 5;
18098
- _t23 = _context57.v;
18099
- return _context57.a(2, errorMessageHandler(_t23, "FIREFLY"));
18004
+ _context55.p = 5;
18005
+ _t22 = _context55.v;
18006
+ return _context55.a(2, errorMessageHandler(_t22, "FIREFLY"));
18100
18007
  }
18101
- }, _callee53, null, [ [ 0, 5 ] ]);
18008
+ }, _callee51, null, [ [ 0, 5 ] ]);
18102
18009
  }));
18103
18010
  return _FIREFLY.apply(this, arguments);
18104
18011
  }
@@ -18106,16 +18013,16 @@ function _typeof(o) {
18106
18013
  return _GNOSIS.apply(this, arguments);
18107
18014
  }
18108
18015
  function _GNOSIS() {
18109
- _GNOSIS = _asyncToGenerator(_regenerator().m(function _callee54() {
18110
- var _argsToArray19, _argsToArray20, type, address, startDate, endDate, _argsToArray20$, page, _argsToArray20$2, limit, apiKey, _args58 = arguments, _t24;
18111
- return _regenerator().w(function(_context58) {
18112
- while (1) switch (_context58.p = _context58.n) {
18016
+ _GNOSIS = _asyncToGenerator(_regenerator().m(function _callee52() {
18017
+ var _argsToArray17, _argsToArray18, type, address, startDate, endDate, _argsToArray18$, page, _argsToArray18$2, limit, apiKey, _args56 = arguments, _t23;
18018
+ return _regenerator().w(function(_context56) {
18019
+ while (1) switch (_context56.p = _context56.n) {
18113
18020
  case 0:
18114
- _context58.p = 0;
18115
- _argsToArray19 = argsToArray(_args58), _argsToArray20 = _slicedToArray(_argsToArray19, 6),
18116
- type = _argsToArray20[0], address = _argsToArray20[1], startDate = _argsToArray20[2],
18117
- endDate = _argsToArray20[3], _argsToArray20$ = _argsToArray20[4], page = _argsToArray20$ === void 0 ? 1 : _argsToArray20$,
18118
- _argsToArray20$2 = _argsToArray20[5], limit = _argsToArray20$2 === void 0 ? 10 : _argsToArray20$2;
18021
+ _context56.p = 0;
18022
+ _argsToArray17 = argsToArray(_args56), _argsToArray18 = _slicedToArray(_argsToArray17, 6),
18023
+ type = _argsToArray18[0], address = _argsToArray18[1], startDate = _argsToArray18[2],
18024
+ endDate = _argsToArray18[3], _argsToArray18$ = _argsToArray18[4], page = _argsToArray18$ === void 0 ? 1 : _argsToArray18$,
18025
+ _argsToArray18$2 = _argsToArray18[5], limit = _argsToArray18$2 === void 0 ? 10 : _argsToArray18$2;
18119
18026
  validateParams(baseParamsSchema, {
18120
18027
  type: type,
18121
18028
  address: address,
@@ -18125,7 +18032,7 @@ function _typeof(o) {
18125
18032
  limit: limit
18126
18033
  });
18127
18034
  apiKey = window.localStorage.getItem(SERVICES_API_KEY.Gnosisscan);
18128
- _context58.n = 1;
18035
+ _context56.n = 1;
18129
18036
  return handleScanRequest({
18130
18037
  type: type,
18131
18038
  address: address,
@@ -18140,252 +18047,17 @@ function _typeof(o) {
18140
18047
  });
18141
18048
 
18142
18049
  case 1:
18143
- return _context58.a(2, _context58.v);
18050
+ return _context56.a(2, _context56.v);
18144
18051
 
18145
18052
  case 2:
18146
- _context58.p = 2;
18147
- _t24 = _context58.v;
18148
- return _context58.a(2, errorMessageHandler(_t24, "GNOSIS"));
18053
+ _context56.p = 2;
18054
+ _t23 = _context56.v;
18055
+ return _context56.a(2, errorMessageHandler(_t23, "GNOSIS"));
18149
18056
  }
18150
- }, _callee54, null, [ [ 0, 2 ] ]);
18057
+ }, _callee52, null, [ [ 0, 2 ] ]);
18151
18058
  }));
18152
18059
  return _GNOSIS.apply(this, arguments);
18153
18060
  }
18154
- var lensParamsSchema = objectType({
18155
- contentType: enumType([ "posts", "replies" ]),
18156
- identifier: stringType().nonempty(),
18157
- start: numberType()["int"]().nonnegative()["default"](0),
18158
- end: numberType()["int"]().nonnegative().max(MAX_PAGE_LIMIT, {
18159
- message: '"end" must be less than or equal to '.concat(MAX_PAGE_LIMIT)
18160
- })["default"](10)
18161
- });
18162
- function LENS() {
18163
- return _LENS.apply(this, arguments);
18164
- }
18165
- function _LENS() {
18166
- _LENS = _asyncToGenerator(_regenerator().m(function _callee55() {
18167
- var _argsToArray21, _argsToArray22, contentType, identifier, _argsToArray22$, start, _argsToArray22$2, end, apiKey, url, typeMap, _getUrlAndHeaders8, finalUrl, HEADERS, response, _yield$response$json3, _data9, _args59 = arguments, _t25;
18168
- return _regenerator().w(function(_context59) {
18169
- while (1) switch (_context59.p = _context59.n) {
18170
- case 0:
18171
- _context59.p = 0;
18172
- _argsToArray21 = argsToArray(_args59), _argsToArray22 = _slicedToArray(_argsToArray21, 4),
18173
- contentType = _argsToArray22[0], identifier = _argsToArray22[1], _argsToArray22$ = _argsToArray22[2],
18174
- start = _argsToArray22$ === void 0 ? 0 : _argsToArray22$, _argsToArray22$2 = _argsToArray22[3],
18175
- end = _argsToArray22$2 === void 0 ? 10 : _argsToArray22$2;
18176
- validateParams(lensParamsSchema, {
18177
- contentType: contentType,
18178
- identifier: identifier,
18179
- start: start,
18180
- end: end
18181
- });
18182
- apiKey = window.localStorage.getItem(SERVICES_API_KEY.Firefly);
18183
- url = new URL("https://openapi.firefly.land/v1/fileverse/fetch");
18184
- url.searchParams.set("query", identifier.split(",").map(function(s) {
18185
- return s.trim();
18186
- }).filter(Boolean).join(","));
18187
- typeMap = {
18188
- posts: "lensid",
18189
- replies: "lenspostid"
18190
- };
18191
- url.searchParams.set("type", typeMap[contentType]);
18192
- url.searchParams.set("start", String(start));
18193
- url.searchParams.set("end", String(end));
18194
- _getUrlAndHeaders8 = getUrlAndHeaders({
18195
- url: url.toString(),
18196
- serviceName: "Firefly",
18197
- headers: {
18198
- "x-api-key": apiKey
18199
- }
18200
- }), finalUrl = _getUrlAndHeaders8.URL, HEADERS = _getUrlAndHeaders8.HEADERS;
18201
- _context59.n = 1;
18202
- return fetch(finalUrl, {
18203
- method: "GET",
18204
- headers: HEADERS
18205
- });
18206
-
18207
- case 1:
18208
- response = _context59.v;
18209
- if (response.ok) {
18210
- _context59.n = 2;
18211
- break;
18212
- }
18213
- throw new NetworkError(SERVICES_API_KEY.Firefly, response.status);
18214
-
18215
- case 2:
18216
- _context59.n = 3;
18217
- return response.json();
18218
-
18219
- case 3:
18220
- _yield$response$json3 = _context59.v;
18221
- _data9 = _yield$response$json3.data;
18222
- if (Array.isArray(_data9)) {
18223
- _context59.n = 4;
18224
- break;
18225
- }
18226
- return _context59.a(2, []);
18227
-
18228
- case 4:
18229
- return _context59.a(2, _data9.map(function(item) {
18230
- var flat = {};
18231
- for (var _i40 = 0, _Object$entries7 = Object.entries(item); _i40 < _Object$entries7.length; _i40++) {
18232
- var _Object$entries7$_i = _slicedToArray(_Object$entries7[_i40], 2), key = _Object$entries7$_i[0], _value24 = _Object$entries7$_i[1];
18233
- if (_value24 == null || _typeof(_value24) !== "object") {
18234
- flat[key] = _value24;
18235
- }
18236
- }
18237
- flat.platform = "lens";
18238
- return flat;
18239
- }));
18240
-
18241
- case 5:
18242
- _context59.p = 5;
18243
- _t25 = _context59.v;
18244
- return _context59.a(2, errorMessageHandler(_t25, "LENS"));
18245
- }
18246
- }, _callee55, null, [ [ 0, 5 ] ]);
18247
- }));
18248
- return _LENS.apply(this, arguments);
18249
- }
18250
- var neynarParamsSchema = objectType({
18251
- username: stringType().nonempty()
18252
- });
18253
- var fromUsernameToFid = function() {
18254
- var _ref14 = _asyncToGenerator(_regenerator().m(function _callee1(username, apiKey) {
18255
- var url, _getUrlAndHeaders2, finalUrl, HEADERS, res, json, users, user;
18256
- return _regenerator().w(function(_context1) {
18257
- while (1) switch (_context1.n) {
18258
- case 0:
18259
- if (username) {
18260
- _context1.n = 1;
18261
- break;
18262
- }
18263
- return _context1.a(2, null);
18264
-
18265
- case 1:
18266
- url = "https://api.neynar.com/v2/farcaster/user/search/?q=".concat(username, "&limit=5");
18267
- _getUrlAndHeaders2 = getUrlAndHeaders({
18268
- url: url,
18269
- serviceName: "Neynar",
18270
- headers: {
18271
- "x-api-key": apiKey,
18272
- "x-neynar-experimental": "false"
18273
- }
18274
- }), finalUrl = _getUrlAndHeaders2.URL, HEADERS = _getUrlAndHeaders2.HEADERS;
18275
- _context1.n = 2;
18276
- return fetch(finalUrl, {
18277
- method: "GET",
18278
- headers: HEADERS
18279
- });
18280
-
18281
- case 2:
18282
- res = _context1.v;
18283
- _context1.n = 3;
18284
- return res.json();
18285
-
18286
- case 3:
18287
- json = _context1.v;
18288
- users = json.result ? json.result.users : [];
18289
- user = users.find(function(user) {
18290
- return user.username === username;
18291
- });
18292
- return _context1.a(2, user && user.fid || null);
18293
- }
18294
- }, _callee1);
18295
- }));
18296
- return function fromUsernameToFid(_x14, _x15) {
18297
- return _ref14.apply(this, arguments);
18298
- };
18299
- }();
18300
- var fromUsernameToFid$1 = {
18301
- fromUsernameToFid: fromUsernameToFid
18302
- };
18303
- function NEYNAR() {
18304
- return _NEYNAR.apply(this, arguments);
18305
- }
18306
- function _NEYNAR() {
18307
- _NEYNAR = _asyncToGenerator(_regenerator().m(function _callee56() {
18308
- var _argsToArray23, _argsToArray24, username, apiKey, fid, url, _getUrlAndHeaders9, finalUrl, HEADERS, response, _json5, users, _args60 = arguments, _t26;
18309
- return _regenerator().w(function(_context60) {
18310
- while (1) switch (_context60.p = _context60.n) {
18311
- case 0:
18312
- _context60.p = 0;
18313
- _argsToArray23 = argsToArray(_args60), _argsToArray24 = _slicedToArray(_argsToArray23, 1),
18314
- username = _argsToArray24[0];
18315
- validateParams(neynarParamsSchema, {
18316
- username: username
18317
- });
18318
- apiKey = window.localStorage.getItem(SERVICES_API_KEY.Neynar);
18319
- _context60.n = 1;
18320
- return fromUsernameToFid$1.fromUsernameToFid(username, apiKey);
18321
-
18322
- case 1:
18323
- fid = _context60.v;
18324
- if (fid) {
18325
- _context60.n = 2;
18326
- break;
18327
- }
18328
- throw new ValidationError("Invalid username: ".concat(username));
18329
-
18330
- case 2:
18331
- url = "https://api.neynar.com/v2/farcaster/followers?fid=".concat(fid);
18332
- _getUrlAndHeaders9 = getUrlAndHeaders({
18333
- url: url.toString(),
18334
- serviceName: "Neynar",
18335
- headers: {
18336
- "x-api-key": apiKey,
18337
- "x-neynar-experimental": "false"
18338
- }
18339
- }), finalUrl = _getUrlAndHeaders9.URL, HEADERS = _getUrlAndHeaders9.HEADERS;
18340
- _context60.n = 3;
18341
- return fetch(finalUrl, {
18342
- method: "GET",
18343
- headers: HEADERS
18344
- });
18345
-
18346
- case 3:
18347
- response = _context60.v;
18348
- if (response.ok) {
18349
- _context60.n = 4;
18350
- break;
18351
- }
18352
- throw new NetworkError(SERVICES_API_KEY.Neynar, response.status);
18353
-
18354
- case 4:
18355
- _context60.n = 5;
18356
- return response.json();
18357
-
18358
- case 5:
18359
- _json5 = _context60.v;
18360
- users = (_json5 === null || _json5 === void 0 ? void 0 : _json5.users) || [];
18361
- if (users.length) {
18362
- _context60.n = 6;
18363
- break;
18364
- }
18365
- return _context60.a(2, []);
18366
-
18367
- case 6:
18368
- return _context60.a(2, users.map(function(_ref32) {
18369
- var _user$profile, _user$profile2;
18370
- var user = _ref32.user;
18371
- return {
18372
- username: user.username,
18373
- custody_address: user.custody_address,
18374
- follower_count: user.follower_count,
18375
- country: ((_user$profile = user.profile) === null || _user$profile === void 0 || (_user$profile = _user$profile.location) === null || _user$profile === void 0 || (_user$profile = _user$profile.address) === null || _user$profile === void 0 ? void 0 : _user$profile.country) || "",
18376
- city: ((_user$profile2 = user.profile) === null || _user$profile2 === void 0 || (_user$profile2 = _user$profile2.location) === null || _user$profile2 === void 0 || (_user$profile2 = _user$profile2.address) === null || _user$profile2 === void 0 ? void 0 : _user$profile2.city) || ""
18377
- };
18378
- }));
18379
-
18380
- case 7:
18381
- _context60.p = 7;
18382
- _t26 = _context60.v;
18383
- return _context60.a(2, errorMessageHandler(_t26, "NEYNAR"));
18384
- }
18385
- }, _callee56, null, [ [ 0, 7 ] ]);
18386
- }));
18387
- return _NEYNAR.apply(this, arguments);
18388
- }
18389
18061
  var safeParamsSchema = objectType({
18390
18062
  address: stringType().nonempty(),
18391
18063
  utility: literalType("txns"),
@@ -18399,16 +18071,16 @@ function _typeof(o) {
18399
18071
  return _SAFE.apply(this, arguments);
18400
18072
  }
18401
18073
  function _SAFE() {
18402
- _SAFE = _asyncToGenerator(_regenerator().m(function _callee57() {
18403
- var _argsToArray25, _argsToArray26, address, utility, chain, _argsToArray26$, limit, _argsToArray26$2, offset, apiKey, chainId, resolved, url, _getUrlAndHeaders0, finalUrl, HEADERS, res, _json6, _args61 = arguments, _t27;
18404
- return _regenerator().w(function(_context61) {
18405
- while (1) switch (_context61.p = _context61.n) {
18074
+ _SAFE = _asyncToGenerator(_regenerator().m(function _callee53() {
18075
+ var _argsToArray19, _argsToArray20, address, utility, chain, _argsToArray20$, limit, _argsToArray20$2, offset, apiKey, chainId, resolved, url, _getUrlAndHeaders6, finalUrl, HEADERS, res, _json5, _args57 = arguments, _t24;
18076
+ return _regenerator().w(function(_context57) {
18077
+ while (1) switch (_context57.p = _context57.n) {
18406
18078
  case 0:
18407
- _context61.p = 0;
18408
- _argsToArray25 = argsToArray(_args61), _argsToArray26 = _slicedToArray(_argsToArray25, 5),
18409
- address = _argsToArray26[0], utility = _argsToArray26[1], chain = _argsToArray26[2],
18410
- _argsToArray26$ = _argsToArray26[3], limit = _argsToArray26$ === void 0 ? 10 : _argsToArray26$,
18411
- _argsToArray26$2 = _argsToArray26[4], offset = _argsToArray26$2 === void 0 ? 0 : _argsToArray26$2;
18079
+ _context57.p = 0;
18080
+ _argsToArray19 = argsToArray(_args57), _argsToArray20 = _slicedToArray(_argsToArray19, 5),
18081
+ address = _argsToArray20[0], utility = _argsToArray20[1], chain = _argsToArray20[2],
18082
+ _argsToArray20$ = _argsToArray20[3], limit = _argsToArray20$ === void 0 ? 10 : _argsToArray20$,
18083
+ _argsToArray20$2 = _argsToArray20[4], offset = _argsToArray20$2 === void 0 ? 0 : _argsToArray20$2;
18412
18084
  validateParams(safeParamsSchema, {
18413
18085
  address: address,
18414
18086
  utility: utility,
@@ -18419,62 +18091,62 @@ function _typeof(o) {
18419
18091
  apiKey = window.localStorage.getItem(SERVICES_API_KEY.Safe);
18420
18092
  chainId = SAFE_CHAIN_MAP[chain];
18421
18093
  if (chainId) {
18422
- _context61.n = 1;
18094
+ _context57.n = 1;
18423
18095
  break;
18424
18096
  }
18425
18097
  throw new ValidationError("Invalid chain: ".concat(chain));
18426
18098
 
18427
18099
  case 1:
18428
- _context61.n = 2;
18100
+ _context57.n = 2;
18429
18101
  return fromEnsNameToAddress$1.validateAndGetAddress(address);
18430
18102
 
18431
18103
  case 2:
18432
- resolved = _context61.v;
18104
+ resolved = _context57.v;
18433
18105
  url = "https://api.safe.global/tx-service/".concat(chainId, "/api/v2/safes/").concat(resolved, "/multisig-transactions?limit=").concat(limit, "&offset=").concat(offset);
18434
- _getUrlAndHeaders0 = getUrlAndHeaders({
18106
+ _getUrlAndHeaders6 = getUrlAndHeaders({
18435
18107
  url: url,
18436
18108
  serviceName: "Etherscan",
18437
18109
  headers: {
18438
18110
  Authorization: "Bearer ".concat(apiKey)
18439
18111
  }
18440
- }), finalUrl = _getUrlAndHeaders0.URL, HEADERS = _getUrlAndHeaders0.HEADERS;
18441
- _context61.n = 3;
18112
+ }), finalUrl = _getUrlAndHeaders6.URL, HEADERS = _getUrlAndHeaders6.HEADERS;
18113
+ _context57.n = 3;
18442
18114
  return fetch(finalUrl, {
18443
18115
  headers: HEADERS
18444
18116
  });
18445
18117
 
18446
18118
  case 3:
18447
- res = _context61.v;
18119
+ res = _context57.v;
18448
18120
  if (res.ok) {
18449
- _context61.n = 4;
18121
+ _context57.n = 4;
18450
18122
  break;
18451
18123
  }
18452
18124
  throw new NetworkError(SERVICES_API_KEY.Safe, res.status);
18453
18125
 
18454
18126
  case 4:
18455
- _context61.n = 5;
18127
+ _context57.n = 5;
18456
18128
  return res.json();
18457
18129
 
18458
18130
  case 5:
18459
- _json6 = _context61.v;
18460
- if (Array.isArray(_json6.results)) {
18461
- _context61.n = 6;
18131
+ _json5 = _context57.v;
18132
+ if (Array.isArray(_json5.results)) {
18133
+ _context57.n = 6;
18462
18134
  break;
18463
18135
  }
18464
18136
  throw new ValidationError("Invalid API response");
18465
18137
 
18466
18138
  case 6:
18467
- return _context61.a(2, _json6.results.map(function(_ref33) {
18468
- var confirmations = _ref33.confirmations, dataDecoded = _ref33.dataDecoded, rest = _objectWithoutProperties(_ref33, _excluded);
18139
+ return _context57.a(2, _json5.results.map(function(_ref31) {
18140
+ var confirmations = _ref31.confirmations, dataDecoded = _ref31.dataDecoded, rest = _objectWithoutProperties(_ref31, _excluded);
18469
18141
  return rest;
18470
18142
  }));
18471
18143
 
18472
18144
  case 7:
18473
- _context61.p = 7;
18474
- _t27 = _context61.v;
18475
- return _context61.a(2, errorMessageHandler(_t27, "SAFE"));
18145
+ _context57.p = 7;
18146
+ _t24 = _context57.v;
18147
+ return _context57.a(2, errorMessageHandler(_t24, "SAFE"));
18476
18148
  }
18477
- }, _callee57, null, [ [ 0, 7 ] ]);
18149
+ }, _callee53, null, [ [ 0, 7 ] ]);
18478
18150
  }));
18479
18151
  return _SAFE.apply(this, arguments);
18480
18152
  }
@@ -18489,15 +18161,15 @@ function _typeof(o) {
18489
18161
  return _UNISWAP.apply(this, arguments);
18490
18162
  }
18491
18163
  function _UNISWAP() {
18492
- _UNISWAP = _asyncToGenerator(_regenerator().m(function _callee58() {
18493
- var _argsToArray27, _argsToArray28, graphType, category, param1, param2, columnName, baseUrl, url, res, _json7, filterColumnName, _data0, _args62 = arguments, _t28;
18494
- return _regenerator().w(function(_context62) {
18495
- while (1) switch (_context62.p = _context62.n) {
18164
+ _UNISWAP = _asyncToGenerator(_regenerator().m(function _callee54() {
18165
+ var _argsToArray21, _argsToArray22, graphType, category, param1, param2, columnName, baseUrl, url, res, _json6, filterColumnName, _data8, _args58 = arguments, _t25;
18166
+ return _regenerator().w(function(_context58) {
18167
+ while (1) switch (_context58.p = _context58.n) {
18496
18168
  case 0:
18497
- _context62.p = 0;
18498
- _argsToArray27 = argsToArray(_args62), _argsToArray28 = _slicedToArray(_argsToArray27, 5),
18499
- graphType = _argsToArray28[0], category = _argsToArray28[1], param1 = _argsToArray28[2],
18500
- param2 = _argsToArray28[3], columnName = _argsToArray28[4];
18169
+ _context58.p = 0;
18170
+ _argsToArray21 = argsToArray(_args58), _argsToArray22 = _slicedToArray(_argsToArray21, 5),
18171
+ graphType = _argsToArray22[0], category = _argsToArray22[1], param1 = _argsToArray22[2],
18172
+ param2 = _argsToArray22[3], columnName = _argsToArray22[4];
18501
18173
  validateParams(uniswapParamsSchema, {
18502
18174
  graphType: graphType,
18503
18175
  category: category,
@@ -18507,60 +18179,60 @@ function _typeof(o) {
18507
18179
  });
18508
18180
  baseUrl = "https://onchain-proxy.fileverse.io/third-party";
18509
18181
  url = "".concat(baseUrl) + "?service=uniswap" + "&graphType=".concat(graphType) + "&category=".concat(category) + "&input1=".concat(encodeURIComponent(param1)) + (param2 ? "&input2=".concat(encodeURIComponent(param2)) : "");
18510
- _context62.n = 1;
18182
+ _context58.n = 1;
18511
18183
  return fetch(url);
18512
18184
 
18513
18185
  case 1:
18514
- res = _context62.v;
18186
+ res = _context58.v;
18515
18187
  if (res.ok) {
18516
- _context62.n = 2;
18188
+ _context58.n = 2;
18517
18189
  break;
18518
18190
  }
18519
18191
  throw new NetworkError("UNISWAP", res.status);
18520
18192
 
18521
18193
  case 2:
18522
- _context62.n = 3;
18194
+ _context58.n = 3;
18523
18195
  return res.json();
18524
18196
 
18525
18197
  case 3:
18526
- _json7 = _context62.v;
18198
+ _json6 = _context58.v;
18527
18199
  filterColumnName = columnName === null || columnName === void 0 ? void 0 : columnName.split(",").map(function(s) {
18528
18200
  return s.trim();
18529
18201
  });
18530
- if (!Array.isArray(_json7)) {
18531
- _context62.n = 4;
18202
+ if (!Array.isArray(_json6)) {
18203
+ _context58.n = 4;
18532
18204
  break;
18533
18205
  }
18534
- return _context62.a(2, _json7.map(function(item) {
18206
+ return _context58.a(2, _json6.map(function(item) {
18535
18207
  if (!columnName) return item;
18536
18208
  var flat = {};
18537
- Object.entries(item).forEach(function(_ref34) {
18538
- var _ref35 = _slicedToArray(_ref34, 2), k = _ref35[0], v = _ref35[1];
18209
+ Object.entries(item).forEach(function(_ref32) {
18210
+ var _ref33 = _slicedToArray(_ref32, 2), k = _ref33[0], v = _ref33[1];
18539
18211
  if (columnName && filterColumnName.includes(k) && (v === null || _typeof(v) !== "object")) flat[k] = v;
18540
18212
  });
18541
18213
  return flat;
18542
18214
  }));
18543
18215
 
18544
18216
  case 4:
18545
- if (!(columnName && _typeof(_json7) === "object")) {
18546
- _context62.n = 5;
18217
+ if (!(columnName && _typeof(_json6) === "object")) {
18218
+ _context58.n = 5;
18547
18219
  break;
18548
18220
  }
18549
- _data0 = {};
18221
+ _data8 = {};
18550
18222
  filterColumnName.forEach(function(k) {
18551
- _data0[k] = _json7[k];
18223
+ _data8[k] = _json6[k];
18552
18224
  });
18553
- return _context62.a(2, _data0);
18225
+ return _context58.a(2, _data8);
18554
18226
 
18555
18227
  case 5:
18556
- return _context62.a(2, _json7);
18228
+ return _context58.a(2, _json6);
18557
18229
 
18558
18230
  case 6:
18559
- _context62.p = 6;
18560
- _t28 = _context62.v;
18561
- return _context62.a(2, errorMessageHandler(_t28, "UNISWAP"));
18231
+ _context58.p = 6;
18232
+ _t25 = _context58.v;
18233
+ return _context58.a(2, errorMessageHandler(_t25, "UNISWAP"));
18562
18234
  }
18563
- }, _callee58, null, [ [ 0, 6 ] ]);
18235
+ }, _callee54, null, [ [ 0, 6 ] ]);
18564
18236
  }));
18565
18237
  return _UNISWAP.apply(this, arguments);
18566
18238
  }
@@ -18568,15 +18240,15 @@ function _typeof(o) {
18568
18240
  return _SMARTCONTRACT.apply(this, arguments);
18569
18241
  }
18570
18242
  function _SMARTCONTRACT() {
18571
- _SMARTCONTRACT = _asyncToGenerator(_regenerator().m(function _callee59() {
18572
- var args, _args63 = arguments, _t29;
18573
- return _regenerator().w(function(_context63) {
18574
- while (1) switch (_context63.p = _context63.n) {
18243
+ _SMARTCONTRACT = _asyncToGenerator(_regenerator().m(function _callee55() {
18244
+ var args, _args59 = arguments, _t26;
18245
+ return _regenerator().w(function(_context59) {
18246
+ while (1) switch (_context59.p = _context59.n) {
18575
18247
  case 0:
18576
- _context63.p = 0;
18577
- args = argsToArray(_args63);
18578
- console.log(args, _args63);
18579
- return _context63.a(2, new Promise(function(resolve) {
18248
+ _context59.p = 0;
18249
+ args = argsToArray(_args59);
18250
+ console.log(args, _args59);
18251
+ return _context59.a(2, new Promise(function(resolve) {
18580
18252
  resolve({
18581
18253
  callSignature: args,
18582
18254
  responseType: "smart-contract"
@@ -18584,11 +18256,11 @@ function _typeof(o) {
18584
18256
  }));
18585
18257
 
18586
18258
  case 1:
18587
- _context63.p = 1;
18588
- _t29 = _context63.v;
18589
- return _context63.a(2, errorMessageHandler(_t29, "SMARTCONTRACT"));
18259
+ _context59.p = 1;
18260
+ _t26 = _context59.v;
18261
+ return _context59.a(2, errorMessageHandler(_t26, "SMARTCONTRACT"));
18590
18262
  }
18591
- }, _callee59, null, [ [ 0, 1 ] ]);
18263
+ }, _callee55, null, [ [ 0, 1 ] ]);
18592
18264
  }));
18593
18265
  return _SMARTCONTRACT.apply(this, arguments);
18594
18266
  }
@@ -18600,45 +18272,45 @@ function _typeof(o) {
18600
18272
  return _TALLY.apply(this, arguments);
18601
18273
  }
18602
18274
  function _TALLY() {
18603
- _TALLY = _asyncToGenerator(_regenerator().m(function _callee60() {
18604
- var _argsToArray29, _argsToArray30, query, slug, baseUrl, url, res, _data1, _args64 = arguments, _t30;
18605
- return _regenerator().w(function(_context64) {
18606
- while (1) switch (_context64.p = _context64.n) {
18275
+ _TALLY = _asyncToGenerator(_regenerator().m(function _callee56() {
18276
+ var _argsToArray23, _argsToArray24, query, slug, baseUrl, url, res, _data9, _args60 = arguments, _t27;
18277
+ return _regenerator().w(function(_context60) {
18278
+ while (1) switch (_context60.p = _context60.n) {
18607
18279
  case 0:
18608
- _context64.p = 0;
18609
- _argsToArray29 = argsToArray(_args64), _argsToArray30 = _slicedToArray(_argsToArray29, 2),
18610
- query = _argsToArray30[0], slug = _argsToArray30[1];
18280
+ _context60.p = 0;
18281
+ _argsToArray23 = argsToArray(_args60), _argsToArray24 = _slicedToArray(_argsToArray23, 2),
18282
+ query = _argsToArray24[0], slug = _argsToArray24[1];
18611
18283
  validateParams(tallyParamsSchema, {
18612
18284
  query: query,
18613
18285
  slug: slug
18614
18286
  });
18615
18287
  baseUrl = "https://onchain-proxy.fileverse.io/third-party";
18616
18288
  url = "".concat(baseUrl) + "?service=tally" + "&input1=".concat(encodeURIComponent(query)) + "&input2=".concat(encodeURIComponent(slug));
18617
- _context64.n = 1;
18289
+ _context60.n = 1;
18618
18290
  return fetch(url);
18619
18291
 
18620
18292
  case 1:
18621
- res = _context64.v;
18293
+ res = _context60.v;
18622
18294
  if (res.ok) {
18623
- _context64.n = 2;
18295
+ _context60.n = 2;
18624
18296
  break;
18625
18297
  }
18626
18298
  throw new NetworkError("TALLY", res.status);
18627
18299
 
18628
18300
  case 2:
18629
- _context64.n = 3;
18301
+ _context60.n = 3;
18630
18302
  return res.json();
18631
18303
 
18632
18304
  case 3:
18633
- _data1 = _context64.v;
18634
- return _context64.a(2, _data1);
18305
+ _data9 = _context60.v;
18306
+ return _context60.a(2, _data9);
18635
18307
 
18636
18308
  case 4:
18637
- _context64.p = 4;
18638
- _t30 = _context64.v;
18639
- return _context64.a(2, errorMessageHandler(_t30, "TALLY"));
18309
+ _context60.p = 4;
18310
+ _t27 = _context60.v;
18311
+ return _context60.a(2, errorMessageHandler(_t27, "TALLY"));
18640
18312
  }
18641
- }, _callee60, null, [ [ 0, 4 ] ]);
18313
+ }, _callee56, null, [ [ 0, 4 ] ]);
18642
18314
  }));
18643
18315
  return _TALLY.apply(this, arguments);
18644
18316
  }
@@ -18723,51 +18395,51 @@ function _typeof(o) {
18723
18395
  }
18724
18396
  }
18725
18397
  var cachedChains = null;
18726
- function getChainName(_x16) {
18398
+ function getChainName(_x14) {
18727
18399
  return _getChainName.apply(this, arguments);
18728
18400
  }
18729
18401
  function _getChainName() {
18730
- _getChainName = _asyncToGenerator(_regenerator().m(function _callee61(chainId) {
18731
- var res, chain, _t31;
18732
- return _regenerator().w(function(_context65) {
18733
- while (1) switch (_context65.p = _context65.n) {
18402
+ _getChainName = _asyncToGenerator(_regenerator().m(function _callee57(chainId) {
18403
+ var res, chain, _t28;
18404
+ return _regenerator().w(function(_context61) {
18405
+ while (1) switch (_context61.p = _context61.n) {
18734
18406
  case 0:
18735
- _context65.p = 0;
18407
+ _context61.p = 0;
18736
18408
  if (cachedChains) {
18737
- _context65.n = 4;
18409
+ _context61.n = 4;
18738
18410
  break;
18739
18411
  }
18740
- _context65.n = 1;
18412
+ _context61.n = 1;
18741
18413
  return fetch("https://chainid.network/chains_mini.json");
18742
18414
 
18743
18415
  case 1:
18744
- res = _context65.v;
18416
+ res = _context61.v;
18745
18417
  if (res.ok) {
18746
- _context65.n = 2;
18418
+ _context61.n = 2;
18747
18419
  break;
18748
18420
  }
18749
18421
  throw new Error("Failed to fetch chains.json");
18750
18422
 
18751
18423
  case 2:
18752
- _context65.n = 3;
18424
+ _context61.n = 3;
18753
18425
  return res.json();
18754
18426
 
18755
18427
  case 3:
18756
- cachedChains = _context65.v;
18428
+ cachedChains = _context61.v;
18757
18429
 
18758
18430
  case 4:
18759
18431
  chain = cachedChains.find(function(c) {
18760
18432
  return c.chainId === chainId;
18761
18433
  });
18762
- return _context65.a(2, chain ? chain.name : chainId);
18434
+ return _context61.a(2, chain ? chain.name : chainId);
18763
18435
 
18764
18436
  case 5:
18765
- _context65.p = 5;
18766
- _t31 = _context65.v;
18767
- console.log(_t31);
18768
- return _context65.a(2, chainId);
18437
+ _context61.p = 5;
18438
+ _t28 = _context61.v;
18439
+ console.log(_t28);
18440
+ return _context61.a(2, chainId);
18769
18441
  }
18770
- }, _callee61, null, [ [ 0, 5 ] ]);
18442
+ }, _callee57, null, [ [ 0, 5 ] ]);
18771
18443
  }));
18772
18444
  return _getChainName.apply(this, arguments);
18773
18445
  }
@@ -18775,15 +18447,15 @@ function _typeof(o) {
18775
18447
  return _DUNE.apply(this, arguments);
18776
18448
  }
18777
18449
  function _DUNE() {
18778
- _DUNE = _asyncToGenerator(_regenerator().m(function _callee62() {
18779
- var _ref40, _json8$activity, _ref41, _json8$holders, _ref42, _json8$tokens, _argsToArray31, _argsToArray32, type, input1, input2, input3, input4, route, buildQuery, address, qs, chain, _qs, tokenAddress, _qs2, _chain, apiKey, url, _getUrlAndHeaders1, finalUrl, HEADERS, res, _data10, _json8, _data11, result, _final, globalDecimals, _iterator57, _step57, _loop5, _args67 = arguments, _t33, _t34;
18780
- return _regenerator().w(function(_context67) {
18781
- while (1) switch (_context67.p = _context67.n) {
18450
+ _DUNE = _asyncToGenerator(_regenerator().m(function _callee58() {
18451
+ var _ref38, _json7$activity, _ref39, _json7$holders, _ref40, _json7$tokens, _argsToArray25, _argsToArray26, type, input1, input2, input3, input4, route, buildQuery, address, qs, chain, _qs, tokenAddress, _qs2, _chain, apiKey, url, _getUrlAndHeaders7, finalUrl, HEADERS, res, _data0, _json7, _data1, result, _final, globalDecimals, _iterator57, _step57, _loop5, _args63 = arguments, _t30, _t31;
18452
+ return _regenerator().w(function(_context63) {
18453
+ while (1) switch (_context63.p = _context63.n) {
18782
18454
  case 0:
18783
- _context67.p = 0;
18784
- _argsToArray31 = argsToArray(_args67), _argsToArray32 = _slicedToArray(_argsToArray31, 5),
18785
- type = _argsToArray32[0], input1 = _argsToArray32[1], input2 = _argsToArray32[2],
18786
- input3 = _argsToArray32[3], input4 = _argsToArray32[4];
18455
+ _context63.p = 0;
18456
+ _argsToArray25 = argsToArray(_args63), _argsToArray26 = _slicedToArray(_argsToArray25, 5),
18457
+ type = _argsToArray26[0], input1 = _argsToArray26[1], input2 = _argsToArray26[2],
18458
+ input3 = _argsToArray26[3], input4 = _argsToArray26[4];
18787
18459
  validateParams(duneSimParamsSchema, {
18788
18460
  type: type,
18789
18461
  input1: input1,
@@ -18793,24 +18465,24 @@ function _typeof(o) {
18793
18465
  });
18794
18466
  route = "";
18795
18467
  buildQuery = function buildQuery(pairs) {
18796
- var parts = pairs.filter(function(_ref36) {
18797
- var _ref37 = _slicedToArray(_ref36, 2), _ = _ref37[0], v = _ref37[1];
18468
+ var parts = pairs.filter(function(_ref34) {
18469
+ var _ref35 = _slicedToArray(_ref34, 2), _ = _ref35[0], v = _ref35[1];
18798
18470
  return v !== undefined && v !== "";
18799
- }).map(function(_ref38) {
18800
- var _ref39 = _slicedToArray(_ref38, 2), k = _ref39[0], v = _ref39[1];
18471
+ }).map(function(_ref36) {
18472
+ var _ref37 = _slicedToArray(_ref36, 2), k = _ref37[0], v = _ref37[1];
18801
18473
  return "".concat(k, "=").concat(encodeURIComponent(v));
18802
18474
  });
18803
18475
  return parts.length ? "?".concat(parts.join("&")) : "";
18804
18476
  };
18805
18477
  if (!(type === "activity")) {
18806
- _context67.n = 2;
18478
+ _context63.n = 2;
18807
18479
  break;
18808
18480
  }
18809
- _context67.n = 1;
18481
+ _context63.n = 1;
18810
18482
  return fromEnsNameToAddress$1.validateAndGetAddress(input1);
18811
18483
 
18812
18484
  case 1:
18813
- address = _context67.v;
18485
+ address = _context63.v;
18814
18486
  qs = buildQuery([ [ "chain_ids", SUPPORTED_TOKEN_NAMES[input2] || input2 ], [ "limit", input3 ] ]);
18815
18487
  route = "activity/".concat(address).concat(qs);
18816
18488
 
@@ -18828,54 +18500,54 @@ function _typeof(o) {
18828
18500
  }
18829
18501
  apiKey = window.localStorage.getItem(SERVICES_API_KEY.DuneSim);
18830
18502
  url = "https://api.sim.dune.com/v1/evm/".concat(route);
18831
- _getUrlAndHeaders1 = getUrlAndHeaders({
18503
+ _getUrlAndHeaders7 = getUrlAndHeaders({
18832
18504
  url: url,
18833
18505
  serviceName: "DuneSim",
18834
18506
  headers: {
18835
18507
  "X-Sim-Api-Key": apiKey
18836
18508
  }
18837
- }), finalUrl = _getUrlAndHeaders1.URL, HEADERS = _getUrlAndHeaders1.HEADERS;
18838
- _context67.n = 3;
18509
+ }), finalUrl = _getUrlAndHeaders7.URL, HEADERS = _getUrlAndHeaders7.HEADERS;
18510
+ _context63.n = 3;
18839
18511
  return fetch(finalUrl, {
18840
18512
  method: "GET",
18841
18513
  headers: HEADERS
18842
18514
  });
18843
18515
 
18844
18516
  case 3:
18845
- res = _context67.v;
18517
+ res = _context63.v;
18846
18518
  if (res.ok) {
18847
- _context67.n = 6;
18519
+ _context63.n = 6;
18848
18520
  break;
18849
18521
  }
18850
18522
  if (!(res.status === 400)) {
18851
- _context67.n = 5;
18523
+ _context63.n = 5;
18852
18524
  break;
18853
18525
  }
18854
- _context67.n = 4;
18526
+ _context63.n = 4;
18855
18527
  return res.json();
18856
18528
 
18857
18529
  case 4:
18858
- _data10 = _context67.v;
18859
- throw new ValidationError(_data10.message);
18530
+ _data0 = _context63.v;
18531
+ throw new ValidationError(_data0.message);
18860
18532
 
18861
18533
  case 5:
18862
18534
  throw new NetworkError(SERVICES_API_KEY.DuneSim, res.status);
18863
18535
 
18864
18536
  case 6:
18865
- _context67.n = 7;
18537
+ _context63.n = 7;
18866
18538
  return res.json();
18867
18539
 
18868
18540
  case 7:
18869
- _json8 = _context67.v;
18870
- _data11 = type === "activity" ? (_ref40 = (_json8$activity = _json8 === null || _json8 === void 0 ? void 0 : _json8.activity) !== null && _json8$activity !== void 0 ? _json8$activity : _json8) !== null && _ref40 !== void 0 ? _ref40 : [] : type === "token-holders" ? (_ref41 = (_json8$holders = _json8 === null || _json8 === void 0 ? void 0 : _json8.holders) !== null && _json8$holders !== void 0 ? _json8$holders : _json8) !== null && _ref41 !== void 0 ? _ref41 : [] : type === "price" ? (_ref42 = (_json8$tokens = _json8 === null || _json8 === void 0 ? void 0 : _json8.tokens) !== null && _json8$tokens !== void 0 ? _json8$tokens : _json8) !== null && _ref42 !== void 0 ? _ref42 : [] : _json8 !== null && _json8 !== void 0 ? _json8 : [];
18871
- result = Array.isArray(_data11) ? _data11 : [ _data11 ];
18541
+ _json7 = _context63.v;
18542
+ _data1 = type === "activity" ? (_ref38 = (_json7$activity = _json7 === null || _json7 === void 0 ? void 0 : _json7.activity) !== null && _json7$activity !== void 0 ? _json7$activity : _json7) !== null && _ref38 !== void 0 ? _ref38 : [] : type === "token-holders" ? (_ref39 = (_json7$holders = _json7 === null || _json7 === void 0 ? void 0 : _json7.holders) !== null && _json7$holders !== void 0 ? _json7$holders : _json7) !== null && _ref39 !== void 0 ? _ref39 : [] : type === "price" ? (_ref40 = (_json7$tokens = _json7 === null || _json7 === void 0 ? void 0 : _json7.tokens) !== null && _json7$tokens !== void 0 ? _json7$tokens : _json7) !== null && _ref40 !== void 0 ? _ref40 : [] : _json7 !== null && _json7 !== void 0 ? _json7 : [];
18543
+ result = Array.isArray(_data1) ? _data1 : [ _data1 ];
18872
18544
  _final = [];
18873
18545
  _iterator57 = _createForOfIteratorHelper(result);
18874
- _context67.p = 8;
18546
+ _context63.p = 8;
18875
18547
  _loop5 = _regenerator().m(function _loop5() {
18876
- var item, prices, _resData$tokens$, _chain2, _url, _getUrlAndHeaders10, _finalUrl, _HEADERS, _res, resData, decimals, _t32;
18877
- return _regenerator().w(function(_context66) {
18878
- while (1) switch (_context66.p = _context66.n) {
18548
+ var item, prices, _resData$tokens$, _chain2, _url, _getUrlAndHeaders8, _finalUrl, _HEADERS, _res, resData, decimals, _t29;
18549
+ return _regenerator().w(function(_context62) {
18550
+ while (1) switch (_context62.p = _context62.n) {
18879
18551
  case 0:
18880
18552
  item = _step57.value;
18881
18553
  if (item !== null && item !== void 0 && item.decimals) {
@@ -18909,60 +18581,60 @@ function _typeof(o) {
18909
18581
  delete item["logo"];
18910
18582
  }
18911
18583
  if (!(type === "activity")) {
18912
- _context66.n = 2;
18584
+ _context62.n = 2;
18913
18585
  break;
18914
18586
  }
18915
- _context66.n = 1;
18587
+ _context62.n = 1;
18916
18588
  return getChainName(item.chain_id);
18917
18589
 
18918
18590
  case 1:
18919
- item.chain_id = _context66.v;
18591
+ item.chain_id = _context62.v;
18920
18592
 
18921
18593
  case 2:
18922
18594
  if (!(type === "token-holders")) {
18923
- _context66.n = 8;
18595
+ _context62.n = 8;
18924
18596
  break;
18925
18597
  }
18926
18598
  if (!item.balance) {
18927
- _context66.n = 8;
18599
+ _context62.n = 8;
18928
18600
  break;
18929
18601
  }
18930
18602
  if (globalDecimals) {
18931
- _context66.n = 7;
18603
+ _context62.n = 7;
18932
18604
  break;
18933
18605
  }
18934
- _context66.p = 3;
18606
+ _context62.p = 3;
18935
18607
  _chain2 = SUPPORTED_TOKEN_NAMES[input2] || input2;
18936
18608
  _url = "https://api.sim.dune.com/v1/evm/token-info/".concat(input1, "?chain_ids=").concat(_chain2);
18937
- _getUrlAndHeaders10 = getUrlAndHeaders({
18609
+ _getUrlAndHeaders8 = getUrlAndHeaders({
18938
18610
  url: _url,
18939
18611
  serviceName: "DuneSim",
18940
18612
  headers: {
18941
18613
  "X-Sim-Api-Key": apiKey
18942
18614
  }
18943
- }), _finalUrl = _getUrlAndHeaders10.URL, _HEADERS = _getUrlAndHeaders10.HEADERS;
18944
- _context66.n = 4;
18615
+ }), _finalUrl = _getUrlAndHeaders8.URL, _HEADERS = _getUrlAndHeaders8.HEADERS;
18616
+ _context62.n = 4;
18945
18617
  return fetch(_finalUrl, {
18946
18618
  method: "GET",
18947
18619
  headers: _HEADERS
18948
18620
  });
18949
18621
 
18950
18622
  case 4:
18951
- _res = _context66.v;
18952
- _context66.n = 5;
18623
+ _res = _context62.v;
18624
+ _context62.n = 5;
18953
18625
  return _res.json();
18954
18626
 
18955
18627
  case 5:
18956
- resData = _context66.v;
18628
+ resData = _context62.v;
18957
18629
  decimals = (_resData$tokens$ = resData.tokens[0]) === null || _resData$tokens$ === void 0 ? void 0 : _resData$tokens$.decimals;
18958
18630
  globalDecimals = decimals;
18959
- _context66.n = 7;
18631
+ _context62.n = 7;
18960
18632
  break;
18961
18633
 
18962
18634
  case 6:
18963
- _context66.p = 6;
18964
- _t32 = _context66.v;
18965
- console.log(_t32);
18635
+ _context62.p = 6;
18636
+ _t29 = _context62.v;
18637
+ console.log(_t29);
18966
18638
 
18967
18639
  case 7:
18968
18640
  item.balance = formatNumber(item.balance, globalDecimals);
@@ -18971,7 +18643,7 @@ function _typeof(o) {
18971
18643
  _final.push(flattenObject(item));
18972
18644
 
18973
18645
  case 9:
18974
- return _context66.a(2);
18646
+ return _context62.a(2);
18975
18647
  }
18976
18648
  }, _loop5, null, [ [ 3, 6 ] ]);
18977
18649
  });
@@ -18979,38 +18651,38 @@ function _typeof(o) {
18979
18651
 
18980
18652
  case 9:
18981
18653
  if ((_step57 = _iterator57.n()).done) {
18982
- _context67.n = 11;
18654
+ _context63.n = 11;
18983
18655
  break;
18984
18656
  }
18985
- return _context67.d(_regeneratorValues(_loop5()), 10);
18657
+ return _context63.d(_regeneratorValues(_loop5()), 10);
18986
18658
 
18987
18659
  case 10:
18988
- _context67.n = 9;
18660
+ _context63.n = 9;
18989
18661
  break;
18990
18662
 
18991
18663
  case 11:
18992
- _context67.n = 13;
18664
+ _context63.n = 13;
18993
18665
  break;
18994
18666
 
18995
18667
  case 12:
18996
- _context67.p = 12;
18997
- _t33 = _context67.v;
18998
- _iterator57.e(_t33);
18668
+ _context63.p = 12;
18669
+ _t30 = _context63.v;
18670
+ _iterator57.e(_t30);
18999
18671
 
19000
18672
  case 13:
19001
- _context67.p = 13;
18673
+ _context63.p = 13;
19002
18674
  _iterator57.f();
19003
- return _context67.f(13);
18675
+ return _context63.f(13);
19004
18676
 
19005
18677
  case 14:
19006
- return _context67.a(2, _final);
18678
+ return _context63.a(2, _final);
19007
18679
 
19008
18680
  case 15:
19009
- _context67.p = 15;
19010
- _t34 = _context67.v;
19011
- return _context67.a(2, errorMessageHandler(_t34, "DUNE"));
18681
+ _context63.p = 15;
18682
+ _t31 = _context63.v;
18683
+ return _context63.a(2, errorMessageHandler(_t31, "DUNE"));
19012
18684
  }
19013
- }, _callee62, null, [ [ 8, 12, 13, 14 ], [ 0, 15 ] ]);
18685
+ }, _callee58, null, [ [ 8, 12, 13, 14 ], [ 0, 15 ] ]);
19014
18686
  }));
19015
18687
  return _DUNE.apply(this, arguments);
19016
18688
  }
@@ -19047,14 +18719,14 @@ function _typeof(o) {
19047
18719
  return _PRICE.apply(this, arguments);
19048
18720
  }
19049
18721
  function _PRICE() {
19050
- _PRICE = _asyncToGenerator(_regenerator().m(function _callee63() {
19051
- var _input, _input2, _input3, _argsToArray33, _argsToArray34, input1, input2, input3, baseUrl, url, returnSingleValue, tokenAddress, coin, res, errorData, _data12, _args68 = arguments, _t35;
19052
- return _regenerator().w(function(_context68) {
19053
- while (1) switch (_context68.p = _context68.n) {
18722
+ _PRICE = _asyncToGenerator(_regenerator().m(function _callee59() {
18723
+ var _input, _input2, _input3, _argsToArray27, _argsToArray28, input1, input2, input3, baseUrl, url, returnSingleValue, tokenAddress, coin, res, errorData, _data10, _args64 = arguments, _t32;
18724
+ return _regenerator().w(function(_context64) {
18725
+ while (1) switch (_context64.p = _context64.n) {
19054
18726
  case 0:
19055
- _context68.p = 0;
19056
- _argsToArray33 = argsToArray(_args68), _argsToArray34 = _slicedToArray(_argsToArray33, 3),
19057
- input1 = _argsToArray34[0], input2 = _argsToArray34[1], input3 = _argsToArray34[2];
18727
+ _context64.p = 0;
18728
+ _argsToArray27 = argsToArray(_args64), _argsToArray28 = _slicedToArray(_argsToArray27, 3),
18729
+ input1 = _argsToArray28[0], input2 = _argsToArray28[1], input3 = _argsToArray28[2];
19058
18730
  input1 = (_input = input1) === null || _input === void 0 ? void 0 : _input.replace(/\s+/g, "");
19059
18731
  input2 = (_input2 = input2) === null || _input2 === void 0 ? void 0 : _input2.replace(/\s+/g, "");
19060
18732
  input3 = (_input3 = input3) === null || _input3 === void 0 ? void 0 : _input3.replace(/\s+/g, "");
@@ -19081,50 +18753,50 @@ function _typeof(o) {
19081
18753
  returnSingleValue = true;
19082
18754
  }
19083
18755
  }
19084
- _context68.n = 1;
18756
+ _context64.n = 1;
19085
18757
  return fetch(url);
19086
18758
 
19087
18759
  case 1:
19088
- res = _context68.v;
18760
+ res = _context64.v;
19089
18761
  if (!(res.status === 400)) {
19090
- _context68.n = 3;
18762
+ _context64.n = 3;
19091
18763
  break;
19092
18764
  }
19093
- _context68.n = 2;
18765
+ _context64.n = 2;
19094
18766
  return res.json();
19095
18767
 
19096
18768
  case 2:
19097
- errorData = _context68.v;
18769
+ errorData = _context64.v;
19098
18770
  throw new ValidationError(errorData.message);
19099
18771
 
19100
18772
  case 3:
19101
18773
  if (res.ok) {
19102
- _context68.n = 4;
18774
+ _context64.n = 4;
19103
18775
  break;
19104
18776
  }
19105
18777
  throw new NetworkError("PRICE", res.status);
19106
18778
 
19107
18779
  case 4:
19108
- _context68.n = 5;
18780
+ _context64.n = 5;
19109
18781
  return res.json();
19110
18782
 
19111
18783
  case 5:
19112
- _data12 = _context68.v;
18784
+ _data10 = _context64.v;
19113
18785
  if (!returnSingleValue) {
19114
- _context68.n = 6;
18786
+ _context64.n = 6;
19115
18787
  break;
19116
18788
  }
19117
- return _context68.a(2, _data12[0].price);
18789
+ return _context64.a(2, _data10[0].price);
19118
18790
 
19119
18791
  case 6:
19120
- return _context68.a(2, _data12);
18792
+ return _context64.a(2, _data10);
19121
18793
 
19122
18794
  case 7:
19123
- _context68.p = 7;
19124
- _t35 = _context68.v;
19125
- return _context68.a(2, errorMessageHandler(_t35, "PRICE"));
18795
+ _context64.p = 7;
18796
+ _t32 = _context64.v;
18797
+ return _context64.a(2, errorMessageHandler(_t32, "PRICE"));
19126
18798
  }
19127
- }, _callee63, null, [ [ 0, 7 ] ]);
18799
+ }, _callee59, null, [ [ 0, 7 ] ]);
19128
18800
  }));
19129
18801
  return _PRICE.apply(this, arguments);
19130
18802
  }
@@ -19143,70 +18815,70 @@ function _typeof(o) {
19143
18815
  }
19144
18816
  });
19145
18817
  var getResolvedAddresses = function() {
19146
- var _ref15 = _asyncToGenerator(_regenerator().m(function _callee10(addresses) {
18818
+ var _ref14 = _asyncToGenerator(_regenerator().m(function _callee1(addresses) {
19147
18819
  var addressesList, resolvedAddresses, _iterator45, _step45, address, _data2, _t6;
19148
- return _regenerator().w(function(_context10) {
19149
- while (1) switch (_context10.p = _context10.n) {
18820
+ return _regenerator().w(function(_context1) {
18821
+ while (1) switch (_context1.p = _context1.n) {
19150
18822
  case 0:
19151
18823
  addressesList = addresses.split(",");
19152
18824
  resolvedAddresses = [];
19153
18825
  _iterator45 = _createForOfIteratorHelper(addressesList);
19154
- _context10.p = 1;
18826
+ _context1.p = 1;
19155
18827
  _iterator45.s();
19156
18828
 
19157
18829
  case 2:
19158
18830
  if ((_step45 = _iterator45.n()).done) {
19159
- _context10.n = 5;
18831
+ _context1.n = 5;
19160
18832
  break;
19161
18833
  }
19162
18834
  address = _step45.value;
19163
- _context10.n = 3;
18835
+ _context1.n = 3;
19164
18836
  return fromEnsNameToAddress$1.validateAndGetAddress(address);
19165
18837
 
19166
18838
  case 3:
19167
- _data2 = _context10.v;
18839
+ _data2 = _context1.v;
19168
18840
  resolvedAddresses.push(_data2);
19169
18841
 
19170
18842
  case 4:
19171
- _context10.n = 2;
18843
+ _context1.n = 2;
19172
18844
  break;
19173
18845
 
19174
18846
  case 5:
19175
- _context10.n = 7;
18847
+ _context1.n = 7;
19176
18848
  break;
19177
18849
 
19178
18850
  case 6:
19179
- _context10.p = 6;
19180
- _t6 = _context10.v;
18851
+ _context1.p = 6;
18852
+ _t6 = _context1.v;
19181
18853
  _iterator45.e(_t6);
19182
18854
 
19183
18855
  case 7:
19184
- _context10.p = 7;
18856
+ _context1.p = 7;
19185
18857
  _iterator45.f();
19186
- return _context10.f(7);
18858
+ return _context1.f(7);
19187
18859
 
19188
18860
  case 8:
19189
- return _context10.a(2, resolvedAddresses.join(","));
18861
+ return _context1.a(2, resolvedAddresses.join(","));
19190
18862
  }
19191
- }, _callee10, null, [ [ 1, 6, 7, 8 ] ]);
18863
+ }, _callee1, null, [ [ 1, 6, 7, 8 ] ]);
19192
18864
  }));
19193
- return function getResolvedAddresses(_x17) {
19194
- return _ref15.apply(this, arguments);
18865
+ return function getResolvedAddresses(_x15) {
18866
+ return _ref14.apply(this, arguments);
19195
18867
  };
19196
18868
  }();
19197
18869
  function WALLET() {
19198
18870
  return _WALLET.apply(this, arguments);
19199
18871
  }
19200
18872
  function _WALLET() {
19201
- _WALLET = _asyncToGenerator(_regenerator().m(function _callee64() {
19202
- var _addresses, _chains, _time, _argsToArray35, _argsToArray36, addresses, chains, query, time, baseUrl, resolvedAddresses, url, res, errorData, _json9, _args69 = arguments, _t36;
19203
- return _regenerator().w(function(_context69) {
19204
- while (1) switch (_context69.p = _context69.n) {
18873
+ _WALLET = _asyncToGenerator(_regenerator().m(function _callee60() {
18874
+ var _addresses, _chains, _time, _argsToArray29, _argsToArray30, addresses, chains, query, time, baseUrl, resolvedAddresses, url, res, errorData, _json8, _args65 = arguments, _t33;
18875
+ return _regenerator().w(function(_context65) {
18876
+ while (1) switch (_context65.p = _context65.n) {
19205
18877
  case 0:
19206
- _context69.p = 0;
19207
- _argsToArray35 = argsToArray(_args69), _argsToArray36 = _slicedToArray(_argsToArray35, 4),
19208
- addresses = _argsToArray36[0], chains = _argsToArray36[1], query = _argsToArray36[2],
19209
- time = _argsToArray36[3];
18878
+ _context65.p = 0;
18879
+ _argsToArray29 = argsToArray(_args65), _argsToArray30 = _slicedToArray(_argsToArray29, 4),
18880
+ addresses = _argsToArray30[0], chains = _argsToArray30[1], query = _argsToArray30[2],
18881
+ time = _argsToArray30[3];
19210
18882
  validateParams(walletParamsSchema, {
19211
18883
  addresses: addresses,
19212
18884
  chains: chains,
@@ -19217,52 +18889,52 @@ function _typeof(o) {
19217
18889
  chains = (_chains = chains) === null || _chains === void 0 ? void 0 : _chains.replace(/\s+/g, "");
19218
18890
  time = (_time = time) === null || _time === void 0 ? void 0 : _time.replace(/\s+/g, "");
19219
18891
  baseUrl = "https://onchain-proxy.fileverse.io";
19220
- _context69.n = 1;
18892
+ _context65.n = 1;
19221
18893
  return getResolvedAddresses(addresses);
19222
18894
 
19223
18895
  case 1:
19224
- resolvedAddresses = _context69.v;
18896
+ resolvedAddresses = _context65.v;
19225
18897
  url = "".concat(baseUrl, "/third-party?service=wallet&addresses=").concat(resolvedAddresses, "&chains=").concat(chains, "&query=").concat(query);
19226
18898
  if (time) {
19227
18899
  url += "&time=".concat(time);
19228
18900
  }
19229
- _context69.n = 2;
18901
+ _context65.n = 2;
19230
18902
  return fetch(url);
19231
18903
 
19232
18904
  case 2:
19233
- res = _context69.v;
18905
+ res = _context65.v;
19234
18906
  if (!(res.status === 400)) {
19235
- _context69.n = 4;
18907
+ _context65.n = 4;
19236
18908
  break;
19237
18909
  }
19238
- _context69.n = 3;
18910
+ _context65.n = 3;
19239
18911
  return res.json();
19240
18912
 
19241
18913
  case 3:
19242
- errorData = _context69.v;
18914
+ errorData = _context65.v;
19243
18915
  throw new ValidationError(errorData.message);
19244
18916
 
19245
18917
  case 4:
19246
18918
  if (res.ok) {
19247
- _context69.n = 5;
18919
+ _context65.n = 5;
19248
18920
  break;
19249
18921
  }
19250
18922
  throw new NetworkError("WALLET", res.status);
19251
18923
 
19252
18924
  case 5:
19253
- _context69.n = 6;
18925
+ _context65.n = 6;
19254
18926
  return res.json();
19255
18927
 
19256
18928
  case 6:
19257
- _json9 = _context69.v;
19258
- return _context69.a(2, _json9);
18929
+ _json8 = _context65.v;
18930
+ return _context65.a(2, _json8);
19259
18931
 
19260
18932
  case 7:
19261
- _context69.p = 7;
19262
- _t36 = _context69.v;
19263
- return _context69.a(2, errorMessageHandler(_t36, "WALLET"));
18933
+ _context65.p = 7;
18934
+ _t33 = _context65.v;
18935
+ return _context65.a(2, errorMessageHandler(_t33, "WALLET"));
19264
18936
  }
19265
- }, _callee64, null, [ [ 0, 7 ] ]);
18937
+ }, _callee60, null, [ [ 0, 7 ] ]);
19266
18938
  }));
19267
18939
  return _WALLET.apply(this, arguments);
19268
18940
  }
@@ -19274,23 +18946,23 @@ function _typeof(o) {
19274
18946
  return _YIELD.apply(this, arguments);
19275
18947
  }
19276
18948
  function _YIELD() {
19277
- _YIELD = _asyncToGenerator(_regenerator().m(function _callee65() {
19278
- var _argsToArray37, _argsToArray38, category, columnName, response, returnValue, filterColumnName, result, _args70 = arguments, _t37;
19279
- return _regenerator().w(function(_context70) {
19280
- while (1) switch (_context70.p = _context70.n) {
18949
+ _YIELD = _asyncToGenerator(_regenerator().m(function _callee61() {
18950
+ var _argsToArray31, _argsToArray32, category, columnName, response, returnValue, filterColumnName, result, _args66 = arguments, _t34;
18951
+ return _regenerator().w(function(_context66) {
18952
+ while (1) switch (_context66.p = _context66.n) {
19281
18953
  case 0:
19282
- _context70.p = 0;
19283
- _argsToArray37 = argsToArray(_args70), _argsToArray38 = _slicedToArray(_argsToArray37, 2),
19284
- category = _argsToArray38[0], columnName = _argsToArray38[1];
18954
+ _context66.p = 0;
18955
+ _argsToArray31 = argsToArray(_args66), _argsToArray32 = _slicedToArray(_argsToArray31, 2),
18956
+ category = _argsToArray32[0], columnName = _argsToArray32[1];
19285
18957
  validateParams(yieldParamsSchema, {
19286
18958
  category: category,
19287
18959
  columnName: columnName
19288
18960
  });
19289
- _context70.n = 1;
18961
+ _context66.n = 1;
19290
18962
  return DEFILLAMA("yields");
19291
18963
 
19292
18964
  case 1:
19293
- response = _context70.v;
18965
+ response = _context66.v;
19294
18966
  filterColumnName = columnName === null || columnName === void 0 ? void 0 : columnName.split(",").map(function(s) {
19295
18967
  return s.trim();
19296
18968
  });
@@ -19305,22 +18977,22 @@ function _typeof(o) {
19305
18977
  return data.stablecoin;
19306
18978
  });
19307
18979
  returnValue = result;
19308
- return _context70.a(2, (Array.isArray(returnValue) ? returnValue : [ returnValue ]).map(function(item) {
18980
+ return _context66.a(2, (Array.isArray(returnValue) ? returnValue : [ returnValue ]).map(function(item) {
19309
18981
  if (!filterColumnName) return item;
19310
18982
  var out = {};
19311
- for (var _i41 = 0, _Object$entries8 = Object.entries(item); _i41 < _Object$entries8.length; _i41++) {
19312
- var _Object$entries8$_i = _slicedToArray(_Object$entries8[_i41], 2), k = _Object$entries8$_i[0], v = _Object$entries8$_i[1];
18983
+ for (var _i39 = 0, _Object$entries6 = Object.entries(item); _i39 < _Object$entries6.length; _i39++) {
18984
+ var _Object$entries6$_i = _slicedToArray(_Object$entries6[_i39], 2), k = _Object$entries6$_i[0], v = _Object$entries6$_i[1];
19313
18985
  if (columnName && filterColumnName.includes(k) && (v === null || _typeof(v) !== "object")) out[k] = v;
19314
18986
  }
19315
18987
  return out;
19316
18988
  }));
19317
18989
 
19318
18990
  case 2:
19319
- _context70.p = 2;
19320
- _t37 = _context70.v;
19321
- return _context70.a(2, errorMessageHandler(_t37, "YIELD"));
18991
+ _context66.p = 2;
18992
+ _t34 = _context66.v;
18993
+ return _context66.a(2, errorMessageHandler(_t34, "YIELD"));
19322
18994
  }
19323
- }, _callee65, null, [ [ 0, 2 ] ]);
18995
+ }, _callee61, null, [ [ 0, 2 ] ]);
19324
18996
  }));
19325
18997
  return _YIELD.apply(this, arguments);
19326
18998
  }
@@ -20374,9 +20046,9 @@ function _typeof(o) {
20374
20046
  var Al = new Uint32Array(lst.length);
20375
20047
  for (var i = 0; i < lst.length; i++) {
20376
20048
  var _fromBig = fromBig(lst[i], le), h = _fromBig.h, l = _fromBig.l;
20377
- var _ref16 = [ h, l ];
20378
- Ah[i] = _ref16[0];
20379
- Al[i] = _ref16[1];
20049
+ var _ref15 = [ h, l ];
20050
+ Ah[i] = _ref15[0];
20051
+ Al[i] = _ref15[1];
20380
20052
  }
20381
20053
  return [ Ah, Al ];
20382
20054
  }
@@ -20440,9 +20112,9 @@ function _typeof(o) {
20440
20112
  var _256n = BigInt(256);
20441
20113
  var _0x71n = BigInt(113);
20442
20114
  for (var round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {
20443
- var _ref17 = [ y, (2 * x + 3 * y) % 5 ];
20444
- x = _ref17[0];
20445
- y = _ref17[1];
20115
+ var _ref16 = [ y, (2 * x + 3 * y) % 5 ];
20116
+ x = _ref16[0];
20117
+ y = _ref16[1];
20446
20118
  SHA3_PI.push(2 * (5 * y + x));
20447
20119
  SHA3_ROTL.push((round + 1) * (round + 2) / 2 % 64);
20448
20120
  var t = _0n;
@@ -20463,17 +20135,17 @@ function _typeof(o) {
20463
20135
  var rounds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 24;
20464
20136
  var B = new Uint32Array(5 * 2);
20465
20137
  for (var _round = 24 - rounds; _round < 24; _round++) {
20466
- for (var _x18 = 0; _x18 < 10; _x18++) B[_x18] = s[_x18] ^ s[_x18 + 10] ^ s[_x18 + 20] ^ s[_x18 + 30] ^ s[_x18 + 40];
20467
- for (var _x19 = 0; _x19 < 10; _x19 += 2) {
20468
- var idx1 = (_x19 + 8) % 10;
20469
- var idx0 = (_x19 + 2) % 10;
20138
+ for (var _x16 = 0; _x16 < 10; _x16++) B[_x16] = s[_x16] ^ s[_x16 + 10] ^ s[_x16 + 20] ^ s[_x16 + 30] ^ s[_x16 + 40];
20139
+ for (var _x17 = 0; _x17 < 10; _x17 += 2) {
20140
+ var idx1 = (_x17 + 8) % 10;
20141
+ var idx0 = (_x17 + 2) % 10;
20470
20142
  var B0 = B[idx0];
20471
20143
  var B1 = B[idx0 + 1];
20472
20144
  var Th = rotlH(B0, B1, 1) ^ B[idx1];
20473
20145
  var Tl = rotlL(B0, B1, 1) ^ B[idx1 + 1];
20474
20146
  for (var _y = 0; _y < 50; _y += 10) {
20475
- s[_x19 + _y] ^= Th;
20476
- s[_x19 + _y + 1] ^= Tl;
20147
+ s[_x17 + _y] ^= Th;
20148
+ s[_x17 + _y + 1] ^= Tl;
20477
20149
  }
20478
20150
  }
20479
20151
  var curH = s[2];
@@ -20489,8 +20161,8 @@ function _typeof(o) {
20489
20161
  s[_PI + 1] = _Tl;
20490
20162
  }
20491
20163
  for (var _y2 = 0; _y2 < 50; _y2 += 10) {
20492
- for (var _x20 = 0; _x20 < 10; _x20++) B[_x20] = s[_y2 + _x20];
20493
- for (var _x21 = 0; _x21 < 10; _x21++) s[_y2 + _x21] ^= ~B[(_x21 + 2) % 10] & B[(_x21 + 4) % 10];
20164
+ for (var _x18 = 0; _x18 < 10; _x18++) B[_x18] = s[_y2 + _x18];
20165
+ for (var _x19 = 0; _x19 < 10; _x19++) s[_y2 + _x19] ^= ~B[(_x19 + 2) % 10] & B[(_x19 + 4) % 10];
20494
20166
  }
20495
20167
  s[0] ^= SHA3_IOTA_H[_round];
20496
20168
  s[1] ^= SHA3_IOTA_L[_round];
@@ -22364,10 +22036,10 @@ function _typeof(o) {
22364
22036
  }, {
22365
22037
  key: "walkAsync",
22366
22038
  value: function() {
22367
- var _walkAsync2 = _asyncToGenerator(_regenerator().m(function _callee11(value, process) {
22039
+ var _walkAsync2 = _asyncToGenerator(_regenerator().m(function _callee10(value, process) {
22368
22040
  var promises, result;
22369
- return _regenerator().w(function(_context11) {
22370
- while (1) switch (_context11.n) {
22041
+ return _regenerator().w(function(_context10) {
22042
+ while (1) switch (_context10.n) {
22371
22043
  case 0:
22372
22044
  promises = [];
22373
22045
  result = [ value ];
@@ -22375,18 +22047,18 @@ function _typeof(o) {
22375
22047
  result[0] = value;
22376
22048
  });
22377
22049
  if (!promises.length) {
22378
- _context11.n = 1;
22050
+ _context10.n = 1;
22379
22051
  break;
22380
22052
  }
22381
- _context11.n = 1;
22053
+ _context10.n = 1;
22382
22054
  return Promise.all(promises);
22383
22055
 
22384
22056
  case 1:
22385
- return _context11.a(2, result[0]);
22057
+ return _context10.a(2, result[0]);
22386
22058
  }
22387
- }, _callee11, this);
22059
+ }, _callee10, this);
22388
22060
  }));
22389
- function walkAsync(_x22, _x23) {
22061
+ function walkAsync(_x20, _x21) {
22390
22062
  return _walkAsync2.apply(this, arguments);
22391
22063
  }
22392
22064
  return walkAsync;
@@ -22527,22 +22199,22 @@ function _typeof(o) {
22527
22199
  }
22528
22200
  var result = process(this.type, value);
22529
22201
  if (result.then) {
22530
- promises.push(_asyncToGenerator(_regenerator().m(function _callee66() {
22531
- var _t38;
22532
- return _regenerator().w(function(_context71) {
22533
- while (1) switch (_context71.n) {
22202
+ promises.push(_asyncToGenerator(_regenerator().m(function _callee62() {
22203
+ var _t35;
22204
+ return _regenerator().w(function(_context67) {
22205
+ while (1) switch (_context67.n) {
22534
22206
  case 0:
22535
- _t38 = setValue;
22536
- _context71.n = 1;
22207
+ _t35 = setValue;
22208
+ _context67.n = 1;
22537
22209
  return result;
22538
22210
 
22539
22211
  case 1:
22540
- _t38(_context71.v);
22212
+ _t35(_context67.v);
22541
22213
 
22542
22214
  case 2:
22543
- return _context71.a(2);
22215
+ return _context67.a(2);
22544
22216
  }
22545
- }, _callee66);
22217
+ }, _callee62);
22546
22218
  }))());
22547
22219
  } else {
22548
22220
  setValue(result);
@@ -24062,14 +23734,14 @@ function _typeof(o) {
24062
23734
  allowOptions = false;
24063
23735
  valueLength--;
24064
23736
  }
24065
- for (var _i42 = matching.length - 1; _i42 >= 0; _i42--) {
24066
- var inputs = matching[_i42].inputs.length;
23737
+ for (var _i40 = matching.length - 1; _i40 >= 0; _i40--) {
23738
+ var inputs = matching[_i40].inputs.length;
24067
23739
  if (inputs !== valueLength && (!allowOptions || inputs !== valueLength - 1)) {
24068
- matching.splice(_i42, 1);
23740
+ matching.splice(_i40, 1);
24069
23741
  }
24070
23742
  }
24071
- for (var _i43 = matching.length - 1; _i43 >= 0; _i43--) {
24072
- var _inputs3 = matching[_i43].inputs;
23743
+ for (var _i41 = matching.length - 1; _i41 >= 0; _i41--) {
23744
+ var _inputs3 = matching[_i41].inputs;
24073
23745
  for (var _j2 = 0; _j2 < values.length; _j2++) {
24074
23746
  if (!Typed.isTyped(values[_j2])) {
24075
23747
  continue;
@@ -24078,11 +23750,11 @@ function _typeof(o) {
24078
23750
  if (values[_j2].type === "overrides") {
24079
23751
  continue;
24080
23752
  }
24081
- matching.splice(_i43, 1);
23753
+ matching.splice(_i41, 1);
24082
23754
  break;
24083
23755
  }
24084
23756
  if (values[_j2].type !== _inputs3[_j2].baseType) {
24085
- matching.splice(_i43, 1);
23757
+ matching.splice(_i41, 1);
24086
23758
  break;
24087
23759
  }
24088
23760
  }
@@ -24145,19 +23817,19 @@ function _typeof(o) {
24145
23817
  _iterator61.f();
24146
23818
  }
24147
23819
  if (values) {
24148
- for (var _i44 = matching.length - 1; _i44 >= 0; _i44--) {
24149
- if (matching[_i44].inputs.length < values.length) {
24150
- matching.splice(_i44, 1);
23820
+ for (var _i42 = matching.length - 1; _i42 >= 0; _i42--) {
23821
+ if (matching[_i42].inputs.length < values.length) {
23822
+ matching.splice(_i42, 1);
24151
23823
  }
24152
23824
  }
24153
- for (var _i45 = matching.length - 1; _i45 >= 0; _i45--) {
24154
- var inputs = matching[_i45].inputs;
23825
+ for (var _i43 = matching.length - 1; _i43 >= 0; _i43--) {
23826
+ var inputs = matching[_i43].inputs;
24155
23827
  for (var _j3 = 0; _j3 < values.length; _j3++) {
24156
23828
  if (!Typed.isTyped(values[_j3])) {
24157
23829
  continue;
24158
23830
  }
24159
23831
  if (values[_j3].type !== inputs[_j3].baseType) {
24160
- matching.splice(_i45, 1);
23832
+ matching.splice(_i43, 1);
24161
23833
  break;
24162
23834
  }
24163
23835
  }
@@ -25332,12 +25004,12 @@ function _typeof(o) {
25332
25004
  }
25333
25005
  } ]);
25334
25006
  }();
25335
- var from = function from(_ref20) {
25336
- var name = _ref20.name, prefix = _ref20.prefix, encode = _ref20.encode, decode = _ref20.decode;
25007
+ var from = function from(_ref19) {
25008
+ var name = _ref19.name, prefix = _ref19.prefix, encode = _ref19.encode, decode = _ref19.decode;
25337
25009
  return new Codec(name, prefix, encode, decode);
25338
25010
  };
25339
- var baseX = function baseX(_ref21) {
25340
- var prefix = _ref21.prefix, name = _ref21.name, alphabet = _ref21.alphabet;
25011
+ var baseX = function baseX(_ref20) {
25012
+ var prefix = _ref20.prefix, name = _ref20.name, alphabet = _ref20.alphabet;
25341
25013
  var _baseX$ = baseX$1(alphabet, name), encode = _baseX$.encode, _decode2 = _baseX$.decode;
25342
25014
  return from({
25343
25015
  prefix: prefix,
@@ -25402,8 +25074,8 @@ function _typeof(o) {
25402
25074
  }
25403
25075
  return out;
25404
25076
  };
25405
- var rfc4648 = function rfc4648(_ref22) {
25406
- var name = _ref22.name, prefix = _ref22.prefix, bitsPerChar = _ref22.bitsPerChar, alphabet = _ref22.alphabet;
25077
+ var rfc4648 = function rfc4648(_ref21) {
25078
+ var name = _ref21.name, prefix = _ref21.prefix, bitsPerChar = _ref21.bitsPerChar, alphabet = _ref21.alphabet;
25407
25079
  return from({
25408
25080
  prefix: prefix,
25409
25081
  name: name,
@@ -25881,8 +25553,8 @@ function _typeof(o) {
25881
25553
  value: true
25882
25554
  });
25883
25555
  var _digest = requireDigest();
25884
- var from = function from(_ref23) {
25885
- var name = _ref23.name, code = _ref23.code, encode = _ref23.encode;
25556
+ var from = function from(_ref22) {
25557
+ var name = _ref22.name, code = _ref22.code, encode = _ref22.encode;
25886
25558
  return new Hasher(name, code, encode);
25887
25559
  };
25888
25560
  var Hasher = function() {
@@ -26964,29 +26636,29 @@ function _typeof(o) {
26964
26636
  return _createClass(CalculationContext, [ {
26965
26637
  key: "getOrCreateMemo",
26966
26638
  value: function() {
26967
- var _getOrCreateMemo = _asyncToGenerator(_regenerator().m(function _callee12(key, generator) {
26639
+ var _getOrCreateMemo = _asyncToGenerator(_regenerator().m(function _callee11(key, generator) {
26968
26640
  var value;
26969
- return _regenerator().w(function(_context12) {
26970
- while (1) switch (_context12.n) {
26641
+ return _regenerator().w(function(_context11) {
26642
+ while (1) switch (_context11.n) {
26971
26643
  case 0:
26972
26644
  if (!this.memo[key]) {
26973
- _context12.n = 1;
26645
+ _context11.n = 1;
26974
26646
  break;
26975
26647
  }
26976
- return _context12.a(2, Promise.resolve(this.memo[key]));
26648
+ return _context11.a(2, Promise.resolve(this.memo[key]));
26977
26649
 
26978
26650
  case 1:
26979
- _context12.n = 2;
26651
+ _context11.n = 2;
26980
26652
  return generator();
26981
26653
 
26982
26654
  case 2:
26983
- value = _context12.v;
26655
+ value = _context11.v;
26984
26656
  this.memo[key] = value;
26985
- return _context12.a(2, value);
26657
+ return _context11.a(2, value);
26986
26658
  }
26987
- }, _callee12, this);
26659
+ }, _callee11, this);
26988
26660
  }));
26989
- function getOrCreateMemo(_x24, _x25) {
26661
+ function getOrCreateMemo(_x22, _x23) {
26990
26662
  return _getOrCreateMemo.apply(this, arguments);
26991
26663
  }
26992
26664
  return getOrCreateMemo;
@@ -27137,25 +26809,25 @@ function _typeof(o) {
27137
26809
  }, {
27138
26810
  key: "request",
27139
26811
  value: function() {
27140
- var _request = _asyncToGenerator(_regenerator().m(function _callee13(method, param) {
26812
+ var _request = _asyncToGenerator(_regenerator().m(function _callee12(method, param) {
27141
26813
  var jsonResponse;
27142
- return _regenerator().w(function(_context13) {
27143
- while (1) switch (_context13.n) {
26814
+ return _regenerator().w(function(_context12) {
26815
+ while (1) switch (_context12.n) {
27144
26816
  case 0:
27145
- _context13.n = 1;
26817
+ _context12.n = 1;
27146
26818
  return this.rpc.call(method, [ param ]);
27147
26819
 
27148
26820
  case 1:
27149
- jsonResponse = _context13.v;
27150
- _context13.n = 2;
26821
+ jsonResponse = _context12.v;
26822
+ _context12.n = 2;
27151
26823
  return this.rowsToObjects(jsonResponse);
27152
26824
 
27153
26825
  case 2:
27154
- return _context13.a(2, _context13.v);
26826
+ return _context12.a(2, _context12.v);
27155
26827
  }
27156
- }, _callee13, this);
26828
+ }, _callee12, this);
27157
26829
  }));
27158
- function request(_x26, _x27) {
26830
+ function request(_x24, _x25) {
27159
26831
  return _request.apply(this, arguments);
27160
26832
  }
27161
26833
  return request;
@@ -27163,10 +26835,10 @@ function _typeof(o) {
27163
26835
  }, {
27164
26836
  key: "rowsToObjects",
27165
26837
  value: function() {
27166
- var _rowsToObjects = _asyncToGenerator(_regenerator().m(function _callee15(jsonResponse) {
26838
+ var _rowsToObjects = _asyncToGenerator(_regenerator().m(function _callee14(jsonResponse) {
27167
26839
  var _jsonResponse$result, columns, rows, calculatedColumns, rowObjects;
27168
- return _regenerator().w(function(_context15) {
27169
- while (1) switch (_context15.n) {
26840
+ return _regenerator().w(function(_context14) {
26841
+ while (1) switch (_context14.n) {
27170
26842
  case 0:
27171
26843
  _jsonResponse$result = jsonResponse.result, columns = _jsonResponse$result.columns,
27172
26844
  rows = _jsonResponse$result.rows;
@@ -27176,12 +26848,12 @@ function _typeof(o) {
27176
26848
  return columns.push(col[0]);
27177
26849
  });
27178
26850
  }
27179
- _context15.n = 1;
26851
+ _context14.n = 1;
27180
26852
  return Promise.all(rows.map(function() {
27181
- var _ref24 = _asyncToGenerator(_regenerator().m(function _callee14(row) {
26853
+ var _ref23 = _asyncToGenerator(_regenerator().m(function _callee13(row) {
27182
26854
  var rowObj, context, _i30, _calculatedColumns, _calculatedColumns$_i, _name10, column;
27183
- return _regenerator().w(function(_context14) {
27184
- while (1) switch (_context14.n) {
26855
+ return _regenerator().w(function(_context13) {
26856
+ while (1) switch (_context13.n) {
27185
26857
  case 0:
27186
26858
  rowObj = {};
27187
26859
  row.forEach(function(value, index) {
@@ -27192,39 +26864,39 @@ function _typeof(o) {
27192
26864
 
27193
26865
  case 1:
27194
26866
  if (!(_i30 < _calculatedColumns.length)) {
27195
- _context14.n = 4;
26867
+ _context13.n = 4;
27196
26868
  break;
27197
26869
  }
27198
26870
  _calculatedColumns$_i = _slicedToArray(_calculatedColumns[_i30], 2), _name10 = _calculatedColumns$_i[0],
27199
26871
  column = _calculatedColumns$_i[1];
27200
- _context14.n = 2;
26872
+ _context13.n = 2;
27201
26873
  return column.generator(rowObj, context);
27202
26874
 
27203
26875
  case 2:
27204
- rowObj[_name10] = _context14.v;
26876
+ rowObj[_name10] = _context13.v;
27205
26877
 
27206
26878
  case 3:
27207
26879
  _i30++;
27208
- _context14.n = 1;
26880
+ _context13.n = 1;
27209
26881
  break;
27210
26882
 
27211
26883
  case 4:
27212
- return _context14.a(2, rowObj);
26884
+ return _context13.a(2, rowObj);
27213
26885
  }
27214
- }, _callee14);
26886
+ }, _callee13);
27215
26887
  }));
27216
- return function(_x29) {
27217
- return _ref24.apply(this, arguments);
26888
+ return function(_x27) {
26889
+ return _ref23.apply(this, arguments);
27218
26890
  };
27219
26891
  }()));
27220
26892
 
27221
26893
  case 1:
27222
- rowObjects = _context15.v;
27223
- return _context15.a(2, rowObjects);
26894
+ rowObjects = _context14.v;
26895
+ return _context14.a(2, rowObjects);
27224
26896
  }
27225
- }, _callee15, this);
26897
+ }, _callee14, this);
27226
26898
  }));
27227
- function rowsToObjects(_x28) {
26899
+ function rowsToObjects(_x26) {
27228
26900
  return _rowsToObjects.apply(this, arguments);
27229
26901
  }
27230
26902
  return rowsToObjects;
@@ -27255,11 +26927,11 @@ function _typeof(o) {
27255
26927
  }, {
27256
26928
  key: "queryNextPage",
27257
26929
  value: function() {
27258
- var _queryNextPage = _asyncToGenerator(_regenerator().m(function _callee16() {
26930
+ var _queryNextPage = _asyncToGenerator(_regenerator().m(function _callee15() {
27259
26931
  var _this$_currentPage;
27260
26932
  var orderBy, filter, combinedFilter, queryParams, result, cursors;
27261
- return _regenerator().w(function(_context16) {
27262
- while (1) switch (_context16.n) {
26933
+ return _regenerator().w(function(_context15) {
26934
+ while (1) switch (_context15.n) {
27263
26935
  case 0:
27264
26936
  orderBy = this.buildOrderBy(this.params);
27265
26937
  filter = this.buildCursorFilter(this.params, (_this$_currentPage = this._currentPage) === null || _this$_currentPage === void 0 ? void 0 : _this$_currentPage.lastCursor);
@@ -27272,11 +26944,11 @@ function _typeof(o) {
27272
26944
  Order: orderBy,
27273
26945
  Limit: this.params.limit
27274
26946
  };
27275
- _context16.n = 1;
26947
+ _context15.n = 1;
27276
26948
  return this.request("circles_query", queryParams);
27277
26949
 
27278
26950
  case 1:
27279
- result = _context16.v;
26951
+ result = _context15.v;
27280
26952
  cursors = this.getFirstAndLastCursor(result);
27281
26953
  this._currentPage = {
27282
26954
  limit: this.params.limit,
@@ -27286,9 +26958,9 @@ function _typeof(o) {
27286
26958
  sortOrder: this.params.sortOrder,
27287
26959
  results: result
27288
26960
  };
27289
- return _context16.a(2, result.length > 0);
26961
+ return _context15.a(2, result.length > 0);
27290
26962
  }
27291
- }, _callee16, this);
26963
+ }, _callee15, this);
27292
26964
  }));
27293
26965
  function queryNextPage() {
27294
26966
  return _queryNextPage.apply(this, arguments);
@@ -27298,11 +26970,11 @@ function _typeof(o) {
27298
26970
  }, {
27299
26971
  key: "getSingleRow",
27300
26972
  value: function() {
27301
- var _getSingleRow = _asyncToGenerator(_regenerator().m(function _callee17() {
26973
+ var _getSingleRow = _asyncToGenerator(_regenerator().m(function _callee16() {
27302
26974
  var _this$_currentPage2;
27303
26975
  var orderBy, filter, combinedFilter, queryParams, result;
27304
- return _regenerator().w(function(_context17) {
27305
- while (1) switch (_context17.n) {
26976
+ return _regenerator().w(function(_context16) {
26977
+ while (1) switch (_context16.n) {
27306
26978
  case 0:
27307
26979
  orderBy = this.buildOrderBy(this.params);
27308
26980
  filter = this.buildCursorFilter(this.params, (_this$_currentPage2 = this._currentPage) === null || _this$_currentPage2 === void 0 ? void 0 : _this$_currentPage2.lastCursor);
@@ -27315,14 +26987,14 @@ function _typeof(o) {
27315
26987
  Order: orderBy,
27316
26988
  Limit: 1
27317
26989
  };
27318
- _context17.n = 1;
26990
+ _context16.n = 1;
27319
26991
  return this.request("circles_query", queryParams);
27320
26992
 
27321
26993
  case 1:
27322
- result = _context17.v;
27323
- return _context17.a(2, result.length > 0 ? result[0] : undefined);
26994
+ result = _context16.v;
26995
+ return _context16.a(2, result.length > 0 ? result[0] : undefined);
27324
26996
  }
27325
- }, _callee17, this);
26997
+ }, _callee16, this);
27326
26998
  }));
27327
26999
  function getSingleRow() {
27328
27000
  return _getSingleRow.apply(this, arguments);
@@ -27843,10 +27515,10 @@ function _typeof(o) {
27843
27515
  return _createClass(CirclesRpc, [ {
27844
27516
  key: "call",
27845
27517
  value: function() {
27846
- var _call = _asyncToGenerator(_regenerator().m(function _callee18(method, params) {
27518
+ var _call = _asyncToGenerator(_regenerator().m(function _callee17(method, params) {
27847
27519
  var requestBody, response, jsonResponse;
27848
- return _regenerator().w(function(_context18) {
27849
- while (1) switch (_context18.n) {
27520
+ return _regenerator().w(function(_context17) {
27521
+ while (1) switch (_context17.n) {
27850
27522
  case 0:
27851
27523
  requestBody = {
27852
27524
  jsonrpc: "2.0",
@@ -27854,7 +27526,7 @@ function _typeof(o) {
27854
27526
  method: method,
27855
27527
  params: params
27856
27528
  };
27857
- _context18.n = 1;
27529
+ _context17.n = 1;
27858
27530
  return fetch(this.rpcUrl, {
27859
27531
  method: "POST",
27860
27532
  headers: {
@@ -27864,24 +27536,24 @@ function _typeof(o) {
27864
27536
  });
27865
27537
 
27866
27538
  case 1:
27867
- response = _context18.v;
27868
- _context18.n = 2;
27539
+ response = _context17.v;
27540
+ _context17.n = 2;
27869
27541
  return response.json();
27870
27542
 
27871
27543
  case 2:
27872
- jsonResponse = _context18.v;
27544
+ jsonResponse = _context17.v;
27873
27545
  if (jsonResponse.result) {
27874
- _context18.n = 3;
27546
+ _context17.n = 3;
27875
27547
  break;
27876
27548
  }
27877
27549
  throw new Error("RPC Error: ".concat(JSON.stringify(jsonResponse)));
27878
27550
 
27879
27551
  case 3:
27880
- return _context18.a(2, jsonResponse);
27552
+ return _context17.a(2, jsonResponse);
27881
27553
  }
27882
- }, _callee18, this);
27554
+ }, _callee17, this);
27883
27555
  }));
27884
- function call(_x30, _x31) {
27556
+ function call(_x28, _x29) {
27885
27557
  return _call.apply(this, arguments);
27886
27558
  }
27887
27559
  return call;
@@ -27947,37 +27619,37 @@ function _typeof(o) {
27947
27619
  }, {
27948
27620
  key: "reconnect",
27949
27621
  value: function() {
27950
- var _reconnect = _asyncToGenerator(_regenerator().m(function _callee19() {
27622
+ var _reconnect = _asyncToGenerator(_regenerator().m(function _callee18() {
27951
27623
  var _t8;
27952
- return _regenerator().w(function(_context19) {
27953
- while (1) switch (_context19.p = _context19.n) {
27624
+ return _regenerator().w(function(_context18) {
27625
+ while (1) switch (_context18.p = _context18.n) {
27954
27626
  case 0:
27955
27627
  if (!this.websocketConnected) {
27956
- _context19.n = 1;
27628
+ _context18.n = 1;
27957
27629
  break;
27958
27630
  }
27959
- return _context19.a(2);
27631
+ return _context18.a(2);
27960
27632
 
27961
27633
  case 1:
27962
- _context19.p = 1;
27963
- _context19.n = 2;
27634
+ _context18.p = 1;
27635
+ _context18.n = 2;
27964
27636
  return this.connect();
27965
27637
 
27966
27638
  case 2:
27967
27639
  console.log("Reconnection successful");
27968
- _context19.n = 4;
27640
+ _context18.n = 4;
27969
27641
  break;
27970
27642
 
27971
27643
  case 3:
27972
- _context19.p = 3;
27973
- _t8 = _context19.v;
27644
+ _context18.p = 3;
27645
+ _t8 = _context18.v;
27974
27646
  console.error("Reconnection attempt failed:", _t8);
27975
27647
  this.scheduleReconnect();
27976
27648
 
27977
27649
  case 4:
27978
- return _context19.a(2);
27650
+ return _context18.a(2);
27979
27651
  }
27980
- }, _callee19, this, [ [ 1, 3 ] ]);
27652
+ }, _callee18, this, [ [ 1, 3 ] ]);
27981
27653
  }));
27982
27654
  function reconnect() {
27983
27655
  return _reconnect.apply(this, arguments);
@@ -28016,18 +27688,18 @@ function _typeof(o) {
28016
27688
  }, {
28017
27689
  key: "subscribe",
28018
27690
  value: function() {
28019
- var _subscribe = _asyncToGenerator(_regenerator().m(function _callee20(address) {
27691
+ var _subscribe = _asyncToGenerator(_regenerator().m(function _callee19(address) {
28020
27692
  var _address2;
28021
27693
  var observable, subscriptionArgs, response, subscriptionId;
28022
- return _regenerator().w(function(_context20) {
28023
- while (1) switch (_context20.n) {
27694
+ return _regenerator().w(function(_context19) {
27695
+ while (1) switch (_context19.n) {
28024
27696
  case 0:
28025
27697
  address = (_address2 = address) === null || _address2 === void 0 ? void 0 : _address2.toLowerCase();
28026
27698
  if (this.websocketConnected) {
28027
- _context20.n = 1;
27699
+ _context19.n = 1;
28028
27700
  break;
28029
27701
  }
28030
- _context20.n = 1;
27702
+ _context19.n = 1;
28031
27703
  return this.connect();
28032
27704
 
28033
27705
  case 1:
@@ -28035,11 +27707,11 @@ function _typeof(o) {
28035
27707
  subscriptionArgs = JSON.stringify(address ? {
28036
27708
  address: address
28037
27709
  } : {});
28038
- _context20.n = 2;
27710
+ _context19.n = 2;
28039
27711
  return this.sendMessage("eth_subscribe", [ "circles", subscriptionArgs ]);
28040
27712
 
28041
27713
  case 2:
28042
- response = _context20.v;
27714
+ response = _context19.v;
28043
27715
  subscriptionId = response.result;
28044
27716
  if (!this.subscriptionListeners[subscriptionId]) {
28045
27717
  this.subscriptionListeners[subscriptionId] = [];
@@ -28049,11 +27721,11 @@ function _typeof(o) {
28049
27721
  return observable.emit(event);
28050
27722
  });
28051
27723
  });
28052
- return _context20.a(2, observable.property);
27724
+ return _context19.a(2, observable.property);
28053
27725
  }
28054
- }, _callee20, this);
27726
+ }, _callee19, this);
28055
27727
  }));
28056
- function subscribe(_x32) {
27728
+ function subscribe(_x30) {
28057
27729
  return _subscribe.apply(this, arguments);
28058
27730
  }
28059
27731
  return subscribe;
@@ -28105,23 +27777,23 @@ function _typeof(o) {
28105
27777
  return _createClass(CirclesData, [ {
28106
27778
  key: "getTotalBalance",
28107
27779
  value: function() {
28108
- var _getTotalBalance = _asyncToGenerator(_regenerator().m(function _callee21(avatar) {
28109
- var asTimeCircles, response, _args21 = arguments;
28110
- return _regenerator().w(function(_context21) {
28111
- while (1) switch (_context21.n) {
27780
+ var _getTotalBalance = _asyncToGenerator(_regenerator().m(function _callee20(avatar) {
27781
+ var asTimeCircles, response, _args20 = arguments;
27782
+ return _regenerator().w(function(_context20) {
27783
+ while (1) switch (_context20.n) {
28112
27784
  case 0:
28113
- asTimeCircles = _args21.length > 1 && _args21[1] !== undefined ? _args21[1] : true;
27785
+ asTimeCircles = _args20.length > 1 && _args20[1] !== undefined ? _args20[1] : true;
28114
27786
  avatar = avatar.toLowerCase();
28115
- _context21.n = 1;
27787
+ _context20.n = 1;
28116
27788
  return this.rpc.call("circles_getTotalBalance", [ avatar, asTimeCircles ]);
28117
27789
 
28118
27790
  case 1:
28119
- response = _context21.v;
28120
- return _context21.a(2, response.result);
27791
+ response = _context20.v;
27792
+ return _context20.a(2, response.result);
28121
27793
  }
28122
- }, _callee21, this);
27794
+ }, _callee20, this);
28123
27795
  }));
28124
- function getTotalBalance(_x33) {
27796
+ function getTotalBalance(_x31) {
28125
27797
  return _getTotalBalance.apply(this, arguments);
28126
27798
  }
28127
27799
  return getTotalBalance;
@@ -28129,23 +27801,23 @@ function _typeof(o) {
28129
27801
  }, {
28130
27802
  key: "getTotalBalanceV2",
28131
27803
  value: function() {
28132
- var _getTotalBalanceV = _asyncToGenerator(_regenerator().m(function _callee22(avatar) {
28133
- var asTimeCircles, response, _args22 = arguments;
28134
- return _regenerator().w(function(_context22) {
28135
- while (1) switch (_context22.n) {
27804
+ var _getTotalBalanceV = _asyncToGenerator(_regenerator().m(function _callee21(avatar) {
27805
+ var asTimeCircles, response, _args21 = arguments;
27806
+ return _regenerator().w(function(_context21) {
27807
+ while (1) switch (_context21.n) {
28136
27808
  case 0:
28137
- asTimeCircles = _args22.length > 1 && _args22[1] !== undefined ? _args22[1] : true;
27809
+ asTimeCircles = _args21.length > 1 && _args21[1] !== undefined ? _args21[1] : true;
28138
27810
  avatar = avatar.toLowerCase();
28139
- _context22.n = 1;
27811
+ _context21.n = 1;
28140
27812
  return this.rpc.call("circlesV2_getTotalBalance", [ avatar, asTimeCircles ]);
28141
27813
 
28142
27814
  case 1:
28143
- response = _context22.v;
28144
- return _context22.a(2, response.result);
27815
+ response = _context21.v;
27816
+ return _context21.a(2, response.result);
28145
27817
  }
28146
- }, _callee22, this);
27818
+ }, _callee21, this);
28147
27819
  }));
28148
- function getTotalBalanceV2(_x34) {
27820
+ function getTotalBalanceV2(_x32) {
28149
27821
  return _getTotalBalanceV.apply(this, arguments);
28150
27822
  }
28151
27823
  return getTotalBalanceV2;
@@ -28153,22 +27825,22 @@ function _typeof(o) {
28153
27825
  }, {
28154
27826
  key: "getTokenBalances",
28155
27827
  value: function() {
28156
- var _getTokenBalances = _asyncToGenerator(_regenerator().m(function _callee23(avatar) {
27828
+ var _getTokenBalances = _asyncToGenerator(_regenerator().m(function _callee22(avatar) {
28157
27829
  var response;
28158
- return _regenerator().w(function(_context23) {
28159
- while (1) switch (_context23.n) {
27830
+ return _regenerator().w(function(_context22) {
27831
+ while (1) switch (_context22.n) {
28160
27832
  case 0:
28161
27833
  avatar = avatar.toLowerCase();
28162
- _context23.n = 1;
27834
+ _context22.n = 1;
28163
27835
  return this.rpc.call("circles_getTokenBalances", [ avatar ]);
28164
27836
 
28165
27837
  case 1:
28166
- response = _context23.v;
28167
- return _context23.a(2, response.result);
27838
+ response = _context22.v;
27839
+ return _context22.a(2, response.result);
28168
27840
  }
28169
- }, _callee23, this);
27841
+ }, _callee22, this);
28170
27842
  }));
28171
- function getTokenBalances(_x35) {
27843
+ function getTokenBalances(_x33) {
28172
27844
  return _getTokenBalances.apply(this, arguments);
28173
27845
  }
28174
27846
  return getTokenBalances;
@@ -28201,19 +27873,19 @@ function _typeof(o) {
28201
27873
  }, [ {
28202
27874
  name: "circles",
28203
27875
  generator: function() {
28204
- var _generator = _asyncToGenerator(_regenerator().m(function _callee24(row, context) {
28205
- return _regenerator().w(function(_context24) {
28206
- while (1) switch (_context24.n) {
27876
+ var _generator = _asyncToGenerator(_regenerator().m(function _callee23(row, context) {
27877
+ return _regenerator().w(function(_context23) {
27878
+ while (1) switch (_context23.n) {
28207
27879
  case 0:
28208
- return _context24.a(2, context.getOrCreateMemo("conversions", function() {
27880
+ return _context23.a(2, context.getOrCreateMemo("conversions", function() {
28209
27881
  return calculateBalances(row);
28210
27882
  }).then(function(o) {
28211
27883
  return o.circles;
28212
27884
  }));
28213
27885
  }
28214
- }, _callee24);
27886
+ }, _callee23);
28215
27887
  }));
28216
- function generator(_x36, _x37) {
27888
+ function generator(_x34, _x35) {
28217
27889
  return _generator.apply(this, arguments);
28218
27890
  }
28219
27891
  return generator;
@@ -28221,19 +27893,19 @@ function _typeof(o) {
28221
27893
  }, {
28222
27894
  name: "attoCircles",
28223
27895
  generator: function() {
28224
- var _generator2 = _asyncToGenerator(_regenerator().m(function _callee25(row, context) {
28225
- return _regenerator().w(function(_context25) {
28226
- while (1) switch (_context25.n) {
27896
+ var _generator2 = _asyncToGenerator(_regenerator().m(function _callee24(row, context) {
27897
+ return _regenerator().w(function(_context24) {
27898
+ while (1) switch (_context24.n) {
28227
27899
  case 0:
28228
- return _context25.a(2, context.getOrCreateMemo("conversions", function() {
27900
+ return _context24.a(2, context.getOrCreateMemo("conversions", function() {
28229
27901
  return calculateBalances(row);
28230
27902
  }).then(function(o) {
28231
27903
  return o.attoCircles;
28232
27904
  }));
28233
27905
  }
28234
- }, _callee25);
27906
+ }, _callee24);
28235
27907
  }));
28236
- function generator(_x38, _x39) {
27908
+ function generator(_x36, _x37) {
28237
27909
  return _generator2.apply(this, arguments);
28238
27910
  }
28239
27911
  return generator;
@@ -28241,19 +27913,19 @@ function _typeof(o) {
28241
27913
  }, {
28242
27914
  name: "staticCircles",
28243
27915
  generator: function() {
28244
- var _generator3 = _asyncToGenerator(_regenerator().m(function _callee26(row, context) {
28245
- return _regenerator().w(function(_context26) {
28246
- while (1) switch (_context26.n) {
27916
+ var _generator3 = _asyncToGenerator(_regenerator().m(function _callee25(row, context) {
27917
+ return _regenerator().w(function(_context25) {
27918
+ while (1) switch (_context25.n) {
28247
27919
  case 0:
28248
- return _context26.a(2, context.getOrCreateMemo("conversions", function() {
27920
+ return _context25.a(2, context.getOrCreateMemo("conversions", function() {
28249
27921
  return calculateBalances(row);
28250
27922
  }).then(function(o) {
28251
27923
  return o.staticCircles;
28252
27924
  }));
28253
27925
  }
28254
- }, _callee26);
27926
+ }, _callee25);
28255
27927
  }));
28256
- function generator(_x40, _x41) {
27928
+ function generator(_x38, _x39) {
28257
27929
  return _generator3.apply(this, arguments);
28258
27930
  }
28259
27931
  return generator;
@@ -28261,19 +27933,19 @@ function _typeof(o) {
28261
27933
  }, {
28262
27934
  name: "staticAttoCircles",
28263
27935
  generator: function() {
28264
- var _generator4 = _asyncToGenerator(_regenerator().m(function _callee27(row, context) {
28265
- return _regenerator().w(function(_context27) {
28266
- while (1) switch (_context27.n) {
27936
+ var _generator4 = _asyncToGenerator(_regenerator().m(function _callee26(row, context) {
27937
+ return _regenerator().w(function(_context26) {
27938
+ while (1) switch (_context26.n) {
28267
27939
  case 0:
28268
- return _context27.a(2, context.getOrCreateMemo("conversions", function() {
27940
+ return _context26.a(2, context.getOrCreateMemo("conversions", function() {
28269
27941
  return calculateBalances(row);
28270
27942
  }).then(function(o) {
28271
27943
  return o.staticAttoCircles;
28272
27944
  }));
28273
27945
  }
28274
- }, _callee27);
27946
+ }, _callee26);
28275
27947
  }));
28276
- function generator(_x42, _x43) {
27948
+ function generator(_x40, _x41) {
28277
27949
  return _generator4.apply(this, arguments);
28278
27950
  }
28279
27951
  return generator;
@@ -28281,19 +27953,19 @@ function _typeof(o) {
28281
27953
  }, {
28282
27954
  name: "crc",
28283
27955
  generator: function() {
28284
- var _generator5 = _asyncToGenerator(_regenerator().m(function _callee28(row, context) {
28285
- return _regenerator().w(function(_context28) {
28286
- while (1) switch (_context28.n) {
27956
+ var _generator5 = _asyncToGenerator(_regenerator().m(function _callee27(row, context) {
27957
+ return _regenerator().w(function(_context27) {
27958
+ while (1) switch (_context27.n) {
28287
27959
  case 0:
28288
- return _context28.a(2, context.getOrCreateMemo("conversions", function() {
27960
+ return _context27.a(2, context.getOrCreateMemo("conversions", function() {
28289
27961
  return calculateBalances(row);
28290
27962
  }).then(function(o) {
28291
27963
  return o.crc;
28292
27964
  }));
28293
27965
  }
28294
- }, _callee28);
27966
+ }, _callee27);
28295
27967
  }));
28296
- function generator(_x44, _x45) {
27968
+ function generator(_x42, _x43) {
28297
27969
  return _generator5.apply(this, arguments);
28298
27970
  }
28299
27971
  return generator;
@@ -28301,19 +27973,19 @@ function _typeof(o) {
28301
27973
  }, {
28302
27974
  name: "attoCrc",
28303
27975
  generator: function() {
28304
- var _generator6 = _asyncToGenerator(_regenerator().m(function _callee29(row, context) {
28305
- return _regenerator().w(function(_context29) {
28306
- while (1) switch (_context29.n) {
27976
+ var _generator6 = _asyncToGenerator(_regenerator().m(function _callee28(row, context) {
27977
+ return _regenerator().w(function(_context28) {
27978
+ while (1) switch (_context28.n) {
28307
27979
  case 0:
28308
- return _context29.a(2, context.getOrCreateMemo("conversions", function() {
27980
+ return _context28.a(2, context.getOrCreateMemo("conversions", function() {
28309
27981
  return calculateBalances(row);
28310
27982
  }).then(function(o) {
28311
27983
  return o.attoCrc;
28312
27984
  }));
28313
27985
  }
28314
- }, _callee29);
27986
+ }, _callee28);
28315
27987
  }));
28316
- function generator(_x46, _x47) {
27988
+ function generator(_x44, _x45) {
28317
27989
  return _generator6.apply(this, arguments);
28318
27990
  }
28319
27991
  return generator;
@@ -28377,10 +28049,10 @@ function _typeof(o) {
28377
28049
  }, {
28378
28050
  key: "getAggregatedTrustRelations",
28379
28051
  value: function() {
28380
- var _getAggregatedTrustRelations = _asyncToGenerator(_regenerator().m(function _callee30(avatarAddress, version) {
28052
+ var _getAggregatedTrustRelations = _asyncToGenerator(_regenerator().m(function _callee29(avatarAddress, version) {
28381
28053
  var pageSize, trustsQuery, trustListRows, _trustsQuery$currentP, _trustsQuery$currentP2, _trustListRows, resultRows, trustBucket;
28382
- return _regenerator().w(function(_context30) {
28383
- while (1) switch (_context30.n) {
28054
+ return _regenerator().w(function(_context29) {
28055
+ while (1) switch (_context29.n) {
28384
28056
  case 0:
28385
28057
  avatarAddress = avatarAddress.toLowerCase();
28386
28058
  pageSize = 1e3;
@@ -28388,31 +28060,31 @@ function _typeof(o) {
28388
28060
  trustListRows = [];
28389
28061
 
28390
28062
  case 1:
28391
- _context30.n = 2;
28063
+ _context29.n = 2;
28392
28064
  return trustsQuery.queryNextPage();
28393
28065
 
28394
28066
  case 2:
28395
- if (!_context30.v) {
28396
- _context30.n = 5;
28067
+ if (!_context29.v) {
28068
+ _context29.n = 5;
28397
28069
  break;
28398
28070
  }
28399
28071
  resultRows = (_trustsQuery$currentP = (_trustsQuery$currentP2 = trustsQuery.currentPage) === null || _trustsQuery$currentP2 === void 0 ? void 0 : _trustsQuery$currentP2.results) !== null && _trustsQuery$currentP !== void 0 ? _trustsQuery$currentP : [];
28400
28072
  if (!(resultRows.length === 0)) {
28401
- _context30.n = 3;
28073
+ _context29.n = 3;
28402
28074
  break;
28403
28075
  }
28404
- return _context30.a(3, 5);
28076
+ return _context29.a(3, 5);
28405
28077
 
28406
28078
  case 3:
28407
28079
  (_trustListRows = trustListRows).push.apply(_trustListRows, _toConsumableArray(resultRows));
28408
28080
  if (!(resultRows.length < pageSize)) {
28409
- _context30.n = 4;
28081
+ _context29.n = 4;
28410
28082
  break;
28411
28083
  }
28412
- return _context30.a(3, 5);
28084
+ return _context29.a(3, 5);
28413
28085
 
28414
28086
  case 4:
28415
- _context30.n = 1;
28087
+ _context29.n = 1;
28416
28088
  break;
28417
28089
 
28418
28090
  case 5:
@@ -28440,11 +28112,11 @@ function _typeof(o) {
28440
28112
  addToBucket(row.trustee);
28441
28113
  }
28442
28114
  });
28443
- return _context30.a(2, Object.entries(trustBucket).filter(function(_ref25) {
28444
- var _ref26 = _slicedToArray(_ref25, 1), avatar = _ref26[0];
28115
+ return _context29.a(2, Object.entries(trustBucket).filter(function(_ref24) {
28116
+ var _ref25 = _slicedToArray(_ref24, 1), avatar = _ref25[0];
28445
28117
  return avatar !== avatarAddress;
28446
- }).map(function(_ref27) {
28447
- var _ref28 = _slicedToArray(_ref27, 2), avatar = _ref28[0], _ref28$ = _ref28[1], rows = _ref28$.rows, version = _ref28$.version;
28118
+ }).map(function(_ref26) {
28119
+ var _ref27 = _slicedToArray(_ref26, 2), avatar = _ref27[0], _ref27$ = _ref27[1], rows = _ref27$.rows, version = _ref27$.version;
28448
28120
  var versionRelations = {};
28449
28121
  var maxTimestamp = Math.max.apply(Math, _toConsumableArray(rows.map(function(o) {
28450
28122
  return o.timestamp;
@@ -28476,9 +28148,9 @@ function _typeof(o) {
28476
28148
  };
28477
28149
  }));
28478
28150
  }
28479
- }, _callee30, this);
28151
+ }, _callee29, this);
28480
28152
  }));
28481
- function getAggregatedTrustRelations(_x48, _x49) {
28153
+ function getAggregatedTrustRelations(_x46, _x47) {
28482
28154
  return _getAggregatedTrustRelations.apply(this, arguments);
28483
28155
  }
28484
28156
  return getAggregatedTrustRelations;
@@ -28486,22 +28158,22 @@ function _typeof(o) {
28486
28158
  }, {
28487
28159
  key: "getAvatarInfo",
28488
28160
  value: function() {
28489
- var _getAvatarInfo = _asyncToGenerator(_regenerator().m(function _callee31(avatar) {
28161
+ var _getAvatarInfo = _asyncToGenerator(_regenerator().m(function _callee30(avatar) {
28490
28162
  var avatarInfos;
28491
- return _regenerator().w(function(_context31) {
28492
- while (1) switch (_context31.n) {
28163
+ return _regenerator().w(function(_context30) {
28164
+ while (1) switch (_context30.n) {
28493
28165
  case 0:
28494
28166
  avatar = avatar.toLowerCase();
28495
- _context31.n = 1;
28167
+ _context30.n = 1;
28496
28168
  return this.getAvatarInfoBatch([ avatar ]);
28497
28169
 
28498
28170
  case 1:
28499
- avatarInfos = _context31.v;
28500
- return _context31.a(2, avatarInfos.length > 0 ? avatarInfos[0] : undefined);
28171
+ avatarInfos = _context30.v;
28172
+ return _context30.a(2, avatarInfos.length > 0 ? avatarInfos[0] : undefined);
28501
28173
  }
28502
- }, _callee31, this);
28174
+ }, _callee30, this);
28503
28175
  }));
28504
- function getAvatarInfo(_x50) {
28176
+ function getAvatarInfo(_x48) {
28505
28177
  return _getAvatarInfo.apply(this, arguments);
28506
28178
  }
28507
28179
  return getAvatarInfo;
@@ -28509,16 +28181,16 @@ function _typeof(o) {
28509
28181
  }, {
28510
28182
  key: "getAvatarInfoBatch",
28511
28183
  value: function() {
28512
- var _getAvatarInfoBatch = _asyncToGenerator(_regenerator().m(function _callee34(avatars) {
28184
+ var _getAvatarInfoBatch = _asyncToGenerator(_regenerator().m(function _callee33(avatars) {
28513
28185
  var circlesQuery, results, _circlesQuery$current, _circlesQuery$current2, resultRows, avatarMap;
28514
- return _regenerator().w(function(_context34) {
28515
- while (1) switch (_context34.n) {
28186
+ return _regenerator().w(function(_context33) {
28187
+ while (1) switch (_context33.n) {
28516
28188
  case 0:
28517
28189
  if (!(avatars.length === 0)) {
28518
- _context34.n = 1;
28190
+ _context33.n = 1;
28519
28191
  break;
28520
28192
  }
28521
- return _context34.a(2, []);
28193
+ return _context33.a(2, []);
28522
28194
 
28523
28195
  case 1:
28524
28196
  avatars = avatars.map(function(a) {
@@ -28539,15 +28211,15 @@ function _typeof(o) {
28539
28211
  }, [ {
28540
28212
  name: "isHuman",
28541
28213
  generator: function() {
28542
- var _generator7 = _asyncToGenerator(_regenerator().m(function _callee32(row) {
28543
- return _regenerator().w(function(_context32) {
28544
- while (1) switch (_context32.n) {
28214
+ var _generator7 = _asyncToGenerator(_regenerator().m(function _callee31(row) {
28215
+ return _regenerator().w(function(_context31) {
28216
+ while (1) switch (_context31.n) {
28545
28217
  case 0:
28546
- return _context32.a(2, row.type === "CrcV2_RegisterHuman" || row.type === "CrcV1_Signup");
28218
+ return _context31.a(2, row.type === "CrcV2_RegisterHuman" || row.type === "CrcV1_Signup");
28547
28219
  }
28548
- }, _callee32);
28220
+ }, _callee31);
28549
28221
  }));
28550
- function generator(_x52) {
28222
+ function generator(_x50) {
28551
28223
  return _generator7.apply(this, arguments);
28552
28224
  }
28553
28225
  return generator;
@@ -28555,31 +28227,31 @@ function _typeof(o) {
28555
28227
  }, {
28556
28228
  name: "cidV0",
28557
28229
  generator: function() {
28558
- var _generator8 = _asyncToGenerator(_regenerator().m(function _callee33(row) {
28230
+ var _generator8 = _asyncToGenerator(_regenerator().m(function _callee32(row) {
28559
28231
  var dataFromHexString, _t9;
28560
- return _regenerator().w(function(_context33) {
28561
- while (1) switch (_context33.p = _context33.n) {
28232
+ return _regenerator().w(function(_context32) {
28233
+ while (1) switch (_context32.p = _context32.n) {
28562
28234
  case 0:
28563
- _context33.p = 0;
28235
+ _context32.p = 0;
28564
28236
  if (row.cidV0Digest) {
28565
- _context33.n = 1;
28237
+ _context32.n = 1;
28566
28238
  break;
28567
28239
  }
28568
- return _context33.a(2, undefined);
28240
+ return _context32.a(2, undefined);
28569
28241
 
28570
28242
  case 1:
28571
28243
  dataFromHexString = hexStringToUint8Array(row.cidV0Digest.substring(2));
28572
- return _context33.a(2, uint8ArrayToCidV0(dataFromHexString));
28244
+ return _context32.a(2, uint8ArrayToCidV0(dataFromHexString));
28573
28245
 
28574
28246
  case 2:
28575
- _context33.p = 2;
28576
- _t9 = _context33.v;
28247
+ _context32.p = 2;
28248
+ _t9 = _context32.v;
28577
28249
  console.error("Failed to convert cidV0Digest to CIDv0 string:", _t9);
28578
- return _context33.a(2, undefined);
28250
+ return _context32.a(2, undefined);
28579
28251
  }
28580
- }, _callee33, null, [ [ 0, 2 ] ]);
28252
+ }, _callee32, null, [ [ 0, 2 ] ]);
28581
28253
  }));
28582
- function generator(_x53) {
28254
+ function generator(_x51) {
28583
28255
  return _generator8.apply(this, arguments);
28584
28256
  }
28585
28257
  return generator;
@@ -28588,31 +28260,31 @@ function _typeof(o) {
28588
28260
  results = [];
28589
28261
 
28590
28262
  case 2:
28591
- _context34.n = 3;
28263
+ _context33.n = 3;
28592
28264
  return circlesQuery.queryNextPage();
28593
28265
 
28594
28266
  case 3:
28595
- if (!_context34.v) {
28596
- _context34.n = 6;
28267
+ if (!_context33.v) {
28268
+ _context33.n = 6;
28597
28269
  break;
28598
28270
  }
28599
28271
  resultRows = (_circlesQuery$current = (_circlesQuery$current2 = circlesQuery.currentPage) === null || _circlesQuery$current2 === void 0 ? void 0 : _circlesQuery$current2.results) !== null && _circlesQuery$current !== void 0 ? _circlesQuery$current : [];
28600
28272
  if (!(resultRows.length === 0)) {
28601
- _context34.n = 4;
28273
+ _context33.n = 4;
28602
28274
  break;
28603
28275
  }
28604
- return _context34.a(3, 6);
28276
+ return _context33.a(3, 6);
28605
28277
 
28606
28278
  case 4:
28607
28279
  results.push.apply(results, _toConsumableArray(resultRows));
28608
28280
  if (!(resultRows.length < 1e3)) {
28609
- _context34.n = 5;
28281
+ _context33.n = 5;
28610
28282
  break;
28611
28283
  }
28612
- return _context34.a(3, 6);
28284
+ return _context33.a(3, 6);
28613
28285
 
28614
28286
  case 5:
28615
- _context34.n = 2;
28287
+ _context33.n = 2;
28616
28288
  break;
28617
28289
 
28618
28290
  case 6:
@@ -28638,15 +28310,15 @@ function _typeof(o) {
28638
28310
  }
28639
28311
  }
28640
28312
  });
28641
- return _context34.a(2, avatars.map(function(avatar) {
28313
+ return _context33.a(2, avatars.map(function(avatar) {
28642
28314
  return avatarMap[avatar];
28643
28315
  }).filter(function(row) {
28644
28316
  return row !== undefined;
28645
28317
  }));
28646
28318
  }
28647
- }, _callee34, this);
28319
+ }, _callee33, this);
28648
28320
  }));
28649
- function getAvatarInfoBatch(_x51) {
28321
+ function getAvatarInfoBatch(_x49) {
28650
28322
  return _getAvatarInfoBatch.apply(this, arguments);
28651
28323
  }
28652
28324
  return getAvatarInfoBatch;
@@ -28654,10 +28326,10 @@ function _typeof(o) {
28654
28326
  }, {
28655
28327
  key: "getTokenInfo",
28656
28328
  value: function() {
28657
- var _getTokenInfo = _asyncToGenerator(_regenerator().m(function _callee35(address) {
28329
+ var _getTokenInfo = _asyncToGenerator(_regenerator().m(function _callee34(address) {
28658
28330
  var circlesQuery;
28659
- return _regenerator().w(function(_context35) {
28660
- while (1) switch (_context35.n) {
28331
+ return _regenerator().w(function(_context34) {
28332
+ while (1) switch (_context34.n) {
28661
28333
  case 0:
28662
28334
  address = address.toLowerCase();
28663
28335
  circlesQuery = new CirclesQuery(this.rpc, {
@@ -28673,15 +28345,15 @@ function _typeof(o) {
28673
28345
  sortOrder: "ASC",
28674
28346
  limit: 1
28675
28347
  });
28676
- _context35.n = 1;
28348
+ _context34.n = 1;
28677
28349
  return circlesQuery.getSingleRow();
28678
28350
 
28679
28351
  case 1:
28680
- return _context35.a(2, _context35.v);
28352
+ return _context34.a(2, _context34.v);
28681
28353
  }
28682
- }, _callee35, this);
28354
+ }, _callee34, this);
28683
28355
  }));
28684
- function getTokenInfo(_x54) {
28356
+ function getTokenInfo(_x52) {
28685
28357
  return _getTokenInfo.apply(this, arguments);
28686
28358
  }
28687
28359
  return getTokenInfo;
@@ -28689,10 +28361,10 @@ function _typeof(o) {
28689
28361
  }, {
28690
28362
  key: "getTokenInfoBatch",
28691
28363
  value: function() {
28692
- var _getTokenInfoBatch = _asyncToGenerator(_regenerator().m(function _callee36(addresses) {
28364
+ var _getTokenInfoBatch = _asyncToGenerator(_regenerator().m(function _callee35(addresses) {
28693
28365
  var circlesQuery, results, _circlesQuery$current3, _circlesQuery$current4, resultRows;
28694
- return _regenerator().w(function(_context36) {
28695
- while (1) switch (_context36.n) {
28366
+ return _regenerator().w(function(_context35) {
28367
+ while (1) switch (_context35.n) {
28696
28368
  case 0:
28697
28369
  addresses = addresses.map(function(o) {
28698
28370
  return o.toLowerCase();
@@ -28713,39 +28385,39 @@ function _typeof(o) {
28713
28385
  results = [];
28714
28386
 
28715
28387
  case 1:
28716
- _context36.n = 2;
28388
+ _context35.n = 2;
28717
28389
  return circlesQuery.queryNextPage();
28718
28390
 
28719
28391
  case 2:
28720
- if (!_context36.v) {
28721
- _context36.n = 5;
28392
+ if (!_context35.v) {
28393
+ _context35.n = 5;
28722
28394
  break;
28723
28395
  }
28724
28396
  resultRows = (_circlesQuery$current3 = (_circlesQuery$current4 = circlesQuery.currentPage) === null || _circlesQuery$current4 === void 0 ? void 0 : _circlesQuery$current4.results) !== null && _circlesQuery$current3 !== void 0 ? _circlesQuery$current3 : [];
28725
28397
  if (!(resultRows.length === 0)) {
28726
- _context36.n = 3;
28398
+ _context35.n = 3;
28727
28399
  break;
28728
28400
  }
28729
- return _context36.a(3, 5);
28401
+ return _context35.a(3, 5);
28730
28402
 
28731
28403
  case 3:
28732
28404
  results.push.apply(results, _toConsumableArray(resultRows));
28733
28405
  if (!(resultRows.length < 1e3)) {
28734
- _context36.n = 4;
28406
+ _context35.n = 4;
28735
28407
  break;
28736
28408
  }
28737
- return _context36.a(3, 5);
28409
+ return _context35.a(3, 5);
28738
28410
 
28739
28411
  case 4:
28740
- _context36.n = 1;
28412
+ _context35.n = 1;
28741
28413
  break;
28742
28414
 
28743
28415
  case 5:
28744
- return _context36.a(2, results);
28416
+ return _context35.a(2, results);
28745
28417
  }
28746
- }, _callee36, this);
28418
+ }, _callee35, this);
28747
28419
  }));
28748
- function getTokenInfoBatch(_x55) {
28420
+ function getTokenInfoBatch(_x53) {
28749
28421
  return _getTokenInfoBatch.apply(this, arguments);
28750
28422
  }
28751
28423
  return getTokenInfoBatch;
@@ -28760,23 +28432,23 @@ function _typeof(o) {
28760
28432
  }, {
28761
28433
  key: "getEvents",
28762
28434
  value: function() {
28763
- var _getEvents = _asyncToGenerator(_regenerator().m(function _callee37(avatar, fromBlock, toBlock, eventTypes, filters, sortAscending) {
28435
+ var _getEvents = _asyncToGenerator(_regenerator().m(function _callee36(avatar, fromBlock, toBlock, eventTypes, filters, sortAscending) {
28764
28436
  var _avatar2;
28765
28437
  var response;
28766
- return _regenerator().w(function(_context37) {
28767
- while (1) switch (_context37.n) {
28438
+ return _regenerator().w(function(_context36) {
28439
+ while (1) switch (_context36.n) {
28768
28440
  case 0:
28769
28441
  avatar = (_avatar2 = avatar) === null || _avatar2 === void 0 ? void 0 : _avatar2.toLowerCase();
28770
- _context37.n = 1;
28442
+ _context36.n = 1;
28771
28443
  return this.rpc.call("circles_events", [ avatar, fromBlock, toBlock, eventTypes, filters, sortAscending ]);
28772
28444
 
28773
28445
  case 1:
28774
- response = _context37.v;
28775
- return _context37.a(2, parseRpcSubscriptionMessage(response.result));
28446
+ response = _context36.v;
28447
+ return _context36.a(2, parseRpcSubscriptionMessage(response.result));
28776
28448
  }
28777
- }, _callee37, this);
28449
+ }, _callee36, this);
28778
28450
  }));
28779
- function getEvents(_x56, _x57, _x58, _x59, _x60, _x61) {
28451
+ function getEvents(_x54, _x55, _x56, _x57, _x58, _x59) {
28780
28452
  return _getEvents.apply(this, arguments);
28781
28453
  }
28782
28454
  return getEvents;
@@ -28784,62 +28456,62 @@ function _typeof(o) {
28784
28456
  }, {
28785
28457
  key: "getInvitations",
28786
28458
  value: function() {
28787
- var _getInvitations = _asyncToGenerator(_regenerator().m(function _callee38(avatar) {
28459
+ var _getInvitations = _asyncToGenerator(_regenerator().m(function _callee37(avatar) {
28788
28460
  var _this47 = this;
28789
28461
  var MIN_TOKENS_REQUIRED, avatarInfo, v2Relations, v2Trusters, humanInviters, trusterInfoBatch, _iterator54, _step54, _loop, _t0;
28790
- return _regenerator().w(function(_context39) {
28791
- while (1) switch (_context39.p = _context39.n) {
28462
+ return _regenerator().w(function(_context38) {
28463
+ while (1) switch (_context38.p = _context38.n) {
28792
28464
  case 0:
28793
28465
  avatar = avatar.toLowerCase();
28794
28466
  MIN_TOKENS_REQUIRED = 96;
28795
- _context39.n = 1;
28467
+ _context38.n = 1;
28796
28468
  return this.getAvatarInfo(avatar);
28797
28469
 
28798
28470
  case 1:
28799
- avatarInfo = _context39.v;
28471
+ avatarInfo = _context38.v;
28800
28472
  if (!((avatarInfo === null || avatarInfo === void 0 ? void 0 : avatarInfo.version) == 2)) {
28801
- _context39.n = 2;
28473
+ _context38.n = 2;
28802
28474
  break;
28803
28475
  }
28804
- return _context39.a(2, []);
28476
+ return _context38.a(2, []);
28805
28477
 
28806
28478
  case 2:
28807
- _context39.n = 3;
28479
+ _context38.n = 3;
28808
28480
  return this.getAggregatedTrustRelations(avatar, 2);
28809
28481
 
28810
28482
  case 3:
28811
- v2Relations = _context39.v;
28483
+ v2Relations = _context38.v;
28812
28484
  v2Trusters = v2Relations.filter(function(o) {
28813
28485
  return o.relation == "trustedBy";
28814
28486
  }).map(function(o) {
28815
28487
  return o.objectAvatar;
28816
28488
  });
28817
28489
  humanInviters = [];
28818
- _context39.n = 4;
28490
+ _context38.n = 4;
28819
28491
  return this.getAvatarInfoBatch(v2Trusters);
28820
28492
 
28821
28493
  case 4:
28822
- trusterInfoBatch = _context39.v;
28494
+ trusterInfoBatch = _context38.v;
28823
28495
  _iterator54 = _createForOfIteratorHelper(trusterInfoBatch);
28824
- _context39.p = 5;
28496
+ _context38.p = 5;
28825
28497
  _loop = _regenerator().m(function _loop() {
28826
28498
  var trusterInfo, balances, inviterOwnToken;
28827
- return _regenerator().w(function(_context38) {
28828
- while (1) switch (_context38.n) {
28499
+ return _regenerator().w(function(_context37) {
28500
+ while (1) switch (_context37.n) {
28829
28501
  case 0:
28830
28502
  trusterInfo = _step54.value;
28831
28503
  if (trusterInfo !== null && trusterInfo !== void 0 && trusterInfo.isHuman) {
28832
- _context38.n = 1;
28504
+ _context37.n = 1;
28833
28505
  break;
28834
28506
  }
28835
- return _context38.a(2, 1);
28507
+ return _context37.a(2, 1);
28836
28508
 
28837
28509
  case 1:
28838
- _context38.n = 2;
28510
+ _context37.n = 2;
28839
28511
  return _this47.getTokenBalances(trusterInfo.avatar);
28840
28512
 
28841
28513
  case 2:
28842
- balances = _context38.v;
28514
+ balances = _context37.v;
28843
28515
  inviterOwnToken = balances.find(function(o) {
28844
28516
  return o.tokenAddress == trusterInfo.avatar;
28845
28517
  });
@@ -28848,7 +28520,7 @@ function _typeof(o) {
28848
28520
  }
28849
28521
 
28850
28522
  case 3:
28851
- return _context38.a(2);
28523
+ return _context37.a(2);
28852
28524
  }
28853
28525
  }, _loop);
28854
28526
  });
@@ -28856,42 +28528,42 @@ function _typeof(o) {
28856
28528
 
28857
28529
  case 6:
28858
28530
  if ((_step54 = _iterator54.n()).done) {
28859
- _context39.n = 9;
28531
+ _context38.n = 9;
28860
28532
  break;
28861
28533
  }
28862
- return _context39.d(_regeneratorValues(_loop()), 7);
28534
+ return _context38.d(_regeneratorValues(_loop()), 7);
28863
28535
 
28864
28536
  case 7:
28865
- if (!_context39.v) {
28866
- _context39.n = 8;
28537
+ if (!_context38.v) {
28538
+ _context38.n = 8;
28867
28539
  break;
28868
28540
  }
28869
- return _context39.a(3, 8);
28541
+ return _context38.a(3, 8);
28870
28542
 
28871
28543
  case 8:
28872
- _context39.n = 6;
28544
+ _context38.n = 6;
28873
28545
  break;
28874
28546
 
28875
28547
  case 9:
28876
- _context39.n = 11;
28548
+ _context38.n = 11;
28877
28549
  break;
28878
28550
 
28879
28551
  case 10:
28880
- _context39.p = 10;
28881
- _t0 = _context39.v;
28552
+ _context38.p = 10;
28553
+ _t0 = _context38.v;
28882
28554
  _iterator54.e(_t0);
28883
28555
 
28884
28556
  case 11:
28885
- _context39.p = 11;
28557
+ _context38.p = 11;
28886
28558
  _iterator54.f();
28887
- return _context39.f(11);
28559
+ return _context38.f(11);
28888
28560
 
28889
28561
  case 12:
28890
- return _context39.a(2, humanInviters);
28562
+ return _context38.a(2, humanInviters);
28891
28563
  }
28892
- }, _callee38, this, [ [ 5, 10, 11, 12 ] ]);
28564
+ }, _callee37, this, [ [ 5, 10, 11, 12 ] ]);
28893
28565
  }));
28894
- function getInvitations(_x62) {
28566
+ function getInvitations(_x60) {
28895
28567
  return _getInvitations.apply(this, arguments);
28896
28568
  }
28897
28569
  return getInvitations;
@@ -28899,14 +28571,14 @@ function _typeof(o) {
28899
28571
  }, {
28900
28572
  key: "getInvitationsFrom",
28901
28573
  value: function() {
28902
- var _getInvitationsFrom = _asyncToGenerator(_regenerator().m(function _callee39(avatar, accepted) {
28574
+ var _getInvitationsFrom = _asyncToGenerator(_regenerator().m(function _callee38(avatar, accepted) {
28903
28575
  var _circlesQuery$current5, circlesQuery, page, v2Relations, v2Trusted, trustedAvatarsBatchInfo, registeredAvatarsSet;
28904
- return _regenerator().w(function(_context40) {
28905
- while (1) switch (_context40.n) {
28576
+ return _regenerator().w(function(_context39) {
28577
+ while (1) switch (_context39.n) {
28906
28578
  case 0:
28907
28579
  avatar = avatar.toLowerCase();
28908
28580
  if (!accepted) {
28909
- _context40.n = 3;
28581
+ _context39.n = 3;
28910
28582
  break;
28911
28583
  }
28912
28584
  circlesQuery = new CirclesQuery(this.rpc, {
@@ -28922,58 +28594,58 @@ function _typeof(o) {
28922
28594
  sortOrder: "DESC",
28923
28595
  limit: 1e3
28924
28596
  });
28925
- _context40.n = 1;
28597
+ _context39.n = 1;
28926
28598
  return circlesQuery.queryNextPage();
28927
28599
 
28928
28600
  case 1:
28929
- page = _context40.v;
28601
+ page = _context39.v;
28930
28602
  if (page) {
28931
- _context40.n = 2;
28603
+ _context39.n = 2;
28932
28604
  break;
28933
28605
  }
28934
- return _context40.a(2, []);
28606
+ return _context39.a(2, []);
28935
28607
 
28936
28608
  case 2:
28937
- return _context40.a(2, ((_circlesQuery$current5 = circlesQuery.currentPage) === null || _circlesQuery$current5 === void 0 ? void 0 : _circlesQuery$current5.results.map(function(item) {
28609
+ return _context39.a(2, ((_circlesQuery$current5 = circlesQuery.currentPage) === null || _circlesQuery$current5 === void 0 ? void 0 : _circlesQuery$current5.results.map(function(item) {
28938
28610
  return item.avatar;
28939
28611
  })) || []);
28940
28612
 
28941
28613
  case 3:
28942
- _context40.n = 4;
28614
+ _context39.n = 4;
28943
28615
  return this.getAggregatedTrustRelations(avatar, 2);
28944
28616
 
28945
28617
  case 4:
28946
- v2Relations = _context40.v;
28618
+ v2Relations = _context39.v;
28947
28619
  v2Trusted = v2Relations.filter(function(o) {
28948
28620
  return o.relation == "trusts";
28949
28621
  }).map(function(o) {
28950
28622
  return o.objectAvatar;
28951
28623
  });
28952
28624
  if (!(v2Trusted.length === 0)) {
28953
- _context40.n = 5;
28625
+ _context39.n = 5;
28954
28626
  break;
28955
28627
  }
28956
- return _context40.a(2, []);
28628
+ return _context39.a(2, []);
28957
28629
 
28958
28630
  case 5:
28959
- _context40.n = 6;
28631
+ _context39.n = 6;
28960
28632
  return this.getAvatarInfoBatch(v2Trusted);
28961
28633
 
28962
28634
  case 6:
28963
- trustedAvatarsBatchInfo = _context40.v;
28635
+ trustedAvatarsBatchInfo = _context39.v;
28964
28636
  registeredAvatarsSet = new Set(trustedAvatarsBatchInfo.map(function(o) {
28965
28637
  return o.avatar;
28966
28638
  }));
28967
- return _context40.a(2, v2Trusted.filter(function(address) {
28639
+ return _context39.a(2, v2Trusted.filter(function(address) {
28968
28640
  return !registeredAvatarsSet.has(address);
28969
28641
  }));
28970
28642
 
28971
28643
  case 7:
28972
- return _context40.a(2);
28644
+ return _context39.a(2);
28973
28645
  }
28974
- }, _callee39, this);
28646
+ }, _callee38, this);
28975
28647
  }));
28976
- function getInvitationsFrom(_x63, _x64) {
28648
+ function getInvitationsFrom(_x61, _x62) {
28977
28649
  return _getInvitationsFrom.apply(this, arguments);
28978
28650
  }
28979
28651
  return getInvitationsFrom;
@@ -28981,11 +28653,11 @@ function _typeof(o) {
28981
28653
  }, {
28982
28654
  key: "getInvitedBy",
28983
28655
  value: function() {
28984
- var _getInvitedBy = _asyncToGenerator(_regenerator().m(function _callee40(avatar) {
28656
+ var _getInvitedBy = _asyncToGenerator(_regenerator().m(function _callee39(avatar) {
28985
28657
  var _circlesQuery$current6;
28986
28658
  var circlesQuery, page;
28987
- return _regenerator().w(function(_context41) {
28988
- while (1) switch (_context41.n) {
28659
+ return _regenerator().w(function(_context40) {
28660
+ while (1) switch (_context40.n) {
28989
28661
  case 0:
28990
28662
  avatar = avatar.toLowerCase();
28991
28663
  circlesQuery = new CirclesQuery(this.rpc, {
@@ -29001,23 +28673,23 @@ function _typeof(o) {
29001
28673
  sortOrder: "DESC",
29002
28674
  limit: 1
29003
28675
  });
29004
- _context41.n = 1;
28676
+ _context40.n = 1;
29005
28677
  return circlesQuery.queryNextPage();
29006
28678
 
29007
28679
  case 1:
29008
- page = _context41.v;
28680
+ page = _context40.v;
29009
28681
  if (page) {
29010
- _context41.n = 2;
28682
+ _context40.n = 2;
29011
28683
  break;
29012
28684
  }
29013
- return _context41.a(2, undefined);
28685
+ return _context40.a(2, undefined);
29014
28686
 
29015
28687
  case 2:
29016
- return _context41.a(2, (_circlesQuery$current6 = circlesQuery.currentPage) === null || _circlesQuery$current6 === void 0 ? void 0 : _circlesQuery$current6.results[0].inviter);
28688
+ return _context40.a(2, (_circlesQuery$current6 = circlesQuery.currentPage) === null || _circlesQuery$current6 === void 0 ? void 0 : _circlesQuery$current6.results[0].inviter);
29017
28689
  }
29018
- }, _callee40, this);
28690
+ }, _callee39, this);
29019
28691
  }));
29020
- function getInvitedBy(_x65) {
28692
+ function getInvitedBy(_x63) {
29021
28693
  return _getInvitedBy.apply(this, arguments);
29022
28694
  }
29023
28695
  return getInvitedBy;
@@ -29123,11 +28795,11 @@ function _typeof(o) {
29123
28795
  }, {
29124
28796
  key: "getMetadataCidForAddress",
29125
28797
  value: function() {
29126
- var _getMetadataCidForAddress = _asyncToGenerator(_regenerator().m(function _callee41(address) {
28798
+ var _getMetadataCidForAddress = _asyncToGenerator(_regenerator().m(function _callee40(address) {
29127
28799
  var _query$currentPage;
29128
28800
  var query, cidHex, cidArr;
29129
- return _regenerator().w(function(_context42) {
29130
- while (1) switch (_context42.n) {
28801
+ return _regenerator().w(function(_context41) {
28802
+ while (1) switch (_context41.n) {
29131
28803
  case 0:
29132
28804
  address = address.toLowerCase();
29133
28805
  query = new CirclesQuery(this.rpc, {
@@ -29143,31 +28815,31 @@ function _typeof(o) {
29143
28815
  sortOrder: "DESC",
29144
28816
  limit: 1
29145
28817
  });
29146
- _context42.n = 1;
28818
+ _context41.n = 1;
29147
28819
  return query.queryNextPage();
29148
28820
 
29149
28821
  case 1:
29150
- if (_context42.v) {
29151
- _context42.n = 2;
28822
+ if (_context41.v) {
28823
+ _context41.n = 2;
29152
28824
  break;
29153
28825
  }
29154
- return _context42.a(2, undefined);
28826
+ return _context41.a(2, undefined);
29155
28827
 
29156
28828
  case 2:
29157
28829
  cidHex = (_query$currentPage = query.currentPage) === null || _query$currentPage === void 0 ? void 0 : _query$currentPage.results[0].metadataDigest;
29158
28830
  if (cidHex) {
29159
- _context42.n = 3;
28831
+ _context41.n = 3;
29160
28832
  break;
29161
28833
  }
29162
- return _context42.a(2, undefined);
28834
+ return _context41.a(2, undefined);
29163
28835
 
29164
28836
  case 3:
29165
28837
  cidArr = hexStringToUint8Array(cidHex.substring(2));
29166
- return _context42.a(2, uint8ArrayToCidV0(cidArr));
28838
+ return _context41.a(2, uint8ArrayToCidV0(cidArr));
29167
28839
  }
29168
- }, _callee41, this);
28840
+ }, _callee40, this);
29169
28841
  }));
29170
- function getMetadataCidForAddress(_x66) {
28842
+ function getMetadataCidForAddress(_x64) {
29171
28843
  return _getMetadataCidForAddress.apply(this, arguments);
29172
28844
  }
29173
28845
  return getMetadataCidForAddress;
@@ -29184,77 +28856,77 @@ function _typeof(o) {
29184
28856
  return _CIRCLES.apply(this, arguments);
29185
28857
  }
29186
28858
  function _CIRCLES() {
29187
- _CIRCLES = _asyncToGenerator(_regenerator().m(function _callee68() {
29188
- var _argsToArray39, _argsToArray40, functionName, address, entries, columnName, resolved, dataClient, limit, runOnePage, dataTrust, filterColumnName, _data13, _filterColumnName, res, balance, _args73 = arguments, _t39, _t40;
29189
- return _regenerator().w(function(_context73) {
29190
- while (1) switch (_context73.p = _context73.n) {
28859
+ _CIRCLES = _asyncToGenerator(_regenerator().m(function _callee64() {
28860
+ var _argsToArray33, _argsToArray34, functionName, address, entries, columnName, resolved, dataClient, limit, runOnePage, dataTrust, filterColumnName, _data11, _filterColumnName, res, balance, _args69 = arguments, _t36, _t37;
28861
+ return _regenerator().w(function(_context69) {
28862
+ while (1) switch (_context69.p = _context69.n) {
29191
28863
  case 0:
29192
- _context73.p = 0;
29193
- _argsToArray39 = argsToArray(_args73), _argsToArray40 = _slicedToArray(_argsToArray39, 4),
29194
- functionName = _argsToArray40[0], address = _argsToArray40[1], entries = _argsToArray40[2],
29195
- columnName = _argsToArray40[3];
28864
+ _context69.p = 0;
28865
+ _argsToArray33 = argsToArray(_args69), _argsToArray34 = _slicedToArray(_argsToArray33, 4),
28866
+ functionName = _argsToArray34[0], address = _argsToArray34[1], entries = _argsToArray34[2],
28867
+ columnName = _argsToArray34[3];
29196
28868
  validateParams(circlesParamsSchema, {
29197
28869
  functionName: functionName,
29198
28870
  address: address,
29199
28871
  entries: entries,
29200
28872
  columnName: columnName
29201
28873
  });
29202
- _context73.n = 1;
28874
+ _context69.n = 1;
29203
28875
  return fromEnsNameToAddress$1.validateAndGetAddress(address);
29204
28876
 
29205
28877
  case 1:
29206
- resolved = _context73.v;
28878
+ resolved = _context69.v;
29207
28879
  dataClient = new CirclesData("https://rpc.aboutcircles.com");
29208
28880
  limit = Number.isFinite(Number(entries)) && Number(entries) > 0 ? Number(entries) : 10;
29209
28881
  runOnePage = function() {
29210
- var _ref44 = _asyncToGenerator(_regenerator().m(function _callee67(maybeQuery) {
28882
+ var _ref42 = _asyncToGenerator(_regenerator().m(function _callee63(maybeQuery) {
29211
28883
  var q, _q$currentPage$result, _q$currentPage, has;
29212
- return _regenerator().w(function(_context72) {
29213
- while (1) switch (_context72.n) {
28884
+ return _regenerator().w(function(_context68) {
28885
+ while (1) switch (_context68.n) {
29214
28886
  case 0:
29215
- _context72.n = 1;
28887
+ _context68.n = 1;
29216
28888
  return maybeQuery;
29217
28889
 
29218
28890
  case 1:
29219
- q = _context72.v;
28891
+ q = _context68.v;
29220
28892
  if (!(q && typeof q.queryNextPage === "function")) {
29221
- _context72.n = 3;
28893
+ _context68.n = 3;
29222
28894
  break;
29223
28895
  }
29224
- _context72.n = 2;
28896
+ _context68.n = 2;
29225
28897
  return q.queryNextPage();
29226
28898
 
29227
28899
  case 2:
29228
- has = _context72.v;
29229
- return _context72.a(2, has ? (_q$currentPage$result = (_q$currentPage = q.currentPage) === null || _q$currentPage === void 0 ? void 0 : _q$currentPage.results) !== null && _q$currentPage$result !== void 0 ? _q$currentPage$result : [] : []);
28900
+ has = _context68.v;
28901
+ return _context68.a(2, has ? (_q$currentPage$result = (_q$currentPage = q.currentPage) === null || _q$currentPage === void 0 ? void 0 : _q$currentPage.results) !== null && _q$currentPage$result !== void 0 ? _q$currentPage$result : [] : []);
29230
28902
 
29231
28903
  case 3:
29232
- return _context72.a(2, q);
28904
+ return _context68.a(2, q);
29233
28905
  }
29234
- }, _callee67);
28906
+ }, _callee63);
29235
28907
  }));
29236
- return function runOnePage(_x68) {
29237
- return _ref44.apply(this, arguments);
28908
+ return function runOnePage(_x66) {
28909
+ return _ref42.apply(this, arguments);
29238
28910
  };
29239
28911
  }();
29240
- _t39 = functionName;
29241
- _context73.n = _t39 === "trust" ? 2 : _t39 === "transactions" ? 5 : _t39 === "profile" ? 8 : _t39 === "balances" ? 10 : 12;
28912
+ _t36 = functionName;
28913
+ _context69.n = _t36 === "trust" ? 2 : _t36 === "transactions" ? 5 : _t36 === "profile" ? 8 : _t36 === "balances" ? 10 : 12;
29242
28914
  break;
29243
28915
 
29244
28916
  case 2:
29245
- _context73.n = 3;
28917
+ _context69.n = 3;
29246
28918
  return runOnePage(dataClient.getTrustRelations(resolved, limit));
29247
28919
 
29248
28920
  case 3:
29249
- dataTrust = _context73.v;
28921
+ dataTrust = _context69.v;
29250
28922
  if (!columnName) {
29251
- _context73.n = 4;
28923
+ _context69.n = 4;
29252
28924
  break;
29253
28925
  }
29254
28926
  filterColumnName = columnName.split(",").map(function(s) {
29255
28927
  return s.trim();
29256
28928
  });
29257
- return _context73.a(2, dataTrust.map(function(obj) {
28929
+ return _context69.a(2, dataTrust.map(function(obj) {
29258
28930
  return Object.fromEntries(filterColumnName.filter(function(key) {
29259
28931
  return key in obj;
29260
28932
  }).map(function(key) {
@@ -29263,22 +28935,22 @@ function _typeof(o) {
29263
28935
  }));
29264
28936
 
29265
28937
  case 4:
29266
- return _context73.a(2, dataTrust);
28938
+ return _context69.a(2, dataTrust);
29267
28939
 
29268
28940
  case 5:
29269
- _context73.n = 6;
28941
+ _context69.n = 6;
29270
28942
  return runOnePage(dataClient.getTransactionHistory(resolved, limit));
29271
28943
 
29272
28944
  case 6:
29273
- _data13 = _context73.v;
28945
+ _data11 = _context69.v;
29274
28946
  if (!columnName) {
29275
- _context73.n = 7;
28947
+ _context69.n = 7;
29276
28948
  break;
29277
28949
  }
29278
28950
  _filterColumnName = columnName.split(",").map(function(s) {
29279
28951
  return s.trim();
29280
28952
  });
29281
- return _context73.a(2, _data13.map(function(obj) {
28953
+ return _context69.a(2, _data11.map(function(obj) {
29282
28954
  return Object.fromEntries(_filterColumnName.filter(function(key) {
29283
28955
  return key in obj;
29284
28956
  }).map(function(key) {
@@ -29287,23 +28959,23 @@ function _typeof(o) {
29287
28959
  }));
29288
28960
 
29289
28961
  case 7:
29290
- return _context73.a(2, _data13);
28962
+ return _context69.a(2, _data11);
29291
28963
 
29292
28964
  case 8:
29293
- _context73.n = 9;
28965
+ _context69.n = 9;
29294
28966
  return dataClient.getAvatarInfo(resolved);
29295
28967
 
29296
28968
  case 9:
29297
- res = _context73.v;
29298
- return _context73.a(2, [ res ]);
28969
+ res = _context69.v;
28970
+ return _context69.a(2, [ res ]);
29299
28971
 
29300
28972
  case 10:
29301
- _context73.n = 11;
28973
+ _context69.n = 11;
29302
28974
  return dataClient.getTotalBalanceV2(resolved);
29303
28975
 
29304
28976
  case 11:
29305
- balance = _context73.v;
29306
- return _context73.a(2, [ {
28977
+ balance = _context69.v;
28978
+ return _context69.a(2, [ {
29307
28979
  "CRC Balance": balance
29308
28980
  } ]);
29309
28981
 
@@ -29311,18 +28983,18 @@ function _typeof(o) {
29311
28983
  throw new ValidationError("Unsupported functionName");
29312
28984
 
29313
28985
  case 13:
29314
- _context73.n = 15;
28986
+ _context69.n = 15;
29315
28987
  break;
29316
28988
 
29317
28989
  case 14:
29318
- _context73.p = 14;
29319
- _t40 = _context73.v;
29320
- return _context73.a(2, errorMessageHandler(_t40, "CIRCLES"));
28990
+ _context69.p = 14;
28991
+ _t37 = _context69.v;
28992
+ return _context69.a(2, errorMessageHandler(_t37, "CIRCLES"));
29321
28993
 
29322
28994
  case 15:
29323
- return _context73.a(2);
28995
+ return _context69.a(2);
29324
28996
  }
29325
- }, _callee68, null, [ [ 0, 14 ] ]);
28997
+ }, _callee64, null, [ [ 0, 14 ] ]);
29326
28998
  }));
29327
28999
  return _CIRCLES.apply(this, arguments);
29328
29000
  }
@@ -29330,11 +29002,11 @@ function _typeof(o) {
29330
29002
  return _FLVURL.apply(this, arguments);
29331
29003
  }
29332
29004
  function _FLVURL() {
29333
- _FLVURL = _asyncToGenerator(_regenerator().m(function _callee69() {
29334
- return _regenerator().w(function(_context74) {
29335
- while (1) switch (_context74.n) {
29005
+ _FLVURL = _asyncToGenerator(_regenerator().m(function _callee65() {
29006
+ return _regenerator().w(function(_context70) {
29007
+ while (1) switch (_context70.n) {
29336
29008
  case 0:
29337
- return _context74.a(2, new Promise(function(resolve) {
29009
+ return _context70.a(2, new Promise(function(resolve) {
29338
29010
  setTimeout(function() {
29339
29011
  resolve([ {
29340
29012
  Yoo: "gotcha"
@@ -29342,7 +29014,7 @@ function _typeof(o) {
29342
29014
  }, 1e4);
29343
29015
  }));
29344
29016
  }
29345
- }, _callee69);
29017
+ }, _callee65);
29346
29018
  }));
29347
29019
  return _FLVURL.apply(this, arguments);
29348
29020
  }
@@ -29506,7 +29178,6 @@ function _typeof(o) {
29506
29178
  exports.FACT = FACT;
29507
29179
  exports.FACTDOUBLE = FACTDOUBLE;
29508
29180
  exports.FALSE = FALSE;
29509
- exports.FARCASTER = FARCASTER;
29510
29181
  exports.FDIST = FDIST;
29511
29182
  exports.FDISTRT = FDISTRT;
29512
29183
  exports.FIND = FIND;
@@ -29597,7 +29268,6 @@ function _typeof(o) {
29597
29268
  exports.LCM = LCM;
29598
29269
  exports.LEFT = LEFT;
29599
29270
  exports.LEN = LEN;
29600
- exports.LENS = LENS;
29601
29271
  exports.LINEST = LINEST;
29602
29272
  exports.LN = LN;
29603
29273
  exports.LOG = LOG;
@@ -29639,7 +29309,6 @@ function _typeof(o) {
29639
29309
  exports.NETWORKDAYS = NETWORKDAYS;
29640
29310
  exports.NETWORKDAYSINTL = NETWORKDAYSINTL;
29641
29311
  exports.NETWORKDAYS_INTL = NETWORKDAYS_INTL;
29642
- exports.NEYNAR = NEYNAR;
29643
29312
  exports.NOMINAL = NOMINAL;
29644
29313
  exports.NORM = NORM;
29645
29314
  exports.NORMDIST = NORMDIST;