@drift-labs/sdk 2.32.1-beta.11 → 2.32.1-beta.13
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 +6 -6
- package/lib/driftClient.js +2 -2
- package/lib/types.d.ts +2 -0
- package/package.json +1 -1
- package/src/constants/perpMarkets.ts +6 -6
- package/src/driftClient.ts +2 -2
- package/src/types.ts +2 -0
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.32.1-beta.
|
|
1
|
+
2.32.1-beta.13
|
|
@@ -111,7 +111,7 @@ exports.DevnetPerpMarkets = [
|
|
|
111
111
|
baseAssetSymbol: '1MPEPE',
|
|
112
112
|
marketIndex: 10,
|
|
113
113
|
oracle: new web3_js_1.PublicKey('Gz9RfgDeAFSsH7BHDGyNTgCik74rjNwsodJpsCizzmkj'),
|
|
114
|
-
launchTs:
|
|
114
|
+
launchTs: 1683781239000,
|
|
115
115
|
oracleSource: __1.OracleSource.PYTH_1M,
|
|
116
116
|
},
|
|
117
117
|
{
|
|
@@ -121,7 +121,7 @@ exports.DevnetPerpMarkets = [
|
|
|
121
121
|
baseAssetSymbol: 'OP',
|
|
122
122
|
marketIndex: 11,
|
|
123
123
|
oracle: new web3_js_1.PublicKey('8ctSiDhA7eJoii4TkKV8Rx4KFdz3ycsA1FXy9wq56quG'),
|
|
124
|
-
launchTs:
|
|
124
|
+
launchTs: 1686091480000,
|
|
125
125
|
oracleSource: __1.OracleSource.PYTH,
|
|
126
126
|
},
|
|
127
127
|
{
|
|
@@ -131,7 +131,7 @@ exports.DevnetPerpMarkets = [
|
|
|
131
131
|
baseAssetSymbol: 'RNDR',
|
|
132
132
|
marketIndex: 12,
|
|
133
133
|
oracle: new web3_js_1.PublicKey('C2QvUPBiU3fViSyqA4nZgGyYqLgYf9PRpd8B8oLoo48w'),
|
|
134
|
-
launchTs:
|
|
134
|
+
launchTs: 1687201081000,
|
|
135
135
|
oracleSource: __1.OracleSource.PYTH,
|
|
136
136
|
},
|
|
137
137
|
];
|
|
@@ -243,7 +243,7 @@ exports.MainnetPerpMarkets = [
|
|
|
243
243
|
baseAssetSymbol: '1MPEPE',
|
|
244
244
|
marketIndex: 10,
|
|
245
245
|
oracle: new web3_js_1.PublicKey('FSfxunDmjjbDV2QxpyxFCAPKmYJHSLnLuvQXDLkMzLBm'),
|
|
246
|
-
launchTs:
|
|
246
|
+
launchTs: 1683781239000,
|
|
247
247
|
oracleSource: __1.OracleSource.PYTH_1M,
|
|
248
248
|
},
|
|
249
249
|
{
|
|
@@ -253,7 +253,7 @@ exports.MainnetPerpMarkets = [
|
|
|
253
253
|
baseAssetSymbol: 'OP',
|
|
254
254
|
marketIndex: 11,
|
|
255
255
|
oracle: new web3_js_1.PublicKey('4o4CUwzFwLqCvmA5x1G4VzoZkAhAcbiuiYyjWX1CVbY2'),
|
|
256
|
-
launchTs:
|
|
256
|
+
launchTs: 1686091480000,
|
|
257
257
|
oracleSource: __1.OracleSource.PYTH,
|
|
258
258
|
},
|
|
259
259
|
{
|
|
@@ -263,7 +263,7 @@ exports.MainnetPerpMarkets = [
|
|
|
263
263
|
baseAssetSymbol: 'RNDR',
|
|
264
264
|
marketIndex: 12,
|
|
265
265
|
oracle: new web3_js_1.PublicKey('CYGfrBJB9HgLf9iZyN4aH5HvUAi2htQ4MjPxeXMf4Egn'),
|
|
266
|
-
launchTs:
|
|
266
|
+
launchTs: 1687201081000,
|
|
267
267
|
oracleSource: __1.OracleSource.PYTH,
|
|
268
268
|
},
|
|
269
269
|
];
|
package/lib/driftClient.js
CHANGED
|
@@ -2053,7 +2053,7 @@ class DriftClient {
|
|
|
2053
2053
|
state: await this.getStatePublicKey(),
|
|
2054
2054
|
user: userAccountPublicKeyToUse,
|
|
2055
2055
|
userStats: this.getUserStatsAccountPublicKey(),
|
|
2056
|
-
authority: this.
|
|
2056
|
+
authority: this.wallet.publicKey,
|
|
2057
2057
|
outSpotMarketVault: outSpotMarket.vault,
|
|
2058
2058
|
inSpotMarketVault: inSpotMarket.vault,
|
|
2059
2059
|
inTokenAccount,
|
|
@@ -2069,7 +2069,7 @@ class DriftClient {
|
|
|
2069
2069
|
state: await this.getStatePublicKey(),
|
|
2070
2070
|
user: userAccountPublicKeyToUse,
|
|
2071
2071
|
userStats: this.getUserStatsAccountPublicKey(),
|
|
2072
|
-
authority: this.
|
|
2072
|
+
authority: this.wallet.publicKey,
|
|
2073
2073
|
outSpotMarketVault: outSpotMarket.vault,
|
|
2074
2074
|
inSpotMarketVault: inSpotMarket.vault,
|
|
2075
2075
|
inTokenAccount,
|
package/lib/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -121,7 +121,7 @@ export const DevnetPerpMarkets: PerpMarketConfig[] = [
|
|
|
121
121
|
baseAssetSymbol: '1MPEPE',
|
|
122
122
|
marketIndex: 10,
|
|
123
123
|
oracle: new PublicKey('Gz9RfgDeAFSsH7BHDGyNTgCik74rjNwsodJpsCizzmkj'),
|
|
124
|
-
launchTs:
|
|
124
|
+
launchTs: 1683781239000,
|
|
125
125
|
oracleSource: OracleSource.PYTH_1M,
|
|
126
126
|
},
|
|
127
127
|
{
|
|
@@ -131,7 +131,7 @@ export const DevnetPerpMarkets: PerpMarketConfig[] = [
|
|
|
131
131
|
baseAssetSymbol: 'OP',
|
|
132
132
|
marketIndex: 11,
|
|
133
133
|
oracle: new PublicKey('8ctSiDhA7eJoii4TkKV8Rx4KFdz3ycsA1FXy9wq56quG'),
|
|
134
|
-
launchTs:
|
|
134
|
+
launchTs: 1686091480000,
|
|
135
135
|
oracleSource: OracleSource.PYTH,
|
|
136
136
|
},
|
|
137
137
|
{
|
|
@@ -141,7 +141,7 @@ export const DevnetPerpMarkets: PerpMarketConfig[] = [
|
|
|
141
141
|
baseAssetSymbol: 'RNDR',
|
|
142
142
|
marketIndex: 12,
|
|
143
143
|
oracle: new PublicKey('C2QvUPBiU3fViSyqA4nZgGyYqLgYf9PRpd8B8oLoo48w'),
|
|
144
|
-
launchTs:
|
|
144
|
+
launchTs: 1687201081000,
|
|
145
145
|
oracleSource: OracleSource.PYTH,
|
|
146
146
|
},
|
|
147
147
|
];
|
|
@@ -254,7 +254,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
|
|
|
254
254
|
baseAssetSymbol: '1MPEPE',
|
|
255
255
|
marketIndex: 10,
|
|
256
256
|
oracle: new PublicKey('FSfxunDmjjbDV2QxpyxFCAPKmYJHSLnLuvQXDLkMzLBm'),
|
|
257
|
-
launchTs:
|
|
257
|
+
launchTs: 1683781239000,
|
|
258
258
|
oracleSource: OracleSource.PYTH_1M,
|
|
259
259
|
},
|
|
260
260
|
{
|
|
@@ -264,7 +264,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
|
|
|
264
264
|
baseAssetSymbol: 'OP',
|
|
265
265
|
marketIndex: 11,
|
|
266
266
|
oracle: new PublicKey('4o4CUwzFwLqCvmA5x1G4VzoZkAhAcbiuiYyjWX1CVbY2'),
|
|
267
|
-
launchTs:
|
|
267
|
+
launchTs: 1686091480000,
|
|
268
268
|
oracleSource: OracleSource.PYTH,
|
|
269
269
|
},
|
|
270
270
|
{
|
|
@@ -274,7 +274,7 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
|
|
|
274
274
|
baseAssetSymbol: 'RNDR',
|
|
275
275
|
marketIndex: 12,
|
|
276
276
|
oracle: new PublicKey('CYGfrBJB9HgLf9iZyN4aH5HvUAi2htQ4MjPxeXMf4Egn'),
|
|
277
|
-
launchTs:
|
|
277
|
+
launchTs: 1687201081000,
|
|
278
278
|
oracleSource: OracleSource.PYTH,
|
|
279
279
|
},
|
|
280
280
|
];
|
package/src/driftClient.ts
CHANGED
|
@@ -3594,7 +3594,7 @@ export class DriftClient {
|
|
|
3594
3594
|
state: await this.getStatePublicKey(),
|
|
3595
3595
|
user: userAccountPublicKeyToUse,
|
|
3596
3596
|
userStats: this.getUserStatsAccountPublicKey(),
|
|
3597
|
-
authority: this.
|
|
3597
|
+
authority: this.wallet.publicKey,
|
|
3598
3598
|
outSpotMarketVault: outSpotMarket.vault,
|
|
3599
3599
|
inSpotMarketVault: inSpotMarket.vault,
|
|
3600
3600
|
inTokenAccount,
|
|
@@ -3617,7 +3617,7 @@ export class DriftClient {
|
|
|
3617
3617
|
state: await this.getStatePublicKey(),
|
|
3618
3618
|
user: userAccountPublicKeyToUse,
|
|
3619
3619
|
userStats: this.getUserStatsAccountPublicKey(),
|
|
3620
|
-
authority: this.
|
|
3620
|
+
authority: this.wallet.publicKey,
|
|
3621
3621
|
outSpotMarketVault: outSpotMarket.vault,
|
|
3622
3622
|
inSpotMarketVault: inSpotMarket.vault,
|
|
3623
3623
|
inTokenAccount,
|