@drift-labs/sdk 2.82.0-beta.17 → 2.82.0-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/lib/constants/spotMarkets.js +10 -0
- package/package.json +1 -1
- package/src/constants/spotMarkets.ts +10 -0
- package/tests/dlob/helpers.ts +3 -0
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.82.0-beta.
|
|
1
|
+
2.82.0-beta.18
|
|
@@ -197,6 +197,16 @@ exports.MainnetSpotMarkets = [
|
|
|
197
197
|
phoenixMarket: new web3_js_1.PublicKey('AbJCZ9TAJiby5AY3cHcXS2gUdENC6mtsm6m7XpC2ZMvE'),
|
|
198
198
|
launchTs: 1712593532000,
|
|
199
199
|
},
|
|
200
|
+
{
|
|
201
|
+
symbol: 'DRIFT',
|
|
202
|
+
marketIndex: 15,
|
|
203
|
+
oracle: new web3_js_1.PublicKey('PeNpQeGEm9UEFJ6MBCMauY4WW4h3YxoESPWbsqVKucE'),
|
|
204
|
+
oracleSource: __1.OracleSource.SWITCHBOARD,
|
|
205
|
+
mint: new web3_js_1.PublicKey('DriFtupJYLTosbwoN8koMbEYSx54aFAVLddWsbksjwg7'),
|
|
206
|
+
precision: new __1.BN(10).pow(numericConstants_1.SIX),
|
|
207
|
+
precisionExp: numericConstants_1.SIX,
|
|
208
|
+
launchTs: 1715860800000,
|
|
209
|
+
},
|
|
200
210
|
];
|
|
201
211
|
exports.SpotMarkets = {
|
|
202
212
|
devnet: exports.DevnetSpotMarkets,
|
package/package.json
CHANGED
|
@@ -240,6 +240,16 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
|
|
|
240
240
|
),
|
|
241
241
|
launchTs: 1712593532000,
|
|
242
242
|
},
|
|
243
|
+
{
|
|
244
|
+
symbol: 'DRIFT',
|
|
245
|
+
marketIndex: 15,
|
|
246
|
+
oracle: new PublicKey('PeNpQeGEm9UEFJ6MBCMauY4WW4h3YxoESPWbsqVKucE'),
|
|
247
|
+
oracleSource: OracleSource.SWITCHBOARD,
|
|
248
|
+
mint: new PublicKey('DriFtupJYLTosbwoN8koMbEYSx54aFAVLddWsbksjwg7'),
|
|
249
|
+
precision: new BN(10).pow(SIX),
|
|
250
|
+
precisionExp: SIX,
|
|
251
|
+
launchTs: 1715860800000,
|
|
252
|
+
},
|
|
243
253
|
];
|
|
244
254
|
|
|
245
255
|
export const SpotMarkets: { [key in DriftEnv]: SpotMarketConfig[] } = {
|
package/tests/dlob/helpers.ts
CHANGED
|
@@ -350,6 +350,7 @@ export const mockSpotMarkets: Array<SpotMarketAccount> = [
|
|
|
350
350
|
lastIndexPriceTwapTs: new BN(0),
|
|
351
351
|
},
|
|
352
352
|
pausedOperations: 0,
|
|
353
|
+
ifPausedOperations: 0,
|
|
353
354
|
},
|
|
354
355
|
{
|
|
355
356
|
status: MarketStatus.ACTIVE,
|
|
@@ -432,6 +433,7 @@ export const mockSpotMarkets: Array<SpotMarketAccount> = [
|
|
|
432
433
|
lastIndexPriceTwapTs: new BN(0),
|
|
433
434
|
},
|
|
434
435
|
pausedOperations: 0,
|
|
436
|
+
ifPausedOperations: 0,
|
|
435
437
|
},
|
|
436
438
|
{
|
|
437
439
|
status: MarketStatus.ACTIVE,
|
|
@@ -514,6 +516,7 @@ export const mockSpotMarkets: Array<SpotMarketAccount> = [
|
|
|
514
516
|
lastIndexPriceTwapTs: new BN(0),
|
|
515
517
|
},
|
|
516
518
|
pausedOperations: 0,
|
|
519
|
+
ifPausedOperations: 0,
|
|
517
520
|
},
|
|
518
521
|
];
|
|
519
522
|
|