@sonarwatch/portfolio-plugins 0.14.138 → 0.14.140

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 (400) hide show
  1. package/CHANGELOG.md +18 -10
  2. package/package.json +1 -1
  3. package/src/index.js +358 -639
  4. package/src/index.js.map +1 -1
  5. package/src/orphanPlatforms.d.ts +1 -0
  6. package/src/orphanPlatforms.js +12 -1
  7. package/src/orphanPlatforms.js.map +1 -1
  8. package/src/plugins/01/constants.js +8 -3
  9. package/src/plugins/01/constants.js.map +1 -1
  10. package/src/plugins/01/depostisFetcher.js +2 -1
  11. package/src/plugins/01/depostisFetcher.js.map +1 -1
  12. package/src/plugins/accessprotocol/constants.d.ts +1 -1
  13. package/src/plugins/accessprotocol/constants.js +8 -3
  14. package/src/plugins/accessprotocol/constants.js.map +1 -1
  15. package/src/plugins/adrastea/constants.js +4 -0
  16. package/src/plugins/adrastea/constants.js.map +1 -1
  17. package/src/plugins/adrena/constants.d.ts +2 -2
  18. package/src/plugins/adrena/constants.js +8 -3
  19. package/src/plugins/adrena/constants.js.map +1 -1
  20. package/src/plugins/allbridge/constants.js +6 -0
  21. package/src/plugins/allbridge/constants.js.map +1 -1
  22. package/src/plugins/armada-staking/constants.js +7 -0
  23. package/src/plugins/armada-staking/constants.js.map +1 -1
  24. package/src/plugins/atrix/constants.js +4 -1
  25. package/src/plugins/atrix/constants.js.map +1 -1
  26. package/src/plugins/aurory/constants.d.ts +1 -1
  27. package/src/plugins/aurory/constants.js +7 -2
  28. package/src/plugins/aurory/constants.js.map +1 -1
  29. package/src/plugins/banx/constants.d.ts +1 -1
  30. package/src/plugins/banx/constants.js +7 -2
  31. package/src/plugins/banx/constants.js.map +1 -1
  32. package/src/plugins/baskt/constants.js +3 -0
  33. package/src/plugins/baskt/constants.js.map +1 -1
  34. package/src/plugins/bluefin/index.d.ts +2 -2
  35. package/src/plugins/bluefin/index.js +2 -2
  36. package/src/plugins/bluefin/index.js.map +1 -1
  37. package/src/plugins/bonfida/constants.d.ts +1 -1
  38. package/src/plugins/bonfida/constants.js +8 -2
  39. package/src/plugins/bonfida/constants.js.map +1 -1
  40. package/src/plugins/bonkrewards/constants.d.ts +1 -1
  41. package/src/plugins/bonkrewards/constants.js +7 -2
  42. package/src/plugins/bonkrewards/constants.js.map +1 -1
  43. package/src/plugins/bskt/constants.d.ts +1 -1
  44. package/src/plugins/bskt/constants.js +7 -2
  45. package/src/plugins/bskt/constants.js.map +1 -1
  46. package/src/plugins/citrus/constants.js +3 -0
  47. package/src/plugins/citrus/constants.js.map +1 -1
  48. package/src/plugins/clone/constants.js +2 -0
  49. package/src/plugins/clone/constants.js.map +1 -1
  50. package/src/plugins/clone/depositsFetcher.js +1 -1
  51. package/src/plugins/clone/depositsFetcher.js.map +1 -1
  52. package/src/plugins/cropper/constants.d.ts +1 -0
  53. package/src/plugins/cropper/constants.js +9 -1
  54. package/src/plugins/cropper/constants.js.map +1 -1
  55. package/src/plugins/cyberfrogs/constants.js +2 -0
  56. package/src/plugins/cyberfrogs/constants.js.map +1 -1
  57. package/src/plugins/daos/constants.js +4 -0
  58. package/src/plugins/daos/constants.js.map +1 -1
  59. package/src/plugins/debridge/constants.d.ts +1 -1
  60. package/src/plugins/debridge/constants.js +8 -2
  61. package/src/plugins/debridge/constants.js.map +1 -1
  62. package/src/plugins/deepbook/index.d.ts +2 -0
  63. package/src/plugins/deepbook/index.js +2 -1
  64. package/src/plugins/deepbook/index.js.map +1 -1
  65. package/src/plugins/defiland/constants.d.ts +1 -1
  66. package/src/plugins/defiland/constants.js +7 -2
  67. package/src/plugins/defiland/constants.js.map +1 -1
  68. package/src/plugins/defituna/constants.js +3 -0
  69. package/src/plugins/defituna/constants.js.map +1 -1
  70. package/src/plugins/defituna/lendingFetcher.js +2 -0
  71. package/src/plugins/defituna/lendingFetcher.js.map +1 -1
  72. package/src/plugins/defituna/positionsFetcher.js +2 -0
  73. package/src/plugins/defituna/positionsFetcher.js.map +1 -1
  74. package/src/plugins/divvy/constants.d.ts +1 -1
  75. package/src/plugins/divvy/constants.js +7 -2
  76. package/src/plugins/divvy/constants.js.map +1 -1
  77. package/src/plugins/divvy/housePoolFetcher.js +2 -0
  78. package/src/plugins/divvy/housePoolFetcher.js.map +1 -1
  79. package/src/plugins/drift/constants.d.ts +1 -1
  80. package/src/plugins/drift/constants.js +8 -2
  81. package/src/plugins/drift/constants.js.map +1 -1
  82. package/src/plugins/drift/depositsFetcher.js +2 -0
  83. package/src/plugins/drift/depositsFetcher.js.map +1 -1
  84. package/src/plugins/drift/index.d.ts +2 -1
  85. package/src/plugins/drift/index.js +3 -4
  86. package/src/plugins/drift/index.js.map +1 -1
  87. package/src/plugins/drift-market-maker-vault/constants.js +24 -1
  88. package/src/plugins/drift-market-maker-vault/constants.js.map +1 -1
  89. package/src/plugins/drift-market-maker-vault/depositsFetcher.js +2 -0
  90. package/src/plugins/drift-market-maker-vault/depositsFetcher.js.map +1 -1
  91. package/src/plugins/elemental/constants.js +4 -0
  92. package/src/plugins/elemental/constants.js.map +1 -1
  93. package/src/plugins/elemental/depositFetcher.js +1 -1
  94. package/src/plugins/elemental/depositFetcher.js.map +1 -1
  95. package/src/plugins/ensofi/constants.js +5 -0
  96. package/src/plugins/ensofi/constants.js.map +1 -1
  97. package/src/plugins/exponent/constants.js +5 -0
  98. package/src/plugins/exponent/constants.js.map +1 -1
  99. package/src/plugins/exponent/liquidityFetcher.js +1 -1
  100. package/src/plugins/exponent/liquidityFetcher.js.map +1 -1
  101. package/src/plugins/famousfoxfederation/constants.d.ts +1 -1
  102. package/src/plugins/famousfoxfederation/constants.js +4 -2
  103. package/src/plugins/famousfoxfederation/constants.js.map +1 -1
  104. package/src/plugins/famousfoxfederation/stakingFetcher.js +4 -2
  105. package/src/plugins/famousfoxfederation/stakingFetcher.js.map +1 -1
  106. package/src/plugins/flash/constants.js +4 -0
  107. package/src/plugins/flash/constants.js.map +1 -1
  108. package/src/plugins/flash/perpetualFetcher.js +1 -1
  109. package/src/plugins/flash/perpetualFetcher.js.map +1 -1
  110. package/src/plugins/flash/stakeFetcher.js +12 -10
  111. package/src/plugins/flash/stakeFetcher.js.map +1 -1
  112. package/src/plugins/fluxbeam/constants.js +6 -0
  113. package/src/plugins/fluxbeam/constants.js.map +1 -1
  114. package/src/plugins/fragmetric/constants.js +10 -0
  115. package/src/plugins/fragmetric/constants.js.map +1 -1
  116. package/src/plugins/francium/constants.js +8 -1
  117. package/src/plugins/francium/constants.js.map +1 -1
  118. package/src/plugins/francium/lendingFetcher.js +1 -1
  119. package/src/plugins/francium/lendingFetcher.js.map +1 -1
  120. package/src/plugins/francium/tokens.js +2 -1
  121. package/src/plugins/francium/tokens.js.map +1 -1
  122. package/src/plugins/futarchy/constants.d.ts +1 -0
  123. package/src/plugins/futarchy/constants.js +7 -1
  124. package/src/plugins/futarchy/constants.js.map +1 -1
  125. package/src/plugins/genesysgo/constants.d.ts +1 -1
  126. package/src/plugins/genesysgo/constants.js +7 -2
  127. package/src/plugins/genesysgo/constants.js.map +1 -1
  128. package/src/plugins/goosefx/constants.d.ts +1 -1
  129. package/src/plugins/goosefx/constants.js +8 -4
  130. package/src/plugins/goosefx/constants.js.map +1 -1
  131. package/src/plugins/grass/constants.d.ts +1 -1
  132. package/src/plugins/grass/constants.js +6 -2
  133. package/src/plugins/grass/constants.js.map +1 -1
  134. package/src/plugins/grass/index.d.ts +2 -2
  135. package/src/plugins/grass/index.js +2 -2
  136. package/src/plugins/grass/index.js.map +1 -1
  137. package/src/plugins/hawksight/constants.js +4 -0
  138. package/src/plugins/hawksight/constants.js.map +1 -1
  139. package/src/plugins/hawksight/positionsFetcher.js +2 -2
  140. package/src/plugins/hawksight/positionsFetcher.js.map +1 -1
  141. package/src/plugins/hedgehog/constants.js +4 -0
  142. package/src/plugins/hedgehog/constants.js.map +1 -1
  143. package/src/plugins/holdium/constants.js +2 -0
  144. package/src/plugins/holdium/constants.js.map +1 -1
  145. package/src/plugins/hxro/constants.d.ts +1 -1
  146. package/src/plugins/hxro/constants.js +7 -2
  147. package/src/plugins/hxro/constants.js.map +1 -1
  148. package/src/plugins/iloop/constants.js +4 -0
  149. package/src/plugins/iloop/constants.js.map +1 -1
  150. package/src/plugins/jito/constants.d.ts +2 -1
  151. package/src/plugins/jito/constants.js +16 -2
  152. package/src/plugins/jito/constants.js.map +1 -1
  153. package/src/plugins/jito/ticketFetcher.js +3 -1
  154. package/src/plugins/jito/ticketFetcher.js.map +1 -1
  155. package/src/plugins/jupiter/exchange/constants.d.ts +2 -1
  156. package/src/plugins/jupiter/exchange/constants.js +8 -2
  157. package/src/plugins/jupiter/exchange/constants.js.map +1 -1
  158. package/src/plugins/jupiter/exchange/dcaFetcher.js +1 -1
  159. package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
  160. package/src/plugins/jupiter/exchange/limitFetcher.js +1 -1
  161. package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -1
  162. package/src/plugins/jupiter/exchange/perpetualFetcher.js +5 -3
  163. package/src/plugins/jupiter/exchange/perpetualFetcher.js.map +1 -1
  164. package/src/plugins/jupiter/governance/constants.js +7 -5
  165. package/src/plugins/jupiter/governance/constants.js.map +1 -1
  166. package/src/plugins/jupiter/launchpad/constants.js +7 -6
  167. package/src/plugins/jupiter/launchpad/constants.js.map +1 -1
  168. package/src/plugins/jupiter/launchpad/lfgAirdropFetcher.js +2 -1
  169. package/src/plugins/jupiter/launchpad/lfgAirdropFetcher.js.map +1 -1
  170. package/src/plugins/kamino/constants.d.ts +1 -1
  171. package/src/plugins/kamino/constants.js +20 -38
  172. package/src/plugins/kamino/constants.js.map +1 -1
  173. package/src/plugins/kamino/farmsFetcher.js +1 -1
  174. package/src/plugins/kamino/farmsFetcher.js.map +1 -1
  175. package/src/plugins/kamino/lendsFetcher.js +2 -2
  176. package/src/plugins/kamino/lendsFetcher.js.map +1 -1
  177. package/src/plugins/layer3/constants.d.ts +1 -1
  178. package/src/plugins/layer3/constants.js +8 -2
  179. package/src/plugins/layer3/constants.js.map +1 -1
  180. package/src/plugins/lifinity/constants.d.ts +2 -2
  181. package/src/plugins/lifinity/constants.js +10 -4
  182. package/src/plugins/lifinity/constants.js.map +1 -1
  183. package/src/plugins/loopscale/constants.js +4 -0
  184. package/src/plugins/loopscale/constants.js.map +1 -1
  185. package/src/plugins/lulo/constants.js +5 -0
  186. package/src/plugins/lulo/constants.js.map +1 -1
  187. package/src/plugins/magiceden/constants.d.ts +1 -1
  188. package/src/plugins/magiceden/constants.js +8 -3
  189. package/src/plugins/magiceden/constants.js.map +1 -1
  190. package/src/plugins/magiceden/index.d.ts +2 -2
  191. package/src/plugins/magiceden/index.js +2 -2
  192. package/src/plugins/magiceden/index.js.map +1 -1
  193. package/src/plugins/mango/collateralFetcher.js +1 -1
  194. package/src/plugins/mango/collateralFetcher.js.map +1 -1
  195. package/src/plugins/mango/constants.js +9 -2
  196. package/src/plugins/mango/constants.js.map +1 -1
  197. package/src/plugins/mango/redeemFetcher.js +2 -1
  198. package/src/plugins/mango/redeemFetcher.js.map +1 -1
  199. package/src/plugins/marginfi/constants.js +6 -0
  200. package/src/plugins/marginfi/constants.js.map +1 -1
  201. package/src/plugins/marginfi/depositsFetcher.js +2 -2
  202. package/src/plugins/marginfi/depositsFetcher.js.map +1 -1
  203. package/src/plugins/marinade/constants.d.ts +2 -1
  204. package/src/plugins/marinade/constants.js +9 -2
  205. package/src/plugins/marinade/constants.js.map +1 -1
  206. package/src/plugins/marinade/index.d.ts +2 -0
  207. package/src/plugins/marinade/index.js +2 -1
  208. package/src/plugins/marinade/index.js.map +1 -1
  209. package/src/plugins/metaplex/constants.js +5 -0
  210. package/src/plugins/metaplex/constants.js.map +1 -1
  211. package/src/plugins/meteora/constants.js +5 -0
  212. package/src/plugins/meteora/constants.js.map +1 -1
  213. package/src/plugins/meteora/dlmmVaultsFetcher.js +1 -1
  214. package/src/plugins/meteora/dlmmVaultsFetcher.js.map +1 -1
  215. package/src/plugins/meteora/farmsFetcher.js +1 -1
  216. package/src/plugins/meteora/farmsFetcher.js.map +1 -1
  217. package/src/plugins/meteora/stakeForFeeFetcher.js +2 -0
  218. package/src/plugins/meteora/stakeForFeeFetcher.js.map +1 -1
  219. package/src/plugins/moonwalk/constants.js +4 -1
  220. package/src/plugins/moonwalk/constants.js.map +1 -1
  221. package/src/plugins/nosana/constants.js +6 -1
  222. package/src/plugins/nosana/constants.js.map +1 -1
  223. package/src/plugins/nxfinance/constants.js +1 -0
  224. package/src/plugins/nxfinance/constants.js.map +1 -1
  225. package/src/plugins/nxfinance/positionsFetcher.js +2 -0
  226. package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
  227. package/src/plugins/nxfinance/stakingFetcher.js.map +1 -1
  228. package/src/plugins/orca/constants.js +7 -0
  229. package/src/plugins/orca/constants.js.map +1 -1
  230. package/src/plugins/orca/getWhirlpoolPositions.js +2 -0
  231. package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
  232. package/src/plugins/parcl/constants.d.ts +1 -1
  233. package/src/plugins/parcl/constants.js +7 -2
  234. package/src/plugins/parcl/constants.js.map +1 -1
  235. package/src/plugins/parcl/index.d.ts +2 -1
  236. package/src/plugins/parcl/index.js +3 -4
  237. package/src/plugins/parcl/index.js.map +1 -1
  238. package/src/plugins/perena/constants.js +5 -0
  239. package/src/plugins/perena/constants.js.map +1 -1
  240. package/src/plugins/phoenix/constants.js +4 -0
  241. package/src/plugins/phoenix/constants.js.map +1 -1
  242. package/src/plugins/photofinish/constants.d.ts +1 -1
  243. package/src/plugins/photofinish/constants.js +5 -2
  244. package/src/plugins/photofinish/constants.js.map +1 -1
  245. package/src/plugins/picasso/constants.js +7 -0
  246. package/src/plugins/picasso/constants.js.map +1 -1
  247. package/src/plugins/picasso/unstakingPositionsFetcher.js +2 -2
  248. package/src/plugins/picasso/unstakingPositionsFetcher.js.map +1 -1
  249. package/src/plugins/pluto/constants.js +5 -0
  250. package/src/plugins/pluto/constants.js.map +1 -1
  251. package/src/plugins/port/constants.js +3 -0
  252. package/src/plugins/port/constants.js.map +1 -1
  253. package/src/plugins/port/obligationsFetcher.js +2 -0
  254. package/src/plugins/port/obligationsFetcher.js.map +1 -1
  255. package/src/plugins/pudgypenguins/constants.d.ts +1 -1
  256. package/src/plugins/pudgypenguins/constants.js +4 -2
  257. package/src/plugins/pudgypenguins/constants.js.map +1 -1
  258. package/src/plugins/pyth/constants.d.ts +1 -1
  259. package/src/plugins/pyth/constants.js +7 -2
  260. package/src/plugins/pyth/constants.js.map +1 -1
  261. package/src/plugins/pyth/pricingJob.js +2 -1
  262. package/src/plugins/pyth/pricingJob.js.map +1 -1
  263. package/src/plugins/quarry/constants.js +2 -0
  264. package/src/plugins/quarry/constants.js.map +1 -1
  265. package/src/plugins/quarry/positionsFetcher.js +1 -1
  266. package/src/plugins/quarry/positionsFetcher.js.map +1 -1
  267. package/src/plugins/rain/constants.js +5 -0
  268. package/src/plugins/rain/constants.js.map +1 -1
  269. package/src/plugins/ratex/constants.js +5 -0
  270. package/src/plugins/ratex/constants.js.map +1 -1
  271. package/src/plugins/ratex/positionsFetcher.js +1 -1
  272. package/src/plugins/ratex/positionsFetcher.js.map +1 -1
  273. package/src/plugins/raydium/constants.d.ts +1 -1
  274. package/src/plugins/raydium/constants.js +8 -2
  275. package/src/plugins/raydium/constants.js.map +1 -1
  276. package/src/plugins/raydium/farmsFetcher.js +2 -0
  277. package/src/plugins/raydium/farmsFetcher.js.map +1 -1
  278. package/src/plugins/saber/constants.js +1 -0
  279. package/src/plugins/saber/constants.js.map +1 -1
  280. package/src/plugins/saber/index.d.ts +2 -0
  281. package/src/plugins/saber/index.js +2 -1
  282. package/src/plugins/saber/index.js.map +1 -1
  283. package/src/plugins/sanctum/constants.d.ts +1 -1
  284. package/src/plugins/sanctum/constants.js +7 -2
  285. package/src/plugins/sanctum/constants.js.map +1 -1
  286. package/src/plugins/sandglass/constants.js +2 -0
  287. package/src/plugins/sandglass/constants.js.map +1 -1
  288. package/src/plugins/sandglass/depositFetcher.js +1 -1
  289. package/src/plugins/sandglass/depositFetcher.js.map +1 -1
  290. package/src/plugins/save/constants.d.ts +1 -1
  291. package/src/plugins/save/constants.js +8 -2
  292. package/src/plugins/save/constants.js.map +1 -1
  293. package/src/plugins/save/obligationsFetcher.js +2 -2
  294. package/src/plugins/save/obligationsFetcher.js.map +1 -1
  295. package/src/plugins/sharky/constants.js +4 -0
  296. package/src/plugins/sharky/constants.js.map +1 -1
  297. package/src/plugins/solayer/constants.d.ts +4 -4
  298. package/src/plugins/solayer/constants.js +12 -6
  299. package/src/plugins/solayer/constants.js.map +1 -1
  300. package/src/plugins/solayer/index.d.ts +2 -2
  301. package/src/plugins/solayer/index.js +2 -2
  302. package/src/plugins/solayer/index.js.map +1 -1
  303. package/src/plugins/sonic/constants.d.ts +1 -1
  304. package/src/plugins/sonic/constants.js +7 -2
  305. package/src/plugins/sonic/constants.js.map +1 -1
  306. package/src/plugins/sonic/index.d.ts +2 -2
  307. package/src/plugins/sonic/index.js +2 -2
  308. package/src/plugins/sonic/index.js.map +1 -1
  309. package/src/plugins/spdr/constants.d.ts +1 -1
  310. package/src/plugins/spdr/constants.js +8 -2
  311. package/src/plugins/spdr/constants.js.map +1 -1
  312. package/src/plugins/stabble/constants.js +6 -0
  313. package/src/plugins/stabble/constants.js.map +1 -1
  314. package/src/plugins/staratlas/constants.d.ts +2 -2
  315. package/src/plugins/staratlas/constants.js +9 -3
  316. package/src/plugins/staratlas/constants.js.map +1 -1
  317. package/src/plugins/streamflow/constants.d.ts +1 -1
  318. package/src/plugins/streamflow/constants.js +8 -2
  319. package/src/plugins/streamflow/constants.js.map +1 -1
  320. package/src/plugins/suilend/index.d.ts +2 -2
  321. package/src/plugins/suilend/index.js +2 -2
  322. package/src/plugins/suilend/index.js.map +1 -1
  323. package/src/plugins/suins/index.d.ts +2 -2
  324. package/src/plugins/suins/index.js +2 -2
  325. package/src/plugins/suins/index.js.map +1 -1
  326. package/src/plugins/switchboard/constants.d.ts +2 -0
  327. package/src/plugins/switchboard/constants.js +14 -1
  328. package/src/plugins/switchboard/constants.js.map +1 -1
  329. package/src/plugins/switchboard/index.d.ts +2 -0
  330. package/src/plugins/switchboard/index.js +3 -1
  331. package/src/plugins/switchboard/index.js.map +1 -1
  332. package/src/plugins/symmetry/constants.js +6 -0
  333. package/src/plugins/symmetry/constants.js.map +1 -1
  334. package/src/plugins/tensor/constants.d.ts +1 -1
  335. package/src/plugins/tensor/constants.js +7 -2
  336. package/src/plugins/tensor/constants.js.map +1 -1
  337. package/src/plugins/tensor/index.d.ts +3 -1
  338. package/src/plugins/tensor/index.js +3 -2
  339. package/src/plugins/tensor/index.js.map +1 -1
  340. package/src/plugins/texture/constants.js +5 -1
  341. package/src/plugins/texture/constants.js.map +1 -1
  342. package/src/plugins/thevault/constants.js +5 -0
  343. package/src/plugins/thevault/constants.js.map +1 -1
  344. package/src/plugins/top-tokens/index.d.ts +4 -0
  345. package/src/plugins/top-tokens/index.js +3 -1
  346. package/src/plugins/top-tokens/index.js.map +1 -1
  347. package/src/plugins/triad/constants.js +6 -0
  348. package/src/plugins/triad/constants.js.map +1 -1
  349. package/src/plugins/tulip/constants.d.ts +1 -1
  350. package/src/plugins/tulip/constants.js +10 -2
  351. package/src/plugins/tulip/constants.js.map +1 -1
  352. package/src/plugins/tulip/depositsFetcher.js +1 -1
  353. package/src/plugins/tulip/depositsFetcher.js.map +1 -1
  354. package/src/plugins/uniswap-v2/index.d.ts +2 -0
  355. package/src/plugins/uniswap-v2/index.js +2 -1
  356. package/src/plugins/uniswap-v2/index.js.map +1 -1
  357. package/src/plugins/uxd/constants.d.ts +1 -1
  358. package/src/plugins/uxd/constants.js +9 -2
  359. package/src/plugins/uxd/constants.js.map +1 -1
  360. package/src/plugins/vaultka/constants.js +5 -0
  361. package/src/plugins/vaultka/constants.js.map +1 -1
  362. package/src/plugins/vaultka/lendingFetcher.js +1 -1
  363. package/src/plugins/vaultka/lendingFetcher.js.map +1 -1
  364. package/src/plugins/vaultka/strategyFetcher.js +1 -1
  365. package/src/plugins/vaultka/strategyFetcher.js.map +1 -1
  366. package/src/plugins/whalesmarket/constants.js +5 -0
  367. package/src/plugins/whalesmarket/constants.js.map +1 -1
  368. package/src/plugins/wormhole/constants.d.ts +1 -1
  369. package/src/plugins/wormhole/constants.js +8 -2
  370. package/src/plugins/wormhole/constants.js.map +1 -1
  371. package/src/plugins/zelo/constants.js +4 -1
  372. package/src/plugins/zelo/constants.js.map +1 -1
  373. package/src/plugins/zeta/airdropFetcher.d.ts +1 -2
  374. package/src/plugins/zeta/airdropFetcher.js +14 -16
  375. package/src/plugins/zeta/airdropFetcher.js.map +1 -1
  376. package/src/plugins/zeta/constants.d.ts +1 -1
  377. package/src/plugins/zeta/constants.js +9 -2
  378. package/src/plugins/zeta/constants.js.map +1 -1
  379. package/src/plugins/zeta/index.d.ts +2 -2
  380. package/src/plugins/zeta/index.js +2 -2
  381. package/src/plugins/zeta/index.js.map +1 -1
  382. package/src/plugins/zeus/constants.d.ts +5 -0
  383. package/src/plugins/zeus/constants.js +25 -0
  384. package/src/plugins/zeus/constants.js.map +1 -0
  385. package/src/plugins/zeus/delegationsFetcher.d.ts +3 -0
  386. package/src/plugins/zeus/delegationsFetcher.js +83 -0
  387. package/src/plugins/zeus/delegationsFetcher.js.map +1 -0
  388. package/src/plugins/zeus/index.d.ts +6 -0
  389. package/src/plugins/zeus/index.js +12 -0
  390. package/src/plugins/zeus/index.js.map +1 -0
  391. package/src/plugins/zeus/structs.d.ts +29 -0
  392. package/src/plugins/zeus/structs.js +30 -0
  393. package/src/plugins/zeus/structs.js.map +1 -0
  394. package/src/utils/clients/getClientSolana.d.ts +7 -1
  395. package/src/utils/clients/getClientSolana.js +2 -1
  396. package/src/utils/clients/getClientSolana.js.map +1 -1
  397. package/src/utils/misc/checkComputeAndStoreTokensPrices.js +4 -2
  398. package/src/utils/misc/checkComputeAndStoreTokensPrices.js.map +1 -1
  399. package/src/utils/solana/getProgramAccounts.js +0 -1
  400. package/src/utils/solana/getProgramAccounts.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/triad/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EACH,2EAA2E;IAC7E,OAAO,EAAE,yBAAyB;IAClC,OAAO,EAAE,uBAAuB;CACjC,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,eAAe,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/triad/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EACH,2EAA2E;IAC7E,OAAO,EAAE,yBAAyB;IAClC,OAAO,EAAE,uBAAuB;IAChC,aAAa,EAAE,0BAA0B;IACzC,QAAQ,EAAE,uBAAuB;IACjC,MAAM,EAAE,6BAA6B;IACrC,OAAO,EAAE,2BAA2B;IACpC,WAAW,EACT,yEAAyE;IAC3E,MAAM,EAAE,CAAC,6CAA6C,CAAC;CACxD,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,eAAe,GAAG,SAAS,CAAC"}
@@ -2,11 +2,11 @@
2
2
  /// <reference types="jito-ts/node_modules/@solana/web3.js" />
3
3
  import { PublicKey } from '@solana/web3.js';
4
4
  import { Platform } from '@sonarwatch/portfolio-core';
5
+ export declare const tulipMint = "TuLipcqtGVXP9XR62wM8WWCm6a9vhLs7T1uoWBk6FDs";
5
6
  export declare const platformId = "tulip";
6
7
  export declare const platform: Platform;
7
8
  export declare const tulipV2ProgramId: PublicKey;
8
9
  export declare const tulipLendingProgramId: PublicKey;
9
10
  export declare const leverageProgramId: PublicKey;
10
- export declare const tulipMint = "TuLipcqtGVXP9XR62wM8WWCm6a9vhLs7T1uoWBk6FDs";
11
11
  export declare const tulipDecimals = 6;
12
12
  export declare const vaultsKey = "vaults";
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.vaultsKey = exports.tulipDecimals = exports.tulipMint = exports.leverageProgramId = exports.tulipLendingProgramId = exports.tulipV2ProgramId = exports.platform = exports.platformId = void 0;
3
+ exports.vaultsKey = exports.tulipDecimals = exports.leverageProgramId = exports.tulipLendingProgramId = exports.tulipV2ProgramId = exports.platform = exports.platformId = exports.tulipMint = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
+ exports.tulipMint = 'TuLipcqtGVXP9XR62wM8WWCm6a9vhLs7T1uoWBk6FDs';
5
6
  exports.platformId = 'tulip';
6
7
  exports.platform = {
7
8
  id: exports.platformId,
@@ -10,11 +11,18 @@ exports.platform = {
10
11
  defiLlamaId: 'tulip-protocol',
11
12
  website: 'https://tulip.garden/',
12
13
  twitter: 'https://twitter.com/TulipProtocol',
14
+ isDeprecated: true,
15
+ documentation: 'https://tulip-protocol.gitbook.io/tulip-protocol',
16
+ discord: 'https://discord.gg/tulipgarden',
17
+ telegram: 'https://t.me/TulipProtocol',
18
+ medium: 'https://medium.com/tulipprotocol',
19
+ github: 'https://github.com/sol-farm',
20
+ tokens: [exports.tulipMint],
21
+ description: 'The Efficient Solana Yield Aggregator',
13
22
  };
14
23
  exports.tulipV2ProgramId = new web3_js_1.PublicKey('TLPv2tuSVvn3fSk8RgW3yPddkp5oFivzZV3rA9hQxtX');
15
24
  exports.tulipLendingProgramId = new web3_js_1.PublicKey('4bcFeLv4nydFrsZqV5CgwCVrPhkQKsXtzfy2KyMz7ozM');
16
25
  exports.leverageProgramId = new web3_js_1.PublicKey('Bt2WPMmbwHPk36i4CRucNDyLcmoGdC7xEdrVuxgJaNE6');
17
- exports.tulipMint = 'TuLipcqtGVXP9XR62wM8WWCm6a9vhLs7T1uoWBk6FDs';
18
26
  exports.tulipDecimals = 6;
19
27
  exports.vaultsKey = 'vaults';
20
28
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tulip/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EACH,2EAA2E;IAC7E,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,mCAAmC;CAC7C,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC;AACW,QAAA,qBAAqB,GAAG,IAAI,mBAAS,CAChD,8CAA8C,CAC/C,CAAC;AAEW,QAAA,iBAAiB,GAAG,IAAI,mBAAS,CAC5C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,SAAS,GAAG,6CAA6C,CAAC;AAC1D,QAAA,aAAa,GAAG,CAAC,CAAC;AAClB,QAAA,SAAS,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tulip/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,SAAS,GAAG,6CAA6C,CAAC;AAC1D,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EACH,2EAA2E;IAC7E,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,mCAAmC;IAC5C,YAAY,EAAE,IAAI;IAClB,aAAa,EAAE,kDAAkD;IACjE,OAAO,EAAE,gCAAgC;IACzC,QAAQ,EAAE,4BAA4B;IACtC,MAAM,EAAE,kCAAkC;IAC1C,MAAM,EAAE,6BAA6B;IACrC,MAAM,EAAE,CAAC,iBAAS,CAAC;IACnB,WAAW,EAAE,uCAAuC;CACrD,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC;AACW,QAAA,qBAAqB,GAAG,IAAI,mBAAS,CAChD,8CAA8C,CAC/C,CAAC;AAEW,QAAA,iBAAiB,GAAG,IAAI,mBAAS,CAC5C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,aAAa,GAAG,CAAC,CAAC;AAClB,QAAA,SAAS,GAAG,QAAQ,CAAC"}
@@ -29,7 +29,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
29
29
  networkId: portfolio_core_1.NetworkId.solana,
30
30
  });
31
31
  if (!vaults)
32
- return [];
32
+ throw new Error('Vaults not cached');
33
33
  const tokenPriceById = yield cache.getTokenPricesAsMap(vaults.map((vault) => vault.base.sharesMint.toString()), portfolio_core_1.NetworkId.solana);
34
34
  const vaultById = new Map();
35
35
  vaults.forEach((vault) => vaultById.set(vault.pubkey.toString(), vault));
@@ -1 +1 @@
1
- {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tulip/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,2CAAsE;AACtE,iDAAsD;AACtD,+CAA6E;AAC7E,uCAA6E;AAC7E,uCAAsD;AACtD,uGAA+E;AAE/E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,kBAAkB,GAAG,MAAM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
+ {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tulip/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,2CAAsE;AACtE,iDAAsD;AACtD,+CAA6E;AAC7E,uCAA6E;AAC7E,uCAAsD;AACtD,uGAA+E;AAE/E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,kBAAkB,GAAG,MAAM,IAAA,iCAAwB,EACvD,MAAM,EACN,iCAAuB,EACvB,4BAAgB,EAChB,IAAA,mCAAyB,EAAC,KAAK,CAAC,CACjC,CAAC;IACF,IAAI,CAAC,kBAAkB;QAAE,OAAO,EAAE,CAAC;IAEnC,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,OAAO,CAChC,qBAAS,EACT;QACE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CACF,CAAC;IACF,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAElD,MAAM,cAAc,GAAG,MAAM,KAAK,CAAC,mBAAmB,CACpD,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,EACvD,0BAAS,CAAC,MAAM,CACjB,CAAC;IAEF,MAAM,SAAS,GAAyC,IAAI,GAAG,EAAE,CAAC;IAClE,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC;IAEzE,MAAM,MAAM,GAAqB,EAAE,CAAC;IACpC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,G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AE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACzD,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE;gBACJ,MAAM;gBACN,IAAI,EAAE,qCAAqC;aAC5C;SACF;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -1,4 +1,6 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
1
2
  import { Fetcher } from '../../Fetcher';
2
3
  import { Job } from '../../Job';
3
4
  export declare const jobs: Job[];
4
5
  export declare const fetchers: Fetcher[];
6
+ export declare const platforms: Platform[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fetchers = exports.jobs = void 0;
3
+ exports.platforms = exports.fetchers = exports.jobs = void 0;
4
4
  // import { NetworkId } from '@sonarwatch/portfolio-core';
5
5
  // import { theGraphUrl } from './constants';
6
6
  // import getPoolsJob from './getPoolsJob';
@@ -12,4 +12,5 @@ exports.jobs = [
12
12
  exports.fetchers = [
13
13
  // getPositionsV2Fetcher(NetworkId.ethereum, platformId, 'V2'),
14
14
  ];
15
+ exports.platforms = [];
15
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap-v2/index.ts"],"names":[],"mappings":";;;AAEA,0DAA0D;AAC1D,6CAA6C;AAC7C,2CAA2C;AAC3C,qDAAqD;AACrD,+DAA+D;AAElD,QAAA,IAAI,GAAU;AACzB,kEAAkE;CACnE,CAAC;AACW,QAAA,QAAQ,GAAc;AACjC,+DAA+D;CAChE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap-v2/index.ts"],"names":[],"mappings":";;;AAGA,0DAA0D;AAC1D,6CAA6C;AAC7C,2CAA2C;AAC3C,qDAAqD;AACrD,+DAA+D;AAElD,QAAA,IAAI,GAAU;AACzB,kEAAkE;CACnE,CAAC;AACW,QAAA,QAAQ,GAAc;AACjC,+DAA+D;CAChE,CAAC;AAEW,QAAA,SAAS,GAAe,EAAE,CAAC"}
@@ -3,9 +3,9 @@
3
3
  import { PublicKey } from '@solana/web3.js';
4
4
  import { Platform } from '@sonarwatch/portfolio-core';
5
5
  import BigNumber from 'bignumber.js';
6
+ export declare const uxpMint = "UXPhBoR3qG4UCiGNJfV7MqhHyFqKN68g45GoYvAeL2M";
6
7
  export declare const platformId = "uxd";
7
8
  export declare const platform: Platform;
8
9
  export declare const stakingProgramId: PublicKey;
9
- export declare const uxpMint = "UXPhBoR3qG4UCiGNJfV7MqhHyFqKN68g45GoYvAeL2M";
10
10
  export declare const uxpDecimal = 9;
11
11
  export declare const uxpFactor: BigNumber;
@@ -3,9 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.uxpFactor = exports.uxpDecimal = exports.uxpMint = exports.stakingProgramId = exports.platform = exports.platformId = void 0;
6
+ exports.uxpFactor = exports.uxpDecimal = exports.stakingProgramId = exports.platform = exports.platformId = exports.uxpMint = void 0;
7
7
  const web3_js_1 = require("@solana/web3.js");
8
8
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
9
+ exports.uxpMint = 'UXPhBoR3qG4UCiGNJfV7MqhHyFqKN68g45GoYvAeL2M';
9
10
  exports.platformId = 'uxd';
10
11
  exports.platform = {
11
12
  id: exports.platformId,
@@ -14,9 +15,15 @@ exports.platform = {
14
15
  defiLlamaId: 'uxd', // from https://defillama.com/docs/api
15
16
  website: 'https://uxd.fi/',
16
17
  twitter: 'https://twitter.com/UXDProtocol',
18
+ isDeprecated: true,
19
+ tokens: [exports.uxpMint, '7kbnvuGBxxj8AG9qp8Scn56muWGaRaFqxg1FsRp3PaFT'],
20
+ github: 'https://github.com/uxdprotocol',
21
+ medium: 'https://uxdprotocol.medium.com/',
22
+ documentation: 'https://docs.uxd.fi/uxdprotocol',
23
+ discord: 'https://discord.gg/CAuFvvd5qw',
24
+ description: 'Decentralized stablecoin stabilized by an asset liability management module',
17
25
  };
18
26
  exports.stakingProgramId = new web3_js_1.PublicKey('UXDSkps5NR8Lu1HB5uPLFfuB34hZ6DCk7RhYZZtGzbF');
19
- exports.uxpMint = 'UXPhBoR3qG4UCiGNJfV7MqhHyFqKN68g45GoYvAeL2M';
20
27
  exports.uxpDecimal = 9;
21
28
  exports.uxpFactor = new bignumber_js_1.default(Math.pow(10, exports.uxpDecimal));
22
29
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uxd/constants.ts"],"names":[],"mappings":";;;;;;AAAA,6CAA4C;AAE5C,gEAAqC;AAExB,QAAA,UAAU,GAAG,KAAK,CAAC;AACnB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,KAAK;IACX,KAAK,EACH,yEAAyE;IAC3E,WAAW,EAAE,KAAK,EAAE,sCAAsC;IAC1D,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,iCAAiC;CAC3C,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,OAAO,GAAG,6CAA6C,CAAC;AACxD,QAAA,UAAU,GAAG,CAAC,CAAC;AACf,QAAA,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,kBAAU,CAAA,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uxd/constants.ts"],"names":[],"mappings":";;;;;;AAAA,6CAA4C;AAE5C,gEAAqC;AAExB,QAAA,OAAO,GAAG,6CAA6C,CAAC;AACxD,QAAA,UAAU,GAAG,KAAK,CAAC;AACnB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,KAAK;IACX,KAAK,EACH,yEAAyE;IAC3E,WAAW,EAAE,KAAK,EAAE,sCAAsC;IAC1D,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,iCAAiC;IAC1C,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,CAAC,eAAO,EAAE,8CAA8C,CAAC;IACjE,MAAM,EAAE,gCAAgC;IACxC,MAAM,EAAE,iCAAiC;IACzC,aAAa,EAAE,iCAAiC;IAChD,OAAO,EAAE,+BAA+B;IACxC,WAAW,EACT,6EAA6E;CAChF,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,UAAU,GAAG,CAAC,CAAC;AACf,QAAA,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,kBAAU,CAAA,CAAC,CAAC"}
@@ -10,7 +10,12 @@ exports.platform = {
10
10
  image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/vaultka.webp',
11
11
  website: 'https://solana.vaultka.com/',
12
12
  twitter: 'https://x.com/Vaultkaofficial',
13
+ discord: 'https://discord.com/invite/hXagEmhN8F',
13
14
  defiLlamaId: 'vaultka', // from https://defillama.com/docs/api
15
+ documentation: 'https://docs.vaultka.com/',
16
+ medium: 'https://medium.com/@Vaultka',
17
+ github: 'https://github.com/Vaultka-Project',
18
+ description: 'Liquidity optimization layer for yield bearing tokens.',
14
19
  };
15
20
  exports.lendingsCacheKey = `lendings`;
16
21
  exports.lendingProgramIds = [
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../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,kBAAkB,EAAE,+BAAqB;KAC1C;CACF,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/vaultka/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE5C,uCAKmB;AAEN,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EACH,6EAA6E;IAC/E,OAAO,EAAE,6BAA6B;IACtC,OAAO,EAAE,+BAA+B;IACxC,OAAO,EAAE,uCAAuC;IAChD,WAAW,EAAE,SAAS,EAAE,sCAAsC;IAC9D,aAAa,EAAE,2BAA2B;IAC1C,MAAM,EAAE,6BAA6B;IACrC,MAAM,EAAE,oCAAoC;IAC5C,WAAW,EAAE,wDAAwD;CACtE,CAAC;AAEW,QAAA,gBAAgB,GAAG,UAAU,CAAC;AAE9B,QAAA,iBAAiB,GAAG;IAC/B,IAAI,mBAAS,CAAC,8CAA8C,CAAC;IAC7D,IAAI,mBAAS,CAAC,8CAA8C,CAAC;IAC7D,IAAI,mBAAS,CAAC,6CAA6C,CAAC;IAC5D,IAAI,mBAAS,CAAC,8CAA8C,CAAC;CAC9D,CAAC;AAEW,QAAA,kBAAkB,GAAG,YAAY,CAAC;AAElC,QAAA,UAAU,GAAmB;IACxC;QACE,MAAM,EAAE,8CAA8C;QACtD,cAAc,EAAd,wBAAc;QACd,kBAAkB,EAAlB,4BAAkB;KACnB;IACD;QACE,MAAM,EAAE,8CAA8C;QACtD,cAAc,EAAd,wBAAc;QACd,kBAAkB,EAAlB,4BAAkB;KACnB;IACD;QACE,MAAM,EAAE,6CAA6C;QACrD,cAAc,EAAd,wBAAc;QACd,kBAAkB,EAAlB,4BAAkB;KACnB;IACD;QACE,MAAM,EAAE,8CAA8C;QACtD,cAAc,EAAd,wBAAc;QACd,kBAAkB,EAAlB,4BAAkB;KACnB;IACD;QACE,MAAM,EAAE,8CAA8C;QACtD,cAAc,EAAE,2BAAiB;QACjC,kBAAkB,EAAE,+BAAqB;KAC1C;IACD;QACE,MAAM,EAAE,8CAA8C;QACtD,cAAc,EAAE,2BAAiB;QACjC,kBAAkB,EAAE,+BAAqB;KAC1C;IACD;QACE,MAAM,EAAE,8CAA8C;QACtD,cAAc,EAAE,2BAAiB;QACjC,kBAAkB,EAAE,+BAAqB;KAC1C;CACF,CAAC"}
@@ -30,7 +30,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
30
30
  networkId: portfolio_core_1.NetworkId.solana,
31
31
  });
32
32
  if (!lendings)
33
- return [];
33
+ throw new Error('Lendings not cached');
34
34
  const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
35
35
  const element = elementRegistry.addElementMultiple({
36
36
  label: 'Lending',
@@ -1 +1 @@
1
- {"version":3,"file":"lendingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/vaultka/lendingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAA4E;AAC5E,6CAA4C;AAC5C,gEAAqC;AAErC,2CAA8E;AAE9E,iDAAsD;AACtD,+CAG4B;AAC5B,uCAAoD;AACpD,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,SAAS,GAAG,MAAM,IAAA,sCAA6B,EACnD,UAAU,EACV,wBAAc,EACd,6BAAiB,CAAC,GAAG,CACnB,CAAC,gBAAgB,EAAE,EAAE,CACnB,mBAAS,CAAC,sBAAsB,CAC9B,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,EAC5D,gBAAgB,CACjB,CAAC,CAAC,CAAC,CACP,CACF,CAAC;IAEF,IAAI,C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AAC,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE;iBACnE;aACF,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"lendingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/vaultka/lendingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAA4E;AAC5E,6CAA4C;AAC5C,gEAAqC;AAErC,2CAA8E;AAE9E,iDAAsD;AACtD,+CAG4B;AAC5B,uCAAoD;AACpD,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,SAAS,GAAG,MAAM,IAAA,sCAA6B,EACnD,UAAU,EACV,wBAAc,EACd,6BAAiB,CAAC,GAAG,CACnB,CAAC,gBAAgB,EAAE,EAAE,CACnB,mBAAS,CAAC,sBAAsB,CAC9B,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,EAC5D,gBAAgB,CACjB,CAAC,CAAC,CAAC,CACP,CACF,CAAC;IAEF,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAE9E,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,OAAO,CAClC,4BAAgB,EAChB;QACE,MAAM,E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AE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -32,7 +32,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
32
32
  networkId: portfolio_core_1.NetworkId.solana,
33
33
  });
34
34
  if (!strategiesInfo)
35
- return [];
35
+ throw new Error('Strategies not cached');
36
36
  const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
37
37
  positionInfos.forEach((positionInfo, i) => {
38
38
  if (positionInfo[0] &&
@@ -1 +1 @@
1
- {"version":3,"file":"strategyFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/vaultka/strategyFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAE5C,2CAAyE;AAEzE,iDAAsD;AACtD,+CAA6E;AAC7E,gFAA6E;AAQ7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,GAAG,CACrC,sBAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAC1B,IAAA,iCAAwB,EACtB,UAAU,EACV,QAAQ,CAAC,kBAAkB,EAC3B,IAAI,mBAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC9B;QACE;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,EAAE;gBACV,KAAK,EAAE,KAAK;aACb;SACF;KACF,CACF,CACF,CACF,CAAC;IAEF,IAAI,CAAC,aAAa,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC;QACxE,OAAO,EAAE,CAAC;IAEZ,MAAM,cAA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;gBACnB,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,eAAe;aACxC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,SAAS,aAAa,CACpB,QAAgC;IAEhC,OAAO,CAAC,CAAC,aAAa,IAAI,QAAQ,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"strategyFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/vaultka/strategyFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAE5C,2CAAyE;AAEzE,iDAAsD;AACtD,+CAA6E;AAC7E,gFAA6E;AAQ7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,GAAG,CACrC,sBAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAC1B,IAAA,iCAAwB,EACtB,UAAU,EACV,QAAQ,CAAC,kBAAkB,EAC3B,IAAI,mBAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC9B;QACE;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,EAAE;gBACV,KAAK,EAAE,KAAK;aACb;SACF;KACF,CACF,CACF,CACF,CAAC;IAEF,IAAI,CAAC,aAAa,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC;QACxE,OAAO,EA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,OAAO,CAAC,gBAAgB,CAAC;gBACvB,OAAO,EAAE,UAAU;gBACnB,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,eAAe;aACxC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,SAAS,aAAa,CACpB,QAAgC;IAEhC,OAAO,CAAC,CAAC,aAAa,IAAI,QAAQ,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -10,6 +10,11 @@ exports.platform = {
10
10
  defiLlamaId: 'whales-market', // from https://defillama.com/docs/api
11
11
  website: 'https://app.whales.market/',
12
12
  twitter: 'https://twitter.com/WhalesMarket',
13
+ tokens: ['GTH3wG3NErjwcf7VGCoXEXkgXSHvYhx5gtATeeM5JAS1'],
14
+ discord: 'https://discord.com/invite/whalesmarket',
15
+ documentation: 'https://docs.whales.market/',
16
+ github: 'https://github.com/Whales-Market/',
17
+ description: 'Trade like a pro with advanced tools and features at your fingertips',
13
18
  };
14
19
  exports.pid = new web3_js_1.PublicKey('stPdYNaJNsV3ytS9Xtx4GXXXRcVqVS6x66ZFa26K39S');
15
20
  exports.whalesApi = 'https://api.whales.market/v2/tokens';
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/whalesmarket/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,cAAc,CAAC;AAC5B,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,eAAe;IACrB,KAAK,EACH,kFAAkF;IACpF,WAAW,EAAE,eAAe,EAAE,sCAAsC;IACpE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,GAAG,GAAG,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAAC;AACnE,QAAA,SAAS,GAAG,qCAAqC,CAAC;AAElD,QAAA,SAAS,GAAG,QAAQ,CAAC;AACrB,QAAA,YAAY,GAAG,WAAW,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/whalesmarket/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,cAAc,CAAC;AAC5B,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,eAAe;IACrB,KAAK,EACH,kFAAkF;IACpF,WAAW,EAAE,eAAe,EAAE,sCAAsC;IACpE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,kCAAkC;IAC3C,MAAM,EAAE,CAAC,8CAA8C,CAAC;IACxD,OAAO,EAAE,yCAAyC;IAClD,aAAa,EAAE,6BAA6B;IAC5C,MAAM,EAAE,mCAAmC;IAC3C,WAAW,EACT,sEAAsE;CACzE,CAAC;AAEW,QAAA,GAAG,GAAG,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAAC;AACnE,QAAA,SAAS,GAAG,qCAAqC,CAAC;AAElD,QAAA,SAAS,GAAG,QAAQ,CAAC;AACrB,QAAA,YAAY,GAAG,WAAW,CAAC"}
@@ -2,8 +2,8 @@
2
2
  /// <reference types="jito-ts/node_modules/@solana/web3.js" />
3
3
  import { Platform } from '@sonarwatch/portfolio-core';
4
4
  import { PublicKey } from '@solana/web3.js';
5
+ export declare const wMint = "85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ";
5
6
  export declare const platformId = "wormhole";
6
7
  export declare const platform: Platform;
7
8
  export declare const apiUrl = "https://prod-flat-files-min.wormhole.com/";
8
- export declare const wMint = "85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ";
9
9
  export declare const stakingProgramId: PublicKey;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stakingProgramId = exports.wMint = exports.apiUrl = exports.platform = exports.platformId = void 0;
3
+ exports.stakingProgramId = exports.apiUrl = exports.platform = exports.platformId = exports.wMint = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
+ exports.wMint = '85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ';
5
6
  exports.platformId = 'wormhole';
6
7
  exports.platform = {
7
8
  id: exports.platformId,
@@ -9,8 +10,13 @@ exports.platform = {
9
10
  image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/wormhole.webp',
10
11
  website: 'https://w.wormhole.com/',
11
12
  twitter: 'https://twitter.com/wormhole',
13
+ discord: 'https://discord.com/invite/wormholecrypto',
14
+ telegram: 'https://t.me/wormholecrypto',
15
+ github: 'https://github.com/wormhole-foundation',
16
+ documentation: 'https://wormhole.com/docs/',
17
+ description: 'Future-proof, permissionless tooling to empower multichain builders',
18
+ tokens: [exports.wMint],
12
19
  };
13
20
  exports.apiUrl = 'https://prod-flat-files-min.wormhole.com/';
14
- exports.wMint = '85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ';
15
21
  exports.stakingProgramId = new web3_js_1.PublicKey('sspu65omPW2zJGWDxmx8btqxudHezoQHSGZmnW8jbVz');
16
22
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/wormhole/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EACH,8EAA8E;IAChF,OAAO,EAAE,yBAAyB;IAClC,OAAO,EAAE,8BAA8B;CACxC,CAAC;AAEW,QAAA,MAAM,GAAG,2CAA2C,CAAC;AACrD,QAAA,KAAK,GAAG,8CAA8C,CAAC;AAEvD,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/wormhole/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE/B,QAAA,KAAK,GAAG,8CAA8C,CAAC;AACvD,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EACH,8EAA8E;IAChF,OAAO,EAAE,yBAAyB;IAClC,OAAO,EAAE,8BAA8B;IACvC,OAAO,EAAE,2CAA2C;IACpD,QAAQ,EAAE,6BAA6B;IACvC,MAAM,EAAE,wCAAwC;IAChD,aAAa,EAAE,4BAA4B;IAC3C,WAAW,EACT,qEAAqE;IACvE,MAAM,EAAE,CAAC,aAAK,CAAC;CAChB,CAAC;AAEW,QAAA,MAAM,GAAG,2CAA2C,CAAC;AAErD,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC"}
@@ -9,7 +9,10 @@ exports.platform = {
9
9
  image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/zelo.webp',
10
10
  website: 'https://www.zelofi.io/',
11
11
  twitter: 'https://x.com/zelofinance',
12
- // defiLlamaId: 'foo-finance', // from https://defillama.com/docs/api
12
+ documentation: 'https://blocksmithlabs-1.gitbook.io/zelo-docs',
13
+ discord: 'https://discord.gg/blocksmithlabs',
14
+ github: 'https://github.com/Blocksmith-Labs',
15
+ description: "Solana's Lossless Lottery Savings Protocol ",
13
16
  };
14
17
  exports.programId = new web3_js_1.PublicKey('3weDTR2PBop8SoYXpQEhdRCA9Wr2JK7gj3CxuUbMo2VJ');
15
18
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zelo/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,cAAc;IACpB,KAAK,EACH,0EAA0E;IAC5E,OAAO,EAAE,wBAAwB;IACjC,OAAO,EAAE,2BAA2B;IACpC,qEAAqE;CACtE,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,8CAA8C,CAC/C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zelo/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,cAAc;IACpB,KAAK,EACH,0EAA0E;IAC5E,OAAO,EAAE,wBAAwB;IACjC,OAAO,EAAE,2BAA2B;IACpC,aAAa,EAAE,+CAA+C;IAC9D,OAAO,EAAE,mCAAmC;IAC5C,MAAM,EAAE,oCAAoC;IAC5C,WAAW,EAAE,6CAA6C;CAC3D,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,8CAA8C,CAC/C,CAAC"}
@@ -1,4 +1,3 @@
1
- import { Fetcher } from '../../Fetcher';
2
1
  import { AirdropFetcher } from '../../AirdropFetcher';
3
2
  export declare const airdropFetcher: AirdropFetcher;
4
- export declare const fetcher: Fetcher;
3
+ export declare const fetcher: import("../..").Fetcher;
@@ -40,22 +40,21 @@ const clients_1 = require("../../utils/clients");
40
40
  const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAccountsInfoSafe");
41
41
  const helpers_1 = require("./helpers");
42
42
  const AirdropFetcher_1 = require("../../AirdropFetcher");
43
- const query = (0, graphql_request_1.gql) `
44
- query GetAirdropFinalFrontend($authority: String!) {
45
- getAirdropFinalFrontend(authority: $authority) {
46
- authority
47
- community_allocation
48
- eligibility
49
- main_allocation
50
- og_allocation
51
- s1_allocation
52
- s2_allocation
53
- total_allocation
54
- __typename
55
- }
56
- }
43
+ const query = (0, graphql_request_1.gql) `
44
+ query GetAirdropFinalFrontend($authority: String!) {
45
+ getAirdropFinalFrontend(authority: $authority) {
46
+ authority
47
+ community_allocation
48
+ eligibility
49
+ main_allocation
50
+ og_allocation
51
+ s1_allocation
52
+ s2_allocation
53
+ total_allocation
54
+ __typename
55
+ }
56
+ }
57
57
  `;
58
- const networkId = portfolio_core_1.NetworkId.solana;
59
58
  const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
60
59
  const res = yield (0, graphql_request_1.default)(constants_1.graphqlApi, query, {
61
60
  authority: owner,
@@ -92,7 +91,6 @@ const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
92
91
  const claimStatuses = (0, helpers_1.deriveZetaClaimStatuses)(owner, constants_1.distributors);
93
92
  const client = (0, clients_1.getClientSolana)();
94
93
  const claimStatusesAccount = yield (0, getMultipleAccountsInfoSafe_1.getMultipleAccountsInfoSafe)(client, claimStatuses);
95
- console.log('constexecutor:AirdropFetcherExecutor= ~ claimStatusesAccount:', claimStatusesAccount);
96
94
  if (claimStatusesAccount.some((account) => account))
97
95
  return (0, AirdropFetcher_1.getAirdropRaw)({
98
96
  statics: constants_1.airdropStatics,
@@ -1 +1 @@
1
- {"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAAuE;AACvE,mEAA+C;AAE/C,2CAMqB;AAErB,iDAAsD;AACtD,gGAA6F;AAC7F,uCAAoD;AACpD,yDAK8B;AAE9B,MAAM,KAAK,GAAG,IAA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AC/D,oBAAoB,CACrB,CAAC;IAEF,IAAI,oBAAoB,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC;QACjD,OAAO,IAAA,8BAAa,EAAC;YACnB,OAAO,EAAE,0BAAc;YACvB,KAAK,EAAE;gBACL;oBACE,MAAM;oBACN,SAAS,EAAE,IAAI;oBACf,KAAK,EAAE,KAAK;oBACZ,OAAO,EAAE,mBAAO;iBACjB;aACF;SACF,CAAC,CAAC;IAEL,OAAO,IAAA,8BAAa,EAAC;QACnB,OAAO,EAAE,0BAAc;QACvB,KAAK,EAAE;YACL;gBACE,MAAM;gBACN,SAAS,EAAE,KAAK;gBAChB,KAAK,EAAE,KAAK;gBACZ,OAAO,EAAE,mBAAO;aACjB;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEW,QAAA,cAAc,GAAmB;IAC5C,EAAE,EAAE,0BAAc,CAAC,EAAE;IACrB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,wCAAuB,EAC5C,sBAAc,EACd,oBAAQ,CAAC,EAAE,EACX,cAAc,EACd,0BAAc,CAAC,QAAQ,CACxB,CAAC"}
1
+ {"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,mEAA+C;AAC/C,2CAMqB;AAErB,iDAAsD;AACtD,gGAA6F;AAC7F,uCAAoD;AACpD,yDAK8B;AAE9B,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;CAchB,CAAC;AAEF,MAAM,QAAQ,GAA2B,CAAO,KAAa,EAAE,EAAE;IAC/D,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAO,EACvB,sBAAU,EACV,KAAK,EACL;QACE,SAAS,EAAE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CAAC;IAEL,OAAO,IAAA,8BAAa,EAAC;QACnB,OAAO,EAAE,0BAAc;QACvB,KAAK,EAAE;YACL;gBACE,MAAM;gBACN,SAAS,EAAE,KAAK;gBAChB,KAAK,EAAE,KAAK;gBACZ,OAAO,EAAE,mBAAO;aACjB;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEW,QAAA,cAAc,GAAmB;IAC5C,EAAE,EAAE,0BAAc,CAAC,EAAE;IACrB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,wCAAuB,EAC5C,sBAAc,EACd,oBAAQ,CAAC,EAAE,EACX,cAAc,EACd,0BAAc,CAAC,QAAQ,CACxB,CAAC"}
@@ -4,12 +4,12 @@ import { PublicKey } from '@solana/web3.js';
4
4
  import { Platform } from '@sonarwatch/portfolio-core';
5
5
  import { IdlItem } from '@solanafm/explorer-kit-idls';
6
6
  import { AirdropStatics } from '../../AirdropFetcher';
7
+ export declare const zexMint = "ZEXy1pqteRu3n13kdyh4LwPQknkFk3GzmMYMuNadWPo";
7
8
  export declare const platformId = "zeta";
8
9
  export declare const platform: Platform;
9
10
  export declare const programId: PublicKey;
10
11
  export declare const graphqlApi = "https://api-gql.zeta.markets/graphql";
11
12
  export declare const airdropStatics: AirdropStatics;
12
- export declare const zexMint = "ZEXy1pqteRu3n13kdyh4LwPQknkFk3GzmMYMuNadWPo";
13
13
  export declare const zexDecimals = 6;
14
14
  export declare const distributorPid = "4JSALTb4QbipG7NNLryAFJg4y8X5C1ELErSncsVMA3gZ";
15
15
  export declare const distributors: string[];
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zetaIdlItem = exports.stakingPid = exports.distributors = exports.distributorPid = exports.zexDecimals = exports.zexMint = exports.airdropStatics = exports.graphqlApi = exports.programId = exports.platform = exports.platformId = void 0;
3
+ exports.zetaIdlItem = exports.stakingPid = exports.distributors = exports.distributorPid = exports.zexDecimals = exports.airdropStatics = exports.graphqlApi = exports.programId = exports.platform = exports.platformId = exports.zexMint = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  const idls_1 = require("./idls");
6
+ exports.zexMint = 'ZEXy1pqteRu3n13kdyh4LwPQknkFk3GzmMYMuNadWPo';
6
7
  exports.platformId = 'zeta';
7
8
  exports.platform = {
8
9
  id: exports.platformId,
@@ -10,6 +11,13 @@ exports.platform = {
10
11
  image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/zeta.webp',
11
12
  defiLlamaId: 'zeta',
12
13
  website: 'https://www.zeta.markets/',
14
+ twitter: 'https://x.com/ZetaMarkets',
15
+ documentation: 'https://docs.zeta.markets/',
16
+ tokens: [exports.zexMint],
17
+ telegram: 'https://t.me/realzetamarkets',
18
+ discord: 'https://discord.gg/Xn9HCJaDZd',
19
+ github: 'https://github.com/zetamarkets',
20
+ description: 'Zeta Markets is the premier derivatives protocol on Solana.',
13
21
  };
14
22
  exports.programId = new web3_js_1.PublicKey('ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD');
15
23
  exports.graphqlApi = 'https://api-gql.zeta.markets/graphql';
@@ -22,7 +30,6 @@ exports.airdropStatics = {
22
30
  claimStart: 1719475200000,
23
31
  claimEnd: 1727251200000,
24
32
  };
25
- exports.zexMint = 'ZEXy1pqteRu3n13kdyh4LwPQknkFk3GzmMYMuNadWPo';
26
33
  exports.zexDecimals = 6;
27
34
  exports.distributorPid = '4JSALTb4QbipG7NNLryAFJg4y8X5C1ELErSncsVMA3gZ';
28
35
  exports.distributors = [
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG5C,iCAA+C;AAGlC,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,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AAS,EAAE,kBAAU,CAAC,QAAQ,EAAE;IAChC,GAAG,EAAE,WAAa;IAClB,OAAO,EAAE,QAAQ;CACP,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG5C,iCAA+C;AAGlC,QAAA,OAAO,GAAG,6CAA6C,CAAC;AACxD,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EACH,0EAA0E;IAC5E,WAAW,EAAE,MAAM;IACnB,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,2BAA2B;IACpC,aAAa,EAAE,4BAA4B;IAC3C,MAAM,EAAE,CAAC,eAAO,CAAC;IACjB,QAAQ,EAAE,8BAA8B;IACxC,OAAO,EAAE,+BAA+B;IACxC,MAAM,EAAE,gCAAgC;IACxC,WAAW,EAAE,6DAA6D;CAC3E,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AACW,QAAA,UAAU,GAAG,sCAAsC,CAAC;AAEpD,QAAA,cAAc,GAAmB;IAC5C,SAAS,EAAE,6BAA6B;IACxC,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,MAAM;IACnB,EAAE,EAAE,cAAc;IAClB,KAAK,EACH,0EAA0E;IAC5E,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,aAAa;CACxB,CAAC;AAEW,QAAA,WAAW,GAAG,CAAC,CAAC;AAChB,QAAA,cAAc,GAAG,8CAA8C,CAAC;AAChE,QAAA,YAAY,GAAG;IAC1B,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,6CAA6C;IAC7C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;CAC/C,CAAC;AAEW,QAAA,UAAU,GAAG,IAAI,mBAAS,CACrC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,WAAW,GAAG;IACzB,SAAS,EAAE,kBAAU,CAAC,QAAQ,EAAE;IAChC,GAAG,EAAE,WAAa;IAClB,OAAO,EAAE,QAAQ;CACP,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { AirdropFetcher } from '../../AirdropFetcher';
2
3
  import { Fetcher } from '../../Fetcher';
3
4
  import { Job } from '../../Job';
4
- import { airdropFetcher } from './airdropFetcher';
5
5
  export declare const jobs: Job[];
6
6
  export declare const fetchers: Fetcher[];
7
7
  export declare const platforms: Platform[];
8
- export { airdropFetcher };
8
+ export declare const airdropFetchers: AirdropFetcher[];
@@ -3,13 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.airdropFetcher = exports.platforms = exports.fetchers = exports.jobs = void 0;
6
+ exports.airdropFetchers = exports.platforms = exports.fetchers = exports.jobs = void 0;
7
7
  const depositsFetcher_1 = __importDefault(require("./depositsFetcher"));
8
8
  const airdropFetcher_1 = require("./airdropFetcher");
9
- Object.defineProperty(exports, "airdropFetcher", { enumerable: true, get: function () { return airdropFetcher_1.airdropFetcher; } });
10
9
  const stakingFetcher_1 = __importDefault(require("./stakingFetcher"));
11
10
  const constants_1 = require("./constants");
12
11
  exports.jobs = [];
13
12
  exports.fetchers = [depositsFetcher_1.default, airdropFetcher_1.fetcher, stakingFetcher_1.default];
14
13
  exports.platforms = [constants_1.platform];
14
+ exports.airdropFetchers = [airdropFetcher_1.airdropFetcher];
15
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/index.ts"],"names":[],"mappings":";;;;;;AAGA,wEAAgD;AAChD,qDAA2D;AAOlD,+FAPA,+BAAc,OAOA;AANvB,sEAA8C;AAC9C,2CAAuC;AAE1B,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,yBAAe,EAAE,wBAAO,EAAE,wBAAc,CAAC,CAAC;AACjE,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/index.ts"],"names":[],"mappings":";;;;;;AAIA,wEAAgD;AAChD,qDAA2D;AAC3D,sEAA8C;AAC9C,2CAAuC;AAE1B,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,yBAAe,EAAE,wBAAO,EAAE,wBAAc,CAAC,CAAC;AACjE,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AAEnC,QAAA,eAAe,GAAqB,CAAC,+BAAc,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { Contract, Platform } from '@sonarwatch/portfolio-core';
2
+ export declare const zeusMint = "ZEUS1aR7aX8DFFJf5QjWj2ftDDdNTroMNGo8YoQm3Gq";
3
+ export declare const platformId = "zeus";
4
+ export declare const platform: Platform;
5
+ export declare const zeusNodeDelegateContract: Contract;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.zeusNodeDelegateContract = exports.platform = exports.platformId = exports.zeusMint = void 0;
4
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
5
+ exports.zeusMint = 'ZEUS1aR7aX8DFFJf5QjWj2ftDDdNTroMNGo8YoQm3Gq';
6
+ exports.platformId = 'zeus';
7
+ exports.platform = {
8
+ id: exports.platformId,
9
+ name: 'Zeus',
10
+ image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/zeusnode.webp',
11
+ website: 'https://app.zeusguardian.io/',
12
+ twitter: 'https://x.com/ZeusNetworkHQ',
13
+ documentation: 'https://docs.zeusnetwork.xyz/',
14
+ tokens: [exports.zeusMint],
15
+ github: 'https://github.com/ZeusNetworkHQ',
16
+ discord: 'https://discord.com/invite/zeusnetwork',
17
+ medium: 'https://medium.com/@zeus-network',
18
+ description: 'First Multichain Layer on Solana.',
19
+ };
20
+ exports.zeusNodeDelegateContract = {
21
+ name: `${exports.platform.name} Delegate`,
22
+ address: 'ZPLt7XEyRvRxEZcGFGnRKGLBymFjQbwmgTZhMAMfGAU',
23
+ network: portfolio_core_1.NetworkId.solana,
24
+ };
25
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeus/constants.ts"],"names":[],"mappings":";;;AAAA,+DAA2E;AAE9D,QAAA,QAAQ,GAAG,6CAA6C,CAAC;AACzD,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EACH,8EAA8E;IAChF,OAAO,EAAE,8BAA8B;IACvC,OAAO,EAAE,6BAA6B;IACtC,aAAa,EAAE,+BAA+B;IAC9C,MAAM,EAAE,CAAC,gBAAQ,CAAC;IAClB,MAAM,EAAE,kCAAkC;IAC1C,OAAO,EAAE,wCAAwC;IACjD,MAAM,EAAE,kCAAkC;IAC1C,WAAW,EAAE,mCAAmC;CACjD,CAAC;AAEW,QAAA,wBAAwB,GAAa;IAChD,IAAI,EAAE,GAAG,gBAAQ,CAAC,IAAI,WAAW;IACjC,OAAO,EAAE,6CAA6C;IACtD,OAAO,EAAE,0BAAS,CAAC,MAAM;CAC1B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Fetcher } from '../../Fetcher';
2
+ declare const fetcher: Fetcher;
3
+ export default fetcher;
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
+ const web3_js_1 = require("@solana/web3.js");
17
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
18
+ const constants_1 = require("./constants");
19
+ const clients_1 = require("../../utils/clients");
20
+ const ParsedGpa_1 = require("../../utils/solana/beets/ParsedGpa");
21
+ const structs_1 = require("./structs");
22
+ const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
23
+ const secondsInADay = 86400;
24
+ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
25
+ const client = (0, clients_1.getClientSolana)();
26
+ const accounts = yield ParsedGpa_1.ParsedGpa.build(client, structs_1.delegationStruct, new web3_js_1.PublicKey(constants_1.zeusNodeDelegateContract.address))
27
+ .addFilter('accountDiscriminator', [47, 21, 138, 89, 209, 154, 59, 130])
28
+ .addFilter('delegator', new web3_js_1.PublicKey(owner))
29
+ .run();
30
+ const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
31
+ accounts.forEach((account) => {
32
+ const element = elementRegistry.addElementMultiple({
33
+ label: 'Staked',
34
+ ref: account.pubkey.toString(),
35
+ link: 'https://app.zeusguardian.io/delegations',
36
+ });
37
+ const startedRemovalAt = account.startedRemovalAt.isZero()
38
+ ? new bignumber_js_1.default(Date.now()).dividedBy(1000)
39
+ : account.startedRemovalAt;
40
+ let elpasedDays = startedRemovalAt
41
+ .minus(account.createdAt)
42
+ .dividedBy(secondsInADay)
43
+ .toNumber();
44
+ if (elpasedDays < 0) {
45
+ elpasedDays = 0;
46
+ }
47
+ else if (elpasedDays > account.lockDays) {
48
+ elpasedDays = account.lockDays;
49
+ }
50
+ const rewardAmount = account.amount
51
+ .times(account.derivedRewardRate)
52
+ .times(elpasedDays)
53
+ .dividedBy(1000000);
54
+ const claimableAmount = rewardAmount.isGreaterThan(account.claimedReward)
55
+ ? rewardAmount.minus(account.claimedReward)
56
+ : new bignumber_js_1.default(0);
57
+ const lockedUntil = account.createdAt
58
+ .plus(account.lockDays * secondsInADay)
59
+ .times(1000)
60
+ .toNumber();
61
+ element.addAsset({
62
+ address: constants_1.zeusMint,
63
+ amount: claimableAmount,
64
+ });
65
+ if (Date.now() < lockedUntil) {
66
+ element.addAsset({
67
+ address: constants_1.zeusMint,
68
+ amount: account.claimableAmount,
69
+ attributes: {
70
+ lockedUntil,
71
+ },
72
+ });
73
+ }
74
+ });
75
+ return elementRegistry.getElements(cache);
76
+ });
77
+ const fetcher = {
78
+ id: `${constants_1.platformId}-delegations`,
79
+ networkId: portfolio_core_1.NetworkId.solana,
80
+ executor,
81
+ };
82
+ exports.default = fetcher;
83
+ //# sourceMappingURL=delegationsFetcher.js.map