@sonarwatch/portfolio-plugins 0.12.37 → 0.12.39

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. package/CHANGELOG.md +1847 -1839
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/plugins/balancer/helpers/pools.js +21 -21
  5. package/src/plugins/drift/constants.d.ts +1 -0
  6. package/src/plugins/drift/constants.js +2 -1
  7. package/src/plugins/drift/constants.js.map +1 -1
  8. package/src/plugins/drift/depositsFetcher.js +63 -1
  9. package/src/plugins/drift/depositsFetcher.js.map +1 -1
  10. package/src/plugins/drift/filters.d.ts +1 -0
  11. package/src/plugins/drift/filters.js +4 -1
  12. package/src/plugins/drift/filters.js.map +1 -1
  13. package/src/plugins/drift/index.js +2 -1
  14. package/src/plugins/drift/index.js.map +1 -1
  15. package/src/plugins/drift/perpHelpers/amm.d.ts +74 -0
  16. package/src/plugins/drift/perpHelpers/amm.js +567 -0
  17. package/src/plugins/drift/perpHelpers/amm.js.map +1 -0
  18. package/src/plugins/drift/perpHelpers/assert.d.ts +1 -0
  19. package/src/plugins/drift/perpHelpers/assert.js +10 -0
  20. package/src/plugins/drift/perpHelpers/assert.js.map +1 -0
  21. package/src/plugins/drift/perpHelpers/constants.d.ts +27 -0
  22. package/src/plugins/drift/perpHelpers/constants.js +35 -0
  23. package/src/plugins/drift/perpHelpers/constants.js.map +1 -0
  24. package/src/plugins/drift/perpHelpers/convert.d.ts +0 -0
  25. package/src/plugins/drift/perpHelpers/convert.js +2 -0
  26. package/src/plugins/drift/perpHelpers/convert.js.map +1 -0
  27. package/src/plugins/drift/perpHelpers/getOraclePrice.d.ts +4 -0
  28. package/src/plugins/drift/perpHelpers/getOraclePrice.js +61 -0
  29. package/src/plugins/drift/perpHelpers/getOraclePrice.js.map +1 -0
  30. package/src/plugins/drift/perpHelpers/getPerpMarket.d.ts +4 -0
  31. package/src/plugins/drift/perpHelpers/getPerpMarket.js +33 -0
  32. package/src/plugins/drift/perpHelpers/getPerpMarket.js.map +1 -0
  33. package/src/plugins/drift/perpHelpers/margin.d.ts +10 -0
  34. package/src/plugins/drift/perpHelpers/margin.js +82 -0
  35. package/src/plugins/drift/perpHelpers/margin.js.map +1 -0
  36. package/src/plugins/drift/perpHelpers/math.d.ts +4 -0
  37. package/src/plugins/drift/perpHelpers/math.js +29 -0
  38. package/src/plugins/drift/perpHelpers/math.js.map +1 -0
  39. package/src/plugins/drift/perpHelpers/oracle.d.ts +6 -0
  40. package/src/plugins/drift/perpHelpers/oracle.js +54 -0
  41. package/src/plugins/drift/perpHelpers/oracle.js.map +1 -0
  42. package/src/plugins/drift/perpHelpers/orders.d.ts +2 -0
  43. package/src/plugins/drift/perpHelpers/orders.js +9 -0
  44. package/src/plugins/drift/perpHelpers/orders.js.map +1 -0
  45. package/src/plugins/drift/perpHelpers/position.d.ts +44 -0
  46. package/src/plugins/drift/perpHelpers/position.js +184 -0
  47. package/src/plugins/drift/perpHelpers/position.js.map +1 -0
  48. package/src/plugins/drift/perpHelpers/prelaunchOracle.d.ts +3 -0
  49. package/src/plugins/drift/perpHelpers/prelaunchOracle.js +20 -0
  50. package/src/plugins/drift/perpHelpers/prelaunchOracle.js.map +1 -0
  51. package/src/plugins/drift/perpHelpers/pyth.d.ts +5 -0
  52. package/src/plugins/drift/perpHelpers/pyth.js +42 -0
  53. package/src/plugins/drift/perpHelpers/pyth.js.map +1 -0
  54. package/src/plugins/drift/perpHelpers/repeg.d.ts +14 -0
  55. package/src/plugins/drift/perpHelpers/repeg.js +162 -0
  56. package/src/plugins/drift/perpHelpers/repeg.js.map +1 -0
  57. package/src/plugins/drift/perpHelpers/switchboard.d.ts +3 -0
  58. package/src/plugins/drift/perpHelpers/switchboard.js +31 -0
  59. package/src/plugins/drift/perpHelpers/switchboard.js.map +1 -0
  60. package/src/plugins/drift/perpHelpers/types.d.ts +28 -0
  61. package/src/plugins/drift/perpHelpers/types.js +19 -0
  62. package/src/plugins/drift/perpHelpers/types.js.map +1 -0
  63. package/src/plugins/drift/prepMarketsJob.d.ts +3 -0
  64. package/src/plugins/drift/prepMarketsJob.js +38 -0
  65. package/src/plugins/drift/prepMarketsJob.js.map +1 -0
  66. package/src/plugins/drift/struct.d.ts +82 -76
  67. package/src/plugins/drift/struct.js +79 -74
  68. package/src/plugins/drift/struct.js.map +1 -1
  69. package/src/plugins/drift/types.d.ts +1 -0
  70. package/src/plugins/jupiter/exchange/perpetualFetcher.js +3 -6
  71. package/src/plugins/jupiter/exchange/perpetualFetcher.js.map +1 -1
  72. package/src/plugins/jupiter/exchange/valueAverageFetcher.js.map +1 -1
  73. package/src/plugins/jupiter/helpers.d.ts +2 -2
  74. package/src/plugins/jupiter/helpers.js.map +1 -1
  75. package/src/plugins/sushiswap/helpers.js +24 -24
  76. package/src/plugins/uniswap-v2/helpers.js +22 -22
  77. package/src/plugins/zeta/airdropFetcher.js +14 -14
  78. package/src/utils/sei/constants.js +8 -8
  79. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -2,6 +2,7 @@
2
2
  import { BeetStruct } from '@metaplex-foundation/beet';
3
3
  import { PublicKey } from '@solana/web3.js';
4
4
  import BigNumber from 'bignumber.js';
5
+ import BN from 'bn.js';
5
6
  export declare enum OrderTriggerCondition {
6
7
  Above = 0,
7
8
  Below = 1,
@@ -62,7 +63,12 @@ export declare enum OracleSource {
62
63
  QuoteAsset = 2,
63
64
  Pyth1K = 3,
64
65
  Pyth1M = 4,
65
- PythStableCoin = 5
66
+ PythStableCoin = 5,
67
+ Prelaunch = 6,
68
+ PythPull = 7,
69
+ Pyth1KPull = 8,
70
+ Pyth1MPull = 9,
71
+ PythStableCoinPull = 10
66
72
  }
67
73
  export declare enum ContractType {
68
74
  Perpetual = 0,
@@ -103,18 +109,18 @@ export type Order = {
103
109
  };
104
110
  export declare const orderStruct: BeetStruct<Order, Partial<Order>>;
105
111
  export type PerpPosition = {
106
- lastCumulativeFundingRate: BigNumber;
107
- baseAssetAmount: BigNumber;
108
- quoteAssetAmount: BigNumber;
109
- quoteBreakEvenAmount: BigNumber;
110
- quoteEntryAmount: BigNumber;
111
- openBids: BigNumber;
112
- openAsks: BigNumber;
113
- settledPnl: BigNumber;
114
- lpShares: BigNumber;
115
- lastBaseAssetAmountPerLp: BigNumber;
116
- lastQuoteAssetAmountPerLp: BigNumber;
117
- remainderBaseAssetAmount: BigNumber;
112
+ lastCumulativeFundingRate: BN;
113
+ baseAssetAmount: BN;
114
+ quoteAssetAmount: BN;
115
+ quoteBreakEvenAmount: BN;
116
+ quoteEntryAmount: BN;
117
+ openBids: BN;
118
+ openAsks: BN;
119
+ settledPnl: BN;
120
+ lpShares: BN;
121
+ lastBaseAssetAmountPerLp: BN;
122
+ lastQuoteAssetAmountPerLp: BN;
123
+ remainderBaseAssetAmount: BN;
118
124
  marketIndex: number;
119
125
  openOrders: number;
120
126
  padding: number[];
@@ -270,67 +276,67 @@ export declare const insuranceFundStakeStruct: BeetStruct<InsuranceFundStake, Pa
270
276
  export type AMM = {
271
277
  oracle: PublicKey;
272
278
  historicalOracleData: HistoricalOracleData;
273
- baseAssetAmountPerLp: BigNumber;
274
- quoteAssetAmountPerLp: BigNumber;
279
+ baseAssetAmountPerLp: BN;
280
+ quoteAssetAmountPerLp: BN;
275
281
  feePool: PoolBalance;
276
- baseAssetReserve: BigNumber;
277
- quoteAssetReserve: BigNumber;
278
- concentrationCoef: BigNumber;
279
- minBaseAssetReserve: BigNumber;
280
- maxBaseAssetReserve: BigNumber;
281
- sqrtK: BigNumber;
282
- pegMultiplier: BigNumber;
283
- terminalQuoteAssetReserve: BigNumber;
284
- baseAssetAmountLong: BigNumber;
285
- baseAssetAmountShort: BigNumber;
286
- baseAssetAmountWithAmm: BigNumber;
287
- baseAssetAmountWithUnsettledLp: BigNumber;
288
- maxOpenInterest: BigNumber;
289
- quoteAssetAmount: BigNumber;
290
- quoteEntryAmountLong: BigNumber;
291
- quoteEntryAmountShort: BigNumber;
292
- quoteBreakEvenAmountLong: BigNumber;
293
- quoteBreakEvenAmountShort: BigNumber;
294
- userLpShares: BigNumber;
295
- lastFundingRate: BigNumber;
296
- lastFundingRateLong: BigNumber;
297
- lastFundingRateShort: BigNumber;
298
- last24hAvgFundingRate: BigNumber;
299
- totalFee: BigNumber;
300
- totalMmFee: BigNumber;
301
- totalExchangeFee: BigNumber;
302
- totalFeeMinusDistributions: BigNumber;
303
- totalFeeWithdrawn: BigNumber;
304
- totalLiquidationFee: BigNumber;
305
- cumulativeFundingRateLong: BigNumber;
306
- cumulativeFundingRateShort: BigNumber;
307
- totalSocialLoss: BigNumber;
308
- askBaseAssetReserve: BigNumber;
309
- askQuoteAssetReserve: BigNumber;
310
- bidBaseAssetReserve: BigNumber;
311
- bidQuoteAssetReserve: BigNumber;
312
- lastOracleNormalisedPrice: BigNumber;
313
- lastOracleReservePriceSpreadPct: BigNumber;
314
- lastBidPriceTwap: BigNumber;
315
- lastAskPriceTwap: BigNumber;
316
- lastMarkPriceTwap: BigNumber;
317
- lastMarkPriceTwap5min: BigNumber;
318
- lastUpdateSlot: BigNumber;
319
- lastOracleConfPct: BigNumber;
320
- netRevenueSinceLastFunding: BigNumber;
321
- lastFundingRateTs: BigNumber;
322
- fundingPeriod: BigNumber;
323
- orderStepSize: BigNumber;
324
- orderTickSize: BigNumber;
325
- minOrderSize: BigNumber;
326
- maxPositionSize: BigNumber;
327
- volume24h: BigNumber;
328
- longIntensityVolume: BigNumber;
329
- shortIntensityVolume: BigNumber;
330
- lastTradeTs: BigNumber;
331
- markStd: BigNumber;
332
- oracleStd: BigNumber;
333
- lastMarkPriceTwapTs: BigNumber;
282
+ baseAssetReserve: BN;
283
+ quoteAssetReserve: BN;
284
+ concentrationCoef: BN;
285
+ minBaseAssetReserve: BN;
286
+ maxBaseAssetReserve: BN;
287
+ sqrtK: BN;
288
+ pegMultiplier: BN;
289
+ terminalQuoteAssetReserve: BN;
290
+ baseAssetAmountLong: BN;
291
+ baseAssetAmountShort: BN;
292
+ baseAssetAmountWithAmm: BN;
293
+ baseAssetAmountWithUnsettledLp: BN;
294
+ maxOpenInterest: BN;
295
+ quoteAssetAmount: BN;
296
+ quoteEntryAmountLong: BN;
297
+ quoteEntryAmountShort: BN;
298
+ quoteBreakEvenAmountLong: BN;
299
+ quoteBreakEvenAmountShort: BN;
300
+ userLpShares: BN;
301
+ lastFundingRate: BN;
302
+ lastFundingRateLong: BN;
303
+ lastFundingRateShort: BN;
304
+ last24HAvgFundingRate: BN;
305
+ totalFee: BN;
306
+ totalMmFee: BN;
307
+ totalExchangeFee: BN;
308
+ totalFeeMinusDistributions: BN;
309
+ totalFeeWithdrawn: BN;
310
+ totalLiquidationFee: BN;
311
+ cumulativeFundingRateLong: BN;
312
+ cumulativeFundingRateShort: BN;
313
+ totalSocialLoss: BN;
314
+ askBaseAssetReserve: BN;
315
+ askQuoteAssetReserve: BN;
316
+ bidBaseAssetReserve: BN;
317
+ bidQuoteAssetReserve: BN;
318
+ lastOracleNormalisedPrice: BN;
319
+ lastOracleReservePriceSpreadPct: BN;
320
+ lastBidPriceTwap: BN;
321
+ lastAskPriceTwap: BN;
322
+ lastMarkPriceTwap: BN;
323
+ lastMarkPriceTwap5Min: BN;
324
+ lastUpdateSlot: BN;
325
+ lastOracleConfPct: BN;
326
+ netRevenueSinceLastFunding: BN;
327
+ lastFundingRateTs: BN;
328
+ fundingPeriod: BN;
329
+ orderStepSize: BN;
330
+ orderTickSize: BN;
331
+ minOrderSize: BN;
332
+ maxPositionSize: BN;
333
+ volume24H: BN;
334
+ longIntensityVolume: BN;
335
+ shortIntensityVolume: BN;
336
+ lastTradeTs: BN;
337
+ markStd: BN;
338
+ oracleStd: BN;
339
+ lastMarkPriceTwapTs: BN;
334
340
  baseSpread: number;
335
341
  maxSpread: number;
336
342
  longSpread: number;
@@ -347,9 +353,9 @@ export type AMM = {
347
353
  perLpBase: number;
348
354
  padding1: number;
349
355
  padding2: number;
350
- totalFeeEarnedPerLp: BigNumber;
351
- netUnsettledFundingPnl: BigNumber;
352
- quoteAssetAmountWithUnsettledLp: BigNumber;
356
+ totalFeeEarnedPerLp: BN;
357
+ netUnsettledFundingPnl: BN;
358
+ quoteAssetAmountWithUnsettledLp: BN;
353
359
  referencePriceOffset: number;
354
360
  padding: number[];
355
361
  };
@@ -75,6 +75,11 @@ var OracleSource;
75
75
  OracleSource[OracleSource["Pyth1K"] = 3] = "Pyth1K";
76
76
  OracleSource[OracleSource["Pyth1M"] = 4] = "Pyth1M";
77
77
  OracleSource[OracleSource["PythStableCoin"] = 5] = "PythStableCoin";
78
+ OracleSource[OracleSource["Prelaunch"] = 6] = "Prelaunch";
79
+ OracleSource[OracleSource["PythPull"] = 7] = "PythPull";
80
+ OracleSource[OracleSource["Pyth1KPull"] = 8] = "Pyth1KPull";
81
+ OracleSource[OracleSource["Pyth1MPull"] = 9] = "Pyth1MPull";
82
+ OracleSource[OracleSource["PythStableCoinPull"] = 10] = "PythStableCoinPull";
78
83
  })(OracleSource || (exports.OracleSource = OracleSource = {}));
79
84
  var ContractType;
80
85
  (function (ContractType) {
@@ -116,17 +121,17 @@ exports.orderStruct = new beet_1.BeetStruct([
116
121
  ['padding', beet_1.u8],
117
122
  ], (args) => args);
118
123
  exports.perpPositionStruct = new beet_1.BeetStruct([
119
- ['lastCumulativeFundingRate', solana_1.i64],
120
- ['baseAssetAmount', solana_1.i64],
121
- ['quoteAssetAmount', solana_1.i64],
122
- ['quoteBreakEvenAmount', solana_1.i64],
123
- ['quoteEntryAmount', solana_1.i64],
124
- ['openBids', solana_1.i64],
125
- ['openAsks', solana_1.i64],
126
- ['settledPnl', solana_1.i64],
127
- ['lpShares', solana_1.u64],
128
- ['lastBaseAssetAmountPerLp', solana_1.i64],
129
- ['lastQuoteAssetAmountPerLp', solana_1.i64],
124
+ ['lastCumulativeFundingRate', beet_1.i64],
125
+ ['baseAssetAmount', beet_1.i64],
126
+ ['quoteAssetAmount', beet_1.i64],
127
+ ['quoteBreakEvenAmount', beet_1.i64],
128
+ ['quoteEntryAmount', beet_1.i64],
129
+ ['openBids', beet_1.i64],
130
+ ['openAsks', beet_1.i64],
131
+ ['settledPnl', beet_1.i64],
132
+ ['lpShares', beet_1.u64],
133
+ ['lastBaseAssetAmountPerLp', beet_1.i64],
134
+ ['lastQuoteAssetAmountPerLp', beet_1.i64],
130
135
  ['remainderBaseAssetAmount', beet_1.i32],
131
136
  ['marketIndex', beet_1.u16],
132
137
  ['openOrders', beet_1.u8],
@@ -274,67 +279,67 @@ exports.insuranceFundStakeStruct = new beet_1.BeetStruct([
274
279
  exports.ammStruct = new beet_1.BeetStruct([
275
280
  ['oracle', beet_solana_1.publicKey],
276
281
  ['historicalOracleData', exports.historicalOracleDataStruct],
277
- ['baseAssetAmountPerLp', solana_1.i128],
278
- ['quoteAssetAmountPerLp', solana_1.i128],
282
+ ['baseAssetAmountPerLp', beet_1.i128],
283
+ ['quoteAssetAmountPerLp', beet_1.i128],
279
284
  ['feePool', exports.poolBalanceStruct],
280
- ['baseAssetReserve', solana_1.u128],
281
- ['quoteAssetReserve', solana_1.u128],
282
- ['concentrationCoef', solana_1.u128],
283
- ['minBaseAssetReserve', solana_1.u128],
284
- ['maxBaseAssetReserve', solana_1.u128],
285
- ['sqrtK', solana_1.u128],
286
- ['pegMultiplier', solana_1.u128],
287
- ['terminalQuoteAssetReserve', solana_1.u128],
288
- ['baseAssetAmountLong', solana_1.i128],
289
- ['baseAssetAmountShort', solana_1.i128],
290
- ['baseAssetAmountWithAmm', solana_1.i128],
291
- ['baseAssetAmountWithUnsettledLp', solana_1.i128],
292
- ['maxOpenInterest', solana_1.u128],
293
- ['quoteAssetAmount', solana_1.i128],
294
- ['quoteEntryAmountLong', solana_1.i128],
295
- ['quoteEntryAmountShort', solana_1.i128],
296
- ['quoteBreakEvenAmountLong', solana_1.i128],
297
- ['quoteBreakEvenAmountShort', solana_1.i128],
298
- ['userLpShares', solana_1.u128],
299
- ['lastFundingRate', solana_1.i64],
300
- ['lastFundingRateLong', solana_1.i64],
301
- ['lastFundingRateShort', solana_1.i64],
302
- ['last24hAvgFundingRate', solana_1.i64],
303
- ['totalFee', solana_1.i128],
304
- ['totalMmFee', solana_1.i128],
305
- ['totalExchangeFee', solana_1.u128],
306
- ['totalFeeMinusDistributions', solana_1.i128],
307
- ['totalFeeWithdrawn', solana_1.u128],
308
- ['totalLiquidationFee', solana_1.u128],
309
- ['cumulativeFundingRateLong', solana_1.i128],
310
- ['cumulativeFundingRateShort', solana_1.i128],
311
- ['totalSocialLoss', solana_1.u128],
312
- ['askBaseAssetReserve', solana_1.u128],
313
- ['askQuoteAssetReserve', solana_1.u128],
314
- ['bidBaseAssetReserve', solana_1.u128],
315
- ['bidQuoteAssetReserve', solana_1.u128],
316
- ['lastOracleNormalisedPrice', solana_1.i64],
317
- ['lastOracleReservePriceSpreadPct', solana_1.i64],
318
- ['lastBidPriceTwap', solana_1.u64],
319
- ['lastAskPriceTwap', solana_1.u64],
320
- ['lastMarkPriceTwap', solana_1.u64],
321
- ['lastMarkPriceTwap5min', solana_1.u64],
322
- ['lastUpdateSlot', solana_1.u64],
323
- ['lastOracleConfPct', solana_1.u64],
324
- ['netRevenueSinceLastFunding', solana_1.i64],
325
- ['lastFundingRateTs', solana_1.i64],
326
- ['fundingPeriod', solana_1.i64],
327
- ['orderStepSize', solana_1.u64],
328
- ['orderTickSize', solana_1.u64],
329
- ['minOrderSize', solana_1.u64],
330
- ['maxPositionSize', solana_1.u64],
331
- ['volume24h', solana_1.u64],
332
- ['longIntensityVolume', solana_1.u64],
333
- ['shortIntensityVolume', solana_1.u64],
334
- ['lastTradeTs', solana_1.i64],
335
- ['markStd', solana_1.u64],
336
- ['oracleStd', solana_1.u64],
337
- ['lastMarkPriceTwapTs', solana_1.i64],
285
+ ['baseAssetReserve', beet_1.u128],
286
+ ['quoteAssetReserve', beet_1.u128],
287
+ ['concentrationCoef', beet_1.u128],
288
+ ['minBaseAssetReserve', beet_1.u128],
289
+ ['maxBaseAssetReserve', beet_1.u128],
290
+ ['sqrtK', beet_1.u128],
291
+ ['pegMultiplier', beet_1.u128],
292
+ ['terminalQuoteAssetReserve', beet_1.u128],
293
+ ['baseAssetAmountLong', beet_1.i128],
294
+ ['baseAssetAmountShort', beet_1.i128],
295
+ ['baseAssetAmountWithAmm', beet_1.i128],
296
+ ['baseAssetAmountWithUnsettledLp', beet_1.i128],
297
+ ['maxOpenInterest', beet_1.u128],
298
+ ['quoteAssetAmount', beet_1.i128],
299
+ ['quoteEntryAmountLong', beet_1.i128],
300
+ ['quoteEntryAmountShort', beet_1.i128],
301
+ ['quoteBreakEvenAmountLong', beet_1.i128],
302
+ ['quoteBreakEvenAmountShort', beet_1.i128],
303
+ ['userLpShares', beet_1.u128],
304
+ ['lastFundingRate', beet_1.i64],
305
+ ['lastFundingRateLong', beet_1.i64],
306
+ ['lastFundingRateShort', beet_1.i64],
307
+ ['last24HAvgFundingRate', beet_1.i64],
308
+ ['totalFee', beet_1.i128],
309
+ ['totalMmFee', beet_1.i128],
310
+ ['totalExchangeFee', beet_1.u128],
311
+ ['totalFeeMinusDistributions', beet_1.i128],
312
+ ['totalFeeWithdrawn', beet_1.u128],
313
+ ['totalLiquidationFee', beet_1.u128],
314
+ ['cumulativeFundingRateLong', beet_1.i128],
315
+ ['cumulativeFundingRateShort', beet_1.i128],
316
+ ['totalSocialLoss', beet_1.u128],
317
+ ['askBaseAssetReserve', beet_1.u128],
318
+ ['askQuoteAssetReserve', beet_1.u128],
319
+ ['bidBaseAssetReserve', beet_1.u128],
320
+ ['bidQuoteAssetReserve', beet_1.u128],
321
+ ['lastOracleNormalisedPrice', beet_1.i64],
322
+ ['lastOracleReservePriceSpreadPct', beet_1.i64],
323
+ ['lastBidPriceTwap', beet_1.u64],
324
+ ['lastAskPriceTwap', beet_1.u64],
325
+ ['lastMarkPriceTwap', beet_1.u64],
326
+ ['lastMarkPriceTwap5Min', beet_1.u64],
327
+ ['lastUpdateSlot', beet_1.u64],
328
+ ['lastOracleConfPct', beet_1.u64],
329
+ ['netRevenueSinceLastFunding', beet_1.i64],
330
+ ['lastFundingRateTs', beet_1.i64],
331
+ ['fundingPeriod', beet_1.i64],
332
+ ['orderStepSize', beet_1.u64],
333
+ ['orderTickSize', beet_1.u64],
334
+ ['minOrderSize', beet_1.u64],
335
+ ['maxPositionSize', beet_1.u64],
336
+ ['volume24H', beet_1.u64],
337
+ ['longIntensityVolume', beet_1.u64],
338
+ ['shortIntensityVolume', beet_1.u64],
339
+ ['lastTradeTs', beet_1.i64],
340
+ ['markStd', beet_1.u64],
341
+ ['oracleStd', beet_1.u64],
342
+ ['lastMarkPriceTwapTs', beet_1.i64],
338
343
  ['baseSpread', beet_1.u32],
339
344
  ['maxSpread', beet_1.u32],
340
345
  ['longSpread', beet_1.u32],
@@ -351,9 +356,9 @@ exports.ammStruct = new beet_1.BeetStruct([
351
356
  ['perLpBase', beet_1.i8],
352
357
  ['padding1', beet_1.u8],
353
358
  ['padding2', beet_1.u16],
354
- ['totalFeeEarnedPerLp', solana_1.u64],
355
- ['netUnsettledFundingPnl', solana_1.i64],
356
- ['quoteAssetAmountWithUnsettledLp', solana_1.i64],
359
+ ['totalFeeEarnedPerLp', beet_1.u64],
360
+ ['netUnsettledFundingPnl', beet_1.i64],
361
+ ['quoteAssetAmountWithUnsettledLp', beet_1.i64],
357
362
  ['referencePriceOffset', beet_1.i32],
358
363
  ['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 12)],
359
364
  ], (args) => args);
@@ -1 +1 @@
1
- {"version":3,"file":"struct.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/struct.ts"],"names":[],"mappings":";;;AAAA,oDAUmC;AACnC,kEAA6D;AAG7D,+CAAgE;AAEhE,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,mEAAK,CAAA;IACL,mEAAK,CAAA;IACL,qFAAc,CAAA;IACd,qFAAc,CAAA;AAChB,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,yDAAI,CAAA;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IAAI,EAAE,EAAE,CAAC,IAAuB,CAClC,CAAC"}
1
+ {"version":3,"file":"struct.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/struct.ts"],"names":[],"mappings":";;;AAAA,oDAcmC;AACnC,kEAA6D;AAI7D,+CAA0D;AAE1D,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,mEAAK,CAAA;IACL,mEAAK,CAAA;IACL,qFAAc,CAAA;IACd,qFAAc,CAAA;AAChB,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,yDAAI,CAAA;IACJ,2DAAK,CAAA;AACP,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,2CAAI,CAAA;IACJ,2CAAI,CAAA;AACN,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAED,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,6CAAM,CAAA;IACN,2CAAK,CAAA;IACL,2DAAa,CAAA;IACb,yDAAY,CAAA;IACZ,6CAAM,CAAA;AACR,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB;AAED,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,6CAAI,CAAA;IACJ,6CAAI,CAAA;IACJ,iDAAM,CAAA;IACN,qDAAQ,CAAA;AACV,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,2DAAO,CAAA;IACP,yDAAM,CAAA;AACR,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAED,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,+CAAM,CAAA;IACN,iEAAe,CAAA;IACf,mDAAQ,CAAA;AACV,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB;AAED,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,qDAAU,CAAA;IACV,mDAAS,CAAA;IACT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CAAC,CAAC;CAC3C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAkB,CAC7B,CAAC;AAaW,QAAA,qBAAqB,GAAG,IAAI,iBAAU,CACjD;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,OAAO,EAAE,YAAG,CAAC;IACd,CAAC,UAAU,EAAE,YAAG,CAAC;IACjB,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,gBAAgB,EAAE,YAAG,CAAC;IACvB,CAAC,mBAAmB,EAAE,YAAG,CAAC;IAC1B,CAAC,iBAAiB,EAAE,UAAG,CAAC;IACxB,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,EAAE,CAAC,CAAC;CAC3C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAuB,CAClC,CAAC"}
@@ -23,3 +23,4 @@ export type AirdropInfo = {
23
23
  merkle: string;
24
24
  amount: number;
25
25
  };
26
+ export type PerpMarketIndexes = Array<[number, string]>;
@@ -57,7 +57,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
57
57
  tokensDetails.forEach((tD) => tD ? tokensDetailsById.set(tD.address, tD) : undefined);
58
58
  const levPositions = [];
59
59
  for (const position of positionAccounts) {
60
- const { collateralUsd, sizeUsd, price, side, cumulativeInterestSnapshot, lockedAmount, } = position;
60
+ const { collateralUsd, sizeUsd, price, side, cumulativeInterestSnapshot } = position;
61
61
  if (sizeUsd.isLessThanOrEqualTo(0))
62
62
  continue;
63
63
  if (side === structs_1.Side.None)
@@ -74,8 +74,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
74
74
  const currentPrice = pythPricesByAccount.get(custody.oracle.oracleAccount);
75
75
  if (!currentPrice)
76
76
  continue;
77
- const size = lockedAmount.div(Math.pow(10, custody.decimals));
78
77
  const sizeValue = sizeUsd.dividedBy(usdFactor);
78
+ const size = sizeValue.div(entryPrice);
79
79
  const leverage = sizeUsd.dividedBy(collateralUsd);
80
80
  const collateralValue = collateralUsd.dividedBy(usdFactor);
81
81
  const { increasePositionBps, decreasePositionBps } = perpPool.fees;
@@ -115,11 +115,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
115
115
  {
116
116
  type: portfolio_core_1.PortfolioElementType.leverage,
117
117
  data: {
118
- levPositions,
119
- levValue: value,
118
+ positions: levPositions,
120
119
  value,
121
- rewardAssets: [],
122
- rewardValue: 0,
123
120
  },
124
121
  label: 'Leverage',
125
122
  networkId: portfolio_core_1.NetworkId.solana,
@@ -1 +1 @@
1
- {"version":3,"file":"perpetualFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/perpetualFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AACrC,6CAA4C;AAG5C,oDAAyD;AACzD,kDAAgF;AAChF,wCAAuD;AAEvD,gEAAwE;AACxE,sDAAiE;AACjE,2CAKqB;AACrB,uCAAiD;AAEjD,MAAM,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC,CAAC;AACzC,MAAM,QAAQ,GAAoB,CAChC,KAAa,EACb,KAAY,EACyB,EAAE;IACvC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,gBAAgB,GAAG,MAAM,IAAA,iCAAwB,EACrD,MAAM,EACN,wBAAc,EACd,0BAAc,EACd,IAAA,mCAAyB,EAAC,KAAK,CAAC,CACjC,CAAC;IACF,IACE,gBAAgB,CAAC,MAAM,KAAK,CAAC;QAC7B,gBAAgB,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC;QAErE,OAAO,EAAE,CAAC;IAEZ,MAAM,iBAAiB,GAAG,MAAM,KAAK,CAAC,OAAO,CAAgB,wBAAY,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sBAAU;YACV,KAAK;SACN;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"perpetualFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/perpetualFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AACrC,6CAA4C;AAG5C,oDAAyD;AACzD,kDAAgF;AAChF,wCAAuD;AAEvD,gEAAwE;AACxE,sDAAiE;AACjE,2CAKqB;AACrB,uCAAiD;AAEjD,MAAM,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC,CAAC;AACzC,MAAM,QAAQ,GAAoB,CAChC,KAAa,EACb,KAAY,EACyB,EAAE;IACvC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,gBAAgB,GAAG,MAAM,IAAA,iCAAwB,EACrD,MAAM,EACN,wBAAc,EACd,0BAAc,EACd,IAAA,mCAAyB,EAAC,KAAK,CAAC,CACjC,CAAC;IACF,IACE,gBAAgB,CAAC,MAAM,KAAK,CAAC;QAC7B,gBAAgB,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC;QAErE,OAAO,EAAE,CAAC;IAEZ,MAAM,iBAAiB,GAAG,MAAM,KAAK,CAAC,OAAO,CAAgB,wBAAY,EAAE;QACzE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,IAAI,CAAC,iBAAiB;QAAE,OAAO,EAAE,CAAC;IAElC,MAAM,YAAY,GAAG,MAAM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AED,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,UAAU;YAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,IAAA,+BAAc,EAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACxD,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE;SAChC,CAAC,CAAC;IACL,CAAC;IAED,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEtC,IAAI,SAAS,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;QAC1B,MAAM,MAAM,GAAG,IAAA,yBAAe,EAAC,SAAS,CAAC,CAAC;QAC1C,OAAO;YACL;gBACE,IAAI,EAAE,UAAU;gBAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;gBAC3B,UAAU,EAAV,sBAAU;gBACV,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBACzD,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE,cAAc,QAAQ,CAAC,MAAM,GAAG;gBACtC,IAAI,EAAE,EAAE,MAAM,EAAE;aACjB;SACF,CAAC;IACJ,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,gBAAgB;IACjC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"valueAverageFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/valueAverageFetcher.ts"],"names":[],"mappings":";;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AS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,IAAA,+BAAc,EAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACxD,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE;SAChC,CAAC,CAAC;IACL,CAAC;IAED,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEtC,IAAI,SAAS,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;QAC1B,MAAM,MAAM,GAAG,IAAA,yBAAe,EAAC,SAAS,CAAC,CAAC;QAC1C,OAAO;YACL;gBACE,IAAI,EAAE,UAAU;gBAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;gBAC3B,UAAU,EAAV,sBAAU;gBACV,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBACzD,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE,cAAc,QAAQ,CAAC,MAAM,GAAG;gBACtC,IAAI,EAAE,EAAE,MAAM,EAAE;aACjB;SACF,CAAC;IACJ,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,gBAAgB;IACjC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { PublicKey } from '@solana/web3.js';
2
- import { PortfolioAsset } from '@sonarwatch/portfolio-core';
2
+ import { PortfolioAssetToken } from '@sonarwatch/portfolio-core';
3
3
  export declare function deriveClaimStatus(claimant: string, merkleTree: string, merkleDistributor: string): PublicKey;
4
4
  export declare function getVotePda(owner: string): PublicKey;
5
5
  export declare function getJupiterPrices(mints: PublicKey[], vsMint: PublicKey): Promise<Map<string, number>>;
6
- export declare function getMergedAssets(assets: PortfolioAsset[]): PortfolioAsset[];
6
+ export declare function getMergedAssets(assets: PortfolioAssetToken[]): PortfolioAssetToken[];
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAA4C;AAC5C,kDAA6C;AAC7C,+DAA4E;AAE5E,qDAAoE;AAEpE,SAAgB,iBAAiB,CAC/B,QAAgB,EAChB,UAAkB,EAClB,iBAAyB;IAEzB,OAAO,mBAAS,CAAC,sBAAsB,CACrC;QACE,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;QAC1B,IAAI,mBAAS,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE;QACjC,IAAI,mBAAS,CAAC,UAAU,CAAC,CAAC,OAAO,EAAE;KACpC,EACD,IAAI,mBAAS,CAAC,iBAAiB,CAAC,CACjC,CAAC,CAAC,CAAC,CAAC;AACP,CAAC;AAbD,8CAaC;AAED,SAAgB,UAAU,CAAC,KAAa;IACtC,OAAO,mBAAS,CAAC,sBAAsB,CACrC;QACE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;QACrB,wBAAY,CAAC,OAAO,EAAE;QACtB,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE;KAC/B,EACD,yBAAa,CACd,CAAC,CAAC,CAAC,CAAC;AACP,CAAC;AATD,gCASC;AAED,SAAsB,gBAAgB,CAAC,KAAkB,EAAE,MAAiB;;QAC1E,MAAM,GAAG,GAAG,MAAM,eAAK,CAAC,GAAG,CACzB,+BAA+B,EAC/B;YACE,MAAM,EAAE;gBACN,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,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C;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC;AAC1C,CAAC;AAnBD,0CAmBC"}
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAA4C;AAC5C,kDAA6C;AAC7C,+DAGoC;AAEpC,qDAAoE;AAEpE,SAAgB,iBAAiB,CAC/B,QAAgB,EAChB,UAAkB,EAClB,iBAAyB;IAEzB,OAAO,mBAAS,CAAC,sBAAsB,CACrC;QACE,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;QAC1B,IAAI,mBAAS,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE;QACjC,IAAI,mBAAS,CAAC,UAAU,CAAC,CAAC,OAAO,EAAE;KACpC,EACD,IAAI,mBAAS,CAAC,iBAAiB,CAAC,CACjC,CAAC,CAAC,CAAC,CAAC;AACP,CAAC;AAbD,8CAaC;AAED,SAAgB,UAAU,CAAC,KAAa;IACtC,OAAO,mBAAS,CAAC,sBAAsB,CACrC;QACE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;QACrB,wBAAY,CAAC,OAAO,EAAE;QACtB,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE;KAC/B,EACD,yBAAa,CACd,CAAC,CAAC,CAAC,CAAC;AACP,CAAC;AATD,gCASC;AAED,SAAsB,gBAAgB,CAAC,KAAkB,EAAE,MAAiB;;QAC1E,MAAM,GAAG,GAAG,MAAM,eAAK,CAAC,GAAG,CACzB,+BAA+B,EAC/B;YACE,MAAM,EAAE;gBACN,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;gBAC7C,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE;aAC3B;SACF,CACF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 function sushiV3PairToUniV2(pair) {
54
54
  }
55
55
  function getV3PairsAddresses(url, length = 300) {
56
56
  return __awaiter(this, void 0, void 0, function* () {
57
- const query = (0, graphql_request_1.gql) `
58
- {
59
- pools(
60
- orderBy: totalValueLockedUSD
61
- first: ${length}
62
- orderDirection: desc
63
- where: { volumeUSD_not: "0", liquidity_not: "0" }
64
- ) {
65
- id
66
- token0Price
67
- token1Price
68
- liquidity
69
- token0 {
70
- id
71
- totalSupply
72
- decimals
73
- }
74
- token1 {
75
- id
76
- totalSupply
77
- decimals
78
- }
79
- }
80
- }
57
+ const query = (0, graphql_request_1.gql) `
58
+ {
59
+ pools(
60
+ orderBy: totalValueLockedUSD
61
+ first: ${length}
62
+ orderDirection: desc
63
+ where: { volumeUSD_not: "0", liquidity_not: "0" }
64
+ ) {
65
+ id
66
+ token0Price
67
+ token1Price
68
+ liquidity
69
+ token0 {
70
+ id
71
+ totalSupply
72
+ decimals
73
+ }
74
+ token1 {
75
+ id
76
+ totalSupply
77
+ decimals
78
+ }
79
+ }
80
+ }
81
81
  `;
82
82
  const res = yield (0, graphql_request_1.default)(url, query);
83
83
  const pools = res.pools;