@drift-labs/sdk 2.111.0-beta.0 → 2.111.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/browser/constants/perpMarkets.js +5 -4
- package/lib/browser/constants/spotMarkets.js +4 -4
- package/lib/node/constants/perpMarkets.js +5 -4
- package/lib/node/constants/spotMarkets.js +4 -4
- package/package.json +1 -1
- package/src/constants/perpMarkets.ts +6 -4
- package/src/constants/spotMarkets.ts +4 -4
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.111.0-beta.
|
|
1
|
+
2.111.0-beta.2
|
|
@@ -374,9 +374,9 @@ exports.MainnetPerpMarkets = [
|
|
|
374
374
|
symbol: 'ETH-PERP',
|
|
375
375
|
baseAssetSymbol: 'ETH',
|
|
376
376
|
marketIndex: 2,
|
|
377
|
-
oracle: new web3_js_1.PublicKey('
|
|
377
|
+
oracle: new web3_js_1.PublicKey('93FG52TzNKCnMiasV14Ba34BYcHDb9p4zK4GjZnLwqWR'),
|
|
378
378
|
launchTs: 1670347281000,
|
|
379
|
-
oracleSource: __1.OracleSource.
|
|
379
|
+
oracleSource: __1.OracleSource.PYTH_LAZER,
|
|
380
380
|
pythFeedId: '0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace',
|
|
381
381
|
pythLazerId: 2,
|
|
382
382
|
},
|
|
@@ -1134,9 +1134,10 @@ exports.MainnetPerpMarkets = [
|
|
|
1134
1134
|
symbol: 'KAITO-PERP',
|
|
1135
1135
|
baseAssetSymbol: 'KAITO',
|
|
1136
1136
|
marketIndex: 69,
|
|
1137
|
-
oracle: new web3_js_1.PublicKey('
|
|
1137
|
+
oracle: new web3_js_1.PublicKey('DRCNnwxET1URxGMvpCPncBkZsWf1Xh26TMxXNSGTrGpU'),
|
|
1138
1138
|
launchTs: 1739545901000,
|
|
1139
|
-
oracleSource: __1.OracleSource.
|
|
1139
|
+
oracleSource: __1.OracleSource.PYTH_PULL,
|
|
1140
|
+
pythFeedId: '0x7302dee641a08507c297a7b0c8b3efa74a48a3baa6c040acab1e5209692b7e59',
|
|
1140
1141
|
},
|
|
1141
1142
|
];
|
|
1142
1143
|
exports.PerpMarkets = {
|
|
@@ -97,8 +97,8 @@ exports.MainnetSpotMarkets = [
|
|
|
97
97
|
symbol: 'USDC',
|
|
98
98
|
marketIndex: 0,
|
|
99
99
|
poolId: 0,
|
|
100
|
-
oracle: new web3_js_1.PublicKey('
|
|
101
|
-
oracleSource: __1.OracleSource.
|
|
100
|
+
oracle: new web3_js_1.PublicKey('9VCioxmni2gDLv11qufWzT3RDERhQE4iY5Gf7NTfYyAV'),
|
|
101
|
+
oracleSource: __1.OracleSource.PYTH_LAZER_STABLE_COIN,
|
|
102
102
|
mint: new web3_js_1.PublicKey('EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'),
|
|
103
103
|
precision: numericConstants_1.QUOTE_PRECISION,
|
|
104
104
|
precisionExp: numericConstants_1.QUOTE_PRECISION_EXP,
|
|
@@ -136,8 +136,8 @@ exports.MainnetSpotMarkets = [
|
|
|
136
136
|
symbol: 'wBTC',
|
|
137
137
|
marketIndex: 3,
|
|
138
138
|
poolId: 0,
|
|
139
|
-
oracle: new web3_js_1.PublicKey('
|
|
140
|
-
oracleSource: __1.OracleSource.
|
|
139
|
+
oracle: new web3_js_1.PublicKey('fqPfDa6uQr9ndMvwaFp4mUBeUrHmLop8Jxfb1XJNmVm'),
|
|
140
|
+
oracleSource: __1.OracleSource.PYTH_LAZER,
|
|
141
141
|
mint: new web3_js_1.PublicKey('3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh'),
|
|
142
142
|
precision: new __1.BN(10).pow(numericConstants_1.EIGHT),
|
|
143
143
|
precisionExp: numericConstants_1.EIGHT,
|
|
@@ -374,9 +374,9 @@ exports.MainnetPerpMarkets = [
|
|
|
374
374
|
symbol: 'ETH-PERP',
|
|
375
375
|
baseAssetSymbol: 'ETH',
|
|
376
376
|
marketIndex: 2,
|
|
377
|
-
oracle: new web3_js_1.PublicKey('
|
|
377
|
+
oracle: new web3_js_1.PublicKey('93FG52TzNKCnMiasV14Ba34BYcHDb9p4zK4GjZnLwqWR'),
|
|
378
378
|
launchTs: 1670347281000,
|
|
379
|
-
oracleSource: __1.OracleSource.
|
|
379
|
+
oracleSource: __1.OracleSource.PYTH_LAZER,
|
|
380
380
|
pythFeedId: '0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace',
|
|
381
381
|
pythLazerId: 2,
|
|
382
382
|
},
|
|
@@ -1134,9 +1134,10 @@ exports.MainnetPerpMarkets = [
|
|
|
1134
1134
|
symbol: 'KAITO-PERP',
|
|
1135
1135
|
baseAssetSymbol: 'KAITO',
|
|
1136
1136
|
marketIndex: 69,
|
|
1137
|
-
oracle: new web3_js_1.PublicKey('
|
|
1137
|
+
oracle: new web3_js_1.PublicKey('DRCNnwxET1URxGMvpCPncBkZsWf1Xh26TMxXNSGTrGpU'),
|
|
1138
1138
|
launchTs: 1739545901000,
|
|
1139
|
-
oracleSource: __1.OracleSource.
|
|
1139
|
+
oracleSource: __1.OracleSource.PYTH_PULL,
|
|
1140
|
+
pythFeedId: '0x7302dee641a08507c297a7b0c8b3efa74a48a3baa6c040acab1e5209692b7e59',
|
|
1140
1141
|
},
|
|
1141
1142
|
];
|
|
1142
1143
|
exports.PerpMarkets = {
|
|
@@ -97,8 +97,8 @@ exports.MainnetSpotMarkets = [
|
|
|
97
97
|
symbol: 'USDC',
|
|
98
98
|
marketIndex: 0,
|
|
99
99
|
poolId: 0,
|
|
100
|
-
oracle: new web3_js_1.PublicKey('
|
|
101
|
-
oracleSource: __1.OracleSource.
|
|
100
|
+
oracle: new web3_js_1.PublicKey('9VCioxmni2gDLv11qufWzT3RDERhQE4iY5Gf7NTfYyAV'),
|
|
101
|
+
oracleSource: __1.OracleSource.PYTH_LAZER_STABLE_COIN,
|
|
102
102
|
mint: new web3_js_1.PublicKey('EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'),
|
|
103
103
|
precision: numericConstants_1.QUOTE_PRECISION,
|
|
104
104
|
precisionExp: numericConstants_1.QUOTE_PRECISION_EXP,
|
|
@@ -136,8 +136,8 @@ exports.MainnetSpotMarkets = [
|
|
|
136
136
|
symbol: 'wBTC',
|
|
137
137
|
marketIndex: 3,
|
|
138
138
|
poolId: 0,
|
|
139
|
-
oracle: new web3_js_1.PublicKey('
|
|
140
|
-
oracleSource: __1.OracleSource.
|
|
139
|
+
oracle: new web3_js_1.PublicKey('fqPfDa6uQr9ndMvwaFp4mUBeUrHmLop8Jxfb1XJNmVm'),
|
|
140
|
+
oracleSource: __1.OracleSource.PYTH_LAZER,
|
|
141
141
|
mint: new web3_js_1.PublicKey('3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh'),
|
|
142
142
|
precision: new __1.BN(10).pow(numericConstants_1.EIGHT),
|
|
143
143
|
precisionExp: numericConstants_1.EIGHT,
|
package/package.json
CHANGED
|
@@ -415,9 +415,9 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
|
|
|
415
415
|
symbol: 'ETH-PERP',
|
|
416
416
|
baseAssetSymbol: 'ETH',
|
|
417
417
|
marketIndex: 2,
|
|
418
|
-
oracle: new PublicKey('
|
|
418
|
+
oracle: new PublicKey('93FG52TzNKCnMiasV14Ba34BYcHDb9p4zK4GjZnLwqWR'),
|
|
419
419
|
launchTs: 1670347281000,
|
|
420
|
-
oracleSource: OracleSource.
|
|
420
|
+
oracleSource: OracleSource.PYTH_LAZER,
|
|
421
421
|
pythFeedId:
|
|
422
422
|
'0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace',
|
|
423
423
|
pythLazerId: 2,
|
|
@@ -1226,9 +1226,11 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
|
|
|
1226
1226
|
symbol: 'KAITO-PERP',
|
|
1227
1227
|
baseAssetSymbol: 'KAITO',
|
|
1228
1228
|
marketIndex: 69,
|
|
1229
|
-
oracle: new PublicKey('
|
|
1229
|
+
oracle: new PublicKey('DRCNnwxET1URxGMvpCPncBkZsWf1Xh26TMxXNSGTrGpU'),
|
|
1230
1230
|
launchTs: 1739545901000,
|
|
1231
|
-
oracleSource: OracleSource.
|
|
1231
|
+
oracleSource: OracleSource.PYTH_PULL,
|
|
1232
|
+
pythFeedId:
|
|
1233
|
+
'0x7302dee641a08507c297a7b0c8b3efa74a48a3baa6c040acab1e5209692b7e59',
|
|
1232
1234
|
},
|
|
1233
1235
|
];
|
|
1234
1236
|
|
|
@@ -134,8 +134,8 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
|
|
|
134
134
|
symbol: 'USDC',
|
|
135
135
|
marketIndex: 0,
|
|
136
136
|
poolId: 0,
|
|
137
|
-
oracle: new PublicKey('
|
|
138
|
-
oracleSource: OracleSource.
|
|
137
|
+
oracle: new PublicKey('9VCioxmni2gDLv11qufWzT3RDERhQE4iY5Gf7NTfYyAV'),
|
|
138
|
+
oracleSource: OracleSource.PYTH_LAZER_STABLE_COIN,
|
|
139
139
|
mint: new PublicKey('EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'),
|
|
140
140
|
precision: QUOTE_PRECISION,
|
|
141
141
|
precisionExp: QUOTE_PRECISION_EXP,
|
|
@@ -180,8 +180,8 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
|
|
|
180
180
|
symbol: 'wBTC',
|
|
181
181
|
marketIndex: 3,
|
|
182
182
|
poolId: 0,
|
|
183
|
-
oracle: new PublicKey('
|
|
184
|
-
oracleSource: OracleSource.
|
|
183
|
+
oracle: new PublicKey('fqPfDa6uQr9ndMvwaFp4mUBeUrHmLop8Jxfb1XJNmVm'),
|
|
184
|
+
oracleSource: OracleSource.PYTH_LAZER,
|
|
185
185
|
mint: new PublicKey('3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh'),
|
|
186
186
|
precision: new BN(10).pow(EIGHT),
|
|
187
187
|
precisionExp: EIGHT,
|