@sonarwatch/portfolio-plugins 0.11.184 → 0.11.186

Sign up to get free protection for your applications and to get access to all the features.
Files changed (298) hide show
  1. package/CHANGELOG.md +1472 -1459
  2. package/README.md +3 -3
  3. package/package.json +2 -2
  4. package/src/index.js +2 -0
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/aave/constants.d.ts +1 -1
  7. package/src/plugins/aave/constants.js +2 -2
  8. package/src/plugins/aave/constants.js.map +1 -1
  9. package/src/plugins/aave/index.js +1 -1
  10. package/src/plugins/aave/index.js.map +1 -1
  11. package/src/plugins/aftermath/constants.d.ts +1 -1
  12. package/src/plugins/aftermath/constants.js +2 -2
  13. package/src/plugins/aftermath/constants.js.map +1 -1
  14. package/src/plugins/aftermath/index.js +1 -1
  15. package/src/plugins/aftermath/index.js.map +1 -1
  16. package/src/plugins/aptin/constants.d.ts +3 -0
  17. package/src/plugins/aptin/constants.js +5 -2
  18. package/src/plugins/aptin/constants.js.map +1 -1
  19. package/src/plugins/aptin/depositsFetcher.js +2 -2
  20. package/src/plugins/aptin/depositsFetcher.js.map +1 -1
  21. package/src/plugins/armada-staking/constants.js +6 -6
  22. package/src/plugins/armada-staking/constants.js.map +1 -1
  23. package/src/plugins/aurory/constants.d.ts +1 -1
  24. package/src/plugins/aurory/constants.js +3 -3
  25. package/src/plugins/aurory/constants.js.map +1 -1
  26. package/src/plugins/aurory/stakingFetcher.js +2 -2
  27. package/src/plugins/aurory/stakingFetcher.js.map +1 -1
  28. package/src/plugins/auxexchange/aptosLpJob.js +2 -2
  29. package/src/plugins/auxexchange/aptosLpJob.js.map +1 -1
  30. package/src/plugins/auxexchange/constants.d.ts +2 -2
  31. package/src/plugins/auxexchange/constants.js +4 -4
  32. package/src/plugins/auxexchange/constants.js.map +1 -1
  33. package/src/plugins/auxexchange/index.js +1 -1
  34. package/src/plugins/auxexchange/index.js.map +1 -1
  35. package/src/plugins/balancer/helpers/pools.js +21 -21
  36. package/src/plugins/banx/constants.js +1 -1
  37. package/src/plugins/banx/constants.js.map +1 -1
  38. package/src/plugins/bucket/constants.d.ts +1 -1
  39. package/src/plugins/bucket/constants.js +2 -2
  40. package/src/plugins/bucket/constants.js.map +1 -1
  41. package/src/plugins/bucket/index.js +1 -1
  42. package/src/plugins/bucket/index.js.map +1 -1
  43. package/src/plugins/cetus/constants.d.ts +1 -1
  44. package/src/plugins/cetus/constants.js +2 -2
  45. package/src/plugins/cetus/constants.js.map +1 -1
  46. package/src/plugins/cetus/index.js +1 -1
  47. package/src/plugins/cetus/index.js.map +1 -1
  48. package/src/plugins/clone/constants.js +1 -1
  49. package/src/plugins/clone/constants.js.map +1 -1
  50. package/src/plugins/compound/constants.d.ts +1 -1
  51. package/src/plugins/compound/constants.js +2 -2
  52. package/src/plugins/compound/constants.js.map +1 -1
  53. package/src/plugins/compound/index.js +1 -1
  54. package/src/plugins/compound/index.js.map +1 -1
  55. package/src/plugins/curve/constants.d.ts +1 -1
  56. package/src/plugins/curve/constants.js +2 -2
  57. package/src/plugins/curve/constants.js.map +1 -1
  58. package/src/plugins/curve/index.js +1 -1
  59. package/src/plugins/curve/index.js.map +1 -1
  60. package/src/plugins/daos/constants.js +2 -1
  61. package/src/plugins/daos/constants.js.map +1 -1
  62. package/src/plugins/drift/constants.d.ts +1 -1
  63. package/src/plugins/drift/constants.js +2 -2
  64. package/src/plugins/drift/constants.js.map +1 -1
  65. package/src/plugins/drift/index.js +1 -1
  66. package/src/plugins/drift/index.js.map +1 -1
  67. package/src/plugins/flash/poolJob.js +23 -8
  68. package/src/plugins/flash/poolJob.js.map +1 -1
  69. package/src/plugins/flash/stakeFetcher.js +20 -6
  70. package/src/plugins/flash/stakeFetcher.js.map +1 -1
  71. package/src/plugins/flash/types.d.ts +1 -0
  72. package/src/plugins/flexlend/constants.d.ts +1 -1
  73. package/src/plugins/flexlend/constants.js +2 -2
  74. package/src/plugins/flexlend/constants.js.map +1 -1
  75. package/src/plugins/flexlend/depositsFetcher.js +1 -1
  76. package/src/plugins/flexlend/depositsFetcher.js.map +1 -1
  77. package/src/plugins/flexlend/index.js +1 -1
  78. package/src/plugins/flexlend/index.js.map +1 -1
  79. package/src/plugins/goosefx/constants.d.ts +1 -1
  80. package/src/plugins/goosefx/constants.js +2 -2
  81. package/src/plugins/goosefx/constants.js.map +1 -1
  82. package/src/plugins/goosefx/index.js +1 -1
  83. package/src/plugins/goosefx/index.js.map +1 -1
  84. package/src/plugins/hawksight/constants.d.ts +1 -1
  85. package/src/plugins/hawksight/constants.js +2 -2
  86. package/src/plugins/hawksight/constants.js.map +1 -1
  87. package/src/plugins/hawksight/index.js +1 -1
  88. package/src/plugins/hawksight/index.js.map +1 -1
  89. package/src/plugins/jito/constants.d.ts +1 -1
  90. package/src/plugins/jito/constants.js +2 -2
  91. package/src/plugins/jito/constants.js.map +1 -1
  92. package/src/plugins/jito/index.js +1 -1
  93. package/src/plugins/jito/index.js.map +1 -1
  94. package/src/plugins/jupiter/exchange/constants.d.ts +1 -1
  95. package/src/plugins/jupiter/exchange/constants.js +2 -2
  96. package/src/plugins/jupiter/exchange/constants.js.map +1 -1
  97. package/src/plugins/jupiter/exchange/dcaFetcher.js +1 -1
  98. package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
  99. package/src/plugins/jupiter/governance/constants.d.ts +2 -2
  100. package/src/plugins/jupiter/governance/constants.js +4 -4
  101. package/src/plugins/jupiter/governance/constants.js.map +1 -1
  102. package/src/plugins/jupiter/governance/voteFetcher.js +2 -2
  103. package/src/plugins/jupiter/governance/voteFetcher.js.map +1 -1
  104. package/src/plugins/jupiter/index.js +3 -3
  105. package/src/plugins/jupiter/index.js.map +1 -1
  106. package/src/plugins/jupiter/launchpad/allocationsFetcher.js +2 -2
  107. package/src/plugins/jupiter/launchpad/allocationsFetcher.js.map +1 -1
  108. package/src/plugins/jupiter/launchpad/constants.d.ts +2 -2
  109. package/src/plugins/jupiter/launchpad/constants.js +4 -4
  110. package/src/plugins/jupiter/launchpad/constants.js.map +1 -1
  111. package/src/plugins/kamino/airdropFetcher.js +2 -2
  112. package/src/plugins/kamino/airdropFetcher.js.map +1 -1
  113. package/src/plugins/kamino/constants.d.ts +1 -1
  114. package/src/plugins/kamino/constants.js +2 -2
  115. package/src/plugins/kamino/constants.js.map +1 -1
  116. package/src/plugins/kamino/index.js +1 -1
  117. package/src/plugins/kamino/index.js.map +1 -1
  118. package/src/plugins/lido/constants.d.ts +1 -1
  119. package/src/plugins/lido/constants.js +2 -2
  120. package/src/plugins/lido/constants.js.map +1 -1
  121. package/src/plugins/lido/index.js +1 -1
  122. package/src/plugins/lido/index.js.map +1 -1
  123. package/src/plugins/liquidswap/constants.d.ts +1 -1
  124. package/src/plugins/liquidswap/constants.js +2 -2
  125. package/src/plugins/liquidswap/constants.js.map +1 -1
  126. package/src/plugins/liquidswap/index.js +1 -1
  127. package/src/plugins/liquidswap/index.js.map +1 -1
  128. package/src/plugins/llama-protocols/getLlamaProtocolsJob.js +4 -0
  129. package/src/plugins/llama-protocols/getLlamaProtocolsJob.js.map +1 -1
  130. package/src/plugins/llama-protocols/helpers.js +1 -0
  131. package/src/plugins/llama-protocols/helpers.js.map +1 -1
  132. package/src/plugins/magiceden/constants.d.ts +1 -1
  133. package/src/plugins/magiceden/constants.js +2 -2
  134. package/src/plugins/magiceden/constants.js.map +1 -1
  135. package/src/plugins/magiceden/index.js +1 -1
  136. package/src/plugins/magiceden/index.js.map +1 -1
  137. package/src/plugins/maker/constants.d.ts +1 -1
  138. package/src/plugins/maker/constants.js +2 -2
  139. package/src/plugins/maker/constants.js.map +1 -1
  140. package/src/plugins/maker/index.js +1 -1
  141. package/src/plugins/maker/index.js.map +1 -1
  142. package/src/plugins/mango/constants.d.ts +1 -1
  143. package/src/plugins/mango/constants.js +2 -2
  144. package/src/plugins/mango/constants.js.map +1 -1
  145. package/src/plugins/mango/index.js +1 -1
  146. package/src/plugins/mango/index.js.map +1 -1
  147. package/src/plugins/maple/constants.d.ts +1 -1
  148. package/src/plugins/maple/constants.js +2 -2
  149. package/src/plugins/maple/constants.js.map +1 -1
  150. package/src/plugins/maple/index.js +1 -1
  151. package/src/plugins/maple/index.js.map +1 -1
  152. package/src/plugins/marginfi/constants.d.ts +2 -2
  153. package/src/plugins/marginfi/constants.js +3 -3
  154. package/src/plugins/marginfi/constants.js.map +1 -1
  155. package/src/plugins/marginfi/index.js +1 -1
  156. package/src/plugins/marginfi/index.js.map +1 -1
  157. package/src/plugins/marinade/constants.d.ts +1 -1
  158. package/src/plugins/marinade/constants.js +2 -2
  159. package/src/plugins/marinade/constants.js.map +1 -1
  160. package/src/plugins/marinade/index.js +1 -1
  161. package/src/plugins/marinade/index.js.map +1 -1
  162. package/src/plugins/meteora/constants.d.ts +1 -1
  163. package/src/plugins/meteora/constants.js +2 -2
  164. package/src/plugins/meteora/constants.js.map +1 -1
  165. package/src/plugins/meteora/index.js +1 -1
  166. package/src/plugins/meteora/index.js.map +1 -1
  167. package/src/plugins/morpho/constants.d.ts +1 -1
  168. package/src/plugins/morpho/constants.js +2 -2
  169. package/src/plugins/morpho/constants.js.map +1 -1
  170. package/src/plugins/morpho/index.js +1 -1
  171. package/src/plugins/morpho/index.js.map +1 -1
  172. package/src/plugins/native-stake/solana/solanaFetcher.js +7 -7
  173. package/src/plugins/native-stake/solana/solanaFetcher.js.map +1 -1
  174. package/src/plugins/navi/constants.d.ts +1 -1
  175. package/src/plugins/navi/constants.js +2 -2
  176. package/src/plugins/navi/constants.js.map +1 -1
  177. package/src/plugins/navi/index.js +1 -1
  178. package/src/plugins/navi/index.js.map +1 -1
  179. package/src/plugins/nosana/constants.js +1 -1
  180. package/src/plugins/nosana/constants.js.map +1 -1
  181. package/src/plugins/orca/constants.d.ts +1 -1
  182. package/src/plugins/orca/constants.js +2 -2
  183. package/src/plugins/orca/constants.js.map +1 -1
  184. package/src/plugins/orca/index.js +1 -1
  185. package/src/plugins/orca/index.js.map +1 -1
  186. package/src/plugins/pancakeswap/constants.d.ts +1 -1
  187. package/src/plugins/pancakeswap/constants.js +2 -2
  188. package/src/plugins/pancakeswap/constants.js.map +1 -1
  189. package/src/plugins/pancakeswap/index.js +1 -1
  190. package/src/plugins/pancakeswap/index.js.map +1 -1
  191. package/src/plugins/paraswap/constants.d.ts +1 -1
  192. package/src/plugins/paraswap/constants.js +2 -2
  193. package/src/plugins/paraswap/constants.js.map +1 -1
  194. package/src/plugins/paraswap/index.js +1 -1
  195. package/src/plugins/paraswap/index.js.map +1 -1
  196. package/src/plugins/parcl/constants.d.ts +1 -1
  197. package/src/plugins/parcl/constants.js +2 -2
  198. package/src/plugins/parcl/constants.js.map +1 -1
  199. package/src/plugins/parcl/index.js +1 -1
  200. package/src/plugins/parcl/index.js.map +1 -1
  201. package/src/plugins/rain/constants.js +1 -1
  202. package/src/plugins/rain/constants.js.map +1 -1
  203. package/src/plugins/raydium/constants.d.ts +1 -1
  204. package/src/plugins/raydium/constants.js +2 -2
  205. package/src/plugins/raydium/constants.js.map +1 -1
  206. package/src/plugins/raydium/index.js +1 -1
  207. package/src/plugins/raydium/index.js.map +1 -1
  208. package/src/plugins/rocket-pool/constants.d.ts +1 -1
  209. package/src/plugins/rocket-pool/constants.js +2 -2
  210. package/src/plugins/rocket-pool/constants.js.map +1 -1
  211. package/src/plugins/rocket-pool/index.js +1 -1
  212. package/src/plugins/rocket-pool/index.js.map +1 -1
  213. package/src/plugins/saber/constants.d.ts +1 -1
  214. package/src/plugins/saber/constants.js +2 -2
  215. package/src/plugins/saber/constants.js.map +1 -1
  216. package/src/plugins/saber/index.js +1 -1
  217. package/src/plugins/saber/index.js.map +1 -1
  218. package/src/plugins/scallop/constants.d.ts +1 -1
  219. package/src/plugins/scallop/constants.js +9 -9
  220. package/src/plugins/scallop/constants.js.map +1 -1
  221. package/src/plugins/scallop/index.js +1 -1
  222. package/src/plugins/scallop/index.js.map +1 -1
  223. package/src/plugins/solend/constants.d.ts +1 -1
  224. package/src/plugins/solend/constants.js +2 -2
  225. package/src/plugins/solend/constants.js.map +1 -1
  226. package/src/plugins/solend/index.js +1 -1
  227. package/src/plugins/solend/index.js.map +1 -1
  228. package/src/plugins/stader/constants.d.ts +1 -1
  229. package/src/plugins/stader/constants.js +2 -2
  230. package/src/plugins/stader/constants.js.map +1 -1
  231. package/src/plugins/stader/index.js +1 -1
  232. package/src/plugins/stader/index.js.map +1 -1
  233. package/src/plugins/stargate/constants.d.ts +1 -1
  234. package/src/plugins/stargate/constants.js +2 -2
  235. package/src/plugins/stargate/constants.js.map +1 -1
  236. package/src/plugins/stargate/index.js +1 -1
  237. package/src/plugins/stargate/index.js.map +1 -1
  238. package/src/plugins/sushiswap/helpers.js +24 -24
  239. package/src/plugins/switchboard/constants.d.ts +1 -0
  240. package/src/plugins/switchboard/constants.js +5 -0
  241. package/src/plugins/switchboard/constants.js.map +1 -0
  242. package/src/plugins/switchboard/helpers/getSwitchboardPrice.d.ts +3 -0
  243. package/src/plugins/switchboard/helpers/getSwitchboardPrice.js +20 -0
  244. package/src/plugins/switchboard/helpers/getSwitchboardPrice.js.map +1 -0
  245. package/src/plugins/switchboard/helpers/getSwitchboardPrices.d.ts +3 -0
  246. package/src/plugins/switchboard/helpers/getSwitchboardPrices.js +23 -0
  247. package/src/plugins/switchboard/helpers/getSwitchboardPrices.js.map +1 -0
  248. package/src/plugins/switchboard/helpers/misc.d.ts +2 -0
  249. package/src/plugins/switchboard/helpers/misc.js +26 -0
  250. package/src/plugins/switchboard/helpers/misc.js.map +1 -0
  251. package/src/plugins/switchboard/index.d.ts +4 -0
  252. package/src/plugins/switchboard/index.js +10 -0
  253. package/src/plugins/switchboard/index.js.map +1 -0
  254. package/src/plugins/switchboard/pricingJob.d.ts +3 -0
  255. package/src/plugins/switchboard/pricingJob.js +57 -0
  256. package/src/plugins/switchboard/pricingJob.js.map +1 -0
  257. package/src/plugins/switchboard/structs.d.ts +74 -0
  258. package/src/plugins/switchboard/structs.js +72 -0
  259. package/src/plugins/switchboard/structs.js.map +1 -0
  260. package/src/plugins/tensor/constants.d.ts +1 -1
  261. package/src/plugins/tensor/constants.js +2 -2
  262. package/src/plugins/tensor/constants.js.map +1 -1
  263. package/src/plugins/tensor/index.js +1 -1
  264. package/src/plugins/tensor/index.js.map +1 -1
  265. package/src/plugins/thala/constants.d.ts +12 -5
  266. package/src/plugins/thala/constants.js +9 -9
  267. package/src/plugins/thala/constants.js.map +1 -1
  268. package/src/plugins/thala/index.js +1 -1
  269. package/src/plugins/thala/index.js.map +1 -1
  270. package/src/plugins/thala/vaultsRatesJob.js +1 -1
  271. package/src/plugins/thala/vaultsRatesJob.js.map +1 -1
  272. package/src/plugins/turbos/constants.d.ts +1 -1
  273. package/src/plugins/turbos/constants.js +2 -2
  274. package/src/plugins/turbos/constants.js.map +1 -1
  275. package/src/plugins/turbos/index.js +1 -1
  276. package/src/plugins/turbos/index.js.map +1 -1
  277. package/src/plugins/uniswap/constants.d.ts +1 -1
  278. package/src/plugins/uniswap/constants.js +2 -2
  279. package/src/plugins/uniswap/constants.js.map +1 -1
  280. package/src/plugins/uniswap/index.js +1 -1
  281. package/src/plugins/uniswap/index.js.map +1 -1
  282. package/src/plugins/uniswap-v2/helpers.js +22 -22
  283. package/src/plugins/venus/constants.d.ts +1 -1
  284. package/src/plugins/venus/constants.js +3 -7
  285. package/src/plugins/venus/constants.js.map +1 -1
  286. package/src/plugins/venus/index.js +1 -1
  287. package/src/plugins/venus/index.js.map +1 -1
  288. package/src/plugins/wormhole/constants.js +1 -1
  289. package/src/plugins/wormhole/constants.js.map +1 -1
  290. package/src/plugins/x-staking-solana/constants.js +2 -2
  291. package/src/plugins/x-staking-solana/constants.js.map +1 -1
  292. package/src/plugins/zeta/constants.d.ts +1 -1
  293. package/src/plugins/zeta/constants.js +2 -2
  294. package/src/plugins/zeta/constants.js.map +1 -1
  295. package/src/plugins/zeta/index.js +1 -1
  296. package/src/plugins/zeta/index.js.map +1 -1
  297. package/src/utils/sei/constants.js +8 -8
  298. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -0,0 +1,74 @@
1
+ /// <reference types="node" />
2
+ import { BeetStruct, FixableBeetStruct } from '@metaplex-foundation/beet';
3
+ import BigNumber from 'bignumber.js';
4
+ import { PublicKey } from '@solana/web3.js';
5
+ export declare enum AggregatorResolutionMode {
6
+ ModeRoundResolution = 0,
7
+ ModeSlidingResolution = 1
8
+ }
9
+ export type Hash = {
10
+ data: number[];
11
+ };
12
+ export declare const hashStruct: BeetStruct<Hash, Partial<Hash>>;
13
+ export type SwitchboardDecimal = {
14
+ mantissa: BigNumber;
15
+ scale: number;
16
+ };
17
+ export declare const switchboardDecimalStruct: BeetStruct<SwitchboardDecimal, Partial<SwitchboardDecimal>>;
18
+ export type AggregatorRound = {
19
+ numSuccess: number;
20
+ numError: number;
21
+ isClosed: boolean;
22
+ roundOpenSlot: BigNumber;
23
+ roundOpenTimestamp: BigNumber;
24
+ result: SwitchboardDecimal;
25
+ stdDeviation: SwitchboardDecimal;
26
+ minResponse: SwitchboardDecimal;
27
+ maxResponse: SwitchboardDecimal;
28
+ oraclePubkeysData: PublicKey[];
29
+ mediansData: SwitchboardDecimal[];
30
+ currentPayout: BigNumber[];
31
+ mediansFulfilled: boolean[];
32
+ errorsFulfilled: boolean[];
33
+ };
34
+ export declare const aggregatorRoundStruct: FixableBeetStruct<AggregatorRound, Partial<AggregatorRound>>;
35
+ export type AggregatorAccount = {
36
+ buffer: Buffer;
37
+ name: number[];
38
+ metadata: number[];
39
+ reserved1: number[];
40
+ queuePubkey: PublicKey;
41
+ oracleRequestBatchSize: number;
42
+ minOracleResults: number;
43
+ minJobResults: number;
44
+ minUpdateDelaySeconds: number;
45
+ startAfter: BigNumber;
46
+ varianceThreshold: SwitchboardDecimal;
47
+ forceReportPeriod: BigNumber;
48
+ expiration: BigNumber;
49
+ consecutiveFailureCount: BigNumber;
50
+ nextAllowedUpdateTime: BigNumber;
51
+ isLocked: boolean;
52
+ crankPubkey: PublicKey;
53
+ latestConfirmedRound: AggregatorRound;
54
+ currentRound: AggregatorRound;
55
+ jobPubkeysData: PublicKey[];
56
+ jobHashes: Hash[];
57
+ jobPubkeysSize: number;
58
+ jobsChecksum: number[];
59
+ authority: PublicKey;
60
+ historyBuffer: PublicKey;
61
+ previousConfirmedRoundResult: SwitchboardDecimal;
62
+ previousConfirmedRoundSlot: BigNumber;
63
+ disableCrank: boolean;
64
+ jobWeights: number[];
65
+ creationTimestamp: BigNumber;
66
+ resolutionMode: AggregatorResolutionMode;
67
+ basePriorityFee: number;
68
+ priorityFeeBump: number;
69
+ priorityFeeBumpPeriod: number;
70
+ maxPriorityFeeMultiplier: number;
71
+ parentFunction: PublicKey;
72
+ ebuf: number[];
73
+ };
74
+ export declare const aggregatorAccountStruct: FixableBeetStruct<AggregatorAccount, Partial<AggregatorAccount>>;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.aggregatorAccountStruct = exports.aggregatorRoundStruct = exports.switchboardDecimalStruct = exports.hashStruct = exports.AggregatorResolutionMode = void 0;
4
+ const beet_1 = require("@metaplex-foundation/beet");
5
+ const beet_solana_1 = require("@metaplex-foundation/beet-solana");
6
+ const solana_1 = require("../../utils/solana");
7
+ var AggregatorResolutionMode;
8
+ (function (AggregatorResolutionMode) {
9
+ AggregatorResolutionMode[AggregatorResolutionMode["ModeRoundResolution"] = 0] = "ModeRoundResolution";
10
+ AggregatorResolutionMode[AggregatorResolutionMode["ModeSlidingResolution"] = 1] = "ModeSlidingResolution";
11
+ })(AggregatorResolutionMode || (exports.AggregatorResolutionMode = AggregatorResolutionMode = {}));
12
+ exports.hashStruct = new beet_1.BeetStruct([['data', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)]], (args) => args);
13
+ exports.switchboardDecimalStruct = new beet_1.BeetStruct([
14
+ ['mantissa', solana_1.i128],
15
+ ['scale', beet_1.u32],
16
+ ], (args) => args);
17
+ exports.aggregatorRoundStruct = new beet_1.FixableBeetStruct([
18
+ ['numSuccess', beet_1.u32],
19
+ ['numError', beet_1.u32],
20
+ ['isClosed', beet_1.bool],
21
+ ['roundOpenSlot', solana_1.u64],
22
+ ['roundOpenTimestamp', solana_1.i64],
23
+ ['result', exports.switchboardDecimalStruct],
24
+ ['stdDeviation', exports.switchboardDecimalStruct],
25
+ ['minResponse', exports.switchboardDecimalStruct],
26
+ ['maxResponse', exports.switchboardDecimalStruct],
27
+ ['oraclePubkeysData', (0, beet_1.uniformFixedSizeArray)(beet_solana_1.publicKey, 16)],
28
+ ['mediansData', (0, beet_1.uniformFixedSizeArray)(exports.switchboardDecimalStruct, 16)],
29
+ ['currentPayout', (0, beet_1.uniformFixedSizeArray)(solana_1.i64, 16)],
30
+ ['mediansFulfilled', (0, beet_1.uniformFixedSizeArray)(beet_1.bool, 16)],
31
+ ['errorsFulfilled', (0, beet_1.uniformFixedSizeArray)(beet_1.bool, 16)],
32
+ ], (args) => args);
33
+ exports.aggregatorAccountStruct = new beet_1.FixableBeetStruct([
34
+ ['buffer', (0, solana_1.blob)(8)],
35
+ ['name', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
36
+ ['metadata', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 128)],
37
+ ['reserved1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
38
+ ['queuePubkey', beet_solana_1.publicKey],
39
+ ['oracleRequestBatchSize', beet_1.u32],
40
+ ['minOracleResults', beet_1.u32],
41
+ ['minJobResults', beet_1.u32],
42
+ ['minUpdateDelaySeconds', beet_1.u32],
43
+ ['startAfter', solana_1.i64],
44
+ ['varianceThreshold', exports.switchboardDecimalStruct],
45
+ ['forceReportPeriod', solana_1.i64],
46
+ ['expiration', solana_1.i64],
47
+ ['consecutiveFailureCount', solana_1.u64],
48
+ ['nextAllowedUpdateTime', solana_1.i64],
49
+ ['isLocked', beet_1.bool],
50
+ ['crankPubkey', beet_solana_1.publicKey],
51
+ ['latestConfirmedRound', exports.aggregatorRoundStruct],
52
+ ['currentRound', exports.aggregatorRoundStruct],
53
+ ['jobPubkeysData', (0, beet_1.uniformFixedSizeArray)(beet_solana_1.publicKey, 16)],
54
+ ['jobHashes', (0, beet_1.uniformFixedSizeArray)(exports.hashStruct, 16)],
55
+ ['jobPubkeysSize', beet_1.u32],
56
+ ['jobsChecksum', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
57
+ ['authority', beet_solana_1.publicKey],
58
+ ['historyBuffer', beet_solana_1.publicKey],
59
+ ['previousConfirmedRoundResult', exports.switchboardDecimalStruct],
60
+ ['previousConfirmedRoundSlot', solana_1.u64],
61
+ ['disableCrank', beet_1.bool],
62
+ ['jobWeights', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 16)],
63
+ ['creationTimestamp', solana_1.i64],
64
+ ['resolutionMode', beet_1.u8],
65
+ ['basePriorityFee', beet_1.u32],
66
+ ['priorityFeeBump', beet_1.u32],
67
+ ['priorityFeeBumpPeriod', beet_1.u32],
68
+ ['maxPriorityFeeMultiplier', beet_1.u32],
69
+ ['parentFunction', beet_solana_1.publicKey],
70
+ ['ebuf', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 90)],
71
+ ], (args) => args);
72
+ //# sourceMappingURL=structs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/switchboard/structs.ts"],"names":[],"mappings":";;;AAAA,oDAOmC;AACnC,kEAA6D;AAG7D,+CAA0D;AAE1D,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAClC,qGAAmB,CAAA;IACnB,yGAAqB,CAAA;AACvB,CAAC,EAHW,wBAAwB,wCAAxB,wBAAwB,QAGnC;AAMY,QAAA,UAAU,GAAG,IAAI,iBAAU,CACtC,CAAC,CAAC,MAAM,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EACzC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAY,CACvB,CAAC;AAOW,QAAA,wBAAwB,GAAG,IAAI,iBAAU,CACpD;IACE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BAAgB,EAAE,SAAE,CAAC;IACtB,CAAC,iBAAiB,EAAE,UAAG,CAAC;IACxB,CAAC,iBAAiB,EAAE,UAAG,CAAC;IACxB,CAAC,uBAAuB,EAAE,UAAG,CAAC;IAC9B,CAAC,0BAA0B,EAAE,UAAG,CAAC;IACjC,CAAC,gBAAgB,EAAE,uBAAS,CAAC;IAC7B,CAAC,MAAM,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,EAAE,CAAC,CAAC;CACxC,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAyB,CACpC,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 = "tensor";
4
- export declare const tensorPlatform: Platform;
4
+ export declare const platform: Platform;
5
5
  export declare const cachePrefix = "tensor";
6
6
  export declare const tensorPid: PublicKey;
7
7
  export declare const locksPid: PublicKey;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.locksPid = exports.tensorPid = exports.cachePrefix = exports.tensorPlatform = exports.platformId = void 0;
3
+ exports.locksPid = exports.tensorPid = exports.cachePrefix = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'tensor';
6
- exports.tensorPlatform = {
6
+ exports.platform = {
7
7
  id: exports.platformId,
8
8
  name: 'Tensor',
9
9
  image: 'https://sonar.watch/img/platforms/tensor.png',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,8CAA8C;IACrD,OAAO,EAAE,+BAA+B;IACxC,OAAO,EAAE,2BAA2B;CACrC,CAAC;AACW,QAAA,WAAW,GAAG,QAAQ,CAAC;AAEvB,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,6CAA6C,CAC9C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,8CAA8C;IACrD,OAAO,EAAE,+BAA+B;IACxC,OAAO,EAAE,2BAA2B;CACrC,CAAC;AACW,QAAA,WAAW,GAAG,QAAQ,CAAC;AAEvB,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,6CAA6C,CAC9C,CAAC"}
@@ -7,6 +7,6 @@ exports.fetchers = exports.platforms = void 0;
7
7
  const constants_1 = require("./constants");
8
8
  const bidsFetcher_1 = __importDefault(require("./bidsFetcher"));
9
9
  const locksFetcher_1 = __importDefault(require("./locksFetcher"));
10
- exports.platforms = [constants_1.tensorPlatform];
10
+ exports.platforms = [constants_1.platform];
11
11
  exports.fetchers = [bidsFetcher_1.default, locksFetcher_1.default];
12
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/index.ts"],"names":[],"mappings":";;;;;;AAIA,2CAA6C;AAC7C,gEAAwC;AACxC,kEAA0C;AAE7B,QAAA,SAAS,GAAe,CAAC,0BAAc,CAAC,CAAC;AACzC,QAAA,QAAQ,GAAc,CAAC,qBAAW,EAAE,sBAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/index.ts"],"names":[],"mappings":";;;;;;AAIA,2CAAuC;AACvC,gEAAwC;AACxC,kEAA0C;AAE7B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,QAAQ,GAAc,CAAC,qBAAW,EAAE,sBAAY,CAAC,CAAC"}
@@ -1,8 +1,7 @@
1
1
  import { Platform } from '@sonarwatch/portfolio-core';
2
- import { InputViewFunctionData } from '@aptos-labs/ts-sdk';
3
2
  export declare const platformId = "thala";
4
- export declare const thalaPlatform: Platform;
5
- export declare const programAdressThala = "0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01";
3
+ export declare const platform: Platform;
4
+ export declare const packageId = "0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01";
6
5
  export declare const vaultFilter = "0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01::vault::Vault<";
7
6
  export declare const vaultCollateralParamsFilter = "0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01::vault::VaultCollateralParams<";
8
7
  export declare const thlCoin = "0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::THL";
@@ -15,5 +14,13 @@ export declare const lpStableTypePrefix = "0x48271d39d0b05bd6efca2278f22277d6fcc
15
14
  export declare const lpWeightedTypePrefix = "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::WeightedPool";
16
15
  export declare const lpStableCoinInfoTypePrefix = "0x1::coin::CoinInfo<0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::stable_pool::StablePoolToken";
17
16
  export declare const lpWeightedCoinInfoTypePrefix = "0x1::coin::CoinInfo<0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::WeightedPoolToken";
18
- export declare const stabilityDepositPayload: (owner: string) => InputViewFunctionData;
19
- export declare const stabilityClaimablePayload: (owner: string) => InputViewFunctionData;
17
+ export declare const stabilityDepositPayload: (owner: string) => {
18
+ function: `${string}::${string}::${string}`;
19
+ typeArguments: string[];
20
+ functionArguments: string[];
21
+ };
22
+ export declare const stabilityClaimablePayload: (owner: string) => {
23
+ function: `${string}::${string}::${string}`;
24
+ typeArguments: never[];
25
+ functionArguments: string[];
26
+ };
@@ -1,25 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stabilityClaimablePayload = exports.stabilityDepositPayload = exports.lpWeightedCoinInfoTypePrefix = exports.lpStableCoinInfoTypePrefix = exports.lpWeightedTypePrefix = exports.lpStableTypePrefix = exports.lpWeightedTypeTokenPrefix = exports.lpStableTypeTokenPrefix = exports.programAddressLP = exports.stabilityEndpoint = exports.modCoin = exports.thlCoin = exports.vaultCollateralParamsFilter = exports.vaultFilter = exports.programAdressThala = exports.thalaPlatform = exports.platformId = void 0;
3
+ exports.stabilityClaimablePayload = exports.stabilityDepositPayload = exports.lpWeightedCoinInfoTypePrefix = exports.lpStableCoinInfoTypePrefix = exports.lpWeightedTypePrefix = exports.lpStableTypePrefix = exports.lpWeightedTypeTokenPrefix = exports.lpStableTypeTokenPrefix = exports.programAddressLP = exports.stabilityEndpoint = exports.modCoin = exports.thlCoin = exports.vaultCollateralParamsFilter = exports.vaultFilter = exports.packageId = exports.platform = exports.platformId = void 0;
4
4
  const aptos_1 = require("../../utils/aptos");
5
5
  exports.platformId = 'thala';
6
- exports.thalaPlatform = {
6
+ exports.platform = {
7
7
  id: exports.platformId,
8
8
  name: 'Thala',
9
9
  image: 'https://sonar.watch/img/platforms/thala.png',
10
10
  defiLlamaId: 'parent#thala-labs',
11
11
  website: 'https://www.thala.fi/',
12
12
  };
13
- exports.programAdressThala = '0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01';
13
+ exports.packageId = '0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01';
14
14
  const stabilityModule = 'stability_pool';
15
15
  const vaultModule = 'vault';
16
- const liquidityDeposit = `${exports.programAdressThala}::${stabilityModule}::account_deposit`;
17
- const liquidityClaimable = `${exports.programAdressThala}::${stabilityModule}::claimable_thl`;
18
- const cryptoType = `${exports.programAdressThala}::${stabilityModule}::Crypto`;
19
- exports.vaultFilter = `${exports.programAdressThala}::${vaultModule}::Vault<`;
20
- exports.vaultCollateralParamsFilter = `${exports.programAdressThala}::${vaultModule}::VaultCollateralParams<`;
16
+ const liquidityDeposit = `${exports.packageId}::${stabilityModule}::account_deposit`;
17
+ const liquidityClaimable = `${exports.packageId}::${stabilityModule}::claimable_thl`;
18
+ const cryptoType = `${exports.packageId}::${stabilityModule}::Crypto`;
19
+ exports.vaultFilter = `${exports.packageId}::${vaultModule}::Vault<`;
20
+ exports.vaultCollateralParamsFilter = `${exports.packageId}::${vaultModule}::VaultCollateralParams<`;
21
21
  exports.thlCoin = `0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::THL`;
22
- exports.modCoin = `${exports.programAdressThala}::mod_coin::MOD`;
22
+ exports.modCoin = `${exports.packageId}::mod_coin::MOD`;
23
23
  exports.stabilityEndpoint = 'https://app.thala.fi/api/total-stability';
24
24
  exports.programAddressLP = '0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af';
25
25
  exports.lpStableTypeTokenPrefix = `${exports.programAddressLP}::stable_pool::StablePoolToken`;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/constants.ts"],"names":[],"mappings":";;;AAEA,6CAA6C;AAEhC,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,mBAAmB;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,2BAMjC;AAEI,MAAM,yBAAyB,GAAG,CACvC,KAAa,EACU,EAAE,CAAC,CAAC;IAC3B,QAAQ,EAAE,kBAAkB;IAC5B,aAAa,EAAE,EAAE;IACjB,iBAAiB,EAAE,CAAC,KAAK,CAAC;CAC3B,CAAC,CAAC;AANU,QAAA,yBAAyB,6BAMnC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/constants.ts"],"names":[],"mappings":";;;AACA,6CAA6C;AAEhC,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,mBAAmB;IAChC,OAAO,EAAE,uBAAuB;CACjC,CAAC;AACW,QAAA,SAAS,GACpB,oEAAoE,CAAC;AAEvE,MAAM,eAAe,GAAG,gBAAgB,CAAC;AACzC,MAAM,WAAW,GAAG,OAAO,CAAC;AAE5B,MAAM,gBAAgB,GAAG,GAAG,iBAAS,KAAK,eAAe,mBAAmB,CAAC;AAC7E,MAAM,kBAAkB,GAAG,GAAG,iBAAS,KAAK,eAAe,iBAAiB,CAAC;AAE7E,MAAM,UAAU,GAAG,GAAG,iBAAS,KAAK,eAAe,UAAU,CAAC;AACjD,QAAA,WAAW,GAAG,GAAG,iBAAS,KAAK,WAAW,UAAU,CAAC;AACrD,QAAA,2BAA2B,GAAG,GAAG,iBAAS,KAAK,WAAW,0BAA0B,CAAC;AAErF,QAAA,OAAO,GAAG,kFAAkF,CAAC;AAC7F,QAAA,OAAO,GAAG,GAAG,iBAAS,iBAAiB,CAAC;AAExC,QAAA,iBAAiB,GAAG,0CAA0C,CAAC;AAE/D,QAAA,gBAAgB,GAC3B,oEAAoE,CAAC;AAC1D,QAAA,uBAAuB,GAAG,GAAG,wBAAgB,gCAAgC,CAAC;AAC9E,QAAA,yBAAyB,GAAG,GAAG,wBAAgB,oCAAoC,CAAC;AACpF,QAAA,kBAAkB,GAAG,GAAG,wBAAgB,2BAA2B,CAAC;AACpE,QAAA,oBAAoB,GAAG,GAAG,wBAAgB,+BAA+B,CAAC;AAC1E,QAAA,0BAA0B,GAAG,GAAG,gBAAQ,IAAI,+BAAuB,EAAE,CAAC;AACtE,QAAA,4BAA4B,GAAG,GAAG,gBAAQ,IAAI,iCAAyB,EAAE,CAAC;AAEhF,MAAM,uBAAuB,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC;IACzD,QAAQ,EAAE,gBAAqD;IAC/D,aAAa,EAAE,CAAC,UAAU,CAAC;IAC3B,iBAAiB,EAAE,CAAC,KAAK,CAAC;CAC3B,CAAC,CAAC;AAJU,QAAA,uBAAuB,2BAIjC;AAEI,MAAM,yBAAyB,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC;IAC3D,QAAQ,EAAE,kBAAuD;IACjE,aAAa,EAAE,EAAE;IACjB,iBAAiB,EAAE,CAAC,KAAK,CAAC;CAC3B,CAAC,CAAC;AAJU,QAAA,yBAAyB,6BAInC"}
@@ -10,7 +10,7 @@ const stakingAprJob_1 = __importDefault(require("./stakingAprJob"));
10
10
  const vaultsFetcher_1 = __importDefault(require("./vaultsFetcher"));
11
11
  const stabilityPoolFetcher_1 = __importDefault(require("./stabilityPoolFetcher"));
12
12
  const constants_1 = require("./constants");
13
- exports.platforms = [constants_1.thalaPlatform];
13
+ exports.platforms = [constants_1.platform];
14
14
  exports.jobs = [vaultsRatesJob_1.default, lpTokensJob_1.default, stakingAprJob_1.default];
15
15
  exports.fetchers = [vaultsFetcher_1.default, stabilityPoolFetcher_1.default];
16
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/index.ts"],"names":[],"mappings":";;;;;;AAGA,sEAA4C;AAC5C,gEAAuC;AACvC,oEAA4C;AAC5C,oEAA4C;AAC5C,kFAAiD;AACjD,2CAA4C;AAE/B,QAAA,SAAS,GAAe,CAAC,yBAAa,CAAC,CAAC;AACxC,QAAA,IAAI,GAAU,CAAC,wBAAY,EAAE,qBAAU,EAAE,uBAAa,CAAC,CAAC;AACxD,QAAA,QAAQ,GAAc,CAAC,uBAAa,EAAE,8BAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/index.ts"],"names":[],"mappings":";;;;;;AAGA,sEAA4C;AAC5C,gEAAuC;AACvC,oEAA4C;AAC5C,oEAA4C;AAC5C,kFAAiD;AACjD,2CAAuC;AAE1B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,wBAAY,EAAE,qBAAU,EAAE,uBAAa,CAAC,CAAC;AACxD,QAAA,QAAQ,GAAc,CAAC,uBAAa,EAAE,8BAAW,CAAC,CAAC"}
@@ -15,7 +15,7 @@ const helpers_1 = require("./helpers");
15
15
  const aptos_1 = require("../../utils/aptos");
16
16
  const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
17
17
  const connection = (0, clients_1.getClientAptos)();
18
- const vaultsRate = yield (0, aptos_1.getAccountResources)(connection, constants_1.programAdressThala);
18
+ const vaultsRate = yield (0, aptos_1.getAccountResources)(connection, constants_1.packageId);
19
19
  if (!vaultsRate)
20
20
  return;
21
21
  vaultsRate.forEach((resource) => {
@@ -1 +1 @@
1
- {"version":3,"file":"vaultsRatesJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/vaultsRatesJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2CAIqB;AACrB,iDAAqD;AAErD,uCAAwC;AACxC,6CAAuE;AAIvE,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,UAAU,GAAG,IAAA,wBAAc,GAAE,CAAC;IACpC,MAAM,UAAU,GAAG,MAAM,IAAA,2BAAmB,EAAC,UAAU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,UAAU,CAAC,uCAA2B,CAAC;YAAE,OAAO;QACnE,IAAI,CAAC,QAAQ,CAAC,IAAI;YAAE,OAAO;QAC3B,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAsC,CAAC;QAClE,IAAI,CAAC,SAAS;YAAE,OAAO;QACvB,KAAK,CAAC,OAAO,CACX,IAAA,qBAAa,EAAC,QAAQ,CAAC,IAAI,CAAC,EAC5B,IAAA,qBAAW,EAAC,MAAM,CAAC,SAAS,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,EAC3D;YACE,MAAM,EAAE,GAAG,sBAAU,cAAc;SACpC,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,eAAe;IAChC,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { Platform } from '@sonarwatch/portfolio-core';
2
2
  export declare const platformId = "turbos";
3
- export declare const turbosPlatform: Platform;
3
+ export declare const platform: Platform;
4
4
  export declare const clmmPoolsPrefix = "turbos-clmmPools";
5
5
  export declare const poolTableId = "0x08984ed8705f44b6403705dc248896e56ab7961447820ae29be935ce0d32198b";
6
6
  export declare const packageIdOriginal = "0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1";
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.clmmNftType = exports.packageIdOriginal = exports.poolTableId = exports.clmmPoolsPrefix = exports.turbosPlatform = exports.platformId = void 0;
3
+ exports.clmmNftType = exports.packageIdOriginal = exports.poolTableId = exports.clmmPoolsPrefix = exports.platform = exports.platformId = void 0;
4
4
  exports.platformId = 'turbos';
5
- exports.turbosPlatform = {
5
+ exports.platform = {
6
6
  id: exports.platformId,
7
7
  name: 'Turbos',
8
8
  image: 'https://sonar.watch/img/platforms/turbos.png',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/turbos/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,6BAA6B;CACvC,CAAC;AACW,QAAA,eAAe,GAAG,GAAG,kBAAU,YAAY,CAAC;AAE5C,QAAA,WAAW,GACtB,oEAAoE,CAAC;AAE1D,QAAA,iBAAiB,GAC5B,oEAAoE,CAAC;AAE1D,QAAA,WAAW,GAAG,GAAG,yBAAiB,mCAAmC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/turbos/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,6BAA6B;CACvC,CAAC;AACW,QAAA,eAAe,GAAG,GAAG,kBAAU,YAAY,CAAC;AAE5C,QAAA,WAAW,GACtB,oEAAoE,CAAC;AAE1D,QAAA,iBAAiB,GAC5B,oEAAoE,CAAC;AAE1D,QAAA,WAAW,GAAG,GAAG,yBAAiB,mCAAmC,CAAC"}
@@ -7,7 +7,7 @@ exports.fetchers = exports.jobs = exports.platforms = void 0;
7
7
  const poolsJob_1 = __importDefault(require("./poolsJob"));
8
8
  const clmmsPositionsFetcher_1 = __importDefault(require("./clmmsPositionsFetcher"));
9
9
  const constants_1 = require("./constants");
10
- exports.platforms = [constants_1.turbosPlatform];
10
+ exports.platforms = [constants_1.platform];
11
11
  exports.jobs = [poolsJob_1.default];
12
12
  exports.fetchers = [clmmsPositionsFetcher_1.default];
13
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/turbos/index.ts"],"names":[],"mappings":";;;;;;AAGA,0DAAkC;AAClC,oFAA0D;AAC1D,2CAA6C;AAEhC,QAAA,SAAS,GAAe,CAAC,0BAAc,CAAC,CAAC;AACzC,QAAA,IAAI,GAAU,CAAC,kBAAQ,CAAC,CAAC;AACzB,QAAA,QAAQ,GAAc,CAAC,+BAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/turbos/index.ts"],"names":[],"mappings":";;;;;;AAGA,0DAAkC;AAClC,oFAA0D;AAC1D,2CAAuC;AAE1B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,kBAAQ,CAAC,CAAC;AACzB,QAAA,QAAQ,GAAc,CAAC,+BAAmB,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { Platform } from '@sonarwatch/portfolio-core';
2
2
  import { UniswapNetworkConfig } from './types';
3
3
  export declare const platformId = "uniswap";
4
- export declare const uniswapPlatform: Platform;
4
+ export declare const platform: Platform;
5
5
  export declare const poolsPrefix = "uniswap-v3";
6
6
  export declare const poolsKey = "poolsInfo";
7
7
  export declare const uniswapNetworksConfigs: UniswapNetworkConfig[];
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.uniswapNetworksConfigs = exports.poolsKey = exports.poolsPrefix = exports.uniswapPlatform = exports.platformId = void 0;
3
+ exports.uniswapNetworksConfigs = exports.poolsKey = exports.poolsPrefix = exports.platform = exports.platformId = void 0;
4
4
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
5
5
  exports.platformId = 'uniswap';
6
- exports.uniswapPlatform = {
6
+ exports.platform = {
7
7
  id: exports.platformId,
8
8
  name: 'Uniswap',
9
9
  image: 'https://sonar.watch/img/platforms/uniswap.png',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap/constants.ts"],"names":[],"mappings":";;;AAAA,+DAAiE;AAGpD,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,gBAAgB;IAC7B,OAAO,EAAE,sBAAsB;CAChC,CAAC;AAEW,QAAA,WAAW,GAAG,YAAY,CAAC;AAC3B,QAAA,QAAQ,GAAG,WAAW,CAAC;AAEvB,QAAA,sBAAsB,GAA2B;IAC5D;QACE,SAAS,EAAE,0BAAS,CAAC,QAAQ;QAC7B,OAAO,EAAE,4CAA4C;QACrD,eAAe,EAAE,4CAA4C;KAC9D;IACD;QACE,SAAS,EAAE,0BAAS,CAAC,OAAO;QAC5B,OAAO,EAAE,4CAA4C;QACrD,eAAe,EAAE,4CAA4C;KAC9D;IACD,IAAI;IACJ,mCAAmC;IACnC,2DAA2D;IAC3D,mEAAmE;IACnE,KAAK;IACL,IAAI;IACJ,+BAA+B;IAC/B,2DAA2D;IAC3D,mEAAmE;IACnE,KAAK;IACL;QACE,SAAS,EAAE,0BAAS,CAAC,GAAG;QACxB,OAAO,EAAE,4CAA4C;QACrD,eAAe,EAAE,4CAA4C;KAC9D;IACD,IAAI;IACJ,mCAAmC;IACnC,2DAA2D;IAC3D,mEAAmE;IACnE,KAAK;CACN,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap/constants.ts"],"names":[],"mappings":";;;AAAA,+DAAiE;AAGpD,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,gBAAgB;IAC7B,OAAO,EAAE,sBAAsB;CAChC,CAAC;AAEW,QAAA,WAAW,GAAG,YAAY,CAAC;AAC3B,QAAA,QAAQ,GAAG,WAAW,CAAC;AAEvB,QAAA,sBAAsB,GAA2B;IAC5D;QACE,SAAS,EAAE,0BAAS,CAAC,QAAQ;QAC7B,OAAO,EAAE,4CAA4C;QACrD,eAAe,EAAE,4CAA4C;KAC9D;IACD;QACE,SAAS,EAAE,0BAAS,CAAC,OAAO;QAC5B,OAAO,EAAE,4CAA4C;QACrD,eAAe,EAAE,4CAA4C;KAC9D;IACD,IAAI;IACJ,mCAAmC;IACnC,2DAA2D;IAC3D,mEAAmE;IACnE,KAAK;IACL,IAAI;IACJ,+BAA+B;IAC/B,2DAA2D;IAC3D,mEAAmE;IACnE,KAAK;IACL;QACE,SAAS,EAAE,0BAAS,CAAC,GAAG;QACxB,OAAO,EAAE,4CAA4C;QACrD,eAAe,EAAE,4CAA4C;KAC9D;IACD,IAAI;IACJ,mCAAmC;IACnC,2DAA2D;IAC3D,mEAAmE;IACnE,KAAK;CACN,CAAC"}
@@ -7,5 +7,5 @@ exports.jobs = [];
7
7
  exports.fetchers = [
8
8
  ...constants_1.uniswapNetworksConfigs.map((config) => (0, getUniV3PositionsFetcher_1.getUniV3PositionsFetcher)(config, constants_1.platformId, 'V3')),
9
9
  ];
10
- exports.platforms = [constants_1.uniswapPlatform];
10
+ exports.platforms = [constants_1.platform];
11
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap/index.ts"],"names":[],"mappings":";;;AAIA,2CAIqB;AACrB,yEAAsE;AAEzD,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc;IACjC,GAAG,kCAAsB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CACvC,IAAA,mDAAwB,EAAC,MAAM,EAAE,sBAAU,EAAE,IAAI,CAAC,CACnD;CACF,CAAC;AACW,QAAA,SAAS,GAAe,CAAC,2BAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap/index.ts"],"names":[],"mappings":";;;AAIA,2CAA2E;AAC3E,yEAAsE;AAEzD,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc;IACjC,GAAG,kCAAsB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CACvC,IAAA,mDAAwB,EAAC,MAAM,EAAE,sBAAU,EAAE,IAAI,CAAC,CACnD;CACF,CAAC;AACW,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC"}
@@ -40,28 +40,28 @@ function getPairKey(version) {
40
40
  exports.getPairKey = getPairKey;
41
41
  function getPairsV2FromTheGraph(url, length = 300) {
42
42
  return __awaiter(this, void 0, void 0, function* () {
43
- const query = (0, graphql_request_1.gql) `
44
- {
45
- pairs(
46
- orderBy: reserveUSD
47
- first: ${length}
48
- orderDirection: desc
49
- where: { trackedReserveETH_not: "0" }
50
- ) {
51
- id
52
- reserve0
53
- reserve1
54
- totalSupply
55
- token0 {
56
- id
57
- decimals
58
- }
59
- token1 {
60
- id
61
- decimals
62
- }
63
- }
64
- }
43
+ const query = (0, graphql_request_1.gql) `
44
+ {
45
+ pairs(
46
+ orderBy: reserveUSD
47
+ first: ${length}
48
+ orderDirection: desc
49
+ where: { trackedReserveETH_not: "0" }
50
+ ) {
51
+ id
52
+ reserve0
53
+ reserve1
54
+ totalSupply
55
+ token0 {
56
+ id
57
+ decimals
58
+ }
59
+ token1 {
60
+ id
61
+ decimals
62
+ }
63
+ }
64
+ }
65
65
  `;
66
66
  const res = yield (0, graphql_request_1.default)(url, query);
67
67
  const pairs = res.pairs;
@@ -1,4 +1,4 @@
1
1
  import { Platform } from '@sonarwatch/portfolio-core';
2
2
  export declare const platformId = "venus";
3
- export declare const venusPlatform: Platform;
3
+ export declare const platform: Platform;
4
4
  export declare const comptrollerVenus = "0xfD36E2c2a6789Db23113685031d7F16329158384";
@@ -1,14 +1,10 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.comptrollerVenus = exports.venusPlatform = exports.platformId = void 0;
7
- const upperCaseFirstLetter_1 = __importDefault(require("../../utils/misc/upperCaseFirstLetter"));
3
+ exports.comptrollerVenus = exports.platform = exports.platformId = void 0;
8
4
  exports.platformId = 'venus';
9
- exports.venusPlatform = {
5
+ exports.platform = {
10
6
  id: exports.platformId,
11
- name: (0, upperCaseFirstLetter_1.default)(exports.platformId),
7
+ name: 'Venus',
12
8
  image: 'https://sonar.watch/img/platforms/venus.png',
13
9
  defiLlamaId: 'venus-core-pool',
14
10
  website: 'https://app.venus.io/',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/venus/constants.ts"],"names":[],"mappings":";;;;;;AACA,iGAAyE;AAE5D,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,IAAA,8BAAoB,EAAC,kBAAU,CAAC;IACtC,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,iBAAiB;IAC9B,OAAO,EAAE,uBAAuB;CACjC,CAAC;AAEW,QAAA,gBAAgB,GAAG,4CAA4C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/venus/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,iBAAiB;IAC9B,OAAO,EAAE,uBAAuB;CACjC,CAAC;AAEW,QAAA,gBAAgB,GAAG,4CAA4C,CAAC"}
@@ -14,5 +14,5 @@ exports.jobs = [
14
14
  exports.fetchers = [
15
15
  (0, getPositionsV2Fetcher_1.default)(portfolio_core_1.NetworkId.bnb, constants_1.platformId),
16
16
  ];
17
- exports.platforms = [constants_1.venusPlatform];
17
+ exports.platforms = [constants_1.platform];
18
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/venus/index.ts"],"names":[],"mappings":";;;;;;AAAA,+DAAiE;AAGjE,kFAA0D;AAC1D,2CAA0E;AAC1E,8FAAsE;AAEzD,QAAA,IAAI,GAAU;IACzB,IAAA,yBAAe,EAAC,0BAAS,CAAC,GAAG,EAAE,sBAAU,EAAE,4BAAgB,CAAC;CAC7D,CAAC;AACW,QAAA,QAAQ,GAAc;IACjC,IAAA,+BAAqB,EAAC,0BAAS,CAAC,GAAG,EAAE,sBAAU,CAAC;CACjD,CAAC;AACW,QAAA,SAAS,GAAe,CAAC,yBAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/venus/index.ts"],"names":[],"mappings":";;;;;;AAAA,+DAAiE;AAGjE,kFAA0D;AAC1D,2CAAqE;AACrE,8FAAsE;AAEzD,QAAA,IAAI,GAAU;IACzB,IAAA,yBAAe,EAAC,0BAAS,CAAC,GAAG,EAAE,sBAAU,EAAE,4BAAgB,CAAC;CAC7D,CAAC;AACW,QAAA,QAAQ,GAAc;IACjC,IAAA,+BAAqB,EAAC,0BAAS,CAAC,GAAG,EAAE,sBAAU,CAAC;CACjD,CAAC;AACW,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC"}
@@ -5,7 +5,7 @@ exports.platformId = 'wormhole';
5
5
  exports.platform = {
6
6
  id: exports.platformId,
7
7
  name: 'Wormhole',
8
- image: 'https://sonar.watch/img/platforms/wormhole.png',
8
+ image: 'https://sonar.watch/img/platforms/wormhole.webp',
9
9
  website: 'https://airdrop.wormhole.com/',
10
10
  twitter: 'https://twitter.com/wormhole',
11
11
  };
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/wormhole/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,gDAAgD;IACvD,OAAO,EAAE,+BAA+B;IACxC,OAAO,EAAE,8BAA8B;CACxC,CAAC;AAEW,QAAA,MAAM,GAAG,2CAA2C,CAAC;AACrD,QAAA,KAAK,GAAG,8CAA8C,CAAC;AACvD,QAAA,QAAQ,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/wormhole/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,+BAA+B;IACxC,OAAO,EAAE,8BAA8B;CACxC,CAAC;AAEW,QAAA,MAAM,GAAG,2CAA2C,CAAC;AACrD,QAAA,KAAK,GAAG,8CAA8C,CAAC;AACvD,QAAA,QAAQ,GAAG,CAAC,CAAC"}
@@ -35,7 +35,7 @@ exports.xStakingConfigs = [
35
35
  vault: constants_1.vaultPubkey,
36
36
  xMint: constants_1.xAuryMint,
37
37
  xDecimals: 9,
38
- platformId: constants_1.auroryPlatformId,
38
+ platformId: constants_1.platformId,
39
39
  },
40
40
  {
41
41
  mint: 'GTH3wG3NErjwcf7VGCoXEXkgXSHvYhx5gtATeeM5JAS1',
@@ -67,7 +67,7 @@ exports.xStakingConfigs = [
67
67
  vault: '2eFeetCpZJprr67F2dToT52BbSkdeqKZT6hmVdVG14eU',
68
68
  xMint: 'xHWKW3Yyji9xe6FnTmDqu3rBApt3Ysu5ysywUA85Len',
69
69
  xDecimals: 6,
70
- platformId: constants_2.hawksightPlatform.id,
70
+ platformId: constants_2.platformId,
71
71
  },
72
72
  ];
73
73
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/x-staking-solana/constants.ts"],"names":[],"mappings":";;;AACA,mDAM6B;AAC7B,sDAA2D;AAE9C,QAAA,sBAAsB,GAAG,cAAc,CAAC;AACxC,QAAA,oBAAoB,GAAa;IAC5C,EAAE,EAAE,8BAAsB;IAC1B,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,oDAAoD;IAC3D,qEAAqE;IACrE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,qBAAqB,GAAG,aAAa,CAAC;AACtC,QAAA,mBAAmB,GAAa;IAC3C,EAAE,EAAE,6BAAqB;IACzB,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,mDAAmD;IAC1D,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,mBAAmB,GAAG,WAAW,CAAC;AAClC,QAAA,iBAAiB,GAAa;IACzC,EAAE,EAAE,2BAAmB;IACvB,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,uCAAuC;IAChD,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,eAAe,GAAoB;IAC9C;QACE,IAAI,EAAE,oBAAQ;QACd,QAAQ,EAAR,oBAAQ;QACR,KAAK,EAAE,uBAAW;QAClB,KAAK,EAAE,qBAAS;QAChB,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,4BAAgB;KAC7B;IACD;QACE,IAAI,EAAE,8CAA8C;QACpD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,8CAA8C;QACrD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,8BAAsB;KACnC;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,6BAAqB;KAClC;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,2BAAmB;KAChC;IACD;QACE,IAAI,EAAE,8CAA8C;QACpD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,6BAAiB,CAAC,EAAE;KACjC;CACF,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/x-staking-solana/constants.ts"],"names":[],"mappings":";;;AACA,mDAM6B;AAC7B,sDAA2E;AAE9D,QAAA,sBAAsB,GAAG,cAAc,CAAC;AACxC,QAAA,oBAAoB,GAAa;IAC5C,EAAE,EAAE,8BAAsB;IAC1B,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,oDAAoD;IAC3D,qEAAqE;IACrE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,qBAAqB,GAAG,aAAa,CAAC;AACtC,QAAA,mBAAmB,GAAa;IAC3C,EAAE,EAAE,6BAAqB;IACzB,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,mDAAmD;IAC1D,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,mBAAmB,GAAG,WAAW,CAAC;AAClC,QAAA,iBAAiB,GAAa;IACzC,EAAE,EAAE,2BAAmB;IACvB,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,uCAAuC;IAChD,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,eAAe,GAAoB;IAC9C;QACE,IAAI,EAAE,oBAAQ;QACd,QAAQ,EAAR,oBAAQ;QACR,KAAK,EAAE,uBAAW;QAClB,KAAK,EAAE,qBAAS;QAChB,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,sBAAgB;KAC7B;IACD;QACE,IAAI,EAAE,8CAA8C;QACpD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,8CAA8C;QACrD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,8BAAsB;KACnC;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,6BAAqB;KAClC;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,2BAAmB;KAChC;IACD;QACE,IAAI,EAAE,8CAA8C;QACpD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,sBAAmB;KAChC;CACF,CAAC"}
@@ -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 = "zeta";
4
- export declare const zetaPlatform: Platform;
4
+ export declare const platform: Platform;
5
5
  export declare const usdcMint = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
6
6
  export declare const programId: PublicKey;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.programId = exports.usdcMint = exports.zetaPlatform = exports.platformId = void 0;
3
+ exports.programId = exports.usdcMint = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'zeta';
6
- exports.zetaPlatform = {
6
+ exports.platform = {
7
7
  id: exports.platformId,
8
8
  name: 'Zeta',
9
9
  image: 'https://sonar.watch/img/platforms/zeta.png',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,YAAY,GAAa;IACpC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,4CAA4C;IACnD,WAAW,EAAE,MAAM;IACnB,OAAO,EAAE,2BAA2B;CACrC,CAAC;AAEW,QAAA,QAAQ,GAAG,8CAA8C,CAAC;AAC1D,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,4CAA4C;IACnD,WAAW,EAAE,MAAM;IACnB,OAAO,EAAE,2BAA2B;CACrC,CAAC;AAEW,QAAA,QAAQ,GAAG,8CAA8C,CAAC;AAC1D,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC"}
@@ -8,5 +8,5 @@ const depositsFetcher_1 = __importDefault(require("./depositsFetcher"));
8
8
  const constants_1 = require("./constants");
9
9
  exports.jobs = [];
10
10
  exports.fetchers = [depositsFetcher_1.default];
11
- exports.platforms = [constants_1.zetaPlatform];
11
+ exports.platforms = [constants_1.platform];
12
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/index.ts"],"names":[],"mappings":";;;;;;AAGA,wEAAgD;AAChD,2CAA2C;AAE9B,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,yBAAe,CAAC,CAAC;AACxC,QAAA,SAAS,GAAe,CAAC,wBAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/index.ts"],"names":[],"mappings":";;;;;;AAGA,wEAAgD;AAChD,2CAAuC;AAE1B,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,yBAAe,CAAC,CAAC;AACxC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC"}
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.poolQueryMsg = exports.minterQueryMsg = exports.tokenInfoQueryMsg = exports.infoQueryMsg = void 0;
4
- exports.infoQueryMsg = JSON.parse(`{
5
- "info": {}
4
+ exports.infoQueryMsg = JSON.parse(`{
5
+ "info": {}
6
6
  }`);
7
- exports.tokenInfoQueryMsg = JSON.parse(`{
8
- "token_info": {}
7
+ exports.tokenInfoQueryMsg = JSON.parse(`{
8
+ "token_info": {}
9
9
  }`);
10
- exports.minterQueryMsg = JSON.parse(`{
11
- "minter": {}
10
+ exports.minterQueryMsg = JSON.parse(`{
11
+ "minter": {}
12
12
  }`);
13
- exports.poolQueryMsg = JSON.parse(`{
14
- "pool": {}
13
+ exports.poolQueryMsg = JSON.parse(`{
14
+ "pool": {}
15
15
  }`);
16
16
  //# sourceMappingURL=constants.js.map