@ichidao/ichi-vaults-sdk 0.1.33 → 0.1.35

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.
Files changed (36) hide show
  1. package/README.md +4 -0
  2. package/dist/src/functions/_vaultEvents.js +6 -6
  3. package/dist/src/functions/_vaultEvents.js.map +1 -1
  4. package/dist/src/functions/calculateApr.js +3 -3
  5. package/dist/src/functions/calculateApr.js.map +1 -1
  6. package/dist/src/functions/calculateFees.js +3 -3
  7. package/dist/src/functions/calculateFees.js.map +1 -1
  8. package/dist/src/functions/getFeeAprs.js +2 -2
  9. package/dist/src/functions/getFeeAprs.js.map +1 -1
  10. package/dist/src/functions/rewardInfo.js +3 -3
  11. package/dist/src/functions/rewardInfo.js.map +1 -1
  12. package/dist/src/functions/userBalances.js +3 -3
  13. package/dist/src/functions/userBalances.js.map +1 -1
  14. package/dist/src/functions/vault.js +5 -5
  15. package/dist/src/functions/vault.js.map +1 -1
  16. package/dist/src/graphql/constants.js +163 -147
  17. package/dist/src/graphql/constants.js.map +1 -1
  18. package/dist/src/graphql/queries.js +3 -6
  19. package/dist/src/graphql/queries.js.map +1 -1
  20. package/dist/src/index.cjs.js +2 -1
  21. package/dist/src/index.d.ts +1 -0
  22. package/dist/src/index.esm.js +2 -1
  23. package/dist/src/index.js +1 -0
  24. package/dist/src/index.js.map +1 -1
  25. package/dist/src/src/index.d.ts +1 -0
  26. package/dist/src/src/types/index.d.ts +4 -0
  27. package/dist/src/src/utils/getGraphUrls.d.ts +1 -1
  28. package/dist/src/types/index.d.ts +4 -0
  29. package/dist/src/types/index.js +4 -0
  30. package/dist/src/types/index.js.map +1 -1
  31. package/dist/src/utils/config/addresses.js +217 -193
  32. package/dist/src/utils/config/addresses.js.map +1 -1
  33. package/dist/src/utils/getGraphUrls.d.ts +1 -1
  34. package/dist/src/utils/getGraphUrls.js +3 -1
  35. package/dist/src/utils/getGraphUrls.js.map +1 -1
  36. package/package.json +1 -1
package/README.md CHANGED
@@ -1168,9 +1168,11 @@ enum SupportedChainId {
1168
1168
  berachain = 80084,
1169
1169
  blast = 81457,
1170
1170
  blast_sepolia_testnet = 168587773,
1171
+ botanix = 3637,
1171
1172
  bsc = 56,
1172
1173
  celo = 42220,
1173
1174
  citrea_testnet = 5115,
1175
+ cronos = 25,
1174
1176
  eon = 7332,
1175
1177
  evmos = 9001,
1176
1178
  fantom = 250,
@@ -1220,6 +1222,7 @@ enum SupportedDex {
1220
1222
  Agni = 'Agni',
1221
1223
  Ascent = 'Ascent',
1222
1224
  Atlantis = 'Anlantis',
1225
+ Bitzy = 'Bitzy',
1223
1226
  Blueprint = 'Blueprint',
1224
1227
  Bonzo = 'Bonzo',
1225
1228
  Cleo = 'Cleo',
@@ -1268,6 +1271,7 @@ enum SupportedDex {
1268
1271
  Velocore = 'Velocore',
1269
1272
  Velodrome = 'Velodrome',
1270
1273
  Voltage = 'Voltage',
1274
+ VVS = 'VVS',
1271
1275
  Wasabee = 'Wasabee',
1272
1276
  XSwap = 'XSwap',
1273
1277
  }
@@ -44,7 +44,7 @@ exports.getVaultStateAt = exports._getAllVaultEvents = exports._getWithdraws = e
44
44
  var constants_1 = require("../graphql/constants");
45
45
  var queries_1 = require("../graphql/queries");
46
46
  var timestamps_1 = require("../utils/timestamps");
47
- var getGraphUrls_1 = __importDefault(require("../utils/getGraphUrls"));
47
+ var getGraphUrls_1 = require("../utils/getGraphUrls");
48
48
  var cache_1 = __importDefault(require("../utils/cache"));
49
49
  var functions_1 = require("../graphql/functions");
50
50
  function _getAllEvents(vaultAddress, chainId, dex, days) {
@@ -60,7 +60,7 @@ function _getAllEvents(vaultAddress, chainId, dex, days) {
60
60
  return [2 /*return*/, cachedData];
61
61
  }
62
62
  ttl = 120000;
63
- _b = (0, getGraphUrls_1.default)(chainId, dex, true), publishedUrl = _b.publishedUrl, url = _b.url;
63
+ _b = (0, getGraphUrls_1.getGraphUrls)(chainId, dex, true), publishedUrl = _b.publishedUrl, url = _b.url;
64
64
  currTimestamp = Date.now();
65
65
  startTimestamp = days
66
66
  ? parseInt(((currTimestamp - (0, timestamps_1.daysToMilliseconds)(days)) / 1000).toString()).toString()
@@ -191,7 +191,7 @@ function _getRebalances(vaultAddress, chainId, dex, days) {
191
191
  return [2 /*return*/, cachedData];
192
192
  }
193
193
  ttl = 120000;
194
- _a = (0, getGraphUrls_1.default)(chainId, dex, true), publishedUrl = _a.publishedUrl, url = _a.url;
194
+ _a = (0, getGraphUrls_1.getGraphUrls)(chainId, dex, true), publishedUrl = _a.publishedUrl, url = _a.url;
195
195
  currTimestamp = Date.now();
196
196
  startTimestamp = days
197
197
  ? parseInt(((currTimestamp - (0, timestamps_1.daysToMilliseconds)(days)) / 1000).toString()).toString()
@@ -267,7 +267,7 @@ function _getFeesCollectedEvents(vaultAddress, chainId, dex, days) {
267
267
  return [2 /*return*/, cachedData];
268
268
  }
269
269
  ttl = 120000;
270
- _b = (0, getGraphUrls_1.default)(chainId, dex, true), publishedUrl = _b.publishedUrl, url = _b.url;
270
+ _b = (0, getGraphUrls_1.getGraphUrls)(chainId, dex, true), publishedUrl = _b.publishedUrl, url = _b.url;
271
271
  supportsCollectFees = (_a = constants_1.graphUrls[chainId][dex]) === null || _a === void 0 ? void 0 : _a.supportsCollectFees;
272
272
  if (!supportsCollectFees) {
273
273
  result = [];
@@ -348,7 +348,7 @@ function _getDeposits(vaultAddress, chainId, dex, days) {
348
348
  return [2 /*return*/, cachedData];
349
349
  }
350
350
  ttl = 120000;
351
- _a = (0, getGraphUrls_1.default)(chainId, dex, true), publishedUrl = _a.publishedUrl, url = _a.url;
351
+ _a = (0, getGraphUrls_1.getGraphUrls)(chainId, dex, true), publishedUrl = _a.publishedUrl, url = _a.url;
352
352
  currTimestamp = Date.now();
353
353
  startTimestamp = days
354
354
  ? parseInt(((currTimestamp - (0, timestamps_1.daysToMilliseconds)(days)) / 1000).toString()).toString()
@@ -423,7 +423,7 @@ function _getWithdraws(vaultAddress, chainId, dex, days) {
423
423
  return [2 /*return*/, cachedData];
424
424
  }
425
425
  ttl = 120000;
426
- _a = (0, getGraphUrls_1.default)(chainId, dex, true), publishedUrl = _a.publishedUrl, url = _a.url;
426
+ _a = (0, getGraphUrls_1.getGraphUrls)(chainId, dex, true), publishedUrl = _a.publishedUrl, url = _a.url;
427
427
  currTimestamp = Date.now();
428
428
  startTimestamp = days
429
429
  ? parseInt(((currTimestamp - (0, timestamps_1.daysToMilliseconds)(days)) / 1000).toString()).toString()
@@ -1 +1 @@
1
- {"version":3,"file":"_vaultEvents.js","sourceRoot":"","sources":["../../../src/functions/_vaultEvents.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,iCAAiC;AACjC,kDAAiD;AACjD,8CAO4B;AAC5B,kDAAyD;AACzD,uEAAiD;AACjD,yDAAmC;AACnC,kDAM8B;AAE9B,SAAsB,aAAa,CACjC,YAAoB,EACpB,OAAyB,EACzB,GAAiB,EACjB,IAAa;;;;;;;oBAEP,GAAG,GAAG,oBAAa,OAAO,cAAI,YAAY,cAAI,IAAI,CAAE,CAAC;oBACrD,UAAU,GAAG,eAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;oBAClC,IAAI,UAAU,EAAE;wBACd,sBAAO,UAAoB,EAAC;qBAC7B;oBAEK,GAAG,GAAG,MAAM,CAAC;oBACb,KAAwB,IAAA,sBAAY,EAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,EAAtD,YAAY,kBAAA,EAAE,GAAG,SAAA,CAAsC;oBACzD,aAAa,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;oBAC3B,cAAc,GAAG,IAAI;wBACzB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,GAAG,IAAA,+BAAkB,EAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE;wBACrF,CAAC,CAAC,GAAG,CAAC;oBAEF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require("../utils/timestamps");
50
50
  var getPrice_1 = __importDefault(require("../utils/getPrice"));
51
51
  var formatBigInt_1 = __importDefault(require("../utils/formatBigInt"));
52
- var getGraphUrls_1 = __importDefault(require("../utils/getGraphUrls"));
52
+ var getGraphUrls_1 = require("../utils/getGraphUrls");
53
53
  var _vaultEvents_1 = require("./_vaultEvents");
54
54
  var cache_1 = __importDefault(require("../utils/cache"));
55
55
  function getLpPriceAt(vaultEvents, daysAgo, isVaultInverted, token0decimals, token1decimals) {
@@ -91,7 +91,7 @@ function getLpApr(vaultAddress, jsonProvider, dex, timeIntervals) {
91
91
  return [4 /*yield*/, (0, vault_1.validateVaultData)(vaultAddress, jsonProvider, dex)];
92
92
  case 1:
93
93
  _a = _b.sent(), chainId = _a.chainId, vault = _a.vault;
94
- (0, getGraphUrls_1.default)(chainId, dex, true);
94
+ (0, getGraphUrls_1.getGraphUrls)(chainId, dex, true);
95
95
  return [4 /*yield*/, (0, _totalBalances_1.getTokenDecimals)(vault.tokenA, jsonProvider, chainId)];
96
96
  case 2:
97
97
  decimals0 = _b.sent();
@@ -141,7 +141,7 @@ function getLpPriceChange(vaultAddress, jsonProvider, dex, timeIntervals) {
141
141
  return [4 /*yield*/, (0, vault_1.validateVaultData)(vaultAddress, jsonProvider, dex)];
142
142
  case 1:
143
143
  _a = _b.sent(), chainId = _a.chainId, vault = _a.vault;
144
- (0, getGraphUrls_1.default)(chainId, dex, true);
144
+ (0, getGraphUrls_1.getGraphUrls)(chainId, dex, true);
145
145
  return [4 /*yield*/, (0, _totalBalances_1.getTokenDecimals)(vault.tokenA, jsonProvider, chainId)];
146
146
  case 2:
147
147
  decimals0 = _b.sent();
@@ -1 +1 @@
1
- {"version":3,"file":"calculateApr.js","sourceRoot":"","sources":["../../../src/functions/calculateApr.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iCAAmC;AACnC,kCAA8F;AAC9F,2CAA2C;AAC3C,iCAA4C;AA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,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;wBAC7E,IAAM,WAAW,GAAG,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,WAAW,CAAC;wBAC5C,IAAI,CAAC,WAAW,IAAI,WAAW,KAAK,CAAC,EAAE;4BACrC,MAAM,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;yBACrD;6BAAM;4BACL,MAAM,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,WAAW,GAAG,WAAW,CAAC,GAAG,WAAW,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC;yBAClG;oBACH,CAAC,CAAC,CAAC;oBACH,eAAK,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;oBAC5B,sBAAO,MAAM,EAAC;;;;CACf;AAtCD,4CAsCC"}
@@ -51,7 +51,7 @@ var timestamps_1 = require("../utils/timestamps");
51
51
  var deposit_1 = require("./deposit");
52
52
  var getPrice_1 = __importDefault(require("../utils/getPrice"));
53
53
  var priceFromPool_1 = require("./priceFromPool");
54
- var getGraphUrls_1 = __importDefault(require("../utils/getGraphUrls"));
54
+ var getGraphUrls_1 = require("../utils/getGraphUrls");
55
55
  var _vaultEvents_1 = require("./_vaultEvents");
56
56
  function getCollectedTokenAmountBN(ind, feesDataset) {
57
57
  var amounts = ind === 0
@@ -101,7 +101,7 @@ function getFeesCollected(vaultAddress, jsonProvider, dex, rawOrDays, days) {
101
101
  case 0: return [4 /*yield*/, (0, vault_1.validateVaultData)(vaultAddress, jsonProvider, dex)];
102
102
  case 1:
103
103
  _a = _b.sent(), chainId = _a.chainId, vault = _a.vault;
104
- (0, getGraphUrls_1.default)(chainId, dex, true);
104
+ (0, getGraphUrls_1.getGraphUrls)(chainId, dex, true);
105
105
  return [4 /*yield*/, (0, _totalBalances_1.getTokenDecimals)(vault.tokenA, jsonProvider, chainId)];
106
106
  case 2:
107
107
  token0Decimals = _b.sent();
@@ -150,7 +150,7 @@ function getFeesCollectedInfo(vaultAddress, jsonProvider, dex, forDays) {
150
150
  case 0: return [4 /*yield*/, (0, vault_1.validateVaultData)(vaultAddress, jsonProvider, dex)];
151
151
  case 1:
152
152
  _a = _b.sent(), chainId = _a.chainId, vault = _a.vault;
153
- (0, getGraphUrls_1.default)(chainId, dex, true);
153
+ (0, getGraphUrls_1.getGraphUrls)(chainId, dex, true);
154
154
  return [4 /*yield*/, (0, _totalBalances_1.getTokenDecimals)(vault.tokenA, jsonProvider, chainId)];
155
155
  case 2:
156
156
  token0Decimals = _b.sent();
@@ -1 +1 @@
1
- {"version":3,"file":"calculateFees.js","sourceRoot":"","sources":["../../../src/functions/calculateFees.ts"],"names":[],"mappings":";AAAA,iCAAiC;AACjC,iDAAiD;AACjD,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGpC,sDAAqD;AAErD,iCAA4C;AAC5C,mDAAoD;AACpD,uEAAiD;AACjD,kDAAyD;AACzD,qCAA2C;AAC3C,+DAAyC;AACzC,iDAA8C;AAC9C,uEAAiD;AACjD,+CAAyE;AAEzE,SAAS,yBAAyB,CAAC,GAAU,EAAE,WAAmB;IAChE,IAAM,OAAO,GACX,GAAG,KAAK,CAAC;QACP,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,UAAC,CAAC,IAAK,OAAA,qBAAS,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,EAA5B,CAA4B,CAAC;QACtD,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,UAAC,CAAC,IAAK,OAAA,qBAAS,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,EAA5B,CAA4B,CAAC,CAAC;IAC3D,IAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,UAAC,KAAK,EAAE,IAAI,IAAK,OAAA,KAAK,CAAC,GA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wBACnG,IAAM,SAAS,GAAG,yBAAyB,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC;wBAC9G,IAAM,SAAS,GAAG,yBAAyB,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC;wBAC9G,IAAM,eAAe,GACnB,8BAA8B,CAAC,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,CAAC;4BAC9F,8BAA8B,CAAC,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,CAAC,CAAC;wBAChG,IAAM,GAAG,GAAG,SAAS,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe,GAAG,SAAS,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;wBAEnG,IAAM,iBAAiB,GAAG;4BACxB,UAAU,EAAE,SAAS;4BACrB,UAAU,EAAE,IAAA,sBAAY,EAAC,SAAS,EAAE,cAAc,CAAC;4BACnD,UAAU,EAAE,IAAA,sBAAY,EAAC,SAAS,EAAE,cAAc,CAAC;4BACnD,MAAM,EAAE,GAAG;yBACZ,CAAC;wBACF,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;oBACjC,CAAC,CAAC,CAAC;oBAEH,sBAAO,MAAM,EAAC;;;;CACf;AAnDD,oDAmDC"}
@@ -43,7 +43,7 @@ exports.getFeeAprs = void 0;
43
43
  // eslint-disable-next-line import/no-cycle
44
44
  var vault_1 = require("./vault");
45
45
  var constants_1 = require("../graphql/constants");
46
- var getGraphUrls_1 = __importDefault(require("../utils/getGraphUrls"));
46
+ var getGraphUrls_1 = require("../utils/getGraphUrls");
47
47
  var cache_1 = __importDefault(require("../utils/cache"));
48
48
  var functions_1 = require("../graphql/functions");
49
49
  /**
@@ -74,7 +74,7 @@ function getFeeAprs(vaultAddress, jsonProvider, dex) {
74
74
  console.error("This function is not supported on chain ".concat(chainId, " and dex ").concat(dex, ":"));
75
75
  return [2 /*return*/, null];
76
76
  }
77
- _b = (0, getGraphUrls_1.default)(chainId, dex, true), publishedUrl = _b.publishedUrl, url = _b.url;
77
+ _b = (0, getGraphUrls_1.getGraphUrls)(chainId, dex, true), publishedUrl = _b.publishedUrl, url = _b.url;
78
78
  _c.label = 2;
79
79
  case 2:
80
80
  _c.trys.push([2, 11, , 12]);
@@ -1 +1 @@
1
- {"version":3,"file":"getFeeAprs.js","sourceRoot":"","sources":["../../../src/functions/getFeeAprs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,2CAA2C;AAC3C,iCAA4C;AAC5C,kDAAiD;AACjD,uEAAiD;AACjD,yDAAmC;AAEnC,kDAA8D;AAE9D;;;;;;GAMG;AACH,SAAsB,UAAU,CAC9B,YAAoB,EACpB,YAA6B,EAC7B,GAAiB;;;;;;;oBAEX,GAAG,GAAG,kBAAW,GAAG,cAAI,YAAY,CAAE,CAAC;oBACvC,UAAU,GAAG,eAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;oBAClC,IAAI,UAAU,EAAE;wBACd,sBAAO,UAAwB,EAAC;qBACjC;oBAGK,GAAG,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;oBAEP,qBAAM,IAAA,yBAAiB,EAAC,YAAY,EAAE,YAAY,EAAE,GAAG,CAAC,EAAA;;oBAApE,OAAO,GAAK,CAAA,SAAwD,CAAA,QAA7D;oBAGT,SAAS,GAAG,MAAA,qBAAS,CAAC,OAAO,CAAC,0CAAG,GAAG,CAAC,CAAC;oBAC5C,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,OAAO,KAAK,CAAC,EAAE;wBACzC,OAAO,CAAC,KAAK,CAAC,kDAA2C,OAAO,sBA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eAAK,CAAC,GAAG,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC;oBAChC,sBAAO,UAAU,EAAC;;;oBAElB,OAAO,CAAC,KAAK,CAAC,2CAAoC,YAAY,uBAAa,OAAO,sBAAY,GAAG,MAAG,EAAE,OAAK,CAAC,CAAC;oBAC7G,sBAAO,IAAI,EAAC;;;;;CAEf;AA9DD,gCA8DC"}
@@ -46,7 +46,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
46
46
  exports.getAllRewardInfo = exports.getRewardInfo = void 0;
47
47
  var graphql_request_1 = __importDefault(require("graphql-request"));
48
48
  var cache_1 = __importDefault(require("../utils/cache"));
49
- var getGraphUrls_1 = __importDefault(require("../utils/getGraphUrls"));
49
+ var getGraphUrls_1 = require("../utils/getGraphUrls");
50
50
  var queries_1 = require("../graphql/queries");
51
51
  var isVelodrome_1 = require("../utils/isVelodrome");
52
52
  function sendRewardInfoQueryRequest(url, vaultAddress, query) {
@@ -87,7 +87,7 @@ function getRewardInfo(chainId, dex, vaultAddress) {
87
87
  if (cachedData) {
88
88
  return [2 /*return*/, cachedData];
89
89
  }
90
- _a = (0, getGraphUrls_1.default)(chainId, dex), url = _a.url, publishedUrl = _a.publishedUrl;
90
+ _a = (0, getGraphUrls_1.getGraphUrls)(chainId, dex), url = _a.url, publishedUrl = _a.publishedUrl;
91
91
  _b.label = 1;
92
92
  case 1:
93
93
  _b.trys.push([1, 4, , 9]);
@@ -138,7 +138,7 @@ function getAllRewardInfo(chainId, dex) {
138
138
  if (cachedData) {
139
139
  return [2 /*return*/, cachedData];
140
140
  }
141
- _a = (0, getGraphUrls_1.default)(chainId, dex), url = _a.url, publishedUrl = _a.publishedUrl;
141
+ _a = (0, getGraphUrls_1.getGraphUrls)(chainId, dex), url = _a.url, publishedUrl = _a.publishedUrl;
142
142
  _b.label = 1;
143
143
  case 1:
144
144
  _b.trys.push([1, 4, , 9]);
@@ -1 +1 @@
1
- {"version":3,"file":"rewardInfo.js","source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M,6BAA6B,CAAC,YAAY,EAAE,4BAAkB,CAAC,EAAA;;oBAA9E,MAAM,GAAG,SAAqE;oBACpF,eAAK,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;oBAC5B,sBAAO,MAAM,EAAC;wBAEhB,MAAM,IAAI,KAAK,CAAC,uCAAgC,GAAG,CAAE,CAAC,CAAC;;;oBAEvD,IAAI,YAAY,EAAE;wBAChB,OAAO,CAAC,KAAK,CAAC,wCAAwC,EAAE,OAAK,CAAC,CAAC;qBAChE;;;;oBAEgB,qBAAM,6BAA6B,CAAC,GAAG,EAAE,4BAAkB,CAAC,EAAA;;oBAArE,MAAM,GAAG,SAA4D;oBAC3E,eAAK,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;oBAC5B,sBAAO,MAAM,EAAC;;;oBAEd,OAAO,CAAC,KAAK,CAAC,qCAAqC,EAAE,QAAM,CAAC,CAAC;oBAC7D,MAAM,IAAI,KAAK,CAAC,4CAAqC,GAAG,CAAE,CAAC,CAAC;;;;;;CAGjE;AAnCD,4CAmCC"}
@@ -52,7 +52,7 @@ var formatBigInt_1 = __importDefault(require("../utils/formatBigInt"));
52
52
  var vault_1 = require("./vault");
53
53
  var queries_1 = require("../graphql/queries");
54
54
  var parseBigInt_1 = __importDefault(require("../utils/parseBigInt"));
55
- var getGraphUrls_1 = __importDefault(require("../utils/getGraphUrls"));
55
+ var getGraphUrls_1 = require("../utils/getGraphUrls");
56
56
  var _totalBalances_1 = require("./_totalBalances");
57
57
  var multicallUtils_1 = require("../utils/multicallUtils");
58
58
  var isVelodrome_1 = require("../utils/isVelodrome");
@@ -155,7 +155,7 @@ function getAllUserBalances(accountAddress, jsonProvider, dex, raw) {
155
155
  case 0: return [4 /*yield*/, (0, vault_1.getChainByProvider)(jsonProvider)];
156
156
  case 1:
157
157
  chainId = (_b.sent()).chainId;
158
- _a = (0, getGraphUrls_1.default)(chainId, dex, true), publishedUrl = _a.publishedUrl, url = _a.url;
158
+ _a = (0, getGraphUrls_1.getGraphUrls)(chainId, dex, true), publishedUrl = _a.publishedUrl, url = _a.url;
159
159
  isVelodrome = (0, isVelodrome_1.isVelodromeDex)(chainId, dex);
160
160
  key = "".concat(chainId + accountAddress, "-balances");
161
161
  if (!!Object.prototype.hasOwnProperty.call(promises, key)) return [3 /*break*/, 11];
@@ -296,7 +296,7 @@ function getAllUserAmounts(accountAddress, jsonProvider, dex, raw) {
296
296
  case 0: return [4 /*yield*/, (0, vault_1.getChainByProvider)(jsonProvider)];
297
297
  case 1:
298
298
  chainId = (_c.sent()).chainId;
299
- _b = (0, getGraphUrls_1.default)(chainId, dex, true), publishedUrl = _b.publishedUrl, url = _b.url;
299
+ _b = (0, getGraphUrls_1.getGraphUrls)(chainId, dex, true), publishedUrl = _b.publishedUrl, url = _b.url;
300
300
  key = "".concat(chainId + accountAddress, "-all-user-amounts");
301
301
  if (!!Object.prototype.hasOwnProperty.call(promises, key)) return [3 /*break*/, 11];
302
302
  strUserBalancesQuery = (0, queries_1.getUserBalancesQuery)(chainId, dex);
@@ -1 +1 @@
1
- {"version":3,"file":"userBalances.js","sourceRoot":"","sources":["../../../src/functions/userBalances.ts"],"names":[],"mappings":";AAAA,iCAAiC;AACjC,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGjD,iCAAmC;AACnC,gDAAgD;AAChD,mDAA0C;AAC1C,0CAAoF;AACpF,kCAWkB;AAClB,uEAAiD;AACjD,2CAA2C;AAC3C,iCAAgE;AAEhE,8CAA0D;AAC1D,qEAA+C;AAC/C,uEAAiD;AACjD,mDAAuF;AACvF,0DAQiC;AACjC,oDAAsD;AAEtD,IAAM,QAAQ,GAAiC,EAAE,CAAC;AAElD;;;;;GAKG;AACH,SAAS,eAAe,CAAC,KAAU,EAAE,KAAa;IAChD,IAAI,KAAK,KAAK,CAAC,EAAE;QACf,OAAO,KAAK,CAAC,MAAM,IAAI,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,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;6BACrE;yBACF;6BAAM;4BACL,OAAO;gCACL,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE;gCAC5B,WAAW,EAAE,CAAC,GAAG;oCACf,CAAC,CAAC;wCACE,OAAO,EAAE,GAAG;wCACZ,OAAO,EAAE,GAAG;wCACZ,CAAC,EAAE,GAAG;wCACN,CAAC,EAAE,GAAG;qCACP;oCACH,CAAC,CAAC;wCACE,OAAO,EAAE,kBAAS,CAAC,IAAI,CAAC,CAAC,CAAC;wCAC1B,OAAO,EAAE,kBAAS,CAAC,IAAI,CAAC,CAAC,CAAC;wCAC1B,CAAC,EAAE,kBAAS,CAAC,IAAI,CAAC,CAAC,CAAC;wCACpB,CAAC,EAAE,kBAAS,CAAC,IAAI,CAAC,CAAC,CAAC;qCACrB;6BACuC,CAAC;yBAChD;oBACH,CAAC,CAAC,CAAC;oBAEH,sBAAO,gBAAgB,EAAC;;;oBAExB,OAAO,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;oBAC5C,MAAM,OAAK,CAAC;;;;;CAEf;AArHD,8CAqHC"}
@@ -54,7 +54,7 @@ var graphql_request_1 = require("graphql-request");
54
54
  var types_1 = require("../types");
55
55
  var contracts_1 = require("../contracts");
56
56
  var queries_1 = require("../graphql/queries");
57
- var getGraphUrls_1 = __importDefault(require("../utils/getGraphUrls"));
57
+ var getGraphUrls_1 = require("../utils/getGraphUrls");
58
58
  var cache_1 = __importDefault(require("../utils/cache"));
59
59
  function normalizeVaultData(vaultData) {
60
60
  var _a, _b;
@@ -176,7 +176,7 @@ function getIchiVaultInfo(chainId, dex, vaultAddress, jsonProvider) {
176
176
  if (cachedData) {
177
177
  return [2 /*return*/, cachedData];
178
178
  }
179
- _a = (0, getGraphUrls_1.default)(chainId, dex), url = _a.url, publishedUrl = _a.publishedUrl;
179
+ _a = (0, getGraphUrls_1.getGraphUrls)(chainId, dex), url = _a.url, publishedUrl = _a.publishedUrl;
180
180
  thisQuery = (0, queries_1.getVaultQuery)(chainId, dex);
181
181
  if (!(url === 'none' && jsonProvider)) return [3 /*break*/, 2];
182
182
  return [4 /*yield*/, getVaultInfoFromContract(vaultAddress, jsonProvider)];
@@ -238,7 +238,7 @@ function getVaultsByTokensAB(chainId, dex, tokenA, tokenB) {
238
238
  return [2 /*return*/, cachedData];
239
239
  }
240
240
  ttl = 3600000;
241
- _a = (0, getGraphUrls_1.default)(chainId, dex, true), url = _a.url, publishedUrl = _a.publishedUrl, version = _a.version;
241
+ _a = (0, getGraphUrls_1.getGraphUrls)(chainId, dex, true), url = _a.url, publishedUrl = _a.publishedUrl, version = _a.version;
242
242
  strVaultByTokensQuery = (0, queries_1.vaultByTokensQuery)(version);
243
243
  _b.label = 1;
244
244
  case 1:
@@ -303,7 +303,7 @@ function getVaultsByPool(poolAddress, chainId, dex) {
303
303
  if (cachedData) {
304
304
  return [2 /*return*/, cachedData];
305
305
  }
306
- _a = (0, getGraphUrls_1.default)(chainId, dex, true), url = _a.url, publishedUrl = _a.publishedUrl;
306
+ _a = (0, getGraphUrls_1.getGraphUrls)(chainId, dex, true), url = _a.url, publishedUrl = _a.publishedUrl;
307
307
  ttl = 3600000;
308
308
  _b.label = 1;
309
309
  case 1:
@@ -387,7 +387,7 @@ function getAllRewardVaults(chainId, dex) {
387
387
  if (cachedData) {
388
388
  return [2 /*return*/, cachedData];
389
389
  }
390
- _a = (0, getGraphUrls_1.default)(chainId, dex, true), url = _a.url, publishedUrl = _a.publishedUrl;
390
+ _a = (0, getGraphUrls_1.getGraphUrls)(chainId, dex, true), url = _a.url, publishedUrl = _a.publishedUrl;
391
391
  ttl = 3600000;
392
392
  _b.label = 1;
393
393
  case 1:
@@ -1 +1 @@
1
- {"version":3,"file":"vault.js","sourceRoot":"","sources":["../../../src/functions/vault.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAgD;AAChD,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