@sonarwatch/portfolio-plugins 0.11.183 → 0.11.185

Sign up to get free protection for your applications and to get access to all the features.
Files changed (308) hide show
  1. package/CHANGELOG.md +1477 -1459
  2. package/README.md +3 -3
  3. package/package.json +2 -2
  4. package/src/generators/helpers.js +1 -1
  5. package/src/generators/helpers.js.map +1 -1
  6. package/src/index.js +2 -0
  7. package/src/index.js.map +1 -1
  8. package/src/plugins/aave/constants.d.ts +1 -1
  9. package/src/plugins/aave/constants.js +2 -2
  10. package/src/plugins/aave/constants.js.map +1 -1
  11. package/src/plugins/aave/index.js +1 -1
  12. package/src/plugins/aave/index.js.map +1 -1
  13. package/src/plugins/aftermath/constants.d.ts +1 -1
  14. package/src/plugins/aftermath/constants.js +2 -2
  15. package/src/plugins/aftermath/constants.js.map +1 -1
  16. package/src/plugins/aftermath/index.js +1 -1
  17. package/src/plugins/aftermath/index.js.map +1 -1
  18. package/src/plugins/aptin/constants.d.ts +3 -0
  19. package/src/plugins/aptin/constants.js +5 -2
  20. package/src/plugins/aptin/constants.js.map +1 -1
  21. package/src/plugins/aptin/depositsFetcher.js +2 -2
  22. package/src/plugins/aptin/depositsFetcher.js.map +1 -1
  23. package/src/plugins/armada-staking/constants.js +6 -6
  24. package/src/plugins/armada-staking/constants.js.map +1 -1
  25. package/src/plugins/aurory/constants.d.ts +1 -1
  26. package/src/plugins/aurory/constants.js +3 -3
  27. package/src/plugins/aurory/constants.js.map +1 -1
  28. package/src/plugins/aurory/stakingFetcher.js +2 -2
  29. package/src/plugins/aurory/stakingFetcher.js.map +1 -1
  30. package/src/plugins/auxexchange/aptosLpJob.js +2 -2
  31. package/src/plugins/auxexchange/aptosLpJob.js.map +1 -1
  32. package/src/plugins/auxexchange/constants.d.ts +2 -2
  33. package/src/plugins/auxexchange/constants.js +4 -4
  34. package/src/plugins/auxexchange/constants.js.map +1 -1
  35. package/src/plugins/auxexchange/index.js +1 -1
  36. package/src/plugins/auxexchange/index.js.map +1 -1
  37. package/src/plugins/balancer/helpers/pools.js +21 -21
  38. package/src/plugins/banx/constants.js +1 -1
  39. package/src/plugins/banx/constants.js.map +1 -1
  40. package/src/plugins/bucket/constants.d.ts +1 -1
  41. package/src/plugins/bucket/constants.js +2 -2
  42. package/src/plugins/bucket/constants.js.map +1 -1
  43. package/src/plugins/bucket/index.js +1 -1
  44. package/src/plugins/bucket/index.js.map +1 -1
  45. package/src/plugins/cetus/constants.d.ts +1 -1
  46. package/src/plugins/cetus/constants.js +2 -2
  47. package/src/plugins/cetus/constants.js.map +1 -1
  48. package/src/plugins/cetus/index.js +1 -1
  49. package/src/plugins/cetus/index.js.map +1 -1
  50. package/src/plugins/clone/constants.js +1 -1
  51. package/src/plugins/clone/constants.js.map +1 -1
  52. package/src/plugins/compound/constants.d.ts +1 -1
  53. package/src/plugins/compound/constants.js +2 -2
  54. package/src/plugins/compound/constants.js.map +1 -1
  55. package/src/plugins/compound/index.js +1 -1
  56. package/src/plugins/compound/index.js.map +1 -1
  57. package/src/plugins/curve/constants.d.ts +1 -1
  58. package/src/plugins/curve/constants.js +2 -2
  59. package/src/plugins/curve/constants.js.map +1 -1
  60. package/src/plugins/curve/index.js +1 -1
  61. package/src/plugins/curve/index.js.map +1 -1
  62. package/src/plugins/daos/constants.js +2 -1
  63. package/src/plugins/daos/constants.js.map +1 -1
  64. package/src/plugins/drift/constants.d.ts +1 -1
  65. package/src/plugins/drift/constants.js +2 -2
  66. package/src/plugins/drift/constants.js.map +1 -1
  67. package/src/plugins/drift/index.js +1 -1
  68. package/src/plugins/drift/index.js.map +1 -1
  69. package/src/plugins/flash/constants.d.ts +1 -0
  70. package/src/plugins/flash/constants.js +2 -1
  71. package/src/plugins/flash/constants.js.map +1 -1
  72. package/src/plugins/flash/poolJob.js +28 -4
  73. package/src/plugins/flash/poolJob.js.map +1 -1
  74. package/src/plugins/flash/stakeFetcher.js +42 -18
  75. package/src/plugins/flash/stakeFetcher.js.map +1 -1
  76. package/src/plugins/flash/types.d.ts +5 -0
  77. package/src/plugins/flexlend/constants.d.ts +1 -1
  78. package/src/plugins/flexlend/constants.js +2 -2
  79. package/src/plugins/flexlend/constants.js.map +1 -1
  80. package/src/plugins/flexlend/depositsFetcher.js +1 -1
  81. package/src/plugins/flexlend/depositsFetcher.js.map +1 -1
  82. package/src/plugins/flexlend/index.js +1 -1
  83. package/src/plugins/flexlend/index.js.map +1 -1
  84. package/src/plugins/goosefx/constants.d.ts +1 -1
  85. package/src/plugins/goosefx/constants.js +2 -2
  86. package/src/plugins/goosefx/constants.js.map +1 -1
  87. package/src/plugins/goosefx/index.js +1 -1
  88. package/src/plugins/goosefx/index.js.map +1 -1
  89. package/src/plugins/hawksight/constants.d.ts +1 -1
  90. package/src/plugins/hawksight/constants.js +2 -2
  91. package/src/plugins/hawksight/constants.js.map +1 -1
  92. package/src/plugins/hawksight/index.js +1 -1
  93. package/src/plugins/hawksight/index.js.map +1 -1
  94. package/src/plugins/jito/constants.d.ts +1 -1
  95. package/src/plugins/jito/constants.js +2 -2
  96. package/src/plugins/jito/constants.js.map +1 -1
  97. package/src/plugins/jito/index.js +1 -1
  98. package/src/plugins/jito/index.js.map +1 -1
  99. package/src/plugins/jupiter/exchange/constants.d.ts +1 -1
  100. package/src/plugins/jupiter/exchange/constants.js +2 -2
  101. package/src/plugins/jupiter/exchange/constants.js.map +1 -1
  102. package/src/plugins/jupiter/exchange/dcaFetcher.js +1 -1
  103. package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
  104. package/src/plugins/jupiter/governance/constants.d.ts +2 -2
  105. package/src/plugins/jupiter/governance/constants.js +4 -4
  106. package/src/plugins/jupiter/governance/constants.js.map +1 -1
  107. package/src/plugins/jupiter/governance/voteFetcher.js +2 -2
  108. package/src/plugins/jupiter/governance/voteFetcher.js.map +1 -1
  109. package/src/plugins/jupiter/index.js +3 -3
  110. package/src/plugins/jupiter/index.js.map +1 -1
  111. package/src/plugins/jupiter/launchpad/allocationsFetcher.js +2 -2
  112. package/src/plugins/jupiter/launchpad/allocationsFetcher.js.map +1 -1
  113. package/src/plugins/jupiter/launchpad/constants.d.ts +2 -2
  114. package/src/plugins/jupiter/launchpad/constants.js +4 -4
  115. package/src/plugins/jupiter/launchpad/constants.js.map +1 -1
  116. package/src/plugins/kamino/airdropFetcher.js +2 -2
  117. package/src/plugins/kamino/airdropFetcher.js.map +1 -1
  118. package/src/plugins/kamino/constants.d.ts +1 -1
  119. package/src/plugins/kamino/constants.js +2 -2
  120. package/src/plugins/kamino/constants.js.map +1 -1
  121. package/src/plugins/kamino/index.js +1 -1
  122. package/src/plugins/kamino/index.js.map +1 -1
  123. package/src/plugins/lido/constants.d.ts +1 -1
  124. package/src/plugins/lido/constants.js +2 -2
  125. package/src/plugins/lido/constants.js.map +1 -1
  126. package/src/plugins/lido/index.js +1 -1
  127. package/src/plugins/lido/index.js.map +1 -1
  128. package/src/plugins/liquidswap/constants.d.ts +1 -1
  129. package/src/plugins/liquidswap/constants.js +2 -2
  130. package/src/plugins/liquidswap/constants.js.map +1 -1
  131. package/src/plugins/liquidswap/index.js +1 -1
  132. package/src/plugins/liquidswap/index.js.map +1 -1
  133. package/src/plugins/magiceden/constants.d.ts +1 -1
  134. package/src/plugins/magiceden/constants.js +2 -2
  135. package/src/plugins/magiceden/constants.js.map +1 -1
  136. package/src/plugins/magiceden/index.js +1 -1
  137. package/src/plugins/magiceden/index.js.map +1 -1
  138. package/src/plugins/maker/constants.d.ts +1 -1
  139. package/src/plugins/maker/constants.js +2 -2
  140. package/src/plugins/maker/constants.js.map +1 -1
  141. package/src/plugins/maker/index.js +1 -1
  142. package/src/plugins/maker/index.js.map +1 -1
  143. package/src/plugins/mango/constants.d.ts +1 -1
  144. package/src/plugins/mango/constants.js +2 -2
  145. package/src/plugins/mango/constants.js.map +1 -1
  146. package/src/plugins/mango/index.js +1 -1
  147. package/src/plugins/mango/index.js.map +1 -1
  148. package/src/plugins/maple/constants.d.ts +1 -1
  149. package/src/plugins/maple/constants.js +2 -2
  150. package/src/plugins/maple/constants.js.map +1 -1
  151. package/src/plugins/maple/index.js +1 -1
  152. package/src/plugins/maple/index.js.map +1 -1
  153. package/src/plugins/marginfi/constants.d.ts +2 -2
  154. package/src/plugins/marginfi/constants.js +3 -3
  155. package/src/plugins/marginfi/constants.js.map +1 -1
  156. package/src/plugins/marginfi/index.js +1 -1
  157. package/src/plugins/marginfi/index.js.map +1 -1
  158. package/src/plugins/marinade/constants.d.ts +1 -1
  159. package/src/plugins/marinade/constants.js +2 -2
  160. package/src/plugins/marinade/constants.js.map +1 -1
  161. package/src/plugins/marinade/index.js +1 -1
  162. package/src/plugins/marinade/index.js.map +1 -1
  163. package/src/plugins/meteora/constants.d.ts +1 -1
  164. package/src/plugins/meteora/constants.js +2 -2
  165. package/src/plugins/meteora/constants.js.map +1 -1
  166. package/src/plugins/meteora/index.js +1 -1
  167. package/src/plugins/meteora/index.js.map +1 -1
  168. package/src/plugins/morpho/constants.d.ts +1 -1
  169. package/src/plugins/morpho/constants.js +2 -2
  170. package/src/plugins/morpho/constants.js.map +1 -1
  171. package/src/plugins/morpho/index.js +1 -1
  172. package/src/plugins/morpho/index.js.map +1 -1
  173. package/src/plugins/native-stake/solana/solanaFetcher.js +7 -7
  174. package/src/plugins/native-stake/solana/solanaFetcher.js.map +1 -1
  175. package/src/plugins/navi/constants.d.ts +1 -1
  176. package/src/plugins/navi/constants.js +2 -2
  177. package/src/plugins/navi/constants.js.map +1 -1
  178. package/src/plugins/navi/index.js +1 -1
  179. package/src/plugins/navi/index.js.map +1 -1
  180. package/src/plugins/nosana/constants.js +1 -1
  181. package/src/plugins/nosana/constants.js.map +1 -1
  182. package/src/plugins/orca/constants.d.ts +1 -1
  183. package/src/plugins/orca/constants.js +2 -2
  184. package/src/plugins/orca/constants.js.map +1 -1
  185. package/src/plugins/orca/index.js +1 -1
  186. package/src/plugins/orca/index.js.map +1 -1
  187. package/src/plugins/pancakeswap/constants.d.ts +1 -1
  188. package/src/plugins/pancakeswap/constants.js +2 -2
  189. package/src/plugins/pancakeswap/constants.js.map +1 -1
  190. package/src/plugins/pancakeswap/index.js +1 -1
  191. package/src/plugins/pancakeswap/index.js.map +1 -1
  192. package/src/plugins/paraswap/constants.d.ts +1 -1
  193. package/src/plugins/paraswap/constants.js +2 -2
  194. package/src/plugins/paraswap/constants.js.map +1 -1
  195. package/src/plugins/paraswap/index.js +1 -1
  196. package/src/plugins/paraswap/index.js.map +1 -1
  197. package/src/plugins/parcl/airdropFetcher.js +3 -0
  198. package/src/plugins/parcl/airdropFetcher.js.map +1 -1
  199. package/src/plugins/parcl/constants.d.ts +1 -1
  200. package/src/plugins/parcl/constants.js +2 -2
  201. package/src/plugins/parcl/constants.js.map +1 -1
  202. package/src/plugins/parcl/index.js +1 -1
  203. package/src/plugins/parcl/index.js.map +1 -1
  204. package/src/plugins/rain/constants.js +1 -1
  205. package/src/plugins/rain/constants.js.map +1 -1
  206. package/src/plugins/raydium/constants.d.ts +1 -1
  207. package/src/plugins/raydium/constants.js +2 -2
  208. package/src/plugins/raydium/constants.js.map +1 -1
  209. package/src/plugins/raydium/index.js +1 -1
  210. package/src/plugins/raydium/index.js.map +1 -1
  211. package/src/plugins/rocket-pool/constants.d.ts +1 -1
  212. package/src/plugins/rocket-pool/constants.js +2 -2
  213. package/src/plugins/rocket-pool/constants.js.map +1 -1
  214. package/src/plugins/rocket-pool/index.js +1 -1
  215. package/src/plugins/rocket-pool/index.js.map +1 -1
  216. package/src/plugins/saber/constants.d.ts +1 -1
  217. package/src/plugins/saber/constants.js +2 -2
  218. package/src/plugins/saber/constants.js.map +1 -1
  219. package/src/plugins/saber/index.js +1 -1
  220. package/src/plugins/saber/index.js.map +1 -1
  221. package/src/plugins/scallop/constants.d.ts +1 -1
  222. package/src/plugins/scallop/constants.js +9 -9
  223. package/src/plugins/scallop/constants.js.map +1 -1
  224. package/src/plugins/scallop/index.js +1 -1
  225. package/src/plugins/scallop/index.js.map +1 -1
  226. package/src/plugins/solend/constants.d.ts +1 -1
  227. package/src/plugins/solend/constants.js +2 -2
  228. package/src/plugins/solend/constants.js.map +1 -1
  229. package/src/plugins/solend/index.js +1 -1
  230. package/src/plugins/solend/index.js.map +1 -1
  231. package/src/plugins/stader/constants.d.ts +1 -1
  232. package/src/plugins/stader/constants.js +2 -2
  233. package/src/plugins/stader/constants.js.map +1 -1
  234. package/src/plugins/stader/index.js +1 -1
  235. package/src/plugins/stader/index.js.map +1 -1
  236. package/src/plugins/stargate/constants.d.ts +1 -1
  237. package/src/plugins/stargate/constants.js +2 -2
  238. package/src/plugins/stargate/constants.js.map +1 -1
  239. package/src/plugins/stargate/index.js +1 -1
  240. package/src/plugins/stargate/index.js.map +1 -1
  241. package/src/plugins/sushiswap/helpers.js +24 -24
  242. package/src/plugins/switchboard/constants.d.ts +1 -0
  243. package/src/plugins/switchboard/constants.js +5 -0
  244. package/src/plugins/switchboard/constants.js.map +1 -0
  245. package/src/plugins/switchboard/helpers/getSwitchboardPrice.d.ts +3 -0
  246. package/src/plugins/switchboard/helpers/getSwitchboardPrice.js +20 -0
  247. package/src/plugins/switchboard/helpers/getSwitchboardPrice.js.map +1 -0
  248. package/src/plugins/switchboard/helpers/getSwitchboardPrices.d.ts +3 -0
  249. package/src/plugins/switchboard/helpers/getSwitchboardPrices.js +23 -0
  250. package/src/plugins/switchboard/helpers/getSwitchboardPrices.js.map +1 -0
  251. package/src/plugins/switchboard/helpers/misc.d.ts +2 -0
  252. package/src/plugins/switchboard/helpers/misc.js +26 -0
  253. package/src/plugins/switchboard/helpers/misc.js.map +1 -0
  254. package/src/plugins/switchboard/index.d.ts +4 -0
  255. package/src/plugins/switchboard/index.js +10 -0
  256. package/src/plugins/switchboard/index.js.map +1 -0
  257. package/src/plugins/switchboard/pricingJob.d.ts +3 -0
  258. package/src/plugins/switchboard/pricingJob.js +57 -0
  259. package/src/plugins/switchboard/pricingJob.js.map +1 -0
  260. package/src/plugins/switchboard/structs.d.ts +74 -0
  261. package/src/plugins/switchboard/structs.js +72 -0
  262. package/src/plugins/switchboard/structs.js.map +1 -0
  263. package/src/plugins/tensor/constants.d.ts +1 -1
  264. package/src/plugins/tensor/constants.js +2 -2
  265. package/src/plugins/tensor/constants.js.map +1 -1
  266. package/src/plugins/tensor/index.js +1 -1
  267. package/src/plugins/tensor/index.js.map +1 -1
  268. package/src/plugins/thala/constants.d.ts +12 -5
  269. package/src/plugins/thala/constants.js +9 -9
  270. package/src/plugins/thala/constants.js.map +1 -1
  271. package/src/plugins/thala/index.js +1 -1
  272. package/src/plugins/thala/index.js.map +1 -1
  273. package/src/plugins/thala/vaultsRatesJob.js +1 -1
  274. package/src/plugins/thala/vaultsRatesJob.js.map +1 -1
  275. package/src/plugins/turbos/constants.d.ts +1 -1
  276. package/src/plugins/turbos/constants.js +2 -2
  277. package/src/plugins/turbos/constants.js.map +1 -1
  278. package/src/plugins/turbos/index.js +1 -1
  279. package/src/plugins/turbos/index.js.map +1 -1
  280. package/src/plugins/uniswap/constants.d.ts +1 -1
  281. package/src/plugins/uniswap/constants.js +2 -2
  282. package/src/plugins/uniswap/constants.js.map +1 -1
  283. package/src/plugins/uniswap/getUniV3PositionsFetcher.js +1 -1
  284. package/src/plugins/uniswap/getUniV3PositionsFetcher.js.map +1 -1
  285. package/src/plugins/uniswap/index.js +1 -1
  286. package/src/plugins/uniswap/index.js.map +1 -1
  287. package/src/plugins/uniswap-v2/getPositionsV2Fetcher.js +1 -1
  288. package/src/plugins/uniswap-v2/getPositionsV2Fetcher.js.map +1 -1
  289. package/src/plugins/uniswap-v2/helpers.js +23 -23
  290. package/src/plugins/uniswap-v2/helpers.js.map +1 -1
  291. package/src/plugins/venus/constants.d.ts +1 -1
  292. package/src/plugins/venus/constants.js +3 -7
  293. package/src/plugins/venus/constants.js.map +1 -1
  294. package/src/plugins/venus/index.js +1 -1
  295. package/src/plugins/venus/index.js.map +1 -1
  296. package/src/plugins/wormhole/constants.js +1 -1
  297. package/src/plugins/wormhole/constants.js.map +1 -1
  298. package/src/plugins/x-staking-solana/constants.js +2 -2
  299. package/src/plugins/x-staking-solana/constants.js.map +1 -1
  300. package/src/plugins/zeta/constants.d.ts +1 -1
  301. package/src/plugins/zeta/constants.js +2 -2
  302. package/src/plugins/zeta/constants.js.map +1 -1
  303. package/src/plugins/zeta/index.js +1 -1
  304. package/src/plugins/zeta/index.js.map +1 -1
  305. package/src/utils/misc/getImagefromUri.js +1 -1
  306. package/src/utils/misc/getImagefromUri.js.map +1 -1
  307. package/src/utils/sei/constants.js +8 -8
  308. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,OAAO;IACpB,OAAO,EAAE,yBAAyB;CACnC,CAAC;AACW,QAAA,eAAe,GAAG,GAAG,kBAAU,YAAY,CAAC;AAE5C,QAAA,iBAAiB,GAC5B,oEAAoE,CAAC;AAE1D,QAAA,QAAQ,GAAG,GAAG,yBAAiB,sBAAsB,CAAC;AAEtD,QAAA,eAAe,GAAG,GAAG,yBAAiB,4BAA4B,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,OAAO;IACpB,OAAO,EAAE,yBAAyB;CACnC,CAAC;AACW,QAAA,eAAe,GAAG,GAAG,kBAAU,YAAY,CAAC;AAE5C,QAAA,iBAAiB,GAC5B,oEAAoE,CAAC;AAE1D,QAAA,QAAQ,GAAG,GAAG,yBAAiB,sBAAsB,CAAC;AAEtD,QAAA,eAAe,GAAG,GAAG,yBAAiB,4BAA4B,CAAC"}
@@ -7,7 +7,7 @@ exports.fetchers = exports.jobs = exports.platforms = void 0;
7
7
  const poolsJob_1 = __importDefault(require("./poolsJob"));
8
8
  const clmmsFetcher_1 = __importDefault(require("./clmmsFetcher"));
9
9
  const constants_1 = require("./constants");
10
- exports.platforms = [constants_1.cetusPlatform];
10
+ exports.platforms = [constants_1.platform];
11
11
  exports.jobs = [poolsJob_1.default];
12
12
  exports.fetchers = [clmmsFetcher_1.default];
13
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/index.ts"],"names":[],"mappings":";;;;;;AAGA,0DAAkC;AAClC,kEAAiD;AACjD,2CAA4C;AAE/B,QAAA,SAAS,GAAe,CAAC,yBAAa,CAAC,CAAC;AACxC,QAAA,IAAI,GAAU,CAAC,kBAAQ,CAAC,CAAC;AACzB,QAAA,QAAQ,GAAc,CAAC,sBAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/index.ts"],"names":[],"mappings":";;;;;;AAGA,0DAAkC;AAClC,kEAAiD;AACjD,2CAAuC;AAE1B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,kBAAQ,CAAC,CAAC;AACzB,QAAA,QAAQ,GAAc,CAAC,sBAAmB,CAAC,CAAC"}
@@ -6,7 +6,7 @@ exports.platformId = 'clone';
6
6
  exports.platform = {
7
7
  id: exports.platformId,
8
8
  name: 'Clone',
9
- image: 'https://sonar.watch/img/platforms/clone.png',
9
+ image: 'https://sonar.watch/img/platforms/clone.webp',
10
10
  defiLlamaId: 'clone-protocol', // from https://defillama.com/docs/api
11
11
  website: 'https://clone.so/',
12
12
  twitter: 'https://twitter.com/CloneProtocol',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/clone/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,EAAE,6CAA6C;IACpD,WAAW,EAAE,gBAAgB,EAAE,sCAAsC;IACrE,OAAO,EAAE,mBAAmB;IAC5B,OAAO,EAAE,mCAAmC;CAC7C,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AACW,QAAA,WAAW,GAAG,IAAI,mBAAS,CACtC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,QAAQ,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/clone/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,EAAE,8CAA8C;IACrD,WAAW,EAAE,gBAAgB,EAAE,sCAAsC;IACrE,OAAO,EAAE,mBAAmB;IAC5B,OAAO,EAAE,mCAAmC;CAC7C,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AACW,QAAA,WAAW,GAAG,IAAI,mBAAS,CACtC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,QAAQ,GAAG,OAAO,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { EvmNetworkIdType, Platform } from '@sonarwatch/portfolio-core';
2
2
  import { MarketDetail } from './types';
3
3
  export declare const platformId = "compound";
4
- export declare const compoundPlatform: Platform;
4
+ export declare const platform: Platform;
5
5
  export declare const marketDetailsKey = "marketsDetails";
6
6
  export declare const comethTokenPricesPrefix = "cometh-token-prices";
7
7
  export declare const comptrollerV2Ethereum = "0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B";
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.marketDetails = exports.comptrollerV2Ethereum = exports.comethTokenPricesPrefix = exports.marketDetailsKey = exports.compoundPlatform = exports.platformId = void 0;
3
+ exports.marketDetails = exports.comptrollerV2Ethereum = exports.comethTokenPricesPrefix = exports.marketDetailsKey = exports.platform = exports.platformId = void 0;
4
4
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
5
5
  exports.platformId = 'compound';
6
- exports.compoundPlatform = {
6
+ exports.platform = {
7
7
  id: exports.platformId,
8
8
  name: 'Compound',
9
9
  image: 'https://sonar.watch/img/platforms/compound.png',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/compound/constants.ts"],"names":[],"mappings":";;;AAAA,+DAIoC;AAGvB,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,gBAAgB,GAAa;IACxC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,gDAAgD;IACvD,WAAW,EAAE,yBAAyB,EAAE,sCAAsC;IAC9E,OAAO,EAAE,2BAA2B;CACrC,CAAC;AAEW,QAAA,gBAAgB,GAAG,gBAAgB,CAAC;AACpC,QAAA,uBAAuB,GAAG,qBAAqB,CAAC;AAChD,QAAA,qBAAqB,GAChC,4CAA4C,CAAC;AAElC,QAAA,aAAa,GAA0C,IAAI,GAAG,CAAC;IAC1E;QACE,0BAAS,CAAC,QAAQ;QAClB;YACE;gBACE,SAAS,EAAE,0BAAS,CAAC,QAAQ;gBAC7B,YAAY,EAAE,4CAA4C;gBAC1D,kBAAkB,EAAE,4CAA4C;gBAChE,gBAAgB,EAAE,4CAA4C;gBAC9D,iBAAiB,EAAE,C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b;iBACF;aACF;SACF;KACF;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/compound/constants.ts"],"names":[],"mappings":";;;AAAA,+DAIoC;AAGvB,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,gDAAgD;IACvD,WAAW,EAAE,yBAAyB,EAAE,sCAAsC;IAC9E,OAAO,EAAE,2BAA2B;CACrC,CAAC;AAEW,QAAA,gBAAgB,GAAG,gBAAgB,CAAC;AACpC,QAAA,uBAAuB,GAAG,qBAAqB,CAAC;AAChD,QAAA,qBAAqB,GAChC,4CAA4C,CAAC;AAElC,QAAA,aAAa,GAA0C,IAAI,GAAG,CAAC;IAC1E;QACE,0BAAS,CAAC,QAAQ;QAClB;YACE;gBACE,SAAS,EAAE,0BAAS,CAAC,QAAQ;gBAC7B,YAAY,EAAE,4CAA4C;gBAC1D,kBAAkB,EAAE,4CAA4C;gBAChE,gBAAgB,EAAE,4CAA4C;gBAC9D,iBAAiB,EAAE,CAAC;gBACpB,MAAM,EAAE;oBACN;wBACE,OAAO,EAAE,4CAA4C;wBACrD,QAAQ,EAAE,EAAE;qBACb;oBACD;wBACE,OAAO,EAAE,4CAA4C;wBACrD,QAAQ,EAAE,CAAC;qBACZ;oBACD;wBACE,OAAO,EAAE,4CAA4C;wBACrD,QAAQ,EAAE,EAAE;qBACb;oBACD;wBACE,OAAO,EAAE,4CAA4C;wBACrD,QAAQ,EAAE,EAAE;qBACb;oBACD;wBACE,OAAO,EAAE,4CAA4C;wBACrD,QAAQ,EAAE,EAAE;qBACb;iBACF;aACF;YACD;gBACE,SAAS,EAAE,0BAAS,CAAC,QAAQ;gBAC7B,YAAY,EAAE,4CAA4C;gBAC1D,kBAAkB,EAAE,4CAA4C;gBAChE,gBAAgB,EAAE,4CAA4C;gBAC9D,iBAAiB,EAAE,EAAE;gBACrB,MAAM,EAAE;oBACN;wBACE,OAAO,EAAE,4CAA4C;wBACrD,QAAQ,EAAE,EAAE;qBACb;oBACD;wBACE,OAAO,EAAE,4CAA4C;wBACrD,QAAQ,EAAE,EAAE;qBACb;iBACF;aACF;SACF;KACF;IACD;QACE,0BAAS,CAAC,OAAO;QACjB;YACE;gBACE,SAAS,EAAE,0BAAS,CAAC,OAAO;gBAC5B,YAAY,EAAE,4CAA4C;gBAC1D,kBAAkB,EAAE,4CAA4C;gBAChE,gBAAgB,EAAE,4CAA4C;gBAC9D,iBAAiB,EAAE,CAAC;gBACpB,MAAM,EAAE;oBACN;wBACE,OAAO,EAAE,4CAA4C;wBACrD,QAAQ,EAAE,EAAE;qBACb;oBACD;wBACE,OAAO,EAAE,4CAA4C;wBACrD,QAAQ,EAAE,CAAC;qBACZ;oBACD;wBACE,OAAO,EAAE,4CAA4C;wBACrD,QAAQ,EAAE,EAAE;qBACb;oBACD;wBACE,OAAO,EAAE,4CAA4C;wBACrD,QAAQ,EAAE,EAAE;qBACb;oBACD;wBACE,OAAO,EAAE,4CAA4C;wBACrD,QAAQ,EAAE,EAAE;qBACb;iBACF;aACF;SACF;KACF;CACF,CAAC,CAAC"}
@@ -10,7 +10,7 @@ const marketsJob_1 = __importDefault(require("./marketsJob"));
10
10
  const getPositionsV3Fetcher_1 = __importDefault(require("./getPositionsV3Fetcher"));
11
11
  const getMarketsV2Job_1 = __importDefault(require("./getMarketsV2Job"));
12
12
  const getPositionsV2Fetcher_1 = __importDefault(require("./getPositionsV2Fetcher"));
13
- exports.platforms = [constants_1.compoundPlatform];
13
+ exports.platforms = [constants_1.platform];
14
14
  exports.jobs = [
15
15
  marketsJob_1.default,
16
16
  (0, getMarketsV2Job_1.default)(portfolio_core_1.NetworkId.ethereum, constants_1.platformId, constants_1.comptrollerV2Ethereum),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/compound/index.ts"],"names":[],"mappings":";;;;;;AAAA,+DAAiE;AAGjE,2CAIqB;AACrB,8DAAsC;AACtC,oFAA4D;AAC5D,wEAAgD;AAChD,oFAA4D;AAE/C,QAAA,SAAS,GAAe,CAAC,4BAAgB,CAAC,CAAC;AAC3C,QAAA,IAAI,GAAU;IACzB,oBAAU;IACV,IAAA,yBAAe,EAAC,0BAAS,CAAC,QAAQ,EAAE,sBAAU,EAAE,iCAAqB,CAAC;CACvE,CAAC;AACW,QAAA,QAAQ,GAAc;IACjC,IAAA,+BAAqB,EAAC,0BAAS,CAAC,QAAQ,CAAC;IACzC,IAAA,+BAAqB,EAAC,0BAAS,CAAC,OAAO,CAAC;IACxC,IAAA,+BAAqB,EAAC,0BAAS,CAAC,QAAQ,EAAE,sBAAU,CAAC;CACtD,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/compound/index.ts"],"names":[],"mappings":";;;;;;AAAA,+DAAiE;AAGjE,2CAA0E;AAC1E,8DAAsC;AACtC,oFAA4D;AAC5D,wEAAgD;AAChD,oFAA4D;AAE/C,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU;IACzB,oBAAU;IACV,IAAA,yBAAe,EAAC,0BAAS,CAAC,QAAQ,EAAE,sBAAU,EAAE,iCAAqB,CAAC;CACvE,CAAC;AACW,QAAA,QAAQ,GAAc;IACjC,IAAA,+BAAqB,EAAC,0BAAS,CAAC,QAAQ,CAAC;IACzC,IAAA,+BAAqB,EAAC,0BAAS,CAAC,OAAO,CAAC;IACxC,IAAA,+BAAqB,EAAC,0BAAS,CAAC,QAAQ,EAAE,sBAAU,CAAC;CACtD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { EvmNetworkIdType, Platform } from '@sonarwatch/portfolio-core';
2
2
  export declare const platformId = "curve";
3
- export declare const curvePlatform: Platform;
3
+ export declare const platform: Platform;
4
4
  export declare const poolsCachePrefix = "curve-pools";
5
5
  export declare const gaugesCachePrefix = "curve-gauges";
6
6
  export declare const poolsByAddressPrefix = "curve-pools-by-address";
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.crvNetworkIdBySwNetworkId = exports.crvNetworkIds = exports.crvDecimals = exports.crvAddress = exports.CrvNetworkId = exports.vestingEscrowAddress = exports.votingEscrowAddress = exports.apiBaseUrl = exports.gaugesAddresesCachePrefix = exports.poolsByAddressPrefix = exports.gaugesCachePrefix = exports.poolsCachePrefix = exports.curvePlatform = exports.platformId = void 0;
3
+ exports.crvNetworkIdBySwNetworkId = exports.crvNetworkIds = exports.crvDecimals = exports.crvAddress = exports.CrvNetworkId = exports.vestingEscrowAddress = exports.votingEscrowAddress = exports.apiBaseUrl = exports.gaugesAddresesCachePrefix = exports.poolsByAddressPrefix = exports.gaugesCachePrefix = exports.poolsCachePrefix = exports.platform = exports.platformId = void 0;
4
4
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
5
5
  exports.platformId = 'curve';
6
- exports.curvePlatform = {
6
+ exports.platform = {
7
7
  id: exports.platformId,
8
8
  name: 'Curve Finance',
9
9
  image: 'https://sonar.watch/img/platforms/curve.png',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/curve/constants.ts"],"names":[],"mappings":";;;AAAA,+DAIoC;AAEvB,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,sBAAsB;IACnC,OAAO,EAAE,mBAAmB;CAC7B,CAAC;AACW,QAAA,gBAAgB,GAAG,GAAG,kBAAU,QAAQ,CAAC;AACzC,QAAA,iBAAiB,GAAG,GAAG,kBAAU,SAAS,CAAC;AAC3C,QAAA,oBAAoB,GAAG,GAAG,kBAAU,mBAA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AA,UAAU,GAAG,0BAA0B,CAAC;AAExC,QAAA,mBAAmB,GAAG,4CAA4C,CAAC;AACnE,QAAA,oBAAoB,GAC/B,4CAA4C,CAAC;AAE/C,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,uCAAuB,CAAA;AACzB,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAEY,QAAA,UAAU,GAAG,4CAA4C,CAAC;AAC1D,QAAA,WAAW,GAAG,EAAE,CAAC;AACjB,QAAA,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAE5C,QAAA,yBAAyB,GACpC;IACE,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,0BAAS,CAAC,QAAQ;IAC3C,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,0BAAS,CAAC,OAAO;IACzC,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,0BAAS,CAAC,SAAS;CAC9C,CAAC"}
@@ -10,7 +10,7 @@ const gaugesJob_1 = __importDefault(require("./gaugesJob"));
10
10
  const getPositionsFetcher_1 = require("./getPositionsFetcher");
11
11
  const votingEscrowFetcher_1 = __importDefault(require("./votingEscrowFetcher"));
12
12
  const vestingEscrowFetcher_1 = __importDefault(require("./vestingEscrowFetcher"));
13
- exports.platforms = [constants_1.curvePlatform];
13
+ exports.platforms = [constants_1.platform];
14
14
  exports.jobs = [poolsJob_1.default, gaugesJob_1.default];
15
15
  exports.fetchers = [
16
16
  (0, getPositionsFetcher_1.getPositionsFetcher)(constants_1.CrvNetworkId.ethereum),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/curve/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAA0D;AAC1D,0DAAkC;AAClC,4DAAoC;AACpC,+DAA4D;AAC5D,gFAAwD;AACxD,kFAA0D;AAE7C,QAAA,SAAS,GAAe,CAAC,yBAAa,CAAC,CAAC;AACxC,QAAA,IAAI,GAAU,CAAC,kBAAQ,EAAE,mBAAS,CAAC,CAAC;AACpC,QAAA,QAAQ,GAAc;IACjC,IAAA,yCAAmB,EAAC,wBAAY,CAAC,QAAQ,CAAC;IAC1C,IAAA,yCAAmB,EAAC,wBAAY,CAAC,OAAO,CAAC;IACzC,IAAA,yCAAmB,EAAC,wBAAY,CAAC,SAAS,CAAC;IAC3C,6BAAmB;IACnB,8BAAoB;CACrB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/curve/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAqD;AACrD,0DAAkC;AAClC,4DAAoC;AACpC,+DAA4D;AAC5D,gFAAwD;AACxD,kFAA0D;AAE7C,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,kBAAQ,EAAE,mBAAS,CAAC,CAAC;AACpC,QAAA,QAAQ,GAAc;IACjC,IAAA,yCAAmB,EAAC,wBAAY,CAAC,QAAQ,CAAC;IAC1C,IAAA,yCAAmB,EAAC,wBAAY,CAAC,OAAO,CAAC;IACzC,IAAA,yCAAmB,EAAC,wBAAY,CAAC,SAAS,CAAC;IAC3C,6BAAmB;IACnB,8BAAoB;CACrB,CAAC"}
@@ -14,8 +14,9 @@ exports.heliumPlatformId = 'helium';
14
14
  exports.heliumPlatform = {
15
15
  id: exports.heliumPlatformId,
16
16
  name: 'Helium',
17
- image: 'https://sonar.watch/img/platforms/helium.png',
17
+ image: 'https://sonar.watch/img/platforms/helium.webp',
18
18
  website: 'https://heliumvote.com/',
19
+ twitter: 'https://twitter.com/helium',
19
20
  };
20
21
  exports.splGovProgramsKey = 'splGovernancePrograms';
21
22
  exports.registrarKey = 'registrars';
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/daos/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AAEtB,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,2BAA2B;CACrC,CAAC;AAEW,QAAA,gBAAgB,GAAG,QAAQ,CAAC;AAE5B,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,wBAAgB;IACpB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,8CAA8C;IACrD,OAAO,EAAE,yBAAyB;CACnC,CAAC;AAEW,QAAA,iBAAiB,GAAG,uBAAuB,CAAC;AAC5C,QAAA,YAAY,GAAG,YAAY,CAAC;AAE5B,QAAA,mBAAmB,GAAe;IAC7C;QACE,SAAS,EAAE,IAAI,mBAAS,CAAC,6CAA6C,CAAC,EAAE,WAAW;QACpF,IAAI,EAAE,6CAA6C;KACpD;IACD;QACE,SAAS,EAAE,IAAI,mBAAS,CAAC,8CAA8C,CAAC,EAAE,QAAQ;QAClF,IAAI,EAAE,6CAA6C;KACpD;IACD;QACE,SAAS,EAAE,IAAI,mBAAS,CAAC,6CAA6C,CAAC,EAAE,QAAQ;QACjF,IAAI,EAAE,6CAA6C;KACpD;IACD;QACE,SAAS,EAAE,IAAI,mBAAS,CAAC,8CAA8C,CAAC,EAAE,aAAa;QACvF,IAAI,EAAE,8CAA8C;KACrD;CACF,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,gBAAgB,GAC3B,oDAAoD,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/daos/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AAEtB,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,2BAA2B;CACrC,CAAC;AAEW,QAAA,gBAAgB,GAAG,QAAQ,CAAC;AAC5B,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,wBAAgB;IACpB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,+CAA+C;IACtD,OAAO,EAAE,yBAAyB;IAClC,OAAO,EAAE,4BAA4B;CACtC,CAAC;AAEW,QAAA,iBAAiB,GAAG,uBAAuB,CAAC;AAC5C,QAAA,YAAY,GAAG,YAAY,CAAC;AAE5B,QAAA,mBAAmB,GAAe;IAC7C;QACE,SAAS,EAAE,IAAI,mBAAS,CAAC,6CAA6C,CAAC,EAAE,WAAW;QACpF,IAAI,EAAE,6CAA6C;KACpD;IACD;QACE,SAAS,EAAE,IAAI,mBAAS,CAAC,8CAA8C,CAAC,EAAE,QAAQ;QAClF,IAAI,EAAE,6CAA6C;KACpD;IACD;QACE,SAAS,EAAE,IAAI,mBAAS,CAAC,6CAA6C,CAAC,EAAE,QAAQ;QACjF,IAAI,EAAE,6CAA6C;KACpD;IACD;QACE,SAAS,EAAE,IAAI,mBAAS,CAAC,8CAA8C,CAAC,EAAE,aAAa;QACvF,IAAI,EAAE,8CAA8C;KACrD;CACF,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,gBAAgB,GAC3B,oDAAoD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { PublicKey } from '@solana/web3.js';
2
2
  import { Platform } from '@sonarwatch/portfolio-core';
3
3
  export declare const platformId = "drift";
4
- export declare const driftPlatform: Platform;
4
+ export declare const platform: Platform;
5
5
  export declare const prefixSpotMarkets = "drift-spotMarkets";
6
6
  export declare const driftProgram: PublicKey;
7
7
  export declare const preMarketPriceKey = "premarketPrice";
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.preMarketPriceKey = exports.driftProgram = exports.prefixSpotMarkets = exports.driftPlatform = exports.platformId = void 0;
3
+ exports.preMarketPriceKey = exports.driftProgram = exports.prefixSpotMarkets = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'drift';
6
- exports.driftPlatform = {
6
+ exports.platform = {
7
7
  id: exports.platformId,
8
8
  name: 'Drift',
9
9
  image: 'https://sonar.watch/img/platforms/drift.png',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,OAAO;IACpB,OAAO,EAAE,0BAA0B;CACpC,CAAC;AACW,QAAA,iBAAiB,GAAG,GAAG,kBAAU,cAAc,CAAC;AAEhD,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,iBAAiB,GAAG,gBAAgB,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/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,EAAE,6CAA6C;IACpD,WAAW,EAAE,OAAO;IACpB,OAAO,EAAE,0BAA0B;CACpC,CAAC;AACW,QAAA,iBAAiB,GAAG,GAAG,kBAAU,cAAc,CAAC;AAEhD,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,iBAAiB,GAAG,gBAAgB,CAAC"}
@@ -8,7 +8,7 @@ const constants_1 = require("./constants");
8
8
  const spotMarketsJob_1 = __importDefault(require("./spotMarketsJob"));
9
9
  const deposits_1 = __importDefault(require("./deposits"));
10
10
  const premarketJob_1 = __importDefault(require("./premarketJob"));
11
- exports.platforms = [constants_1.driftPlatform];
11
+ exports.platforms = [constants_1.platform];
12
12
  exports.jobs = [spotMarketsJob_1.default, premarketJob_1.default];
13
13
  exports.fetchers = [deposits_1.default];
14
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAA4C;AAC5C,sEAA8C;AAC9C,0DAA8C;AAC9C,kEAA0C;AAE7B,QAAA,SAAS,GAAe,CAAC,yBAAa,CAAC,CAAC;AACxC,QAAA,IAAI,GAAU,CAAC,wBAAc,EAAE,sBAAY,CAAC,CAAC;AAC7C,QAAA,QAAQ,GAAc,CAAC,kBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,sEAA8C;AAC9C,0DAA8C;AAC9C,kEAA0C;AAE7B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,wBAAc,EAAE,sBAAY,CAAC,CAAC;AAC7C,QAAA,QAAQ,GAAc,CAAC,kBAAoB,CAAC,CAAC"}
@@ -5,3 +5,4 @@ export declare const platform: Platform;
5
5
  export declare const flashPid: PublicKey;
6
6
  export declare const poolsPkeys: PublicKey[];
7
7
  export declare const marketsKey = "markets";
8
+ export declare const poolsKey = "pools";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.marketsKey = exports.poolsPkeys = exports.flashPid = exports.platform = exports.platformId = void 0;
3
+ exports.poolsKey = exports.marketsKey = exports.poolsPkeys = exports.flashPid = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'flash';
6
6
  exports.platform = {
@@ -18,4 +18,5 @@ exports.poolsPkeys = [
18
18
  new web3_js_1.PublicKey('D6bfytnxoZBSzJM7fcixg5sgWJ2hj8SbwkPvb2r8XpbH'),
19
19
  ];
20
20
  exports.marketsKey = 'markets';
21
+ exports.poolsKey = 'pools';
21
22
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,YAAY,EAAE,sCAAsC;IACjE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,iCAAiC;CAC3C,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,UAAU,GAAG;IACxB,IAAI,mBAAS,CAAC,8CAA8C,CAAC;IAC7D,IAAI,mBAAS,CAAC,6CAA6C,CAAC;IAC5D,IAAI,mBAAS,CAAC,8CAA8C,CAAC;CAC9D,CAAC;AAEW,QAAA,UAAU,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,YAAY,EAAE,sCAAsC;IACjE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,iCAAiC;CAC3C,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,UAAU,GAAG;IACxB,IAAI,mBAAS,CAAC,8CAA8C,CAAC;IAC7D,IAAI,mBAAS,CAAC,6CAA6C,CAAC;IAC5D,IAAI,mBAAS,CAAC,8CAA8C,CAAC;CAC9D,CAAC;AAEW,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAG,OAAO,CAAC"}
@@ -17,6 +17,7 @@ const structs_1 = require("./structs");
17
17
  const fetchTokenSupplyAndDecimals_1 = require("../../utils/solana/fetchTokenSupplyAndDecimals");
18
18
  const solana_1 = require("../../utils/solana");
19
19
  const constants_2 = require("../tokens/constants");
20
+ const constants_3 = require("../jupiter/exchange/constants");
20
21
  const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
21
22
  const client = (0, clients_1.getClientSolana)();
22
23
  const pools = yield (0, getMultipleAccountsInfoSafe_1.getMultipleAccountsInfoSafe)(client, constants_1.poolsPkeys);
@@ -27,8 +28,24 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
27
28
  structs_1.pool2Struct.deserialize(pools[1].data)[0],
28
29
  structs_1.pool3Struct.deserialize(pools[2].data)[0],
29
30
  ];
31
+ const custodiesInfo = yield cache.getItem(constants_3.custodiesKey, {
32
+ prefix: constants_1.platformId,
33
+ networkId: portfolio_core_1.NetworkId.solana,
34
+ });
35
+ if (!custodiesInfo)
36
+ return;
37
+ const custodiesByPool = new Map();
38
+ custodiesInfo.forEach((custody) => custodiesByPool.set(custody.pubkey, custody));
39
+ const poolsInfo = [];
30
40
  for (let i = 0; i < poolsAccounts.length; i++) {
31
41
  const pool = poolsAccounts[i];
42
+ const { custodies } = pool;
43
+ let rewardPerLp;
44
+ custodies.forEach((custodyPkey) => {
45
+ const custody = custodiesByPool.get(custodyPkey.toString());
46
+ if ((custody === null || custody === void 0 ? void 0 : custody.mint) === solana_1.usdcSolanaMint)
47
+ rewardPerLp = Number(custody.feesStats.rewardPerLpStaked);
48
+ });
32
49
  const supAndDecimals = yield (0, fetchTokenSupplyAndDecimals_1.fetchTokenSupplyAndDecimals)(pool.flpMint, client);
33
50
  const mint = pool.flpMint.toString();
34
51
  if (!supAndDecimals)
@@ -38,10 +55,6 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
38
55
  .dividedBy(Math.pow(10, decimals))
39
56
  .dividedBy(supply)
40
57
  .toNumber();
41
- yield cache.setItem(constants_1.poolsPkeys[i].toString(), [pool.flpMint.toString()], {
42
- prefix: constants_1.platformId,
43
- networkId: portfolio_core_1.NetworkId.solana,
44
- });
45
58
  yield cache.setTokenPriceSource({
46
59
  address: mint,
47
60
  decimals,
@@ -53,7 +66,18 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
53
66
  weight: 1,
54
67
  elementName: (0, solana_1.u8ArrayToString)(pool.name),
55
68
  });
69
+ if (!rewardPerLp)
70
+ continue;
71
+ poolsInfo.push({
72
+ flpMint: pool.flpMint.toString(),
73
+ pkey: constants_1.poolsPkeys[i].toString(),
74
+ rewardPerLp,
75
+ });
56
76
  }
77
+ yield cache.setItem(constants_1.poolsKey, poolsInfo, {
78
+ prefix: constants_1.platformId,
79
+ networkId: portfolio_core_1.NetworkId.solana,
80
+ });
57
81
  });
58
82
  const job = {
59
83
  id: `${constants_1.platformId}-pools`,
@@ -1 +1 @@
1
- {"version":3,"file":"poolJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/poolJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,iDAAsD;AACtD,gGAA6F;AAC7F,2CAAqD;AACrD,uCAAkE;AAClE,gGAA6F;AAC7F,+CAAqD;AACrD,mDAA2D;AAE3D,MAAM,QAAQ,GAAgB,CAAO,KAAY,EA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,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -19,42 +19,66 @@ const solana_1 = require("../../utils/solana");
19
19
  const structs_1 = require("./structs");
20
20
  const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
21
21
  const helpers_1 = require("./helpers");
22
+ const constants_2 = require("../jupiter/exchange/constants");
22
23
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
23
24
  const client = (0, clients_1.getClientSolana)();
24
25
  const stakeAccounts = yield (0, solana_1.getParsedMultipleAccountsInfo)(client, structs_1.flpStakeStruct, (0, helpers_1.getPdas)(owner));
25
26
  if (!stakeAccounts.some((account) => account !== null))
26
27
  return [];
27
- const pools = stakeAccounts.map((stakeAccount) => stakeAccount ? stakeAccount.pool.toString() : '');
28
- const flpMints = yield cache.getItems(pools, {
28
+ const poolsInfo = yield cache.getItem(constants_1.poolsKey, {
29
29
  prefix: constants_1.platformId,
30
30
  networkId: portfolio_core_1.NetworkId.solana,
31
31
  });
32
- if (!flpMints)
32
+ if (!poolsInfo)
33
33
  return [];
34
- const flpMintById = new Map();
35
- for (let i = 0; i < flpMints.length; i++) {
36
- const flpMint = flpMints[i];
37
- const stakeAccount = stakeAccounts[i];
38
- if (flpMint && stakeAccount)
39
- flpMintById.set(stakeAccount.pubkey.toString(), flpMint[0]);
40
- }
41
- const tokenPrices = yield cache.getTokenPrices([...Array.from(flpMintById.values()), solana_1.usdcSolanaMint], portfolio_core_1.NetworkId.solana);
42
- const usdcTokenPrice = tokenPrices[tokenPrices.length - 1];
34
+ const custodiesInfo = yield cache.getItem(constants_2.custodiesKey, {
35
+ prefix: constants_1.platformId,
36
+ networkId: portfolio_core_1.NetworkId.solana,
37
+ });
38
+ if (!custodiesInfo)
39
+ return [];
40
+ const custodiesByPool = new Map();
41
+ custodiesInfo.forEach((custody) => custodiesByPool.set(custody.pool, custody));
42
+ const poolInfoById = new Map();
43
+ poolsInfo.map((pool) => poolInfoById.set(pool.pkey, pool));
44
+ const tokenPriceById = yield cache.getTokenPricesAsMap([...poolsInfo.map((info) => info.flpMint), solana_1.usdcSolanaMint], portfolio_core_1.NetworkId.solana);
45
+ const usdcTokenPrice = tokenPriceById.get(solana_1.usdcSolanaMint);
43
46
  const elements = [];
44
47
  for (let j = 0; j < stakeAccounts.length; j++) {
45
48
  const assets = [];
46
49
  const stakeAccount = stakeAccounts[j];
47
50
  if (!stakeAccount)
48
51
  continue;
49
- const flpTokenPrice = tokenPrices[j];
50
- if (!stakeAccount.stakeStats.activeAmount.isZero() && flpTokenPrice) {
51
- const amount = stakeAccount.stakeStats.activeAmount
52
- .plus(stakeAccount.stakeStats.pendingActivation)
53
- .dividedBy(Math.pow(10, flpTokenPrice.decimals));
52
+ const poolInfo = poolInfoById.get(stakeAccount.pool.toString());
53
+ if (!poolInfo)
54
+ continue;
55
+ const flpTokenPrice = tokenPriceById.get(poolInfo.flpMint);
56
+ if (!flpTokenPrice)
57
+ continue;
58
+ const flpFacotr = Math.pow(10, flpTokenPrice.decimals);
59
+ if (!stakeAccount.stakeStats.activeAmount.isZero()) {
60
+ const amount = stakeAccount.stakeStats.activeAmount.dividedBy(flpFacotr);
54
61
  assets.push((0, tokenPriceToAssetToken_1.default)(flpTokenPrice.address, amount.toNumber(), portfolio_core_1.NetworkId.solana, flpTokenPrice));
55
62
  }
63
+ if (!stakeAccount.stakeStats.pendingActivation.isZero()) {
64
+ const amount = stakeAccount.stakeStats.pendingActivation.dividedBy(flpFacotr);
65
+ assets.push((0, tokenPriceToAssetToken_1.default)(flpTokenPrice.address, amount.toNumber(), portfolio_core_1.NetworkId.solana, flpTokenPrice, undefined, {
66
+ tags: ['Activation Pending'],
67
+ }));
68
+ }
69
+ if (!stakeAccount.stakeStats.pendingDeactivation.isZero()) {
70
+ const amount = stakeAccount.stakeStats.pendingDeactivation.dividedBy(flpFacotr);
71
+ assets.push((0, tokenPriceToAssetToken_1.default)(flpTokenPrice.address, amount.toNumber(), portfolio_core_1.NetworkId.solana, flpTokenPrice, undefined, {
72
+ tags: ['Deactivation Pending'],
73
+ }));
74
+ }
56
75
  if (!stakeAccount.unclaimedRewards.isZero()) {
57
- const unclaimedAmount = stakeAccount.unclaimedRewards
76
+ const watermark = stakeAccount.stakeStats.activeAmount
77
+ .multipliedBy(poolInfo.rewardPerLp)
78
+ .dividedBy(flpFacotr);
79
+ const unclaimedAmount = watermark
80
+ .minus(stakeAccount.rewardSnapshot)
81
+ .plus(stakeAccount.unclaimedRewards)
58
82
  .times(stakeAccount.feeShareBps)
59
83
  .dividedBy(Math.pow(10, 10));
60
84
  assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(solana_1.usdcSolanaMint, unclaimedAmount.toNumber(), portfolio_core_1.NetworkId.solana, usdcTokenPrice)), { attributes: { isClaimable: true } }));
@@ -1 +1 @@
1
- {"version":3,"file":"stakeFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/stakeFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,2CAAyC;AACzC,iDAAsD;AACtD,+CAG4B;AAC5B,uCAA2C;AAC3C,qGAA6E;AAC7E,uCAAoC;AAEpC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,aAAa,GAAG,MAAM,IAAA,sCAA6B,EACvD,MAAM,EACN,wBAAc,EACd,IAAA,iBAAO,EAAC,KAAK,CAAC,CACf,CAAC;IACF,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,KAAK,IAAI,CAAC;QAAE,OAAO,EAAE,CAAC;IAElE,MAAM,KAAK,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY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okenAccountBump: string;
100
100
  };
101
+ export type PoolInfo = {
102
+ pkey: string;
103
+ flpMint: string;
104
+ rewardPerLp: number;
105
+ };
101
106
  export {};
@@ -1,6 +1,6 @@
1
1
  import { PublicKey } from '@solana/web3.js';
2
2
  import { Platform } from '@sonarwatch/portfolio-core';
3
3
  export declare const platformId = "flexlend";
4
- export declare const flexlendPlatform: Platform;
4
+ export declare const platform: Platform;
5
5
  export declare const flexProgramId: PublicKey;
6
6
  export declare const AUTOMATION_PUBLIC_KEY: PublicKey;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AUTOMATION_PUBLIC_KEY = exports.flexProgramId = exports.flexlendPlatform = exports.platformId = void 0;
3
+ exports.AUTOMATION_PUBLIC_KEY = exports.flexProgramId = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'flexlend';
6
- exports.flexlendPlatform = {
6
+ exports.platform = {
7
7
  id: exports.platformId,
8
8
  name: 'FlexLend',
9
9
  image: 'https://sonar.watch/img/platforms/flexlend.png',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flexlend/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,gBAAgB,GAAa;IACxC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,gDAAgD;IACvD,WAAW,EAAE,UAAU;IACvB,OAAO,EAAE,sBAAsB;IAC/B,OAAO,EAAE,8BAA8B;CACxC,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,qBAAqB,GAAG,IAAI,mBAAS,CAChD,8CAA8C,CAC/C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flexlend/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,gDAAgD;IACvD,WAAW,EAAE,UAAU;IACvB,OAAO,EAAE,sBAAsB;IAC/B,OAAO,EAAE,8BAA8B;CACxC,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,qBAAqB,GAAG,IAAI,mBAAS,CAChD,8CAA8C,CAC/C,CAAC"}
@@ -95,7 +95,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
95
95
  }
96
96
  if (marginfiAccount) {
97
97
  const banksInfo = yield cache.getItem(constants_4.banksKey, {
98
- prefix: constants_4.marginfiPlatform.id,
98
+ prefix: constants_4.platform.id,
99
99
  networkId: portfolio_core_1.NetworkId.solana,
100
100
  });
101
101
  if (banksInfo) {
@@ -1 +1 @@
1
- {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flexlend/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAyE;AACzE,6CAAyD;AAGzD,2CAAyC;AACzC,uCAA8C;AAC9C,iEAAqD;AACrD,0EAA8D;AAC9D,mFAA6D;AAC7D,mDAA2D;AAC3D,kFAA+E;AAC/E,iDAAsD;AACtD,qCAA6C;AAC7C,+CAAqD;AACrD,mDAAgF;AAEhF,gGAA6F;AAC7F,+CAA+D;AAC/D,yEAA4E;AAG5E,qDAAmE;AACnE,iDAA4D;AAE5D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,GAAG,GAAG,IAAA,2BAAiB,EAAC,KAAK,CAAC,CAAC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AE,CAAC,CAAC;YAChD,CAAC,CAAC,CAAC;YAEH,MAAM,cAAc,GAAG,MAAM,KAAK,CAAC,mBAAmB,CACpD,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,EAC3B,0BAAS,CAAC,MAAM,CACjB,CAAC;YAEF,MAAM,OAAO,GAAG,IAAA,+BAAqB,EACnC,eAAe,EACf,kBAAkB,EAClB,cAAc,CACf,CAAC;YACF,IAAI,OAAO;gBAAE,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,CAAC;IACH,CAAC;IAED,IAAI,iBAAiB,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAE9C,MAAM,QAAQ,GAAuB,EAAE,CAAC;IACxC,KAAK,MAAM,OAAO,IAAI,iBAAiB,EAAE,CAAC;QACxC,MAAM,UAAU,GAAG,OAAO,CAAC;QAC3B,UAAU,CAAC,IAAI;YACb,UAAU,CAAC,UAAU,KAAK,gCAAoB,CAAC,EAAE;gBAC/C,CAAC,CAAC,gBAAgB;gBAClB,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE;oBAC/C,UAAU,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACrC,UAAU,CAAC,UAAU,GAAG,sBAAU,CAAC;QACnC,QAAQ,CAAC,IAAI,mBACR,UAAU,EACb,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flexlend/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA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CAAC,CAAC,CAAC;QACrC,UAAU,CAAC,UAAU,GAAG,sBAAU,CAAC;QACnC,QAAQ,CAAC,IAAI,mBACR,UAAU,EACb,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -7,7 +7,7 @@ exports.fetchers = exports.jobs = exports.platforms = void 0;
7
7
  const depositsFetcher_1 = __importDefault(require("./depositsFetcher"));
8
8
  const liftFetcher_1 = __importDefault(require("./liftFetcher"));
9
9
  const constants_1 = require("./constants");
10
- exports.platforms = [constants_1.flexlendPlatform];
10
+ exports.platforms = [constants_1.platform];
11
11
  exports.jobs = [];
12
12
  exports.fetchers = [depositsFetcher_1.default, liftFetcher_1.default];
13
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flexlend/index.ts"],"names":[],"mappings":";;;;;;AAGA,wEAAgD;AAChD,gEAAwC;AACxC,2CAA+C;AAElC,QAAA,SAAS,GAAe,CAAC,4BAAgB,CAAC,CAAC;AAC3C,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,yBAAe,EAAE,qBAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flexlend/index.ts"],"names":[],"mappings":";;;;;;AAGA,wEAAgD;AAChD,gEAAwC;AACxC,2CAAuC;AAE1B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,yBAAe,EAAE,qBAAW,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { PublicKey } from '@solana/web3.js';
2
2
  import { Platform } from '@sonarwatch/portfolio-core';
3
3
  export declare const platformId = "goosefx";
4
- export declare const gooseFxPlatform: Platform;
4
+ export declare const platform: Platform;
5
5
  export declare const programId: PublicKey;
6
6
  export declare const stakerProgramId: PublicKey;
7
7
  export declare const gofxMint = "GFX1ZjR2P15tmrSwow6FjyDYcEkoFb4p4gJCpLBjaxHD";
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.gofxMint = exports.stakerProgramId = exports.programId = exports.gooseFxPlatform = exports.platformId = void 0;
3
+ exports.gofxMint = exports.stakerProgramId = exports.programId = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'goosefx';
6
- exports.gooseFxPlatform = {
6
+ exports.platform = {
7
7
  id: exports.platformId,
8
8
  name: 'GooseFX',
9
9
  image: 'https://sonar.watch/img/platforms/goosefx.png',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/goosefx/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,SAAS,EAAE,sCAAsC;IAC9D,OAAO,EAAE,6BAA6B;IACtC,6CAA6C;CAC9C,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,QAAQ,GAAG,8CAA8C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/goosefx/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,SAAS,EAAE,sCAAsC;IAC9D,OAAO,EAAE,6BAA6B;IACtC,6CAA6C;CAC9C,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,QAAQ,GAAG,8CAA8C,CAAC"}
@@ -7,7 +7,7 @@ exports.fetchers = exports.jobs = exports.platforms = void 0;
7
7
  const constants_1 = require("./constants");
8
8
  const poolsFetcher_1 = __importDefault(require("./poolsFetcher"));
9
9
  const stakingFetcher_1 = __importDefault(require("./stakingFetcher"));
10
- exports.platforms = [constants_1.gooseFxPlatform];
10
+ exports.platforms = [constants_1.platform];
11
11
  exports.jobs = [];
12
12
  exports.fetchers = [poolsFetcher_1.default, stakingFetcher_1.default];
13
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/goosefx/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAA8C;AAC9C,kEAA8C;AAC9C,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,2BAAe,CAAC,CAAC;AAC1C,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,sBAAgB,EAAE,wBAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/goosefx/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,kEAA8C;AAC9C,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,sBAAgB,EAAE,wBAAc,CAAC,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { Platform } from '@sonarwatch/portfolio-core';
2
2
  export declare const platformId = "hawksight";
3
- export declare const hawksightPlatform: Platform;
3
+ export declare const platform: Platform;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.hawksightPlatform = exports.platformId = void 0;
3
+ exports.platform = exports.platformId = void 0;
4
4
  exports.platformId = 'hawksight';
5
- exports.hawksightPlatform = {
5
+ exports.platform = {
6
6
  id: exports.platformId,
7
7
  name: 'Hawksight',
8
8
  image: 'https://sonar.watch/img/platforms/hawksight.png',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/hawksight/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,WAAW,CAAC;AAEzB,QAAA,iBAAiB,GAAa;IACzC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,iDAAiD;IACxD,WAAW,EAAE,WAAW;IACxB,OAAO,EAAE,uBAAuB;CACjC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/hawksight/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,iDAAiD;IACxD,WAAW,EAAE,WAAW;IACxB,OAAO,EAAE,uBAAuB;CACjC,CAAC"}
@@ -8,5 +8,5 @@ const positionsFetcher_1 = __importDefault(require("./positionsFetcher"));
8
8
  const constants_1 = require("./constants");
9
9
  exports.jobs = [];
10
10
  exports.fetchers = [positionsFetcher_1.default];
11
- exports.platforms = [constants_1.hawksightPlatform];
11
+ exports.platforms = [constants_1.platform];
12
12
  //# sourceMappingURL=index.js.map