@sonarwatch/portfolio-plugins 0.14.127 → 0.14.129

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 (208) hide show
  1. package/CHANGELOG.md +2124 -2110
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/index.d.ts +1 -0
  5. package/src/index.js +8 -1
  6. package/src/index.js.map +1 -1
  7. package/src/plugins/adrena/positionsFetcher.js +1 -0
  8. package/src/plugins/adrena/positionsFetcher.js.map +1 -1
  9. package/src/plugins/allbridge/positionsFetcher.js +9 -1
  10. package/src/plugins/allbridge/positionsFetcher.js.map +1 -1
  11. package/src/plugins/armada-staking/stakingFetcher.js +4 -1
  12. package/src/plugins/armada-staking/stakingFetcher.js.map +1 -1
  13. package/src/plugins/aurory/stakingFetcher.js +5 -1
  14. package/src/plugins/aurory/stakingFetcher.js.map +1 -1
  15. package/src/plugins/balancer/helpers/pools.js +21 -21
  16. package/src/plugins/bonfida/offersFetcher.js +30 -37
  17. package/src/plugins/bonfida/offersFetcher.js.map +1 -1
  18. package/src/plugins/bonkrewards/positionFetcher.js +16 -22
  19. package/src/plugins/bonkrewards/positionFetcher.js.map +1 -1
  20. package/src/plugins/cyberfrogs/thorDepositFetcher.js +2 -0
  21. package/src/plugins/cyberfrogs/thorDepositFetcher.js.map +1 -1
  22. package/src/plugins/daos/realmsDepositsFetcher.js +29 -43
  23. package/src/plugins/daos/realmsDepositsFetcher.js.map +1 -1
  24. package/src/plugins/debridge/dlmmVaultsFetcher.js +16 -10
  25. package/src/plugins/debridge/dlmmVaultsFetcher.js.map +1 -1
  26. package/src/plugins/defiland/stakingFetcher.js +8 -1
  27. package/src/plugins/defiland/stakingFetcher.js.map +1 -1
  28. package/src/plugins/defituna/lendingFetcher.js +3 -0
  29. package/src/plugins/defituna/lendingFetcher.js.map +1 -1
  30. package/src/plugins/defituna/positionsFetcher.js +7 -1
  31. package/src/plugins/defituna/positionsFetcher.js.map +1 -1
  32. package/src/plugins/defituna/structs.d.ts +1 -0
  33. package/src/plugins/defituna/structs.js.map +1 -1
  34. package/src/plugins/divvy/constants.d.ts +1 -0
  35. package/src/plugins/divvy/constants.js +2 -1
  36. package/src/plugins/divvy/constants.js.map +1 -1
  37. package/src/plugins/divvy/housePoolFetcher.js +3 -0
  38. package/src/plugins/divvy/housePoolFetcher.js.map +1 -1
  39. package/src/plugins/divvy/stakingFetcher.js +3 -1
  40. package/src/plugins/divvy/stakingFetcher.js.map +1 -1
  41. package/src/plugins/drift/depositsFetcher.js +15 -0
  42. package/src/plugins/drift/depositsFetcher.js.map +1 -1
  43. package/src/plugins/drift-market-maker-vault/depositsFetcher.js +2 -1
  44. package/src/plugins/drift-market-maker-vault/depositsFetcher.js.map +1 -1
  45. package/src/plugins/drift-market-maker-vault/index.js +5 -2
  46. package/src/plugins/drift-market-maker-vault/index.js.map +1 -1
  47. package/src/plugins/elemental/depositFetcher.js +3 -0
  48. package/src/plugins/elemental/depositFetcher.js.map +1 -1
  49. package/src/plugins/ensofi/solanaLoansFetcher.js +6 -0
  50. package/src/plugins/ensofi/solanaLoansFetcher.js.map +1 -1
  51. package/src/plugins/exponent/liquidityFetcher.js +1 -0
  52. package/src/plugins/exponent/liquidityFetcher.js.map +1 -1
  53. package/src/plugins/exponent/tradeFetcher.js +1 -0
  54. package/src/plugins/exponent/tradeFetcher.js.map +1 -1
  55. package/src/plugins/famousfoxfederation/stakingFetcher.js +18 -22
  56. package/src/plugins/famousfoxfederation/stakingFetcher.js.map +1 -1
  57. package/src/plugins/flash/perpetualFetcher.js +1 -1
  58. package/src/plugins/flash/perpetualFetcher.js.map +1 -1
  59. package/src/plugins/fragmetric/pricingJob.js +6 -0
  60. package/src/plugins/fragmetric/pricingJob.js.map +1 -1
  61. package/src/plugins/francium/lendingFetcher.js +1 -0
  62. package/src/plugins/francium/lendingFetcher.js.map +1 -1
  63. package/src/plugins/futarchy/daosJob.js +9 -0
  64. package/src/plugins/futarchy/daosJob.js.map +1 -1
  65. package/src/plugins/genesysgo/stakingFetcher.js +12 -25
  66. package/src/plugins/genesysgo/stakingFetcher.js.map +1 -1
  67. package/src/plugins/goosefx/stakingFetcher.js +18 -27
  68. package/src/plugins/goosefx/stakingFetcher.js.map +1 -1
  69. package/src/plugins/gpool/stakingFetcher.js +5 -1
  70. package/src/plugins/gpool/stakingFetcher.js.map +1 -1
  71. package/src/plugins/guano/constants.d.ts +8 -0
  72. package/src/plugins/guano/constants.js +15 -0
  73. package/src/plugins/guano/constants.js.map +1 -0
  74. package/src/plugins/guano/filters.d.ts +20 -0
  75. package/src/plugins/guano/filters.js +41 -0
  76. package/src/plugins/guano/filters.js.map +1 -0
  77. package/src/plugins/guano/index.d.ts +6 -0
  78. package/src/plugins/guano/index.js +10 -0
  79. package/src/plugins/guano/index.js.map +1 -0
  80. package/src/plugins/guano/stakingFetcher.d.ts +3 -0
  81. package/src/plugins/guano/stakingFetcher.js +70 -0
  82. package/src/plugins/guano/stakingFetcher.js.map +1 -0
  83. package/src/plugins/guano/structs.d.ts +34 -0
  84. package/src/plugins/guano/structs.js +33 -0
  85. package/src/plugins/guano/structs.js.map +1 -0
  86. package/src/plugins/guano/types.d.ts +15 -0
  87. package/src/plugins/guano/types.js +3 -0
  88. package/src/plugins/guano/types.js.map +1 -0
  89. package/src/plugins/hedgehog/ammJob.js +8 -0
  90. package/src/plugins/hedgehog/ammJob.js.map +1 -1
  91. package/src/plugins/hxro/stakingFetcher.js +2 -0
  92. package/src/plugins/hxro/stakingFetcher.js.map +1 -1
  93. package/src/plugins/iloop/depositsFetcher.js +8 -0
  94. package/src/plugins/iloop/depositsFetcher.js.map +1 -1
  95. package/src/plugins/jupiter/exchange/dcaFetcher.js +5 -1
  96. package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
  97. package/src/plugins/jupiter/exchange/limitFetcher.js +2 -0
  98. package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -1
  99. package/src/plugins/jupiter/exchange/valueAverageFetcher.js +1 -0
  100. package/src/plugins/jupiter/exchange/valueAverageFetcher.js.map +1 -1
  101. package/src/plugins/kamino/lendsFetcher.js +6 -0
  102. package/src/plugins/kamino/lendsFetcher.js.map +1 -1
  103. package/src/plugins/kamino/ordersFetcher.js +2 -0
  104. package/src/plugins/kamino/ordersFetcher.js.map +1 -1
  105. package/src/plugins/layer3/stakingFetcher.js +1 -0
  106. package/src/plugins/layer3/stakingFetcher.js.map +1 -1
  107. package/src/plugins/lifinity/lockerFetcher.js +14 -17
  108. package/src/plugins/lifinity/lockerFetcher.js.map +1 -1
  109. package/src/plugins/loverflow/airdropClaimFetcher.js +1 -0
  110. package/src/plugins/loverflow/airdropClaimFetcher.js.map +1 -1
  111. package/src/plugins/magiceden/escrowFetcher.js +12 -18
  112. package/src/plugins/magiceden/escrowFetcher.js.map +1 -1
  113. package/src/plugins/marginfi/helpers.d.ts +2 -1
  114. package/src/plugins/marginfi/helpers.js +8 -2
  115. package/src/plugins/marginfi/helpers.js.map +1 -1
  116. package/src/plugins/marinade/ticketsFetcher.js +14 -31
  117. package/src/plugins/marinade/ticketsFetcher.js.map +1 -1
  118. package/src/plugins/metaplex/resizableNftFetcher.js +1 -0
  119. package/src/plugins/metaplex/resizableNftFetcher.js.map +1 -1
  120. package/src/plugins/nxfinance/positionsFetcher.js +19 -2
  121. package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
  122. package/src/plugins/orca/getWhirlpoolPositions.js +10 -1
  123. package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
  124. package/src/plugins/parcl/depositsFetcher.js +1 -1
  125. package/src/plugins/parcl/depositsFetcher.js.map +1 -1
  126. package/src/plugins/parcl/marginFetcher.js +1 -1
  127. package/src/plugins/parcl/marginFetcher.js.map +1 -1
  128. package/src/plugins/parcl/stakingFetcher.js +6 -3
  129. package/src/plugins/parcl/stakingFetcher.js.map +1 -1
  130. package/src/plugins/photofinish/stakingFetcher.js +6 -1
  131. package/src/plugins/photofinish/stakingFetcher.js.map +1 -1
  132. package/src/plugins/picasso/unstakingPositionsFetcher.js +3 -2
  133. package/src/plugins/picasso/unstakingPositionsFetcher.js.map +1 -1
  134. package/src/plugins/pluto/earnFetcher.js +1 -1
  135. package/src/plugins/pluto/earnFetcher.js.map +1 -1
  136. package/src/plugins/pluto/leverageFetcher.js +37 -26
  137. package/src/plugins/pluto/leverageFetcher.js.map +1 -1
  138. package/src/plugins/pluto/structs.d.ts +0 -2
  139. package/src/plugins/pluto/structs.js +0 -2
  140. package/src/plugins/pluto/structs.js.map +1 -1
  141. package/src/plugins/quarry/calculatePositions.js +7 -1
  142. package/src/plugins/quarry/calculatePositions.js.map +1 -1
  143. package/src/plugins/quarry/positionsFetcher.js +2 -0
  144. package/src/plugins/quarry/positionsFetcher.js.map +1 -1
  145. package/src/plugins/quarry/types.d.ts +3 -0
  146. package/src/plugins/ratex/positionsFetcher.js +2 -0
  147. package/src/plugins/ratex/positionsFetcher.js.map +1 -1
  148. package/src/plugins/saber/lpTokensJob.js +1 -0
  149. package/src/plugins/saber/lpTokensJob.js.map +1 -1
  150. package/src/plugins/sandglass/depositFetcher.js +3 -0
  151. package/src/plugins/sandglass/depositFetcher.js.map +1 -1
  152. package/src/plugins/sharky/loansFetcher.js +1 -0
  153. package/src/plugins/sharky/loansFetcher.js.map +1 -1
  154. package/src/plugins/solayer/airdropFetcher.d.ts +3 -0
  155. package/src/plugins/solayer/airdropFetcher.js +55 -0
  156. package/src/plugins/solayer/airdropFetcher.js.map +1 -0
  157. package/src/plugins/solayer/constants.d.ts +5 -0
  158. package/src/plugins/solayer/constants.js +13 -1
  159. package/src/plugins/solayer/constants.js.map +1 -1
  160. package/src/plugins/solayer/index.d.ts +2 -0
  161. package/src/plugins/solayer/index.js +4 -2
  162. package/src/plugins/solayer/index.js.map +1 -1
  163. package/src/plugins/solayer/proofsFetcher.js +7 -6
  164. package/src/plugins/solayer/proofsFetcher.js.map +1 -1
  165. package/src/plugins/solayer/types.d.ts +8 -0
  166. package/src/plugins/solayer/types.js +3 -0
  167. package/src/plugins/solayer/types.js.map +1 -0
  168. package/src/plugins/spdr/stakingFetcher.js +3 -0
  169. package/src/plugins/spdr/stakingFetcher.js.map +1 -1
  170. package/src/plugins/stabble/poolsJob.js +1 -0
  171. package/src/plugins/stabble/poolsJob.js.map +1 -1
  172. package/src/plugins/staratlas/lockersFetcher.js +2 -0
  173. package/src/plugins/staratlas/lockersFetcher.js.map +1 -1
  174. package/src/plugins/staratlas/stakingFetcher.js +2 -1
  175. package/src/plugins/staratlas/stakingFetcher.js.map +1 -1
  176. package/src/plugins/streamflow/vestingFetcher.js +1 -1
  177. package/src/plugins/streamflow/vestingFetcher.js.map +1 -1
  178. package/src/plugins/sushiswap/helpers.js +24 -24
  179. package/src/plugins/tensor/bidsFetcher.js +1 -1
  180. package/src/plugins/tensor/bidsFetcher.js.map +1 -1
  181. package/src/plugins/texture/loansFetcher.js +2 -1
  182. package/src/plugins/texture/loansFetcher.js.map +1 -1
  183. package/src/plugins/tokens/fetchers/solana-simple.d.ts +3 -0
  184. package/src/plugins/tokens/fetchers/solana-simple.js +66 -0
  185. package/src/plugins/tokens/fetchers/solana-simple.js.map +1 -0
  186. package/src/plugins/tokens/getTokenListsJob.js +1 -1
  187. package/src/plugins/tokens/getTokenListsJob.js.map +1 -1
  188. package/src/plugins/tokens/index.d.ts +2 -0
  189. package/src/plugins/tokens/index.js +3 -1
  190. package/src/plugins/tokens/index.js.map +1 -1
  191. package/src/plugins/tulip/depositsFetcher.js +3 -1
  192. package/src/plugins/tulip/depositsFetcher.js.map +1 -1
  193. package/src/plugins/uniswap-v2/helpers.js +22 -22
  194. package/src/plugins/uxd/stakingFetcher.js +4 -3
  195. package/src/plugins/uxd/stakingFetcher.js.map +1 -1
  196. package/src/plugins/vaultka/lendingFetcher.js +5 -0
  197. package/src/plugins/vaultka/lendingFetcher.js.map +1 -1
  198. package/src/plugins/vaultka/strategyFetcher.js +3 -0
  199. package/src/plugins/vaultka/strategyFetcher.js.map +1 -1
  200. package/src/plugins/whalesmarket/depositFetcher.js +7 -5
  201. package/src/plugins/whalesmarket/depositFetcher.js.map +1 -1
  202. package/src/plugins/zelo/positionsFetcher.js +2 -0
  203. package/src/plugins/zelo/positionsFetcher.js.map +1 -1
  204. package/src/plugins/zeta/airdropFetcher.js +14 -14
  205. package/src/plugins/zeta/depositsFetcher.js +5 -1
  206. package/src/plugins/zeta/depositsFetcher.js.map +1 -1
  207. package/src/utils/sei/constants.js +8 -8
  208. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -94,12 +94,12 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
94
94
  .toNumber();
95
95
  if (fill === 0 && offer.status === structs_1.OfferStatus.Closed)
96
96
  continue;
97
- const collatAsset = (0, tokenPriceToAssetToken_1.default)(mint, collateral, portfolio_core_1.NetworkId.solana, tokenPrice, undefined, {
97
+ const collatAsset = Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(mint, collateral, portfolio_core_1.NetworkId.solana, tokenPrice, undefined, {
98
98
  tags: isEnded
99
99
  ? undefined
100
100
  : [`${structs_1.OfferType[offer.offerType]} Offer`, `${fill}% Filled`],
101
101
  isClaimable: isEnded ? true : undefined,
102
- });
102
+ })), { ref: offer.pubkey.toString() });
103
103
  const existingAssets = assetsById.get(id);
104
104
  if (!existingAssets) {
105
105
  assetsById.set(id, [collatAsset]);
@@ -133,9 +133,11 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
133
133
  const amountToCollatAmount = collateral.dividedBy(offer.totalAmount);
134
134
  const amount = order.amount.times(amountToCollatAmount).toNumber();
135
135
  const side = offer.offerType === structs_1.OfferType.Buy ? 'Sell Order' : 'Buy Order';
136
- const collatAsset = (0, tokenPriceToAssetToken_1.default)(mint, amount, portfolio_core_1.NetworkId.solana, tokenPrice, undefined, {
136
+ const collatAsset = Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(mint, amount, portfolio_core_1.NetworkId.solana, tokenPrice, undefined, {
137
137
  tags: [side],
138
- });
138
+ })), { ref: order.pubkey.toString(), sourceRefs: [
139
+ { name: 'Pool', address: offer.pubkey.toString() },
140
+ ] });
139
141
  const existingAssets = assetsById.get(id);
140
142
  if (!existingAssets) {
141
143
  assetsById.set(id, [collatAsset]);
@@ -166,7 +168,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
166
168
  name: `${type} : ${info.symbol} (${info.status})`,
167
169
  networkId: portfolio_core_1.NetworkId.solana,
168
170
  platformId: constants_1.platformId,
169
- data: { assets },
171
+ data: { assets, link: 'https://pro.whales.market/dashboard' },
170
172
  value: (0, portfolio_core_1.getUsdValueSum)(assets.map((asset) => asset.value)),
171
173
  });
172
174
  }
@@ -1 +1 @@
1
- {"version":3,"file":"depositFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/whalesmarket/depositFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,6CAA4C;AAG5C,2CAAyD;AACzD,iDAAsD;AACtD,+CAG4B;AAC5B,uCAQmB;AACnB,uCAAyE;AACzE,qGAA6E;AAC7E,mCAA0C;AAE1C,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACpE,IAAA,iCAAwB,EAAC,MAAM,EAAE,qBAAW,EAAE,eAAG,EAAE,IAAA,qBAAW,EAAC,KAAK,CAAC,CAAC;QACtE,IAAA,iCAAwB,EAAC,MAAM,EAAE,qBAAW,EAAE,eAAG,EAAE,IAAA,wBAAc,EAAC,KAAK,CAAC,CAAC;QACzE,IAAA,iCAAwB,EAAC,MAAM,EAAE,qBAAW,EAAE,eAAG,EAAE,IAAA,yBAAe,EAAC,KA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AAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAElC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI;YAAE,SAAS;QAC/B,IAAI,IAAI,CAAC;QACT,IAAI,IAAI,CAAC,QAAQ,KAAK,gBAAQ,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,GAAG,QAAQ,CAAC;QAClB,CAAC;aAAM,IAAI,IAAI,CAAC,QAAQ,KAAK,gBAAQ,CAAC,SAAS,EAAE,CAAC;YAChD,IAAI,GAAG,YAAY,CAAC;QACtB,CAAC;QAED,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,GAAG,IAAI,MAAM,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,GAAG;YACjD,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,CAAC,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,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":"depositFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/whalesmarket/depositFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,6CAA4C;AAG5C,2CAAyD;AACzD,iDAAsD;AACtD,+CAI4B;AAC5B,uCAQmB;AACnB,uCAAyE;AACzE,qGAA6E;AAC7E,mCAA0C;AAE1C,MAAM,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CAAC,MAAM,GAAG;YACjD,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,qCAAqC,EAAE;YAC7D,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAC1D,CAAC,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,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"}
@@ -24,6 +24,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
24
24
  const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
25
25
  const element = elementRegistry.addElementMultiple({
26
26
  label: 'Deposit',
27
+ ref: userAccount.pubkey,
28
+ link: 'https://www.zelofi.io/dapp',
27
29
  });
28
30
  element.addAsset({
29
31
  address: portfolio_core_1.solanaNativeAddress,
@@ -1 +1 @@
1
- {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zelo/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4E;AAC5E,6CAA4C;AAE5C,2CAAoD;AAEpD,iDAAsD;AACtD,uCAA6C;AAC7C,gFAA6E;AAC7E,kFAA+E;AAE/E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,WAAW,GAAG,MAAM,IAAA,2CAAoB,EAC5C,UAAU,EACV,0BAAgB,EAChB,mBAAS,CAAC,sBAAsB,CAC9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AC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,EACzD,qBAAS,CACV,CAAC,CAAC,CAAC,CACL,CAAC;IAEF,IAAI,CAAC,WAAW;QAAE,OAAO,EAAE,CAAC;IAE5B,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,GAAG,EAAE,WAAW,CAAC,MAAM;QACvB,IAAI,EAAE,4BAA4B;KACnC,CAAC,CAAC;IAEH,OAAO,CAAC,QAAQ,CAAC;QACf,OAAO,EAAE,oCAAmB;QAC5B,MAAM,EAAE,WAAW,CAAC,UAAU;KAC/B,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"}
@@ -40,20 +40,20 @@ const clients_1 = require("../../utils/clients");
40
40
  const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAccountsInfoSafe");
41
41
  const helpers_1 = require("./helpers");
42
42
  const AirdropFetcher_1 = require("../../AirdropFetcher");
43
- const query = (0, graphql_request_1.gql) `
44
- query GetAirdropFinalFrontend($authority: String!) {
45
- getAirdropFinalFrontend(authority: $authority) {
46
- authority
47
- community_allocation
48
- eligibility
49
- main_allocation
50
- og_allocation
51
- s1_allocation
52
- s2_allocation
53
- total_allocation
54
- __typename
55
- }
56
- }
43
+ const query = (0, graphql_request_1.gql) `
44
+ query GetAirdropFinalFrontend($authority: String!) {
45
+ getAirdropFinalFrontend(authority: $authority) {
46
+ authority
47
+ community_allocation
48
+ eligibility
49
+ main_allocation
50
+ og_allocation
51
+ s1_allocation
52
+ s2_allocation
53
+ total_allocation
54
+ __typename
55
+ }
56
+ }
57
57
  `;
58
58
  const networkId = portfolio_core_1.NetworkId.solana;
59
59
  const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
@@ -49,7 +49,11 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
49
49
  platformId: constants_1.platformId,
50
50
  name: `N° ${account.subaccountIndex.toString()}`,
51
51
  type: portfolio_core_1.PortfolioElementType.multiple,
52
- data: { assets: [asset] },
52
+ data: {
53
+ assets: [asset],
54
+ ref: account.pubkey.toString(),
55
+ link: 'https://dex.zeta.markets/portfolio',
56
+ },
53
57
  value: asset.value,
54
58
  });
55
59
  }
@@ -1 +1 @@
1
- {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,6CAA4C;AAG5C,2CAAoD;AACpD,iDAAsD;AACtD,uCAAmD;AACnD,+CAG4B;AAC5B,uCAAqD;AACrD,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,cAAc,GAAG,MAAM,KAAK,CAAC,aAAa,CAC9C,uBAAc,EACd,0BAAS,CAAC,MAAM,CACjB,CAAC;IACF,IAAI,CAAC,cAAc;QAAE,OAAO,EAAE,CAAC;IAE/B,IAAI,EAAE,GAAG,CAAC,CAAC;IACX,MAAM,YAAY,GAAG,EAAE,CAAC;IACxB,IAAI,aAAa,CAAC;IAClB,GAAG,CAAC;QACF,MAAM,cAAc,GAAG,IAAA,gCAAsB,EAC3C,qBAAS,EACT,IAAI,mBAAS,CAAC,KAAK,CAAC,EACpB,EAAE,EACF,EAAE,GAAG,CAAC,CACP,CAAC;QACF,aAAa,GAAG,MAAM,IAAA,sCAA6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AAO,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,cAAc,CAAC,QAAQ,CAAA,CAAC,CAAC,QAAQ,EAAE,EACnE,0BAAS,CAAC,MAAM,EAChB,cAAc,CACf,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC;YACZ,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,MAAM,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,EAAE;YAChD,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,IAAI,EAAE;gBACJ,MAAM,EAAE,CAAC,KAAK,CAAC;gBACf,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE;gBAC9B,IAAI,EAAE,oCAAoC;aAC3C;YACD,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB,CAAC,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,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"}
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.poolQueryMsg = exports.minterQueryMsg = exports.tokenInfoQueryMsg = exports.infoQueryMsg = void 0;
4
- exports.infoQueryMsg = JSON.parse(`{
5
- "info": {}
4
+ exports.infoQueryMsg = JSON.parse(`{
5
+ "info": {}
6
6
  }`);
7
- exports.tokenInfoQueryMsg = JSON.parse(`{
8
- "token_info": {}
7
+ exports.tokenInfoQueryMsg = JSON.parse(`{
8
+ "token_info": {}
9
9
  }`);
10
- exports.minterQueryMsg = JSON.parse(`{
11
- "minter": {}
10
+ exports.minterQueryMsg = JSON.parse(`{
11
+ "minter": {}
12
12
  }`);
13
- exports.poolQueryMsg = JSON.parse(`{
14
- "pool": {}
13
+ exports.poolQueryMsg = JSON.parse(`{
14
+ "pool": {}
15
15
  }`);
16
16
  //# sourceMappingURL=constants.js.map
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  function getQueryBalanceByOwner(owner) {
4
- return JSON.parse(`{
5
- "balance": {
6
- "address": "${owner}"
7
- }
4
+ return JSON.parse(`{
5
+ "balance": {
6
+ "address": "${owner}"
7
+ }
8
8
  }`);
9
9
  }
10
10
  exports.default = getQueryBalanceByOwner;