@sonarwatch/portfolio-plugins 0.12.170 → 0.12.172

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/src/Cache.d.ts +2 -1
  4. package/src/Cache.js +3 -3
  5. package/src/Cache.js.map +1 -1
  6. package/src/TokenPriceMap.d.ts +8 -0
  7. package/src/TokenPriceMap.js +21 -0
  8. package/src/TokenPriceMap.js.map +1 -0
  9. package/src/index.js +16 -0
  10. package/src/index.js.map +1 -1
  11. package/src/plugins/adrastea/constants.d.ts +9 -0
  12. package/src/plugins/adrastea/constants.js +19 -0
  13. package/src/plugins/adrastea/constants.js.map +1 -0
  14. package/src/plugins/adrastea/index.d.ts +6 -0
  15. package/src/plugins/adrastea/index.js +13 -0
  16. package/src/plugins/adrastea/index.js.map +1 -0
  17. package/src/plugins/adrastea/positionsFetcher.js +61 -0
  18. package/src/plugins/adrastea/positionsFetcher.js.map +1 -0
  19. package/src/plugins/adrastea/positionsJob.d.ts +3 -0
  20. package/src/plugins/adrastea/positionsJob.js +53 -0
  21. package/src/plugins/adrastea/positionsJob.js.map +1 -0
  22. package/src/plugins/adrastea/structs.d.ts +45 -0
  23. package/src/plugins/adrastea/structs.js +44 -0
  24. package/src/plugins/adrastea/structs.js.map +1 -0
  25. package/src/plugins/adrastea/types.d.ts +4 -0
  26. package/src/plugins/adrastea/types.js +3 -0
  27. package/src/plugins/adrastea/types.js.map +1 -0
  28. package/src/plugins/banx/stakingFetcher.js +11 -15
  29. package/src/plugins/banx/stakingFetcher.js.map +1 -1
  30. package/src/plugins/bluemove/constants.d.ts +7 -0
  31. package/src/plugins/bluemove/constants.js +17 -0
  32. package/src/plugins/bluemove/constants.js.map +1 -0
  33. package/src/plugins/bluemove/index.d.ts +6 -0
  34. package/src/plugins/bluemove/index.js +12 -0
  35. package/src/plugins/bluemove/index.js.map +1 -0
  36. package/src/plugins/bluemove/poolsJob.d.ts +3 -0
  37. package/src/plugins/bluemove/poolsJob.js +97 -0
  38. package/src/plugins/bluemove/poolsJob.js.map +1 -0
  39. package/src/plugins/bluemove/types.d.ts +21 -0
  40. package/src/plugins/bluemove/types.js +3 -0
  41. package/src/plugins/bluemove/types.js.map +1 -0
  42. package/src/plugins/cetus/clmmsFetcher.js +3 -3
  43. package/src/plugins/cetus/clmmsFetcher.js.map +1 -1
  44. package/src/plugins/cetus/constants.d.ts +4 -0
  45. package/src/plugins/cetus/constants.js +5 -1
  46. package/src/plugins/cetus/constants.js.map +1 -1
  47. package/src/plugins/cetus/dcaFetcher.js +77 -0
  48. package/src/plugins/cetus/dcaFetcher.js.map +1 -0
  49. package/src/plugins/cetus/farmsFetcher.js +2 -4
  50. package/src/plugins/cetus/farmsFetcher.js.map +1 -1
  51. package/src/plugins/cetus/index.js +8 -1
  52. package/src/plugins/cetus/index.js.map +1 -1
  53. package/src/plugins/cetus/limitFetcher.d.ts +3 -0
  54. package/src/plugins/cetus/limitFetcher.js +66 -0
  55. package/src/plugins/cetus/limitFetcher.js.map +1 -0
  56. package/src/plugins/cetus/types.d.ts +32 -0
  57. package/src/plugins/deepbook/constants.d.ts +3 -0
  58. package/src/plugins/deepbook/constants.js +4 -1
  59. package/src/plugins/deepbook/constants.js.map +1 -1
  60. package/src/plugins/deepbook/helpers.d.ts +4 -0
  61. package/src/plugins/deepbook/helpers.js +142 -0
  62. package/src/plugins/deepbook/helpers.js.map +1 -0
  63. package/src/plugins/deepbook/index.js +7 -2
  64. package/src/plugins/deepbook/index.js.map +1 -1
  65. package/src/plugins/deepbook/ordersFetcher.d.ts +3 -0
  66. package/src/plugins/deepbook/ordersFetcher.js +74 -0
  67. package/src/plugins/deepbook/ordersFetcher.js.map +1 -0
  68. package/src/plugins/deepbook/poolsJob.d.ts +3 -0
  69. package/src/plugins/deepbook/poolsJob.js +30 -0
  70. package/src/plugins/deepbook/poolsJob.js.map +1 -0
  71. package/src/plugins/deepbook/types.d.ts +12 -0
  72. package/src/plugins/deepbook/types.js +3 -0
  73. package/src/plugins/deepbook/types.js.map +1 -0
  74. package/src/plugins/flowx/stakingPoolFetcher.js +1 -1
  75. package/src/plugins/flowx/stakingPoolFetcher.js.map +1 -1
  76. package/src/plugins/flowx/stakingPoolV3Fetcher.js +1 -1
  77. package/src/plugins/flowx/stakingPoolV3Fetcher.js.map +1 -1
  78. package/src/plugins/foo/constants.d.ts +1 -1
  79. package/src/plugins/foo/constants.js +2 -2
  80. package/src/plugins/foo/constants.js.map +1 -1
  81. package/src/plugins/foo/index.js +2 -2
  82. package/src/plugins/foo/index.js.map +1 -1
  83. package/src/plugins/foo/marketsJob.js +3 -3
  84. package/src/plugins/foo/marketsJob.js.map +1 -1
  85. package/src/plugins/foo/positionsEthereumFetcher.d.ts +3 -0
  86. package/src/plugins/foo/positionsEthereumFetcher.js +33 -0
  87. package/src/plugins/foo/positionsEthereumFetcher.js.map +1 -0
  88. package/src/plugins/foo/positionsSolanaFetcher.js +10 -26
  89. package/src/plugins/foo/positionsSolanaFetcher.js.map +1 -1
  90. package/src/plugins/foo/positionsSuiFetcher.d.ts +3 -0
  91. package/src/plugins/foo/positionsSuiFetcher.js +46 -0
  92. package/src/plugins/foo/positionsSuiFetcher.js.map +1 -0
  93. package/src/plugins/foo/types.d.ts +5 -0
  94. package/src/plugins/foo/types.js +3 -0
  95. package/src/plugins/foo/types.js.map +1 -0
  96. package/src/plugins/francium/constants.d.ts +19 -0
  97. package/src/plugins/francium/constants.js +839 -0
  98. package/src/plugins/francium/constants.js.map +1 -0
  99. package/src/plugins/francium/helpers.d.ts +14 -0
  100. package/src/plugins/francium/helpers.js +85 -0
  101. package/src/plugins/francium/helpers.js.map +1 -0
  102. package/src/plugins/francium/index.d.ts +6 -0
  103. package/src/plugins/francium/index.js +13 -0
  104. package/src/plugins/francium/index.js.map +1 -0
  105. package/src/plugins/francium/lendingFetcher.d.ts +3 -0
  106. package/src/plugins/francium/lendingFetcher.js +70 -0
  107. package/src/plugins/francium/lendingFetcher.js.map +1 -0
  108. package/src/plugins/francium/lendingPoolJob.d.ts +3 -0
  109. package/src/plugins/francium/lendingPoolJob.js +49 -0
  110. package/src/plugins/francium/lendingPoolJob.js.map +1 -0
  111. package/src/plugins/francium/structs.d.ts +59 -0
  112. package/src/plugins/francium/structs.js +49 -0
  113. package/src/plugins/francium/structs.js.map +1 -0
  114. package/src/plugins/francium/tokens.d.ts +9 -0
  115. package/src/plugins/francium/tokens.js +524 -0
  116. package/src/plugins/francium/tokens.js.map +1 -0
  117. package/src/plugins/francium/types.d.ts +16 -0
  118. package/src/plugins/francium/types.js +3 -0
  119. package/src/plugins/francium/types.js.map +1 -0
  120. package/src/plugins/kamino/constants.js +4 -0
  121. package/src/plugins/kamino/constants.js.map +1 -1
  122. package/src/plugins/kamino/lendsFetcher.js +64 -167
  123. package/src/plugins/kamino/lendsFetcher.js.map +1 -1
  124. package/src/plugins/kriya/farmsFetcher.js +23 -48
  125. package/src/plugins/kriya/farmsFetcher.js.map +1 -1
  126. package/src/plugins/kriya/leverageVaultsFetcher.js +5 -5
  127. package/src/plugins/kriya/leverageVaultsFetcher.js.map +1 -1
  128. package/src/plugins/meteora/farmsFetcher.js +19 -68
  129. package/src/plugins/meteora/farmsFetcher.js.map +1 -1
  130. package/src/plugins/nxfinance/positionsFetcher.js +32 -80
  131. package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
  132. package/src/plugins/quarry/positionsFetcher.js +1 -1
  133. package/src/plugins/quarry/positionsFetcher.js.map +1 -1
  134. package/src/plugins/raydium/farmsFetcher.js +30 -74
  135. package/src/plugins/raydium/farmsFetcher.js.map +1 -1
  136. package/src/plugins/raydium/helpers.d.ts +3 -2
  137. package/src/plugins/raydium/helpers.js +5 -7
  138. package/src/plugins/raydium/helpers.js.map +1 -1
  139. package/src/plugins/raydium/index.js +1 -2
  140. package/src/plugins/raydium/index.js.map +1 -1
  141. package/src/plugins/raydium/lpTokensJob.js +1 -1
  142. package/src/plugins/raydium/lpTokensJob.js.map +1 -1
  143. package/src/plugins/stabble/constants.d.ts +8 -0
  144. package/src/plugins/stabble/constants.js +27 -0
  145. package/src/plugins/stabble/constants.js.map +1 -0
  146. package/src/plugins/stabble/filters.d.ts +3 -0
  147. package/src/plugins/stabble/filters.js +20 -0
  148. package/src/plugins/stabble/filters.js.map +1 -0
  149. package/src/plugins/stabble/index.d.ts +6 -0
  150. package/src/plugins/stabble/index.js +12 -0
  151. package/src/plugins/stabble/index.js.map +1 -0
  152. package/src/plugins/stabble/poolsJob.d.ts +3 -0
  153. package/src/plugins/stabble/poolsJob.js +84 -0
  154. package/src/plugins/stabble/poolsJob.js.map +1 -0
  155. package/src/plugins/stabble/stableIdl.d.ts +40 -0
  156. package/src/plugins/stabble/stableIdl.js +104 -0
  157. package/src/plugins/stabble/stableIdl.js.map +1 -0
  158. package/src/plugins/stabble/types.d.ts +40 -0
  159. package/src/plugins/stabble/types.js +3 -0
  160. package/src/plugins/stabble/types.js.map +1 -0
  161. package/src/plugins/stabble/weightedIdl.d.ts +40 -0
  162. package/src/plugins/stabble/weightedIdl.js +96 -0
  163. package/src/plugins/stabble/weightedIdl.js.map +1 -0
  164. package/src/utils/bitcoin/getBalance.js +1 -0
  165. package/src/utils/bitcoin/getBalance.js.map +1 -1
  166. package/src/utils/elementbuilder/AssetBuilder.d.ts +11 -0
  167. package/src/utils/elementbuilder/AssetBuilder.js +28 -0
  168. package/src/utils/elementbuilder/AssetBuilder.js.map +1 -0
  169. package/src/utils/elementbuilder/ElementBorrowlendBuilder.d.ts +27 -0
  170. package/src/utils/elementbuilder/ElementBorrowlendBuilder.js +110 -0
  171. package/src/utils/elementbuilder/ElementBorrowlendBuilder.js.map +1 -0
  172. package/src/utils/elementbuilder/ElementBuilder.d.ts +12 -0
  173. package/src/utils/elementbuilder/ElementBuilder.js +13 -0
  174. package/src/utils/elementbuilder/ElementBuilder.js.map +1 -0
  175. package/src/utils/elementbuilder/ElementLiquidityBuilder.d.ts +12 -0
  176. package/src/utils/elementbuilder/ElementLiquidityBuilder.js +42 -0
  177. package/src/utils/elementbuilder/ElementLiquidityBuilder.js.map +1 -0
  178. package/src/utils/elementbuilder/ElementMultipleBuilder.d.ts +13 -0
  179. package/src/utils/elementbuilder/ElementMultipleBuilder.js +40 -0
  180. package/src/utils/elementbuilder/ElementMultipleBuilder.js.map +1 -0
  181. package/src/utils/elementbuilder/ElementParams.d.ts +7 -0
  182. package/src/utils/elementbuilder/ElementParams.js +3 -0
  183. package/src/utils/elementbuilder/ElementParams.js.map +1 -0
  184. package/src/utils/elementbuilder/ElementRegistry.d.ts +17 -0
  185. package/src/utils/elementbuilder/ElementRegistry.js +49 -0
  186. package/src/utils/elementbuilder/ElementRegistry.js.map +1 -0
  187. package/src/utils/elementbuilder/LiquidityBuilder.d.ts +15 -0
  188. package/src/utils/elementbuilder/LiquidityBuilder.js +52 -0
  189. package/src/utils/elementbuilder/LiquidityBuilder.js.map +1 -0
  190. package/src/utils/elementbuilder/PortfolioAssetParams.d.ts +7 -0
  191. package/src/utils/elementbuilder/PortfolioAssetParams.js +3 -0
  192. package/src/utils/elementbuilder/PortfolioAssetParams.js.map +1 -0
  193. package/src/plugins/foo/positionsFetcher.js +0 -49
  194. package/src/plugins/foo/positionsFetcher.js.map +0 -1
  195. package/src/plugins/raydium/stakingFetcher.js +0 -50
  196. package/src/plugins/raydium/stakingFetcher.js.map +0 -1
  197. /package/src/plugins/{foo → adrastea}/positionsFetcher.d.ts +0 -0
  198. /package/src/plugins/{raydium/stakingFetcher.d.ts → cetus/dcaFetcher.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"positionsSuiFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/foo/positionsSuiFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAyE;AAEzE,2CAAyC;AAEzC,iDAAmD;AACnD,gFAA6E;AAC7E,qEAAkE;AAGlE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAe,EAAU,MAAM,EAAE,KAAK,EAAE;QAC7D,MAAM,EAAE;YACN,UAAU,EACR,kFAAkF;SACrF;KACF,CAAC,CAAC;IAEH,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,GAAG,EAAE,sBAAU,CAAC,CAAC;IACvE,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,SAAS;KACjB,CAAC,CAAC;IAEH,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;;QACrB,IAAI,MAAA,MAAA,CAAC,CAAC,IAAI,0CAAE,OAAO,0CAAE,MAAM,CAAC,eAAe;YACzC,OAAO,CAAC,QAAQ,CAAC;gBACf,OAAO,EAAE,iCAAgB;gBACzB,MAAM,EAAE,MAAA,MAAA,CAAC,CAAC,IAAI,0CAAE,OAAO,0CAAE,MAAM,CAAC,eAAe;aAChD,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,gBAAgB;IACjC,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { ID } from '../../utils/sui/structs/id';
2
+ export type Receipt = {
3
+ id: ID;
4
+ amountDeposited: string;
5
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/foo/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { PublicKey } from '@solana/web3.js';
3
+ import { LendInfoItem } from './types';
4
+ import { LendRewardInfo } from './structs';
5
+ export declare const platformId = "francium";
6
+ export declare const platform: Platform;
7
+ export declare const lendingPoolsCacheKey = "lending_pools";
8
+ export declare const lendProgramId: PublicKey;
9
+ export declare const lendingPools: {
10
+ [x: string]: LendInfoItem;
11
+ };
12
+ export declare const lendingPoolList: {
13
+ pool: string;
14
+ scale: number;
15
+ }[];
16
+ export declare const lendRewardProgramId: PublicKey;
17
+ export declare const lendRewardInfo: {
18
+ [x: string]: LendRewardInfo;
19
+ };