@fileverse-dev/formulajs 4.4.44 → 4.4.46-remove-lens-fc-1

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