@sonarwatch/portfolio-plugins 0.12.140 → 0.12.142

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. package/CHANGELOG.md +2281 -2273
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/plugins/abex/marketsJob.js +2 -3
  5. package/src/plugins/abex/marketsJob.js.map +1 -1
  6. package/src/plugins/aftermath/poolsJob.js +1 -2
  7. package/src/plugins/aftermath/poolsJob.js.map +1 -1
  8. package/src/plugins/aftermath/stakingFetcher.js +1 -2
  9. package/src/plugins/aftermath/stakingFetcher.js.map +1 -1
  10. package/src/plugins/auxexchange/aptosLpJob.js +3 -3
  11. package/src/plugins/auxexchange/aptosLpJob.js.map +1 -1
  12. package/src/plugins/balancer/helpers/pools.js +21 -21
  13. package/src/plugins/bluefin/positionFetcher.js +2 -2
  14. package/src/plugins/bluefin/positionFetcher.js.map +1 -1
  15. package/src/plugins/cetus/poolsJob.js +12 -4
  16. package/src/plugins/cetus/poolsJob.js.map +1 -1
  17. package/src/plugins/circuit/vaultsJob.js +15 -6
  18. package/src/plugins/circuit/vaultsJob.js.map +1 -1
  19. package/src/plugins/drift/depositsFetcher.js +1 -1
  20. package/src/plugins/drift/depositsFetcher.js.map +1 -1
  21. package/src/plugins/elixir/positionsFetcher.js +1 -2
  22. package/src/plugins/elixir/positionsFetcher.js.map +1 -1
  23. package/src/plugins/flash/perpetualFetcher.js +2 -1
  24. package/src/plugins/flash/perpetualFetcher.js.map +1 -1
  25. package/src/plugins/flowx/poolJob.js +3 -4
  26. package/src/plugins/flowx/poolJob.js.map +1 -1
  27. package/src/plugins/flowx/stakingPoolJob.js +2 -3
  28. package/src/plugins/flowx/stakingPoolJob.js.map +1 -1
  29. package/src/plugins/kriya/farmsJob.js +1 -0
  30. package/src/plugins/kriya/farmsJob.js.map +1 -1
  31. package/src/plugins/kriya/vaultsFetcher.js +3 -0
  32. package/src/plugins/kriya/vaultsFetcher.js.map +1 -1
  33. package/src/plugins/liquidswap/aptosLpJob.js +2 -2
  34. package/src/plugins/liquidswap/aptosLpJob.js.map +1 -1
  35. package/src/plugins/mole/depositsFetcher.js +4 -5
  36. package/src/plugins/mole/depositsFetcher.js.map +1 -1
  37. package/src/plugins/mole/farmsFetcher.js +10 -4
  38. package/src/plugins/mole/farmsFetcher.js.map +1 -1
  39. package/src/plugins/pancakeswap/aptosLpJob.js +5 -5
  40. package/src/plugins/pancakeswap/aptosLpJob.js.map +1 -1
  41. package/src/plugins/staking-aptos/constants.js +2 -2
  42. package/src/plugins/staking-aptos/constants.js.map +1 -1
  43. package/src/plugins/sushiswap/aptos/poolsJob.js +2 -2
  44. package/src/plugins/sushiswap/aptos/poolsJob.js.map +1 -1
  45. package/src/plugins/sushiswap/helpers.js +24 -24
  46. package/src/plugins/thala/farmingPoolsFetcher.js +1 -1
  47. package/src/plugins/thala/farmingPoolsFetcher.js.map +1 -1
  48. package/src/plugins/thala/lpTokensJob.js +2 -2
  49. package/src/plugins/thala/lpTokensJob.js.map +1 -1
  50. package/src/plugins/tokens/fetchers/aptos.js +1 -1
  51. package/src/plugins/tokens/fetchers/aptos.js.map +1 -1
  52. package/src/plugins/uniswap-v2/helpers.js +22 -22
  53. package/src/plugins/zeta/airdropFetcher.js +16 -16
  54. package/src/plugins/zeta/airdropFetcher.js.map +1 -1
  55. package/src/utils/aptos/index.d.ts +0 -2
  56. package/src/utils/aptos/index.js +0 -2
  57. package/src/utils/aptos/index.js.map +1 -1
  58. package/src/utils/sei/constants.js +8 -8
  59. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  60. package/src/utils/sui/queryEvents.js +1 -4
  61. package/src/utils/sui/queryEvents.js.map +1 -1
  62. package/src/utils/sui/queryEventsSafe.d.ts +4 -0
  63. package/src/utils/sui/queryEventsSafe.js +34 -0
  64. package/src/utils/sui/queryEventsSafe.js.map +1 -0
  65. package/src/utils/aptos/parseTypeString.d.ts +0 -2
  66. package/src/utils/aptos/parseTypeString.js +0 -76
  67. package/src/utils/aptos/parseTypeString.js.map +0 -1
  68. package/src/utils/aptos/types.d.ts +0 -8
  69. package/src/utils/aptos/types.js +0 -3
  70. package/src/utils/aptos/types.js.map +0 -1
@@ -25,6 +25,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
25
25
  },
26
26
  })
27
27
  .catch(() => null);
28
+ console.log('constexecutor:JobExecutor= ~ pools:', pools);
28
29
  if (!pools)
29
30
  return;
30
31
  const poolsInfo = [];
@@ -1 +1 @@
1
- {"version":3,"file":"farmsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/farmsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kDAA6C;AAC7C,+DAAuD;AAGvD,2CAAiE;AAGjE,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,KAAK,GAAqC,MAAM,eAAK;SACxD,GAAG,CAAC,oBAAQ,EAAE;QACb,OAAO,EAAE;YACP,MAAM,EAAE,gCAAgC;YACxC,OAAO,EAAE,+BAA+B;YACxC,WAAW,EAAE,0CAA0C;SACxD;KACF,CAAC;SACD,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;IAErB,IAAI,CAAC,KAAK;QAAE,OAAO;IAEnB,MAAM,SAAS,GAAG,EAAE,CAAC;IACrB,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;QAC9B,IAAI,IAAI,CAAC,SAAS,KAAK,GAAG;YAAE,SAAS;QAErC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;IAED,MAAM,KAAK,CAAC,OAAO,CAAC,wBAAY,EAAE,SAAS,EAAE;QAC3C,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"farmsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/farmsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kDAA6C;AAC7C,+DAAuD;AAGvD,2CAAiE;AAGjE,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,KAAK,GAAqC,MAAM,eAAK;SACxD,GAAG,CAAC,oBAAQ,EAAE;QACb,OAAO,EAAE;YACP,MAAM,EAAE,gCAAgC;YACxC,OAAO,EAAE,+BAA+B;YACxC,WAAW,EAAE,0CAA0C;SACxD;KACF,CAAC;SACD,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;IACrB,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,KAAK,CAAC,CAAC;IAE1D,IAAI,CAAC,KAAK;QAAE,OAAO;IAEnB,MAAM,SAAS,GAAG,EAAE,CAAC;IACrB,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;QAC9B,IAAI,IAAI,CAAC,SAAS,KAAK,GAAG;YAAE,SAAS;QAErC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;IAED,MAAM,KAAK,CAAC,OAAO,CAAC,wBAAY,EAAE,SAAS,EAAE;QAC3C,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -26,6 +26,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
26
26
  if (!vaultsBalances.some((balance) => balance.totalBalance !== '0'))
27
27
  return [];
28
28
  const poolInfos = yield cache.getItems(constants_1.vaultsInfo.map((vault) => vault.underlyingPool), { prefix: constants_2.clmmPoolsPrefix, networkId: portfolio_core_1.NetworkId.sui });
29
+ console.log('constexecutor:FetcherExecutor= ~ poolInfos:', poolInfos);
29
30
  const vaultsPositionInfo = yield cache.getItem(constants_1.vaultsInfoKey, {
30
31
  prefix: constants_1.platformId,
31
32
  networkId: portfolio_core_1.NetworkId.sui,
@@ -58,6 +59,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
58
59
  const amountB = tokenAmountB
59
60
  .times(shares)
60
61
  .dividedBy(Math.pow(10, tokenPriceB.decimals));
62
+ if (amountA.isZero() && amountB.isZero())
63
+ continue;
61
64
  const assetA = (0, tokenPriceToAssetToken_1.default)(tokenPriceA.address, amountA.toNumber(), portfolio_core_1.NetworkId.sui, tokenPriceA);
62
65
  const assetB = (0, tokenPriceToAssetToken_1.default)(tokenPriceB.address, amountB.toNumber(), portfolio_core_1.NetworkId.sui, tokenPriceB);
63
66
  const value = (0, portfolio_core_1.getUsdValueSum)([assetA.value, assetB.value]);
@@ -1 +1 @@
1
- {"version":3,"file":"vaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/vaultsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,gEAAqC;AAGrC,2CAAoE;AACpE,iDAAmD;AACnD,6EAA0E;AAE1E,kDAAqD;AAErD,wFAAyF;AACzF,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,cAAc,GAAG,MAAM,IAAA,yCAAmB,EAC9C,MAAM,EACN,KAAK,EACL,sBAAU,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAC3C,CAAC;IAEF,IAAI,CAAC,cAAc,CAA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AC,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAE3D,UAAU,GAAG,IAAA,+BAAc,EAAC,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC;QACjD,WAAW,CAAC,IAAI,CAAC;YACf,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;YACxB,WAAW,EAAE,KAAK;YAClB,YAAY,EAAE,EAAE;YAChB,iBAAiB,EAAE,IAAI;YACvB,KAAK;YACL,MAAM,EAAE,EAAE;SACX,CAAC,CAAC;IACL,CAAC;IAED,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAExC,OAAO;QACL;YACE,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE;gBACJ,WAAW;aACZ;YACD,KAAK,EAAE,eAAe;YACtB,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;SACf;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"vaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/vaultsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,gEAAqC;AAGrC,2CAAoE;AACpE,iDAAmD;AACnD,6EAA0E;AAE1E,kDAAqD;AAErD,wFAAyF;AACzF,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,cAAc,GAAG,MAAM,IAAA,yCAAmB,EAC9C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,EACnC,WAAW,CAAC,OAAO,EACnB,OAAO,CAAC,QAAQ,EAAE,EAClB,0BAAS,CAAC,GAAG,EACb,WAAW,CACZ,CAAC;QAEF,MAAM,MAAM,GAAG,IAAA,gCAAsB,EACnC,WAAW,CAAC,OAAO,EACnB,OAAO,CAAC,QAAQ,EAAE,EAClB,0BAAS,CAAC,GAAG,EACb,WAAW,CACZ,CAAC;QACF,MAAM,KAAK,GAAG,IAAA,+BAAc,EAAC,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAE3D,UAAU,GAAG,IAAA,+BAAc,EAAC,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC;QACjD,WAAW,CAAC,IAAI,CAAC;YACf,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;YACxB,WAAW,EAAE,KAAK;YAClB,YAAY,EAAE,EAAE;YAChB,iBAAiB,EAAE,IAAI;YACvB,KAAK;YACL,MAAM,EAAE,EAAE;SACX,CAAC,CAAC;IACL,CAAC;IAED,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAExC,OAAO;QACL;YACE,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE;gBACJ,WAAW;aACZ;YACD,KAAK,EAAE,eAAe;YACtB,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;SACf;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -34,11 +34,11 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
34
34
  const lpCoinInfo = resource;
35
35
  const supply = (_c = (_b = (_a = lpCoinInfo.data.supply) === null || _a === void 0 ? void 0 : _a.vec[0]) === null || _b === void 0 ? void 0 : _b.integer.vec[0]) === null || _c === void 0 ? void 0 : _c.value;
36
36
  if (supply && supply !== '0') {
37
- const parsedType = (0, aptos_1.parseTypeString)(lpCoinInfo.type);
37
+ const parsedType = (0, portfolio_core_1.parseTypeString)(lpCoinInfo.type);
38
38
  const lpType = (_e = (_d = parsedType.keys) === null || _d === void 0 ? void 0 : _d.at(0)) === null || _e === void 0 ? void 0 : _e.type;
39
39
  if (!lpType)
40
40
  return;
41
- const parsedLpType = (0, aptos_1.parseTypeString)(lpType);
41
+ const parsedLpType = (0, portfolio_core_1.parseTypeString)(lpType);
42
42
  const typeX = (_g = (_f = parsedLpType.keys) === null || _f === void 0 ? void 0 : _f.at(0)) === null || _g === void 0 ? void 0 : _g.type;
43
43
  const typeY = (_j = (_h = parsedLpType.keys) === null || _h === void 0 ? void 0 : _h.at(1)) === null || _j === void 0 ? void 0 : _j.type;
44
44
  const poolType = (_l = (_k = parsedLpType.keys) === null || _k === void 0 ? void 0 : _k.at(2)) === null || _l === void 0 ? void 0 : _l.type;
@@ -1 +1 @@
1
- {"version":3,"file":"aptosLpJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/liquidswap/aptosLpJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,+DAA2E;AAO3E,6CAK2B;AAC3B,iDAAqD;AACrD,2CAKqB;AACrB,qGAA6E;AAE7E,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;;IACnD,MAAM,MAAM,GAAG,IAAA,wBAAc,GAAE,CAAC;IAChC,MAAM,SAAS,GAAG,MAAM,IAAA,2BAAmB,EAAC,MAAM,EAAE,0BAAc,CAAC,CAAC;IACpE,IAAI,CAAC,SAAS;QAAE,OAAO;IAEvB,MAAM,eAAe,GAAuC,IAAI,GAAG,EAAE,CAAC;IACtE,MAAM,WAAW,GAAiC,EAAE,CAAC;IACrD,MAAM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kB,EAAC,KAAK,EAAE,0BAAS,CAAC,KAAK,CAAC,CAAC;SAC5D,CAAC;QACF,MAAM,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,GAAG;YAC7C,IAAI,sBAAS,CAAC,iBAAiB,CAAC,cAAc,CAAC,KAAK,CAAC;YACrD,IAAI,sBAAS,CAAC,iBAAiB,CAAC,cAAc,CAAC,KAAK,CAAC;SACtD,CAAC;QAEF,IAAI,CAAC,WAAW,IAAI,CAAC,WAAW;YAAE,SAAS;QAC3C,MAAM,QAAQ,GAAG,IAAA,gCAAsB,EACrC,0BAAS,CAAC,KAAK,EACf,MAAM,EACN,sBAAU,EACV;YACE,OAAO,EAAE,MAAM;YACf,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,QAAQ;SACpB,EACD;YACE;gBACE,OAAO,EAAE,WAAW,CAAC,OAAO;gBAC5B,QAAQ,EAAE,WAAW,CAAC,QAAQ;gBAC9B,KAAK,EAAE,WAAW,CAAC,KAAK;gBACxB,gBAAgB,EAAE,iBAAiB;aACpC;YACD;gBACE,OAAO,EAAE,WAAW,CAAC,OAAO;gBAC5B,QAAQ,EAAE,WAAW,CAAC,QAAQ;gBAC9B,KAAK,EAAE,WAAW,CAAC,KAAK;gBACxB,gBAAgB,EAAE,iBAAiB;aACpC;SACF,EACD,SAAS,CACV,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACzB,CAAC;IACD,MAAM,KAAK,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -15,7 +15,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
16
  const constants_1 = require("./constants");
17
17
  const clients_1 = require("../../utils/clients");
18
- const aptos_1 = require("../../utils/aptos");
19
18
  const tokenPriceToAssetTokens_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetTokens"));
20
19
  const getDynamicFieldObject_1 = require("../../utils/sui/getDynamicFieldObject");
21
20
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
@@ -53,7 +52,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
53
52
  continue;
54
53
  if (!coinBalance.coinType.includes(constants_1.magicCoin))
55
54
  continue;
56
- const { keys: parsedType } = (0, aptos_1.parseTypeString)(coinBalance.coinType);
55
+ const { keys: parsedType } = (0, portfolio_core_1.parseTypeString)(coinBalance.coinType);
57
56
  if (!parsedType)
58
57
  continue;
59
58
  if (!coinsTypes.includes(parsedType[0].type))
@@ -72,13 +71,13 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
72
71
  continue;
73
72
  if (!((_d = (_c = stackedSaving.data) === null || _c === void 0 ? void 0 : _c.content) === null || _d === void 0 ? void 0 : _d.type.includes(constants_1.magicCoin)))
74
73
  continue;
75
- const parsedTypeString = (0, aptos_1.parseTypeString)((_f = (_e = stackedSaving.data) === null || _e === void 0 ? void 0 : _e.content) === null || _f === void 0 ? void 0 : _f.type);
74
+ const parsedTypeString = (0, portfolio_core_1.parseTypeString)((_f = (_e = stackedSaving.data) === null || _e === void 0 ? void 0 : _e.content) === null || _f === void 0 ? void 0 : _f.type);
76
75
  if (!parsedTypeString.keys)
77
76
  continue;
78
- const { keys: parsedSubType } = (0, aptos_1.parseTypeString)(parsedTypeString.keys[1].type);
77
+ const { keys: parsedSubType } = (0, portfolio_core_1.parseTypeString)(parsedTypeString.keys[1].type);
79
78
  if (!parsedSubType)
80
79
  continue;
81
- const { keys: parsedSubSubType } = (0, aptos_1.parseTypeString)(parsedSubType[0].type);
80
+ const { keys: parsedSubSubType } = (0, portfolio_core_1.parseTypeString)(parsedSubType[0].type);
82
81
  if (!parsedSubSubType)
83
82
  continue;
84
83
  if (!coinsTypes.includes(parsedSubSubType[0].type))
@@ -1 +1 @@
1
- {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/mole/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AAGpC,2CAOqB;AACrB,iDAAmD;AACnD,6CAAoD;AACpD,uGAA+E;AAE/E,iFAA8E;AAE9E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,CAAC,IAAI,EAAE,aAAa,EAAE,cAAc,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC9D,KAAK,CAAC,OAAO,CAAsB,mBAAO,EAAE;YAC1C,MAAM,EAAE,wBAAY;YACpB,SAAS,EAAE,0BAAS,CAAC,GAAG;SACzB,CAAC;QACF,MAAM,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,CAAC;QAChC,OAAO,CAAC,GAAG,CACT,mCAAuB,CAAC,GAAG,CAAC,CAAC,sBAAsB,EAAE,EAAE,CACrD,IAAA,6CAAqB,EAAW,MAAM,EAAE;YACtC,QAAQ,EAAE,sBAAsB;YAChC,IAAI,EAAE;gBACJ,IAAI,EAAE,gCAAoB;gBAC1B,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE;aAC5C;SACF,CAAC,CACH,CACF;KACF,CAAC,CAAC;IAEH,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QAC1B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,SAAS,GAAuB,IAAI,GAAG,EAAE,CAAC;IAChD,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QAC5B,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,SAAS,CAAC,GA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,oBAAoB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpC,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,EAAE,WAAW,EAAE,oBAAoB,EAAE;YAC3C,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,IAAA,+BAAc,EAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;SAChE,CAAC,CAAC;IACL,CAAC;IAED,IAAI,kBAAkB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClC,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,EAAE,WAAW,EAAE,kBAAkB,EAAE;YACzC,KAAK,EAAE,QAAQ;YACf,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,IAAA,+BAAc,EAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;SAC9D,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/mole/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AAGpC,2CAOqB;AACrB,iDAAmD;AACnD,uGAA+E;AAE/E,iFAA8E;AAE9E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,E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AE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;SAChE,CAAC,CAAC;IACL,CAAC;IAED,IAAI,kBAAkB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClC,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,EAAE,WAAW,EAAE,kBAAkB,EAAE;YACzC,KAAK,EAAE,QAAQ;YACf,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,IAAA,+BAAc,EAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;SAC9D,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -96,16 +96,22 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
96
96
  const debtValue = new bignumber_js_1.default((0, helpers_1.serializeReturnValue)(dir.results[0].returnValues[1])).dividedBy(Math.pow(10, (borrowingInterest.isReverse
97
97
  ? farm.symbol1Decimals
98
98
  : farm.symbol2Decimals)));
99
+ if (health.isZero() && debtValue.isZero())
100
+ return;
99
101
  // const equityValue = health.minus(debtValue);
100
102
  // const leverage = health.dividedBy(equityValue);
101
103
  // const debtRatio = debtValue.dividedBy(health);
102
104
  if (borrowingInterest.isReverse) {
103
- suppliedAssets.push((0, tokenPriceToAssetToken_1.default)(farm.symbol1Address, health.toNumber(), portfolio_core_1.NetworkId.sui, tokenPrices.get((0, portfolio_core_1.formatMoveTokenAddress)(farm.symbol1Address))));
104
- borrowedAssets.push((0, tokenPriceToAssetToken_1.default)(farm.symbol1Address, debtValue.toNumber(), portfolio_core_1.NetworkId.sui, tokenPrices.get((0, portfolio_core_1.formatMoveTokenAddress)(farm.symbol1Address))));
105
+ if (!health.isZero())
106
+ suppliedAssets.push((0, tokenPriceToAssetToken_1.default)(farm.symbol1Address, health.toNumber(), portfolio_core_1.NetworkId.sui, tokenPrices.get((0, portfolio_core_1.formatMoveTokenAddress)(farm.symbol1Address))));
107
+ if (!debtValue.isZero())
108
+ borrowedAssets.push((0, tokenPriceToAssetToken_1.default)(farm.symbol1Address, debtValue.toNumber(), portfolio_core_1.NetworkId.sui, tokenPrices.get((0, portfolio_core_1.formatMoveTokenAddress)(farm.symbol1Address))));
105
109
  }
106
110
  else {
107
- suppliedAssets.push((0, tokenPriceToAssetToken_1.default)(farm.symbol2Address, health.toNumber(), portfolio_core_1.NetworkId.sui, tokenPrices.get((0, portfolio_core_1.formatMoveTokenAddress)(farm.symbol2Address))));
108
- borrowedAssets.push((0, tokenPriceToAssetToken_1.default)(farm.symbol2Address, debtValue.toNumber(), portfolio_core_1.NetworkId.sui, tokenPrices.get((0, portfolio_core_1.formatMoveTokenAddress)(farm.symbol2Address))));
111
+ if (!health.isZero())
112
+ suppliedAssets.push((0, tokenPriceToAssetToken_1.default)(farm.symbol2Address, health.toNumber(), portfolio_core_1.NetworkId.sui, tokenPrices.get((0, portfolio_core_1.formatMoveTokenAddress)(farm.symbol2Address))));
113
+ if (!debtValue.isZero())
114
+ borrowedAssets.push((0, tokenPriceToAssetToken_1.default)(farm.symbol2Address, debtValue.toNumber(), portfolio_core_1.NetworkId.sui, tokenPrices.get((0, portfolio_core_1.formatMoveTokenAddress)(farm.symbol2Address))));
109
115
  }
110
116
  if (borrowedAssets.length === 0 &&
111
117
  suppliedAssets.length === 0 &&
@@ -1 +1 @@
1
- {"version":3,"file":"farmsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/mole/farmsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,8DAA+D;AAC/D,+DASoC;A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c;YACd,cAAc;YACd,YAAY;SACb,CAAC,CAAC;QAEL,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,qCAAoB,CAAC,UAAU;YACrC,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,GAAG,IAAI,CAAC,UAAU,KAAK,UAAU,EAAE;YACzC,KAAK;YACL,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,WAAW,EAAE,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE;gBACnD,YAAY;gBACZ,WAAW;gBACX,KAAK;aACN;SACF,CAAC,CAAC;IACL,CAAC,CAAA,CAAC,CACH,CAAC;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"farmsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/mole/farmsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,8DAA+D;AAC/D,+DASoC;AACpC,gEAAqC;AAGrC,2CAA8E;AAC9E,iDAAmD;AAEnD,uCAAiD;AACjD,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,QAAQ,GAAuB,EAAE,CAAC;IAExC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC1C,KAAK,CAAC,OAAO,CAAW,mBAAO,EAAE;YAC/B,MAA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AU;YACrC,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,GAAG,IAAI,CAAC,UAAU,KAAK,UAAU,EAAE;YACzC,KAAK;YACL,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,WAAW,EAAE,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE;gBACnD,YAAY;gBACZ,WAAW;gBACX,KAAK;aACN;SACF,CAAC,CAAC;IACL,CAAC,CAAA,CAAC,CACH,CAAC;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -32,7 +32,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
32
32
  });
33
33
  const tokenPriceById = yield cache.getTokenPricesAsMap(resources
34
34
  .map((ressource) => {
35
- const { keys } = (0, aptos_1.parseTypeString)(ressource.type);
35
+ const { keys } = (0, portfolio_core_1.parseTypeString)(ressource.type);
36
36
  return keys ? keys.map((key) => key.type) : [];
37
37
  })
38
38
  .flat(), portfolio_core_1.NetworkId.aptos);
@@ -41,7 +41,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
41
41
  const resource = resources[i];
42
42
  if (!resource.type.startsWith(constants_1.lpCoinInfoTypePrefix))
43
43
  continue;
44
- const lpType = (_b = (_a = (0, aptos_1.parseTypeString)(resource.type).keys) === null || _a === void 0 ? void 0 : _a.at(0)) === null || _b === void 0 ? void 0 : _b.type;
44
+ const lpType = (_b = (_a = (0, portfolio_core_1.parseTypeString)(resource.type).keys) === null || _a === void 0 ? void 0 : _a.at(0)) === null || _b === void 0 ? void 0 : _b.type;
45
45
  if (!lpType)
46
46
  continue;
47
47
  const lpInfoData = resource.data;
@@ -52,7 +52,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
52
52
  const lpSupply = new bignumber_js_1.default(lpSupplyString);
53
53
  if (lpSupply.isZero())
54
54
  continue;
55
- const tokenPairId = (_f = (0, aptos_1.parseTypeString)(lpType)
55
+ const tokenPairId = (_f = (0, portfolio_core_1.parseTypeString)(lpType)
56
56
  .keys) === null || _f === void 0 ? void 0 : _f.map((t) => t.type).join(', ');
57
57
  if (!tokenPairId)
58
58
  continue;
@@ -61,8 +61,8 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
61
61
  tokenPairId.includes('LPCoinV1::LPCoin') ||
62
62
  tokenPairId.includes('lp_coin::LP'))
63
63
  continue;
64
- const typeX = (_h = (_g = (0, aptos_1.parseTypeString)(lpType).keys) === null || _g === void 0 ? void 0 : _g.at(0)) === null || _h === void 0 ? void 0 : _h.type;
65
- const typeY = (_k = (_j = (0, aptos_1.parseTypeString)(lpType).keys) === null || _j === void 0 ? void 0 : _j.at(1)) === null || _k === void 0 ? void 0 : _k.type;
64
+ const typeX = (_h = (_g = (0, portfolio_core_1.parseTypeString)(lpType).keys) === null || _g === void 0 ? void 0 : _g.at(0)) === null || _h === void 0 ? void 0 : _h.type;
65
+ const typeY = (_k = (_j = (0, portfolio_core_1.parseTypeString)(lpType).keys) === null || _j === void 0 ? void 0 : _j.at(1)) === null || _k === void 0 ? void 0 : _k.type;
66
66
  const tokenPairResource = resourcesByType.get(`${constants_1.programAddress}::swap::TokenPairMetadata<${tokenPairId}>`);
67
67
  if (!tokenPairResource)
68
68
  throw new Error(`Failed to get tokenPairResource: ${lpType}`);
@@ -1 +1 @@
1
- {"version":3,"file":"aptosLpJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/pancakeswap/aptosLpJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gEAAq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EAAE,WAAW,CAAC,KAAK;gBACxB,gBAAgB,EAAE,iBAAiB;aACpC;SACF,EACD,EAAE,CACH,CAAC;QACF,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC3B,CAAC;IACD,MAAM,KAAK,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC;AAC9C,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.platformId = exports.stakingAptosPlatformIds = exports.stakeConfigs = exports.meeiroPlatform = void 0;
7
7
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
8
- const aptos_1 = require("../../utils/aptos");
8
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
9
9
  // Meeiro
10
10
  exports.meeiroPlatform = {
11
11
  id: 'meeiro',
@@ -20,7 +20,7 @@ const parseResourceMeeiro = (r) => {
20
20
  var _a, _b;
21
21
  return ({
22
22
  amountBn: new bignumber_js_1.default(r.data.amount),
23
- tokenAddress: ((_b = (_a = (0, aptos_1.parseTypeString)(r.type).keys) === null || _a === void 0 ? void 0 : _a.at(0)) === null || _b === void 0 ? void 0 : _b.type) || '',
23
+ tokenAddress: ((_b = (_a = (0, portfolio_core_1.parseTypeString)(r.type).keys) === null || _a === void 0 ? void 0 : _a.at(0)) === null || _b === void 0 ? void 0 : _b.type) || '',
24
24
  });
25
25
  };
26
26
  exports.stakeConfigs = [
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/staking-aptos/constants.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AAErC,6CAAkE;AAGlE,SAAS;AACI,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,QAAQ;IACZ,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,+CAA+C;IACtD,OAAO,EAAE,qBAAqB;IAC9B,OAAO,EAAE,gCAAgC;CAC1C,CAAC;AACF,MAAM,aAAa,GACjB,oEAAoE,CAAC;AACvE,MAAM,YAAY,GAAG,GAAG,aAAa,uBAAuB,CAAC;AAC7D,MAAM,mBAAmB,GAAG,CAAC,CAAwB,EAAa,EAAE;;IAAC,OAAA,CAAC;QACpE,QAAQ,EAAE,IAAI,sBAAS,CAAE,CAAmC,CAAC,IAAI,CAAC,MAAM,CAAC;QACzE,YAAY,EAAE,CAAA,MAAA,MAAA,IAAA,uBAAe,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,0CAAE,EAAE,CAAC,CAAC,CAAC,0CAAE,IAAI,KAAI,EAAE;KAC9D,CAAC,CAAA;CAAA,CAAC;AAEU,QAAA,YAAY,GAAkB;IACzC;QACE,UAAU,EAAE,sBAAc,CAAC,EAAE;QAC7B,SAAS,EAAE,QAAQ;QACnB,QAAQ,EAAE,CAAC,YAAY,CAAC;QACxB,aAAa,EAAE,mBAAmB;KACnC;CACF,CAAC;AAEW,QAAA,uBAAuB,GAAG;IACrC,GAAG,IAAI,GAAG,CAAC,oBAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;CAClD,CAAC;AAEW,QAAA,UAAU,GAAG,eAAe,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/staking-aptos/constants.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AACrC,+DAAuE;AAIvE,SAAS;AACI,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,QAAQ;IACZ,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,+CAA+C;IACtD,OAAO,EAAE,qBAAqB;IAC9B,OAAO,EAAE,gCAAgC;CAC1C,CAAC;AACF,MAAM,aAAa,GACjB,oEAAoE,CAAC;AACvE,MAAM,YAAY,GAAG,GAAG,aAAa,uBAAuB,CAAC;AAC7D,MAAM,mBAAmB,GAAG,CAAC,CAAwB,EAAa,EAAE;;IAAC,OAAA,CAAC;QACpE,QAAQ,EAAE,IAAI,sBAAS,CAAE,CAAmC,CAAC,IAAI,CAAC,MAAM,CAAC;QACzE,YAAY,EAAE,CAAA,MAAA,MAAA,IAAA,gCAAe,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,0CAAE,EAAE,CAAC,CAAC,CAAC,0CAAE,IAAI,KAAI,EAAE;KAC9D,CAAC,CAAA;CAAA,CAAC;AAEU,QAAA,YAAY,GAAkB;IACzC;QACE,UAAU,EAAE,sBAAc,CAAC,EAAE;QAC7B,SAAS,EAAE,QAAQ;QACnB,QAAQ,EAAE,CAAC,YAAY,CAAC;QACxB,aAAa,EAAE,mBAAmB;KACnC;CACF,CAAC;AAEW,QAAA,uBAAuB,GAAG;IACrC,GAAG,IAAI,GAAG,CAAC,oBAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;CAClD,CAAC;AAEW,QAAA,UAAU,GAAG,eAAe,CAAC"}
@@ -33,7 +33,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
33
33
  const resource = resources[i];
34
34
  if (!resource.type.startsWith(constants_1.lpCoinInfoTypePrefix))
35
35
  continue;
36
- const parsedType = (0, aptos_1.parseTypeString)(resource.type);
36
+ const parsedType = (0, portfolio_core_1.parseTypeString)(resource.type);
37
37
  const lpType = (_b = (_a = parsedType.keys) === null || _a === void 0 ? void 0 : _a.at(0)) === null || _b === void 0 ? void 0 : _b.type;
38
38
  if (!lpType)
39
39
  continue;
@@ -45,7 +45,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
45
45
  const lpSupply = new bignumber_js_1.default(lpSupplyString);
46
46
  if (lpSupply.isZero())
47
47
  continue;
48
- const parsedLpType = (0, aptos_1.parseTypeString)(lpType);
48
+ const parsedLpType = (0, portfolio_core_1.parseTypeString)(lpType);
49
49
  const typeX = (_g = (_f = parsedLpType.keys) === null || _f === void 0 ? void 0 : _f.at(0)) === null || _g === void 0 ? void 0 : _g.type;
50
50
  const typeY = (_j = (_h = parsedLpType.keys) === null || _h === void 0 ? void 0 : _h.at(1)) === null || _j === void 0 ? void 0 : _j.type;
51
51
  if (!typeX || !typeY)
@@ -1 +1 @@
1
- {"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/sushiswap/aptos/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,+DAAuD;AACvD,oDAAwD;AAGxD,2CAAmE;AACnE,gDAK8B;AAC9B,4CAA0C;AAE1C,wGAAgF;AAEhF,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;;IACnD,MAAM,MAAM,GAAG,IAAA,wBAAc,GAAE,CAAC;IAChC,MAAM,SAAS,GAAG,MAAM,IAAA,2BAAmB,EAAC,MAAM,EAAE,0BAAc,CAAC,CAAC;IACpE,IAAI,CAAC,SAAS;QAAE,OAAO;IAEvB,MAAM,eAAe,GAAuC,IAAI,GAAG,EAAE,CAAC;IACtE,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;QAC7B,eAAe,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;IAEH,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAC1C,MAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,gCAAoB,CAAC;YAAE,SAAS;QAE9D,MAAM,UAAU,GAAG,IAA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AAK,GAAG;YAAE,SAAS;QAEpD,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,GAAG,MAAM,KAAK,CAAC,cAAc,CAC3D,CAAC,KAAK,EAAE,KAAK,CAAC,EACd,0BAAS,CAAC,KAAK,CAChB,CAAC;QACF,IAAI,CAAC,WAAW,IAAI,CAAC,WAAW;YAAE,SAAS;QAE3C,MAAM,MAAM,GAAG,IAAA,gCAAsB,EACnC,0BAAS,CAAC,KAAK,EACf,sBAAU,EACV,sBAAU,EACV;YACE,OAAO,EAAE,MAAM;YACf,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,QAAQ;SACpB,EACD;YACE;gBACE,OAAO,EAAE,KAAK;gBACd,QAAQ,EAAE,aAAa,CAAC,eAAe,CAAC,QAAQ;gBAChD,KAAK,EAAE,WAAW,CAAC,KAAK;gBACxB,gBAAgB,EAAE,IAAI,sBAAS,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC;aAC/D;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,QAAQ,EAAE,aAAa,CAAC,eAAe,CAAC,QAAQ;gBAChD,KAAK,EAAE,WAAW,CAAC,KAAK;gBACxB,gBAAgB,EAAE,IAAI,sBAAS,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC;aAC/D;SACF,EACD,SAAS,CACV,CAAC;QACF,MAAM,KAAK,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;AACH,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/sushiswap/aptos/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,+DAAwE;AACxE,oDAAwD;AAGxD,2CAA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,KAAK,EAAE,WAAW,CAAC,KAAK;gBACxB,gBAAgB,EAAE,IAAI,sBAAS,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC;aAC/D;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,QAAQ,EAAE,aAAa,CAAC,eAAe,CAAC,QAAQ;gBAChD,KAAK,EAAE,WAAW,CAAC,KAAK;gBACxB,gBAAgB,EAAE,IAAI,sBAAS,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC;aAC/D;SACF,EACD,SAAS,CACV,CAAC;QACF,MAAM,KAAK,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;AACH,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -54,30 +54,30 @@ function sushiV3PairToUniV2(pair) {
54
54
  }
55
55
  function getV3PairsAddresses(url, length = 300) {
56
56
  return __awaiter(this, void 0, void 0, function* () {
57
- const query = (0, graphql_request_1.gql) `
58
- {
59
- pools(
60
- orderBy: totalValueLockedUSD
61
- first: ${length}
62
- orderDirection: desc
63
- where: { volumeUSD_not: "0", liquidity_not: "0" }
64
- ) {
65
- id
66
- token0Price
67
- token1Price
68
- liquidity
69
- token0 {
70
- id
71
- totalSupply
72
- decimals
73
- }
74
- token1 {
75
- id
76
- totalSupply
77
- decimals
78
- }
79
- }
80
- }
57
+ const query = (0, graphql_request_1.gql) `
58
+ {
59
+ pools(
60
+ orderBy: totalValueLockedUSD
61
+ first: ${length}
62
+ orderDirection: desc
63
+ where: { volumeUSD_not: "0", liquidity_not: "0" }
64
+ ) {
65
+ id
66
+ token0Price
67
+ token1Price
68
+ liquidity
69
+ token0 {
70
+ id
71
+ totalSupply
72
+ decimals
73
+ }
74
+ token1 {
75
+ id
76
+ totalSupply
77
+ decimals
78
+ }
79
+ }
80
+ }
81
81
  `;
82
82
  const res = yield (0, graphql_request_1.default)(url, query);
83
83
  const pools = res.pools;
@@ -37,7 +37,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
37
37
  const resourceType = resource.type;
38
38
  if (!(0, aptos_1.isCoinStoreRessourceType)(resourceType))
39
39
  return null;
40
- const parseCoinType = (0, aptos_1.parseTypeString)(resourceType);
40
+ const parseCoinType = (0, portfolio_core_1.parseTypeString)(resourceType);
41
41
  if (parseCoinType.root !== aptos_1.coinStore)
42
42
  return null;
43
43
  if (!parseCoinType.keys)
@@ -1 +1 @@
1
- {"version":3,"file":"farmingPoolsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/farmingPoolsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AAGrC,2CAKqB;AACrB,6CAM2B;AAC3B,iDAAqD;AAErD,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,wBAAc,GAAE,CAAC;IAEhC,MAAM,CAAC,YAAY,EAAE,SAAS,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAClD,KAAK,CAAC,OAAO,CAAa,2BAAe,EAAE;YACzC,MAAM,EAAE,sBAAU;YAClB,SAAS,EAAE,0BAAS,CAAC,KAAK;SAC3B,CAAC;QACF,IAAA,2BAAmB,EAAC,MAAM,EAAE,KAAK,CAAC;KACnC,CAAC,CAAC;IAEH,IAAI,CAAC,YAAY;QAAE,OAAO,EAAE,CAAC;IAC7B,IAAI,CAAC,SAAS;QAAE,OAAO,EAAE,CAAC;IAE1B,MAAM,eAAe,GAAG,SAAS;SAC9B,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;;QAChB,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC;QACnC,IAAI,CAAC,IAAA,gCAAwB,EAAC,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AAC;iBAC1C,QAAQ,EAAE,EACb,0BAAS,CAAC,KAAK,EACf,gBAAgB,CACjB,CACF,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,MAAM,iBAAiB,GAAG,IAAA,+BAAc,EAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QAC3E,MAAM,KAAK,GAAG,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,iBAAiB,IAAI,CAAC,CAAC,CAAC;QAE5D,WAAW,CAAC,IAAI,CAAC;YACf,MAAM,EAAE,CAAC,KAAK,CAAC;YACf,WAAW,EAAE,KAAK,CAAC,KAAK;YACxB,YAAY;YACZ,iBAAiB;YACjB,KAAK;YACL,MAAM,EAAE,EAAE;SACX,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAExC,OAAO;QACL;YACE,SAAS,EAAE,0BAAS,CAAC,KAAK;YAC1B,KAAK,EAAE,SAAS;YAChB,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,qCAAoB,CAAC,SAAS;YACpC,KAAK,EAAE,IAAA,+BAAc,EAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACtD,IAAI,EAAE;gBACJ,WAAW;aACZ;SACF;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,gBAAgB;IACjC,SAAS,EAAE,0BAAS,CAAC,KAAK;IAC1B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -33,7 +33,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
33
33
  const tokenAdresses = new Set();
34
34
  resources.forEach((resource) => {
35
35
  var _a;
36
- const parseLpInfo = (0, aptos_1.parseTypeString)(resource.type);
36
+ const parseLpInfo = (0, portfolio_core_1.parseTypeString)(resource.type);
37
37
  if (parseLpInfo.root !== aptos_1.coinInfo)
38
38
  return;
39
39
  if (!parseLpInfo.keys)
@@ -64,7 +64,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
64
64
  const tokenPriceSources = [];
65
65
  resources.forEach((resource) => {
66
66
  var _a, _b, _c, _d;
67
- const parseLpInfo = (0, aptos_1.parseTypeString)(resource.type);
67
+ const parseLpInfo = (0, portfolio_core_1.parseTypeString)(resource.type);
68
68
  if (parseLpInfo.root !== aptos_1.coinInfo)
69
69
  return;
70
70
  if (!parseLpInfo.keys)
@@ -1 +1 @@
1
- {"version":3,"file":"lpTokensJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/lpTokensJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AACrC,2CAOqB;AACrB,6CAM2B;AAC3B,iDAAqD;AAErD,uCAA0C;AAG1C,4DAAyD;AAEzD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,UAAU,GAAG,IAAA,wBAAc,GAAE,CAAC;IACpC,MAAM,SAAS,GAAG,MAAM,IAAA,2BAAmB,EACzC,UAAU,EACV,4BAAgB,CACjB,CAAC,IAAI,CAAC,CAAC,mBAAmB,EAAE,EAAE,CAC7B,CAAC,mBAAmB,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE;QAC9C,IAAI,CAAC,QAAQ;YAAE,OAAO,KAAK,CAAC;QAC5B,OAAO,CAAC,CACN,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,8BAAkB,CAAC;YAC3C,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,gCAAoB,CAAC,CAC9C,CAAC;IACJ,CAAC,CAAC,CACH,CAAC;IACF,IAAI,CAA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,CAAC,iBAAiB,CAAC,CAAC;AACtD,CAAC,CAAA,CAAC;AAEF,SAAS,oBAAoB,CAC3B,qBAA4C;IAE5C,OAAO;QACL,IAAI,sBAAS,CAAC,qBAAqB,CAAC,OAAO,CAAC,KAAK,CAAC;QAClD,IAAI,sBAAS,CAAC,qBAAqB,CAAC,OAAO,CAAC,KAAK,CAAC;QAClD,IAAI,sBAAS,CAAC,qBAAqB,CAAC,OAAO,CAAC,KAAK,CAAC;QAClD,IAAI,sBAAS,CAAC,qBAAqB,CAAC,OAAO,CAAC,KAAK,CAAC;KACnD,CAAC;AACJ,CAAC;AAED,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -32,7 +32,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
32
32
  const resourceType = resource.type;
33
33
  if (!(0, aptos_1.isCoinStoreRessourceType)(resourceType))
34
34
  continue;
35
- const parseCoinType = (0, aptos_1.parseTypeString)(resourceType);
35
+ const parseCoinType = (0, portfolio_core_1.parseTypeString)(resourceType);
36
36
  if (parseCoinType.root !== aptos_1.coinStore)
37
37
  continue;
38
38
  if (!parseCoinType.keys)
@@ -1 +1 @@
1
- {"version":3,"file":"aptos.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/tokens/fetchers/aptos.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AAEpC,gEAAqC;AAGrC,0GAAkF;AAClF,wGAAgF;AAChF,oDAAwD;AACxD,gDAM8B;AAC9B,4CAAoD;AAEpD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,wBAAc,GAAE,CAAC;IAChC,MAAM,SAAS,GAAG,MAAM,IAAA,2BAAmB,EAAC,MAAM,EAAE,KAAK,CAAC,CAAC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oB,CAAC,EAAE;YACnC,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE,IAAA,+BAAc,EAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YAC7D,IAAI,EAAE;gBACJ,MAAM,EAAE,kBAAkB;aAC3B;SACF,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IACrC,CAAC;IAED,KAAK,MAAM,CAAC,UAAU,EAAE,WAAW,CAAC,IAAI,MAAM,CAAC,OAAO,CACpD,uBAAuB,CACxB,EAAE,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,qCAAoB,CAAC,SAAS;YACpC,SAAS,EAAE,0BAAS,CAAC,KAAK;YAC1B,UAAU;YACV,KAAK,EAAE,eAAe;YACtB,KAAK,EAAE,IAAA,+BAAc,EAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACtD,IAAI,EAAE;gBACJ,WAAW;aACZ;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,gCAAoB,CAAC,EAAE,QAAQ;IACtC,SAAS,EAAE,0BAAS,CAAC,KAAK;IAC1B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -40,28 +40,28 @@ function getPairKey(version) {
40
40
  exports.getPairKey = getPairKey;
41
41
  function getPairsV2FromTheGraph(url, length = 300) {
42
42
  return __awaiter(this, void 0, void 0, function* () {
43
- const query = (0, graphql_request_1.gql) `
44
- {
45
- pairs(
46
- orderBy: reserveUSD
47
- first: ${length}
48
- orderDirection: desc
49
- where: { trackedReserveETH_not: "0" }
50
- ) {
51
- id
52
- reserve0
53
- reserve1
54
- totalSupply
55
- token0 {
56
- id
57
- decimals
58
- }
59
- token1 {
60
- id
61
- decimals
62
- }
63
- }
64
- }
43
+ const query = (0, graphql_request_1.gql) `
44
+ {
45
+ pairs(
46
+ orderBy: reserveUSD
47
+ first: ${length}
48
+ orderDirection: desc
49
+ where: { trackedReserveETH_not: "0" }
50
+ ) {
51
+ id
52
+ reserve0
53
+ reserve1
54
+ totalSupply
55
+ token0 {
56
+ id
57
+ decimals
58
+ }
59
+ token1 {
60
+ id
61
+ decimals
62
+ }
63
+ }
64
+ }
65
65
  `;
66
66
  const res = yield (0, graphql_request_1.default)(url, query);
67
67
  const pairs = res.pairs;
@@ -42,20 +42,20 @@ const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/token
42
42
  const clients_1 = require("../../utils/clients");
43
43
  const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAccountsInfoSafe");
44
44
  const helpers_1 = require("./helpers");
45
- const query = (0, graphql_request_1.gql) `
46
- query GetAirdropFinalFrontend($authority: String!) {
47
- getAirdropFinalFrontend(authority: $authority) {
48
- authority
49
- community_allocation
50
- eligibility
51
- main_allocation
52
- og_allocation
53
- s1_allocation
54
- s2_allocation
55
- total_allocation
56
- __typename
57
- }
58
- }
45
+ const query = (0, graphql_request_1.gql) `
46
+ query GetAirdropFinalFrontend($authority: String!) {
47
+ getAirdropFinalFrontend(authority: $authority) {
48
+ authority
49
+ community_allocation
50
+ eligibility
51
+ main_allocation
52
+ og_allocation
53
+ s1_allocation
54
+ s2_allocation
55
+ total_allocation
56
+ __typename
57
+ }
58
+ }
59
59
  `;
60
60
  const networkId = portfolio_core_1.NetworkId.solana;
61
61
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
@@ -81,12 +81,12 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
81
81
  ? (0, tokenPriceToAssetToken_1.default)(tokenPrice.address, amount, networkId, tokenPrice, undefined, { lockedUntil: 1719475200000 })
82
82
  : {
83
83
  type: 'generic',
84
+ imageUri: 'https://raw.githubusercontent.com/sonarwatch/token-lists/main/images/solana/ZEXy1pqteRu3n13kdyh4LwPQknkFk3GzmMYMuNadWPo.webp',
85
+ name: 'ZEX',
84
86
  data: {
85
87
  address: constants_1.zexMint,
86
- imageUri: 'https://statics.solscan.io/cdn/imgs/s60?ref=68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f7a6574616d61726b6574732f6272616e642f6d61737465722f6173736574732f7a6574612e706e67',
87
88
  amount,
88
89
  price: null,
89
- name: 'ZEX',
90
90
  },
91
91
  value: null,
92
92
  networkId,