@fileverse-dev/formulajs 4.4.46 → 4.4.47

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