@drift-labs/sdk 2.45.0-beta.0 → 2.45.0-beta.1
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 +22 -2
- package/lib/constants/spotMarkets.js +10 -0
- package/package.json +1 -1
- package/src/constants/perpMarkets.ts +22 -2
- package/src/constants/spotMarkets.ts +10 -0
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.45.0-beta.
|
|
1
|
+
2.45.0-beta.1
|
|
@@ -181,7 +181,17 @@ exports.DevnetPerpMarkets = [
|
|
|
181
181
|
baseAssetSymbol: 'RLB',
|
|
182
182
|
marketIndex: 17,
|
|
183
183
|
oracle: new web3_js_1.PublicKey('6BmJozusMugAySsfNfMFsU1YRWcGwyP3oycNX9Pv9oCz'),
|
|
184
|
-
launchTs:
|
|
184
|
+
launchTs: 1699265968000,
|
|
185
|
+
oracleSource: __1.OracleSource.PYTH,
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
fullName: 'Pyth',
|
|
189
|
+
category: ['Oracle'],
|
|
190
|
+
symbol: 'PYTH-PERP',
|
|
191
|
+
baseAssetSymbol: 'PYTH',
|
|
192
|
+
marketIndex: 18,
|
|
193
|
+
oracle: new web3_js_1.PublicKey('ELF78ZhSr8u4SCixA7YSpjdZHZoSNrAhcyysbavpC2kA'),
|
|
194
|
+
launchTs: 1700542800000,
|
|
185
195
|
oracleSource: __1.OracleSource.PYTH,
|
|
186
196
|
},
|
|
187
197
|
];
|
|
@@ -363,7 +373,17 @@ exports.MainnetPerpMarkets = [
|
|
|
363
373
|
baseAssetSymbol: 'RLB',
|
|
364
374
|
marketIndex: 17,
|
|
365
375
|
oracle: new web3_js_1.PublicKey('4BA3RcS4zE32WWgp49vvvre2t6nXY1W1kMyKZxeeuUey'),
|
|
366
|
-
launchTs:
|
|
376
|
+
launchTs: 1699265968000,
|
|
377
|
+
oracleSource: __1.OracleSource.PYTH,
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
fullName: 'Pyth',
|
|
381
|
+
category: ['Oracle'],
|
|
382
|
+
symbol: 'PYTH-PERP',
|
|
383
|
+
baseAssetSymbol: 'PYTH',
|
|
384
|
+
marketIndex: 18,
|
|
385
|
+
oracle: new web3_js_1.PublicKey('nrYkQQQur7z8rYTST3G9GqATviK5SxTDkrqd21MW6Ue'),
|
|
386
|
+
launchTs: 1700542800000,
|
|
367
387
|
oracleSource: __1.OracleSource.PYTH,
|
|
368
388
|
},
|
|
369
389
|
];
|
|
@@ -109,6 +109,16 @@ exports.MainnetSpotMarkets = [
|
|
|
109
109
|
precisionExp: numericConstants_1.NINE,
|
|
110
110
|
serumMarket: new web3_js_1.PublicKey('DkbVbMhFxswS32xnn1K2UY4aoBugXooBTxdzkWWDWRkH'),
|
|
111
111
|
},
|
|
112
|
+
{
|
|
113
|
+
symbol: 'PYTH',
|
|
114
|
+
marketIndex: 7,
|
|
115
|
+
oracle: new web3_js_1.PublicKey('nrYkQQQur7z8rYTST3G9GqATviK5SxTDkrqd21MW6Ue'),
|
|
116
|
+
oracleSource: __1.OracleSource.PYTH,
|
|
117
|
+
mint: new web3_js_1.PublicKey('HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3'),
|
|
118
|
+
precision: new __1.BN(10).pow(numericConstants_1.SIX),
|
|
119
|
+
precisionExp: numericConstants_1.SIX,
|
|
120
|
+
serumMarket: new web3_js_1.PublicKey('4E17F3BxtNVqzVsirxguuqkpYLtFgCR6NfTpccPh82WE'),
|
|
121
|
+
},
|
|
112
122
|
];
|
|
113
123
|
exports.SpotMarkets = {
|
|
114
124
|
devnet: exports.DevnetSpotMarkets,
|
package/package.json
CHANGED
|
@@ -191,7 +191,17 @@ export const DevnetPerpMarkets: PerpMarketConfig[] = [
|
|
|
191
191
|
baseAssetSymbol: 'RLB',
|
|
192
192
|
marketIndex: 17,
|
|
193
193
|
oracle: new PublicKey('6BmJozusMugAySsfNfMFsU1YRWcGwyP3oycNX9Pv9oCz'),
|
|
194
|
-
launchTs:
|
|
194
|
+
launchTs: 1699265968000,
|
|
195
|
+
oracleSource: OracleSource.PYTH,
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
fullName: 'Pyth',
|
|
199
|
+
category: ['Oracle'],
|
|
200
|
+
symbol: 'PYTH-PERP',
|
|
201
|
+
baseAssetSymbol: 'PYTH',
|
|
202
|
+
marketIndex: 18,
|
|
203
|
+
oracle: new PublicKey('ELF78ZhSr8u4SCixA7YSpjdZHZoSNrAhcyysbavpC2kA'),
|
|
204
|
+
launchTs: 1700542800000,
|
|
195
205
|
oracleSource: OracleSource.PYTH,
|
|
196
206
|
},
|
|
197
207
|
];
|
|
@@ -374,7 +384,17 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
|
|
|
374
384
|
baseAssetSymbol: 'RLB',
|
|
375
385
|
marketIndex: 17,
|
|
376
386
|
oracle: new PublicKey('4BA3RcS4zE32WWgp49vvvre2t6nXY1W1kMyKZxeeuUey'),
|
|
377
|
-
launchTs:
|
|
387
|
+
launchTs: 1699265968000,
|
|
388
|
+
oracleSource: OracleSource.PYTH,
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
fullName: 'Pyth',
|
|
392
|
+
category: ['Oracle'],
|
|
393
|
+
symbol: 'PYTH-PERP',
|
|
394
|
+
baseAssetSymbol: 'PYTH',
|
|
395
|
+
marketIndex: 18,
|
|
396
|
+
oracle: new PublicKey('nrYkQQQur7z8rYTST3G9GqATviK5SxTDkrqd21MW6Ue'),
|
|
397
|
+
launchTs: 1700542800000,
|
|
378
398
|
oracleSource: OracleSource.PYTH,
|
|
379
399
|
},
|
|
380
400
|
];
|
|
@@ -137,6 +137,16 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
|
|
|
137
137
|
precisionExp: NINE,
|
|
138
138
|
serumMarket: new PublicKey('DkbVbMhFxswS32xnn1K2UY4aoBugXooBTxdzkWWDWRkH'),
|
|
139
139
|
},
|
|
140
|
+
{
|
|
141
|
+
symbol: 'PYTH',
|
|
142
|
+
marketIndex: 7,
|
|
143
|
+
oracle: new PublicKey('nrYkQQQur7z8rYTST3G9GqATviK5SxTDkrqd21MW6Ue'),
|
|
144
|
+
oracleSource: OracleSource.PYTH,
|
|
145
|
+
mint: new PublicKey('HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3'),
|
|
146
|
+
precision: new BN(10).pow(SIX),
|
|
147
|
+
precisionExp: SIX,
|
|
148
|
+
serumMarket: new PublicKey('4E17F3BxtNVqzVsirxguuqkpYLtFgCR6NfTpccPh82WE'),
|
|
149
|
+
},
|
|
140
150
|
];
|
|
141
151
|
|
|
142
152
|
export const SpotMarkets: { [key in DriftEnv]: SpotMarketConfig[] } = {
|