@sonarwatch/portfolio-plugins 0.14.32 → 0.14.34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/src/plugins/alphafi/positionsFetcher.js +1 -1
  4. package/src/plugins/alphafi/positionsFetcher.js.map +1 -1
  5. package/src/plugins/cetus/vaultsJob.js +1 -0
  6. package/src/plugins/cetus/vaultsJob.js.map +1 -1
  7. package/src/plugins/elixir/positionsFetcher.js +29 -51
  8. package/src/plugins/elixir/positionsFetcher.js.map +1 -1
  9. package/src/plugins/flash/helpers.d.ts +1 -1
  10. package/src/plugins/flash/helpers.js +2 -2
  11. package/src/plugins/flash/helpers.js.map +1 -1
  12. package/src/plugins/flash/poolJob.js +25 -5
  13. package/src/plugins/flash/poolJob.js.map +1 -1
  14. package/src/plugins/flash/structs.d.ts +4 -0
  15. package/src/plugins/flash/structs.js +4 -0
  16. package/src/plugins/flash/structs.js.map +1 -1
  17. package/src/plugins/flash/types.d.ts +1 -0
  18. package/src/plugins/haedal/vaultFetcher.js +1 -2
  19. package/src/plugins/haedal/vaultFetcher.js.map +1 -1
  20. package/src/plugins/kai/vaultsJob.js +1 -2
  21. package/src/plugins/kai/vaultsJob.js.map +1 -1
  22. package/src/plugins/kriya/vaultsFetcher.js +1 -2
  23. package/src/plugins/kriya/vaultsFetcher.js.map +1 -1
  24. package/src/plugins/metaplex/resizableNftFetcher.js +3 -1
  25. package/src/plugins/metaplex/resizableNftFetcher.js.map +1 -1
  26. package/src/plugins/mole/depositsFetcher.js +1 -1
  27. package/src/plugins/mole/depositsFetcher.js.map +1 -1
  28. package/src/plugins/tensor/airdropPowerUsersFetcher.js +25 -21
  29. package/src/plugins/tensor/airdropPowerUsersFetcher.js.map +1 -1
  30. package/src/plugins/tensor/constants.d.ts +1 -3
  31. package/src/plugins/tensor/constants.js +2 -4
  32. package/src/plugins/tensor/constants.js.map +1 -1
  33. package/src/plugins/tensor/filters.d.ts +1 -1
  34. package/src/plugins/tensor/filters.js +5 -5
  35. package/src/plugins/tensor/filters.js.map +1 -1
  36. package/src/plugins/tensor/helpers.d.ts +1 -1
  37. package/src/plugins/tensor/helpers.js +4 -7
  38. package/src/plugins/tensor/helpers.js.map +1 -1
  39. package/src/plugins/tensor/sharedEscrowFetcher.js +14 -18
  40. package/src/plugins/tensor/sharedEscrowFetcher.js.map +1 -1
  41. package/src/plugins/tensor/struct.d.ts +5 -0
  42. package/src/plugins/tensor/struct.js +5 -1
  43. package/src/plugins/tensor/struct.js.map +1 -1
  44. package/src/plugins/thala/farmingPoolsFetcher.js +14 -50
  45. package/src/plugins/thala/farmingPoolsFetcher.js.map +1 -1
  46. package/src/plugins/tokens/fetchers/sui.js +3 -3
  47. package/src/plugins/tokens/fetchers/sui.js.map +1 -1
  48. package/src/plugins/tokens/helpers.d.ts +3 -2
  49. package/src/plugins/tokens/helpers.js +5 -4
  50. package/src/plugins/tokens/helpers.js.map +1 -1
  51. package/src/plugins/turbos/clmmVaultFetcher.js +1 -2
  52. package/src/plugins/turbos/clmmVaultFetcher.js.map +1 -1
  53. package/src/plugins/typus/safuFetcher.js +2 -2
  54. package/src/plugins/typus/safuFetcher.js.map +1 -1
  55. package/src/plugins/typus/vaultsFetcher.js +1 -1
  56. package/src/plugins/typus/vaultsFetcher.js.map +1 -1
  57. package/src/utils/elementbuilder/AssetBuilder.d.ts +2 -1
  58. package/src/utils/elementbuilder/AssetBuilder.js +14 -2
  59. package/src/utils/elementbuilder/AssetBuilder.js.map +1 -1
  60. package/src/utils/elementbuilder/ElementLiquidityBuilder.d.ts +2 -1
  61. package/src/utils/elementbuilder/ElementLiquidityBuilder.js +2 -2
  62. package/src/utils/elementbuilder/ElementLiquidityBuilder.js.map +1 -1
  63. package/src/utils/elementbuilder/LiquidityBuilder.d.ts +3 -1
  64. package/src/utils/elementbuilder/LiquidityBuilder.js +5 -2
  65. package/src/utils/elementbuilder/LiquidityBuilder.js.map +1 -1
  66. package/src/utils/elementbuilder/LiquidityParams.d.ts +3 -0
  67. package/src/utils/elementbuilder/LiquidityParams.js +3 -0
  68. package/src/utils/elementbuilder/LiquidityParams.js.map +1 -0
  69. package/src/plugins/elixir/helpers.d.ts +0 -2
  70. package/src/plugins/elixir/helpers.js +0 -40
  71. package/src/plugins/elixir/helpers.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.14.34](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.33...plugins-0.14.34) (2024-11-19)
6
+
7
+
8
+
9
+ ## [0.14.33](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.32...plugins-0.14.33) (2024-11-15)
10
+
11
+
12
+
5
13
  ## [0.14.32](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.31...plugins-0.14.32) (2024-11-14)
6
14
 
7
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.14.32",
3
+ "version": "0.14.34",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
@@ -125,7 +125,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
125
125
  platformId: constants_1.platformId,
126
126
  name: 'Alpha Vault',
127
127
  value: (0, portfolio_core_1.getUsdValueSum)(alphaAssets.map((a) => a.value)),
128
- label: 'Deposit',
128
+ label: 'Vault',
129
129
  data: { assets: alphaAssets },
130
130
  });
131
131
  if (naviAssets.length !== 0)
@@ -1 +1 @@
1
- {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/alphafi/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AAErC,2CAKqB;AAErB,qEAAkE;AAClE,iDAAmD;AAEnD,qGAA6E;AAE7E,MAAM,aAAa,GAAG,SAAA,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AAO,CAAC"}
1
+ {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/alphafi/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AAErC,2CAKqB;AAErB,qEAAkE;AAClE,iDAAmD;AAEnD,qGAA6E;AAE7E,MAAM,aAAa,GAAG,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC;AAE9B,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,CAAC,QAAQ,EAAE,cAAc,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACnD,IAAA,iCAAe,EAAU,MAAM,EAAE,KAAK,EAAE;YACtC,MAAM,EAAE;gBACN,QAAQ,EAAE,wBAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;oBACjC,UAAU,EAAE,CAAC;iBACd,CAAC,CAAC;aACJ;SACF,CAAC;QACF,KAAK,CAAC,OAAO,CAAkB,6BAAiB,EAAE;YAChD,MAAM,EAAE,sBAAU;YAClB,SAAS,EAAE,0BAAS,CAAC,GAAG;SACzB,CAAC;KACH,CAAC,CAAC;IAEH,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,cAAc;QAAE,OAAO,EAAE,CAAC;IAExD,MAAM,iBAAiB,GAA+B,IAAI,GAAG,EAAE,CAAC;IAChE,cAAc,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAC9B,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,CAC9C,CAAC;IAEF,MAAM,KAAK,GAAgB,IAAI,GAAG,EAAE,CAAC;IACrC,cAAc,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE;QAC5B,KAAK,CAAC,GAAG,CAAC,EAAE,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AAI,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE;SAC7B,CAAC,CAAC;IAEL,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -88,6 +88,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
88
88
  price: underlyings.reduce((acc, u) => u.price * u.amountPerLp + acc, 0),
89
89
  underlyings,
90
90
  timestamp: Date.now(),
91
+ label: 'Vault',
91
92
  });
92
93
  }
93
94
  yield cache.setTokenPriceSources(tokenPriceSources);
@@ -1 +1 @@
1
- {"version":3,"file":"vaultsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/vaultsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,gEAAqC;AAGrC,iDAAmD;AACnD,2CAA2E;AAC3E,uCAAqD;AAErD,qEAAkE;AAClE,mFAAgF;AAChF,wFAAyF;AACzF,+DAA4D;AAE5D,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;;IACnD,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,mBAAmB,GAAG,MAAM,IAAA,+CAAsB,EACtD,MAAM,EACN,2BAAe,CAChB,CAAC;IAEF,MAAM,MAAM,GAAG,MAAM,IAAA,iCAAe,EAClC,MAAM,EACN,mBAAmB;SAChB,GAAG,CACF,CAAC,kBAAkB,EAAE,EAAE,eAAC,OAAA,MAAA,MAAA,kBAAkB,CAAC,IAAI,0CAAE,OAAO,0CAAE,MAAM,CAAC,IAAI,CAAA,EAAA,CACtE;SACA,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAa,CACzC,CAAC;IAEF,MAAM,KAAK,G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AU,EAAV,sBAAU;YACV,QAAQ,EAAE,YAAY,CAAC,QAAQ;YAC/B,KAAK,EAAE,WAAW,CAAC,MAAM,CACvB,CAAC,GAAW,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,WAAW,GAAG,GAAG,EACjD,CAAC,CACF;YACD,WAAW;YACX,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;SACtB,CAAC,CAAC;IACL,CAAC;IAED,MAAM,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AACtD,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"vaultsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/vaultsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AAGrC,iDAAmD;AACnD,2CAA2E;AAC3E,uCAAqD;AAErD,qEAAkE;AAClE,mFAAgF;AAChF,wFAAyF;AACzF,+DAA4D;AAE5D,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;;IACnD,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,mBAAmB,GAAG,MAAM,IAAA,+CAAsB,EACtD,MAAM,EACN,2BAAe,CAChB,CAAC;IAEF,MAAM,MAAM,GAAG,MAAM,IAAA,iCAAe,EAClC,MAAM,EACN,mBAAmB;SAChB,GAAG,CACF,CAAC,kBAAkB,EAAE,EAAE,eAAC,OAAA,MAAA,MAAA,kBAAkB,CAAC,IAAI,0CAAE,OAAO,0CAAE,MAAM,CAAC,IAAI,CAAA,EAAA,CACtE;SACA,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAa,CACzC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0BAAS,CAAC,GAAG;YACxB,UAAU,EAAV,sBAAU;YACV,QAAQ,EAAE,YAAY,CAAC,QAAQ;YAC/B,KAAK,EAAE,WAAW,CAAC,MAAM,CACvB,CAAC,GAAW,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,WAAW,GAAG,GAAG,EACjD,CAAC,CACF;YACD,WAAW;YACX,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;YACrB,KAAK,EAAE,OAAO;SACf,CAAC,CAAC;IACL,CAAC;IAED,MAAM,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AACtD,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -13,11 +13,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
16
17
  const constants_1 = require("./constants");
17
18
  const clients_1 = require("../../utils/clients");
18
19
  const getDynamicFieldObject_1 = require("../../utils/sui/getDynamicFieldObject");
19
- const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
20
- const helpers_1 = require("./helpers");
20
+ const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
21
21
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
22
22
  const client = (0, clients_1.getClientSui)();
23
23
  const [vaultObjects, vaultTvls] = yield Promise.all([
@@ -69,24 +69,17 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
69
69
  coinType: coinType[0].type,
70
70
  };
71
71
  }))).then((dfs) => dfs.filter((df) => df !== null));
72
- const coinsTypes = [];
73
- activeShares.forEach((a) => {
74
- if (a &&
75
- a.coinType &&
76
- !coinsTypes.includes((0, portfolio_core_1.formatMoveTokenAddress)(a.coinType)))
77
- coinsTypes.push((0, portfolio_core_1.formatMoveTokenAddress)(a.coinType));
78
- });
79
- const tokenPrices = yield cache.getTokenPricesAsMap(coinsTypes, portfolio_core_1.NetworkId.sui);
80
- const elements = [];
72
+ const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.sui, constants_1.platformId);
81
73
  activeShares.forEach((a) => {
82
74
  var _a;
83
- const assets = [];
84
75
  if (!a)
85
76
  return;
86
- const tokenPrice = tokenPrices.get((0, portfolio_core_1.formatMoveTokenAddress)(a.coinType));
87
- if (!tokenPrice)
88
- return;
89
- const yields = [];
77
+ const element = elementRegistry.addElementLiquidity({
78
+ label: 'LiquidityPool',
79
+ });
80
+ const liquidity = element.addLiquidity({
81
+ name: (_a = constants_1.vaults.find((v) => v.address === a.vault)) === null || _a === void 0 ? void 0 : _a.vaultName,
82
+ });
90
83
  if (a.shares) {
91
84
  let tvl;
92
85
  vaultTvls.forEach((t) => {
@@ -95,50 +88,35 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
95
88
  }
96
89
  });
97
90
  if (tvl) {
98
- const userActiveAmounts = (0, helpers_1.formatAndCleanBigInt)(((0, helpers_1.convertDecimalStringToScaledBigInt)(a.shares, 6) *
99
- BigInt(tvl.USDC.amount_wei)) /
100
- BigInt(a.total_shares), 18);
101
- if (Number(userActiveAmounts) > 0) {
102
- assets.push((0, tokenPriceToAssetToken_1.default)(a.coinType, Number(userActiveAmounts) / Math.pow(10, tokenPrice.decimals), portfolio_core_1.NetworkId.sui, tokenPrice));
103
- yields.push((0, portfolio_core_1.yieldFromApy)(Number(tvl.pool_apy) / 100));
91
+ const userActiveAmounts = new bignumber_js_1.default(a.shares)
92
+ .multipliedBy(new bignumber_js_1.default(tvl.USDC.amount_wei).dividedBy(Math.pow(10, 27)))
93
+ .dividedBy(a.total_shares);
94
+ if (userActiveAmounts.gt(0)) {
95
+ liquidity.addAsset({
96
+ address: a.coinType,
97
+ amount: userActiveAmounts,
98
+ alreadyShifted: true,
99
+ });
100
+ liquidity.addYield((0, portfolio_core_1.yieldFromApy)(Number(tvl.pool_apy) / 100));
104
101
  }
105
102
  }
106
103
  }
107
- const pendingAmount = a.pending
108
- ? Number(a.pending) / Math.pow(10, tokenPrice.decimals)
109
- : undefined;
104
+ const pendingAmount = a.pending ? Number(a.pending) : undefined;
110
105
  if (pendingAmount) {
111
- assets.push((0, tokenPriceToAssetToken_1.default)(a.coinType, pendingAmount, portfolio_core_1.NetworkId.sui, tokenPrice, undefined, { isClaimable: true }));
112
- yields.push({
106
+ liquidity.addAsset({
107
+ address: a.coinType,
108
+ amount: pendingAmount,
109
+ attributes: {
110
+ isClaimable: true,
111
+ },
112
+ });
113
+ liquidity.addYield({
113
114
  apr: 0,
114
115
  apy: 0,
115
116
  });
116
117
  }
117
- const assetsValue = (0, portfolio_core_1.getUsdValueSum)(assets.map((as) => as.value));
118
- const value = assetsValue;
119
- if (assets.length > 0) {
120
- const liquidities = [
121
- {
122
- value,
123
- assets,
124
- assetsValue,
125
- rewardAssets: [],
126
- rewardAssetsValue: null,
127
- yields,
128
- name: (_a = constants_1.vaults.find((v) => v.address === a.vault)) === null || _a === void 0 ? void 0 : _a.vaultName,
129
- },
130
- ];
131
- elements.push({
132
- type: 'liquidity',
133
- data: { liquidities },
134
- label: 'LiquidityPool',
135
- networkId: portfolio_core_1.NetworkId.sui,
136
- platformId: constants_1.platformId,
137
- value: (0, portfolio_core_1.getUsdValueSum)(liquidities.map((liq) => liq.value)),
138
- });
139
- }
140
118
  });
141
- return elements;
119
+ return elementRegistry.getElements(cache);
142
120
  });
143
121
  const fetcher = {
144
122
  id: `${constants_1.platformId}-positions`,
@@ -1 +1 @@
1
- {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/elixir/positionsFetcher.ts"],"names":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BACE,KAAK;oBACL,MAAM;oBACN,WAAW;oBACX,YAAY,EAAE,EAAE;oBAChB,iBAAiB,EAAE,IAAI;oBACvB,MAAM;oBACN,IAAI,EAAE,MAAA,kBAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,KAAK,CAAC,0CAAE,SAAS;iBAC3D;aACF,CAAC;YAEF,QAAQ,CAAC,IAAI,CAAC;gBACZ,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,EAAE,WAAW,EAAE;gBACrB,KAAK,EAAE,eAAe;gBACtB,SAAS,EAAE,0BAAS,CAAC,GAAG;gBACxB,UAAU,EAAV,sBAAU;gBACV,KAAK,EAAE,IAAA,+BAAc,EAAC,WAAW,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;aAC3D,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/elixir/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,gEAAqC;AAGrC,2CAMqB;AAErB,iDAAmD;AACnD,iFAA8E;AAE9E,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,CAAC,YAAY,EAAE,SAAS,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAClD,KAAK,CAA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QAAQ,CAAC;gBACjB,OAAO,EAAE,CAAC,CAAC,QAAQ;gBACnB,MAAM,EAAE,aAAa;gBACrB,UAAU,EAAE;oBACV,WAAW,EAAE,IAAI;iBAClB;aACF,CAAC,CAAC;YACH,SAAS,CAAC,QAAQ,CAAC;gBACjB,GAAG,EAAE,CAAC;gBACN,GAAG,EAAE,CAAC;aACP,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -3,4 +3,4 @@ import { SolanaClient } from '../../utils/clients/types';
3
3
  import { FLPool } from './structs';
4
4
  import { ParsedAccount } from '../../utils/solana';
5
5
  export declare function getPdas(owner: string): PublicKey[];
6
- export declare function getLpTokenPrice(connection: SolanaClient, pool: ParsedAccount<FLPool>, oracles: string[]): Promise<number | null>;
6
+ export declare function getLpTokenPrice(connection: SolanaClient, pool: ParsedAccount<FLPool>, oracles: string[], method: 'getCompoundingTokenPrice' | 'getLpTokenPrice'): Promise<number | null>;
@@ -26,7 +26,7 @@ function getPdas(owner) {
26
26
  ], constants_1.flashPid)[0]);
27
27
  }
28
28
  exports.getPdas = getPdas;
29
- function getLpTokenPrice(connection, pool, oracles) {
29
+ function getLpTokenPrice(connection, pool, oracles, method) {
30
30
  var _a;
31
31
  return __awaiter(this, void 0, void 0, function* () {
32
32
  const keys = [
@@ -66,7 +66,7 @@ function getLpTokenPrice(connection, pool, oracles) {
66
66
  isWritable: false,
67
67
  })),
68
68
  ];
69
- const data = Buffer.concat([(0, anchorSighash_1.anchorSighash)('global', 'getLpTokenPrice')]);
69
+ const data = Buffer.concat([(0, anchorSighash_1.anchorSighash)('global', method)]);
70
70
  const recentBlockhash = (yield connection.getLatestBlockhash()).blockhash;
71
71
  const prefixResponse = yield axios_1.default.get(`https://api.prod.flash.trade/backup-oracle/prices?poolAddress=${pool.pubkey.toString()}`);
72
72
  if (!prefixResponse.data)
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAOyB;AACzB,kDAA6C;AAC7C,2CAAoE;AAEpE,oEAAiE;AAEjE,+CAK4B;AAG5B,SAAgB,OAAO,CAAC,KAAa;IACnC,OAAO,sBAAU,CAAC,GAAG,CACnB,CAAC,GAAG,EAAE,EAAE,CACN,mBAAS,CAAC,sBAAsB,CAC9B;QACE,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC;QAC5B,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;QAC/B,GAAG,CAAC,QAAQ,EAAE;KACf,EACD,oBAAQ,CACT,CAAC,CAAC,CAAC,CACP,CAAC;AACJ,CAAC;AAZD,0BAYC;AAED,SAAsB,eAAe,CACnC,UAAwB,EACxB,IAA2B,EAC3B,OAAiB;;;QAEjB,MAAM,IAAI,GAAkB;YAC1B;gBACE,MAAM,EAAE,2BAAe;gBACvB,QAAQ,EAAE,KAAK;gBACf,UAAU,EAAE,KAAK;aAClB;YACD;gBACE,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,QAAQ,EAAE,KAAK;gBACf,UAAU,EAAE,KAAK;aAClB;YACD;gBACE,MAAM,EAAE,IAAI,CAAC,OAAO;gBACpB,QAAQ,EAAE,KAAK;gBACf,UAAU,EAAE,KAAK;aAClB;YACD;gBACE,MAAM,EAAE,oCAA0B;gBAClC,QAAQ,EAAE,KAAK;gBACf,UAAU,EAAE,KAAK;aAClB;YACD,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAA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CAAC,UAAU,0CAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QAC5E,IAAI,YAAY;YACd,OAAO,YAAG;iBACP,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;iBAC5C,GAAG,CAAC,SAAA,EAAE,EAAI,2BAAkB,CAAA,CAAC;iBAC7B,QAAQ,EAAE,CAAC;QAEhB,OAAO,IAAI,CAAC;;CACb;AAxFD,0CAwFC"}
@@ -33,16 +33,35 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
33
33
  const pool = poolsAccounts[i];
34
34
  if (!pool)
35
35
  continue;
36
- const lpPrice = yield (0, helpers_1.getLpTokenPrice)(client, pool, pool.custodies.map((c) => { var _a; return ((_a = custodyAccounts.get(c.toString())) === null || _a === void 0 ? void 0 : _a.oracle.customOracleAccount) || ''; }));
37
- const decimals = yield (0, getDecimals_1.getDecimals)(client, pool.flpMint);
38
- if (decimals && lpPrice) {
36
+ const [stakedLpPrice, compoundingLpPrice] = yield Promise.all([
37
+ (0, helpers_1.getLpTokenPrice)(client, pool, pool.custodies.map((c) => { var _a; return ((_a = custodyAccounts.get(c.toString())) === null || _a === void 0 ? void 0 : _a.oracle.customOracleAccount) || ''; }), 'getLpTokenPrice'),
38
+ (0, helpers_1.getLpTokenPrice)(client, pool, pool.custodies.map((c) => { var _a; return ((_a = custodyAccounts.get(c.toString())) === null || _a === void 0 ? void 0 : _a.oracle.customOracleAccount) || ''; }), 'getCompoundingTokenPrice'),
39
+ ]);
40
+ const [stakedDecimals, compoundingDecimals] = yield Promise.all([
41
+ (0, getDecimals_1.getDecimals)(client, pool.flpMint),
42
+ (0, getDecimals_1.getDecimals)(client, pool.compoundingMint),
43
+ ]);
44
+ if (stakedDecimals && stakedLpPrice) {
39
45
  yield cache.setTokenPriceSource({
40
46
  address: pool.flpMint.toString(),
41
- decimals,
47
+ decimals: stakedDecimals,
42
48
  id: constants_1.poolsPkeys[i].toString(),
43
49
  networkId: portfolio_core_1.NetworkId.solana,
44
50
  platformId: constants_2.walletTokensPlatform.id,
45
- price: lpPrice,
51
+ price: stakedLpPrice,
52
+ timestamp: Date.now(),
53
+ weight: 1,
54
+ elementName: (0, solana_1.u8ArrayToString)(pool.name),
55
+ });
56
+ }
57
+ if (compoundingDecimals && compoundingLpPrice) {
58
+ yield cache.setTokenPriceSource({
59
+ address: pool.compoundingMint.toString(),
60
+ decimals: compoundingDecimals,
61
+ id: constants_1.poolsPkeys[i].toString(),
62
+ networkId: portfolio_core_1.NetworkId.solana,
63
+ platformId: constants_2.walletTokensPlatform.id,
64
+ price: compoundingLpPrice,
46
65
  timestamp: Date.now(),
47
66
  weight: 1,
48
67
  elementName: (0, solana_1.u8ArrayToString)(pool.name),
@@ -58,6 +77,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
58
77
  continue;
59
78
  poolsInfo.push({
60
79
  flpMint: pool.flpMint.toString(),
80
+ compoundingMint: pool.compoundingMint.toString(),
61
81
  pkey: constants_1.poolsPkeys[i].toString(),
62
82
  rewardPerLp,
63
83
  });
@@ -1 +1 @@
1
- {"version":3,"file":"poolJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/poolJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,iDAAsD;AACtD,2CAA6E;AAC7E,uCAAyC;AACzC,+CAI4B;AAC5B,mDAA2D;AAE3D,uCAA4C;AAC5C,gEAA6D;AAE7D,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,aAAa,GAAG,MAAM,IAAA,sCAA6B,EACvD,MAAM,EACN,sBAAY,EACZ,sBAAU,CACX,CAAC;IACF,MAAM,aAAa,GAAG,MAAM,KAAK,CAAC,OAAO,CAAgB,wBAAY,EAAE;QACrE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE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BAAkB;gBACzB,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;gBACrB,MAAM,EAAE,CAAC;gBACT,WAAW,EAAE,IAAA,wBAAe,EAAC,IAAI,CAAC,IAAI,CAAC;aACxC,CAAC,CAAC;QACL,CAAC;QAED,IAAI,WAA+B,CAAC;QACpC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE;YACrC,MAAM,OAAO,GAAG,eAAe,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC5D,IAAI,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,MAAK,uBAAc;gBAClC,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;QAC9D,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,WAAW;YAAE,SAAS;QAE3B,SAAS,CAAC,IAAI,CAAC;YACb,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE;YAChC,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE;YAChD,IAAI,EAAE,sBAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;YAC9B,WAAW;SACZ,CAAC,CAAC;IACL,CAAC;IAED,MAAM,KAAK,CAAC,OAAO,CAAC,oBAAQ,EAAE,SAAS,EAAE;QACvC,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,QAAQ;IACR,KAAK,EAAE,UAAU;CAClB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -231,5 +231,9 @@ export type FLPool = {
231
231
  flpMintBump: number;
232
232
  flpTokenAccountBump: number;
233
233
  vpVolumeFactor: number;
234
+ padding: number[];
235
+ stakingFeeBoostBps: BigNumber[];
236
+ compoundingMint: PublicKey;
237
+ compoundingLpVault: PublicKey;
234
238
  };
235
239
  export declare const flPoolStruct: FixableBeetStruct<FLPool, Partial<FLPool>>;
@@ -215,5 +215,9 @@ exports.flPoolStruct = new beet_1.FixableBeetStruct([
215
215
  ['flpMintBump', beet_1.u8],
216
216
  ['flpTokenAccountBump', beet_1.u8],
217
217
  ['vpVolumeFactor', beet_1.u8],
218
+ ['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 4)],
219
+ ['stakingFeeBoostBps', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 6)],
220
+ ['compoundingMint', beet_solana_1.publicKey],
221
+ ['compoundingLpVault', beet_solana_1.publicKey],
218
222
  ], (args) => args);
219
223
  //# sourceMappingURL=structs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/structs.ts"],"names":[],"mappings":";;;AAAA,oDAOmC;AAGnC,kEAA6D;AAC7D,+CAA0D;AAY7C,QAAA,kBAAkB,GAAG,IAAI,iBAAU,CAC9C;IACE,CAAC,eAAe,EAAE,uBAAS,CAAC;IAC5B,CAAC,qBAAqB,EAAE,uBAAS,CAAC;IAClC,CAAC,YAAY,EAAE,SAAE,CAAC;IAClB,CAAC,kBAAkB,EAAE,YAAG,CAAC;IACzB,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,gBAAgB,EAAE,YAAG,CAAC;CACxB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAoB,CAC/B,CAAC;AAgBW,QAAA,mBAAmB,GAAG,IAAI,iBAAU,CAC/C;IACE,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,kBAAkB,EAAE,YAAG,CAAC;IACzB,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,oBAAoB,EAAE,YAAG,CAAC;IAC3B,CAAC,oBAAoB,EAAE,YAAG,CAAC;IAC3B,CAAC,aAAa,EAAE,YA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AAC,IAAI,EAAE,EAAE,CAAC,IAAc,CACzB,CAAC"}
@@ -102,6 +102,7 @@ export type PoolInfo = {
102
102
  pkey: string;
103
103
  flpMint: string;
104
104
  rewardPerLp: number;
105
+ compoundingMint: string;
105
106
  };
106
107
  export type Prefix = {
107
108
  keys: any[];
@@ -38,14 +38,13 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
38
38
  return [
39
39
  {
40
40
  type: 'multiple',
41
- label: 'Deposit',
41
+ label: 'Vault',
42
42
  platformId: constants_1.platformId,
43
43
  networkId: portfolio_core_1.NetworkId.sui,
44
44
  data: {
45
45
  assets: [asset],
46
46
  },
47
47
  value: asset.value,
48
- name: 'Random Vault',
49
48
  },
50
49
  ];
51
50
  });
@@ -1 +1 @@
1
- {"version":3,"file":"vaultFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/haedal/vaultFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,gEAAqC;AAGrC,2CAA0D;AAC1D,iDAAmD;AACnD,2FAAwF;AAExF,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,IAAI,GAAG,MAAM,IAAA,uDAA0B,EAC3C,MAAM,EACN,2BAAe,CAChB,CAAC;IACF,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAC3B,CAAC,MAAM,EAAE,EAAE,eAAC,OAAA,CAAA,MAAA,MAAA,MAAM,CAAC,IAAI,0CAAE,OAAO,0CAAE,MAAM,CAAC,IAAI,MAAK,KAAK,CAAA,EAAA,CACxD,CAAC;IACF,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEtC,MAAM,WAAW,GAAG,MAAA,MAAA,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,0CAAE,OAAO,0CAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;IACpE,IAAI,CAAC,WAAW;QAAE,OAAO,EAAE,CAAC;IAE5B,MAAM,MAAM,GAAG,IAAI,sBAAS,CAAC,WAAW,CAAC,YAAY,CAAC;SACnD,KAAK,CAAC,IAAI,sBAAS,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;SACnD,SAAS,CAAC,SAAA,EAAE,EAAI,kCAAiB,CAAA,CAAC,CAAC;IACtC,IAAI,MAAM,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,CAAC;IAE/B,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,iCAAgB,EAAE,0BAAS,CAAC,GAAG,CAAC,CAAC;IAC9E,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,iCAAgB,EAChB,MAAM,CAAC,QAAQ,EAAE,EACjB,0BAAS,CAAC,GAAG,EACb,UAAU,CACX,CAAC;IAEF,OAAO;QACL;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,SAAS;YAChB,UAAU,EAAV,sBAAU;YACV,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,IAAI,EAAE;gBACJ,MAAM,EAAE,CAAC,KAAK,CAAC;aAChB;YACD,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,IAAI,EAAE,cAAc;SACrB;KACF,CAAC;AACJ,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":"vaultFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/haedal/vaultFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,gEAAqC;AAGrC,2CAA0D;AAC1D,iDAAmD;AACnD,2FAAwF;AAExF,qGAA6E;AAE7E,MA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CAAC,GAAG;YACxB,IAAI,EAAE;gBACJ,MAAM,EAAE,CAAC,KAAK,CAAC;aAChB;YACD,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB;KACF,CAAC;AACJ,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"}
@@ -53,9 +53,8 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
53
53
  tokenPrice,
54
54
  },
55
55
  ],
56
- elementName: 'Vaults',
57
56
  });
58
- yield cache.setTokenPriceSources(lpSource);
57
+ yield cache.setTokenPriceSources(lpSource.map((source) => (Object.assign(Object.assign({}, source), { label: 'Vault' }))));
59
58
  }
60
59
  });
61
60
  const job = {
@@ -1 +1 @@
1
- {"version":3,"file":"vaultsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kai/vaultsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,+DAA2E;AAG3E,2CAAqD;AACrD,iDAAmD;AACnD,qEAAkE;AAElE,8EAA2E;AAE3E,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;;IACnD,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAC9B,MAAM,OAAO,GAAG,MAAM,IAAA,iCAAe,EACnC,MAAM,EACN,sBAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAC5B,CAAC;IAEF,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,mBAAmB,CACjD,sBAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,EAC9B,0BAAS,CAAC,GAAG,CACd,CAAC;IAEF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,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AC,CAAC,MAAM,EAAE,EAAE,CAAC,iCAAM,MAAM,KAAE,KAAK,EAAE,OAAO,IAAG,CAAC,CAC1D,CAAC;IACJ,CAAC;AACH,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -43,8 +43,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
43
43
  vaultsPositionInfo.forEach((vault) => vaultsByFarmId.set(vault.farmId, vault));
44
44
  const registry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.sui, constants_1.platformId);
45
45
  const liquidities = registry.addElementLiquidity({
46
- name: 'Vaults',
47
- label: 'LiquidityPool',
46
+ label: 'Vault',
48
47
  });
49
48
  for (let i = 0; i < vaultsOldBalances.length; i++) {
50
49
  const liquidity = liquidities.addLiquidity();
@@ -1 +1 @@
1
- {"version":3,"file":"vaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/vaultsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAGrC,2CAKqB;AACrB,iDAAmD;AACnD,6EAA0E;AAE1E,wFAAyF;AACzF,gFAA6E;AAC7E,qEAAkE;AAClE,kEAA+D;AAG/D,MAAM,sBAAsB,GAAG,IAAI,6BAAa,CAC9C,yBAAa,EACb;IACE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,GAAG;CACzB,CACF,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,CAAC,iBAAiB,EAAE,aAAa,EAAE,kBAAkB,CAAC,GAC1D,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,IAAA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AAY;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,+DAAuD;AACvD,gEAAqC;AAGrC,2CAKqB;AACrB,iDAAmD;AACnD,6EAA0E;AAE1E,wFAAyF;AACzF,gFAA6E;AAC7E,qEAAkE;AAClE,kEAA+D;AAG/D,MAAM,sBAAsB,GAAG,IAAI,6BAAa,CAC9C,yBAAa,EACb;IACE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,GAAG;CACzB,CACF,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,CAAC,iBAAiB,EAAE,aAAa,EAAE,kBAAkB,CAAC,GAC1D,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,IAAA,yCAAmB,EACjB,MAAM,EACN,KAAK,EACL,sBAAU,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAC3C;QACD,IAAA,iCAAe,EAAe,MAAM,EAAE,KAAK,EAAE;YAC3C,MAAM,EAAE,EAAE,UAAU,EAAE,6BAAiB,EAAE;SAC1C,CAAC;QACF,sBAAsB,CAAC,OAAO,CAAC,KAAK,CAAC;KACtC,CAAC,CAAC;IAEL,IAAI,CAAC,kBAAkB;QAAE,OAAO,EAAE,CAAC;IAEnC,MAAM,gBAAgB,GAAmC,IAAI,GAAG,EAAE,CAAC;IACnE,kBAAkB,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CACnC,gBAAgB,CAAC,GAAG,CAA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AAC,WAAW,CAAC,CAAC;QAEzE,MAAM,OAAO,GAAG,UAAU;YACxB,CAAC,CAAC,IAAI,sBAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;YAC5C,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC/B,MAAM,OAAO,GAAG,UAAU;YACxB,CAAC,CAAC,IAAI,sBAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;YAC5C,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAE/B,SAAS,CAAC,QAAQ,CAAC;YACjB,OAAO,EAAE,KAAK,CAAC,KAAK;YACpB,MAAM,EAAE,OAAO;SAChB,CAAC,CAAC;QACH,SAAS,CAAC,QAAQ,CAAC;YACjB,OAAO,EAAE,KAAK,CAAC,KAAK;YACpB,MAAM,EAAE,OAAO;SAChB,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACrC,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"}
@@ -23,7 +23,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
23
23
  const asset = yield client.getTokenAccountsByOwner(new web3_js_1.PublicKey(owner), {
24
24
  programId: new web3_js_1.PublicKey(solana_1.solanaTokenPid),
25
25
  });
26
- const tokenAccounts = asset.value.map((account) => solana_1.tokenAccountStruct.deserialize(account.account.data)[0]);
26
+ const tokenAccounts = asset.value
27
+ .map((account) => solana_1.tokenAccountStruct.deserialize(account.account.data)[0])
28
+ .filter((tA) => !tA.amount.isZero());
27
29
  const metadataPubkeys = [];
28
30
  const editionPubkeys = [];
29
31
  tokenAccounts.forEach((account) => {
@@ -1 +1 @@
1
- {"version":3,"file":"resizableNftFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/metaplex/resizableNftFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4E;AAC5E,6CAA4C;AAE5C,2CAIqB;AAErB,gFAA6E;AAC7E,iDAAsD;AACtD,+CAAwE;AACxE,uCAAqE;AACrE,gGAA6F;AAE7F,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,IAAI,mBAAS,CAAC,KAAK,CAAC,EAAE;QACvE,SAAS,EAAE,IAAI,mBAAS,CAAC,uBAAc,CAAC;KACzC,CAAC,CAAC;IAEH,MAAM,aAAa,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CACnC,CAAC,OAAO,EAAE,EAAE,CAAC,2BAAkB,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CACrE,CAAC;IAEF,MAAM,eAAe,GAAgB,EAAE,CAAC;IACxC,MAAM,cAAc,GAAgB,EAAE,CAAC;IACvC,aAAa,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAChC,eAAe,CAAC,IAAI,CAAC,IAAA,2BAAiB,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACtD,cAAc,CAAC,IAAI,CAAC,IAAA,+BAAqB,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAC;IAEH,MAAM,CAAC,eAAe,EAAE,gBAAgB,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC5D,IAAA,yDAA2B,EAAC,MAAM,EAAE,cAAc,CAAC;QACnD,IAAA,yDAA2B,EAAC,MAAM,EAAE,eAAe,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;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"resizableNftFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/metaplex/resizableNftFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4E;AAC5E,6CAA4C;AAE5C,2CAIqB;AAErB,gFAA6E;AAC7E,iDAAsD;AACtD,+CAAwE;AACxE,uCAAqE;AACrE,gGAA6F;AAE7F,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,IAAI,mBAAS,CAAC,KAAK,CAAC,EAAE;QACvE,SAAS,EAAE,IAAI,mBAAS,CAAC,uBAAc,CAAC;KACzC,CAAC,CAAC;IAEH,MAAM,aAAa,GAAG,KAAK,CAAC,KAAK;SAC9B,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,2BAAkB,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;SACzE,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IAEvC,MAAM,eAAe,GAAgB,EAAE,CAAC;IACxC,MAAM,cAAc,GAAgB,EAAE,CAAC;IACvC,aAAa,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAChC,eAAe,CAAC,IAAI,CAAC,IAAA,2BAAiB,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACtD,cAAc,CAAC,IAAI,CAAC,IAAA,+BAAqB,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAC;IAEH,MAAM,CAAC,eAAe,EAAE,gBAAgB,CAAC,GAAG,MAAM,OAAO,CAAC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EF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -121,7 +121,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
121
121
  elements.push({
122
122
  type: 'liquidity',
123
123
  data: { liquidities: depositedLiquidities },
124
- label: 'Deposit',
124
+ label: 'Vault',
125
125
  networkId: portfolio_core_1.NetworkId.sui,
126
126
  platformId: constants_1.platformId,
127
127
  value: (0, portfolio_core_1.getUsdValueSum)(depositedLiquidities.map((l) => l.value)),
@@ -1 +1 @@
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,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,KA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AE,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,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,K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