@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
@@ -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,QAA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O,CAAC"}
1
+ {"version":3,"file":"realmsDepositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/daos/realmsDepositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAG5C,2CAAyC;AACzC,iDAAsD;AACtD,+CAG4B;AAC5B,6CAA2D;AAC3D,uCAAwC;AACxC,uCAAwD;AAExD,gFAA6E;AAE7E,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,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAEzD,MAAM,cAAc,GAAG,SAAS,CAAC,WAAW,CAAC;IAC7C,MAAM,aAAa,GAA+B,IAAI,GAAG,EAAE,CAAC;IAC5D,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,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACjC,aAAa,CAAC,GAAG,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACzD,CAAC,CAAC,CAAC;IAEH,MAAM,wBAAwB,GAAG,EAAE,CAAC;IACpC,IAAI,cAAc,EAAE,CAAC;QACnB,KAAK,MAAM,OAA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isArg, _arguments, P, ge
10
10
  step((generator = generator.apply(thisArg, _arguments || [])).next());
11
11
  });
12
12
  };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
13
  Object.defineProperty(exports, "__esModule", { value: true });
17
14
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
18
15
  const clients_1 = require("../../utils/clients");
19
16
  const constants_1 = require("./constants");
20
17
  const solana_1 = require("../../utils/solana");
21
- const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
22
18
  const struct_1 = require("../meteora/struct");
23
19
  const constants_2 = require("../meteora/constants");
20
+ const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
24
21
  const slotTtl = 30000;
25
22
  let slot = null;
26
23
  let slotUpdate = 0;
@@ -32,7 +29,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
32
29
  networkId: portfolio_core_1.NetworkId.solana,
33
30
  });
34
31
  if (!vaults)
35
- return [];
32
+ throw new Error('No vaults cached');
36
33
  if (!slot || Date.now() - slotTtl > slotUpdate) {
37
34
  slot = yield client.getSlot();
38
35
  slotUpdate = Date.now();
@@ -56,15 +53,17 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
56
53
  return [v.baseMint, v.quoteMint];
57
54
  })
58
55
  .flat(), portfolio_core_1.NetworkId.solana);
56
+ const registry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
57
+ const vestingElement = registry.addElementMultiple({
58
+ label: 'Vesting',
59
+ link: 'https://debridge.foundation/lfg',
60
+ });
59
61
  const assets = [];
60
62
  for (const escrow of accounts) {
61
63
  const vault = vaults[escrow.dlmmVault.toString()];
62
64
  if (!vault)
63
65
  continue;
64
- const [quoteTokenPrice, baseTokenPrice] = [
65
- tokenPrices.get(vault.quoteMint),
66
- tokenPrices.get(vault.baseMint),
67
- ];
66
+ const quoteTokenPrice = tokenPrices.get(vault.quoteMint);
68
67
  if (!quoteTokenPrice)
69
68
  continue;
70
69
  const totalTokenEligible = escrow.totalDeposit
@@ -73,7 +72,14 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
73
72
  const remainingClaimableTokens = totalTokenEligible.minus(escrow.claimedToken.dividedBy(Math.pow(10, constants_1.dbrDecimals)));
74
73
  if (remainingClaimableTokens.isLessThanOrEqualTo(0))
75
74
  continue;
76
- assets.push((0, tokenPriceToAssetToken_1.default)(vault.baseMint, remainingClaimableTokens.toNumber(), portfolio_core_1.NetworkId.solana, baseTokenPrice, undefined, { lockedUntil: 1744876800000 }));
75
+ vestingElement.addAsset({
76
+ address: vault.baseMint,
77
+ amount: remainingClaimableTokens,
78
+ alreadyShifted: true,
79
+ ref: escrow.pubkey,
80
+ sourceRefs: [{ name: 'Vault', address: vault.pubkey }],
81
+ attributes: { lockedUntil: 1744876800000 },
82
+ });
77
83
  }
78
84
  if (assets.length === 0)
79
85
  return [];
@@ -1 +1 @@
1
- {"version":3,"file":"dlmmVaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/debridge/dlmmVaultsFetcher.ts"],"names":[],"mappings":";AAAA,2BAA2B;AAC3B,mBAAmB;;;;;;;;;;;;;;AAEnB,+DAKoC;AAGpC,iDAAsD;AACtD,2CAA0E;AAC1E,+CAA8D;AAC9D,qGAA6E;AAC7E,8CAAiD;AAEjD,oDAAqD;AAErD,MAAM,OAAO,GAAG,KAAK,CAAC;AACtB,IAAI,IAAI,GAAkB,IAAI,CAAC;AAC/B,IAAI,UAAU,GAAG,CAAC,CAAC;AACnB,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAE/B,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,OAAO,CAAmB,yBAAa,EAAE;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MAAM,wBAAwB,GAAG,kBAAkB,CAAC,KAAK,CACvD,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,uBAAW,CAAA,CAAC,CACjD,CAAC;QAEF,IAAI,wBAAwB,CAAC,mBAAmB,CAAC,CAAC,CAAC;YAAE,SAAS;QAE9D,cAAc,CAAC,QAAQ,CAAC;YACtB,OAAO,EAAE,KAAK,CAAC,QAAQ;YACvB,MAAM,EAAE,wBAAwB;YAChC,cAAc,EAAE,IAAI;YACpB,GAAG,EAAE,MAAM,CAAC,MAAM;YAClB,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;YACtD,UAAU,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE;SAC3C,CAAC,CAAC;IACL,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,OAAO;QACL;YACE,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE;gBACJ,MAAM;aACP;YACD,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;SAClD;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -29,11 +29,18 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
29
29
  if (!lockupAccounts)
30
30
  return [];
31
31
  const registry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
32
- const element = registry.addElementMultiple({ label: 'Staked' });
32
+ const element = registry.addElementMultiple({
33
+ label: 'Staked',
34
+ link: 'https://staking.defiland.app/',
35
+ });
33
36
  for (const lockupAccount of lockupAccounts) {
34
37
  element.addAsset({
35
38
  address: constants_1.dflMint,
36
39
  amount: lockupAccount.stakedTokenBalance,
40
+ ref: lockupAccount.pubkey,
41
+ sourceRefs: [
42
+ { name: 'Pool', address: lockupAccount.poolAddress.toString() },
43
+ ],
37
44
  });
38
45
  }
39
46
  return registry.getElements(cache);
@@ -1 +1 @@
1
- {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/defiland/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAA8D;AAC9D,iDAAsD;AACtD,uCAA4C;AAC5C,gFAA6E;AAC7E,+CAA8D;AAE9D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,cAAc,GAAG,MAAM,IAAA,iCAAwB,EACnD,MAAM,EACN,yBAAe,EACf,sBAAU,EACV;QACE,EAAE,QAAQ,EAAE,yBAAe,CAAC,QAAQ,EAAE;QACtC;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,KAAK;aACb;SACF;KACF,CACF,CAAC;IACF,IAAI,CAAC,cAAc;QAAE,OAAO,EAAE,CAAC;IAE/B,MAAM,QAAQ,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IACnE,MAAM,OAAO,GAAG,QAAQ,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;IAEjE,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,mBAAO;YAChB,MAAM,EAAE,aAAa,CAAC,kBAAkB;SACzC,CAAC,CAAC;IACL,CAAC;IACD,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"}
1
+ {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/defiland/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAA8D;AAC9D,iDAAsD;AACtD,uCAA4C;AAC5C,gFAA6E;AAC7E,+CAA8D;AAE9D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,cAAc,GAAG,MAAM,IAAA,iCAAwB,EACnD,MAAM,EACN,yBAAe,EACf,sBAAU,EACV;QACE,EAAE,QAAQ,EAAE,yBAAe,CAAC,QAAQ,EAAE;QACtC;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,KAAK;aACb;SACF;KACF,CACF,CAAC;IACF,IAAI,CAAC,cAAc;QAAE,OAAO,EAAE,CAAC;IAE/B,MAAM,QAAQ,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IACnE,MAAM,OAAO,GAAG,QAAQ,CAAC,kBAAkB,CAAC;QAC1C,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,+BAA+B;KACtC,CAAC,CAAC;IAEH,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,mBAAO;YAChB,MAAM,EAAE,aAAa,CAAC,kBAAkB;YACxC,GAAG,EAAE,aAAa,CAAC,MAAM;YACzB,UAAU,EAAE;gBACV,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,CAAC,WAAW,CAAC,QAAQ,EAAE,EAAE;aAChE;SACF,CAAC,CAAC;IACL,CAAC;IACD,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"}
@@ -44,6 +44,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
44
44
  const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
45
45
  const element = elementRegistry.addElementBorrowlend({
46
46
  label: 'Lending',
47
+ link: 'https://defituna.com/lending',
47
48
  });
48
49
  accounts.forEach((account) => {
49
50
  const pool = pools.find((p) => p.mint.toString() === account.poolMint.toString());
@@ -54,6 +55,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
54
55
  amount: account.depositedShares
55
56
  .multipliedBy(pool.depositedFunds)
56
57
  .dividedBy(pool.depositedShares),
58
+ ref: account.pubkey,
59
+ sourceRefs: [{ name: 'Lending Market', address: pool.pubkey.toString() }],
57
60
  });
58
61
  element.addSuppliedYield([
59
62
  {
@@ -1 +1 @@
1
- {"version":3,"file":"lendingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/defituna/lendingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAiE;AACjE,gEAAqC;AAErC,2CAAqE;AAErE,iDAAsD;AACtD,+CAA8D;AAC9D,gFAA6E;AAC7E,uCAA0C;AAE1C,MAAM,QAAQ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E,GAAG,EAAE,IAAI,sBAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE;gBAC7C,GAAG,EAAE,IAAA,yBAAQ,EAAC,IAAI,sBAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,CAAC;aACxD;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,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"lendingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/defituna/lendingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAiE;AACjE,gEAAqC;AAErC,2CAAqE;AAErE,iDAAsD;AACtD,+CAA8D;AAC9D,gFAA6E;AAC7E,uCAA0C;AAE1C,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,2BAAe,EACf;QACE;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,aAAa;aACrB;SACF;QACD;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,EAAE;gBACV,KAAK,EAAE,KAAK;aACb;SACF;QACD;YACE,QAAQ,EAAE,GAAG;SACd;KACF,CACF,CAAC;IAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,KAAK,GAAG,MAAM,qBAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAA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EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -57,11 +57,17 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
57
57
  if (!pool)
58
58
  return;
59
59
  const lendingPoolA = lendingPools.find((p) => p.mint.toString() === account.mint_a.toString());
60
- const lendingPoolB = lendingPools.find((p) => p.mint.toString() === account.mint_a.toString());
60
+ const lendingPoolB = lendingPools.find((p) => p.mint.toString() === account.mint_b.toString());
61
61
  if (!lendingPoolA || !lendingPoolB)
62
62
  return;
63
63
  const element = elementRegistry.addElementBorrowlend({
64
64
  label: 'LiquidityPool',
65
+ ref: account.pubkey,
66
+ link: 'https://defituna.com/trade',
67
+ sourceRefs: [
68
+ { name: 'Lending Market', address: lendingPoolA.pubkey.toString() },
69
+ { name: 'Lending Market', address: lendingPoolB.pubkey.toString() },
70
+ ],
65
71
  });
66
72
  const { tokenAmountA, tokenAmountB } = (0, tokenAmountFromLiquidity_1.getTokenAmountsFromLiquidity)(new bignumber_js_1.default(account.liquidity), Number(pool.tickCurrentIndex), Number(account.tick_lower_index), Number(account.tick_upper_index), true);
67
73
  element.addSuppliedAsset({
@@ -1 +1 @@
1
- {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/defituna/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAErC,2CAAqE;AAErE,iDAAsD;AACtD,+CAA6E;AAC7E,gFAA6E;AAC7E,uCAAmE;AACnE,iDAAoD;AAEpD,wFAAyF;AAEzF,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,4BAAkB,E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AAE,OAAO,CAAC,MAAM;YACvB,MAAM,EAAE,OAAO,CAAC,aAAa;iBAC1B,YAAY,CAAC,YAAY,CAAC,aAAa,CAAC;iBACxC,SAAS,CAAC,YAAY,CAAC,cAAc,CAAC;SAC1C,CAAC,CAAC;QAEH,OAAO,CAAC,gBAAgB,CAAC;YACvB,OAAO,EAAE,OAAO,CAAC,MAAM;YACvB,MAAM,EAAE,OAAO,CAAC,aAAa;iBAC1B,YAAY,CAAC,YAAY,CAAC,aAAa,CAAC;iBACxC,SAAS,CAAC,YAAY,CAAC,cAAc,CAAC;SAC1C,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/defituna/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAErC,2CAAqE;AAErE,iDAAsD;AACtD,+CAA6E;AAC7E,gFAA6E;AAC7E,uCAAmE;AACnE,iDAAoD;AAEpD,wFAAyF;AAEzF,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,4BAAkB,EAClB,2BAAe,EACf;QACE;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,aAAa;aACrB;SACF;QACD;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,EAAE;gBACV,KAAK,EAAE,KA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AC,MAAM;YACvB,MAAM,EAAE,OAAO,CAAC,WAAW;SAC5B,CAAC,CAAC;QAEH,OAAO,CAAC,gBAAgB,CAAC;YACvB,OAAO,EAAE,OAAO,CAAC,MAAM;YACvB,MAAM,EAAE,OAAO,CAAC,aAAa;iBAC1B,YAAY,CAAC,YAAY,CAAC,aAAa,CAAC;iBACxC,SAAS,CAAC,YAAY,CAAC,cAAc,CAAC;SAC1C,CAAC,CAAC;QAEH,OAAO,CAAC,gBAAgB,CAAC;YACvB,OAAO,EAAE,OAAO,CAAC,MAAM;YACvB,MAAM,EAAE,OAAO,CAAC,aAAa;iBAC1B,YAAY,CAAC,YAAY,CAAC,aAAa,CAAC;iBACxC,SAAS,CAAC,YAAY,CAAC,cAAc,CAAC;SAC1C,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -15,6 +15,7 @@ export type Lending = {
15
15
  };
16
16
  export declare const lendingStruct: BeetStruct<Lending, Partial<Lending>>;
17
17
  export type Vault = {
18
+ pubkey: PublicKey;
18
19
  buffer: Buffer;
19
20
  version: number;
20
21
  bump: number[];
@@ -1 +1 @@
1
- {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/defituna/structs.ts"],"names":[],"mappings":";;;AAEA,oDAMmC;AACnC,kEAA6D;AAC7D,+CAAqD;AAYxC,QAAA,aAAa,GAAG,IAAI,iBAAU,CACzC;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,SAAS,EAAE,UAAG,CAAC;IAChB,CAAC,MAAM,EAAE,IAAA,4BAAqB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C,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,MAAM,EAAE,uBAAS,CAAC;IACnB,CAAC,QAAQ,EAAE,uBAAS,CAAC;IACrB,CAAC,QAAQ,EAAE,uBAAS,CAAC;IACrB,CAAC,eAAe,EAAE,uBAAS,CAAC;IAC5B,CAAC,WAAW,EAAE,aAAI,CAAC;IACnB,CAAC,kBAAkB,EAAE,UAAG,CAAC;IACzB,CAAC,kBAAkB,EAAE,UAAG,CAAC;IACzB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,kBAAkB,EAAE,UAAG,CAAC;IACzB,CAAC,sBAAsB,EAAE,UAAG,CAAC;IAC7B,CAAC,wBAAwB,EAAE,UAAG,CAAC;IAC/B,CAAC,OAAO,EAAE,SAAE,CAAC;CACd,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAoB,CAC/B,CAAC"}
1
+ {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/defituna/structs.ts"],"names":[],"mappings":";;;AAEA,oDAMmC;AACnC,kEAA6D;AAC7D,+CAAqD;AAYxC,QAAA,aAAa,GAAG,IAAI,iBAAU,CACzC;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,SAAS,EAAE,UAAG,CAAC;IAChB,CAAC,MAAM,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IACtC,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,UAAU,EAAE,uBAAS,CAAC;IACvB,CAAC,gBAAgB,EAAE,YAAG,CAAC;IACvB,CAAC,iBAAiB,EAAE,YAAG,CAA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AC5B,CAAC,WAAW,EAAE,aAAI,CAAC;IACnB,CAAC,kBAAkB,EAAE,UAAG,CAAC;IACzB,CAAC,kBAAkB,EAAE,UAAG,CAAC;IACzB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,kBAAkB,EAAE,UAAG,CAAC;IACzB,CAAC,sBAAsB,EAAE,UAAG,CAAC;IAC7B,CAAC,wBAAwB,EAAE,UAAG,CAAC;IAC/B,CAAC,OAAO,EAAE,SAAE,CAAC;CACd,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAoB,CAC/B,CAAC"}
@@ -6,5 +6,6 @@ import { PublicKey } from '@solana/web3.js';
6
6
  export declare const platformId = "divvy";
7
7
  export declare const platform: Platform;
8
8
  export declare const divvyProgram: PublicKey;
9
+ export declare const dvyMint = "8fdi18UQNGg8mFEzjf79GUkzTg9YHSeojzCcarVxCX2y";
9
10
  export declare const divvyIdlItem: IdlItem;
10
11
  export declare const houseCacheKey = "houses";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.houseCacheKey = exports.divvyIdlItem = exports.divvyProgram = exports.platform = exports.platformId = void 0;
3
+ exports.houseCacheKey = exports.divvyIdlItem = exports.dvyMint = exports.divvyProgram = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  const idl_1 = require("./idl");
6
6
  exports.platformId = 'divvy';
@@ -12,6 +12,7 @@ exports.platform = {
12
12
  website: 'https://app.divvy.bet/',
13
13
  };
14
14
  exports.divvyProgram = new web3_js_1.PublicKey('dvyFwAPniptQNb1ey4eM12L8iLHrzdiDsPPDndd6xAR');
15
+ exports.dvyMint = '8fdi18UQNGg8mFEzjf79GUkzTg9YHSeojzCcarVxCX2y';
15
16
  exports.divvyIdlItem = {
16
17
  programId: exports.divvyProgram.toString(),
17
18
  idl: idl_1.DivvyIdl,
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/divvy/constants.ts"],"names":[],"mappings":";;;AAEA,6CAA4C;AAC5C,+BAAiC;AAEpB,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,WAAW;IACxB,OAAO,EAAE,wBAAwB;CAClC,CAAC;AAEW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,YAAY,GAAG;IAC1B,SAAS,EAAE,oBAAY,CAAC,QAAQ,EAAE;IAClC,GAAG,EAAE,cAAQ;IACb,OAAO,EAAE,QAAQ;CACP,CAAC;AAEA,QAAA,aAAa,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/divvy/constants.ts"],"names":[],"mappings":";;;AAEA,6CAA4C;AAC5C,+BAAiC;AAEpB,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,WAAW;IACxB,OAAO,EAAE,wBAAwB;CAClC,CAAC;AAEW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,6CAA6C,CAC9C,CAAC;AACW,QAAA,OAAO,GAAG,8CAA8C,CAAC;AAEzD,QAAA,YAAY,GAAG;IAC1B,SAAS,EAAE,oBAAY,CAAC,QAAQ,EAAE;IAClC,GAAG,EAAE,cAAQ;IACb,OAAO,EAAE,QAAQ;CACP,CAAC;AAEA,QAAA,aAAa,GAAG,QAAQ,CAAC"}
@@ -38,6 +38,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
38
38
  const element = elementRegistry.addElementMultiple({
39
39
  label: 'Deposit',
40
40
  name: 'House Pool',
41
+ link: 'https://app.divvy.bet/housepool/?house=SOL',
41
42
  });
42
43
  accounts.forEach((account) => {
43
44
  const house = houses.get(account.house);
@@ -46,6 +47,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
46
47
  element.addAsset({
47
48
  address: house.currency,
48
49
  amount: account.amount,
50
+ ref: account.pubkey,
51
+ sourceRefs: [{ name: 'Pool', address: house.pubkey.toString() }],
49
52
  });
50
53
  });
51
54
  return elementRegistry.getElements(cache);
@@ -1 +1 @@
1
- {"version":3,"file":"housePoolFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/divvy/housePoolFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAsE;AAEtE,iDAAsD;AAEtD,+CAAkE;AAClE,kEAA+D;AAC/D,4DAAyD;AACzD,gFAA6E;AAE7E,MAAM,UAAU,GAAG,IAAI,6BAAa,CAClC,yBAAa,EACb;IACE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,EACD,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,uBAAU,EAAC,GAAG,IAAI,EAAE,EAAE,QAAQ,CAAC,CACzC,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,MAAM,IAAA,qCAA4B,EACjD,UAAU,EACV,wBAAY,EACZ;QACE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE;QAC/C;YACE,M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AAO,CAAC,MAAM;YACnB,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC;SACjE,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,aAAa;IAC9B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -32,11 +32,13 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
32
32
  const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
33
33
  const element = elementRegistry.addElementMultiple({
34
34
  label: 'Staked',
35
+ link: 'https://app.divvy.bet/staking/?house=SOL',
35
36
  });
36
37
  accounts.forEach((account) => {
37
38
  element.addAsset({
38
- address: '8fdi18UQNGg8mFEzjf79GUkzTg9YHSeojzCcarVxCX2y',
39
+ address: constants_1.dvyMint,
39
40
  amount: account.amount,
41
+ ref: account.pubkey,
40
42
  });
41
43
  });
42
44
  return elementRegistry.getElements(cache);
@@ -1 +1 @@
1
- {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/divvy/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAuD;AAEvD,iDAAsD;AAEtD,+CAAkE;AAClE,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,MAAM,IAAA,qCAA4B,EACjD,UAAU,EACV,wBAAY,EACZ;QACE;YACE,QAAQ,EAAE,EAAE;SACb;QACD;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,EAAE;aACX;SACF;KACF,CACF,CAAC;IAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,QAAQ;KAChB,CAAC,CAAC;IAEH,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC3B,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,8CAA8C;YACvD,MAAM,EAAE,OAAO,CAAC,MAAM;SACvB,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,UAAU;IAC3B,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/divvy/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAgE;AAEhE,iDAAsD;AAEtD,+CAAkE;AAClE,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,MAAM,IAAA,qCAA4B,EACjD,UAAU,EACV,wBAAY,EACZ;QACE;YACE,QAAQ,EAAE,EAAE;SACb;QACD;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,EAAE;aACX;SACF;KACF,CACF,CAAC;IAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,0CAA0C;KACjD,CAAC,CAAC;IAEH,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC3B,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,mBAAO;YAChB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,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,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -59,6 +59,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
59
59
  const elementInsurance = elementRegistry.addElementMultiple({
60
60
  label: 'Staked',
61
61
  name: 'Insurance Fund',
62
+ link: 'https://app.drift.trade/vaults/insurance-fund-vaults',
62
63
  });
63
64
  insuranceAccounts.forEach((account, i) => {
64
65
  if (!account || account.ifShares.isZero())
@@ -75,6 +76,11 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
75
76
  amount: account.ifShares
76
77
  .dividedBy(insuranceFund.totalShares)
77
78
  .times(vault.amount),
79
+ ref: account.pubkey,
80
+ sourceRefs: [
81
+ { name: 'Vault', address: insuranceFund.vault.toString() },
82
+ { name: 'Market', address: spotMarket.pubkey.toString() },
83
+ ],
78
84
  });
79
85
  });
80
86
  // Perps part
@@ -105,6 +111,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
105
111
  const element = elementRegistry.addElementBorrowlend({
106
112
  label: 'Lending',
107
113
  name: (0, solana_1.u8ArrayToString)(userAccount.name),
114
+ ref: userAccount.pubkey,
115
+ link: 'https://app.drift.trade/',
108
116
  });
109
117
  for (const perpPosition of userAccount.perpPositions) {
110
118
  if (perpPosition.baseAssetAmount.isZero())
@@ -132,6 +140,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
132
140
  attributes: {
133
141
  tags: [side],
134
142
  },
143
+ sourceRefs: [{ name: 'Lending Market', address: perpMarketAddress }],
135
144
  });
136
145
  }
137
146
  // Each account has up to 8 SpotPositions
@@ -159,6 +168,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
159
168
  element.addSuppliedAsset({
160
169
  address: spotMarket.mint,
161
170
  amount: tokenAmount,
171
+ sourceRefs: [
172
+ { name: 'Lending Market', address: spotMarket.pubkey.toString() },
173
+ ],
162
174
  });
163
175
  element.addSuppliedYield([
164
176
  {
@@ -171,6 +183,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
171
183
  element.addBorrowedAsset({
172
184
  address: spotMarket.mint,
173
185
  amount: tokenAmount.abs(),
186
+ sourceRefs: [
187
+ { name: 'Lending Market', address: spotMarket.pubkey.toString() },
188
+ ],
174
189
  });
175
190
  element.addSuppliedYield([
176
191
  {
@@ -1 +1 @@
1
- {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAA+E;AAC/E,gEAAqC;AACrC,6CAA4C;AAG5C,2CAKqB;AACrB,qCAKkB;AAClB,uCAMmB;AAEnB,+CAM4B;AAC5B,iDAAsD;AACtD,qDAGgC;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AAA,yBAAQ,EAAC,UAAU,CAAC,UAAU,CAAC;qBACrC;iBACF,CAAC,CAAC;YACL,CAAC;iBAAM,IAAI,YAAY,CAAC,WAAW,KAAK,wBAAe,CAAC,MAAM,EAAE,CAAC;gBAC/D,OAAO,CAAC,gBAAgB,CAAC;oBACvB,OAAO,EAAE,UAAU,CAAC,IAAI;oBACxB,MAAM,EAAE,WAAW,CAAC,GAAG,EAAE;iBAC1B,CAAC,CAAC;gBACH,OAAO,CAAC,gBAAgB,CAAC;oBACvB;wBACE,GAAG,EAAE,CAAC,UAAU,CAAC,SAAS;wBAC1B,GAAG,EAAE,CAAC,IAAA,yBAAQ,EAAC,UAAU,CAAC,SAAS,CAAC;qBACrC;iBACF,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAA+E;AAC/E,gEAAqC;AACrC,6CAA4C;AAG5C,2CAKqB;AACrB,qCAKkB;AAClB,uCAMmB;AAEnB,+CAM4B;AAC5B,iDAAsD;AACtD,qDAGgC;AAChC,uDAAqE;AACrE,+CAAwD;AACxD,iEAA8D;AAC9D,+DAA4D;AAC5D,uEAAoE;AACpE,gFAA6E;AAC7E,kEAA+D;AAElD,QAAA,eAAe,GAAG,IAAI,6BAAa,CAC9C,0BAAc,EACd;IACE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CACF,CAAC;AAEF,MAAM,QAA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
49
- // link: `https://app.drift.trade/vaults/${vaultInfo.pubkey.toString()}`,
49
+ // Link can fail for some vaults
50
+ link: `https://app.drift.trade/vaults/${vaultInfo.pubkey.toString()}`,
50
51
  sourceRefs: [
51
52
  {
52
53
  name: 'Vault',
@@ -1 +1 @@
1
- {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAGrC,kDAAmE;AACnE,2CAMqB;AACrB,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAiD;AACjD,uCAAiD;AAEjD,gFAA6E;AAC7E,4DAAyD;AAE5C,QAAA,MAAM,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAC7B,QAAA,SAAS,GAAG,CAAC,GAAG,cAAM,CAAC;AAEpC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,eAAe,GAAG,CACtB,MAAM,OAAO,CAAC,GAAG,CACf,4BAAgB,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CACjC,IAAA,iCAAwB,EACtB,MAAM,EACN,8BAAoB,EACpB,SAAS,EACT,IAAA,8BAAoB,EAAC,KAAK,CAAC,CAC5B,CACF,CACF,CACF,CAAC,IAAI,EAAE,CAAC;IAET,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAE5C,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,QAAQ,CACrC,eAAe,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,EAC1D,EAAE,MAAM,EAAE,wBAAY,EAAE,SAAS,EAAE,0BAAS,CAAC,MAAM,EAAE,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,cAAM;gBACR,CAAC,CAAC,iBAAS,CAAC;YAEd,OAAO,CAAC,QAAQ,CAAC;gBACf,OAAO,EAAE,IAAI;gBACb,MAAM,EAAE,cAAc,CAAC,mBAAmB,CAAC,KAAK;gBAChD,UAAU,EAAE;oBACV,WAAW,EAAE,cAAc,CAAC,mBAAmB,CAAC,EAAE;yBAC/C,KAAK,CAAC,IAAI,CAAC;yBACX,IAAI,CAAC,gBAAgB,CAAC;yBACtB,QAAQ,EAAE;iBACd;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAe,qBAAqB;IAC3C,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/drift-market-maker-vault/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAGrC,kDAAmE;AACnE,2CAMqB;AACrB,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAiD;AACjD,uCAAiD;AAEjD,gFAA6E;AAC7E,4DAAyD;AAE5C,QAAA,MAAM,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAC7B,QAAA,SAAS,GAAG,CAAC,GAAG,cAAM,CAAC;AAEpC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,eAAe,GAAG,CACtB,MAAM,OAAO,CAAC,GAAG,CACf,4BAAgB,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CACjC,IAAA,iCAAwB,EACtB,MAAM,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AClE;iBACF,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,GAAG;YACX,UAAU,EAAE;gBACV,IAAI,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,KAAK,CAAC;aACnD;SACF,CAAC,CAAC;QAEH,IAAI,CAAC,CAAA,MAAA,cAAc,CAAC,mBAAmB,0CAAE,KAAK,CAAC,MAAM,EAAE,CAAA,EAAE,CAAC;YACxD,MAAM,gBAAgB,GAAG;gBACvB,6BAAiB;gBACjB,2BAAe;gBACf,4BAAgB;aACjB,CAAC,QAAQ,CAAC,UAAU,CAAC;gBACpB,CAAC,CAAC,cAAM;gBACR,CAAC,CAAC,iBAAS,CAAC;YAEd,OAAO,CAAC,QAAQ,CAAC;gBACf,OAAO,EAAE,IAAI;gBACb,MAAM,EAAE,cAAc,CAAC,mBAAmB,CAAC,KAAK;gBAChD,UAAU,EAAE;oBACV,WAAW,EAAE,cAAc,CAAC,mBAAmB,CAAC,EAAE;yBAC/C,KAAK,CAAC,IAAI,CAAC;yBACX,IAAI,CAAC,gBAAgB,CAAC;yBACtB,QAAQ,EAAE;iBACd;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAe,qBAAqB;IAC3C,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -9,10 +9,13 @@ const depositsFetcher_1 = __importDefault(require("./depositsFetcher"));
9
9
  const vaultsJob_1 = __importDefault(require("./vaultsJob"));
10
10
  exports.platforms = [
11
11
  constants_1.circuitPlatform,
12
- constants_1.moosePlatform,
13
- constants_1.neutralPlatform,
14
12
  constants_1.gauntletPlatform,
15
13
  constants_1.hedgyPlatform,
14
+ constants_1.knightradePlatform,
15
+ constants_1.luckyperpPlatform,
16
+ constants_1.m1CapitalPlatform,
17
+ constants_1.moosePlatform,
18
+ constants_1.neutralPlatform,
16
19
  constants_1.vectisPlatform,
17
20
  ];
18
21
  exports.jobs = [vaultsJob_1.default];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAOqB;AACrB,wEAAgD;AAChD,4DAAoC;AAEvB,QAAA,SAAS,GAAe;IACnC,2BAAe;IACf,yBAAa;IACb,2BAAe;IACf,4BAAgB;IAChB,yBAAa;IACb,0BAAc;CACf,CAAC;AACW,QAAA,IAAI,GAAU,CAAC,mBAAS,CAAC,CAAC;AAC1B,QAAA,QAAQ,GAAc,CAAC,yBAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAUqB;AACrB,wEAAgD;AAChD,4DAAoC;AAEvB,QAAA,SAAS,GAAe;IACnC,2BAAe;IACf,4BAAgB;IAChB,yBAAa;IACb,8BAAkB;IAClB,6BAAiB;IACjB,6BAAiB;IACjB,yBAAa;IACb,2BAAe;IACf,0BAAc;CACf,CAAC;AACW,QAAA,IAAI,GAAU,CAAC,mBAAS,CAAC,CAAC;AAC1B,QAAA,QAAQ,GAAc,CAAC,yBAAe,CAAC,CAAC"}
@@ -45,6 +45,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
45
45
  continue;
46
46
  const element = elementRegistry.addElementMultiple({
47
47
  label: 'Deposit',
48
+ ref: position.pubkey,
49
+ link: `https://elemental.fund/?address=${pool.pubkey.toString()}`,
50
+ sourceRefs: [{ name: 'Pool', address: pool.pubkey }],
48
51
  });
49
52
  element.addAsset({
50
53
  address: pool.liquidity_mint,
@@ -1 +1 @@
1
- {"version":3,"file":"depositFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/elemental/depositFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAErC,2CAAwD;AAExD,iDAAsD;AACtD,+CAAmE;AACnE,gFAA6E;AAE7E,kEAA+D;AAC/D,uCAA2C;AAC3C,uCAA0D;AAE7C,QAAA,SAAS,GAAG,IAAI,sBAAS,CAAC,UAAU,CAAC,CAAC;AAEnD,MAAM,SAAS,GAAG,IAAI,6BAAa,CAAe,yBAAa,EAAE;IAC/D,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,KAAK,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC7C,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IAEtB,MAAM,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,4BAAkB,EAAC,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IAC5E,MAAM,SAAS,GAAG,MAAM,IAAA,sCAA6B,EACnD,UAAU,EACV,wBAAc,EACd,aAAa,CACd,CAAC;IACF,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEtC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAE1E,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;QACjC,IAAI,CAAC,QAAQ;YAAE,SAAS;QAExB,MAAM,IAAI,GAAG,KAAK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,CAAC;QAEH,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,IAAI,CAAC,cAAc;YAC5B,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC;YAC3D,cAAc,EAAE,IAAI;YACpB,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,UAAU,CAAC,EAAE;SACnC,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,WAAW;IAC5B,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/elemental/depositFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAErC,2CAAwD;AAExD,iDAAsD;AACtD,+CAAmE;AACnE,gFAA6E;AAE7E,kEAA+D;AAC/D,uCAA2C;AAC3C,uCAA0D;AAE7C,QAAA,SAAS,GAAG,IAAI,sBAAS,CAAC,UAAU,CAAC,CAAC;AAEnD,MAAM,SAAS,GAAG,IAAI,6BAAa,CAAe,yBAAa,EAAE;IAC/D,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,KAAK,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC7C,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IAEtB,MAAM,aAAa,GAAG,KAAK,CAAC,GAAG,CA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