@sonarwatch/portfolio-plugins 0.12.173 → 0.12.174

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/package.json +1 -1
  3. package/src/plugins/adrastea/positionsFetcher.js +1 -1
  4. package/src/plugins/adrastea/positionsFetcher.js.map +1 -1
  5. package/src/plugins/banx/stakingFetcher.js +1 -1
  6. package/src/plugins/banx/stakingFetcher.js.map +1 -1
  7. package/src/plugins/cetus/clmmsFetcher.js +1 -1
  8. package/src/plugins/cetus/clmmsFetcher.js.map +1 -1
  9. package/src/plugins/cetus/dcaFetcher.js +1 -1
  10. package/src/plugins/cetus/dcaFetcher.js.map +1 -1
  11. package/src/plugins/cetus/limitFetcher.js +1 -1
  12. package/src/plugins/cetus/limitFetcher.js.map +1 -1
  13. package/src/plugins/deepbook/ordersFetcher.js +1 -1
  14. package/src/plugins/deepbook/ordersFetcher.js.map +1 -1
  15. package/src/plugins/foo/positionsEthereumFetcher.js +1 -1
  16. package/src/plugins/foo/positionsEthereumFetcher.js.map +1 -1
  17. package/src/plugins/foo/positionsSolanaFetcher.js +1 -1
  18. package/src/plugins/foo/positionsSolanaFetcher.js.map +1 -1
  19. package/src/plugins/foo/positionsSuiFetcher.js +1 -1
  20. package/src/plugins/foo/positionsSuiFetcher.js.map +1 -1
  21. package/src/plugins/francium/lendingFetcher.js +1 -1
  22. package/src/plugins/francium/lendingFetcher.js.map +1 -1
  23. package/src/plugins/kamino/lendsFetcher.js +1 -1
  24. package/src/plugins/kamino/lendsFetcher.js.map +1 -1
  25. package/src/plugins/kriya/farmsFetcher.js +1 -1
  26. package/src/plugins/kriya/farmsFetcher.js.map +1 -1
  27. package/src/plugins/meteora/farmsFetcher.js +1 -1
  28. package/src/plugins/meteora/farmsFetcher.js.map +1 -1
  29. package/src/plugins/nxfinance/positionsFetcher.js +1 -1
  30. package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
  31. package/src/plugins/orca/getWhirlpoolPositions.js +83 -33
  32. package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
  33. package/src/plugins/raydium/farmsFetcher.js +1 -1
  34. package/src/plugins/raydium/farmsFetcher.js.map +1 -1
  35. package/src/utils/elementbuilder/AssetBuilder.d.ts +1 -1
  36. package/src/utils/elementbuilder/AssetBuilder.js +1 -1
  37. package/src/utils/elementbuilder/AssetBuilder.js.map +1 -1
  38. package/src/utils/elementbuilder/ElementBorrowlendBuilder.d.ts +1 -1
  39. package/src/utils/elementbuilder/ElementBorrowlendBuilder.js +5 -5
  40. package/src/utils/elementbuilder/ElementBorrowlendBuilder.js.map +1 -1
  41. package/src/utils/elementbuilder/ElementBuilder.d.ts +1 -1
  42. package/src/utils/elementbuilder/ElementLiquidityBuilder.d.ts +1 -1
  43. package/src/utils/elementbuilder/ElementLiquidityBuilder.js +2 -2
  44. package/src/utils/elementbuilder/ElementLiquidityBuilder.js.map +1 -1
  45. package/src/utils/elementbuilder/ElementMultipleBuilder.d.ts +1 -1
  46. package/src/utils/elementbuilder/ElementMultipleBuilder.js +2 -2
  47. package/src/utils/elementbuilder/ElementMultipleBuilder.js.map +1 -1
  48. package/src/utils/elementbuilder/ElementRegistry.d.ts +1 -1
  49. package/src/utils/elementbuilder/ElementRegistry.js +2 -2
  50. package/src/utils/elementbuilder/ElementRegistry.js.map +1 -1
  51. package/src/utils/elementbuilder/LiquidityBuilder.d.ts +1 -1
  52. package/src/utils/elementbuilder/LiquidityBuilder.js +3 -3
  53. package/src/utils/elementbuilder/LiquidityBuilder.js.map +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.12.174](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.173...plugins-0.12.174) (2024-10-01)
6
+
7
+
8
+
5
9
  ## [0.12.173](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.172...plugins-0.12.173) (2024-10-01)
6
10
 
7
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.12.173",
3
+ "version": "0.12.174",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
@@ -50,7 +50,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
50
50
  amount: usdcPosition.amount,
51
51
  });
52
52
  }
53
- return elementRegistry.dump(cache);
53
+ return elementRegistry.getElements(cache);
54
54
  });
55
55
  const fetcher = {
56
56
  id: `${constants_1.platformId}-positions`,
@@ -1 +1 @@
1
- {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/adrastea/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAKqB;AAErB,kEAA+D;AAE/D,gFAA6E;AAC7E,+CAAoD;AAEpD,MAAM,gBAAgB,GAAG,IAAI,6BAAa,CAAa,gCAAoB,EAAE;IAC3E,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CAAC,CAAC;AACH,MAAM,iBAAiB,GAAG,IAAI,6BAAa,CAAa,iCAAqB,EAAE;IAC7E,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACtD,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC;QAC/B,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC;KACjC,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;IAChE,MAAM,YAAY,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;IAElE,IAAI,CAAC,WAAW,IAAI,CAAC,YAAY;QAAE,OAAO,EAAE,CAAC;IAE7C,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAE1E,IAAI,WAAW,EAAE,CAAC;QAChB,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;YACjD,KAAK,EAAE,UAAU;SAClB,CAAC,CAAC;QACH,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,oBAAQ,CAAC,QAAQ,EAAE;YAC5B,MAAM,EAAE,WAAW,CAAC,MAAM;SAC3B,CAAC,CAAC;IACL,CAAC;IAED,IAAI,YAAY,EAAE,CAAC;QACjB,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;YACjD,KAAK,EAAE,SAAS;SACjB,CAAC,CAAC;QACH,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,uBAAc,CAAC,QAAQ,EAAE;YAClC,MAAM,EAAE,YAAY,CAAC,MAAM;SAC5B,CAAC,CAAC;IACL,CAAC;IAED,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/adrastea/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAKqB;AAErB,kEAA+D;AAE/D,gFAA6E;AAC7E,+CAAoD;AAEpD,MAAM,gBAAgB,GA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CAAC,kBAAkB,CAAC;YACjD,KAAK,EAAE,SAAS;SACjB,CAAC,CAAC;QACH,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,uBAAc,CAAC,QAAQ,EAAE;YAClC,MAAM,EAAE,YAAY,CAAC,MAAM;SAC5B,CAAC,CAAC;IACL,CAAC;IAED,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,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -44,7 +44,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
44
44
  amount,
45
45
  alreadyShifted: true,
46
46
  });
47
- return elementRegistry.dump(cache);
47
+ return elementRegistry.getElements(cache);
48
48
  });
49
49
  const fetcher = {
50
50
  id: `${constants_1.platformId}-staking`,
@@ -1 +1 @@
1
- {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAGrC,2CAA0E;AAC1E,+CAA8D;AAC9D,uCAAsE;AACtE,uCAAyC;AACzC,iDAAsD;AACtD,gFAA6E;AAE7E,MAAM,UAAU,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,wBAAY,CAAA,CAAC,CAAC;AAErD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,8BAAoB,EACpB,mBAAO,EACP,IAAA,sBAAY,EAAC,KAAK,CAAC,CACpB,CAAC;IAEF,MAAM,OAAO,GA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EAAE,IAAI;KACrB,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -60,7 +60,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
60
60
  // });
61
61
  // if (poolsById.size === 0) return [];
62
62
  const mints = [];
63
- const poolsObjects = yield (0, multiGetObjects_1.multiGetObjects)(client, poolsIds);
63
+ const poolsObjects = yield (0, multiGetObjects_1.multiGetObjects)(client, [...new Set(poolsIds)]);
64
64
  poolsObjects.forEach((poolObj) => {
65
65
  var _a, _b;
66
66
  if ((_b = (_a = poolObj.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields) {
@@ -1 +1 @@
1
- {"version":3,"file":"clmmsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/clmmsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,gEAAqC;AAGrC,2CAAsE;AACtE,iDAAmD;AACnD,uCAImB;AAGnB,qGAA6E;AAC7E,wFAAyF;AACzF,qEAAkE;AAClE,qEAAkE;AAElE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAC9B,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAe,EAAC,MAAM,EAAE,KAAK,EAAE;QACpD,OAAO,EAAE;YACP,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,IAAI;YACjB,WAAW,EAAE,IAAI;YACjB,SAAS,EAAE,IAAI;SAChB;QACD,MAAM,EAAE,EAAE,OAAO,EAAE,6BAAiB,E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AW,EAAE,KAAK;YAClB,YAAY,EAAE,EAAE;YAChB,iBAAiB,EAAE,CAAC;YACpB,KAAK;YACL,MAAM,EAAE,EAAE;SACX,CAAC,CAAC;QACH,mBAAmB,IAAI,KAAK,CAAC;IAC/B,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,SAAS;YACpC,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,CAAC,cAAc,CAAC;YACtB,KAAK,EAAE,mBAAmB;YAC1B,IAAI,EAAE;gBACJ,WAAW,EAAE,MAAM;aACpB;SACF;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"}
@@ -66,7 +66,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
66
66
  amount: order.data.content.fields.out_balance,
67
67
  });
68
68
  });
69
- return elementRegistry.dump(cache);
69
+ return elementRegistry.getElements(cache);
70
70
  });
71
71
  const fetcher = {
72
72
  id: `${constants_1.platformId}-dca`,
@@ -1 +1 @@
1
- {"version":3,"file":"dcaFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/dcaFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAA2D;AAC3D,iDAAmD;AAEnD,qEAAkE;AAClE,gFAA6E;AAC7E,uCAAqD;AACrD,iFAA8E;AAC9E,uEAAoE;AAGpE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,C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AS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -55,7 +55,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
55
55
  amount: order.data.content.fields.pay_balance,
56
56
  });
57
57
  });
58
- return elementRegistry.dump(cache);
58
+ return elementRegistry.getElements(cache);
59
59
  });
60
60
  const fetcher = {
61
61
  id: `${constants_1.platformId}-limit`,
@@ -1 +1 @@
1
- {"version":3,"file":"limitFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/limitFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,8DAA+D;AAG/D,2CAKqB;AACrB,iDAAmD;AAEnD,qEAAkE;AAClE,qGAAkG;AAClG,gFAA6E;AAC7E,uCAAqD;AAErD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,EAAE,GAAG,IAAI,+BAAgB,EAAE,CAAC;IAClC,EAAE,CAAC,QAAQ,CAAC;QACV,MAAM,EAAE,GAAG,0BAAc,4CAA4C;QACrE,SAAS,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,4BAAgB,CAAC,CAAC;QAChE,aAAa,EAAE,EAAE;KAClB,CAAC,CAAC;IAEH,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC;QAClD,MAAM,EAAE,8BAAkB;QAC1B,gBAAgB,EAAE,EAAE;KACrB,CAAC,CAAC;IAEH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM;QAAE,OAAO,EAAE,CAAC;IAElC,MAAM,cAAc,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,CACnC,CAAC,CAAC,EAAE,EAAE,CAAE,CAAC,CAAC,UAA0C,CAAC,eAA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zB,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -64,7 +64,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
64
64
  amount: poolPosition.availableQuoteAmount.plus(poolPosition.lockedBaseAmount),
65
65
  });
66
66
  });
67
- return elementRegistry.dump(cache);
67
+ return elementRegistry.getElements(cache);
68
68
  });
69
69
  const fetcher = {
70
70
  id: `${constants_1.platformId}-orders`,
@@ -1 +1 @@
1
- {"version":3,"file":"ordersFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/deepbook/ordersFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAoE;AAEpE,iDAAmD;AACnD,qEAAkE;AAClE,uCAA4C;AAE5C,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,WAAW,GAAG,MAAM,IAAA,iCAAe,EAAC,MAAM,EAAE,KAAK,EAAE;QACvD,OAAO,EAAE;YACP,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,IAAI;YACjB,WAAW,EAAE,IAAI;YACjB,SAAS,EAAE,IAAI;SAChB;QACD,MAAM,EAAE;YACN,UAAU,EAAE;gBACV,MAAM,EAAE,cAAc;gBACtB,OAAO,EAAE,sBAAU;aACpB;SACF;KACF,CAAC,CAAC;IAEH,IAAI,CAAC,CAAA,MAAA,WAAW,CAAC,CAAC,CAAC,0CAAE,IAAI,CAAA;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,YAAY,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;IAElD,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,OAAO,CAAgB,yBAAa,EAAE;QAC9D,MAAM,EAAE,sBAAU;QAClB,SA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,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"}
1
+ {"version":3,"file":"ordersFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/deepbook/ordersFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAoE;AAEpE,iDAAmD;AACnD,qEAAkE;AAClE,uCAA4C;AAE5C,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,WAAW,GAAG,MAAM,IAAA,iCAAe,EAAC,MAAM,EAAE,KAAK,EAAE;QACvD,OAAO,EAAE;YACP,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,IAAI;YACjB,WAAW,EAAE,IAAI;YACjB,SAAS,EAAE,IAAI;SAChB;QACD,MAAM,EAAE;YACN,UAAU,EAAE;gBACV,MAAM,EAAE,cAAc;gBACtB,OAAO,EAAE,sBAAU;aACpB;SACF;KACF,CAAC,CAAC;IAEH,IAAI,CAAC,CAAA,MAAA,WAAW,CAAC,CAAC,CAAC,0CAAE,IAAI,CAAA;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,YAAY,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;IAElD,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,OAAO,CAAgB,yBAAa,EAAE;QAC9D,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;IAEH,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IAEtB,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,G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ACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -22,7 +22,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
22
22
  amount: 2,
23
23
  alreadyShifted: true,
24
24
  });
25
- return elementRegistry.dump(cache);
25
+ return elementRegistry.getElements(cache);
26
26
  });
27
27
  const fetcher = {
28
28
  id: `${constants_1.platformId}-positions-ethereum`,
@@ -1 +1 @@
1
- {"version":3,"file":"positionsEthereumFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/foo/positionsEthereumFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA8E;AAE9E,2CAAyC;AAEzC,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,QAAQ,EAAE,sBAAU,CAAC,CAAC;IAC5E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,SAAS;KACjB,CAAC,CAAC;IACH,OAAO,CAAC,QAAQ,CAAC;QACf,OAAO,EAAE,sCAAqB;QAC9B,MAAM,EAAE,CAAC;QACT,cAAc,EAAE,IAAI;KACrB,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,qBAAqB;IACtC,SAAS,EAAE,0BAAS,CAAC,QAAQ;IAC7B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"positionsEthereumFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/foo/positionsEthereumFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA8E;AAE9E,2CAAyC;AAEzC,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,QAAQ,EAAE,sBAAU,CAAC,CAAC;IAC5E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,SAAS;KACjB,CAAC,CAAC;IACH,OAAO,CAAC,QAAQ,CAAC;QACf,OAAO,EAAE,sCAAqB;QAC9B,MAAM,EAAE,CAAC;QACT,cAAc,EAAE,IAAI;KACrB,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,qBAAqB;IACtC,SAAS,EAAE,0BAAS,CAAC,QAAQ;IAC7B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -41,7 +41,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
41
41
  amount: acc.amountDeposited,
42
42
  });
43
43
  });
44
- return elementRegistry.dump(cache);
44
+ return elementRegistry.getElements(cache);
45
45
  });
46
46
  const fetcher = {
47
47
  id: `${constants_1.platformId}-positions-solana`,
@@ -1 +1 @@
1
- {"version":3,"file":"positionsSolanaFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/foo/positionsSolanaFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4E;AAC5E,6CAA4C;AAE5C,2CAAyC;AAEzC,iDAAsD;AACtD,+CAA8D;AAC9D,uCAA4C;AAC5C,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,yBAAe,EACf,IAAI,mBAAS,CAAC,KAAK,CAAC,EACpB;QACE;YACE,QAAQ,EAAE,yBAAe,CAAC,QAAQ;SACnC;QACD;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,EAAE;aACX;SACF;KACF,CACF,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,SAAS;KACjB,CAAC,CAAC;IAEH,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACvB,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,oCAAmB;YAC5B,MAAM,EAAE,GAAG,CAAC,eAAe;SAC5B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,mBAAmB;IACpC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"positionsSolanaFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/foo/positionsSolanaFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4E;AAC5E,6CAA4C;AAE5C,2CAAyC;AAEzC,iDAAsD;AACtD,+CAA8D;AAC9D,uCAA4C;AAC5C,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,yBAAe,EACf,IAAI,mBAAS,CAAC,KAAK,CAAC,EACpB;QACE;YACE,QAAQ,EAAE,yBAAe,CAAC,QAAQ;SACnC;QACD;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,EAAE;aACX;SACF;KACF,CACF,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,SAAS;KACjB,CAAC,CAAC;IAEH,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACvB,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,oCAAmB;YAC5B,MAAM,EAAE,GAAG,CAAC,eAAe;SAC5B,CAAC,CAAC;IACL,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,mBAAmB;IACpC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -35,7 +35,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
35
35
  amount: (_d = (_c = r.data) === null || _c === void 0 ? void 0 : _c.content) === null || _d === void 0 ? void 0 : _d.fields.amountDeposited,
36
36
  });
37
37
  });
38
- return elementRegistry.dump(cache);
38
+ return elementRegistry.getElements(cache);
39
39
  });
40
40
  const fetcher = {
41
41
  id: `${constants_1.platformId}-positions-sui`,
@@ -1 +1 @@
1
- {"version":3,"file":"positionsSuiFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/foo/positionsSuiF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0, void 0, void 0, function* (
59
59
  label: 'Lending',
60
60
  });
61
61
  assets.forEach((asset) => asset && element.addSuppliedAsset(asset));
62
- return elementRegistry.dump(cache);
62
+ return elementRegistry.getElements(cache);
63
63
  });
64
64
  const fetcher = {
65
65
  id: `${constants_1.platformId}-lending`,
@@ -1 +1 @@
1
- {"version":3,"file":"lendingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/francium/lendingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAC5C,gEAAqC;AAErC,2CAA+D;AAE/D,iDAAsD;AACtD,uCAAyE;AACzE,qCAAkC;AAClC,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACnD,IAAA,+BAAqB,EAAC,MAAM,EAAE,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC;QACnD,IAAA,+BAAqB,EAAC,MAAM,EAAE,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC;KACpD,CAAC,CAAC;IAEH,IACE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,KAAK,CAAC;QACrC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,KAAK,CAAC;QAErC,OAAO,EAAE,CAAC;IAEZ,MAAM,gBAAgB,GAAG,MAAM,KAAK,CAAC,OAAO,CAO1C,gCAAoB,EAAE;QACtB,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IAEH,IAAI,CAAC,gBAAgB;QAAE,OAAO,EAAE,CAAC;IAEjC,MAAM,MAAM,GAAG,gBAAgB;SAC5B,GAAG,CAAC,CAAC,IAAI,EAAE,EAA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,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"lendingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/francium/lendingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAC5C,gEAAqC;AAErC,2CAA+D;AAE/D,iDAAsD;AACtD,uCAAyE;AACzE,qCAAkC;AAClC,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACnD,IAAA,+BAAqB,EAAC,MAAM,EAAE,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC;QACnD,IAAA,+BAAqB,EAAC,MAAM,EAAE,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC;KACpD,CAAC,CAAC;IAEH,IACE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,KAAK,CAAC;QACrC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,KAAK,CAAC;QAErC,OAAO,EAAE,CAAC;IAEZ,MAAM,gBAAgB,GAAG,MAAM,KAAK,CAAC,OAAO,CAO1C,gCAAoB,EAAE;QACtB,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IAEH,IAAI,CAAC,gBAAgB;QAAE,OAAO,EAAE,CAAC;IAEjC,MAAM,MAAM,GAAG,gBAAgB;SAC5B,GAAG,CAA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CAAC,CAAC;IAEpE,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -222,7 +222,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
222
222
  ]);
223
223
  }
224
224
  }
225
- return elementRegistry.dump(cache);
225
+ return elementRegistry.getElements(cache);
226
226
  });
227
227
  const fetcher = {
228
228
  id: `${constants_1.platformId}-deposits`,
@@ -1 +1 @@
1
- {"version":3,"file":"lendsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/lendsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAiE;AACjE,gEAAqC;AACrC,2CAMqB;AAGrB,iDAAsD;AACtD,2CAAmE;AAEnE,+CAAmE;AACnE,yCAIwB;AACxB,6CAAsE;AACtE,gFAA6E;AAE7E,MAAM,eAAe,GAAG,kCAAkC,CAAC;AAE3D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,SAAS,GAAG,0BAAS,CAAC,MAAM,CAAC;IAEnC,MAAM,CAAC,OAAO,EAAE,uBAAuB,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC3D,KAAK,CAAC,OAAO,CAAW,sBAAU,EAAE;YAClC,MAAM,EAAE,sBAAU;YAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;SAC5B,CAAC;QACF,KAAK,CAAC,OAAO,CAAmB,8BAAkB,EAAE;YAClD,MAAM,EAAE,sBAAU;YAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;SAC5B,CAAC;KACH,CAAC,CA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CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,IAAA,yBAAQ,EAAC,OAAO,CAAC,SAAS,CAAC,EAAE;aAC/D,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -68,7 +68,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
68
68
  apr: (0, portfolio_core_1.apyToApr)(farmInfo.apy / 100),
69
69
  });
70
70
  }
71
- return elementRegistry.dump(cache);
71
+ return elementRegistry.getElements(cache);
72
72
  });
73
73
  const fetcher = {
74
74
  id: `${constants_1.platformId}-farms`,
@@ -1 +1 @@
1
- {"version":3,"file":"farmsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/farmsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAiE;AACjE,gEAAqC;AAGrC,2CAAuE;AACvE,iDAAmD;AACnD,qEAAkE;AAElE,gFAA6E;AAC7E,4DAAyD;AAEzD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,YAAY,GAAG,MAAM,IAAA,iCAAe,EAAoB,MAAM,EAAE,KAAK,EAAE;QAC3E,MAAM,EAAE,EAAE,OAAO,EAAE,0BAAc,EAAE;KACpC,CAAC,CAAC;IACH,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEzC,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,OAAO,CAAa,wBAAY,EAAE;QAC/D,MAAM,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AAC,aAAa,CAAC;aACvD,KAAK,CAAC,MAAM,CAAC;aACb,SAAS,CAAC,SAAA,EAAE,EAAI,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAA,CAAC,CAAC;QAE7C,MAAM,SAAS,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;QAEzC,SAAS,CAAC,QAAQ,CAAC;YACjB,OAAO,EAAE,QAAQ,CAAC,UAAU;YAC5B,MAAM,EAAE,YAAY;YACpB,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC;QAEH,SAAS,CAAC,QAAQ,CAAC;YACjB,OAAO,EAAE,QAAQ,CAAC,UAAU;YAC5B,MAAM,EAAE,YAAY;YACpB,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC;QAEH,SAAS,CAAC,QAAQ,CAAC;YACjB,GAAG,EAAE,QAAQ,CAAC,GAAG,GAAG,GAAG;YACvB,GAAG,EAAE,IAAA,yBAAQ,EAAC,QAAQ,CAAC,GAAG,GAAG,GAAG,CAAC;SAClC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,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"}
@@ -58,7 +58,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
58
58
  amount: rewardBPerTokenPending,
59
59
  });
60
60
  }
61
- return elementRegistry.dump(cache);
61
+ return elementRegistry.getElements(cache);
62
62
  });
63
63
  const fetcher = {
64
64
  id: `${constants_1.platformId}-farms`,
@@ -1 +1 @@
1
- {"version":3,"file":"farmsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/farmsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAAmD;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AAE,aAAa;SACtB,CAAC,CAAC;QAEH,SAAS,CAAC,cAAc,CAAC;YACvB,OAAO,EAAE,WAAW;YACpB,MAAM,EAAE,sBAAsB;SAC/B,CAAC,CAAC;QAEH,SAAS,CAAC,cAAc,CAAC;YACvB,OAAO,EAAE,WAAW;YACpB,MAAM,EAAE,sBAAsB;SAC/B,CAAC,CAAC;IACL,CAAC;IAED,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -78,7 +78,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
78
78
  amount: new bignumber_js_1.default(loan.loanNote).multipliedBy(borrowNoteRate),
79
79
  });
80
80
  });
81
- return elementRegistry.dump(cache);
81
+ return elementRegistry.getElements(cache);
82
82
  });
83
83
  const fetcher = {
84
84
  id: `${constants_1.platformId}-positions`,
@@ -1 +1 @@
1
- {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/nxfinance/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAErC,2CAMqB;AAErB,iDAAsD;AACtD,+CAAuE;AAEvE,uCAAiE;AACjE,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,sBAAsB,GAAG,mBAAS,CAAC,sBAAsB,CAC7D;QACE,mBAAS,CAAC,sBAAsB,CAC9B,CAAC,cAAE,CAAC,QAAQ,EAAE,CAAC,EACf,+BAAmB,CACpB,CAAC,CAAC,CAAC,CAAC,Q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EAAE,CAAC,CAAA,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAE,SAAS,MAAK,IAAI,CAAC,SAAS,CACzC,CAAC;QACF,IAAI,CAAC,UAAU;YAAE,OAAO;QACxB,IAAI,IAAI,CAAC,QAAQ,KAAK,GAAG;YAAE,OAAO;QAElC,MAAM,cAAc,GAAG,IAAA,2BAAiB,EAAC,UAAU,CAAC,CAAC;QAErD,iBAAiB,CAAC,gBAAgB,CAAC;YACjC,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,MAAM,EAAE,IAAI,sBAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,cAAc,CAAC;SAClE,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/nxfinance/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAErC,2CAMqB;AAErB,iDAAsD;AACtD,+CAAuE;AAEvE,uCAAiE;AACjE,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,sBAAsB,GAAG,mBAAS,CAAC,sBAAsB,CAC7D;QACE,mBAAS,CAAC,sBAAsB,CAC9B,CAAC,cAAE,CAAC,QAAQ,EAAE,CAAC,EACf,+BAAmB,CACpB,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;QACf,IAAI,mBAA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F,EAAE,uBAAF,EAAE,CAAE,SAAS,MAAK,IAAI,CAAC,SAAS,CACzC,CAAC;QACF,IAAI,CAAC,UAAU;YAAE,OAAO;QACxB,IAAI,IAAI,CAAC,QAAQ,KAAK,GAAG;YAAE,OAAO;QAElC,MAAM,cAAc,GAAG,IAAA,2BAAiB,EAAC,UAAU,CAAC,CAAC;QAErD,iBAAiB,CAAC,gBAAgB,CAAC;YACjC,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,MAAM,EAAE,IAAI,sBAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,cAAc,CAAC;SAClE,CAAC,CAAC;IACL,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,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -96,43 +96,93 @@ function getOrcaNftFetcher(platformId, programId) {
96
96
  continue;
97
97
  const assetTokenA = (0, tokenPriceToAssetToken_1.default)(whirlpoolInfo.tokenMintA.toString(), tokenAmountA.dividedBy(Math.pow(10, tokenPriceA.decimals)).toNumber(), portfolio_core_1.NetworkId.solana, tokenPriceA);
98
98
  const assetTokenB = (0, tokenPriceToAssetToken_1.default)(whirlpoolInfo.tokenMintB.toString(), tokenAmountB.dividedBy(Math.pow(10, tokenPriceB.decimals)).toNumber(), portfolio_core_1.NetworkId.solana, tokenPriceB);
99
- const feesAndRewards = (0, helpers_fees_1.calcFeesAndRewards)(whirlpoolInfo, positionInfo, tickArrays);
99
+ /* const feesAndRewards = calcFeesAndRewards(
100
+ whirlpoolInfo,
101
+ positionInfo,
102
+ tickArrays
103
+ );
104
+
100
105
  if (feesAndRewards) {
101
- if (feesAndRewards.feeOwedA.isGreaterThan(0)) {
102
- rewardAssets.push((0, tokenPriceToAssetToken_1.default)(tokenPriceA.address, feesAndRewards.feeOwedA
103
- .dividedBy(Math.pow(10, tokenPriceA.decimals))
104
- .toNumber(), portfolio_core_1.NetworkId.solana, tokenPriceA));
106
+ if (feesAndRewards.feeOwedA.isGreaterThan(0)) {
107
+ rewardAssets.push(
108
+ tokenPriceToAssetToken(
109
+ tokenPriceA.address,
110
+ feesAndRewards.feeOwedA
111
+ .dividedBy(10 ** tokenPriceA.decimals)
112
+ .toNumber(),
113
+ NetworkId.solana,
114
+ tokenPriceA
115
+ )
116
+ );
117
+ }
118
+
119
+ if (feesAndRewards.feeOwedB.isGreaterThan(0)) {
120
+ rewardAssets.push(
121
+ tokenPriceToAssetToken(
122
+ tokenPriceB.address,
123
+ feesAndRewards.feeOwedB
124
+ .dividedBy(10 ** tokenPriceB.decimals)
125
+ .toNumber(),
126
+ NetworkId.solana,
127
+ tokenPriceB
128
+ )
129
+ );
130
+ }
131
+
132
+ if (feesAndRewards.rewardOwedA.isGreaterThan(0)) {
133
+ const tokenPriceRewardA = tokenPrices.get(
134
+ whirlpoolInfo.rewardInfos[0].mint.toString()
135
+ );
136
+ if (tokenPriceRewardA) {
137
+ rewardAssets.push(
138
+ tokenPriceToAssetToken(
139
+ tokenPriceRewardA.address,
140
+ feesAndRewards.rewardOwedA
141
+ .dividedBy(10 ** tokenPriceRewardA.decimals)
142
+ .toNumber(),
143
+ NetworkId.solana,
144
+ tokenPriceRewardA
145
+ )
146
+ );
105
147
  }
106
- if (feesAndRewards.feeOwedB.isGreaterThan(0)) {
107
- rewardAssets.push((0, tokenPriceToAssetToken_1.default)(tokenPriceB.address, feesAndRewards.feeOwedB
108
- .dividedBy(Math.pow(10, tokenPriceB.decimals))
109
- .toNumber(), portfolio_core_1.NetworkId.solana, tokenPriceB));
148
+ }
149
+
150
+ if (feesAndRewards.rewardOwedB.isGreaterThan(0)) {
151
+ const tokenPriceRewardB = tokenPrices.get(
152
+ whirlpoolInfo.rewardInfos[1].mint.toString()
153
+ );
154
+ if (tokenPriceRewardB) {
155
+ rewardAssets.push(
156
+ tokenPriceToAssetToken(
157
+ tokenPriceRewardB.address,
158
+ feesAndRewards.rewardOwedB
159
+ .dividedBy(10 ** tokenPriceRewardB.decimals)
160
+ .toNumber(),
161
+ NetworkId.solana,
162
+ tokenPriceRewardB
163
+ )
164
+ );
110
165
  }
111
- if (feesAndRewards.rewardOwedA.isGreaterThan(0)) {
112
- const tokenPriceRewardA = tokenPrices.get(whirlpoolInfo.rewardInfos[0].mint.toString());
113
- if (tokenPriceRewardA) {
114
- rewardAssets.push((0, tokenPriceToAssetToken_1.default)(tokenPriceRewardA.address, feesAndRewards.rewardOwedA
115
- .dividedBy(Math.pow(10, tokenPriceRewardA.decimals))
116
- .toNumber(), portfolio_core_1.NetworkId.solana, tokenPriceRewardA));
117
- }
166
+ }
167
+
168
+ if (feesAndRewards.rewardOwedC.isGreaterThan(0)) {
169
+ const tokenPriceRewardC = tokenPrices.get(
170
+ whirlpoolInfo.rewardInfos[2].mint.toString()
171
+ );
172
+ if (tokenPriceRewardC) {
173
+ rewardAssets.push(
174
+ tokenPriceToAssetToken(
175
+ tokenPriceRewardC.address,
176
+ feesAndRewards.rewardOwedC
177
+ .dividedBy(10 ** tokenPriceRewardC.decimals)
178
+ .toNumber(),
179
+ NetworkId.solana,
180
+ tokenPriceRewardC
181
+ )
182
+ );
118
183
  }
119
- if (feesAndRewards.rewardOwedB.isGreaterThan(0)) {
120
- const tokenPriceRewardB = tokenPrices.get(whirlpoolInfo.rewardInfos[1].mint.toString());
121
- if (tokenPriceRewardB) {
122
- rewardAssets.push((0, tokenPriceToAssetToken_1.default)(tokenPriceRewardB.address, feesAndRewards.rewardOwedB
123
- .dividedBy(Math.pow(10, tokenPriceRewardB.decimals))
124
- .toNumber(), portfolio_core_1.NetworkId.solana, tokenPriceRewardB));
125
- }
126
- }
127
- if (feesAndRewards.rewardOwedC.isGreaterThan(0)) {
128
- const tokenPriceRewardC = tokenPrices.get(whirlpoolInfo.rewardInfos[2].mint.toString());
129
- if (tokenPriceRewardC) {
130
- rewardAssets.push((0, tokenPriceToAssetToken_1.default)(tokenPriceRewardC.address, feesAndRewards.rewardOwedC
131
- .dividedBy(Math.pow(10, tokenPriceRewardC.decimals))
132
- .toNumber(), portfolio_core_1.NetworkId.solana, tokenPriceRewardC));
133
- }
134
- }
135
- }
184
+ }
185
+ } */
136
186
  if (!assetTokenA ||
137
187
  !assetTokenB ||
138
188
  assetTokenA.value === null ||
@@ -1 +1 @@
1
- {"version":3,"file":"getWhirlpoolPositions.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/getWhirlpoolPositions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,6CAA4C;AAC5C,2CAIqB;AACrB,iDAAsD;AACtD,+CAG4B;AAE5B,mDAAgE;AAChE,qGAA6E;AAC7E,wFAAyF;AAEzF,iDAIwB;AAEX,QAAA,qBAAqB,GAAG,iBAAiB,CACpD,sBAAc,EACd,4BAAgB,CACjB,CAAC;AAEF,SAAgB,iBAAiB,CAC/B,UAAkB,EAClB,SAAoB;IAEpB,OAAO,CACL,KAAY,EACZ,IAAiC,EACJ,EAAE;QAC/B,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;QACjC,MAAM,uBAAuB,GAAgB,EAAE,CAAC;QAEhD,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YACnB,MAAM,OAAO,GAAG,IAAI,mBAAS,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAEhD,MAAM,YAAY,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;YAEnE,MAAM,CAAC,cAAc,CAAC,GAAG,mBAAS,CAAC,sBAAsB,CACvD,YAAY,EACZ,SAAS,CACV,CAAC;YACF,uBAAuB,CAAC,IAAI,CAAC,c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W,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;YACpD,MAAM,iBAAiB,GAAG,IAAA,+BAAc,EACtC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CACjC,CAAC;YAEF,QAAQ,CAAC,IAAI,CAAC;gBACZ,IAAI,EAAE,qCAAoB,CAAC,SAAS;gBACpC,SAAS,EAAE,0BAAS,CAAC,MAAM;gBAC3B,UAAU;gBACV,KAAK,EAAE,eAAe;gBACtB,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,KAAK,GAAG,CAAC,iBAAiB,IAAI,CAAC,CAAC;gBACvC,IAAI,EAAE;oBACJ,WAAW,EAAE;wBACX;4BACE,MAAM,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;4BAClC,WAAW,EAAE,KAAK;4BAClB,YAAY;4BACZ,iBAAiB;4BACjB,KAAK,EAAE,KAAK,GAAG,CAAC,iBAAiB,IAAI,CAAC,CAAC;4BACvC,MAAM,EAAE,EAAE;yBACX;qBACF;iBACF;aACF,CAAC,CAAC;QACL,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAA,CAAC;AACJ,CAAC;AAhPD,8CAgPC"}
1
+ {"version":3,"file":"getWhirlpoolPositions.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/getWhirlpoolPositions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,6CAA4C;AAC5C,2CAIqB;AACrB,iDAAsD;AACtD,+CAG4B;AAE5B,mDAAgE;AAChE,qGAA6E;AAC7E,wFAAyF;AAEzF,iDAIwB;AAEX,QAAA,qBAAqB,GAAG,iBAAiB,CACpD,sBAAc,EACd,4BAAgB,CACjB,CAAC;AAEF,SAAgB,iBAAiB,CAC/B,UAAkB,EAClB,SAAoB;IAEpB,OAAO,CACL,KAAY,EACZ,IAAiC,EACJ,EAAE;QAC/B,MAAM,MAAM,GAA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AAE,WAAW,CAAC;4BAClC,WAAW,EAAE,KAAK;4BAClB,YAAY;4BACZ,iBAAiB;4BACjB,KAAK,EAAE,KAAK,GAAG,CAAC,iBAAiB,IAAI,CAAC,CAAC;4BACvC,MAAM,EAAE,EAAE;yBACX;qBACF;iBACF;aACF,CAAC,CAAC;QACL,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAA,CAAC;AACJ,CAAC;AAhPD,8CAgPC"}
@@ -79,7 +79,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
79
79
  });
80
80
  }
81
81
  }
82
- return elementRegistry.dump(cache);
82
+ return elementRegistry.getElements(cache);
83
83
  });
84
84
  const fetcher = {
85
85
  id: `${constants_1.platformId}-farms`,
@@ -1 +1 @@
1
- {"version":3,"file":"farmsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/farmsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAAyC;AACzC,iDAAsD;AACtD,uCAAkE;AAClE,+CAA6E;AAC7E,yCAA6C;AAG7C,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,wBAAwB,GAAG,0BAAe,CAAC,GAAG,CAAC,CAAC,cAAc,EAAE,EAAE,CACtE,IAAA,iCAAwB,EACtB,MAAM,EACN,cAAc,CAAC,MAAM,EACrB,cAAc,CAAC,SAAS,EACxB,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,CAC9B,CACF,CAAC;IACF,MAAM,gBAAgB,GAAG,CAAC,MAAM,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC;SAC1E,IAAI,CAAC,CAAC,CAAC;SACP,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,KAAK,WAAW,CAAC,CA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M,CAAC,QAAQ,EAAE,KAAK,gBAAgB,EACtD,CAAC;YACD,SAAS,CAAC,QAAQ,CAAC;gBACjB,OAAO,EAAE,YAAY,CAAC,OAAO;gBAC7B,MAAM;gBACN,cAAc,EAAE,IAAI;aACrB,CAAC,CAAC;QACL,CAAC;aAAM,CAAC;YACN,wBAAwB,CAAC,QAAQ,CAAC;gBAChC,OAAO,EAAE,YAAY,CAAC,OAAO;gBAC7B,MAAM;gBACN,cAAc,EAAE,IAAI;aACrB,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"farmsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/farmsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAAyC;AACzC,iDAAsD;AACtD,uCAAkE;AAClE,+CAA6E;AAC7E,yCAA6C;AAG7C,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,wBAAwB,GAAG,0BAAe,CAAC,GAAG,CAAC,CAAC,cAAc,EAAE,EAAE,CACtE,IAAA,iCAAwB,EACtB,MAAM,EACN,cAAc,CAAC,MAAM,EACrB,cAAc,CAAC,SAAS,EACxB,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,CAC9B,CACF,CAAC;IACF,MAAM,gBAAgB,GAAG,CAAC,MAAM,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC;SAC1E,IAAI,CAAC,CAAC,CAAC;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AAA,CAChC,CAAC;QAEF,IACE,SAAS,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC;YACjC,eAAe,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,gBAAgB,EACtD,CAAC;YACD,SAAS,CAAC,QAAQ,CAAC;gBACjB,OAAO,EAAE,YAAY,CAAC,OAAO;gBAC7B,MAAM;gBACN,cAAc,EAAE,IAAI;aACrB,CAAC,CAAC;QACL,CAAC;aAAM,CAAC;YACN,wBAAwB,CAAC,QAAQ,CAAC;gBAChC,OAAO,EAAE,YAAY,CAAC,OAAO;gBAC7B,MAAM;gBACN,cAAc,EAAE,IAAI;aACrB,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -7,5 +7,5 @@ export declare class AssetBuilder {
7
7
  amount: number | BigNumber | string;
8
8
  alreadyShifted: boolean;
9
9
  constructor(params: PortfolioAssetParams);
10
- dump(networkId: NetworkIdType, tokenPrices: TokenPriceMap): PortfolioAsset | null;
10
+ get(networkId: NetworkIdType, tokenPrices: TokenPriceMap): PortfolioAsset | null;
11
11
  }
@@ -12,7 +12,7 @@ class AssetBuilder {
12
12
  this.amount = params.amount;
13
13
  this.alreadyShifted = params.alreadyShifted || false;
14
14
  }
15
- dump(networkId, tokenPrices) {
15
+ get(networkId, tokenPrices) {
16
16
  let amount = new bignumber_js_1.default(this.amount);
17
17
  if (amount.isZero())
18
18
  return null;
@@ -1 +1 @@
1
- {"version":3,"file":"AssetBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/AssetBuilder.ts"],"names":[],"mappings":";;;;;;AACA,gEAAqC;AAErC,4FAAoE;AAGpE,MAAa,YAAY;IAKvB,YAAY,MAA4B;QACtC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,IAAI,KAAK,CAAC;IACvD,CAAC;IAED,IAAI,CACF,SAAwB,EACxB,WAA0B;QAE1B,IAAI,MAAM,GAAG,IAAI,sBAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,MAAM,CAAC,MAAM,EAAE;YAAE,OAAO,IAAI,CAAC;QACjC,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjD,IAAI,CAAC,UAAU;YAAE,OAAO,IAAI,CAAC;QAE7B,IAAI,CAAC,IAAI,CAAC,cAAc;YACtB,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,UAAU,CAAC,QAAQ,CAAA,CAAC,CAAC;QAEvD,OAAO,IAAA,gCAAsB,EAC3B,UAAU,CAAC,OAAO,EAClB,MAAM,CAAC,QAAQ,EAAE,EACjB,SAAS,EACT,UAAU,CACX,CAAC;IACJ,CAAC;CACF;AA9BD,oCA8BC"}
1
+ {"version":3,"file":"AssetBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/AssetBuilder.ts"],"names":[],"mappings":";;;;;;AACA,gEAAqC;AAErC,4FAAoE;AAGpE,MAAa,YAAY;IAKvB,YAAY,MAA4B;QACtC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,IAAI,KAAK,CAAC;IACvD,CAAC;IAED,GAAG,CACD,SAAwB,EACxB,WAA0B;QAE1B,IAAI,MAAM,GAAG,IAAI,sBAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,MAAM,CAAC,MAAM,EAAE;YAAE,OAAO,IAAI,CAAC;QACjC,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjD,IAAI,CAAC,UAAU;YAAE,OAAO,IAAI,CAAC;QAE7B,IAAI,CAAC,IAAI,CAAC,cAAc;YACtB,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,UAAU,CAAC,QAAQ,CAAA,CAAC,CAAC;QAEvD,OAAO,IAAA,gCAAsB,EAC3B,UAAU,CAAC,OAAO,EAClB,MAAM,CAAC,QAAQ,EAAE,EACjB,SAAS,EACT,UAAU,CACX,CAAC;IACJ,CAAC;CACF;AA9BD,oCA8BC"}
@@ -23,5 +23,5 @@ export declare class ElementBorrowlendBuilder extends ElementBuilder {
23
23
  addSuppliedLtv(ltv: number): void;
24
24
  addBorrowedWeight(borrowedWeight: number): void;
25
25
  mints(): string[];
26
- dump(networkId: NetworkIdType, platformId: string, tokenPrices: TokenPriceMap): PortfolioElement | null;
26
+ get(networkId: NetworkIdType, platformId: string, tokenPrices: TokenPriceMap): PortfolioElement | null;
27
27
  }
@@ -47,18 +47,18 @@ class ElementBorrowlendBuilder extends ElementBuilder_1.ElementBuilder {
47
47
  ...this.rewardAssets,
48
48
  ].map((a) => a.address);
49
49
  }
50
- dump(networkId, platformId, tokenPrices) {
50
+ get(networkId, platformId, tokenPrices) {
51
51
  const suppliedAssets = this.suppliedAssets
52
- .map((a) => a.dump(networkId, tokenPrices))
52
+ .map((a) => a.get(networkId, tokenPrices))
53
53
  .filter((a) => a !== null);
54
54
  const borrowedAssets = this.borrowedAssets
55
- .map((a) => a.dump(networkId, tokenPrices))
55
+ .map((a) => a.get(networkId, tokenPrices))
56
56
  .filter((a) => a !== null);
57
57
  const rewardAssets = this.rewardAssets
58
- .map((a) => a.dump(networkId, tokenPrices))
58
+ .map((a) => a.get(networkId, tokenPrices))
59
59
  .filter((a) => a !== null);
60
60
  const unsettledAssets = this.unsettledAssets
61
- .map((a) => a.dump(networkId, tokenPrices))
61
+ .map((a) => a.get(networkId, tokenPrices))
62
62
  .filter((a) => a !== null);
63
63
  if (suppliedAssets.length === 0 &&
64
64
  borrowedAssets.length === 0 &&
@@ -1 +1 @@
1
- {"version":3,"file":"ElementBorrowlendBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/ElementBorrowlendBuilder.ts"],"names":[],"mappings":";;;AAAA,+DAMoC;AACpC,qDAAkD;AAClD,iDAA8C;AAK9C,MAAa,wBAAyB,SAAQ,+BAAc;IAU1D,YAAY,MAAqB;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;QAC1B,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;IAC5B,CAAC;IAED,gBAAgB,CAAC,MAA4B;QAC3C,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,gBAAgB,CAAC,MAA4B;QAC3C,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,cAAc,CAAC,MAA4B;QACzC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MA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KAAK;YACjB,SAAS;YACT,UAAU;YACV,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc,EAAE,IAAI,CAAC,cAAc;gBACnC,cAAc;gBACd,aAAa;gBACb,cAAc,EAAE,IAAI,CAAC,cAAc;gBACnC,YAAY;gBACZ,WAAW;gBACX,WAAW;gBACX,SAAS,EAAE;oBACT,MAAM,EAAE,eAAe;oBACvB,KAAK,EAAE,cAAc;iBACtB;gBACD,KAAK;aACN;YACD,KAAK;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;QAEF,OAAO,OAA2B,CAAC;IACrC,CAAC;CACF;AA3ID,4DA2IC"}
1
+ {"version":3,"file":"ElementBorrowlendBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/ElementBorrowlendBuilder.ts"],"names":[],"mappings":";;;AAAA,+DAMoC;AACpC,qDAAkD;AAClD,iDAA8C;AAK9C,MAAa,wBAAyB,SAAQ,+BAAc;IAU1D,YAAY,MAAqB;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;QAC1B,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;IAC5B,CAAC;IAED,gBAAgB,CAAC,MAA4B;QAC3C,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,gBAAgB,CAAC,MAA4B;QAC3C,IAAI,CAAC,cAA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AAC,aAAa,IAAI,CAAC,aAAa,IAAI,CAAC,WAAW;YAAE,OAAO,IAAI,CAAC;QAElE,MAAM,OAAO,GAAG;YACd,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS;YACT,UAAU;YACV,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc,EAAE,IAAI,CAAC,cAAc;gBACnC,cAAc;gBACd,aAAa;gBACb,cAAc,EAAE,IAAI,CAAC,cAAc;gBACnC,YAAY;gBACZ,WAAW;gBACX,WAAW;gBACX,SAAS,EAAE;oBACT,MAAM,EAAE,eAAe;oBACvB,KAAK,EAAE,cAAc;iBACtB;gBACD,KAAK;aACN;YACD,KAAK;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;QAEF,OAAO,OAA2B,CAAC;IACrC,CAAC;CACF;AA3ID,4DA2IC"}
@@ -8,5 +8,5 @@ export declare abstract class ElementBuilder {
8
8
  readonly tags?: string[];
9
9
  protected constructor(params: ElementParams);
10
10
  abstract mints(): string[];
11
- abstract dump(networkId: NetworkIdType, platformId: string, tokenPrices: TokenPriceMap): PortfolioElement | null;
11
+ abstract get(networkId: NetworkIdType, platformId: string, tokenPrices: TokenPriceMap): PortfolioElement | null;
12
12
  }
@@ -8,5 +8,5 @@ export declare class ElementLiquidityBuilder extends ElementBuilder {
8
8
  constructor(params: ElementParams);
9
9
  addLiquidity(): LiquidityBuilder;
10
10
  mints(): string[];
11
- dump(networkId: NetworkIdType, platformId: string, tokenPrices: TokenPriceMap): PortfolioElement | null;
11
+ get(networkId: NetworkIdType, platformId: string, tokenPrices: TokenPriceMap): PortfolioElement | null;
12
12
  }
@@ -17,9 +17,9 @@ class ElementLiquidityBuilder extends ElementBuilder_1.ElementBuilder {
17
17
  mints() {
18
18
  return this.liquidities.map((liquidity) => liquidity.mints()).flat();
19
19
  }
20
- dump(networkId, platformId, tokenPrices) {
20
+ get(networkId, platformId, tokenPrices) {
21
21
  const liquidities = this.liquidities
22
- .map((l) => l.export(networkId, tokenPrices))
22
+ .map((l) => l.get(networkId, tokenPrices))
23
23
  .filter((a) => a !== null);
24
24
  if (liquidities.length === 0)
25
25
  return null;
@@ -1 +1 @@
1
- {"version":3,"file":"ElementLiquidityBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/ElementLiquidityBuilder.ts"],"names":[],"mappings":";;;AAAA,+DAMoC;AACpC,qDAAkD;AAGlD,yDAAsD;AAEtD,MAAa,uBAAwB,SAAQ,+BAAc;IAGzD,YAAY,MAAqB;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;IACxB,CAAC;IAED,YAAY;QACV,MAAM,gBAAgB,GAAG,IAAI,mCAAgB,EAAE,CAAC;QAChD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACxC,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,KAAK;QACH,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACvE,CAAC;IAEQ,IAAI,CACX,SAAwB,EACxB,UAAkB,EAClB,WAA0B;QAE1B,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW;aACjC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;aAC5C,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAyB,CAAC;QAErD,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC;QAE1C,MAAM,OAAO,GAAG;YACd,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS;YACT,UAAU;YACV,IAAI,EAAE;gBACJ,WAAW;aACZ;YACD,KAAK,EAAE,IAAA,+BAAc,EAAC,WAAW,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC9D,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;QAEF,OAAO,OAAoC,CAAC;IAC9C,CAAC;CACF;AA5CD,0DA4CC"}
1
+ {"version":3,"file":"ElementLiquidityBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/ElementLiquidityBuilder.ts"],"names":[],"mappings":";;;AAAA,+DAMoC;AACpC,qDAAkD;AAGlD,yDAAsD;AAEtD,MAAa,uBAAwB,SAAQ,+BAAc;IAGzD,YAAY,MAAqB;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;IACxB,CAAC;IAED,YAAY;QACV,MAAM,gBAAgB,GAAG,IAAI,mCAAgB,EAAE,CAAC;QAChD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACxC,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,KAAK;QACH,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACvE,CAAC;IAEQ,GAAG,CACV,SAAwB,EACxB,UAAkB,EAClB,WAA0B;QAE1B,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW;aACjC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;aACzC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAyB,CAAC;QAErD,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC;QAE1C,MAAM,OAAO,GAAG;YACd,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS;YACT,UAAU;YACV,IAAI,EAAE;gBACJ,WAAW;aACZ;YACD,KAAK,EAAE,IAAA,+BAAc,EAAC,WAAW,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC9D,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;QAEF,OAAO,OAAoC,CAAC;IAC9C,CAAC;CACF;AA5CD,0DA4CC"}
@@ -9,5 +9,5 @@ export declare class ElementMultipleBuilder extends ElementBuilder {
9
9
  constructor(params: ElementParams);
10
10
  addAsset(params: PortfolioAssetParams): void;
11
11
  mints(): string[];
12
- dump(networkId: NetworkIdType, platformId: string, tokenPrices: TokenPriceMap): PortfolioElement | null;
12
+ get(networkId: NetworkIdType, platformId: string, tokenPrices: TokenPriceMap): PortfolioElement | null;
13
13
  }
@@ -15,9 +15,9 @@ class ElementMultipleBuilder extends ElementBuilder_1.ElementBuilder {
15
15
  mints() {
16
16
  return this.assets.map((a) => a.address);
17
17
  }
18
- dump(networkId, platformId, tokenPrices) {
18
+ get(networkId, platformId, tokenPrices) {
19
19
  const assets = this.assets
20
- .map((a) => a.dump(networkId, tokenPrices))
20
+ .map((a) => a.get(networkId, tokenPrices))
21
21
  .filter((a) => a !== null);
22
22
  if (assets.length === 0)
23
23
  return null;
@@ -1 +1 @@
1
- {"version":3,"file":"ElementMultipleBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/ElementMultipleBuilder.ts"],"names":[],"mappings":";;;AAAA,+DAKoC;AACpC,qDAAkD;AAClD,iDAA8C;AAK9C,MA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}
@@ -13,5 +13,5 @@ export declare class ElementRegistry {
13
13
  addElementMultiple(params: Omit<ElementParams, 'type'>): ElementMultipleBuilder;
14
14
  addElementLiquidity(params: Omit<ElementParams, 'type'>): ElementLiquidityBuilder;
15
15
  addElementBorrowlend(params: Omit<ElementParams, 'type'>): ElementBorrowlendBuilder;
16
- dump(cache: Cache): Promise<PortfolioElement[]>;
16
+ getElements(cache: Cache): Promise<PortfolioElement[]>;
17
17
  }
@@ -35,12 +35,12 @@ class ElementRegistry {
35
35
  this.elements.push(elementBuilder);
36
36
  return elementBuilder;
37
37
  }
38
- dump(cache) {
38
+ getElements(cache) {
39
39
  return __awaiter(this, void 0, void 0, function* () {
40
40
  const mints = this.elements.map((e) => e.mints()).flat();
41
41
  const tokenPrices = yield cache.getTokenPricesAsMap(mints, this.networkId);
42
42
  return this.elements
43
- .map((e) => e.dump(this.networkId, this.platformId, tokenPrices))
43
+ .map((e) => e.get(this.networkId, this.platformId, tokenPrices))
44
44
  .filter((e) => e !== null && e.value && e.value > 0);
45
45
  });
46
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ElementRegistry.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/ElementRegistry.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAMoC;AAIpC,qEAAkE;AAClE,uEAAoE;AACpE,yEAAsE;AAEtE,MAAa,eAAe;IAK1B,YAAY,SAAwB,EAAE,UAAkB;QACtD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACrB,CAAC;IACD,kBAAkB,CAChB,MAAmC;QAEnC,MAAM,cAAc,GAAG,IAAI,+CAAsB,iBAC/C,IAAI,EAAE,qCAAoB,CAAC,QAAQ,IAChC,MAAM,EACT,CAAC;QACH,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACnC,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,mBAAmB,CACjB,MAAmC;QAEnC,MAAM,cAAc,GAAG,IAAI,iDAAuB,iBAChD,IAAI,EAAE,qCAAoB,CAAC,SAAS,IACjC,MAAM,EACT,CAAC;QACH,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACnC,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,oBAAoB,CAClB,MAAmC;QAEnC,MAAM,cAAc,GAAG,IAAI,mDAAwB,iBACjD,IAAI,EAAE,qCAAoB,CAAC,UAAU,IAClC,MAAM,EACT,CAAC;QACH,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACnC,OAAO,cAAc,CAAC;IACxB,CAAC;IAEK,IAAI,CAAC,KAAY;;YACrB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;YACzD,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,mBAAmB,CAAC,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;YAE3E,OAAO,IAAI,CAAC,QAAQ;iBACjB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;iBAChE,MAAM,CACL,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CACtB,CAAC;QAC5B,CAAC;KAAA;CACF;AArDD,0CAqDC"}
1
+ {"version":3,"file":"ElementRegistry.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/ElementRegistry.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAMo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AG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;iBAC/D,MAAM,CACL,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CACtB,CAAC;QAC5B,CAAC;KAAA;CACF;AArDD,0CAqDC"}
@@ -11,5 +11,5 @@ export declare class LiquidityBuilder {
11
11
  addRewardAsset(params: PortfolioAssetParams): void;
12
12
  addYield(ayield: Yield): void;
13
13
  mints(): string[];
14
- export(networkId: NetworkIdType, tokenPrices: TokenPriceMap): PortfolioLiquidity | null;
14
+ get(networkId: NetworkIdType, tokenPrices: TokenPriceMap): PortfolioLiquidity | null;
15
15
  }
@@ -24,12 +24,12 @@ class LiquidityBuilder {
24
24
  ...this.rewardAssets.map((a) => a.address),
25
25
  ];
26
26
  }
27
- export(networkId, tokenPrices) {
27
+ get(networkId, tokenPrices) {
28
28
  const assets = this.assets
29
- .map((a) => a.dump(networkId, tokenPrices))
29
+ .map((a) => a.get(networkId, tokenPrices))
30
30
  .filter((a) => a !== null);
31
31
  const rewardAssets = this.rewardAssets
32
- .map((a) => a.dump(networkId, tokenPrices))
32
+ .map((a) => a.get(networkId, tokenPrices))
33
33
  .filter((a) => a !== null);
34
34
  if (assets.length === 0 && rewardAssets.length === 0)
35
35
  return null;
@@ -1 +1 @@
1
- {"version":3,"file":"LiquidityBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/LiquidityBuilder.ts"],"names":[],"mappings":";;;AAAA,+DAMoC;AAEpC,iDAA8C;AAG9C,MAAa,gBAAgB;IAK3B;QACE,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,EAAE,C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+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;QACvE,MAAM,iBAAiB,GAAG,IAAA,+BAAc,EACtC,YAAY,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CACzC,CAAC;QACF,MAAM,KAAK,GAAG,CAAC,WAAW,IAAI,CAAC,CAAC,GAAG,CAAC,iBAAiB,IAAI,CAAC,CAAC,CAAC;QAE5D,IAAI,KAAK,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC;QAE7B,OAAO;YACL,MAAM;YACN,WAAW;YACX,YAAY;YACZ,iBAAiB;YACjB,KAAK;YACL,MAAM,EAAE,IAAI,CAAC,MAAM;SACE,CAAC;IAC1B,CAAC;CACF;AA5DD,4CA4DC"}
1
+ {"version":3,"file":"LiquidityBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/LiquidityBuilder.ts"],"names":[],"mappings":";;;AAAA,+DAMoC;AAEpC,iDAA8C;AAG9C,MAAa,gBAAgB;IAK3B;QACE,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;IACnB,CAAC;IAED,QAAQ,CAAC,MAA4B;QACnC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7C,CAAC;IAED,cAAc,CAAC,MAA4B;QACzC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IACnD,CAAC;IAED,QAAQ,CAAC,MAAa;QACpB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC3B,CAAC;IAED,KAAK;QACH,OAAO;YACL,GAAG,IAAI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