@sonarwatch/portfolio-plugins 0.14.128 → 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 (190) hide show
  1. package/CHANGELOG.md +2124 -2120
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/index.js +5 -0
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/adrena/positionsFetcher.js +1 -0
  7. package/src/plugins/adrena/positionsFetcher.js.map +1 -1
  8. package/src/plugins/allbridge/positionsFetcher.js +9 -1
  9. package/src/plugins/allbridge/positionsFetcher.js.map +1 -1
  10. package/src/plugins/armada-staking/stakingFetcher.js +4 -1
  11. package/src/plugins/armada-staking/stakingFetcher.js.map +1 -1
  12. package/src/plugins/aurory/stakingFetcher.js +5 -1
  13. package/src/plugins/aurory/stakingFetcher.js.map +1 -1
  14. package/src/plugins/balancer/helpers/pools.js +21 -21
  15. package/src/plugins/bonfida/offersFetcher.js +30 -37
  16. package/src/plugins/bonfida/offersFetcher.js.map +1 -1
  17. package/src/plugins/bonkrewards/positionFetcher.js +16 -22
  18. package/src/plugins/bonkrewards/positionFetcher.js.map +1 -1
  19. package/src/plugins/cyberfrogs/thorDepositFetcher.js +2 -0
  20. package/src/plugins/cyberfrogs/thorDepositFetcher.js.map +1 -1
  21. package/src/plugins/daos/realmsDepositsFetcher.js +29 -43
  22. package/src/plugins/daos/realmsDepositsFetcher.js.map +1 -1
  23. package/src/plugins/debridge/dlmmVaultsFetcher.js +16 -10
  24. package/src/plugins/debridge/dlmmVaultsFetcher.js.map +1 -1
  25. package/src/plugins/defiland/stakingFetcher.js +8 -1
  26. package/src/plugins/defiland/stakingFetcher.js.map +1 -1
  27. package/src/plugins/defituna/lendingFetcher.js +3 -0
  28. package/src/plugins/defituna/lendingFetcher.js.map +1 -1
  29. package/src/plugins/defituna/positionsFetcher.js +7 -1
  30. package/src/plugins/defituna/positionsFetcher.js.map +1 -1
  31. package/src/plugins/defituna/structs.d.ts +1 -0
  32. package/src/plugins/defituna/structs.js.map +1 -1
  33. package/src/plugins/divvy/constants.d.ts +1 -0
  34. package/src/plugins/divvy/constants.js +2 -1
  35. package/src/plugins/divvy/constants.js.map +1 -1
  36. package/src/plugins/divvy/housePoolFetcher.js +3 -0
  37. package/src/plugins/divvy/housePoolFetcher.js.map +1 -1
  38. package/src/plugins/divvy/stakingFetcher.js +3 -1
  39. package/src/plugins/divvy/stakingFetcher.js.map +1 -1
  40. package/src/plugins/drift/depositsFetcher.js +15 -0
  41. package/src/plugins/drift/depositsFetcher.js.map +1 -1
  42. package/src/plugins/drift-market-maker-vault/depositsFetcher.js +2 -1
  43. package/src/plugins/drift-market-maker-vault/depositsFetcher.js.map +1 -1
  44. package/src/plugins/elemental/depositFetcher.js +3 -0
  45. package/src/plugins/elemental/depositFetcher.js.map +1 -1
  46. package/src/plugins/ensofi/solanaLoansFetcher.js +6 -0
  47. package/src/plugins/ensofi/solanaLoansFetcher.js.map +1 -1
  48. package/src/plugins/exponent/liquidityFetcher.js +1 -0
  49. package/src/plugins/exponent/liquidityFetcher.js.map +1 -1
  50. package/src/plugins/exponent/tradeFetcher.js +1 -0
  51. package/src/plugins/exponent/tradeFetcher.js.map +1 -1
  52. package/src/plugins/famousfoxfederation/stakingFetcher.js +18 -22
  53. package/src/plugins/famousfoxfederation/stakingFetcher.js.map +1 -1
  54. package/src/plugins/flash/perpetualFetcher.js +1 -1
  55. package/src/plugins/flash/perpetualFetcher.js.map +1 -1
  56. package/src/plugins/fragmetric/pricingJob.js +6 -0
  57. package/src/plugins/fragmetric/pricingJob.js.map +1 -1
  58. package/src/plugins/francium/lendingFetcher.js +1 -0
  59. package/src/plugins/francium/lendingFetcher.js.map +1 -1
  60. package/src/plugins/futarchy/daosJob.js +9 -0
  61. package/src/plugins/futarchy/daosJob.js.map +1 -1
  62. package/src/plugins/genesysgo/stakingFetcher.js +12 -25
  63. package/src/plugins/genesysgo/stakingFetcher.js.map +1 -1
  64. package/src/plugins/goosefx/stakingFetcher.js +18 -27
  65. package/src/plugins/goosefx/stakingFetcher.js.map +1 -1
  66. package/src/plugins/gpool/stakingFetcher.js +5 -1
  67. package/src/plugins/gpool/stakingFetcher.js.map +1 -1
  68. package/src/plugins/guano/constants.d.ts +8 -0
  69. package/src/plugins/guano/constants.js +15 -0
  70. package/src/plugins/guano/constants.js.map +1 -0
  71. package/src/plugins/guano/filters.d.ts +20 -0
  72. package/src/plugins/guano/filters.js +41 -0
  73. package/src/plugins/guano/filters.js.map +1 -0
  74. package/src/plugins/guano/index.d.ts +6 -0
  75. package/src/plugins/guano/index.js +10 -0
  76. package/src/plugins/guano/index.js.map +1 -0
  77. package/src/plugins/guano/stakingFetcher.d.ts +3 -0
  78. package/src/plugins/guano/stakingFetcher.js +70 -0
  79. package/src/plugins/guano/stakingFetcher.js.map +1 -0
  80. package/src/plugins/guano/structs.d.ts +34 -0
  81. package/src/plugins/guano/structs.js +33 -0
  82. package/src/plugins/guano/structs.js.map +1 -0
  83. package/src/plugins/guano/types.d.ts +15 -0
  84. package/src/plugins/guano/types.js +3 -0
  85. package/src/plugins/guano/types.js.map +1 -0
  86. package/src/plugins/hedgehog/ammJob.js +8 -0
  87. package/src/plugins/hedgehog/ammJob.js.map +1 -1
  88. package/src/plugins/hxro/stakingFetcher.js +2 -0
  89. package/src/plugins/hxro/stakingFetcher.js.map +1 -1
  90. package/src/plugins/iloop/depositsFetcher.js +8 -0
  91. package/src/plugins/iloop/depositsFetcher.js.map +1 -1
  92. package/src/plugins/jupiter/exchange/dcaFetcher.js +5 -1
  93. package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
  94. package/src/plugins/jupiter/exchange/limitFetcher.js +2 -0
  95. package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -1
  96. package/src/plugins/jupiter/exchange/valueAverageFetcher.js +1 -0
  97. package/src/plugins/jupiter/exchange/valueAverageFetcher.js.map +1 -1
  98. package/src/plugins/kamino/lendsFetcher.js +6 -0
  99. package/src/plugins/kamino/lendsFetcher.js.map +1 -1
  100. package/src/plugins/kamino/ordersFetcher.js +2 -1
  101. package/src/plugins/kamino/ordersFetcher.js.map +1 -1
  102. package/src/plugins/layer3/stakingFetcher.js +1 -0
  103. package/src/plugins/layer3/stakingFetcher.js.map +1 -1
  104. package/src/plugins/lifinity/lockerFetcher.js +14 -17
  105. package/src/plugins/lifinity/lockerFetcher.js.map +1 -1
  106. package/src/plugins/loverflow/airdropClaimFetcher.js +1 -0
  107. package/src/plugins/loverflow/airdropClaimFetcher.js.map +1 -1
  108. package/src/plugins/magiceden/escrowFetcher.js +12 -18
  109. package/src/plugins/magiceden/escrowFetcher.js.map +1 -1
  110. package/src/plugins/marginfi/helpers.d.ts +2 -1
  111. package/src/plugins/marginfi/helpers.js +8 -2
  112. package/src/plugins/marginfi/helpers.js.map +1 -1
  113. package/src/plugins/marinade/ticketsFetcher.js +14 -31
  114. package/src/plugins/marinade/ticketsFetcher.js.map +1 -1
  115. package/src/plugins/metaplex/resizableNftFetcher.js +1 -0
  116. package/src/plugins/metaplex/resizableNftFetcher.js.map +1 -1
  117. package/src/plugins/nxfinance/positionsFetcher.js +19 -2
  118. package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
  119. package/src/plugins/orca/getWhirlpoolPositions.js +10 -1
  120. package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
  121. package/src/plugins/parcl/depositsFetcher.js +1 -1
  122. package/src/plugins/parcl/depositsFetcher.js.map +1 -1
  123. package/src/plugins/parcl/marginFetcher.js +1 -1
  124. package/src/plugins/parcl/marginFetcher.js.map +1 -1
  125. package/src/plugins/parcl/stakingFetcher.js +6 -3
  126. package/src/plugins/parcl/stakingFetcher.js.map +1 -1
  127. package/src/plugins/photofinish/stakingFetcher.js +6 -1
  128. package/src/plugins/photofinish/stakingFetcher.js.map +1 -1
  129. package/src/plugins/picasso/unstakingPositionsFetcher.js +3 -2
  130. package/src/plugins/picasso/unstakingPositionsFetcher.js.map +1 -1
  131. package/src/plugins/quarry/calculatePositions.js +7 -1
  132. package/src/plugins/quarry/calculatePositions.js.map +1 -1
  133. package/src/plugins/quarry/positionsFetcher.js +2 -0
  134. package/src/plugins/quarry/positionsFetcher.js.map +1 -1
  135. package/src/plugins/quarry/types.d.ts +3 -0
  136. package/src/plugins/ratex/positionsFetcher.js +2 -0
  137. package/src/plugins/ratex/positionsFetcher.js.map +1 -1
  138. package/src/plugins/saber/lpTokensJob.js +1 -0
  139. package/src/plugins/saber/lpTokensJob.js.map +1 -1
  140. package/src/plugins/sandglass/depositFetcher.js +3 -0
  141. package/src/plugins/sandglass/depositFetcher.js.map +1 -1
  142. package/src/plugins/sharky/loansFetcher.js +1 -0
  143. package/src/plugins/sharky/loansFetcher.js.map +1 -1
  144. package/src/plugins/solayer/airdropFetcher.d.ts +3 -0
  145. package/src/plugins/solayer/airdropFetcher.js +55 -0
  146. package/src/plugins/solayer/airdropFetcher.js.map +1 -0
  147. package/src/plugins/solayer/constants.d.ts +5 -0
  148. package/src/plugins/solayer/constants.js +13 -1
  149. package/src/plugins/solayer/constants.js.map +1 -1
  150. package/src/plugins/solayer/index.d.ts +2 -0
  151. package/src/plugins/solayer/index.js +4 -2
  152. package/src/plugins/solayer/index.js.map +1 -1
  153. package/src/plugins/solayer/proofsFetcher.js +7 -6
  154. package/src/plugins/solayer/proofsFetcher.js.map +1 -1
  155. package/src/plugins/solayer/types.d.ts +8 -0
  156. package/src/plugins/solayer/types.js +3 -0
  157. package/src/plugins/solayer/types.js.map +1 -0
  158. package/src/plugins/spdr/stakingFetcher.js +3 -0
  159. package/src/plugins/spdr/stakingFetcher.js.map +1 -1
  160. package/src/plugins/stabble/poolsJob.js +1 -0
  161. package/src/plugins/stabble/poolsJob.js.map +1 -1
  162. package/src/plugins/staratlas/lockersFetcher.js +2 -0
  163. package/src/plugins/staratlas/lockersFetcher.js.map +1 -1
  164. package/src/plugins/staratlas/stakingFetcher.js +2 -1
  165. package/src/plugins/staratlas/stakingFetcher.js.map +1 -1
  166. package/src/plugins/streamflow/vestingFetcher.js +1 -1
  167. package/src/plugins/streamflow/vestingFetcher.js.map +1 -1
  168. package/src/plugins/sushiswap/helpers.js +24 -24
  169. package/src/plugins/tensor/bidsFetcher.js +1 -1
  170. package/src/plugins/tensor/bidsFetcher.js.map +1 -1
  171. package/src/plugins/texture/loansFetcher.js +2 -1
  172. package/src/plugins/texture/loansFetcher.js.map +1 -1
  173. package/src/plugins/tulip/depositsFetcher.js +3 -1
  174. package/src/plugins/tulip/depositsFetcher.js.map +1 -1
  175. package/src/plugins/uniswap-v2/helpers.js +22 -22
  176. package/src/plugins/uxd/stakingFetcher.js +4 -3
  177. package/src/plugins/uxd/stakingFetcher.js.map +1 -1
  178. package/src/plugins/vaultka/lendingFetcher.js +5 -0
  179. package/src/plugins/vaultka/lendingFetcher.js.map +1 -1
  180. package/src/plugins/vaultka/strategyFetcher.js +3 -0
  181. package/src/plugins/vaultka/strategyFetcher.js.map +1 -1
  182. package/src/plugins/whalesmarket/depositFetcher.js +7 -5
  183. package/src/plugins/whalesmarket/depositFetcher.js.map +1 -1
  184. package/src/plugins/zelo/positionsFetcher.js +2 -0
  185. package/src/plugins/zelo/positionsFetcher.js.map +1 -1
  186. package/src/plugins/zeta/airdropFetcher.js +14 -14
  187. package/src/plugins/zeta/depositsFetcher.js +5 -1
  188. package/src/plugins/zeta/depositsFetcher.js.map +1 -1
  189. package/src/utils/sei/constants.js +8 -8
  190. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -47,7 +47,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
47
47
  const amount = userVaultsAccount.depositedBalance
48
48
  .div(Math.pow(10, lpTokenPrice.decimals))
49
49
  .toNumber();
50
- assets.push(...(0, tokenPriceToAssetTokens_1.default)(lpTokenPrice.address, amount, portfolio_core_1.NetworkId.solana, lpTokenPrice));
50
+ const name = 'Vault';
51
+ assets.push(...(0, tokenPriceToAssetTokens_1.default)(lpTokenPrice.address, amount, portfolio_core_1.NetworkId.solana, lpTokenPrice).map((asset) => (Object.assign(Object.assign({}, asset), { ref: userVaultsAccount.pubkey.toString(), sourceRefs: [{ name, address: userVaultsAccount.vault.toString() }] }))));
51
52
  }
52
53
  if (assets.length === 0)
53
54
  return [];
@@ -60,6 +61,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
60
61
  label: 'Deposit',
61
62
  data: {
62
63
  assets,
64
+ link: 'https://tulip.garden/your-positions',
63
65
  },
64
66
  },
65
67
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tulip/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAGpC,2CAAsE;AACtE,iDAAsD;AACtD,+CAA6E;AAC7E,uCAA6E;AAC7E,uCAAsD;AACtD,uGAA+E;AAE/E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,kBAAkB,GAAG,MAAM,IAAA,iCAAwB,EACvD,MAAM,EACN,iCAAuB,EACvB,4BAAgB,EAChB,IAAA,mCAAyB,EAAC,KAAK,CAAC,CACjC,CAAC;IACF,IAAI,CAAC,kBAAkB;QAAE,OAAO,EAAE,CAAC;IAEnC,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,OAAO,CAChC,qBAAS,EACT;QACE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CACF,CAAC;IACF,IAAI,CAAC,MAAM;QAAE,OAAO,EAAE,CAAC;IAEvB,MAAM,cAAc,GAAG,MAAM,KAAK,CAAC,mBAAmB,CACpD,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,EACvD,0BAAS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AE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACzD,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE;gBACJ,MAAM;aACP;SACF;KACF,CAAC;AACJ,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
+ {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tulip/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,2CAAsE;AACtE,iDAAsD;AACtD,+CAA6E;AAC7E,uCAA6E;AAC7E,uCAAsD;AACtD,uGAA+E;AAE/E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,kBAAkB,GAAG,MAAM,IAAA,iCAAwB,EACvD,MAAM,EACN,iCAAuB,EACvB,4BAAgB,EAChB,IAAA,mCAAyB,EAAC,KAAK,CAAC,CACjC,CAAC;IACF,IAAI,CAAC,kBAAkB;QAAE,OAAO,EAAE,CAAC;IAEnC,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,OAAO,CAChC,qBAAS,EACT;QACE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CACF,CAAC;IACF,IAAI,CAAC,MAAM;QAAE,OAAO,EAAE,CAAC;IAEvB,MAAM,cAAc,GAAG,MAAM,KAAK,CAAC,mBAAmB,CACpD,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,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AiB,CAAC,MAAM,CAAC,QAAQ,EAAE,EACxC,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,iBAAiB,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC,IACnE,CAAC,CACJ,CAAC;IACJ,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACnC,OAAO;QACL;YACE,UAAU,EAAV,sBAAU;YACV,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACzD,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE;gBACJ,MAAM;gBACN,IAAI,EAAE,qCAAqC;aAC5C;SACF;KACF,CAAC;AACJ,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"}
@@ -40,28 +40,28 @@ function getPairKey(version) {
40
40
  exports.getPairKey = getPairKey;
41
41
  function getPairsV2FromTheGraph(url, length = 300) {
42
42
  return __awaiter(this, void 0, void 0, function* () {
43
- const query = (0, graphql_request_1.gql) `
44
- {
45
- pairs(
46
- orderBy: reserveUSD
47
- first: ${length}
48
- orderDirection: desc
49
- where: { trackedReserveETH_not: "0" }
50
- ) {
51
- id
52
- reserve0
53
- reserve1
54
- totalSupply
55
- token0 {
56
- id
57
- decimals
58
- }
59
- token1 {
60
- id
61
- decimals
62
- }
63
- }
64
- }
43
+ const query = (0, graphql_request_1.gql) `
44
+ {
45
+ pairs(
46
+ orderBy: reserveUSD
47
+ first: ${length}
48
+ orderDirection: desc
49
+ where: { trackedReserveETH_not: "0" }
50
+ ) {
51
+ id
52
+ reserve0
53
+ reserve1
54
+ totalSupply
55
+ token0 {
56
+ id
57
+ decimals
58
+ }
59
+ token1 {
60
+ id
61
+ decimals
62
+ }
63
+ }
64
+ }
65
65
  `;
66
66
  const res = yield (0, graphql_request_1.default)(url, query);
67
67
  const pairs = res.pairs;
@@ -34,9 +34,10 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
34
34
  if (!amount.isZero())
35
35
  return;
36
36
  const lockedUntil = stakingAccount.stakeEndTs.times(1000).toNumber();
37
- assets.push(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(constants_1.uxpMint, amount.toNumber(), networkId, tokenPrice, tokenPrice === null || tokenPrice === void 0 ? void 0 : tokenPrice.price, {
37
+ assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(constants_1.uxpMint, amount.toNumber(), networkId, tokenPrice, tokenPrice === null || tokenPrice === void 0 ? void 0 : tokenPrice.price, {
38
38
  lockedUntil,
39
- })));
39
+ tags: ['Deprecated'],
40
+ })), { ref: stakingAccount.pubkey.toString() }));
40
41
  });
41
42
  if (assets.length === 0)
42
43
  return [];
@@ -46,7 +47,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
46
47
  label: 'Staked',
47
48
  networkId: portfolio_core_1.NetworkId.solana,
48
49
  platformId: constants_1.platformId,
49
- data: { assets },
50
+ data: { assets, link: 'https://stake.uxd.fi/' },
50
51
  value: (0, portfolio_core_1.getUsdValueSum)(assets.map((asset) => asset.value)),
51
52
  },
52
53
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uxd/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAGpC,2CAA+E;AAC/E,iDAAsD;AACtD,uCAAiD;AACjD,uCAAkD;AAClD,+CAA8D;AAC9D,qGAA6E;AAE7E,MAAM,SAAS,GAA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ClB,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;YAAE,OAAO;QAE7B,MAAM,WAAW,GAAG,cAAc,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;QACrE,MAAM,CAAC,IAAI,iCACN,IAAA,gCAAsB,EACvB,mBAAO,EACP,MAAM,CAAC,QAAQ,EAAE,EACjB,SAAS,EACT,UAAU,EACV,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,EACjB;YACE,WAAW;YACX,IAAI,EAAE,CAAC,YAAY,CAAC;SACrB,CACF,KACD,GAAG,EAAE,cAAc,CAAC,MAAM,CAAC,QAAQ,EAAE,IACrC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,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,IAAI,EAAE,uBAAuB,EAAE;YAC/C,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"}
@@ -34,6 +34,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
34
34
  const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
35
35
  const element = elementRegistry.addElementMultiple({
36
36
  label: 'Lending',
37
+ link: 'https://solana.vaultka.com/',
37
38
  });
38
39
  userInfos.forEach((userInfo, i) => {
39
40
  if (userInfo)
@@ -45,6 +46,10 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
45
46
  .plus(lendings[i].borrowed_amount)
46
47
  .multipliedBy(userInfo.shares)
47
48
  .dividedBy(lendings[i].total_shares),
49
+ ref: userInfo.pubkey.toString(),
50
+ sourceRefs: [
51
+ { name: 'Lending Market', address: lendings[i].pubkey.toString() },
52
+ ],
48
53
  });
49
54
  });
50
55
  return elementRegistry.getElements(cache);
@@ -1 +1 @@
1
- {"version":3,"file":"lendingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/vaultka/lendingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAA4E;AAC5E,6CAA4C;AAC5C,gEAAqC;AAErC,2CAA8E;AAE9E,iDAAsD;AACtD,+CAAmE;AACnE,uCAAoD;AACpD,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,SAAS,GAAG,MAAM,IAAA,sCAA6B,EACnD,UAAU,EACV,wBAAc,EACd,6BAAiB,CAAC,GAAG,CACnB,CAAC,gBAAgB,EAAE,EAAE,CACnB,mBAAS,CAAC,sBAAsB,CAC9B,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,EAC5D,gBAAgB,CACjB,CAAC,CAAC,CAAC,CACP,CACF,CAAC;IAEF,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAE9E,MAAM,QAAQ,GAAG,MAAM,KAAK,CA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QAAQ;YACV,OAAO,CAAC,QAAQ,CAAC;gBACf,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI;oBACvB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE;oBAC7B,CAAC,CAAC,oCAAmB;gBACvB,MAAM,EAAE,IAAI,sBAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC;qBAC7C,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC;qBACjC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC;qBAC7B,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC;gBACtC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE;gBAC/B,UAAU,EAAE;oBACV,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE;iBACnE;aACF,CAAC,CAAC;IACP,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,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -41,6 +41,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
41
41
  const strategy = strategiesInfo[i];
42
42
  const element = elementRegistry.addElementBorrowlend({
43
43
  label: 'Leverage',
44
+ link: 'https://solana.vaultka.com/leverage',
45
+ ref: positionInfo[0].pubkey,
46
+ sourceRefs: [{ name: 'Strategy', address: strategy.pubkey.toString() }],
44
47
  });
45
48
  let borrowMint;
46
49
  if (isLstStrategy(strategy)) {
@@ -1 +1 @@
1
- {"version":3,"file":"strategyFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/vaultka/strategyFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAE5C,2CAAyE;AAEzE,iDAAsD;AACtD,+CAA8D;AAC9D,gFAA6E;AAQ7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,GAAG,CACrC,sBAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAC1B,IAAA,iCAAwB,EACtB,UAAU,EACV,QAAQ,CAAC,kBAAkB,EAC3B,IAAI,mBAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC9B;QACE;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,EAAE;gBACV,KAAK,EAAE,KAAK;aACb;SACF;KACF,CACF,CACF,CACF,CAAC;IAEF,IAAI,CAAC,aAAa,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC;QACxE,OAAO,EAAE,CAAC;IAEZ,MAAM,cAAc,GAAG,MAAM,KAAK,CAAC,OAAO,CACxC,8BAAkB,EAClB;QACE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CACF,CAAC;IAEF,IAAI,CAAC,cAAc;QAAE,OAAO,EAAE,CAAC;IAE/B,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAE1E,aAAa,CAAC,OAAO,CAAC,CAAC,YAAY,EAAE,CAAC,EAAE,EAAE;QACxC,IACE,YAAY,CAAC,CAAC,CAAC;YACf,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,UAAU;YAC3B,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,MAAM,EACvB,CAAC;YACD,MAAM,QAAQ,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;YAEnC,MAAM,OAAO,GAAG,eAAe,CAAC,oBAAoB,CAAC;gBACnD,KAAK,EAAE,UAAU;aAClB,CAAC,CAAC;YAEH,IAAI,UAAU,CAAC;YACf,IAAI,aAAa,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAC5B,UAAU,GAAG,QAAQ,CAAC,eAAe,CAAC;YACxC,CAAC;iBAAM,CAAC;gBACN,UAAU,GAAG,QAAQ,CAAC,WAAW,CAAC;YACpC,CAAC;YAED,OAAO,CAAC,gBAAgB,CAAC;gBACvB,OAAO,EAAE,QAAQ,CAAC,eAAe;gBACjC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,eAAe;aACxC,CAAC,CAAC;YACH,OAAO,CAAC,gBAAgB,CAAC;gBACvB,OAAO,EAAE,UAAU;gBACnB,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,eAAe;aACxC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,SAAS,aAAa,CACpB,QAAgC;IAEhC,OAAO,CAAC,CAAC,aAAa,IAAI,QAAQ,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"strategyFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/vaultka/strategyFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAE5C,2CAAyE;AAEzE,iDAAsD;AACtD,+CAA6E;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,EAAE,UAAU;gBACjB,IAAI,EAAE,qCAAqC;gBAC3C,GAAG,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,MAAM;gBAC3B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC;aACxE,CAAC,CAAC;YAEH,IAAI,UAAU,CAAC;YACf,IAAI,aAAa,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAC5B,UAAU,GAAG,QAAQ,CAAC,eAAe,CAAC;YACxC,CAAC;iBAAM,CAAC;gBACN,UAAU,GAAG,QAAQ,CAAC,WAAW,CAAC;YACpC,CAAC;YAED,OAAO,CAAC,gBAAgB,CAAC;gBACvB,OAAO,EAAE,QAAQ,CAAC,eAAe;gBACjC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,eAAe;aACxC,CAAC,CAAC;YACH,OAAO,CAAC,gBAAgB,CAAC;gBACvB,OAAO,EAAE,UAAU;gBACnB,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,eAAe;aACxC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,SAAS,aAAa,CACpB,QAAgC;IAEhC,OAAO,CAAC,CAAC,aAAa,IAAI,QAAQ,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -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":"depositFetc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AAC,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,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,KAAK,CAAC,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-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,CAC9B,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,mBAAS,CAAC,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;KACjB,CAAC,CAAC;IAEH,OAAO,CAAC,QAAQ,CAAC;QACf,OAAO,EAAE,oCAAmB;QAC5B,MAAM,EAAE,WAAW,CAAC,UAAU;KAC/B,CAAC,CAAC;IA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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":["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AO,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,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE;YACzB,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
+ {"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,YA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C;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;