@sonarwatch/portfolio-plugins 0.12.169 → 0.12.171

Sign up to get free protection for your applications and to get access to all the features.
Files changed (200) 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/lendsFetcher.js +64 -167
  121. package/src/plugins/kamino/lendsFetcher.js.map +1 -1
  122. package/src/plugins/kriya/farmsFetcher.js +23 -48
  123. package/src/plugins/kriya/farmsFetcher.js.map +1 -1
  124. package/src/plugins/kriya/leverageVaultsFetcher.js +5 -5
  125. package/src/plugins/kriya/leverageVaultsFetcher.js.map +1 -1
  126. package/src/plugins/meteora/dlmmPositionsFetcher.js +5 -4
  127. package/src/plugins/meteora/dlmmPositionsFetcher.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/getRaydiumCLMMPositions.js +4 -4
  137. package/src/plugins/raydium/getRaydiumCLMMPositions.js.map +1 -1
  138. package/src/plugins/raydium/helpers.d.ts +3 -2
  139. package/src/plugins/raydium/helpers.js +5 -7
  140. package/src/plugins/raydium/helpers.js.map +1 -1
  141. package/src/plugins/raydium/index.js +1 -2
  142. package/src/plugins/raydium/index.js.map +1 -1
  143. package/src/plugins/raydium/lpTokensJob.js +1 -1
  144. package/src/plugins/raydium/lpTokensJob.js.map +1 -1
  145. package/src/plugins/stabble/constants.d.ts +8 -0
  146. package/src/plugins/stabble/constants.js +27 -0
  147. package/src/plugins/stabble/constants.js.map +1 -0
  148. package/src/plugins/stabble/filters.d.ts +3 -0
  149. package/src/plugins/stabble/filters.js +20 -0
  150. package/src/plugins/stabble/filters.js.map +1 -0
  151. package/src/plugins/stabble/index.d.ts +6 -0
  152. package/src/plugins/stabble/index.js +12 -0
  153. package/src/plugins/stabble/index.js.map +1 -0
  154. package/src/plugins/stabble/poolsJob.d.ts +3 -0
  155. package/src/plugins/stabble/poolsJob.js +84 -0
  156. package/src/plugins/stabble/poolsJob.js.map +1 -0
  157. package/src/plugins/stabble/stableIdl.d.ts +40 -0
  158. package/src/plugins/stabble/stableIdl.js +104 -0
  159. package/src/plugins/stabble/stableIdl.js.map +1 -0
  160. package/src/plugins/stabble/types.d.ts +40 -0
  161. package/src/plugins/stabble/types.js +3 -0
  162. package/src/plugins/stabble/types.js.map +1 -0
  163. package/src/plugins/stabble/weightedIdl.d.ts +40 -0
  164. package/src/plugins/stabble/weightedIdl.js +96 -0
  165. package/src/plugins/stabble/weightedIdl.js.map +1 -0
  166. package/src/utils/bitcoin/getBalance.js +1 -0
  167. package/src/utils/bitcoin/getBalance.js.map +1 -1
  168. package/src/utils/elementbuilder/AssetBuilder.d.ts +11 -0
  169. package/src/utils/elementbuilder/AssetBuilder.js +28 -0
  170. package/src/utils/elementbuilder/AssetBuilder.js.map +1 -0
  171. package/src/utils/elementbuilder/ElementBorrowlendBuilder.d.ts +27 -0
  172. package/src/utils/elementbuilder/ElementBorrowlendBuilder.js +110 -0
  173. package/src/utils/elementbuilder/ElementBorrowlendBuilder.js.map +1 -0
  174. package/src/utils/elementbuilder/ElementBuilder.d.ts +12 -0
  175. package/src/utils/elementbuilder/ElementBuilder.js +13 -0
  176. package/src/utils/elementbuilder/ElementBuilder.js.map +1 -0
  177. package/src/utils/elementbuilder/ElementLiquidityBuilder.d.ts +12 -0
  178. package/src/utils/elementbuilder/ElementLiquidityBuilder.js +42 -0
  179. package/src/utils/elementbuilder/ElementLiquidityBuilder.js.map +1 -0
  180. package/src/utils/elementbuilder/ElementMultipleBuilder.d.ts +13 -0
  181. package/src/utils/elementbuilder/ElementMultipleBuilder.js +40 -0
  182. package/src/utils/elementbuilder/ElementMultipleBuilder.js.map +1 -0
  183. package/src/utils/elementbuilder/ElementParams.d.ts +7 -0
  184. package/src/utils/elementbuilder/ElementParams.js +3 -0
  185. package/src/utils/elementbuilder/ElementParams.js.map +1 -0
  186. package/src/utils/elementbuilder/ElementRegistry.d.ts +17 -0
  187. package/src/utils/elementbuilder/ElementRegistry.js +49 -0
  188. package/src/utils/elementbuilder/ElementRegistry.js.map +1 -0
  189. package/src/utils/elementbuilder/LiquidityBuilder.d.ts +15 -0
  190. package/src/utils/elementbuilder/LiquidityBuilder.js +52 -0
  191. package/src/utils/elementbuilder/LiquidityBuilder.js.map +1 -0
  192. package/src/utils/elementbuilder/PortfolioAssetParams.d.ts +7 -0
  193. package/src/utils/elementbuilder/PortfolioAssetParams.js +3 -0
  194. package/src/utils/elementbuilder/PortfolioAssetParams.js.map +1 -0
  195. package/src/plugins/foo/positionsFetcher.js +0 -49
  196. package/src/plugins/foo/positionsFetcher.js.map +0 -1
  197. package/src/plugins/raydium/stakingFetcher.js +0 -50
  198. package/src/plugins/raydium/stakingFetcher.js.map +0 -1
  199. /package/src/plugins/{foo → adrastea}/positionsFetcher.d.ts +0 -0
  200. /package/src/plugins/{raydium/stakingFetcher.d.ts → cetus/dcaFetcher.d.ts} +0 -0
@@ -3,7 +3,7 @@ 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.getFeesAndRewardsBalance = exports.getTickArrayAddress = exports.getPendingAssetToken = exports.getFarmYield = exports.getStakePubKey = exports.getRaydiumTokenAmountsFromLiquidity = exports.raydiumTickToPriceX64 = exports.isARaydiumPosition = void 0;
6
+ exports.getFeesAndRewardsBalance = exports.getTickArrayAddress = exports.getPendingAssetParams = exports.getFarmYield = exports.getStakePubKey = exports.getRaydiumTokenAmountsFromLiquidity = exports.raydiumTickToPriceX64 = exports.isARaydiumPosition = void 0;
7
7
  /* eslint-disable eqeqeq */
8
8
  /* eslint-disable @typescript-eslint/naming-convention */
9
9
  /* eslint-disable no-underscore-dangle */
@@ -14,7 +14,6 @@ const bn_js_1 = __importDefault(require("bn.js"));
14
14
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
15
15
  const web3_js_1 = require("@solana/web3.js");
16
16
  const constants_1 = require("./constants");
17
- const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
18
17
  const toBN_1 = require("../../utils/misc/toBN");
19
18
  function isARaydiumPosition(nft) {
20
19
  return nft.name === constants_1.positionsIdentifier;
@@ -195,16 +194,15 @@ function getFarmYield(rewardToken, rewardPerBlock, tvl, slotsPerSec = 2) {
195
194
  };
196
195
  }
197
196
  exports.getFarmYield = getFarmYield;
198
- function getPendingAssetToken(depositBalance, rewardDebt, perShare, rewardToken, multiplier) {
197
+ function getPendingAssetParams(depositBalance, rewardDebt, perShare, rewardToken, multiplier) {
199
198
  const amount = depositBalance
200
199
  .times(perShare)
201
200
  .div(multiplier)
202
201
  .minus(rewardDebt)
203
- .div(Math.pow(10, rewardToken.decimals))
204
- .toNumber();
205
- return (0, tokenPriceToAssetToken_1.default)(rewardToken.address, amount, portfolio_core_1.NetworkId.solana, rewardToken);
202
+ .div(Math.pow(10, rewardToken.decimals));
203
+ return { address: rewardToken.address, amount, alreadyShifted: true };
206
204
  }
207
- exports.getPendingAssetToken = getPendingAssetToken;
205
+ exports.getPendingAssetParams = getPendingAssetParams;
208
206
  function getRewardGrowthInsideV2(tickCurrentIndex, tickLowerState, tickUpperState, rewardInfos) {
209
207
  const rewardGrowthsInside = [];
210
208
  for (let i = 0; i < rewardInfos.length; i++) {
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,2BAA2B;AAC3B,yDAAyD;AACzD,yCAAyC;AACzC,sCAAsC;AACtC,+BAA+B;AAC/B,gEAAqC;AACrC,kDAAuB;AACvB,+DAOoC;AACpC,6CAA4C;AAC5C,2CAAqE;AACrE,qGAA6E;AAE7E,gDAA6C;AAQ7C,SAAgB,kBAAkB,CAAC,GAA8B;IAC/D,OAAO,GAAG,CAAC,IAAI,KAAK,+BAAmB,CAAC;AAC1C,CAAC;AAFD,gDAEC;AAED,MAAM,IAAI,GAAG,IAAI,eAAE,CAAC,CAAC,CAAC,CAAC;AACvB,MAAM,GAAG,GAAG,IAAI,eAAE,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,GAAG,GAAG,IAAI,eAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC/B,MAAM,IAAI,GAAG,IAAI,eAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACjC,MAAM,aAAa,GAAG,EAAE,CAAC;AACzB,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,QAAQ,GAAG,CAAC,MAAM,CAAC;AACzB,MAAM,QAAQ,GAAG,CAAC,QAAQ,CAAC;AAE3B,SAAS,gBAAgB,CAAC,EAAM,EAAE,OAAe,EAAE,QAAgB;IACjE,MAAM,KAAK,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChD,KAAK,CAAC,MAAM,CAAC,QAAQ,GAAG,OAAO,GAAG,CAAC,CAAC,CAAC;IACrC,OAAO,KAAK,CAAC,QAA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YAC7C,IAAA,WAAI,EAAC,cAAc,CAAC,wBAAwB,CAAC;SAC9C;KACF,CAAC;IAEF,MAAM,IAAI,GAAG,iBAAiB,CAC5B,OAAO,EACP,aAAa,EACb,UAAU,EACV,UAAU,CACX,CAAC;IACF,MAAM,OAAO,GAAG,oBAAoB,CAClC,OAAO,EACP,aAAa,EACb,UAAU,EACV,UAAU,CACX,CAAC;IAEF,OAAO;QACL,eAAe,EAAE,IAAI,sBAAS,CAAC,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACjE,eAAe,EAAE,IAAI,sBAAS,CAAC,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACjE,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,sBAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;KAC7D,CAAC;AACJ,CAAC,CAAC;AAhGW,QAAA,wBAAwB,4BAgGnC"}
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,2BAA2B;AAC3B,yDAAyD;AACzD,yCAAyC;AACzC,sCAAsC;AACtC,+BAA+B;AAC/B,gEAAqC;AACrC,kDAAuB;AACvB,+DAKoC;AACpC,6CAA4C;AAC5C,2CAAqE;AAErE,gDAA6C;AAS7C,SAAgB,kBAAkB,CAAC,GAA8B;IAC/D,OAAO,GAAG,CAAC,IAAI,KAAK,+BAAmB,CAAC;AAC1C,CAAC;AAFD,gDAEC;AAED,MAAM,IAAI,GAAG,IAAI,eAAE,CAAC,CAAC,CAAC,CAAC;AACvB,MAAM,GAAG,GAAG,IAAI,eAAE,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,GAAG,GAAG,IAAI,eAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AA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mJob"));
10
10
  const farmsJob_1 = __importDefault(require("./farmsJob"));
11
11
  const constants_1 = require("./constants");
12
- const stakingFetcher_1 = __importDefault(require("./stakingFetcher"));
13
12
  const farmsFetcher_1 = __importDefault(require("./farmsFetcher"));
14
13
  exports.platforms = [constants_1.platform];
15
14
  exports.jobs = [lpTokensJob_1.default, farmsJob_1.default, clmmJob_1.default, cpmmJob_1.default];
16
- exports.fetchers = [stakingFetcher_1.default, farmsFetcher_1.default];
15
+ exports.fetchers = [farmsFetcher_1.default];
17
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/index.ts"],"names":[],"mappings":";;;;;;AAGA,gEAAwC;AACxC,wDAAgC;AAChC,wDAAgC;AAChC,0DAAkC;AAClC,2CAAuC;AACvC,sEAA8C;AAC9C,kEAA0C;AAE7B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,qBAAW,EAAE,kBAAQ,EAAE,iBAAO,EAAE,iBAAO,CAAC,CAAC;AACxD,QAAA,QAAQ,GAAc,CAAC,wBAAc,EAAE,sBAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/index.ts"],"names":[],"mappings":";;;;;;AAGA,gEAAwC;AACxC,wDAAgC;AAChC,wDAAgC;AAChC,0DAAkC;AAClC,2CAAuC;AACvC,kEAA0C;AAE7B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,qBAAW,EAAE,kBAAQ,EAAE,iBAAO,EAAE,iBAAO,CAAC,CAAC;AACxD,QAAA,QAAQ,GAAc,CAAC,sBAAY,CAAC,CAAC"}
@@ -105,7 +105,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
105
105
  ammsOpenOrdersMap.set(addresses[i + 2].toString(), orderStruct.deserialize(ammOpenOrdersInfo.data)[0]);
106
106
  mintAccountsMap.set(addresses[i + 3].toString(), solana_1.mintAccountStruct.deserialize(lpMintAddressInfo.data)[0]);
107
107
  }
108
- const tokenPrices = yield cache.getTokenPricesAsMap([...mints], portfolio_core_1.NetworkId.solana);
108
+ const tokenPrices = yield cache.getTokenPricesAsMap(mints, portfolio_core_1.NetworkId.solana);
109
109
  for (let i = 0; i < ammsAccounts.length; i += 1) {
110
110
  const amm = ammsAccounts[i];
111
111
  const mintA = amm.coinMintAddress.toString();
@@ -1 +1 @@
1
- {"version":3,"file":"lpTokensJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/lpTokensJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AAIvD,iDAAsD;AACtD,2CAA+E;AAC/E,yCAAkE;AAClE,+CAK4B;AAC5B,uCAAqD;AACrD,mCAA8C;AAC9C,6EAAqD;AACrD,gGAA6F;AAE7F,mHAA2F;AAC3F,qGAA6E;AAC7E,gEAA0E;AAE1E,MAAM,WAAW,GAAG;IAClB;QACE,SAAS,EAAE,CAAC;QACZ,MAAM,EAAE,sBAAe;QACvB,SAAS,EAAE,6BAAiB;QAC5B,OAAO,EAAE,qBAAW;QACpB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,SAAS,EAAE,CAAC;QACZ,MAAM,EAAE,sBAAe;QACvB,SAAS,EAAE,6BAAiB;QAC5B,OAAO,EAAE,qBAAW;QACpB,IAAI,EAAE,UAAU;KACjB;CACF,CAAC;AAEF,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,iBAAiB,GAAG,EAAE,CAAC;IAE7B,KAAK,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,WAAW,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC;QAC/C,MAAM,UAAU,GAAG,W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QAAQ,CAAC,MAAM,EAAE;oBAAE,SAAS;gBAEhC,iBAAiB,CAAC,IAAI,CACpB,IAAA,gCAAsB,EACpB,0BAAS,CAAC,MAAM,EAChB,MAAM,CAAC,QAAQ,EAAE,EACjB,sBAAU,EACV;oBACE,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE;oBAC1B,QAAQ,EAAE,UAAU;oBACpB,SAAS,EAAE,QAAQ;iBACpB,EACD;oBACE;wBACE,OAAO,EAAE,WAAW,CAAC,OAAO;wBAC5B,QAAQ,EAAE,WAAW,CAAC,QAAQ;wBAC9B,KAAK,EAAE,WAAW,CAAC,KAAK;wBACxB,gBAAgB,EAAE,YAAY;qBAC/B;oBACD;wBACE,OAAO,EAAE,WAAW,CAAC,OAAO;wBAC5B,QAAQ,EAAE,WAAW,CAAC,QAAQ;wBAC9B,KAAK,EAAE,WAAW,CAAC,KAAK;wBACxB,gBAAgB,EAAE,YAAY;qBAC/B;iBACF,EACD,GAAG,CAAC,OAAO,CACZ,CACF,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,IAAA,oBAAU,EACd,iBAAiB,CAAC,GAAG,CACnB,CAAC,gBAAgB,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CACxE,CACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"lpTokensJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/lpTokensJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AAIvD,iDAAsD;AACtD,2CAA+E;AAC/E,yCAAkE;AAClE,+CAK4B;AAC5B,uCAAqD;AACrD,mCAA8C;AAC9C,6EAAqD;AACr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,CACZ,CACF,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,IAAA,oBAAU,EACd,iBAAiB,CAAC,GAAG,CACnB,CAAC,gBAAgB,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CACxE,CACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { IdlItem } from '@solanafm/explorer-kit-idls';
3
+ export declare const platformId = "stabble";
4
+ export declare const platform: Platform;
5
+ export declare const stableProgramId = "swapNyd8XiQwJ6ianp9snpu4brUqFxadzvHebnAXjJZ";
6
+ export declare const stableIdlItem: IdlItem;
7
+ export declare const weightedProgramId = "swapFpHZwjELNnjvThjajtiVmkz3yPQEHjLtka2fwHW";
8
+ export declare const weightedIdlItem: IdlItem;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.weightedIdlItem = exports.weightedProgramId = exports.stableIdlItem = exports.stableProgramId = exports.platform = exports.platformId = void 0;
4
+ const stableIdl_1 = require("./stableIdl");
5
+ const weightedIdl_1 = require("./weightedIdl");
6
+ exports.platformId = 'stabble';
7
+ exports.platform = {
8
+ id: exports.platformId,
9
+ name: 'Stabble',
10
+ image: 'https://sonar.watch/img/platforms/stabble.webp',
11
+ website: 'https://app.stabble.org/',
12
+ twitter: 'https://x.com/stabbleorg',
13
+ defiLlamaId: 'stabble',
14
+ };
15
+ exports.stableProgramId = 'swapNyd8XiQwJ6ianp9snpu4brUqFxadzvHebnAXjJZ';
16
+ exports.stableIdlItem = {
17
+ programId: exports.stableProgramId,
18
+ idl: stableIdl_1.StableIdl,
19
+ idlType: 'anchor',
20
+ };
21
+ exports.weightedProgramId = 'swapFpHZwjELNnjvThjajtiVmkz3yPQEHjLtka2fwHW';
22
+ exports.weightedIdlItem = {
23
+ programId: exports.weightedProgramId,
24
+ idl: weightedIdl_1.WeightedIdl,
25
+ idlType: 'anchor',
26
+ };
27
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stabble/constants.ts"],"names":[],"mappings":";;;AAEA,2CAAwC;AACxC,+CAA4C;AAE/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,gDAAgD;IACvD,OAAO,EAAE,0BAA0B;IACnC,OAAO,EAAE,0BAA0B;IACnC,WAAW,EAAE,SAAS;CACvB,CAAC;AAEW,QAAA,eAAe,GAAG,6CAA6C,CAAC;AAEhE,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE,uBAAe;IAC1B,GAAG,EAAE,qBAAS;IACd,OAAO,EAAE,QAAQ;CACP,CAAC;AAEA,QAAA,iBAAiB,GAAG,6CAA6C,CAAC;AAElE,QAAA,eAAe,GAAG;IAC7B,SAAS,EAAE,yBAAiB;IAC5B,GAAG,EAAE,yBAAW;IAChB,OAAO,EAAE,QAAQ;CACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { GetProgramAccountsFilter } from '@solana/web3.js';
2
+ export declare const stableFilter: GetProgramAccountsFilter[];
3
+ export declare const weightedFilter: GetProgramAccountsFilter[];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.weightedFilter = exports.stableFilter = void 0;
4
+ exports.stableFilter = [
5
+ {
6
+ memcmp: {
7
+ offset: 40,
8
+ bytes: 'stab1io8dHvK26KoHmTwwHyYmHRbUWbyEJx6CdrGabC',
9
+ },
10
+ },
11
+ ];
12
+ exports.weightedFilter = [
13
+ {
14
+ memcmp: {
15
+ offset: 40,
16
+ bytes: 'w8edo9a9TDw52c1rBmVbP6dNakaAuFiPjDd52ZJwwVi',
17
+ },
18
+ },
19
+ ];
20
+ //# sourceMappingURL=filters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stabble/filters.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAA+B;IACtD;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,6CAA6C;SACrD;KACF;CACF,CAAC;AAEW,QAAA,cAAc,GAA+B;IACxD;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,6CAA6C;SACrD;KACF;CACF,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { Fetcher } from '../../Fetcher';
3
+ import { Job } from '../../Job';
4
+ export declare const platforms: Platform[];
5
+ export declare const jobs: Job[];
6
+ export declare const fetchers: Fetcher[];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.fetchers = exports.jobs = exports.platforms = void 0;
7
+ const constants_1 = require("./constants");
8
+ const poolsJob_1 = __importDefault(require("./poolsJob"));
9
+ exports.platforms = [constants_1.platform];
10
+ exports.jobs = [poolsJob_1.default];
11
+ exports.fetchers = [];
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stabble/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,0DAAkC;AAErB,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,kBAAQ,CAAC,CAAC;AACzB,QAAA,QAAQ,GAAc,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Job } from '../../Job';
2
+ declare const job: Job;
3
+ export default job;
@@ -0,0 +1,84 @@
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 bignumber_js_1 = __importDefault(require("bignumber.js"));
17
+ const constants_1 = require("./constants");
18
+ const clients_1 = require("../../utils/clients");
19
+ const solana_1 = require("../../utils/solana");
20
+ const filters_1 = require("./filters");
21
+ const getAssetBatchDas_1 = require("../../utils/solana/das/getAssetBatchDas");
22
+ const getSolanaDasEndpoint_1 = __importDefault(require("../../utils/clients/getSolanaDasEndpoint"));
23
+ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
24
+ const connection = (0, clients_1.getClientSolana)();
25
+ const dasUrl = (0, getSolanaDasEndpoint_1.default)();
26
+ const pools = (yield Promise.all([
27
+ (0, solana_1.getAutoParsedProgramAccounts)(connection, constants_1.stableIdlItem, filters_1.stableFilter),
28
+ (0, solana_1.getAutoParsedProgramAccounts)(connection, constants_1.weightedIdlItem, filters_1.weightedFilter),
29
+ ])).flat();
30
+ const mints = new Set();
31
+ const lpMints = new Set();
32
+ pools.forEach((pool) => {
33
+ pool.tokens.forEach((token) => {
34
+ mints.add(token.mint);
35
+ });
36
+ lpMints.add(pool.mint);
37
+ });
38
+ const [tokenPrices, heliusAssets] = yield Promise.all([
39
+ cache.getTokenPricesAsMap(mints, portfolio_core_1.NetworkId.solana),
40
+ (0, getAssetBatchDas_1.getAssetBatchDasAsMap)(dasUrl, [...lpMints]),
41
+ ]);
42
+ const sources = [];
43
+ pools.forEach((pool) => {
44
+ const heliusAsset = heliusAssets.get(pool.mint);
45
+ if (!(heliusAsset === null || heliusAsset === void 0 ? void 0 : heliusAsset.token_info))
46
+ return;
47
+ const supply = new bignumber_js_1.default(heliusAsset.token_info.supply).dividedBy(Math.pow(10, Number(heliusAsset.token_info.decimals)));
48
+ const underlyings = [];
49
+ for (const token of pool.tokens) {
50
+ const tokenPrice = tokenPrices.get(token.mint);
51
+ if (!tokenPrice)
52
+ return;
53
+ const amountPerLp = new bignumber_js_1.default(token.balance)
54
+ .dividedBy(Math.pow(10, 9))
55
+ .dividedBy(supply);
56
+ underlyings.push({
57
+ address: tokenPrice.address,
58
+ decimals: tokenPrice.decimals,
59
+ amountPerLp: amountPerLp.toNumber(),
60
+ networkId: portfolio_core_1.NetworkId.solana,
61
+ price: tokenPrice.price,
62
+ });
63
+ }
64
+ sources.push({
65
+ address: pool.mint,
66
+ decimals: heliusAsset.token_info.decimals,
67
+ id: constants_1.platformId,
68
+ networkId: portfolio_core_1.NetworkId.solana,
69
+ platformId: constants_1.platformId,
70
+ price: underlyings.reduce((acc, u) => u.price * u.amountPerLp + acc, 0),
71
+ timestamp: Date.now(),
72
+ weight: 1,
73
+ underlyings,
74
+ });
75
+ });
76
+ yield cache.setTokenPriceSources(sources);
77
+ });
78
+ const job = {
79
+ id: `${constants_1.platformId}-pools`,
80
+ executor,
81
+ label: 'normal',
82
+ };
83
+ exports.default = job;
84
+ //# sourceMappingURL=poolsJob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poolsJob.js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EAAV,sBAAU;YACV,KAAK,EAAE,WAAW,CAAC,MAAM,CACvB,CAAC,GAAW,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,WAAW,GAAG,GAAG,EACjD,CAAC,CACF;YACD,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;YACrB,MAAM,EAAE,CAAC;YACT,WAAW;SACZ,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,MAAM,KAAK,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -0,0 +1,40 @@
1
+ export declare const StableIdl: {
2
+ version: string;
3
+ name: string;
4
+ instructions: never[];
5
+ accounts: {
6
+ name: string;
7
+ type: {
8
+ kind: string;
9
+ fields: ({
10
+ name: string;
11
+ type: string;
12
+ } | {
13
+ name: string;
14
+ type: {
15
+ vec: {
16
+ defined: string;
17
+ };
18
+ option?: undefined;
19
+ };
20
+ } | {
21
+ name: string;
22
+ type: {
23
+ option: string;
24
+ vec?: undefined;
25
+ };
26
+ })[];
27
+ };
28
+ }[];
29
+ types: {
30
+ name: string;
31
+ type: {
32
+ kind: string;
33
+ fields: {
34
+ name: string;
35
+ type: string;
36
+ }[];
37
+ };
38
+ }[];
39
+ errors: never[];
40
+ };
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StableIdl = void 0;
4
+ exports.StableIdl = {
5
+ version: '1.0.0',
6
+ name: 'stable_swap',
7
+ instructions: [],
8
+ accounts: [
9
+ {
10
+ name: 'pool',
11
+ type: {
12
+ kind: 'struct',
13
+ fields: [
14
+ {
15
+ name: 'owner',
16
+ type: 'publicKey',
17
+ },
18
+ {
19
+ name: 'vault',
20
+ type: 'publicKey',
21
+ },
22
+ {
23
+ name: 'mint',
24
+ type: 'publicKey',
25
+ },
26
+ {
27
+ name: 'authorityBump',
28
+ type: 'u8',
29
+ },
30
+ {
31
+ name: 'isActive',
32
+ type: 'bool',
33
+ },
34
+ {
35
+ name: 'ampInitialFactor',
36
+ type: 'u16',
37
+ },
38
+ {
39
+ name: 'ampTargetFactor',
40
+ type: 'u16',
41
+ },
42
+ {
43
+ name: 'rampStartTs',
44
+ type: 'i64',
45
+ },
46
+ {
47
+ name: 'rampStopTs',
48
+ type: 'i64',
49
+ },
50
+ {
51
+ name: 'swapFee',
52
+ type: 'u64',
53
+ },
54
+ {
55
+ name: 'tokens',
56
+ type: {
57
+ vec: {
58
+ defined: 'PoolToken',
59
+ },
60
+ },
61
+ },
62
+ {
63
+ name: 'pendingOwner',
64
+ type: {
65
+ option: 'publicKey',
66
+ },
67
+ },
68
+ ],
69
+ },
70
+ },
71
+ ],
72
+ types: [
73
+ {
74
+ name: 'PoolToken',
75
+ type: {
76
+ kind: 'struct',
77
+ fields: [
78
+ {
79
+ name: 'mint',
80
+ type: 'publicKey',
81
+ },
82
+ {
83
+ name: 'decimals',
84
+ type: 'u8',
85
+ },
86
+ {
87
+ name: 'scalingUp',
88
+ type: 'bool',
89
+ },
90
+ {
91
+ name: 'scalingFactor',
92
+ type: 'u64',
93
+ },
94
+ {
95
+ name: 'balance',
96
+ type: 'u64',
97
+ },
98
+ ],
99
+ },
100
+ },
101
+ ],
102
+ errors: [],
103
+ };
104
+ //# sourceMappingURL=stableIdl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stableIdl.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stabble/stableIdl.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,aAAa;IACnB,YAAY,EAAE,EAAE;IAChB,QAAQ,EAAE;QACR;YACE,IAAI,EAAE,MAAM;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ACrB,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE,KAAK;qBACZ;iBACF;aACF;SACF;KACF;IACD,MAAM,EAAE,EAAE;CACX,CAAC"}
@@ -0,0 +1,40 @@
1
+ export type StablePool = {
2
+ owner: string;
3
+ vault: string;
4
+ mint: string;
5
+ authorityBump: string;
6
+ isActive: boolean;
7
+ ampInitialFactor: string;
8
+ ampTargetFactor: string;
9
+ rampStartTs: string;
10
+ rampStopTs: string;
11
+ swapFee: string;
12
+ tokens: StablePoolToken[];
13
+ pendingOwner?: string;
14
+ };
15
+ export type StablePoolToken = {
16
+ mint: string;
17
+ decimals: string;
18
+ scalingUp: boolean;
19
+ scalingFactor: string;
20
+ balance: string;
21
+ };
22
+ export type WeightedPool = {
23
+ owner: string;
24
+ vault: string;
25
+ mint: string;
26
+ authorityBump: string;
27
+ isActive: boolean;
28
+ invariant: string;
29
+ swapFee: string;
30
+ tokens: StablePoolToken[];
31
+ pendingOwner?: string;
32
+ };
33
+ export type WeightedPoolToken = {
34
+ mint: string;
35
+ decimals: string;
36
+ scalingUp: boolean;
37
+ scalingFactor: string;
38
+ balance: string;
39
+ weight: string;
40
+ };
@@ -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/stabble/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
1
+ export declare const WeightedIdl: {
2
+ version: string;
3
+ name: string;
4
+ instructions: never[];
5
+ accounts: {
6
+ name: string;
7
+ type: {
8
+ kind: string;
9
+ fields: ({
10
+ name: string;
11
+ type: string;
12
+ } | {
13
+ name: string;
14
+ type: {
15
+ vec: {
16
+ defined: string;
17
+ };
18
+ option?: undefined;
19
+ };
20
+ } | {
21
+ name: string;
22
+ type: {
23
+ option: string;
24
+ vec?: undefined;
25
+ };
26
+ })[];
27
+ };
28
+ }[];
29
+ types: {
30
+ name: string;
31
+ type: {
32
+ kind: string;
33
+ fields: {
34
+ name: string;
35
+ type: string;
36
+ }[];
37
+ };
38
+ }[];
39
+ errors: never[];
40
+ };