@sonarwatch/portfolio-plugins 0.12.36 → 0.12.38
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1847 -1839
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/plugins/allbridge/constants.d.ts +0 -1
- package/src/plugins/allbridge/constants.js +1 -2
- package/src/plugins/allbridge/constants.js.map +1 -1
- package/src/plugins/allbridge/positionsFetcher.js +6 -2
- package/src/plugins/allbridge/positionsFetcher.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/banx/constants.d.ts +0 -1
- package/src/plugins/banx/constants.js +1 -2
- package/src/plugins/banx/constants.js.map +1 -1
- package/src/plugins/banx/idl.d.ts +15 -7
- package/src/plugins/banx/idl.js +199 -268
- package/src/plugins/banx/idl.js.map +1 -1
- package/src/plugins/banx/loansFetcher.js +19 -23
- package/src/plugins/banx/loansFetcher.js.map +1 -1
- package/src/plugins/banx/offersFetcher.js +10 -15
- package/src/plugins/banx/offersFetcher.js.map +1 -1
- package/src/plugins/citrus/collectionsJob.js.map +1 -1
- package/src/plugins/citrus/constants.d.ts +0 -1
- package/src/plugins/citrus/constants.js +1 -2
- package/src/plugins/citrus/constants.js.map +1 -1
- package/src/plugins/citrus/loansFetcher.js +14 -20
- package/src/plugins/citrus/loansFetcher.js.map +1 -1
- package/src/plugins/drift/constants.d.ts +1 -0
- package/src/plugins/drift/constants.js +2 -1
- package/src/plugins/drift/constants.js.map +1 -1
- package/src/plugins/drift/depositsFetcher.js +63 -1
- package/src/plugins/drift/depositsFetcher.js.map +1 -1
- package/src/plugins/drift/filters.d.ts +1 -0
- package/src/plugins/drift/filters.js +4 -1
- package/src/plugins/drift/filters.js.map +1 -1
- package/src/plugins/drift/index.js +2 -1
- package/src/plugins/drift/index.js.map +1 -1
- package/src/plugins/drift/perpHelpers/amm.d.ts +74 -0
- package/src/plugins/drift/perpHelpers/amm.js +567 -0
- package/src/plugins/drift/perpHelpers/amm.js.map +1 -0
- package/src/plugins/drift/perpHelpers/assert.d.ts +1 -0
- package/src/plugins/drift/perpHelpers/assert.js +10 -0
- package/src/plugins/drift/perpHelpers/assert.js.map +1 -0
- package/src/plugins/drift/perpHelpers/constants.d.ts +27 -0
- package/src/plugins/drift/perpHelpers/constants.js +35 -0
- package/src/plugins/drift/perpHelpers/constants.js.map +1 -0
- package/src/plugins/drift/perpHelpers/convert.d.ts +0 -0
- package/src/plugins/drift/perpHelpers/convert.js +2 -0
- package/src/plugins/drift/perpHelpers/convert.js.map +1 -0
- package/src/plugins/drift/perpHelpers/getOraclePrice.d.ts +4 -0
- package/src/plugins/drift/perpHelpers/getOraclePrice.js +61 -0
- package/src/plugins/drift/perpHelpers/getOraclePrice.js.map +1 -0
- package/src/plugins/drift/perpHelpers/getPerpMarket.d.ts +4 -0
- package/src/plugins/drift/perpHelpers/getPerpMarket.js +33 -0
- package/src/plugins/drift/perpHelpers/getPerpMarket.js.map +1 -0
- package/src/plugins/drift/perpHelpers/margin.d.ts +10 -0
- package/src/plugins/drift/perpHelpers/margin.js +82 -0
- package/src/plugins/drift/perpHelpers/margin.js.map +1 -0
- package/src/plugins/drift/perpHelpers/math.d.ts +4 -0
- package/src/plugins/drift/perpHelpers/math.js +29 -0
- package/src/plugins/drift/perpHelpers/math.js.map +1 -0
- package/src/plugins/drift/perpHelpers/oracle.d.ts +6 -0
- package/src/plugins/drift/perpHelpers/oracle.js +54 -0
- package/src/plugins/drift/perpHelpers/oracle.js.map +1 -0
- package/src/plugins/drift/perpHelpers/orders.d.ts +2 -0
- package/src/plugins/drift/perpHelpers/orders.js +9 -0
- package/src/plugins/drift/perpHelpers/orders.js.map +1 -0
- package/src/plugins/drift/perpHelpers/position.d.ts +44 -0
- package/src/plugins/drift/perpHelpers/position.js +184 -0
- package/src/plugins/drift/perpHelpers/position.js.map +1 -0
- package/src/plugins/drift/perpHelpers/prelaunchOracle.d.ts +3 -0
- package/src/plugins/drift/perpHelpers/prelaunchOracle.js +20 -0
- package/src/plugins/drift/perpHelpers/prelaunchOracle.js.map +1 -0
- package/src/plugins/drift/perpHelpers/pyth.d.ts +5 -0
- package/src/plugins/drift/perpHelpers/pyth.js +42 -0
- package/src/plugins/drift/perpHelpers/pyth.js.map +1 -0
- package/src/plugins/drift/perpHelpers/repeg.d.ts +14 -0
- package/src/plugins/drift/perpHelpers/repeg.js +162 -0
- package/src/plugins/drift/perpHelpers/repeg.js.map +1 -0
- package/src/plugins/drift/perpHelpers/switchboard.d.ts +3 -0
- package/src/plugins/drift/perpHelpers/switchboard.js +31 -0
- package/src/plugins/drift/perpHelpers/switchboard.js.map +1 -0
- package/src/plugins/drift/perpHelpers/types.d.ts +28 -0
- package/src/plugins/drift/perpHelpers/types.js +19 -0
- package/src/plugins/drift/perpHelpers/types.js.map +1 -0
- package/src/plugins/drift/prepMarketsJob.d.ts +3 -0
- package/src/plugins/drift/prepMarketsJob.js +38 -0
- package/src/plugins/drift/prepMarketsJob.js.map +1 -0
- package/src/plugins/drift/struct.d.ts +82 -76
- package/src/plugins/drift/struct.js +79 -74
- package/src/plugins/drift/struct.js.map +1 -1
- package/src/plugins/drift/types.d.ts +1 -0
- package/src/plugins/jupiter/exchange/constants.d.ts +1 -0
- package/src/plugins/jupiter/exchange/constants.js +2 -1
- package/src/plugins/jupiter/exchange/constants.js.map +1 -1
- package/src/plugins/jupiter/exchange/limitFetcher.js +9 -6
- package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/perpetualFetcher.js +3 -6
- package/src/plugins/jupiter/exchange/perpetualFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/structs.d.ts +21 -0
- package/src/plugins/jupiter/exchange/structs.js +21 -1
- package/src/plugins/jupiter/exchange/structs.js.map +1 -1
- package/src/plugins/jupiter/exchange/valueAverageFetcher.js.map +1 -1
- package/src/plugins/jupiter/helpers.d.ts +2 -2
- package/src/plugins/jupiter/helpers.js.map +1 -1
- package/src/plugins/rain/collectionsJob.js +6 -10
- package/src/plugins/rain/collectionsJob.js.map +1 -1
- package/src/plugins/rain/helpers.js +3 -1
- package/src/plugins/rain/helpers.js.map +1 -1
- package/src/plugins/rain/index.js +2 -1
- package/src/plugins/rain/index.js.map +1 -1
- package/src/plugins/rain/loansFetcher.js +60 -25
- package/src/plugins/rain/loansFetcher.js.map +1 -1
- package/src/plugins/rain/types.d.ts +3 -0
- package/src/plugins/sharky/constants.d.ts +0 -1
- package/src/plugins/sharky/constants.js +3 -4
- package/src/plugins/sharky/constants.js.map +1 -1
- package/src/plugins/sharky/loansFetcher.js +17 -20
- package/src/plugins/sharky/loansFetcher.js.map +1 -1
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/zeta/airdropFetcher.js +14 -14
- package/src/utils/misc/MemoizedCache.d.ts +12 -0
- package/src/utils/misc/MemoizedCache.js +35 -0
- package/src/utils/misc/MemoizedCache.js.map +1 -0
- package/src/utils/misc/arrayToMap.d.ts +1 -0
- package/src/utils/misc/arrayToMap.js +12 -0
- package/src/utils/misc/arrayToMap.js.map +1 -0
- package/src/utils/misc/pick.d.ts +2 -0
- package/src/utils/misc/pick.js +16 -0
- package/src/utils/misc/pick.js.map +1 -0
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
- package/src/utils/solana/getAutoParsedMultipleAccountsInfo.js +8 -3
- package/src/utils/solana/getAutoParsedMultipleAccountsInfo.js.map +1 -1
- package/src/plugins/allbridge/getPoolInfo.d.ts +0 -3
- package/src/plugins/allbridge/getPoolInfo.js +0 -28
- package/src/plugins/allbridge/getPoolInfo.js.map +0 -1
@@ -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:
|
107
|
-
baseAssetAmount:
|
108
|
-
quoteAssetAmount:
|
109
|
-
quoteBreakEvenAmount:
|
110
|
-
quoteEntryAmount:
|
111
|
-
openBids:
|
112
|
-
openAsks:
|
113
|
-
settledPnl:
|
114
|
-
lpShares:
|
115
|
-
lastBaseAssetAmountPerLp:
|
116
|
-
lastQuoteAssetAmountPerLp:
|
117
|
-
remainderBaseAssetAmount:
|
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:
|
274
|
-
quoteAssetAmountPerLp:
|
279
|
+
baseAssetAmountPerLp: BN;
|
280
|
+
quoteAssetAmountPerLp: BN;
|
275
281
|
feePool: PoolBalance;
|
276
|
-
baseAssetReserve:
|
277
|
-
quoteAssetReserve:
|
278
|
-
concentrationCoef:
|
279
|
-
minBaseAssetReserve:
|
280
|
-
maxBaseAssetReserve:
|
281
|
-
sqrtK:
|
282
|
-
pegMultiplier:
|
283
|
-
terminalQuoteAssetReserve:
|
284
|
-
baseAssetAmountLong:
|
285
|
-
baseAssetAmountShort:
|
286
|
-
baseAssetAmountWithAmm:
|
287
|
-
baseAssetAmountWithUnsettledLp:
|
288
|
-
maxOpenInterest:
|
289
|
-
quoteAssetAmount:
|
290
|
-
quoteEntryAmountLong:
|
291
|
-
quoteEntryAmountShort:
|
292
|
-
quoteBreakEvenAmountLong:
|
293
|
-
quoteBreakEvenAmountShort:
|
294
|
-
userLpShares:
|
295
|
-
lastFundingRate:
|
296
|
-
lastFundingRateLong:
|
297
|
-
lastFundingRateShort:
|
298
|
-
|
299
|
-
totalFee:
|
300
|
-
totalMmFee:
|
301
|
-
totalExchangeFee:
|
302
|
-
totalFeeMinusDistributions:
|
303
|
-
totalFeeWithdrawn:
|
304
|
-
totalLiquidationFee:
|
305
|
-
cumulativeFundingRateLong:
|
306
|
-
cumulativeFundingRateShort:
|
307
|
-
totalSocialLoss:
|
308
|
-
askBaseAssetReserve:
|
309
|
-
askQuoteAssetReserve:
|
310
|
-
bidBaseAssetReserve:
|
311
|
-
bidQuoteAssetReserve:
|
312
|
-
lastOracleNormalisedPrice:
|
313
|
-
lastOracleReservePriceSpreadPct:
|
314
|
-
lastBidPriceTwap:
|
315
|
-
lastAskPriceTwap:
|
316
|
-
lastMarkPriceTwap:
|
317
|
-
|
318
|
-
lastUpdateSlot:
|
319
|
-
lastOracleConfPct:
|
320
|
-
netRevenueSinceLastFunding:
|
321
|
-
lastFundingRateTs:
|
322
|
-
fundingPeriod:
|
323
|
-
orderStepSize:
|
324
|
-
orderTickSize:
|
325
|
-
minOrderSize:
|
326
|
-
maxPositionSize:
|
327
|
-
|
328
|
-
longIntensityVolume:
|
329
|
-
shortIntensityVolume:
|
330
|
-
lastTradeTs:
|
331
|
-
markStd:
|
332
|
-
oracleStd:
|
333
|
-
lastMarkPriceTwapTs:
|
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:
|
351
|
-
netUnsettledFundingPnl:
|
352
|
-
quoteAssetAmountWithUnsettledLp:
|
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',
|
120
|
-
['baseAssetAmount',
|
121
|
-
['quoteAssetAmount',
|
122
|
-
['quoteBreakEvenAmount',
|
123
|
-
['quoteEntryAmount',
|
124
|
-
['openBids',
|
125
|
-
['openAsks',
|
126
|
-
['settledPnl',
|
127
|
-
['lpShares',
|
128
|
-
['lastBaseAssetAmountPerLp',
|
129
|
-
['lastQuoteAssetAmountPerLp',
|
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',
|
278
|
-
['quoteAssetAmountPerLp',
|
282
|
+
['baseAssetAmountPerLp', beet_1.i128],
|
283
|
+
['quoteAssetAmountPerLp', beet_1.i128],
|
279
284
|
['feePool', exports.poolBalanceStruct],
|
280
|
-
['baseAssetReserve',
|
281
|
-
['quoteAssetReserve',
|
282
|
-
['concentrationCoef',
|
283
|
-
['minBaseAssetReserve',
|
284
|
-
['maxBaseAssetReserve',
|
285
|
-
['sqrtK',
|
286
|
-
['pegMultiplier',
|
287
|
-
['terminalQuoteAssetReserve',
|
288
|
-
['baseAssetAmountLong',
|
289
|
-
['baseAssetAmountShort',
|
290
|
-
['baseAssetAmountWithAmm',
|
291
|
-
['baseAssetAmountWithUnsettledLp',
|
292
|
-
['maxOpenInterest',
|
293
|
-
['quoteAssetAmount',
|
294
|
-
['quoteEntryAmountLong',
|
295
|
-
['quoteEntryAmountShort',
|
296
|
-
['quoteBreakEvenAmountLong',
|
297
|
-
['quoteBreakEvenAmountShort',
|
298
|
-
['userLpShares',
|
299
|
-
['lastFundingRate',
|
300
|
-
['lastFundingRateLong',
|
301
|
-
['lastFundingRateShort',
|
302
|
-
['
|
303
|
-
['totalFee',
|
304
|
-
['totalMmFee',
|
305
|
-
['totalExchangeFee',
|
306
|
-
['totalFeeMinusDistributions',
|
307
|
-
['totalFeeWithdrawn',
|
308
|
-
['totalLiquidationFee',
|
309
|
-
['cumulativeFundingRateLong',
|
310
|
-
['cumulativeFundingRateShort',
|
311
|
-
['totalSocialLoss',
|
312
|
-
['askBaseAssetReserve',
|
313
|
-
['askQuoteAssetReserve',
|
314
|
-
['bidBaseAssetReserve',
|
315
|
-
['bidQuoteAssetReserve',
|
316
|
-
['lastOracleNormalisedPrice',
|
317
|
-
['lastOracleReservePriceSpreadPct',
|
318
|
-
['lastBidPriceTwap',
|
319
|
-
['lastAskPriceTwap',
|
320
|
-
['lastMarkPriceTwap',
|
321
|
-
['
|
322
|
-
['lastUpdateSlot',
|
323
|
-
['lastOracleConfPct',
|
324
|
-
['netRevenueSinceLastFunding',
|
325
|
-
['lastFundingRateTs',
|
326
|
-
['fundingPeriod',
|
327
|
-
['orderStepSize',
|
328
|
-
['orderTickSize',
|
329
|
-
['minOrderSize',
|
330
|
-
['maxPositionSize',
|
331
|
-
['
|
332
|
-
['longIntensityVolume',
|
333
|
-
['shortIntensityVolume',
|
334
|
-
['lastTradeTs',
|
335
|
-
['markStd',
|
336
|
-
['oracleStd',
|
337
|
-
['lastMarkPriceTwapTs',
|
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',
|
355
|
-
['netUnsettledFundingPnl',
|
356
|
-
['quoteAssetAmountWithUnsettledLp',
|
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;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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AC;IACtB,CAAC,aAAa,EAAE,UAAG,CAAC;IACpB,CAAC,QAAQ,EAAE,SAAE,CAAC;IACd,CAAC,cAAc,EAAE,SAAE,CAAC;IACpB,CAAC,cAAc,EAAE,SAAE,CAAC;IACpB,CAAC,kBAAkB,EAAE,SAAE,CAAC;IACxB,CAAC,sBAAsB,EAAE,UAAG,CAAC;IAC7B,CAAC,eAAe,EAAE,UAAG,CAAC;IACtB,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,EAAE,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"}
|
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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ACxB,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,EAAE,CAAC,CAAC;CAC3C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAuB,CAClC,CAAC"}
|
@@ -5,6 +5,7 @@ export declare const platform: Platform;
|
|
5
5
|
export declare const perpsProgramId: PublicKey;
|
6
6
|
export declare const valueAverageProgramId: PublicKey;
|
7
7
|
export declare const limitProgramId: PublicKey;
|
8
|
+
export declare const limitV2ProgramId: PublicKey;
|
8
9
|
export declare const dcaProgramId: PublicKey;
|
9
10
|
export declare const jlpPool: PublicKey;
|
10
11
|
export declare const jlpToken: PublicKey;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.perpPoolsKey = exports.custodiesKey = exports.jlpToken = exports.jlpPool = exports.dcaProgramId = exports.limitProgramId = exports.valueAverageProgramId = exports.perpsProgramId = exports.platform = exports.platformId = void 0;
|
3
|
+
exports.perpPoolsKey = exports.custodiesKey = exports.jlpToken = exports.jlpPool = exports.dcaProgramId = exports.limitV2ProgramId = exports.limitProgramId = exports.valueAverageProgramId = exports.perpsProgramId = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'jupiter-exchange';
|
6
6
|
exports.platform = {
|
@@ -14,6 +14,7 @@ exports.platform = {
|
|
14
14
|
exports.perpsProgramId = new web3_js_1.PublicKey('PERPHjGBqRHArX4DySjwM6UJHiR3sWAatqfdBS2qQJu');
|
15
15
|
exports.valueAverageProgramId = new web3_js_1.PublicKey('JVAp1DSLnM4Qh8qM1QasQ8x56ccb9S3DhbyEckybTF9');
|
16
16
|
exports.limitProgramId = new web3_js_1.PublicKey('jupoNjAxXgZ4rjzxzPMP4oxduvQsQtZzyknqvzYNrNu');
|
17
|
+
exports.limitV2ProgramId = new web3_js_1.PublicKey('j1o2qRpjcyUwEvwtcfhEQefh773ZgjxcVRry7LDqg5X');
|
17
18
|
exports.dcaProgramId = new web3_js_1.PublicKey('DCA265Vj8a9CEuX1eb1LWRnDT7uK6q1xMipnNyatn23M');
|
18
19
|
exports.jlpPool = new web3_js_1.PublicKey('5BUwFW4nRbftYTDMbgxykoFWqWHPzahFSNAaaaJtVKsq');
|
19
20
|
exports.jlpToken = new web3_js_1.PublicKey('27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,kBAAkB,CAAC;AAChC,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,qBAAqB,GAAG,IAAI,mBAAS,CAChD,6CAA6C,CAC9C,CAAC;AACW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,OAAO,GAAG,IAAI,mBAAS,CAClC,8CAA8C,CAC/C,CAAC;AACW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AACW,QAAA,YAAY,GAAG,WAAW,CAAC;AAC3B,QAAA,YAAY,GAAG,WAAW,CAAC"}
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,kBAAkB,CAAC;AAChC,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,qBAAqB,GAAG,IAAI,mBAAS,CAChD,6CAA6C,CAC9C,CAAC;AACW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC;AACW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,OAAO,GAAG,IAAI,mBAAS,CAClC,8CAA8C,CAC/C,CAAC;AACW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AACW,QAAA,YAAY,GAAG,WAAW,CAAC;AAC3B,QAAA,YAAY,GAAG,WAAW,CAAC"}
|
@@ -21,15 +21,18 @@ const structs_1 = require("./structs");
|
|
21
21
|
const filters_1 = require("./filters");
|
22
22
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
23
23
|
const client = (0, clients_1.getClientSolana)();
|
24
|
-
const
|
25
|
-
|
24
|
+
const allAccounts = (yield Promise.all([
|
25
|
+
(0, solana_1.getParsedProgramAccounts)(client, structs_1.limitOrderStruct, constants_1.limitProgramId, (0, filters_1.limitFilters)(owner)),
|
26
|
+
(0, solana_1.getParsedProgramAccounts)(client, structs_1.limitOrderV2Struct, constants_1.limitV2ProgramId, (0, filters_1.limitFilters)(owner)),
|
27
|
+
])).flat();
|
28
|
+
if (allAccounts.length === 0)
|
26
29
|
return [];
|
27
30
|
const mints = new Set();
|
28
|
-
|
31
|
+
allAccounts.forEach((account) => mints.add(account.inputMint.toString()));
|
29
32
|
const tokenPriceById = yield cache.getTokenPricesAsMap(Array.from(mints), portfolio_core_1.NetworkId.solana);
|
30
33
|
const rawAmountByMint = new Map();
|
31
|
-
for (let i = 0; i <
|
32
|
-
const limOrder =
|
34
|
+
for (let i = 0; i < allAccounts.length; i += 1) {
|
35
|
+
const limOrder = allAccounts[i];
|
33
36
|
const mint = limOrder.inputMint.toString();
|
34
37
|
const amountLeftInOrder = limOrder.makingAmount;
|
35
38
|
const totalAmount = rawAmountByMint.get(mint);
|
@@ -56,7 +59,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
56
59
|
platformId: constants_1.platformId,
|
57
60
|
value,
|
58
61
|
label: 'Deposit',
|
59
|
-
name: `Limit Orders (${
|
62
|
+
name: `Limit Orders (${allAccounts.length})`,
|
60
63
|
data: { assets },
|
61
64
|
};
|
62
65
|
return [element];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"limitFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/limitFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AAIpC,oDAAyD;AACzD,kDAAiE;AACjE,wGAAgF;AAChF,
|
1
|
+
{"version":3,"file":"limitFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/limitFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AAIpC,oDAAyD;AACzD,kDAAiE;AACjE,wGAAgF;AAChF,2CAA2E;AAC3E,uCAAiE;AACjE,uCAAyC;AAEzC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,WAAW,GAAG,CAClB,MAAM,OAAO,CAAC,GAAG,CAAC;Q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ensDetailsById.set(tD.address, tD) : undefined);
|
58
58
|
const levPositions = [];
|
59
59
|
for (const position of positionAccounts) {
|
60
|
-
const { collateralUsd, sizeUsd, price, side, cumulativeInterestSnapshot
|
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,s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B,IAAI,GAAG,EAAE,CAAC;IACxD,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;QAC9B,cAAc,CAAC,IAAI,CAAC,IAAI,mBAAS,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC;QAC3D,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;IAEH,MAAM,mBAAmB,GAAG,MAAM,IAAA,4BAAkB,EAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAE7E,MAAM,iBAAiB,GAA8B,IAAI,GAAG,EAAE,CAAC;IAC/D,MAAM,aAAa,GAAG,MAAM,KAAK,CAAC,QAAQ,CACxC,iBAAiB,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,EACxC,EAAE,MAAM,EAAE,mCAAuB,EAAE,SAAS,EAAE,0BAAS,CAAC,MAAM,EAAE,CACjE,CAAC;IACF,aAAa,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,CAC3B,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CACvD,CAAC;IAEF,MAAM,YAAY,GAAkB,EAAE,CAAC;IACvC,KAAK,MAAM,QAAQ,IAAI,gBAAgB,EAAE,CAAC;QACxC,MAAM,
|
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,IAA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K,CAAC,QAAQ,EAAE;SACxB,CAAC,CAAC;IACL,CAAC;IAED,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACzC,MAAM,KAAK,GAAG,IAAA,+BAAc,EAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IAC/D,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,IAAI,EAAE;gBACJ,SAAS,EAAE,YAAY;gBACvB,KAAK;aACN;YACD,KAAK,EAAE,UAAU;YACjB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,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"}
|
@@ -21,6 +21,27 @@ export type LimitOrder = {
|
|
21
21
|
referral: PublicKey;
|
22
22
|
};
|
23
23
|
export declare const limitOrderStruct: BeetStruct<LimitOrder, Partial<LimitOrder>>;
|
24
|
+
export type LimitOrderV2 = {
|
25
|
+
buffer: Buffer;
|
26
|
+
maker: PublicKey;
|
27
|
+
inputMint: PublicKey;
|
28
|
+
outputMint: PublicKey;
|
29
|
+
inputTokenProgram: PublicKey;
|
30
|
+
outputTokenProgram: PublicKey;
|
31
|
+
uniqueId: boolean;
|
32
|
+
oriMakingAmount: BigNumber;
|
33
|
+
oriTakingAmount: BigNumber;
|
34
|
+
makingAmount: BigNumber;
|
35
|
+
takingAmount: BigNumber;
|
36
|
+
borrowMakingAmount: BigNumber;
|
37
|
+
expiredAt: BigNumber;
|
38
|
+
feeBps: number;
|
39
|
+
feeAccount: PublicKey;
|
40
|
+
createdAt: BigNumber;
|
41
|
+
updatedAt: BigNumber;
|
42
|
+
bump: number;
|
43
|
+
};
|
44
|
+
export declare const limitOrderV2Struct: BeetStruct<LimitOrderV2, Partial<LimitOrderV2>>;
|
24
45
|
export type DCA = {
|
25
46
|
buffer: Buffer;
|
26
47
|
user: PublicKey;
|