@sonarwatch/portfolio-plugins 0.14.128 → 0.14.130

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/src/index.js +5 -0
  4. package/src/index.js.map +1 -1
  5. package/src/plugins/adrena/positionsFetcher.js +1 -0
  6. package/src/plugins/adrena/positionsFetcher.js.map +1 -1
  7. package/src/plugins/allbridge/positionsFetcher.js +9 -1
  8. package/src/plugins/allbridge/positionsFetcher.js.map +1 -1
  9. package/src/plugins/armada-staking/stakingFetcher.js +4 -1
  10. package/src/plugins/armada-staking/stakingFetcher.js.map +1 -1
  11. package/src/plugins/aurory/stakingFetcher.js +5 -1
  12. package/src/plugins/aurory/stakingFetcher.js.map +1 -1
  13. package/src/plugins/bonfida/offersFetcher.js +30 -37
  14. package/src/plugins/bonfida/offersFetcher.js.map +1 -1
  15. package/src/plugins/bonkrewards/positionFetcher.js +16 -22
  16. package/src/plugins/bonkrewards/positionFetcher.js.map +1 -1
  17. package/src/plugins/cyberfrogs/thorDepositFetcher.js +2 -0
  18. package/src/plugins/cyberfrogs/thorDepositFetcher.js.map +1 -1
  19. package/src/plugins/daos/realmsDepositsFetcher.js +29 -43
  20. package/src/plugins/daos/realmsDepositsFetcher.js.map +1 -1
  21. package/src/plugins/debridge/dlmmVaultsFetcher.js +16 -10
  22. package/src/plugins/debridge/dlmmVaultsFetcher.js.map +1 -1
  23. package/src/plugins/defiland/stakingFetcher.js +8 -1
  24. package/src/plugins/defiland/stakingFetcher.js.map +1 -1
  25. package/src/plugins/defituna/lendingFetcher.js +3 -0
  26. package/src/plugins/defituna/lendingFetcher.js.map +1 -1
  27. package/src/plugins/defituna/positionsFetcher.js +7 -1
  28. package/src/plugins/defituna/positionsFetcher.js.map +1 -1
  29. package/src/plugins/defituna/structs.d.ts +1 -0
  30. package/src/plugins/defituna/structs.js.map +1 -1
  31. package/src/plugins/divvy/constants.d.ts +1 -0
  32. package/src/plugins/divvy/constants.js +2 -1
  33. package/src/plugins/divvy/constants.js.map +1 -1
  34. package/src/plugins/divvy/housePoolFetcher.js +3 -0
  35. package/src/plugins/divvy/housePoolFetcher.js.map +1 -1
  36. package/src/plugins/divvy/stakingFetcher.js +3 -1
  37. package/src/plugins/divvy/stakingFetcher.js.map +1 -1
  38. package/src/plugins/drift/depositsFetcher.js +15 -0
  39. package/src/plugins/drift/depositsFetcher.js.map +1 -1
  40. package/src/plugins/drift-market-maker-vault/depositsFetcher.js +2 -1
  41. package/src/plugins/drift-market-maker-vault/depositsFetcher.js.map +1 -1
  42. package/src/plugins/elemental/depositFetcher.js +3 -0
  43. package/src/plugins/elemental/depositFetcher.js.map +1 -1
  44. package/src/plugins/ensofi/solanaLoansFetcher.js +6 -0
  45. package/src/plugins/ensofi/solanaLoansFetcher.js.map +1 -1
  46. package/src/plugins/exponent/liquidityFetcher.js +1 -0
  47. package/src/plugins/exponent/liquidityFetcher.js.map +1 -1
  48. package/src/plugins/exponent/tradeFetcher.js +1 -0
  49. package/src/plugins/exponent/tradeFetcher.js.map +1 -1
  50. package/src/plugins/famousfoxfederation/stakingFetcher.js +18 -22
  51. package/src/plugins/famousfoxfederation/stakingFetcher.js.map +1 -1
  52. package/src/plugins/flash/perpetualFetcher.js +1 -1
  53. package/src/plugins/flash/perpetualFetcher.js.map +1 -1
  54. package/src/plugins/fragmetric/pricingJob.js +6 -0
  55. package/src/plugins/fragmetric/pricingJob.js.map +1 -1
  56. package/src/plugins/francium/lendingFetcher.js +1 -0
  57. package/src/plugins/francium/lendingFetcher.js.map +1 -1
  58. package/src/plugins/futarchy/daosJob.js +9 -0
  59. package/src/plugins/futarchy/daosJob.js.map +1 -1
  60. package/src/plugins/genesysgo/stakingFetcher.js +12 -25
  61. package/src/plugins/genesysgo/stakingFetcher.js.map +1 -1
  62. package/src/plugins/goosefx/stakingFetcher.js +18 -27
  63. package/src/plugins/goosefx/stakingFetcher.js.map +1 -1
  64. package/src/plugins/gpool/stakingFetcher.js +5 -1
  65. package/src/plugins/gpool/stakingFetcher.js.map +1 -1
  66. package/src/plugins/guano/constants.d.ts +8 -0
  67. package/src/plugins/guano/constants.js +15 -0
  68. package/src/plugins/guano/constants.js.map +1 -0
  69. package/src/plugins/guano/filters.d.ts +20 -0
  70. package/src/plugins/guano/filters.js +41 -0
  71. package/src/plugins/guano/filters.js.map +1 -0
  72. package/src/plugins/guano/index.d.ts +6 -0
  73. package/src/plugins/guano/index.js +10 -0
  74. package/src/plugins/guano/index.js.map +1 -0
  75. package/src/plugins/guano/stakingFetcher.d.ts +3 -0
  76. package/src/plugins/guano/stakingFetcher.js +70 -0
  77. package/src/plugins/guano/stakingFetcher.js.map +1 -0
  78. package/src/plugins/guano/structs.d.ts +34 -0
  79. package/src/plugins/guano/structs.js +33 -0
  80. package/src/plugins/guano/structs.js.map +1 -0
  81. package/src/plugins/guano/types.d.ts +15 -0
  82. package/src/plugins/guano/types.js +3 -0
  83. package/src/plugins/guano/types.js.map +1 -0
  84. package/src/plugins/hedgehog/ammJob.js +8 -0
  85. package/src/plugins/hedgehog/ammJob.js.map +1 -1
  86. package/src/plugins/hxro/stakingFetcher.js +2 -0
  87. package/src/plugins/hxro/stakingFetcher.js.map +1 -1
  88. package/src/plugins/iloop/depositsFetcher.js +8 -0
  89. package/src/plugins/iloop/depositsFetcher.js.map +1 -1
  90. package/src/plugins/jupiter/exchange/dcaFetcher.js +6 -1
  91. package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
  92. package/src/plugins/jupiter/exchange/limitFetcher.js +3 -0
  93. package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -1
  94. package/src/plugins/jupiter/exchange/valueAverageFetcher.js +2 -1
  95. package/src/plugins/jupiter/exchange/valueAverageFetcher.js.map +1 -1
  96. package/src/plugins/kamino/lendsFetcher.js +6 -0
  97. package/src/plugins/kamino/lendsFetcher.js.map +1 -1
  98. package/src/plugins/kamino/ordersFetcher.js +2 -1
  99. package/src/plugins/kamino/ordersFetcher.js.map +1 -1
  100. package/src/plugins/layer3/stakingFetcher.js +1 -0
  101. package/src/plugins/layer3/stakingFetcher.js.map +1 -1
  102. package/src/plugins/lifinity/lockerFetcher.js +14 -17
  103. package/src/plugins/lifinity/lockerFetcher.js.map +1 -1
  104. package/src/plugins/loverflow/airdropClaimFetcher.js +1 -0
  105. package/src/plugins/loverflow/airdropClaimFetcher.js.map +1 -1
  106. package/src/plugins/magiceden/escrowFetcher.js +12 -18
  107. package/src/plugins/magiceden/escrowFetcher.js.map +1 -1
  108. package/src/plugins/marginfi/helpers.d.ts +2 -1
  109. package/src/plugins/marginfi/helpers.js +8 -2
  110. package/src/plugins/marginfi/helpers.js.map +1 -1
  111. package/src/plugins/marinade/ticketsFetcher.js +14 -31
  112. package/src/plugins/marinade/ticketsFetcher.js.map +1 -1
  113. package/src/plugins/metaplex/resizableNftFetcher.js +1 -0
  114. package/src/plugins/metaplex/resizableNftFetcher.js.map +1 -1
  115. package/src/plugins/nxfinance/positionsFetcher.js +19 -2
  116. package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
  117. package/src/plugins/orca/getWhirlpoolPositions.js +10 -1
  118. package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
  119. package/src/plugins/parcl/depositsFetcher.js +1 -1
  120. package/src/plugins/parcl/depositsFetcher.js.map +1 -1
  121. package/src/plugins/parcl/marginFetcher.js +1 -1
  122. package/src/plugins/parcl/marginFetcher.js.map +1 -1
  123. package/src/plugins/parcl/stakingFetcher.js +6 -3
  124. package/src/plugins/parcl/stakingFetcher.js.map +1 -1
  125. package/src/plugins/photofinish/stakingFetcher.js +6 -1
  126. package/src/plugins/photofinish/stakingFetcher.js.map +1 -1
  127. package/src/plugins/picasso/unstakingPositionsFetcher.js +3 -2
  128. package/src/plugins/picasso/unstakingPositionsFetcher.js.map +1 -1
  129. package/src/plugins/quarry/calculatePositions.js +7 -1
  130. package/src/plugins/quarry/calculatePositions.js.map +1 -1
  131. package/src/plugins/quarry/positionsFetcher.js +2 -0
  132. package/src/plugins/quarry/positionsFetcher.js.map +1 -1
  133. package/src/plugins/quarry/types.d.ts +3 -0
  134. package/src/plugins/ratex/positionsFetcher.js +2 -0
  135. package/src/plugins/ratex/positionsFetcher.js.map +1 -1
  136. package/src/plugins/saber/lpTokensJob.js +1 -0
  137. package/src/plugins/saber/lpTokensJob.js.map +1 -1
  138. package/src/plugins/sandglass/depositFetcher.js +3 -0
  139. package/src/plugins/sandglass/depositFetcher.js.map +1 -1
  140. package/src/plugins/sharky/loansFetcher.js +1 -0
  141. package/src/plugins/sharky/loansFetcher.js.map +1 -1
  142. package/src/plugins/solayer/airdropFetcher.d.ts +3 -0
  143. package/src/plugins/solayer/airdropFetcher.js +55 -0
  144. package/src/plugins/solayer/airdropFetcher.js.map +1 -0
  145. package/src/plugins/solayer/constants.d.ts +5 -0
  146. package/src/plugins/solayer/constants.js +13 -1
  147. package/src/plugins/solayer/constants.js.map +1 -1
  148. package/src/plugins/solayer/index.d.ts +2 -0
  149. package/src/plugins/solayer/index.js +4 -2
  150. package/src/plugins/solayer/index.js.map +1 -1
  151. package/src/plugins/solayer/proofsFetcher.js +7 -6
  152. package/src/plugins/solayer/proofsFetcher.js.map +1 -1
  153. package/src/plugins/solayer/types.d.ts +8 -0
  154. package/src/plugins/solayer/types.js +3 -0
  155. package/src/plugins/solayer/types.js.map +1 -0
  156. package/src/plugins/spdr/stakingFetcher.js +3 -0
  157. package/src/plugins/spdr/stakingFetcher.js.map +1 -1
  158. package/src/plugins/stabble/poolsJob.js +1 -0
  159. package/src/plugins/stabble/poolsJob.js.map +1 -1
  160. package/src/plugins/staratlas/lockersFetcher.js +2 -0
  161. package/src/plugins/staratlas/lockersFetcher.js.map +1 -1
  162. package/src/plugins/staratlas/stakingFetcher.js +2 -1
  163. package/src/plugins/staratlas/stakingFetcher.js.map +1 -1
  164. package/src/plugins/streamflow/vestingFetcher.js +1 -1
  165. package/src/plugins/streamflow/vestingFetcher.js.map +1 -1
  166. package/src/plugins/tensor/bidsFetcher.js +1 -1
  167. package/src/plugins/tensor/bidsFetcher.js.map +1 -1
  168. package/src/plugins/texture/loansFetcher.js +2 -1
  169. package/src/plugins/texture/loansFetcher.js.map +1 -1
  170. package/src/plugins/tulip/depositsFetcher.js +3 -1
  171. package/src/plugins/tulip/depositsFetcher.js.map +1 -1
  172. package/src/plugins/uxd/stakingFetcher.js +4 -3
  173. package/src/plugins/uxd/stakingFetcher.js.map +1 -1
  174. package/src/plugins/vaultka/lendingFetcher.js +5 -0
  175. package/src/plugins/vaultka/lendingFetcher.js.map +1 -1
  176. package/src/plugins/vaultka/strategyFetcher.js +3 -0
  177. package/src/plugins/vaultka/strategyFetcher.js.map +1 -1
  178. package/src/plugins/whalesmarket/depositFetcher.js +7 -5
  179. package/src/plugins/whalesmarket/depositFetcher.js.map +1 -1
  180. package/src/plugins/zelo/positionsFetcher.js +2 -0
  181. package/src/plugins/zelo/positionsFetcher.js.map +1 -1
  182. package/src/plugins/zeta/depositsFetcher.js +5 -1
  183. package/src/plugins/zeta/depositsFetcher.js.map +1 -1
  184. package/src/utils/clients/getClientSolanaAlt.d.ts +2 -0
  185. package/src/utils/clients/getClientSolanaAlt.js +93 -0
  186. package/src/utils/clients/getClientSolanaAlt.js.map +1 -0
  187. package/src/utils/elementbuilder/ElementRegistry.d.ts +1 -3
  188. package/src/utils/elementbuilder/ElementRegistry.js +2 -5
  189. package/src/utils/elementbuilder/ElementRegistry.js.map +1 -1
@@ -0,0 +1,34 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
3
+ /// <reference types="jito-ts/node_modules/@solana/web3.js" />
4
+ import { BeetStruct } from '@metaplex-foundation/beet';
5
+ import { PublicKey } from '@solana/web3.js';
6
+ import BigNumber from 'bignumber.js';
7
+ export type Stake = {
8
+ buffer: Buffer;
9
+ amount: BigNumber;
10
+ owner: PublicKey;
11
+ createdAt: BigNumber;
12
+ lastStakedAt: BigNumber;
13
+ lastClaimedAt: BigNumber;
14
+ lastClaimedAmount: BigNumber;
15
+ claimedAmount: BigNumber;
16
+ tierType: number;
17
+ bump: number;
18
+ padding: Buffer;
19
+ };
20
+ export declare const stakeStruct: BeetStruct<Stake, Partial<Stake>>;
21
+ export type Unstake = {
22
+ buffer: Buffer;
23
+ amount: BigNumber;
24
+ owner: PublicKey;
25
+ createdAt: BigNumber;
26
+ lastStakedAt: BigNumber;
27
+ lastClaimedAt: BigNumber;
28
+ lastClaimedAmount: BigNumber;
29
+ claimedAmount: BigNumber;
30
+ tierType: number;
31
+ bump: number;
32
+ padding: Buffer;
33
+ };
34
+ export declare const unstakeStruct: BeetStruct<Unstake, Partial<Unstake>>;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unstakeStruct = exports.stakeStruct = void 0;
4
+ const beet_1 = require("@metaplex-foundation/beet");
5
+ const beet_solana_1 = require("@metaplex-foundation/beet-solana");
6
+ const solana_1 = require("../../utils/solana");
7
+ exports.stakeStruct = new beet_1.BeetStruct([
8
+ ['buffer', (0, solana_1.blob)(8)],
9
+ ['amount', solana_1.u64],
10
+ ['owner', beet_solana_1.publicKey],
11
+ ['createdAt', solana_1.u64],
12
+ ['lastStakedAt', solana_1.u64],
13
+ ['lastClaimedAt', solana_1.u64],
14
+ ['lastClaimedAmount', solana_1.u64],
15
+ ['claimedAmount', solana_1.u64],
16
+ ['tierType', beet_1.u8],
17
+ ['bump', beet_1.u8],
18
+ ['padding', (0, solana_1.blob)(6)],
19
+ ], (args) => args);
20
+ exports.unstakeStruct = new beet_1.BeetStruct([
21
+ ['buffer', (0, solana_1.blob)(8)],
22
+ ['amount', solana_1.u64],
23
+ ['owner', beet_solana_1.publicKey],
24
+ ['createdAt', solana_1.u64],
25
+ ['lastStakedAt', solana_1.u64],
26
+ ['lastClaimedAt', solana_1.u64],
27
+ ['lastClaimedAmount', solana_1.u64],
28
+ ['claimedAmount', solana_1.u64],
29
+ ['tierType', beet_1.u8],
30
+ ['bump', beet_1.u8],
31
+ ['padding', (0, solana_1.blob)(6)],
32
+ ], (args) => args);
33
+ //# sourceMappingURL=structs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/guano/structs.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAC3D,kEAA6D;AAG7D,+CAA+C;AAgBlC,QAAA,WAAW,GAAG,IAAI,iBAAU,CACvC;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,QAAQ,EAAE,YAAG,CAAC;IACf,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,WAAW,EAAE,YAAG,CAAC;IAClB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,mBAAmB,EAAE,YAAG,CAAC;IAC1B,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,UAAU,EAAE,SAAE,CAAC;IAChB,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,SAAS,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;CACrB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAa,CACxB,CAAC;AAgBW,QAAA,aAAa,GAAG,IAAI,iBAAU,CACzC;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,QAAQ,EAAE,YAAG,CAAC;IACf,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,WAAW,EAAE,YAAG,CAAC;IAClB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,mBAAmB,EAAE,YAAG,CAAC;IAC1B,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,UAAU,EAAE,SAAE,CAAC;IAChB,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,SAAS,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;CACrB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAe,CAC1B,CAAC"}
@@ -0,0 +1,15 @@
1
+ export type AirdropResponse = {
2
+ result: Result;
3
+ };
4
+ export type Result = {
5
+ data: Data;
6
+ };
7
+ export type Data = {
8
+ json: JSON;
9
+ };
10
+ export type JSON = {
11
+ claimWallet: string;
12
+ token: string;
13
+ claimStatus: string;
14
+ availableTokenAmount: number;
15
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/guano/types.ts"],"names":[],"mappings":""}
@@ -127,6 +127,10 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
127
127
  price: usdcTokenPrice.price,
128
128
  },
129
129
  ],
130
+ sourceRefs: [
131
+ { name: 'Pool', address: acc.pubkey.toString() },
132
+ { name: 'Market', address: marketAcc.pubkey.toString() },
133
+ ],
130
134
  };
131
135
  const liquidityNameB = mintB.pubkey.toString() === marketAcc.yesToken.toString()
132
136
  ? 'Bet - YES'
@@ -151,6 +155,10 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
151
155
  price: usdcTokenPrice.price,
152
156
  },
153
157
  ],
158
+ sourceRefs: [
159
+ { name: 'Pool', address: acc.pubkey.toString() },
160
+ { name: 'Market', address: marketAcc.pubkey.toString() },
161
+ ],
154
162
  };
155
163
  sources.push(sourceA, sourceB);
156
164
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ammJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/hedgehog/ammJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAyE;AAGzE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YACb,CAAC,CAAC,UAAU,CAAC;QACjB,MAAM,OAAO,GAAqB;YAChC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE;YAChC,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,EAAE,EAAE,sBAAU;YACd,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;YACrB,WAAW,EAAE,cAAc;YAC3B,aAAa,EAAE,cAAc;YAC7B,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,MAAM,GAAG,cAAc,CAAC,KAAK;YACpC,WAAW,EAAE;gBACX;oBACE,OAAO,EAAE,uBAAc;oBACvB,WAAW,EAAE,MAAM;oBACnB,QAAQ,EAAE,2BAAkB;oBAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;oBAC3B,KAAK,EAAE,cAAc,CAAC,KAAK;iBAC5B;aACF;YACD,UAAU,EAAE;gBACV,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE;gBAChD,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE;aACzD;SACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,KAAK,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,MAAM;IACvB,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,CAAC;CACnB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -33,6 +33,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
33
33
  const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
34
34
  const element = elementRegistry.addElementMultiple({
35
35
  label: 'Staked',
36
+ link: 'https://app.hxro.finance/stake',
36
37
  });
37
38
  accounts.forEach((acc) => {
38
39
  element.addAsset({
@@ -44,6 +45,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
44
45
  .times(1000)
45
46
  .toNumber(),
46
47
  },
48
+ ref: acc.pubkey,
47
49
  });
48
50
  });
49
51
  return elementRegistry.getElements(cache);
@@ -1 +1 @@
1
- {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/hxro/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAwD;AAExD,iDAAsD;AACtD,+CAA8D;AAC9D,uCAA+C;AAC/C,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,4BAAkB,EAClB,eAAG,EACH;QACE;YACE,QAAQ,EAAE,GAAG;SACd;QACD;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,CAAC;aACV;SACF;KACF,CACF,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,QAAQ;KAChB,CAAC,CAAC;IAEH,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACvB,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,oBAAQ;YACjB,MAAM,EAAE,GAAG,CAAC,UAAU,CAAC,YAAY;YACnC,UAAU,EAAE;gBACV,WAAW,EAAE,GAAG,CAAC,gBAAgB;qBAC9B,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC;qBACvB,KAAK,CAAC,IAAI,CAAC;qBACX,QAAQ,EAAE;aACd;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":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/hxro/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAwD;AAExD,iDAAsD;AACtD,+CAA8D;AAC9D,uCAA+C;AAC/C,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,4BAAkB,EAClB,eAAG,EACH;QACE;YACE,QAAQ,EAAE,GAAG;SACd;QACD;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,CAAC;aACV;SACF;KACF,CACF,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,gCAAgC;KACvC,CAAC,CAAC;IAEH,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACvB,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,oBAAQ;YACjB,MAAM,EAAE,GAAG,CAAC,UAAU,CAAC,YAAY;YACnC,UAAU,EAAE;gBACV,WAAW,EAAE,GAAG,CAAC,gBAAgB;qBAC9B,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC;qBACvB,KAAK,CAAC,IAAI,CAAC;qBACX,QAAQ,EAAE;aACd;YACD,GAAG,EAAE,GAAG,CAAC,MAAM;SAChB,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"}
@@ -46,12 +46,17 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
46
46
  accounts.forEach((account) => {
47
47
  const element = elementRegistry.addElementBorrowlend({
48
48
  label: 'Lending',
49
+ link: 'https://app.iloop.finance/',
50
+ ref: account.pubkey,
49
51
  });
50
52
  const depositMarket = markets.get(account.deposit_position.reserve.toString());
51
53
  if (depositMarket) {
52
54
  element.addSuppliedAsset({
53
55
  address: depositMarket.owner_cached,
54
56
  amount: account.deposit_position.collateral_amount,
57
+ sourceRefs: [
58
+ { name: 'Lending Market', address: depositMarket.pubkey.toString() },
59
+ ],
55
60
  });
56
61
  }
57
62
  if (account.borrow_position.borrowed_amount.isGreaterThan(0)) {
@@ -60,6 +65,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
60
65
  element.addBorrowedAsset({
61
66
  address: borrowMarket.owner_cached,
62
67
  amount: account.borrow_position.borrowed_amount,
68
+ sourceRefs: [
69
+ { name: 'Lending Market', address: borrowMarket.pubkey.toString() },
70
+ ],
63
71
  });
64
72
  }
65
73
  }
@@ -1 +1 @@
1
- {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/iloop/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,iDAAsD;AACtD,+CAA6E;AAC7E,2CAAqE;AACrE,uCAA4D;AAC5D,kEAA+D;AAC/D,gFAA6E;AAC7E,4DAAyD;AAEzD,MAAM,WAAW,GAAG,IAAI,6BAAa,CAInC,2BAAe,EACf;IACE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,EACD,CAAC,OAAO,EAAE,EAAE,CACV,OAAO;IACL,CAAC,CAAC,IAAA,uBAAU,EACR,OAAO,CAAC,MAAM,CACZ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,CACW,EACnC,QAAQ,CACT;IACH,CAAC,CAAC,IAAI,GAAG,EAAE,CAChB,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,0BAAgB,EAChB,qBAAS,EACT;QACE;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,aAAa;aACrB;SACF;QACD;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,KAAK;aACb;SACF;KACF,CACF,CAAC;IAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,OAAO,GAAG,MAAM,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAEjD,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAE1E,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC3B,MAAM,OAAO,GAAG,eAAe,CAAC,oBAAoB,CAAC;YACnD,KAAK,EAAE,SAAS;SACjB,CAAC,CAAC;QACH,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAC/B,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,QAAQ,EAAE,CAC5C,CAAC;QAEF,IAAI,aAAa,EAAE,CAAC;YAClB,OAAO,CAAC,gBAAgB,CAAC;gBACvB,OAAO,EAAE,aAAa,CAAC,YAAY;gBACnC,MAAM,EAAE,OAAO,CAAC,gBAAgB,CAAC,iBAAiB;aACnD,CAAC,CAAC;QACL,CAAC;QAED,IAAI,OAAO,CAAC,eAAe,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;YAC7D,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAC9B,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,QAAQ,EAAE,CAC3C,CAAC;YACF,IAAI,YAAY,EAAE,CAAC;gBACjB,OAAO,CAAC,gBAAgB,CAAC;oBACvB,OAAO,EAAE,YAAY,CAAC,YAAY;oBAClC,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,eAAe;iBAChD,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,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,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/iloop/depositsFetcher.ts"],"names":[],"mappings":";;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AAC"}
@@ -24,7 +24,11 @@ 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
  for (let i = 0; i < accounts.length; i++) {
26
26
  const account = accounts[i];
27
- const element = elementRegistry.addElementTrade({ label: 'DCA' });
27
+ const element = elementRegistry.addElementTrade({
28
+ label: 'DCA',
29
+ ref: account.pubkey.toString(),
30
+ link: 'https://jup.ag/recurring/',
31
+ });
28
32
  element.setTrade({
29
33
  inputAsset: {
30
34
  address: account.inputMint,
@@ -36,6 +40,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
36
40
  },
37
41
  initialInputAmount: account.inDeposited,
38
42
  withdrawnOutputAmount: account.outWithdrawn,
43
+ createdAt: account.createdAt.toNumber() * 1000,
39
44
  });
40
45
  }
41
46
  return elementRegistry.getElements(cache);
@@ -1 +1 @@
1
- {"version":3,"file":"dcaFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/dcaFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,oDAAyD;AACzD,kDAAiE;AACjE,2CAAuD;AACvD,uCAAsC;AACtC,uCAAuC;AACvC,mFAAgF;AAEhF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,mBAAS,EACT,wBAAY,EACZ,IAAA,oBAAU,EAAC,KAAK,CAAC,CAClB,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAE1E,KAAK,IAAI,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B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -34,6 +34,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
34
34
  const isV1 = i <= v1Length - 1;
35
35
  const element = elementRegistry.addElementTrade({
36
36
  tags: isV1 ? ['deprecated'] : undefined,
37
+ ref: account.pubkey.toString(),
38
+ link: 'https://jup.ag/trigger/',
39
+ label: 'LimitOrder',
37
40
  });
38
41
  element.setTrade({
39
42
  inputAsset: {
@@ -1 +1 @@
1
- {"version":3,"file":"limitFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/limitFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,oDAAyD;AACzD,kDAAiE;AACjE,2CAA6E;AAC7E,uCAAyC;AACzC,mFAAgF;AAChF,uCAAiE;AAEjE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,WAAW,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACpC,KAAK;QACL,IAAA,iCAAwB,EACtB,MAAM,EACN,0BAAgB,EAChB,4BAAgB,EAChB,IAAA,sBAAY,EAAC,KAAK,CAAC,CACpB;QACD,KAAK;QACL,IAAA,iCAAwB,EACtB,MAAM,EACN,4BAAkB,EAClB,4BAAgB,EAChB,IAAA,sBAAY,EAAC,KAAK,CAAC,CACpB;KACF,CAAC,CAAC;IACH,MAAM,QAAQ,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IACvC,MAAM,QAAQ,GAAG,WAAW,CAAC,IAAI,EAAE,CAAC;IACpC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CA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CAAC;YACf,UAAU,EAAE;gBACV,OAAO,EAAE,OAAO,CAAC,SAAS;gBAC1B,MAAM,EAAE,OAAO,CAAC,YAAY;aAC7B;YACD,WAAW,EAAE;gBACX,OAAO,EAAE,OAAO,CAAC,UAAU;gBAC3B,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC;aAC5D;YACD,kBAAkB,EAAE,OAAO,CAAC,eAAe;YAC3C,oBAAoB,EAAE,OAAO,CAAC,eAAe;YAC7C,qBAAqB,EAAE,CAAC;SACzB,CAAC,CAAC;IACL,CAAC;IAED,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -51,7 +51,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
51
51
  type: portfolio_core_1.PortfolioElementType.trade,
52
52
  networkId: portfolio_core_1.NetworkId.solana,
53
53
  platformId: constants_1.platformId,
54
- label: 'Deposit',
54
+ label: 'DCA',
55
55
  data: {
56
56
  assets: {
57
57
  input: inputAsset,
@@ -68,6 +68,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
68
68
  .div(Math.pow(10, outputTokenPrice.decimals))
69
69
  .toNumber(),
70
70
  ref: account.pubkey.toString(),
71
+ link: 'https://jup.ag/recurring/',
71
72
  },
72
73
  value: (0, portfolio_core_1.getUsdValueSum)([inputAsset.value, (outputAsset === null || outputAsset === void 0 ? void 0 : outputAsset.value) || 0]),
73
74
  };
@@ -1 +1 @@
1
- {"version":3,"file":"valueAverageFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/valueAverageFetcher.ts"],"names":[],"mappings":";;;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,EAAE,EAAI,gBAAgB,CAAC,QAAQ,CAAA,CAAC;qBACpC,QAAQ,EAAE;gBACb,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE;aAC/B;YACD,KAAK,EAAE,IAAA,+BAAc,EAAC,CAAC,UAAU,CAAC,KAAK,EAAE,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,KAAK,KAAI,CAAC,CAAC,CAAC;SACnE,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,gBAAgB;IACjC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"valueAverageFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/valueAverageFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAGpC,2CAAgE;AAChE,oDAAyD;AACzD,kDAAiE;AACjE,wGAAgF;AAChF,uCAA+C;AAC/C,uCAAgD;AAEhD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,4BAAkB,EAClB,iCAAqB,EACrB,IAAA,6BAAmB,EAAC,KAAK,CAAC,CAC3B,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,mBAAmB,CACjD,QAAQ;SACL,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAA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 -136,6 +136,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
136
136
  .dividedBy(new bignumber_js_1.default(10).pow(reserve.liquidity.mintDecimals))
137
137
  .dividedBy(reserve.exchangeRate),
138
138
  alreadyShifted: true,
139
+ sourceRefs: [
140
+ { name: 'Reserve', address: deposit.depositReserve.toString() },
141
+ ],
139
142
  });
140
143
  if (type === 'multiply') {
141
144
  const elevationGroup = elevationGroups.get(obligation.elevationGroup);
@@ -176,6 +179,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
176
179
  address: reserve.liquidity.mintPubkey,
177
180
  amount: amountRaw.dividedBy(new bignumber_js_1.default(10).pow(reserve.liquidity.mintDecimals)),
178
181
  alreadyShifted: true,
182
+ sourceRefs: [
183
+ { name: 'Reserve', address: borrow.borrowReserve.toString() },
184
+ ],
179
185
  });
180
186
  element.addBorrowedWeight(Number(reserve.config.borrowFactorPct) / 100);
181
187
  element.addBorrowedYield([
@@ -1 +1 @@
1
- {"version":3,"file":"lendsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/lendsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAiE;AACjE,gEAAqC;AACrC,2CAMqB;AAGrB,iDAAsD;AACtD,2CAAmE;AAEnE,+CAAmE;AACnE,yCAIwB;AACxB,6CAAsE;AACtE,gFAA6E;AAC7E,kEAA+D;AAC/D,4DAAyD;AAEzD,MAAM,eAAe,GAAG,kCAAkC,CAAC;AAE3D,MAAM,WAAW,GAAG,IAAI,6BAAa,CAAW,sBAAU,EAAE;IAC1D,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CAAC,CAAC;AAEH,MAAM,2BAA2B,GAAG,IAAI,6BAAa,CAInD,8BAAkB,EAClB;IACE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,EACD,CAAC,GAAG,EAAE,E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CAAC,eAAe,CAAC,GAAG,GAAG,CAAC,CAAC;YACxE,OAAO,CAAC,gBAAgB,CAAC;gBACvB,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,IAAA,yBAAQ,EAAC,OAAO,CAAC,SAAS,CAAC,EAAE;aAC/D,CAAC,CAAC;QACL,CAAC;QAED,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAC5C,MAAM,eAAe,GAAG,gBAAgB,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;YAChE,MAAM,QAAQ,GAAG,gBAAgB,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;YAE7D,OAAO,CAAC,OAAO,CACb,GAAG,OAAO,CAAC,IAAI,IAAI,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,GAAG,CAC3D,CAAC;QACJ,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"}
@@ -41,7 +41,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
41
41
  const element = elementRegistry.addElementTrade({
42
42
  label: 'LimitOrder',
43
43
  ref: account.pubkey,
44
- name: 'Swap Tips',
44
+ link: `https://swap.kamino.finance/swap`,
45
45
  });
46
46
  element.setTrade({
47
47
  inputAsset: {
@@ -59,6 +59,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
59
59
  if (account.tipAmount.isPositive()) {
60
60
  const tipElement = elementRegistry.addElementMultiple({
61
61
  label: 'Rewards',
62
+ name: 'Swap Tips',
62
63
  ref: account.pubkey,
63
64
  link: `https://swap.kamino.finance/swap`,
64
65
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ordersFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/ordersFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4E;AAG5E,2CAA8D;AAC9D,iDAAsD;AACtD,+CAA8D;AAC9D,gFAA6E;AAC7E,2CAA8C;AAE9C,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,mBAAW,EACX,+BAAmB,EACnB;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;IACF,IAAI,CAAC,QAAQ;QAAE,OAAO,EAAE,CAAC;IAEzB,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAE1E,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC3B,MAAM,OAAO,GAAG,eAAe,CAAC,eAAe,CAAC;YAC9C,KAAK,EAAE,YAAY;YACnB,GAAG,EAAE,OAAO,CAAC,MAAM;YACnB,IAAI,EAAE,WAAW;SAClB,CAAC,CAAC;QAEH,OAAO,CAAC,QAAQ,CAAC;YACf,UAAU,EAAE;gBACV,OAAO,EAAE,OAAO,CAAC,SAAS;gBAC1B,MAAM,EAAE,OAAO,CAAC,oBAAoB;aACrC;YACD,WAAW,EAAE;gBACX,OAAO,EAAE,OAAO,CAAC,UAAU;gBAC3B,MAAM,EAAE,OAAO,CAAC,kBAAkB;aACnC;YACD,kBAAkB,EAAE,OAAO,CAAC,kBAAkB;YAC9C,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;YAClD,qBAAqB,EAAE,CAAC;SACzB,CAAC,CAAC;QAEH,IAAI,OAAO,CAAC,SAAS,CAAC,UAAU,EAAE,EAAE,CAAC;YACnC,MAAM,UAAU,GAAG,eAAe,CAAC,kBAAkB,CAAC;gBACpD,KAAK,EAAE,SAAS;gBAChB,GAAG,EAAE,OAAO,CAAC,MAAM;gBACnB,IAAI,EAAE,kCAAkC;aACzC,CAAC,CAAC;YACH,UAAU,CAAC,QAAQ,CAAC;gBAClB,OAAO,EAAE,oCAAmB;gBAC5B,MAAM,EAAE,OAAO,CAAC,SAAS;aAC1B,CAAC,CAAC;QACL,CAAC;IACH,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,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"ordersFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/ordersFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4E;AAG5E,2CAA8D;AAC9D,iDAAsD;AACtD,+CAA8D;AAC9D,gFAA6E;AAC7E,2CAA8C;AAE9C,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,mBAAW,EACX,+BAAmB,EACnB;QACE;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,aAAa;aACrB;SACF;Q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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,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -42,6 +42,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
42
42
  const element = elementRegistry.addElementMultiple({
43
43
  label: 'Staked',
44
44
  ref: stakeAccount.pubkey,
45
+ link: 'https://solana.layer3.xyz/rewards?tab=staking',
45
46
  });
46
47
  element.addAsset({
47
48
  address: constants_1.l3Mint,
@@ -1 +1 @@
1
- {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/layer3/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAG5C,2CAA4D;AAC5D,+CAI4B;AAC5B,iDAAsD;AACtD,gFAA6E;AAC7E,uCAA0C;AAE1C,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,CAAC,kBAAkB,CAAC,GAAG,mBAAS,CAAC,sBAAsB,CAC3D;QACE,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;QAC/B,yBAAgB,CAAC,QAAQ,EAAE;QAC3B,kBAAM,CAAC,QAAQ,EAAE;KAClB,EACD,iCAAwB,CACzB,CAAC;IAEF,MAAM,aAAa,GAAG,MAAM,IAAA,2BAAkB,EAAC,MAAM,EAAE,qBAAS,EAAE;QAChE,EAAE,QAAQ,EAAE,EAAE,EAAE;QAChB;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,kBAAkB,CAAC,QAAQ,EAAE;aACrC;SACF;KACF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AM;YAChC,UAAU,EAAE;gBACV,WAAW,EAAE,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE;oBACrD,CAAC,CAAC,IAAI,IAAI,CACN,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CACrD,CAAC,OAAO,EAAE;oBACb,CAAC,CAAC,SAAS;aACd;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -8,9 +8,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
11
  Object.defineProperty(exports, "__esModule", { value: true });
15
12
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
13
  const constants_1 = require("./constants");
@@ -18,7 +15,7 @@ const clients_1 = require("../../utils/clients");
18
15
  const solana_1 = require("../../utils/solana");
19
16
  const structs_1 = require("./structs");
20
17
  const filters_1 = require("./filters");
21
- const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
18
+ const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
22
19
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
23
20
  const client = (0, clients_1.getClientSolana)();
24
21
  const accounts = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.escrowStruct, constants_1.LifinityLockerProgramId, (0, filters_1.escrowFilter)(owner));
@@ -28,26 +25,26 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
28
25
  const { amount, escrowEndsAt, duration } = escrowAccount;
29
26
  if (amount.isZero())
30
27
  return [];
31
- const lfntyTokenPrice = yield cache.getTokenPrice(constants_1.lfntyMint, portfolio_core_1.NetworkId.solana);
32
28
  const yearsLocked = duration.dividedBy(60 * 60 * 24 * 365).decimalPlaces(0);
33
29
  let name = 'Locked';
34
30
  if (escrowEndsAt.isZero()) {
35
31
  name += ` (${yearsLocked.toString()} year${yearsLocked.isGreaterThan(1) ? 's' : ''})`;
36
32
  }
37
- const asset = (0, tokenPriceToAssetToken_1.default)(constants_1.lfntyMint, amount.dividedBy(Math.pow(10, constants_1.lfntyDecimals)).toNumber(), portfolio_core_1.NetworkId.solana, lfntyTokenPrice, undefined, {
38
- lockedUntil: escrowEndsAt.times(1000).toNumber() || undefined,
33
+ const registry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
34
+ const element = registry.addElementMultiple({
35
+ label: 'Vesting',
36
+ link: 'https://lifinity.io/reward',
37
+ ref: escrowAccount.pubkey,
38
+ name,
39
39
  });
40
- return [
41
- {
42
- label: 'Vesting',
43
- type: portfolio_core_1.PortfolioElementType.multiple,
44
- data: { assets: [asset] },
45
- networkId: portfolio_core_1.NetworkId.solana,
46
- platformId: constants_1.platformId,
47
- value: asset.value,
48
- name,
40
+ element.addAsset({
41
+ address: constants_1.lfntyMint,
42
+ amount,
43
+ attributes: {
44
+ lockedUntil: escrowEndsAt.times(1000).toNumber() || undefined,
49
45
  },
50
- ];
46
+ });
47
+ return registry.getElements(cache);
51
48
  });
52
49
  const fetcher = {
53
50
  id: `${constants_1.platformId}-locker`,
@@ -1 +1 @@
1
- {"version":3,"file":"lockerFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/lifinity/lockerFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAA6E;AAG7E,2CAKqB;AACrB,iDAAsD;AACt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,MAAM,EAAE;QAAE,OAAO,EAAE,CAAC;IAE/B,MAAM,WAAW,GAAG,QAAQ,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAC5E,IAAI,IAAI,GAAG,QAAQ,CAAC;IACpB,IAAI,YAAY,CAAC,MAAM,EAAE,EAAE,CAAC;QAC1B,IAAI,IAAI,KAAK,WAAW,CAAC,QAAQ,EAAE,QACjC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EACvC,GAAG,CAAC;IACN,CAAC;IACD,MAAM,QAAQ,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IACnE,MAAM,OAAO,GAAG,QAAQ,CAAC,kBAAkB,CAAC;QAC1C,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,4BAA4B;QAClC,GAAG,EAAE,aAAa,CAAC,MAAM;QACzB,IAAI;KACL,CAAC,CAAC;IAEH,OAAO,CAAC,QAAQ,CAAC;QACf,OAAO,EAAE,qBAAS;QAClB,MAAM;QACN,UAAU,EAAE;YACV,WAAW,EAAE,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,IAAI,SAAS;SAC9D;KACF,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -24,6 +24,7 @@ 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: 'Airdrop',
27
+ ref: claim.pubkey,
27
28
  });
28
29
  element.addAsset({
29
30
  address: claim.mintAddress.toString(),
@@ -1 +1 @@
1
- {"version":3,"file":"airdropClaimFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/loverflow/airdropClaimFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAyC;AAEzC,iDAAsD;AACtD,uCAAwC;AACxC,gFAA6E;AAC7E,kFAA+E;AAC/E,uCAAmC;AAEnC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,KAAK,GAAG,MAAM,IAAA,2CAAoB,EACtC,UAAU,EACV,qBAAW,EACX,IAAA,gBAAM,EAAC,KAAK,CAAC,CACd,CAAC;IACF,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,CAAC;IAE/C,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;IACH,OAAO,CAAC,QAAQ,CAAC;QACf,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE;QACrC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC;QACvC,cAAc,EAAE,IAAI;QACpB,UAAU,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE;KAClC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"airdropClaimFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/loverflow/airdropClaimFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAyC;AAEzC,iDAAsD;AACtD,uCAAwC;AACxC,gFAA6E;AAC7E,kFAA+E;AAC/E,uCAAmC;AAEnC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,KAAK,GAAG,MAAM,IAAA,2CAAoB,EACtC,UAAU,EACV,qBAAW,EACX,IAAA,gBAAM,EAAC,KAAK,CAAC,CACd,CAAC;IACF,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,CAAC;IAE/C,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,KAAK,CAAC,MAAM;KAClB,CAAC,CAAC;IACH,OAAO,CAAC,QAAQ,CAAC;QACf,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE;QACrC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC;QACvC,cAAc,EAAE,IAAI;QACpB,UAAU,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE;KAClC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -8,35 +8,29 @@ 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
- const bignumber_js_1 = __importDefault(require("bignumber.js"));
17
13
  const constants_1 = require("./constants");
18
14
  const helpers_1 = require("./helpers");
19
15
  const clients_1 = require("../../utils/clients");
20
- const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
16
+ const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
21
17
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
22
18
  const pda = (0, helpers_1.getEscrowAccount)(owner);
23
19
  const client = (0, clients_1.getClientSolana)();
24
20
  const amount = yield client.getBalance(pda);
25
21
  if (!amount)
26
22
  return [];
27
- const solTokenPrice = yield cache.getTokenPrice(portfolio_core_1.solanaNativeAddress, portfolio_core_1.NetworkId.solana);
28
- const asset = (0, tokenPriceToAssetToken_1.default)(portfolio_core_1.solanaNativeAddress, new bignumber_js_1.default(amount).dividedBy(Math.pow(10, portfolio_core_1.solanaNativeDecimals)).toNumber(), portfolio_core_1.NetworkId.solana, solTokenPrice);
29
- return [
30
- {
31
- type: portfolio_core_1.PortfolioElementType.multiple,
32
- label: 'Deposit',
33
- networkId: portfolio_core_1.NetworkId.solana,
34
- platformId: constants_1.platformId,
35
- name: 'Escrow',
36
- value: asset.value,
37
- data: { assets: [asset] },
38
- },
39
- ];
23
+ const registry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
24
+ const element = registry.addElementMultiple({
25
+ label: 'Deposit',
26
+ ref: pda,
27
+ name: 'Escrow',
28
+ });
29
+ element.addAsset({
30
+ address: portfolio_core_1.solanaNativeAddress,
31
+ amount,
32
+ });
33
+ return registry.getElements(cache);
40
34
  });
41
35
  const fetcher = {
42
36
  id: `${constants_1.platformId}-escrow`,
@@ -1 +1 @@
1
- {"version":3,"file":"escrowFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/magiceden/escrowFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AAGrC,2CAAyC;AACzC,uCAA6C;AAC7C,iDAAsD;AACtD,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,GAAG,GAAG,IAAA,0BAAgB,EAAC,KAAK,CAAC,CAAC;IACpC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IAC5C,IAAI,CAAC,MAAM;QAAE,OAAO,EAAE,CAAC;IAEvB,MAAM,aAAa,GAAG,MAAM,KAAK,CAAC,aAAa,CAC7C,oCAAmB,EACnB,0BAAS,CAAC,MAAM,CACjB,CAAC;IAEF,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,oCAAmB,EACnB,IAAI,sBAAS,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,qCAAoB,CAAA,CAAC,CAAC,QAAQ,EAAE,EACtE,0BAAS,CAAC,MAAM,EAChB,aAAa,CACd,CAAC;IAEF,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EA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IACvB,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -3,6 +3,7 @@ import { PortfolioElement, TokenPrice } from '@sonarwatch/portfolio-core';
3
3
  import { Bank } from './structs/Bank';
4
4
  import { MarginfiAccount } from './structs/MarginfiAccount';
5
5
  import { BankInfo } from './types';
6
+ import { ParsedAccount } from '../../utils/solana';
6
7
  export declare function wrappedI80F48toBigNumber({ value }: {
7
8
  value: BigNumber;
8
9
  }, scaleDecimal?: number): BigNumber;
@@ -10,4 +11,4 @@ export declare function computeInterestRates(bank: Bank): {
10
11
  lendingApr: number;
11
12
  borrowingApr: number;
12
13
  };
13
- export declare function getElementFromAccount(marginfiAccount: MarginfiAccount, banksInfoByAddress: Map<string, BankInfo>, tokenPriceById: Map<string, TokenPrice>): PortfolioElement | null;
14
+ export declare function getElementFromAccount(marginfiAccount: ParsedAccount<MarginfiAccount>, banksInfoByAddress: Map<string, BankInfo>, tokenPriceById: Map<string, TokenPrice>): PortfolioElement | null;