@drift-labs/sdk 2.86.0-beta.0 → 2.86.0-beta.2
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/perpMarkets.js +10 -0
- package/lib/constants/spotMarkets.js +11 -0
- package/package.json +4 -1
- package/src/constants/perpMarkets.ts +10 -0
- package/src/constants/spotMarkets.ts +13 -0
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.86.0-beta.
|
|
1
|
+
2.86.0-beta.2
|
|
@@ -653,6 +653,16 @@ exports.MainnetPerpMarkets = [
|
|
|
653
653
|
launchTs: 1719415157000,
|
|
654
654
|
oracleSource: __1.OracleSource.SWITCHBOARD,
|
|
655
655
|
},
|
|
656
|
+
{
|
|
657
|
+
fullName: 'POPCAT',
|
|
658
|
+
category: ['Meme', 'Solana'],
|
|
659
|
+
symbol: 'POPCAT-PERP',
|
|
660
|
+
baseAssetSymbol: 'POPCAT',
|
|
661
|
+
marketIndex: 34,
|
|
662
|
+
oracle: new web3_js_1.PublicKey('2stQe1XLGkuTZ22gQrgZKsb93iG9mWXSLfANMPRjs5Ky'),
|
|
663
|
+
launchTs: 1720013054000,
|
|
664
|
+
oracleSource: __1.OracleSource.SWITCHBOARD,
|
|
665
|
+
},
|
|
656
666
|
];
|
|
657
667
|
exports.PerpMarkets = {
|
|
658
668
|
devnet: exports.DevnetPerpMarkets,
|
|
@@ -268,6 +268,17 @@ exports.MainnetSpotMarkets = [
|
|
|
268
268
|
precisionExp: numericConstants_1.SIX,
|
|
269
269
|
launchTs: 1719415157000,
|
|
270
270
|
},
|
|
271
|
+
{
|
|
272
|
+
symbol: 'POPCAT',
|
|
273
|
+
marketIndex: 20,
|
|
274
|
+
oracle: new web3_js_1.PublicKey('2stQe1XLGkuTZ22gQrgZKsb93iG9mWXSLfANMPRjs5Ky'),
|
|
275
|
+
oracleSource: __1.OracleSource.SWITCHBOARD,
|
|
276
|
+
mint: new web3_js_1.PublicKey('7GCihgDB8fe6KNjn2MYtkzZcRjQy3t9GHdC8uHYmW2hr'),
|
|
277
|
+
precision: new __1.BN(10).pow(numericConstants_1.NINE),
|
|
278
|
+
precisionExp: numericConstants_1.NINE,
|
|
279
|
+
launchTs: 1720013054000,
|
|
280
|
+
phoenixMarket: new web3_js_1.PublicKey('31XgvAQ1HgFQEk31KdszbPkVXKaQqB1bgYZPoDrFpSR2'),
|
|
281
|
+
},
|
|
271
282
|
];
|
|
272
283
|
exports.SpotMarkets = {
|
|
273
284
|
devnet: exports.DevnetSpotMarkets,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drift-labs/sdk",
|
|
3
|
-
"version": "2.86.0-beta.
|
|
3
|
+
"version": "2.86.0-beta.2",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"author": "crispheaney",
|
|
@@ -73,5 +73,8 @@
|
|
|
73
73
|
"description": "SDK for Drift Protocol",
|
|
74
74
|
"engines": {
|
|
75
75
|
"node": ">=18"
|
|
76
|
+
},
|
|
77
|
+
"resolutions": {
|
|
78
|
+
"@solana/errors": "2.0.0-preview.4"
|
|
76
79
|
}
|
|
77
80
|
}
|
|
@@ -722,6 +722,16 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
|
|
|
722
722
|
launchTs: 1719415157000,
|
|
723
723
|
oracleSource: OracleSource.SWITCHBOARD,
|
|
724
724
|
},
|
|
725
|
+
{
|
|
726
|
+
fullName: 'POPCAT',
|
|
727
|
+
category: ['Meme', 'Solana'],
|
|
728
|
+
symbol: 'POPCAT-PERP',
|
|
729
|
+
baseAssetSymbol: 'POPCAT',
|
|
730
|
+
marketIndex: 34,
|
|
731
|
+
oracle: new PublicKey('2stQe1XLGkuTZ22gQrgZKsb93iG9mWXSLfANMPRjs5Ky'),
|
|
732
|
+
launchTs: 1720013054000,
|
|
733
|
+
oracleSource: OracleSource.SWITCHBOARD,
|
|
734
|
+
},
|
|
725
735
|
];
|
|
726
736
|
|
|
727
737
|
export const PerpMarkets: { [key in DriftEnv]: PerpMarketConfig[] } = {
|
|
@@ -334,6 +334,19 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
|
|
|
334
334
|
precisionExp: SIX,
|
|
335
335
|
launchTs: 1719415157000,
|
|
336
336
|
},
|
|
337
|
+
{
|
|
338
|
+
symbol: 'POPCAT',
|
|
339
|
+
marketIndex: 20,
|
|
340
|
+
oracle: new PublicKey('2stQe1XLGkuTZ22gQrgZKsb93iG9mWXSLfANMPRjs5Ky'),
|
|
341
|
+
oracleSource: OracleSource.SWITCHBOARD,
|
|
342
|
+
mint: new PublicKey('7GCihgDB8fe6KNjn2MYtkzZcRjQy3t9GHdC8uHYmW2hr'),
|
|
343
|
+
precision: new BN(10).pow(NINE),
|
|
344
|
+
precisionExp: NINE,
|
|
345
|
+
launchTs: 1720013054000,
|
|
346
|
+
phoenixMarket: new PublicKey(
|
|
347
|
+
'31XgvAQ1HgFQEk31KdszbPkVXKaQqB1bgYZPoDrFpSR2'
|
|
348
|
+
),
|
|
349
|
+
},
|
|
337
350
|
];
|
|
338
351
|
|
|
339
352
|
export const SpotMarkets: { [key in DriftEnv]: SpotMarketConfig[] } = {
|