@sonarwatch/portfolio-plugins 0.14.128 → 0.14.130

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/src/index.js +5 -0
  4. package/src/index.js.map +1 -1
  5. package/src/plugins/adrena/positionsFetcher.js +1 -0
  6. package/src/plugins/adrena/positionsFetcher.js.map +1 -1
  7. package/src/plugins/allbridge/positionsFetcher.js +9 -1
  8. package/src/plugins/allbridge/positionsFetcher.js.map +1 -1
  9. package/src/plugins/armada-staking/stakingFetcher.js +4 -1
  10. package/src/plugins/armada-staking/stakingFetcher.js.map +1 -1
  11. package/src/plugins/aurory/stakingFetcher.js +5 -1
  12. package/src/plugins/aurory/stakingFetcher.js.map +1 -1
  13. package/src/plugins/bonfida/offersFetcher.js +30 -37
  14. package/src/plugins/bonfida/offersFetcher.js.map +1 -1
  15. package/src/plugins/bonkrewards/positionFetcher.js +16 -22
  16. package/src/plugins/bonkrewards/positionFetcher.js.map +1 -1
  17. package/src/plugins/cyberfrogs/thorDepositFetcher.js +2 -0
  18. package/src/plugins/cyberfrogs/thorDepositFetcher.js.map +1 -1
  19. package/src/plugins/daos/realmsDepositsFetcher.js +29 -43
  20. package/src/plugins/daos/realmsDepositsFetcher.js.map +1 -1
  21. package/src/plugins/debridge/dlmmVaultsFetcher.js +16 -10
  22. package/src/plugins/debridge/dlmmVaultsFetcher.js.map +1 -1
  23. package/src/plugins/defiland/stakingFetcher.js +8 -1
  24. package/src/plugins/defiland/stakingFetcher.js.map +1 -1
  25. package/src/plugins/defituna/lendingFetcher.js +3 -0
  26. package/src/plugins/defituna/lendingFetcher.js.map +1 -1
  27. package/src/plugins/defituna/positionsFetcher.js +7 -1
  28. package/src/plugins/defituna/positionsFetcher.js.map +1 -1
  29. package/src/plugins/defituna/structs.d.ts +1 -0
  30. package/src/plugins/defituna/structs.js.map +1 -1
  31. package/src/plugins/divvy/constants.d.ts +1 -0
  32. package/src/plugins/divvy/constants.js +2 -1
  33. package/src/plugins/divvy/constants.js.map +1 -1
  34. package/src/plugins/divvy/housePoolFetcher.js +3 -0
  35. package/src/plugins/divvy/housePoolFetcher.js.map +1 -1
  36. package/src/plugins/divvy/stakingFetcher.js +3 -1
  37. package/src/plugins/divvy/stakingFetcher.js.map +1 -1
  38. package/src/plugins/drift/depositsFetcher.js +15 -0
  39. package/src/plugins/drift/depositsFetcher.js.map +1 -1
  40. package/src/plugins/drift-market-maker-vault/depositsFetcher.js +2 -1
  41. package/src/plugins/drift-market-maker-vault/depositsFetcher.js.map +1 -1
  42. package/src/plugins/elemental/depositFetcher.js +3 -0
  43. package/src/plugins/elemental/depositFetcher.js.map +1 -1
  44. package/src/plugins/ensofi/solanaLoansFetcher.js +6 -0
  45. package/src/plugins/ensofi/solanaLoansFetcher.js.map +1 -1
  46. package/src/plugins/exponent/liquidityFetcher.js +1 -0
  47. package/src/plugins/exponent/liquidityFetcher.js.map +1 -1
  48. package/src/plugins/exponent/tradeFetcher.js +1 -0
  49. package/src/plugins/exponent/tradeFetcher.js.map +1 -1
  50. package/src/plugins/famousfoxfederation/stakingFetcher.js +18 -22
  51. package/src/plugins/famousfoxfederation/stakingFetcher.js.map +1 -1
  52. package/src/plugins/flash/perpetualFetcher.js +1 -1
  53. package/src/plugins/flash/perpetualFetcher.js.map +1 -1
  54. package/src/plugins/fragmetric/pricingJob.js +6 -0
  55. package/src/plugins/fragmetric/pricingJob.js.map +1 -1
  56. package/src/plugins/francium/lendingFetcher.js +1 -0
  57. package/src/plugins/francium/lendingFetcher.js.map +1 -1
  58. package/src/plugins/futarchy/daosJob.js +9 -0
  59. package/src/plugins/futarchy/daosJob.js.map +1 -1
  60. package/src/plugins/genesysgo/stakingFetcher.js +12 -25
  61. package/src/plugins/genesysgo/stakingFetcher.js.map +1 -1
  62. package/src/plugins/goosefx/stakingFetcher.js +18 -27
  63. package/src/plugins/goosefx/stakingFetcher.js.map +1 -1
  64. package/src/plugins/gpool/stakingFetcher.js +5 -1
  65. package/src/plugins/gpool/stakingFetcher.js.map +1 -1
  66. package/src/plugins/guano/constants.d.ts +8 -0
  67. package/src/plugins/guano/constants.js +15 -0
  68. package/src/plugins/guano/constants.js.map +1 -0
  69. package/src/plugins/guano/filters.d.ts +20 -0
  70. package/src/plugins/guano/filters.js +41 -0
  71. package/src/plugins/guano/filters.js.map +1 -0
  72. package/src/plugins/guano/index.d.ts +6 -0
  73. package/src/plugins/guano/index.js +10 -0
  74. package/src/plugins/guano/index.js.map +1 -0
  75. package/src/plugins/guano/stakingFetcher.d.ts +3 -0
  76. package/src/plugins/guano/stakingFetcher.js +70 -0
  77. package/src/plugins/guano/stakingFetcher.js.map +1 -0
  78. package/src/plugins/guano/structs.d.ts +34 -0
  79. package/src/plugins/guano/structs.js +33 -0
  80. package/src/plugins/guano/structs.js.map +1 -0
  81. package/src/plugins/guano/types.d.ts +15 -0
  82. package/src/plugins/guano/types.js +3 -0
  83. package/src/plugins/guano/types.js.map +1 -0
  84. package/src/plugins/hedgehog/ammJob.js +8 -0
  85. package/src/plugins/hedgehog/ammJob.js.map +1 -1
  86. package/src/plugins/hxro/stakingFetcher.js +2 -0
  87. package/src/plugins/hxro/stakingFetcher.js.map +1 -1
  88. package/src/plugins/iloop/depositsFetcher.js +8 -0
  89. package/src/plugins/iloop/depositsFetcher.js.map +1 -1
  90. package/src/plugins/jupiter/exchange/dcaFetcher.js +6 -1
  91. package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
  92. package/src/plugins/jupiter/exchange/limitFetcher.js +3 -0
  93. package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -1
  94. package/src/plugins/jupiter/exchange/valueAverageFetcher.js +2 -1
  95. package/src/plugins/jupiter/exchange/valueAverageFetcher.js.map +1 -1
  96. package/src/plugins/kamino/lendsFetcher.js +6 -0
  97. package/src/plugins/kamino/lendsFetcher.js.map +1 -1
  98. package/src/plugins/kamino/ordersFetcher.js +2 -1
  99. package/src/plugins/kamino/ordersFetcher.js.map +1 -1
  100. package/src/plugins/layer3/stakingFetcher.js +1 -0
  101. package/src/plugins/layer3/stakingFetcher.js.map +1 -1
  102. package/src/plugins/lifinity/lockerFetcher.js +14 -17
  103. package/src/plugins/lifinity/lockerFetcher.js.map +1 -1
  104. package/src/plugins/loverflow/airdropClaimFetcher.js +1 -0
  105. package/src/plugins/loverflow/airdropClaimFetcher.js.map +1 -1
  106. package/src/plugins/magiceden/escrowFetcher.js +12 -18
  107. package/src/plugins/magiceden/escrowFetcher.js.map +1 -1
  108. package/src/plugins/marginfi/helpers.d.ts +2 -1
  109. package/src/plugins/marginfi/helpers.js +8 -2
  110. package/src/plugins/marginfi/helpers.js.map +1 -1
  111. package/src/plugins/marinade/ticketsFetcher.js +14 -31
  112. package/src/plugins/marinade/ticketsFetcher.js.map +1 -1
  113. package/src/plugins/metaplex/resizableNftFetcher.js +1 -0
  114. package/src/plugins/metaplex/resizableNftFetcher.js.map +1 -1
  115. package/src/plugins/nxfinance/positionsFetcher.js +19 -2
  116. package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
  117. package/src/plugins/orca/getWhirlpoolPositions.js +10 -1
  118. package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
  119. package/src/plugins/parcl/depositsFetcher.js +1 -1
  120. package/src/plugins/parcl/depositsFetcher.js.map +1 -1
  121. package/src/plugins/parcl/marginFetcher.js +1 -1
  122. package/src/plugins/parcl/marginFetcher.js.map +1 -1
  123. package/src/plugins/parcl/stakingFetcher.js +6 -3
  124. package/src/plugins/parcl/stakingFetcher.js.map +1 -1
  125. package/src/plugins/photofinish/stakingFetcher.js +6 -1
  126. package/src/plugins/photofinish/stakingFetcher.js.map +1 -1
  127. package/src/plugins/picasso/unstakingPositionsFetcher.js +3 -2
  128. package/src/plugins/picasso/unstakingPositionsFetcher.js.map +1 -1
  129. package/src/plugins/quarry/calculatePositions.js +7 -1
  130. package/src/plugins/quarry/calculatePositions.js.map +1 -1
  131. package/src/plugins/quarry/positionsFetcher.js +2 -0
  132. package/src/plugins/quarry/positionsFetcher.js.map +1 -1
  133. package/src/plugins/quarry/types.d.ts +3 -0
  134. package/src/plugins/ratex/positionsFetcher.js +2 -0
  135. package/src/plugins/ratex/positionsFetcher.js.map +1 -1
  136. package/src/plugins/saber/lpTokensJob.js +1 -0
  137. package/src/plugins/saber/lpTokensJob.js.map +1 -1
  138. package/src/plugins/sandglass/depositFetcher.js +3 -0
  139. package/src/plugins/sandglass/depositFetcher.js.map +1 -1
  140. package/src/plugins/sharky/loansFetcher.js +1 -0
  141. package/src/plugins/sharky/loansFetcher.js.map +1 -1
  142. package/src/plugins/solayer/airdropFetcher.d.ts +3 -0
  143. package/src/plugins/solayer/airdropFetcher.js +55 -0
  144. package/src/plugins/solayer/airdropFetcher.js.map +1 -0
  145. package/src/plugins/solayer/constants.d.ts +5 -0
  146. package/src/plugins/solayer/constants.js +13 -1
  147. package/src/plugins/solayer/constants.js.map +1 -1
  148. package/src/plugins/solayer/index.d.ts +2 -0
  149. package/src/plugins/solayer/index.js +4 -2
  150. package/src/plugins/solayer/index.js.map +1 -1
  151. package/src/plugins/solayer/proofsFetcher.js +7 -6
  152. package/src/plugins/solayer/proofsFetcher.js.map +1 -1
  153. package/src/plugins/solayer/types.d.ts +8 -0
  154. package/src/plugins/solayer/types.js +3 -0
  155. package/src/plugins/solayer/types.js.map +1 -0
  156. package/src/plugins/spdr/stakingFetcher.js +3 -0
  157. package/src/plugins/spdr/stakingFetcher.js.map +1 -1
  158. package/src/plugins/stabble/poolsJob.js +1 -0
  159. package/src/plugins/stabble/poolsJob.js.map +1 -1
  160. package/src/plugins/staratlas/lockersFetcher.js +2 -0
  161. package/src/plugins/staratlas/lockersFetcher.js.map +1 -1
  162. package/src/plugins/staratlas/stakingFetcher.js +2 -1
  163. package/src/plugins/staratlas/stakingFetcher.js.map +1 -1
  164. package/src/plugins/streamflow/vestingFetcher.js +1 -1
  165. package/src/plugins/streamflow/vestingFetcher.js.map +1 -1
  166. package/src/plugins/tensor/bidsFetcher.js +1 -1
  167. package/src/plugins/tensor/bidsFetcher.js.map +1 -1
  168. package/src/plugins/texture/loansFetcher.js +2 -1
  169. package/src/plugins/texture/loansFetcher.js.map +1 -1
  170. package/src/plugins/tulip/depositsFetcher.js +3 -1
  171. package/src/plugins/tulip/depositsFetcher.js.map +1 -1
  172. package/src/plugins/uxd/stakingFetcher.js +4 -3
  173. package/src/plugins/uxd/stakingFetcher.js.map +1 -1
  174. package/src/plugins/vaultka/lendingFetcher.js +5 -0
  175. package/src/plugins/vaultka/lendingFetcher.js.map +1 -1
  176. package/src/plugins/vaultka/strategyFetcher.js +3 -0
  177. package/src/plugins/vaultka/strategyFetcher.js.map +1 -1
  178. package/src/plugins/whalesmarket/depositFetcher.js +7 -5
  179. package/src/plugins/whalesmarket/depositFetcher.js.map +1 -1
  180. package/src/plugins/zelo/positionsFetcher.js +2 -0
  181. package/src/plugins/zelo/positionsFetcher.js.map +1 -1
  182. package/src/plugins/zeta/depositsFetcher.js +5 -1
  183. package/src/plugins/zeta/depositsFetcher.js.map +1 -1
  184. package/src/utils/clients/getClientSolanaAlt.d.ts +2 -0
  185. package/src/utils/clients/getClientSolanaAlt.js +93 -0
  186. package/src/utils/clients/getClientSolanaAlt.js.map +1 -0
  187. package/src/utils/elementbuilder/ElementRegistry.d.ts +1 -3
  188. package/src/utils/elementbuilder/ElementRegistry.js +2 -5
  189. package/src/utils/elementbuilder/ElementRegistry.js.map +1 -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.130](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.129...plugins-0.14.130) (2025-02-27)
6
+
7
+
8
+
9
+ ## [0.14.129](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.128...plugins-0.14.129) (2025-02-26)
10
+
11
+
12
+
5
13
  ## [0.14.128](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.127...plugins-0.14.128) (2025-02-25)
6
14
 
7
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.14.128",
3
+ "version": "0.14.130",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
package/src/index.js CHANGED
@@ -174,6 +174,7 @@ const layer3_1 = require("./plugins/layer3");
174
174
  const puffcoin_1 = require("./plugins/puffcoin");
175
175
  const triad_1 = require("./plugins/triad");
176
176
  const baskt_1 = require("./plugins/baskt");
177
+ const guano_1 = require("./plugins/guano");
177
178
  const coingecko_1 = require("./plugins/coingecko");
178
179
  var constants_1 = require("./plugins/tokens/constants");
179
180
  Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
@@ -346,6 +347,7 @@ exports.platforms = [
346
347
  ...puffcoin_1.platforms,
347
348
  ...triad_1.platforms,
348
349
  ...baskt_1.platforms,
350
+ ...guano_1.platforms,
349
351
  ];
350
352
  // JOBS //
351
353
  exports.jobs = [
@@ -498,6 +500,7 @@ exports.jobs = [
498
500
  ...layer3_1.jobs,
499
501
  ...puffcoin_1.jobs,
500
502
  ...triad_1.jobs,
503
+ ...guano_1.jobs,
501
504
  ];
502
505
  // FETCHERS //
503
506
  exports.fetchers = [
@@ -650,6 +653,7 @@ exports.fetchers = [
650
653
  ...puffcoin_1.fetchers,
651
654
  ...triad_1.fetchers,
652
655
  ...baskt_1.fetchers,
656
+ ...guano_1.fetchers,
653
657
  ];
654
658
  exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
655
659
  exports.airdropFetchers = [
@@ -670,6 +674,7 @@ exports.airdropFetchers = [
670
674
  zeta_1.airdropFetcher,
671
675
  ...tensor_1.tensorAirdropFetchers,
672
676
  sonic_1.airdropFetcher,
677
+ solayer_1.airdropFetcher,
673
678
  ];
674
679
  exports.airdropFetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.airdropFetchers);
675
680
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,wEAAgD;AAChD,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,yCAIwB;AACxB,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAI0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAKyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mDAI6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,2CAIyB;AACzB,6CAK0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,+CAI2B;AAC3B,uDAG+B;AAC/B,yCAGwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,6CAI0B;AAC1B,+CAI2B;AAC3B,qDAG8B;AAC9B,iDAI4B;AAC5B,iDAI4B;AAC5B,mDAG6B;AAC7B,yCAIwB;AACxB,2CAIyB;AACzB,yCAIwB;AACxB,iDAI4B;AAC5B,+CAK2B;AAC3B,yCAKwB;AACxB,2CAIyB;AACzB,mDAI6B;AAC7B,2CAIyB;AACzB,2CAIyB;AACzB,sCAIsB;AACtB,+CAI2B;AAC3B,yCAIwB;AACxB,iDAI4B;AAC5B,yCAIwB;AACxB,mDAI6B;AAC7B,qDAK8B;AAC9B,2CAIyB;AACzB,2CAKyB;AACzB,yCAIwB;AACxB,i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G,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,kBAAe;IAClB,GAAG,eAAY;IACf,GAAG,eAAY;IACf,GAAG,eAAY;IACf,GAAG,gBAAa;IAChB,GAAG,qBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,iBAAc;IACjB,GAAG,wBAAqB;IACxB,GAAG,mBAAgB;IACnB,GAAG,sBAAmB;IACtB,GAAG,wBAAqB;IACxB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,iBAAc;IACjB,GAAG,qBAAkB;IACrB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,gBAAa;CACjB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC;AAE/D,QAAA,eAAe,GAAqB;IAC/C,GAAG,yBAAsB;IACzB,GAAG,wBAAqB;IACxB,GAAG,yBAAsB;IACzB,sBAAmB;IACnB,sBAAmB;IACnB,yBAAsB;IACtB,sBAAmB;IACnB,GAAG,0BAAuB;IAC1B,wBAAqB;IACrB,wBAAqB;IACrB,sBAAmB;IACnB,GAAG,4BAAyB;IAC5B,0BAAuB;IACvB,+BAA+B;IAC/B,qBAAkB;IAClB,GAAG,8BAAqB;IACxB,sBAAmB;CACpB,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,wEAAgD;AAChD,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5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,GAAG,mBAAgB;IACnB,GAAG,iBAAc;IACjB,GAAG,qBAAkB;IACrB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,gBAAa;CACjB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC;AAE/D,QAAA,eAAe,GAAqB;IAC/C,GAAG,yBAAsB;IACzB,GAAG,wBAAqB;IACxB,GAAG,yBAAsB;IACzB,sBAAmB;IACnB,sBAAmB;IACnB,yBAAsB;IACtB,sBAAmB;IACnB,GAAG,0BAAuB;IAC1B,wBAAqB;IACrB,wBAAqB;IACrB,sBAAmB;IACnB,GAAG,4BAAyB;IAC5B,0BAAuB;IACvB,+BAA+B;IAC/B,qBAAkB;IAClB,GAAG,8BAAqB;IACxB,sBAAmB;IACnB,wBAAqB;CACtB,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
@@ -36,6 +36,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
36
36
  element.addAsset({
37
37
  address: custodie.mint.toString(),
38
38
  amount: position.collateralAmount,
39
+ ref: position.pubkey,
39
40
  });
40
41
  }
41
42
  return elementRegistry.getElements(cache);
@@ -1 +1 @@
1
- {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/adrena/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAiE;AAEjE,kEAA+D;AAC/D,gFAA6E;AAC7E,uCAA2C;AAC3C,+CAA8D;AAC9D,uCAA2C;AAC3C,iDAAsD;AAGtD,MAAM,aAAa,GAAG,IA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O,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE;YACjC,MAAM,EAAE,QAAQ,CAAC,gBAAgB;YACjC,GAAG,EAAE,QAAQ,CAAC,MAAM;SACrB,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"}
@@ -28,7 +28,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
28
28
  const connection = (0, clients_1.getClientSolana)();
29
29
  const poolInfo = yield poolInfoMemo.getItem(cache);
30
30
  if (!poolInfo)
31
- return [];
31
+ throw new Error('Pool info not cached');
32
32
  const userDepositPublicKeys = (0, helpers_1.getUserDepositPublicKeys)(poolInfo, owner);
33
33
  const userDeposits = (yield (0, solana_1.getAutoParsedMultipleAccountsInfo)(connection, constants_1.allbridgeIdlItem, userDepositPublicKeys)).filter((userDeposit) => userDeposit !== null && (userDeposit === null || userDeposit === void 0 ? void 0 : userDeposit.lpAmount) !== '0');
34
34
  if (userDeposits.length === 0)
@@ -75,6 +75,14 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
75
75
  apr: Number(tokenPool.apr),
76
76
  },
77
77
  ],
78
+ ref: userDeposit.pubkey.toString(),
79
+ sourceRefs: [
80
+ {
81
+ address: tokenPool.poolAddress,
82
+ name: 'Pool',
83
+ },
84
+ ],
85
+ link: 'https://core.allbridge.io/pools?chain=SOL',
78
86
  },
79
87
  ],
80
88
  },
@@ -1 +1 @@
1
- {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/allbridge/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;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YACtB,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,qCAAoB,CAAC,SAAS;YACpC,KAAK;YACL,IAAI,EAAE;gBACJ,WAAW,EAAE;oBACX;wBACE,MAAM,EAAE,CAAC,OAAO,CAAC;wBACjB,WAAW,EAAE,OAAO,CAAC,KAAK;wBAC1B,YAAY,EAAE,aAAa;wBAC3B,iBAAiB,EAAE,IAAA,+BAAc,EAC/B,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CACpC;wBACD,KAAK;wBACL,MAAM,EAAE;4BACN;gCACE,GAAG,EAAE,IAAA,yBAAQ,EAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;gCACpC,GAAG,EAAE,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC;6BAC3B;yBACF;qBACF;iBACF;aACF;YACD,IAAI,EAAE,SAAS,CAAC,IAAI;SACrB,CAAC,CAAC;IACL,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,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/allbridge/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,gEAAqC;AAErC,2CAMqB;AAErB,iDAAsD;AACtD,+CAG4B;AAC5B,qGAA6E;AAE7E,uCAAgE;AAChE,kEAA+D;AAE/D,MAAM,YAAY,GAAG,IAAI,6BAAa,CAAQ,yBAAa,EAAE;IAC3D,MAAM,EAAE,uBAAW;IACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAoB,CAA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GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CACpC;wBACD,KAAK;wBACL,MAAM,EAAE;4BACN;gCACE,GAAG,EAAE,IAAA,yBAAQ,EAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;gCACpC,GAAG,EAAE,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC;6BAC3B;yBACF;wBACD,GAAG,EAAE,WAAW,CAAC,MAAM,CAAC,QAAQ,EAAE;wBAClC,UAAU,EAAE;4BACV;gCACE,OAAO,EAAE,SAAS,CAAC,WAAW;gCAC9B,IAAI,EAAE,MAAM;6BACb;yBACF;wBACD,IAAI,EAAE,2CAA2C;qBAClD;iBACF;aACF;YACD,IAAI,EAAE,SAAS,CAAC,IAAI;SACrB,CAAC,CAAC;IACL,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,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -23,7 +23,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
23
23
  networkId: portfolio_core_1.NetworkId.solana,
24
24
  });
25
25
  if (!pools)
26
- return [];
26
+ throw new Error('No pools cached');
27
27
  const mintByPool = new Map();
28
28
  pools.forEach((pool) => mintByPool.set(pool.pubkey, pool.mint));
29
29
  const stakeAccounts = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.StakeDepositReceiptStruct, constants_1.stakePid, (0, filters_1.stakeFilters)(owner));
@@ -43,6 +43,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
43
43
  label: 'Staked',
44
44
  platformId: platform,
45
45
  ref: stakeAccount.pubkey,
46
+ sourceRefs: [
47
+ { name: 'Pool', address: stakeAccount.stakePool.toString() },
48
+ ],
46
49
  });
47
50
  const lockedUntil = new Date(stakeAccount.depositTimestamp
48
51
  .plus(stakeAccount.lockupDuration)
@@ -1 +1 @@
1
- {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/armada-staking/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAMqB;AACrB,+CAA8D;AAC9D,uCAAsD;AACtD,uCAAyC;AACzC,iDAAsD;AAEtD,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,OAAO,CAAa,oBAAQ,EAAE;QACtD,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IAEtB,MAAM,UAAU,GAAwB,IAAI,GAAG,EAAE,CAAC;IAClD,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAEhE,MAAM,aAAa,GAAG,MAAM,IAAA,iCAAwB,EAClD,MAAM,EACN,mCAAyB,EACzB,oBAAQ,EACR,IAAA,sBAAY,EAAC,KAAK,CAAC,CACpB,CAAC;IACF,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAE1C,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAE1E,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE,CAAC;QACzC,IAAI,YAAY,CAAC,aAAa,CAAC,MAAM,EAAE;YAAE,SAAS;QAElD,MAAM,IAAI,GAAG,UAAU,CAAC,GAAG,CAAC,YAAY,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC/D,IAAI,CAAC,IAAI;YAAE,SAAS;QAEpB,MAAM,QAAQ,GAAG,0BAAc,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,4BAAgB,CAAC;QAC9D,IAAI,CAAC,QAAQ;YAAE,SAAS;QAExB,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;YACjD,KAAK,EAAE,QAAQ;YACf,UAAU,EAAE,QAAQ;YACpB,GAAG,EAAE,YAAY,CAAC,MAAM;SACzB,CAAC,CAAC;QAEH,MAAM,WAAW,GAAG,IAAI,IAAI,CAC1B,YAAY,CAAC,gBAAgB;aAC1B,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC;aACjC,KAAK,CAAC,IAAI,CAAC;aACX,QAAQ,EAAE,CACd,CAAC,OAAO,EAAE,CAAC;QAEZ,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,YAAY,CAAC,aAAa;YAClC,UAAU,EAAE;gBACV,WAAW;aACZ;SACF,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,EAAE;IACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/armada-staking/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAMqB;AACrB,+CAA8D;AAC9D,uCAAsD;AACtD,uCAAyC;AACzC,iDAAsD;AAEtD,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY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AQ;YACpB,GAAG,EAAE,YAAY,CAAC,MAAM;YACxB,UAAU,EAAE;gBACV,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE;aAC7D;SACF,CAAC,CAAC;QAEH,MAAM,WAAW,GAAG,IAAI,IAAI,CAC1B,YAAY,CAAC,gBAAgB;aAC1B,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC;aACjC,KAAK,CAAC,IAAI,CAAC;aACX,QAAQ,EAAE,CACd,CAAC,OAAO,EAAE,CAAC;QAEZ,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,YAAY,CAAC,aAAa;YAClC,UAAU,EAAE;gBACV,WAAW;aACZ;SACF,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,EAAE;IACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -32,7 +32,11 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
32
32
  label: 'Staked',
33
33
  networkId: portfolio_core_1.NetworkId.solana,
34
34
  platformId: constants_1.platformId,
35
- data: { assets: [asset] },
35
+ data: {
36
+ assets: [asset],
37
+ ref: stakingAccount.pubkey.toString(),
38
+ link: 'https://app.aurory.io/staking',
39
+ },
36
40
  value: asset.value,
37
41
  },
38
42
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aurory/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AAGpC,2CAA8D;AAC9D,iDAAsD;AACtD,uCAAqD;AACrD,kFAA+E;AAC/E,uCAAqD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(this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
11
  Object.defineProperty(exports, "__esModule", { value: true });
15
12
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
13
  const constants_1 = require("./constants");
17
14
  const clients_1 = require("../../utils/clients");
18
15
  const solana_1 = require("../../utils/solana");
19
16
  const structs_1 = require("./structs");
20
- const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
17
+ const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
21
18
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
22
19
  const connection = (0, clients_1.getClientSolana)();
23
- const categoryOfferAccounts = yield (0, solana_1.getParsedProgramAccounts)(connection, structs_1.categoryOfferStruct, constants_1.offerPid, [
24
- { memcmp: { offset: 0, bytes: 'C' } },
25
- {
26
- memcmp: {
27
- bytes: owner,
28
- offset: 50,
20
+ const [categoryOfferAccounts, offerAccounts] = yield Promise.all([
21
+ (0, solana_1.getParsedProgramAccounts)(connection, structs_1.categoryOfferStruct, constants_1.offerPid, [
22
+ { memcmp: { offset: 0, bytes: 'C' } },
23
+ {
24
+ memcmp: {
25
+ bytes: owner,
26
+ offset: 50,
27
+ },
29
28
  },
30
- },
31
- ]);
32
- const offerAccounts = yield (0, solana_1.getParsedProgramAccounts)(connection, structs_1.offerStruct, constants_1.offerPid, [
33
- { memcmp: { offset: 0, bytes: '2' } },
34
- {
35
- memcmp: {
36
- bytes: owner,
37
- offset: 34,
29
+ ]),
30
+ (0, solana_1.getParsedProgramAccounts)(connection, structs_1.offerStruct, constants_1.offerPid, [
31
+ { memcmp: { offset: 0, bytes: '2' } },
32
+ {
33
+ memcmp: {
34
+ bytes: owner,
35
+ offset: 34,
36
+ },
38
37
  },
39
- },
38
+ ]),
40
39
  ]);
41
- if (offerAccounts.length === 0 && categoryOfferAccounts.length === 0)
40
+ if (!offerAccounts && categoryOfferAccounts)
42
41
  return [];
43
42
  const tokenPrices = yield cache.getTokenPricesAsMap([...offerAccounts.map((a) => a.mint.toString()), portfolio_core_1.solanaNativeAddress], portfolio_core_1.NetworkId.solana);
44
- const assets = [];
43
+ const registry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
44
+ const offerElement = registry.addElementMultiple({
45
+ label: 'Deposit',
46
+ link: `https://www.sns.id/profile?pubkey=${owner}&tab=offers`,
47
+ });
45
48
  [
46
49
  ...offerAccounts,
47
50
  ...categoryOfferAccounts.map((a) => (Object.assign(Object.assign({}, a), { mint: portfolio_core_1.solanaNativeAddress }))),
@@ -51,23 +54,13 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
51
54
  const tokenPrice = tokenPrices.get(acc.mint.toString());
52
55
  if (!tokenPrice)
53
56
  return;
54
- const amount = acc.amount.div(Math.pow(10, tokenPrice.decimals)).toNumber();
55
- const asset = (0, tokenPriceToAssetToken_1.default)(acc.mint.toString(), amount, portfolio_core_1.NetworkId.solana, tokenPrice);
56
- assets.push(asset);
57
+ offerElement.addAsset({
58
+ address: acc.mint.toString(),
59
+ amount: acc.amount,
60
+ ref: acc.pubkey.toString(),
61
+ });
57
62
  });
58
- if (assets.length === 0)
59
- return [];
60
- const element = {
61
- networkId: portfolio_core_1.NetworkId.solana,
62
- label: 'Deposit',
63
- platformId: constants_1.platformId,
64
- type: portfolio_core_1.PortfolioElementType.multiple,
65
- value: (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value)),
66
- data: {
67
- assets,
68
- },
69
- };
70
- return [element];
63
+ return registry.getElements(cache);
71
64
  });
72
65
  const fetcher = {
73
66
  id: `${constants_1.platformId}-offers`,
@@ -1 +1 @@
1
- {"version":3,"file":"offersFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/bon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kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"offersFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/bonfida/offersFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4E;AAE5E,2CAAmD;AAEnD,iDAAsD;AACtD,+CAA8D;AAC9D,uCAA6D;AAC7D,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,CAAC,qBAAqB,EAAE,aAAa,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC/D,IAAA,iCAAwB,EAAC,UAAU,EAAE,6BAAmB,EAAE,oBAAQ,EAAE;YAClE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;YACrC;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,EAAE;iBACX;aACF;SACF,CAAC;QACF,IAAA,iCAAwB,EAAC,UAAU,EAAE,qBAAW,EAAE,oBAAQ,EAAE;YAC1D,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;YACrC;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,EAAE;iBACX;aACF;SACF,CAAC;KACH,CAAC,CAAC;IAEH,IAAI,CAAC,aAAa,IAAI,qBAAqB;QAAE,OAAO,EAAE,CAAC;IAEvD,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,mBAAmB,CACjD,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE,oCAAmB,CAAC,EACrE,0BAAS,CAAC,MAAM,CACjB,CAAC;IAEF,MAAM,QAAQ,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IACnE,MAAM,YAAY,GAAG,QAAQ,CAAC,kBAAkB,CAAC;QAC/C,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,qCAAqC,KAAK,aAAa;KAC9D,CAAC,CAAC;IAEH;QACE,GAAG,aAAa;QAChB,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,iCAAM,CAAC,KAAE,IAAI,EAAE,oCAAmB,IAAG,CAAC;KAC3E,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QAChB,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE;YAAE,OAAO;QAChC,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QACxD,IAAI,CAAC,UAAU;YAAE,OAAO;QAExB,YAAY,CAAC,QAAQ,CAAC;YACpB,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE;YAC5B,MAAM,EAAE,GAAG,CAAC,MAAM;YAClB,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE;SAC3B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,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,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -8,9 +8,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
11
  Object.defineProperty(exports, "__esModule", { value: true });
15
12
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
13
  const constants_1 = require("./constants");
@@ -18,36 +15,33 @@ const clients_1 = require("../../utils/clients");
18
15
  const solana_1 = require("../../utils/solana");
19
16
  const structs_1 = require("./structs");
20
17
  const filters_1 = require("./filters");
21
- const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
18
+ const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
22
19
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
23
20
  const client = (0, clients_1.getClientSolana)();
24
21
  const accounts = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.stakeDepositReceiptStruct, constants_1.stakePid, (0, filters_1.stakeDepositReceiptFilter)(owner));
25
22
  if (accounts.length === 0)
26
23
  return [];
27
- const bonkTokenPrice = yield cache.getTokenPrice(constants_1.bonkMint, portfolio_core_1.NetworkId.solana);
28
- const assets = [];
24
+ const registry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
25
+ const stakeElement = registry.addElementMultiple({
26
+ label: 'Staked',
27
+ link: 'https://bonkrewards.com/',
28
+ });
29
29
  for (const account of accounts) {
30
+ if (account.depositAmount.isZero())
31
+ continue;
30
32
  const lockedUntil = (account.depositTimestamp.toNumber() +
31
33
  account.lockupDuration.toNumber()) *
32
34
  1000;
33
- if (account.depositAmount.isZero())
34
- continue;
35
- assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(constants_1.bonkMint, account.depositAmount.dividedBy(Math.pow(10, constants_1.bonkDecimals)).toNumber(), portfolio_core_1.NetworkId.solana, bonkTokenPrice)), { attributes: {
35
+ stakeElement.addAsset({
36
+ address: constants_1.bonkMint,
37
+ amount: account.depositAmount,
38
+ ref: account.pubkey,
39
+ attributes: {
36
40
  lockedUntil,
37
- } }));
41
+ },
42
+ });
38
43
  }
39
- if (assets.length === 0)
40
- return [];
41
- return [
42
- {
43
- type: portfolio_core_1.PortfolioElementType.multiple,
44
- label: 'Staked',
45
- networkId: portfolio_core_1.NetworkId.solana,
46
- platformId: constants_1.platformId,
47
- data: { assets },
48
- value: (0, portfolio_core_1.getUsdValueSum)(assets.map((asset) => asset.value)),
49
- },
50
- ];
44
+ return registry.getElements(cache);
51
45
  });
52
46
  const fetcher = {
53
47
  id: `${constants_1.platformId}-staking`,
@@ -1 +1 @@
1
- {"version":3,"file":"positionFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/bonkrewards/positionFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAEpC,2CAA2E;AAE3E,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAsD;AACtD,uCAAsD;AACtD,qGAA6E;AAE7E,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,mCAAyB,EACzB,oBAAQ,EACR,IAAA,mCAAyB,EAAC,KAAK,CAAC,CACjC,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,cAAc,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,oBAAQ,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;IAC7E,MAAM,MAAM,GAAqB,EAAE,CAAC;IACpC,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,WAAW,GACf,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,EAAE;YAClC,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC;YACpC,IAAI,CAAC;QACP,IAAI,OAAO,CAAC,aAAa,CAAC,MAAM,EAAE;YAAE,SAAS;QAE7C,MAAM,CAAC,IAAI,iCACN,IAAA,gCAAsB,EACvB,oBAAQ,EACR,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,wBAAY,CAAA,CAAC,CAAC,QAAQ,EAAE,EAC9D,0BAAS,CAAC,MAAM,EAChB,cAAc,CACf,KACD,UAAU,EAAE;gBACV,WAAW;aACZ,IACD,CAAC;IACL,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACnC,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,QAAQ;YACf,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,EAAE,MAAM,EAAE;YAChB,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAC1D;KACF,CAAC;AACJ,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":"positionFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/bonkrewards/positionFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAA6D;AAE7D,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAsD;AACtD,uCAAsD;AACtD,gFAA6E;AAE7E,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,mCAAyB,EACzB,oBAAQ,EACR,IAAA,mCAAyB,EAAC,KAAK,CAAC,CACjC,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IACnE,MAAM,YAAY,GAAG,QAAQ,CAAC,kBAAkB,CAAC;QAC/C,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,0BAA0B;KACjC,CAAC,CAAC;IAEH,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,IAAI,OAAO,CAAC,aAAa,CAAC,MAAM,EAAE;YAAE,SAAS;QAE7C,MAAM,WAAW,GACf,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,EAAE;YAClC,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC;YACpC,IAAI,CAAC;QAEP,YAAY,CAAC,QAAQ,CAAC;YACpB,OAAO,EAAE,oBAAQ;YACjB,MAAM,EAAE,OAAO,CAAC,aAAa;YAC7B,GAAG,EAAE,OAAO,CAAC,MAAM;YACnB,UAAU,EAAE;gBACV,WAAW;aACZ;SACF,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,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -32,6 +32,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
32
32
  const element = elementRegistry.addElementMultiple({
33
33
  label: 'Deposit',
34
34
  name: 'Thor V3',
35
+ link: 'https://legacy.cyberfrogs.io/faction-contracts-v3',
35
36
  });
36
37
  accounts.forEach((deposit) => {
37
38
  element.addAsset({
@@ -40,6 +41,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
40
41
  attributes: {
41
42
  lockedUntil: deposit.endTs.times(1000).toNumber(),
42
43
  },
44
+ ref: deposit.pubkey,
43
45
  });
44
46
  });
45
47
  return elementRegistry.getElements(cache);
@@ -1 +1 @@
1
- {"version":3,"file":"thorDepositFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cyberfrogs/thorDepositFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAA8C;AAE9C,iDAAsD;AACtD,uCAA0C;AAC1C,gFAA6E;AAC7E,+CAA8E;AAE9E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,uBAAa,EACb,eAAG,EACH;QACE;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,EAAE;aACX;SACF;QACD;YACE,QAAQ,EAAE,EAAE;SACb;KACF,CACF,CAAC;IAEF,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;QAChB,IAAI,EAAE,SAAS;KAChB,CAAC,CAAC;IAEH,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC3B,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,uBAAc;YACvB,MAAM,EAAE,OAAO,CAAC,cAAc;YAC9B,UAAU,EAAE;gBACV,WAAW,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;aAClD;SACF,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,eAAe;IAChC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"thorDepositFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cyberfrogs/thorDepositFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAA8C;AAE9C,iDAAsD;AACtD,uCAA0C;AAC1C,gFAA6E;AAC7E,+CAA8E;AAE9E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,uBAAa,EACb,eAAG,EACH;QACE;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,EAAE;aACX;SACF;QACD;YACE,QAAQ,EAAE,EAAE;SACb;KACF,CACF,CAAC;IAEF,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;QAChB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,mDAAmD;KAC1D,CAAC,CAAC;IAEH,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC3B,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,uBAAc;YACvB,MAAM,EAAE,OAAO,CAAC,cAAc;YAC9B,UAAU,EAAE;gBACV,WAAW,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;aAClD;YACD,GAAG,EAAE,OAAO,CAAC,MAAM;SACpB,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,eAAe;IAChC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -8,9 +8,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
11
  Object.defineProperty(exports, "__esModule", { value: true });
15
12
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
13
  const web3_js_1 = require("@solana/web3.js");
@@ -19,8 +16,8 @@ const clients_1 = require("../../utils/clients");
19
16
  const solana_1 = require("../../utils/solana");
20
17
  const realms_1 = require("./structs/realms");
21
18
  const filters_1 = require("./filters");
22
- const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
23
19
  const helpers_1 = require("./helpers");
20
+ const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
24
21
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
25
22
  const client = (0, clients_1.getClientSolana)();
26
23
  const realmData = yield cache.getItem('data', {
@@ -28,7 +25,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
28
25
  networkId: portfolio_core_1.NetworkId.solana,
29
26
  });
30
27
  if (!realmData)
31
- return [];
28
+ throw new Error('Realm data not cached');
32
29
  const splGovPrograms = realmData.govPrograms;
33
30
  const registrarById = new Map();
34
31
  const mintsSet = new Set();
@@ -36,37 +33,35 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
36
33
  realmData.registrars.forEach((registrarInfo) => {
37
34
  voterAccountsPubKeys.push((0, helpers_1.getVoterPda)(owner, registrarInfo.pubkey, registrarInfo.vsr));
38
35
  mintsSet.add(registrarInfo.mint);
39
- registrarById.set(registrarInfo.pubkey, registrarInfo.mint);
36
+ registrarById.set(registrarInfo.pubkey, registrarInfo);
40
37
  });
41
- const tempVoterAccounts = yield (0, solana_1.getParsedMultipleAccountsInfo)(client, realms_1.voterStruct, voterAccountsPubKeys);
42
38
  const getAccountSplGovPromises = [];
43
39
  if (splGovPrograms) {
44
40
  for (const program of splGovPrograms) {
45
41
  getAccountSplGovPromises.push((0, solana_1.getParsedProgramAccounts)(client, realms_1.voteStruct, new web3_js_1.PublicKey(program), (0, filters_1.voteFilters)(owner)));
46
42
  }
47
43
  }
48
- const splGovAccounts = (yield Promise.all(getAccountSplGovPromises)).flat();
44
+ const [splGovAccounts, tempVoterAccounts] = yield Promise.all([
45
+ (yield Promise.all(getAccountSplGovPromises)).flat(),
46
+ (0, solana_1.getParsedMultipleAccountsInfo)(client, realms_1.voterStruct, voterAccountsPubKeys),
47
+ ]);
49
48
  const voterAccounts = tempVoterAccounts;
50
49
  if (tempVoterAccounts.length === 0 && splGovAccounts.length === 0)
51
50
  return [];
52
51
  splGovAccounts.forEach((account) => mintsSet.add(account.mint.toString()));
53
- const mints = Array.from(mintsSet);
54
- const tokenPrices = yield cache.getTokenPrices(mints, portfolio_core_1.NetworkId.solana);
55
- if (!tokenPrices)
56
- return [];
57
- const tokenPriceByMint = new Map();
58
- tokenPrices.forEach((tP) => (tP ? tokenPriceByMint.set(tP.address, tP) : []));
59
- const realmsAssets = [];
60
- for (const voteAccount of splGovAccounts) {
52
+ const registry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
53
+ const depositElement = registry.addElementMultiple({
54
+ label: 'Deposit',
55
+ link: 'https://app.realms.today/realms',
56
+ });
57
+ for (const voteAccount of splGovAccounts.flat()) {
61
58
  if (voteAccount.amount.isZero())
62
59
  continue;
63
- const tokenMint = voteAccount.mint.toString();
64
- const tokenPrice = tokenPriceByMint.get(tokenMint);
65
- if (!tokenPrice)
66
- continue;
67
- const amount = voteAccount.amount.div(Math.pow(10, tokenPrice.decimals)).toNumber();
68
- const asset = (0, tokenPriceToAssetToken_1.default)(tokenMint, amount, portfolio_core_1.NetworkId.solana, tokenPrice);
69
- realmsAssets.push(asset);
60
+ depositElement.addAsset({
61
+ address: voteAccount.mint.toString(),
62
+ amount: voteAccount.amount,
63
+ ref: voteAccount.pubkey.toString(),
64
+ });
70
65
  }
71
66
  for (const voterAccount of voterAccounts) {
72
67
  if (!voterAccount)
@@ -74,32 +69,23 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
74
69
  const registrar = registrarById.get(voterAccount.registrar.toString());
75
70
  if (!registrar)
76
71
  continue;
77
- const mint = registrar;
78
- const tP = tokenPriceByMint.get(mint);
79
- if (!tP)
80
- continue;
72
+ const { mint } = registrar;
81
73
  for (const deposit of voterAccount.deposits) {
82
74
  if (!deposit.amountDepositedNative.isZero()) {
83
- const asset = (0, tokenPriceToAssetToken_1.default)(mint, deposit.amountDepositedNative.dividedBy(Math.pow(10, tP.decimals)).toNumber(), portfolio_core_1.NetworkId.solana, tP);
84
75
  const lockedUntil = (0, helpers_1.getLockedUntil)(deposit.lockup.startTs, deposit.lockup.endTs, deposit.lockup.kind);
85
- realmsAssets.push(lockedUntil ? Object.assign(Object.assign({}, asset), { attributes: { lockedUntil } }) : asset);
76
+ depositElement.addAsset({
77
+ address: mint,
78
+ amount: deposit.amountDepositedNative,
79
+ ref: voterAccount.pubkey.toString(),
80
+ attributes: {
81
+ lockedUntil,
82
+ },
83
+ sourceRefs: [{ name: 'Vault', address: registrar.pubkey }],
84
+ });
86
85
  }
87
86
  }
88
87
  }
89
- const elements = [];
90
- if (realmsAssets.length > 0) {
91
- elements.push({
92
- networkId: portfolio_core_1.NetworkId.solana,
93
- platformId: constants_1.platformId,
94
- type: 'multiple',
95
- label: 'Deposit',
96
- value: (0, portfolio_core_1.getUsdValueSum)(realmsAssets.map((a) => a.value)),
97
- data: {
98
- assets: realmsAssets,
99
- },
100
- });
101
- }
102
- return elements;
88
+ return registry.getElements(cache);
103
89
  });
104
90
  const fetcher = {
105
91
  id: `${constants_1.platformId}-deposits`,
@@ -1 +1 @@
1
- {"version":3,"file":"realmsDepositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/daos/realmsDepositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,6CAA4C;AAG5C,2CAAyC;AACzC,iDAAsD;AACtD,+CAG4B;AAC5B,6CAA2D;AAC3D,uCAAwC;AACxC,qGAA6E;AAC7E,uCAAwD;AAGxD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,OAAO,CAAY,MAAM,EAAE;QACvD,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IAEH,IAAI,CAAC,SAAS;QAAE,OAAO,EAAE,CAAC;IAE1B,MAAM,cAAc,GAAG,SAAS,CAAC,WAAW,CAAC;IAC7C,MAAM,aAAa,GAAwB,IAAI,GAAG,EAAE,CAAC;IACrD,MAAM,QAAQ,GAAgB,IAAI,GAAG,EAAE,CAAC;IAExC,MAAM,oBAAoB,GAAgB,EAAE,CAAC;IAC7C,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,EAAE;QAC7C,oBAAoB,CAAC,IAAI,CACvB,IAAA,qBAAW,EAAC,KAAK,EAAE,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,CAC5D,CAAC;QACF,QAAQ,CAAC,GAAG,CAA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