@fileverse-dev/formulajs 4.4.38 → 4.4.39

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.38 */
1
+ /* @fileverse-dev/formulajs v4.4.39 */
2
2
  var _excluded = [ "confirmations", "dataDecoded" ];
3
3
 
4
4
  function _objectWithoutProperties(e, t) {
@@ -16481,26 +16481,28 @@ 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()
16484
+ param2: stringType().optional(),
16485
+ columnName: stringType().optional()
16485
16486
  });
16486
16487
  function AAVE() {
16487
16488
  return _AAVE.apply(this, arguments);
16488
16489
  }
16489
16490
  function _AAVE() {
16490
16491
  _AAVE = _asyncToGenerator(_regenerator().m(function _callee42() {
16491
- var _argsToArray3, _argsToArray4, graphType, category, param1, param2, baseUrl, url, res, _json, _args43 = arguments, _t1;
16492
+ var _argsToArray3, _argsToArray4, graphType, category, param1, param2, columnName, baseUrl, url, res, _json, filterColumnName, _data5, _args43 = arguments, _t1;
16492
16493
  return _regenerator().w(function(_context43) {
16493
16494
  while (1) switch (_context43.p = _context43.n) {
16494
16495
  case 0:
16495
16496
  _context43.p = 0;
16496
- _argsToArray3 = argsToArray(_args43), _argsToArray4 = _slicedToArray(_argsToArray3, 4),
16497
+ _argsToArray3 = argsToArray(_args43), _argsToArray4 = _slicedToArray(_argsToArray3, 5),
16497
16498
  graphType = _argsToArray4[0], category = _argsToArray4[1], param1 = _argsToArray4[2],
16498
- param2 = _argsToArray4[3];
16499
+ param2 = _argsToArray4[3], columnName = _argsToArray4[4];
16499
16500
  validateParams(aaveParamsSchema, {
16500
16501
  graphType: graphType,
16501
16502
  category: category,
16502
16503
  param1: param1,
16503
- param2: param2
16504
+ param2: param2,
16505
+ columnName: columnName
16504
16506
  });
16505
16507
  baseUrl = "https://onchain-proxy.fileverse.io/third-party";
16506
16508
  url = "".concat(baseUrl) + "?service=aave" + "&graphType=".concat(encodeURIComponent(graphType)) + "&category=".concat(encodeURIComponent(category)) + "&input1=".concat(encodeURIComponent(param1)) + (param2 ? "&input2=".concat(encodeURIComponent(param2)) : "");
@@ -16521,6 +16523,9 @@ function _typeof(o) {
16521
16523
 
16522
16524
  case 3:
16523
16525
  _json = _context43.v;
16526
+ filterColumnName = columnName === null || columnName === void 0 ? void 0 : columnName.split(",").map(function(s) {
16527
+ return s.trim();
16528
+ });
16524
16529
  if (!Array.isArray(_json)) {
16525
16530
  _context43.n = 4;
16526
16531
  break;
@@ -16529,20 +16534,31 @@ function _typeof(o) {
16529
16534
  var flat = {};
16530
16535
  Object.entries(item).forEach(function(_ref29) {
16531
16536
  var _ref30 = _slicedToArray(_ref29, 2), k = _ref30[0], v = _ref30[1];
16532
- if (v === null || _typeof(v) !== "object") flat[k] = v;
16537
+ if (columnName && filterColumnName.includes(k) && (v === null || _typeof(v) !== "object")) flat[k] = v;
16533
16538
  });
16534
16539
  return flat;
16535
16540
  }));
16536
16541
 
16537
16542
  case 4:
16538
- return _context43.a(2, _json);
16543
+ if (!(columnName && _typeof(_json) === "object")) {
16544
+ _context43.n = 5;
16545
+ break;
16546
+ }
16547
+ _data5 = {};
16548
+ filterColumnName.forEach(function(k) {
16549
+ _data5[k] = _json[k];
16550
+ });
16551
+ return _context43.a(2, _data5);
16539
16552
 
16540
16553
  case 5:
16541
- _context43.p = 5;
16554
+ return _context43.a(2, _json);
16555
+
16556
+ case 6:
16557
+ _context43.p = 6;
16542
16558
  _t1 = _context43.v;
16543
16559
  return _context43.a(2, errorMessageHandler(_t1, "AAVE"));
16544
16560
  }
16545
- }, _callee42, null, [ [ 0, 5 ] ]);
16561
+ }, _callee42, null, [ [ 0, 6 ] ]);
16546
16562
  }));
16547
16563
  return _AAVE.apply(this, arguments);
16548
16564
  }
@@ -16574,7 +16590,8 @@ function _typeof(o) {
16574
16590
  page: numberType()["int"]().nonnegative()["default"](1),
16575
16591
  offset: numberType()["int"]().nonnegative().max(MAX_PAGE_LIMIT, {
16576
16592
  message: '"offset" must be less than or equal to '.concat(MAX_PAGE_LIMIT)
16577
- })["default"](10)
16593
+ })["default"](10),
16594
+ columnName: stringType().optional()
16578
16595
  });
16579
16596
  var eoaParamsSchema = preprocessType(function(val) {
16580
16597
  var obj = _objectSpread({}, val || {});
@@ -16832,7 +16849,7 @@ function _typeof(o) {
16832
16849
  }
16833
16850
  function _EOA() {
16834
16851
  _EOA = _asyncToGenerator(_regenerator().m(function _callee45() {
16835
- var fetchJSON, _argsToArray5, _argsToArray6, addresses, category, chains, startTime, endTime, _argsToArray6$, page, _argsToArray6$2, offset, apiKey, INPUTS, CHAINS, ADDRESS_MAP, _iterator55, _step55, inp, _address, ADDRS, out, _iterator56, _step56, _loop2, _ret, _args49 = arguments, _t11, _t12, _t13;
16852
+ var fetchJSON, _argsToArray5, _argsToArray6, addresses, category, chains, startTime, endTime, _argsToArray6$, page, _argsToArray6$2, offset, _argsToArray6$3, columnName, apiKey, INPUTS, CHAINS, ADDRESS_MAP, _iterator55, _step55, inp, _address, ADDRS, out, _iterator56, _step56, _loop2, _ret, filterColumnName, _args49 = arguments, _t11, _t12, _t13;
16836
16853
  return _regenerator().w(function(_context49) {
16837
16854
  while (1) switch (_context49.p = _context49.n) {
16838
16855
  case 0:
@@ -16894,11 +16911,12 @@ function _typeof(o) {
16894
16911
  return _ref31.apply(this, arguments);
16895
16912
  };
16896
16913
  }();
16897
- _argsToArray5 = argsToArray(_args49), _argsToArray6 = _slicedToArray(_argsToArray5, 7),
16914
+ _argsToArray5 = argsToArray(_args49), _argsToArray6 = _slicedToArray(_argsToArray5, 8),
16898
16915
  addresses = _argsToArray6[0], category = _argsToArray6[1], chains = _argsToArray6[2],
16899
16916
  startTime = _argsToArray6[3], endTime = _argsToArray6[4], _argsToArray6$ = _argsToArray6[5],
16900
16917
  page = _argsToArray6$ === void 0 ? 1 : _argsToArray6$, _argsToArray6$2 = _argsToArray6[6],
16901
- offset = _argsToArray6$2 === void 0 ? 10 : _argsToArray6$2;
16918
+ offset = _argsToArray6$2 === void 0 ? 10 : _argsToArray6$2, _argsToArray6$3 = _argsToArray6[7],
16919
+ columnName = _argsToArray6$3 === void 0 ? null : _argsToArray6$3;
16902
16920
  validateParams(eoaParamsSchema, {
16903
16921
  addresses: addresses,
16904
16922
  category: category,
@@ -16906,7 +16924,8 @@ function _typeof(o) {
16906
16924
  startTime: startTime,
16907
16925
  endTime: endTime,
16908
16926
  page: page,
16909
- offset: offset
16927
+ offset: offset,
16928
+ columnName: columnName
16910
16929
  });
16911
16930
  apiKey = window.localStorage.getItem(SERVICES_API_KEY.Etherscan);
16912
16931
  INPUTS = addresses.split(",").map(function(s) {
@@ -17169,14 +17188,30 @@ function _typeof(o) {
17169
17188
  return _context49.f(16);
17170
17189
 
17171
17190
  case 17:
17172
- return _context49.a(2, out);
17191
+ if (!columnName) {
17192
+ _context49.n = 18;
17193
+ break;
17194
+ }
17195
+ filterColumnName = columnName.split(",").map(function(s) {
17196
+ return s.trim();
17197
+ });
17198
+ return _context49.a(2, out.map(function(obj) {
17199
+ return Object.fromEntries(filterColumnName.filter(function(key) {
17200
+ return key in obj;
17201
+ }).map(function(key) {
17202
+ return [ key, obj[key] ];
17203
+ }));
17204
+ }));
17173
17205
 
17174
17206
  case 18:
17175
- _context49.p = 18;
17207
+ return _context49.a(2, out);
17208
+
17209
+ case 19:
17210
+ _context49.p = 19;
17176
17211
  _t13 = _context49.v;
17177
17212
  return _context49.a(2, errorMessageHandler(_t13, "EOA"));
17178
17213
  }
17179
- }, _callee45, null, [ [ 10, 15, 16, 17 ], [ 1, 7, 8, 9 ], [ 0, 18 ] ]);
17214
+ }, _callee45, null, [ [ 10, 15, 16, 17 ], [ 1, 7, 8, 9 ], [ 0, 19 ] ]);
17180
17215
  }));
17181
17216
  return _EOA.apply(this, arguments);
17182
17217
  }
@@ -17187,7 +17222,8 @@ function _typeof(o) {
17187
17222
  page: numberType()["int"]().nonnegative()["default"](1),
17188
17223
  limit: numberType()["int"]().nonnegative().max(MAX_PAGE_LIMIT, {
17189
17224
  message: '"limit" must be less than or equal to '.concat(MAX_PAGE_LIMIT)
17190
- })["default"](10)
17225
+ })["default"](10),
17226
+ columnName: stringType().optional()
17191
17227
  });
17192
17228
  var txnSchema$1 = objectType({
17193
17229
  type: enumType([ "all-txns", "token-txns", "nft-txns" ]),
@@ -17197,7 +17233,8 @@ function _typeof(o) {
17197
17233
  page: numberType()["int"]().nonnegative()["default"](1),
17198
17234
  limit: numberType()["int"]().nonnegative().max(MAX_PAGE_LIMIT, {
17199
17235
  message: '"limit" must be less than or equal to '.concat(MAX_PAGE_LIMIT)
17200
- })["default"](10)
17236
+ })["default"](10),
17237
+ columnName: stringType().optional()
17201
17238
  });
17202
17239
  var baseParamsSchema = discriminatedUnionType("type", [ gasSchema$1, txnSchema$1 ]);
17203
17240
  function handleScanRequest(_x13) {
@@ -17322,21 +17359,22 @@ function _typeof(o) {
17322
17359
  }
17323
17360
  function _BASE() {
17324
17361
  _BASE = _asyncToGenerator(_regenerator().m(function _callee47() {
17325
- var _argsToArray7, _argsToArray8, type, address, startDate, endDate, page, limit, API_KEY, _args51 = arguments, _t14;
17362
+ var _argsToArray7, _argsToArray8, type, address, startDate, endDate, page, limit, columnName, API_KEY, out, filterColumnName, _args51 = arguments, _t14;
17326
17363
  return _regenerator().w(function(_context51) {
17327
17364
  while (1) switch (_context51.p = _context51.n) {
17328
17365
  case 0:
17329
17366
  _context51.p = 0;
17330
- _argsToArray7 = argsToArray(_args51), _argsToArray8 = _slicedToArray(_argsToArray7, 6),
17367
+ _argsToArray7 = argsToArray(_args51), _argsToArray8 = _slicedToArray(_argsToArray7, 7),
17331
17368
  type = _argsToArray8[0], address = _argsToArray8[1], startDate = _argsToArray8[2],
17332
- endDate = _argsToArray8[3], page = _argsToArray8[4], limit = _argsToArray8[5];
17369
+ endDate = _argsToArray8[3], page = _argsToArray8[4], limit = _argsToArray8[5], columnName = _argsToArray8[6];
17333
17370
  validateParams(baseParamsSchema, {
17334
17371
  type: type,
17335
17372
  address: address,
17336
17373
  startDate: startDate,
17337
17374
  endDate: endDate,
17338
17375
  page: page,
17339
- limit: limit
17376
+ limit: limit,
17377
+ columnName: columnName
17340
17378
  });
17341
17379
  API_KEY = window.localStorage.getItem(SERVICES_API_KEY.Basescan);
17342
17380
  _context51.n = 1;
@@ -17354,14 +17392,31 @@ function _typeof(o) {
17354
17392
  });
17355
17393
 
17356
17394
  case 1:
17357
- return _context51.a(2, _context51.v);
17395
+ out = _context51.v;
17396
+ if (!columnName) {
17397
+ _context51.n = 2;
17398
+ break;
17399
+ }
17400
+ filterColumnName = columnName.split(",").map(function(s) {
17401
+ return s.trim();
17402
+ });
17403
+ return _context51.a(2, out.map(function(obj) {
17404
+ return Object.fromEntries(filterColumnName.filter(function(key) {
17405
+ return key in obj;
17406
+ }).map(function(key) {
17407
+ return [ key, obj[key] ];
17408
+ }));
17409
+ }));
17358
17410
 
17359
17411
  case 2:
17360
- _context51.p = 2;
17412
+ return _context51.a(2, out);
17413
+
17414
+ case 3:
17415
+ _context51.p = 3;
17361
17416
  _t14 = _context51.v;
17362
17417
  return _context51.a(2, errorMessageHandler(_t14, "BASE"));
17363
17418
  }
17364
- }, _callee47, null, [ [ 0, 2 ] ]);
17419
+ }, _callee47, null, [ [ 0, 3 ] ]);
17365
17420
  }));
17366
17421
  return _BASE.apply(this, arguments);
17367
17422
  }
@@ -17499,7 +17554,8 @@ function _typeof(o) {
17499
17554
  var derivativesSchema = objectType({
17500
17555
  category: literalType("derivatives"),
17501
17556
  param1: stringType().nonempty(),
17502
- param2: anyType().optional()
17557
+ param2: anyType().optional(),
17558
+ columnName: stringType().optional()
17503
17559
  });
17504
17560
  var coingeckoParamsSchema = discriminatedUnionType("category", [ priceSchema$1, marketSchema, stablecoinsSchema, derivativesSchema ]);
17505
17561
  function COINGECKO() {
@@ -17507,17 +17563,19 @@ function _typeof(o) {
17507
17563
  }
17508
17564
  function _COINGECKO() {
17509
17565
  _COINGECKO = _asyncToGenerator(_regenerator().m(function _callee49() {
17510
- var _category$toLowerCase, _argsToArray1, _argsToArray10, category, param1, param2, 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;
17566
+ var _category$toLowerCase, _argsToArray1, _argsToArray10, category, param1, param2, _argsToArray10$, columnName, apiKey, headers, url, vs, map, _category, trend, _category2, _trend, _getUrlAndHeaders5, finalUrl, HEADERS, res, _json3, _json3$status, msg, out, _i34, _Object$entries, _Object$entries$_i, token, prices, _i35, _Object$entries2, _Object$entries2$_i, cur, val, _data6, _args53 = arguments, _t17, _t18;
17511
17567
  return _regenerator().w(function(_context53) {
17512
17568
  while (1) switch (_context53.p = _context53.n) {
17513
17569
  case 0:
17514
17570
  _context53.p = 0;
17515
- _argsToArray1 = argsToArray(_args53), _argsToArray10 = _slicedToArray(_argsToArray1, 3),
17516
- category = _argsToArray10[0], param1 = _argsToArray10[1], param2 = _argsToArray10[2];
17571
+ _argsToArray1 = argsToArray(_args53), _argsToArray10 = _slicedToArray(_argsToArray1, 4),
17572
+ category = _argsToArray10[0], param1 = _argsToArray10[1], param2 = _argsToArray10[2],
17573
+ _argsToArray10$ = _argsToArray10[3], columnName = _argsToArray10$ === void 0 ? null : _argsToArray10$;
17517
17574
  validateParams(coingeckoParamsSchema, {
17518
17575
  category: category,
17519
17576
  param1: param1,
17520
- param2: param2
17577
+ param2: param2,
17578
+ columnName: columnName
17521
17579
  });
17522
17580
  apiKey = window.localStorage.getItem(SERVICES_API_KEY.Coingecko);
17523
17581
  headers = {
@@ -17611,8 +17669,8 @@ function _typeof(o) {
17611
17669
  return _context53.a(2, [ out ]);
17612
17670
 
17613
17671
  case 10:
17614
- _data5 = Array.isArray(_json3) ? _json3 : [ _json3 ];
17615
- return _context53.a(2, _data5.map(function(item) {
17672
+ _data6 = Array.isArray(_json3) ? _json3 : [ _json3 ];
17673
+ return _context53.a(2, _data6.map(function(item) {
17616
17674
  var flat = {};
17617
17675
  for (var _i36 = 0, _Object$entries3 = Object.entries(item); _i36 < _Object$entries3.length; _i36++) {
17618
17676
  var _Object$entries3$_i = _slicedToArray(_Object$entries3[_i36], 2), key = _Object$entries3$_i[0], _value22 = _Object$entries3$_i[1];
@@ -17620,6 +17678,18 @@ function _typeof(o) {
17620
17678
  flat[key] = _value22;
17621
17679
  }
17622
17680
  }
17681
+ if (columnName) {
17682
+ var filterData = {};
17683
+ var filterColumnName = columnName.split(",").map(function(s) {
17684
+ return s.trim();
17685
+ });
17686
+ filterColumnName.forEach(function(col) {
17687
+ if (flat[col] !== undefined) {
17688
+ filterData[col] = flat[col];
17689
+ }
17690
+ });
17691
+ return filterData;
17692
+ }
17623
17693
  return flat;
17624
17694
  }));
17625
17695
 
@@ -17634,7 +17704,8 @@ function _typeof(o) {
17634
17704
  }
17635
17705
  var categories = [ "protocols", "yields", "dex", "fees" ];
17636
17706
  var defillamaParamsSchema = objectType({
17637
- category: enumType(categories)
17707
+ category: enumType(categories),
17708
+ columnName: stringType().optional()
17638
17709
  });
17639
17710
  var CATEGORY_URLS = {
17640
17711
  protocols: "https://api.llama.fi/protocols",
@@ -17647,15 +17718,16 @@ function _typeof(o) {
17647
17718
  }
17648
17719
  function _DEFILLAMA() {
17649
17720
  _DEFILLAMA = _asyncToGenerator(_regenerator().m(function _callee50() {
17650
- var _argsToArray11, _argsToArray12, category, url, res, _json4, _args54 = arguments, _t19, _t20;
17721
+ var _argsToArray11, _argsToArray12, category, _argsToArray12$, columnName, url, res, _json4, filterColumnName, _args54 = arguments, _t19, _t20;
17651
17722
  return _regenerator().w(function(_context54) {
17652
17723
  while (1) switch (_context54.p = _context54.n) {
17653
17724
  case 0:
17654
17725
  _context54.p = 0;
17655
- _argsToArray11 = argsToArray(_args54), _argsToArray12 = _slicedToArray(_argsToArray11, 1),
17656
- category = _argsToArray12[0];
17726
+ _argsToArray11 = argsToArray(_args54), _argsToArray12 = _slicedToArray(_argsToArray11, 2),
17727
+ category = _argsToArray12[0], _argsToArray12$ = _argsToArray12[1], columnName = _argsToArray12$ === void 0 ? null : _argsToArray12$;
17657
17728
  validateParams(defillamaParamsSchema, {
17658
- category: category
17729
+ category: category,
17730
+ columnName: columnName
17659
17731
  });
17660
17732
  url = CATEGORY_URLS[category];
17661
17733
  if (url) {
@@ -17699,11 +17771,14 @@ function _typeof(o) {
17699
17771
  return _context54.a(3, 8);
17700
17772
 
17701
17773
  case 8:
17774
+ filterColumnName = columnName === null || columnName === void 0 ? void 0 : columnName.split(",").map(function(s) {
17775
+ return s.trim();
17776
+ });
17702
17777
  return _context54.a(2, (Array.isArray(_json4) ? _json4 : [ _json4 ]).map(function(item) {
17703
17778
  var out = {};
17704
17779
  for (var _i37 = 0, _Object$entries4 = Object.entries(item); _i37 < _Object$entries4.length; _i37++) {
17705
17780
  var _Object$entries4$_i = _slicedToArray(_Object$entries4[_i37], 2), k = _Object$entries4$_i[0], v = _Object$entries4$_i[1];
17706
- if (v === null || _typeof(v) !== "object") out[k] = v;
17781
+ if (columnName && filterColumnName.includes(k) && (v === null || _typeof(v) !== "object")) out[k] = v;
17707
17782
  }
17708
17783
  return out;
17709
17784
  }));
@@ -17724,7 +17799,8 @@ function _typeof(o) {
17724
17799
  page: numberType()["int"]().nonnegative()["default"](1),
17725
17800
  limit: numberType()["int"]().nonnegative().max(MAX_PAGE_LIMIT, {
17726
17801
  message: '"limit" must be less than or equal to '.concat(MAX_PAGE_LIMIT)
17727
- })["default"](10)
17802
+ })["default"](10),
17803
+ columnName: stringType().optional()
17728
17804
  });
17729
17805
  var txnSchema = objectType({
17730
17806
  type: enumType([ "all-txns", "token-txns", "nft-txns" ]),
@@ -17735,7 +17811,8 @@ function _typeof(o) {
17735
17811
  page: numberType()["int"]().nonnegative()["default"](1),
17736
17812
  limit: numberType()["int"]().nonnegative().max(MAX_PAGE_LIMIT, {
17737
17813
  message: '"limit" must be less than or equal to '.concat(MAX_PAGE_LIMIT)
17738
- })["default"](10)
17814
+ })["default"](10),
17815
+ columnName: stringType().optional()
17739
17816
  });
17740
17817
  var etherscanParamsSchema = discriminatedUnionType("type", [ gasSchema, txnSchema ]);
17741
17818
  function ETHERSCAN() {
@@ -17743,16 +17820,17 @@ function _typeof(o) {
17743
17820
  }
17744
17821
  function _ETHERSCAN() {
17745
17822
  _ETHERSCAN = _asyncToGenerator(_regenerator().m(function _callee51() {
17746
- var _argsToArray13, _argsToArray14, type, chain, address, startDate, endDate, _argsToArray14$, page, _argsToArray14$2, limit, chainId, apiKey, _args55 = arguments, _t21;
17823
+ var _argsToArray13, _argsToArray14, type, chain, address, startDate, endDate, _argsToArray14$, page, _argsToArray14$2, limit, _argsToArray14$3, columnName, chainId, apiKey, out, filterColumnName, _args55 = arguments, _t21;
17747
17824
  return _regenerator().w(function(_context55) {
17748
17825
  while (1) switch (_context55.p = _context55.n) {
17749
17826
  case 0:
17750
17827
  _context55.p = 0;
17751
- _argsToArray13 = argsToArray(_args55), _argsToArray14 = _slicedToArray(_argsToArray13, 7),
17828
+ _argsToArray13 = argsToArray(_args55), _argsToArray14 = _slicedToArray(_argsToArray13, 8),
17752
17829
  type = _argsToArray14[0], chain = _argsToArray14[1], address = _argsToArray14[2],
17753
17830
  startDate = _argsToArray14[3], endDate = _argsToArray14[4], _argsToArray14$ = _argsToArray14[5],
17754
17831
  page = _argsToArray14$ === void 0 ? 1 : _argsToArray14$, _argsToArray14$2 = _argsToArray14[6],
17755
- limit = _argsToArray14$2 === void 0 ? 10 : _argsToArray14$2;
17832
+ limit = _argsToArray14$2 === void 0 ? 10 : _argsToArray14$2, _argsToArray14$3 = _argsToArray14[7],
17833
+ columnName = _argsToArray14$3 === void 0 ? null : _argsToArray14$3;
17756
17834
  validateParams(etherscanParamsSchema, {
17757
17835
  type: type,
17758
17836
  chain: chain,
@@ -17760,7 +17838,8 @@ function _typeof(o) {
17760
17838
  startDate: startDate,
17761
17839
  endDate: endDate,
17762
17840
  page: page,
17763
- limit: limit
17841
+ limit: limit,
17842
+ columnName: columnName
17764
17843
  });
17765
17844
  chainId = CHAIN_ID_MAP[chain];
17766
17845
  if (chainId) {
@@ -17786,14 +17865,31 @@ function _typeof(o) {
17786
17865
  });
17787
17866
 
17788
17867
  case 2:
17789
- return _context55.a(2, _context55.v);
17868
+ out = _context55.v;
17869
+ if (!columnName) {
17870
+ _context55.n = 3;
17871
+ break;
17872
+ }
17873
+ filterColumnName = columnName.split(",").map(function(s) {
17874
+ return s.trim();
17875
+ });
17876
+ return _context55.a(2, out.map(function(obj) {
17877
+ return Object.fromEntries(filterColumnName.filter(function(key) {
17878
+ return key in obj;
17879
+ }).map(function(key) {
17880
+ return [ key, obj[key] ];
17881
+ }));
17882
+ }));
17790
17883
 
17791
17884
  case 3:
17792
- _context55.p = 3;
17885
+ return _context55.a(2, out);
17886
+
17887
+ case 4:
17888
+ _context55.p = 4;
17793
17889
  _t21 = _context55.v;
17794
17890
  return _context55.a(2, errorMessageHandler(_t21, "ETHERSCAN"));
17795
17891
  }
17796
- }, _callee51, null, [ [ 0, 3 ] ]);
17892
+ }, _callee51, null, [ [ 0, 4 ] ]);
17797
17893
  }));
17798
17894
  return _ETHERSCAN.apply(this, arguments);
17799
17895
  }
@@ -17810,7 +17906,7 @@ function _typeof(o) {
17810
17906
  }
17811
17907
  function _FARCASTER() {
17812
17908
  _FARCASTER = _asyncToGenerator(_regenerator().m(function _callee52() {
17813
- var _argsToArray15, _argsToArray16, contentType, identifier, _argsToArray16$, start, _argsToArray16$2, end, apiKey, url, typeMap, _getUrlAndHeaders6, finalUrl, HEADERS, response, _yield$response$json, _data6, _args56 = arguments, _t22;
17909
+ var _argsToArray15, _argsToArray16, contentType, identifier, _argsToArray16$, start, _argsToArray16$2, end, apiKey, url, typeMap, _getUrlAndHeaders6, finalUrl, HEADERS, response, _yield$response$json, _data7, _args56 = arguments, _t22;
17814
17910
  return _regenerator().w(function(_context56) {
17815
17911
  while (1) switch (_context56.p = _context56.n) {
17816
17912
  case 0:
@@ -17865,15 +17961,15 @@ function _typeof(o) {
17865
17961
 
17866
17962
  case 3:
17867
17963
  _yield$response$json = _context56.v;
17868
- _data6 = _yield$response$json.data;
17869
- if (Array.isArray(_data6)) {
17964
+ _data7 = _yield$response$json.data;
17965
+ if (Array.isArray(_data7)) {
17870
17966
  _context56.n = 4;
17871
17967
  break;
17872
17968
  }
17873
17969
  return _context56.a(2, []);
17874
17970
 
17875
17971
  case 4:
17876
- return _context56.a(2, _data6.map(function(item) {
17972
+ return _context56.a(2, _data7.map(function(item) {
17877
17973
  var flat = {};
17878
17974
  for (var _i38 = 0, _Object$entries5 = Object.entries(item); _i38 < _Object$entries5.length; _i38++) {
17879
17975
  var _Object$entries5$_i = _slicedToArray(_Object$entries5[_i38], 2), k = _Object$entries5$_i[0], v = _Object$entries5$_i[1];
@@ -17929,7 +18025,7 @@ function _typeof(o) {
17929
18025
  }
17930
18026
  function _FIREFLY() {
17931
18027
  _FIREFLY = _asyncToGenerator(_regenerator().m(function _callee53() {
17932
- var _argsToArray17, _argsToArray18, platform, contentType, identifier, _argsToArray18$, start, _argsToArray18$2, end, apiKey, url, _getUrlAndHeaders7, finalUrl, HEADERS, response, _yield$response$json2, _data7, _args57 = arguments, _t23;
18028
+ var _argsToArray17, _argsToArray18, platform, contentType, identifier, _argsToArray18$, start, _argsToArray18$2, end, apiKey, url, _getUrlAndHeaders7, finalUrl, HEADERS, response, _yield$response$json2, _data8, _args57 = arguments, _t23;
17933
18029
  return _regenerator().w(function(_context57) {
17934
18030
  while (1) switch (_context57.p = _context57.n) {
17935
18031
  case 0:
@@ -17980,15 +18076,15 @@ function _typeof(o) {
17980
18076
 
17981
18077
  case 3:
17982
18078
  _yield$response$json2 = _context57.v;
17983
- _data7 = _yield$response$json2.data;
17984
- if (Array.isArray(_data7)) {
18079
+ _data8 = _yield$response$json2.data;
18080
+ if (Array.isArray(_data8)) {
17985
18081
  _context57.n = 4;
17986
18082
  break;
17987
18083
  }
17988
18084
  return _context57.a(2, []);
17989
18085
 
17990
18086
  case 4:
17991
- return _context57.a(2, _data7.map(function(item) {
18087
+ return _context57.a(2, _data8.map(function(item) {
17992
18088
  var flat = {};
17993
18089
  for (var _i39 = 0, _Object$entries6 = Object.entries(item); _i39 < _Object$entries6.length; _i39++) {
17994
18090
  var _Object$entries6$_i = _slicedToArray(_Object$entries6[_i39], 2), key = _Object$entries6$_i[0], _value23 = _Object$entries6$_i[1];
@@ -18071,7 +18167,7 @@ function _typeof(o) {
18071
18167
  }
18072
18168
  function _LENS() {
18073
18169
  _LENS = _asyncToGenerator(_regenerator().m(function _callee55() {
18074
- var _argsToArray21, _argsToArray22, contentType, identifier, _argsToArray22$, start, _argsToArray22$2, end, apiKey, url, typeMap, _getUrlAndHeaders8, finalUrl, HEADERS, response, _yield$response$json3, _data8, _args59 = arguments, _t25;
18170
+ var _argsToArray21, _argsToArray22, contentType, identifier, _argsToArray22$, start, _argsToArray22$2, end, apiKey, url, typeMap, _getUrlAndHeaders8, finalUrl, HEADERS, response, _yield$response$json3, _data9, _args59 = arguments, _t25;
18075
18171
  return _regenerator().w(function(_context59) {
18076
18172
  while (1) switch (_context59.p = _context59.n) {
18077
18173
  case 0:
@@ -18125,15 +18221,15 @@ function _typeof(o) {
18125
18221
 
18126
18222
  case 3:
18127
18223
  _yield$response$json3 = _context59.v;
18128
- _data8 = _yield$response$json3.data;
18129
- if (Array.isArray(_data8)) {
18224
+ _data9 = _yield$response$json3.data;
18225
+ if (Array.isArray(_data9)) {
18130
18226
  _context59.n = 4;
18131
18227
  break;
18132
18228
  }
18133
18229
  return _context59.a(2, []);
18134
18230
 
18135
18231
  case 4:
18136
- return _context59.a(2, _data8.map(function(item) {
18232
+ return _context59.a(2, _data9.map(function(item) {
18137
18233
  var flat = {};
18138
18234
  for (var _i40 = 0, _Object$entries7 = Object.entries(item); _i40 < _Object$entries7.length; _i40++) {
18139
18235
  var _Object$entries7$_i = _slicedToArray(_Object$entries7[_i40], 2), key = _Object$entries7$_i[0], _value24 = _Object$entries7$_i[1];
@@ -18389,26 +18485,28 @@ function _typeof(o) {
18389
18485
  graphType: enumType([ "v3", "v3-raw" ]),
18390
18486
  category: enumType([ "tokens", "markets" ]),
18391
18487
  param1: stringType().nonempty(),
18392
- param2: stringType().optional()
18488
+ param2: stringType().optional(),
18489
+ colummnName: stringType().optional()
18393
18490
  });
18394
18491
  function UNISWAP() {
18395
18492
  return _UNISWAP.apply(this, arguments);
18396
18493
  }
18397
18494
  function _UNISWAP() {
18398
18495
  _UNISWAP = _asyncToGenerator(_regenerator().m(function _callee58() {
18399
- var _argsToArray27, _argsToArray28, graphType, category, param1, param2, baseUrl, url, res, _json7, _args62 = arguments, _t28;
18496
+ var _argsToArray27, _argsToArray28, graphType, category, param1, param2, columnName, baseUrl, url, res, _json7, filterColumnName, _data0, _args62 = arguments, _t28;
18400
18497
  return _regenerator().w(function(_context62) {
18401
18498
  while (1) switch (_context62.p = _context62.n) {
18402
18499
  case 0:
18403
18500
  _context62.p = 0;
18404
- _argsToArray27 = argsToArray(_args62), _argsToArray28 = _slicedToArray(_argsToArray27, 4),
18501
+ _argsToArray27 = argsToArray(_args62), _argsToArray28 = _slicedToArray(_argsToArray27, 5),
18405
18502
  graphType = _argsToArray28[0], category = _argsToArray28[1], param1 = _argsToArray28[2],
18406
- param2 = _argsToArray28[3];
18503
+ param2 = _argsToArray28[3], columnName = _argsToArray28[4];
18407
18504
  validateParams(uniswapParamsSchema, {
18408
18505
  graphType: graphType,
18409
18506
  category: category,
18410
18507
  param1: param1,
18411
- param2: param2
18508
+ param2: param2,
18509
+ columnName: columnName
18412
18510
  });
18413
18511
  baseUrl = "https://onchain-proxy.fileverse.io/third-party";
18414
18512
  url = "".concat(baseUrl) + "?service=uniswap" + "&graphType=".concat(graphType) + "&category=".concat(category) + "&input1=".concat(encodeURIComponent(param1)) + (param2 ? "&input2=".concat(encodeURIComponent(param2)) : "");
@@ -18429,6 +18527,9 @@ function _typeof(o) {
18429
18527
 
18430
18528
  case 3:
18431
18529
  _json7 = _context62.v;
18530
+ filterColumnName = columnName === null || columnName === void 0 ? void 0 : columnName.split(",").map(function(s) {
18531
+ return s.trim();
18532
+ });
18432
18533
  if (!Array.isArray(_json7)) {
18433
18534
  _context62.n = 4;
18434
18535
  break;
@@ -18437,20 +18538,31 @@ function _typeof(o) {
18437
18538
  var flat = {};
18438
18539
  Object.entries(item).forEach(function(_ref34) {
18439
18540
  var _ref35 = _slicedToArray(_ref34, 2), k = _ref35[0], v = _ref35[1];
18440
- if (v === null || _typeof(v) !== "object") flat[k] = v;
18541
+ if (columnName && filterColumnName.includes(k) && (v === null || _typeof(v) !== "object")) flat[k] = v;
18441
18542
  });
18442
18543
  return flat;
18443
18544
  }));
18444
18545
 
18445
18546
  case 4:
18446
- return _context62.a(2, _json7);
18547
+ if (!(columnName && _typeof(_json7) === "object")) {
18548
+ _context62.n = 5;
18549
+ break;
18550
+ }
18551
+ _data0 = {};
18552
+ filterColumnName.forEach(function(k) {
18553
+ _data0[k] = _json7[k];
18554
+ });
18555
+ return _context62.a(2, _data0);
18447
18556
 
18448
18557
  case 5:
18449
- _context62.p = 5;
18558
+ return _context62.a(2, _json7);
18559
+
18560
+ case 6:
18561
+ _context62.p = 6;
18450
18562
  _t28 = _context62.v;
18451
18563
  return _context62.a(2, errorMessageHandler(_t28, "UNISWAP"));
18452
18564
  }
18453
- }, _callee58, null, [ [ 0, 5 ] ]);
18565
+ }, _callee58, null, [ [ 0, 6 ] ]);
18454
18566
  }));
18455
18567
  return _UNISWAP.apply(this, arguments);
18456
18568
  }
@@ -18465,6 +18577,7 @@ function _typeof(o) {
18465
18577
  case 0:
18466
18578
  _context63.p = 0;
18467
18579
  args = argsToArray(_args63);
18580
+ console.log(args, _args63);
18468
18581
  return _context63.a(2, new Promise(function(resolve) {
18469
18582
  resolve({
18470
18583
  callSignature: args,
@@ -18490,7 +18603,7 @@ function _typeof(o) {
18490
18603
  }
18491
18604
  function _TALLY() {
18492
18605
  _TALLY = _asyncToGenerator(_regenerator().m(function _callee60() {
18493
- var _argsToArray29, _argsToArray30, query, slug, baseUrl, url, res, _data9, _args64 = arguments, _t30;
18606
+ var _argsToArray29, _argsToArray30, query, slug, baseUrl, url, res, _data1, _args64 = arguments, _t30;
18494
18607
  return _regenerator().w(function(_context64) {
18495
18608
  while (1) switch (_context64.p = _context64.n) {
18496
18609
  case 0:
@@ -18519,8 +18632,8 @@ function _typeof(o) {
18519
18632
  return res.json();
18520
18633
 
18521
18634
  case 3:
18522
- _data9 = _context64.v;
18523
- return _context64.a(2, _data9);
18635
+ _data1 = _context64.v;
18636
+ return _context64.a(2, _data1);
18524
18637
 
18525
18638
  case 4:
18526
18639
  _context64.p = 4;
@@ -18665,7 +18778,7 @@ function _typeof(o) {
18665
18778
  }
18666
18779
  function _DUNE() {
18667
18780
  _DUNE = _asyncToGenerator(_regenerator().m(function _callee62() {
18668
- 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, _data0, _json8, _data1, result, _final, globalDecimals, _iterator57, _step57, _loop5, _args67 = arguments, _t33, _t34;
18781
+ var _ref40, _json8$activity, _ref41, _json8$holders, _ref42, _json8$tokens, _argsToArray31, _argsToArray32, type, input1, input2, input3, input4, route, buildQuery, address, qs, chain, _qs, tokenAddress, _qs2, _chain, apiKey, url, _getUrlAndHeaders1, finalUrl, HEADERS, res, _data10, _json8, _data11, result, _final, globalDecimals, _iterator57, _step57, _loop5, _args67 = arguments, _t33, _t34;
18669
18782
  return _regenerator().w(function(_context67) {
18670
18783
  while (1) switch (_context67.p = _context67.n) {
18671
18784
  case 0:
@@ -18744,8 +18857,8 @@ function _typeof(o) {
18744
18857
  return res.json();
18745
18858
 
18746
18859
  case 4:
18747
- _data0 = _context67.v;
18748
- throw new ValidationError(_data0.message);
18860
+ _data10 = _context67.v;
18861
+ throw new ValidationError(_data10.message);
18749
18862
 
18750
18863
  case 5:
18751
18864
  throw new NetworkError(SERVICES_API_KEY.DuneSim, res.status);
@@ -18756,8 +18869,8 @@ function _typeof(o) {
18756
18869
 
18757
18870
  case 7:
18758
18871
  _json8 = _context67.v;
18759
- _data1 = 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 : [];
18760
- result = Array.isArray(_data1) ? _data1 : [ _data1 ];
18872
+ _data11 = type === "activity" ? (_ref40 = (_json8$activity = _json8 === null || _json8 === void 0 ? void 0 : _json8.activity) !== null && _json8$activity !== void 0 ? _json8$activity : _json8) !== null && _ref40 !== void 0 ? _ref40 : [] : type === "token-holders" ? (_ref41 = (_json8$holders = _json8 === null || _json8 === void 0 ? void 0 : _json8.holders) !== null && _json8$holders !== void 0 ? _json8$holders : _json8) !== null && _ref41 !== void 0 ? _ref41 : [] : type === "price" ? (_ref42 = (_json8$tokens = _json8 === null || _json8 === void 0 ? void 0 : _json8.tokens) !== null && _json8$tokens !== void 0 ? _json8$tokens : _json8) !== null && _ref42 !== void 0 ? _ref42 : [] : _json8 !== null && _json8 !== void 0 ? _json8 : [];
18873
+ result = Array.isArray(_data11) ? _data11 : [ _data11 ];
18761
18874
  _final = [];
18762
18875
  _iterator57 = _createForOfIteratorHelper(result);
18763
18876
  _context67.p = 8;
@@ -18937,7 +19050,7 @@ function _typeof(o) {
18937
19050
  }
18938
19051
  function _PRICE() {
18939
19052
  _PRICE = _asyncToGenerator(_regenerator().m(function _callee63() {
18940
- var _input, _input2, _input3, _argsToArray33, _argsToArray34, input1, input2, input3, baseUrl, url, returnSingleValue, tokenAddress, coin, res, errorData, _data10, _args68 = arguments, _t35;
19053
+ var _input, _input2, _input3, _argsToArray33, _argsToArray34, input1, input2, input3, baseUrl, url, returnSingleValue, tokenAddress, coin, res, errorData, _data12, _args68 = arguments, _t35;
18941
19054
  return _regenerator().w(function(_context68) {
18942
19055
  while (1) switch (_context68.p = _context68.n) {
18943
19056
  case 0:
@@ -18998,15 +19111,15 @@ function _typeof(o) {
18998
19111
  return res.json();
18999
19112
 
19000
19113
  case 5:
19001
- _data10 = _context68.v;
19114
+ _data12 = _context68.v;
19002
19115
  if (!returnSingleValue) {
19003
19116
  _context68.n = 6;
19004
19117
  break;
19005
19118
  }
19006
- return _context68.a(2, _data10[0].price);
19119
+ return _context68.a(2, _data12[0].price);
19007
19120
 
19008
19121
  case 6:
19009
- return _context68.a(2, _data10);
19122
+ return _context68.a(2, _data12);
19010
19123
 
19011
19124
  case 7:
19012
19125
  _context68.p = 7;
@@ -29060,24 +29173,27 @@ function _typeof(o) {
29060
29173
  var circlesParamsSchema = objectType({
29061
29174
  functionName: enumType([ "trust", "profile", "transactions", "balances" ]),
29062
29175
  address: stringType().nonempty(),
29063
- entries: numberType()["int"]().nonnegative()["default"](10)
29176
+ entries: numberType()["int"]().nonnegative()["default"](10),
29177
+ columnName: stringType().optional()
29064
29178
  });
29065
29179
  function CIRCLES() {
29066
29180
  return _CIRCLES.apply(this, arguments);
29067
29181
  }
29068
29182
  function _CIRCLES() {
29069
29183
  _CIRCLES = _asyncToGenerator(_regenerator().m(function _callee68() {
29070
- var _argsToArray39, _argsToArray40, functionName, address, entries, resolved, dataClient, limit, runOnePage, res, balance, _args73 = arguments, _t39, _t40;
29184
+ var _argsToArray39, _argsToArray40, functionName, address, entries, columnName, resolved, dataClient, limit, runOnePage, dataTrust, filterColumnName, _data13, _filterColumnName, res, balance, _args73 = arguments, _t39, _t40;
29071
29185
  return _regenerator().w(function(_context73) {
29072
29186
  while (1) switch (_context73.p = _context73.n) {
29073
29187
  case 0:
29074
29188
  _context73.p = 0;
29075
- _argsToArray39 = argsToArray(_args73), _argsToArray40 = _slicedToArray(_argsToArray39, 3),
29076
- functionName = _argsToArray40[0], address = _argsToArray40[1], entries = _argsToArray40[2];
29189
+ _argsToArray39 = argsToArray(_args73), _argsToArray40 = _slicedToArray(_argsToArray39, 4),
29190
+ functionName = _argsToArray40[0], address = _argsToArray40[1], entries = _argsToArray40[2],
29191
+ columnName = _argsToArray40[3];
29077
29192
  validateParams(circlesParamsSchema, {
29078
29193
  functionName: functionName,
29079
29194
  address: address,
29080
- entries: entries
29195
+ entries: entries,
29196
+ columnName: columnName
29081
29197
  });
29082
29198
  _context73.n = 1;
29083
29199
  return fromEnsNameToAddress$1.validateAndGetAddress(address);
@@ -29118,7 +29234,7 @@ function _typeof(o) {
29118
29234
  };
29119
29235
  }();
29120
29236
  _t39 = functionName;
29121
- _context73.n = _t39 === "trust" ? 2 : _t39 === "transactions" ? 4 : _t39 === "profile" ? 6 : _t39 === "balances" ? 8 : 10;
29237
+ _context73.n = _t39 === "trust" ? 2 : _t39 === "transactions" ? 5 : _t39 === "profile" ? 8 : _t39 === "balances" ? 10 : 12;
29122
29238
  break;
29123
29239
 
29124
29240
  case 2:
@@ -29126,49 +29242,83 @@ function _typeof(o) {
29126
29242
  return runOnePage(dataClient.getTrustRelations(resolved, limit));
29127
29243
 
29128
29244
  case 3:
29129
- return _context73.a(2, _context73.v);
29245
+ dataTrust = _context73.v;
29246
+ if (!columnName) {
29247
+ _context73.n = 4;
29248
+ break;
29249
+ }
29250
+ filterColumnName = columnName.split(",").map(function(s) {
29251
+ return s.trim();
29252
+ });
29253
+ return _context73.a(2, dataTrust.map(function(obj) {
29254
+ return Object.fromEntries(filterColumnName.filter(function(key) {
29255
+ return key in obj;
29256
+ }).map(function(key) {
29257
+ return [ key, obj[key] ];
29258
+ }));
29259
+ }));
29130
29260
 
29131
29261
  case 4:
29132
- _context73.n = 5;
29133
- return runOnePage(dataClient.getTransactionHistory(resolved, limit));
29262
+ return _context73.a(2, dataTrust);
29134
29263
 
29135
29264
  case 5:
29136
- return _context73.a(2, _context73.v);
29265
+ _context73.n = 6;
29266
+ return runOnePage(dataClient.getTransactionHistory(resolved, limit));
29137
29267
 
29138
29268
  case 6:
29139
- _context73.n = 7;
29140
- return dataClient.getAvatarInfo(resolved);
29269
+ _data13 = _context73.v;
29270
+ if (!columnName) {
29271
+ _context73.n = 7;
29272
+ break;
29273
+ }
29274
+ _filterColumnName = columnName.split(",").map(function(s) {
29275
+ return s.trim();
29276
+ });
29277
+ return _context73.a(2, _data13.map(function(obj) {
29278
+ return Object.fromEntries(_filterColumnName.filter(function(key) {
29279
+ return key in obj;
29280
+ }).map(function(key) {
29281
+ return [ key, obj[key] ];
29282
+ }));
29283
+ }));
29141
29284
 
29142
29285
  case 7:
29143
- res = _context73.v;
29144
- return _context73.a(2, [ res ]);
29286
+ return _context73.a(2, _data13);
29145
29287
 
29146
29288
  case 8:
29147
29289
  _context73.n = 9;
29148
- return dataClient.getTotalBalanceV2(resolved);
29290
+ return dataClient.getAvatarInfo(resolved);
29149
29291
 
29150
29292
  case 9:
29293
+ res = _context73.v;
29294
+ return _context73.a(2, [ res ]);
29295
+
29296
+ case 10:
29297
+ _context73.n = 11;
29298
+ return dataClient.getTotalBalanceV2(resolved);
29299
+
29300
+ case 11:
29151
29301
  balance = _context73.v;
29152
29302
  return _context73.a(2, [ {
29153
29303
  "CRC Balance": balance
29154
29304
  } ]);
29155
29305
 
29156
- case 10:
29306
+ case 12:
29157
29307
  throw new ValidationError("Unsupported functionName");
29158
29308
 
29159
- case 11:
29160
- _context73.n = 13;
29309
+ case 13:
29310
+ _context73.n = 15;
29161
29311
  break;
29162
29312
 
29163
- case 12:
29164
- _context73.p = 12;
29313
+ case 14:
29314
+ _context73.p = 14;
29165
29315
  _t40 = _context73.v;
29166
29316
  return _context73.a(2, errorMessageHandler(_t40, "CIRCLES"));
29167
29317
 
29168
- case 13:
29318
+ case 15:
29169
29319
  return _context73.a(2);
29170
29320
  }
29171
- }, _callee68, null, [ [ 0, 12 ] ]);
29321
+ }, _callee68, null, [ [ 0, 14 ] ]);
29172
29322
  }));
29173
29323
  return _CIRCLES.apply(this, arguments);
29174
29324
  }