@drift-labs/sdk 2.115.0-beta.6 → 2.115.0-beta.8
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/browser/constants/perpMarkets.js +2 -2
- package/lib/browser/driftClient.js +2 -2
- package/lib/node/constants/perpMarkets.js +2 -2
- package/lib/node/driftClient.js +2 -2
- package/package.json +1 -1
- package/src/constants/perpMarkets.ts +2 -2
- package/src/driftClient.ts +2 -2
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.115.0-beta.
|
|
1
|
+
2.115.0-beta.8
|
|
@@ -58,9 +58,9 @@ exports.DevnetPerpMarkets = [
|
|
|
58
58
|
symbol: '1MBONK-PERP',
|
|
59
59
|
baseAssetSymbol: '1MBONK',
|
|
60
60
|
marketIndex: 4,
|
|
61
|
-
oracle: new web3_js_1.PublicKey('
|
|
61
|
+
oracle: new web3_js_1.PublicKey('BERaNi6cpEresbq6HC1EQGaB1H1UjvEo4NGnmYSSJof4'),
|
|
62
62
|
launchTs: 1677068931000,
|
|
63
|
-
oracleSource: __1.OracleSource.
|
|
63
|
+
oracleSource: __1.OracleSource.PYTH_LAZER_1M,
|
|
64
64
|
pythFeedId: '0x72b021217ca3fe68922a19aaf990109cb9d84e9ad004b4d2025ad6f529314419',
|
|
65
65
|
pythLazerId: 9,
|
|
66
66
|
},
|
|
@@ -3418,7 +3418,7 @@ class DriftClient {
|
|
|
3418
3418
|
async getPlaceSignedMsgTakerPerpOrderIxs(signedSignedMsgOrderParams, marketIndex, takerInfo, precedingIxs = [], overrideCustomIxIndex) {
|
|
3419
3419
|
const remainingAccounts = this.getRemainingAccounts({
|
|
3420
3420
|
userAccounts: [takerInfo.takerUserAccount],
|
|
3421
|
-
useMarketLastSlotCache:
|
|
3421
|
+
useMarketLastSlotCache: false,
|
|
3422
3422
|
readablePerpMarketIndex: marketIndex,
|
|
3423
3423
|
});
|
|
3424
3424
|
const messageLengthBuffer = Buffer.alloc(2);
|
|
@@ -3460,7 +3460,7 @@ class DriftClient {
|
|
|
3460
3460
|
this.getUserAccount(subAccountId),
|
|
3461
3461
|
takerInfo.takerUserAccount,
|
|
3462
3462
|
],
|
|
3463
|
-
useMarketLastSlotCache:
|
|
3463
|
+
useMarketLastSlotCache: false,
|
|
3464
3464
|
writablePerpMarketIndexes: [orderParams.marketIndex],
|
|
3465
3465
|
});
|
|
3466
3466
|
if (referrerInfo) {
|
|
@@ -58,9 +58,9 @@ exports.DevnetPerpMarkets = [
|
|
|
58
58
|
symbol: '1MBONK-PERP',
|
|
59
59
|
baseAssetSymbol: '1MBONK',
|
|
60
60
|
marketIndex: 4,
|
|
61
|
-
oracle: new web3_js_1.PublicKey('
|
|
61
|
+
oracle: new web3_js_1.PublicKey('BERaNi6cpEresbq6HC1EQGaB1H1UjvEo4NGnmYSSJof4'),
|
|
62
62
|
launchTs: 1677068931000,
|
|
63
|
-
oracleSource: __1.OracleSource.
|
|
63
|
+
oracleSource: __1.OracleSource.PYTH_LAZER_1M,
|
|
64
64
|
pythFeedId: '0x72b021217ca3fe68922a19aaf990109cb9d84e9ad004b4d2025ad6f529314419',
|
|
65
65
|
pythLazerId: 9,
|
|
66
66
|
},
|
package/lib/node/driftClient.js
CHANGED
|
@@ -3418,7 +3418,7 @@ class DriftClient {
|
|
|
3418
3418
|
async getPlaceSignedMsgTakerPerpOrderIxs(signedSignedMsgOrderParams, marketIndex, takerInfo, precedingIxs = [], overrideCustomIxIndex) {
|
|
3419
3419
|
const remainingAccounts = this.getRemainingAccounts({
|
|
3420
3420
|
userAccounts: [takerInfo.takerUserAccount],
|
|
3421
|
-
useMarketLastSlotCache:
|
|
3421
|
+
useMarketLastSlotCache: false,
|
|
3422
3422
|
readablePerpMarketIndex: marketIndex,
|
|
3423
3423
|
});
|
|
3424
3424
|
const messageLengthBuffer = Buffer.alloc(2);
|
|
@@ -3460,7 +3460,7 @@ class DriftClient {
|
|
|
3460
3460
|
this.getUserAccount(subAccountId),
|
|
3461
3461
|
takerInfo.takerUserAccount,
|
|
3462
3462
|
],
|
|
3463
|
-
useMarketLastSlotCache:
|
|
3463
|
+
useMarketLastSlotCache: false,
|
|
3464
3464
|
writablePerpMarketIndexes: [orderParams.marketIndex],
|
|
3465
3465
|
});
|
|
3466
3466
|
if (referrerInfo) {
|
package/package.json
CHANGED
|
@@ -74,9 +74,9 @@ export const DevnetPerpMarkets: PerpMarketConfig[] = [
|
|
|
74
74
|
symbol: '1MBONK-PERP',
|
|
75
75
|
baseAssetSymbol: '1MBONK',
|
|
76
76
|
marketIndex: 4,
|
|
77
|
-
oracle: new PublicKey('
|
|
77
|
+
oracle: new PublicKey('BERaNi6cpEresbq6HC1EQGaB1H1UjvEo4NGnmYSSJof4'),
|
|
78
78
|
launchTs: 1677068931000,
|
|
79
|
-
oracleSource: OracleSource.
|
|
79
|
+
oracleSource: OracleSource.PYTH_LAZER_1M,
|
|
80
80
|
pythFeedId:
|
|
81
81
|
'0x72b021217ca3fe68922a19aaf990109cb9d84e9ad004b4d2025ad6f529314419',
|
|
82
82
|
pythLazerId: 9,
|
package/src/driftClient.ts
CHANGED
|
@@ -6408,7 +6408,7 @@ export class DriftClient {
|
|
|
6408
6408
|
): Promise<TransactionInstruction[]> {
|
|
6409
6409
|
const remainingAccounts = this.getRemainingAccounts({
|
|
6410
6410
|
userAccounts: [takerInfo.takerUserAccount],
|
|
6411
|
-
useMarketLastSlotCache:
|
|
6411
|
+
useMarketLastSlotCache: false,
|
|
6412
6412
|
readablePerpMarketIndex: marketIndex,
|
|
6413
6413
|
});
|
|
6414
6414
|
|
|
@@ -6526,7 +6526,7 @@ export class DriftClient {
|
|
|
6526
6526
|
this.getUserAccount(subAccountId),
|
|
6527
6527
|
takerInfo.takerUserAccount,
|
|
6528
6528
|
],
|
|
6529
|
-
useMarketLastSlotCache:
|
|
6529
|
+
useMarketLastSlotCache: false,
|
|
6530
6530
|
writablePerpMarketIndexes: [orderParams.marketIndex],
|
|
6531
6531
|
});
|
|
6532
6532
|
|