@drift-labs/sdk 2.42.0-beta.12 → 2.42.0-beta.14

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 CHANGED
@@ -1 +1 @@
1
- 2.42.0-beta.12
1
+ 2.42.0-beta.14
package/lib/config.d.ts CHANGED
@@ -14,6 +14,7 @@ type DriftConfig = {
14
14
  PERP_MARKETS: PerpMarketConfig[];
15
15
  SPOT_MARKETS: SpotMarketConfig[];
16
16
  MARKET_LOOKUP_TABLE: string;
17
+ SERUM_LOOKUP_TABLE?: string;
17
18
  };
18
19
  export type DriftEnv = 'devnet' | 'mainnet-beta';
19
20
  export declare const DRIFT_PROGRAM_ID = "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
package/lib/config.js CHANGED
@@ -30,6 +30,7 @@ exports.configs = {
30
30
  PERP_MARKETS: perpMarkets_1.MainnetPerpMarkets,
31
31
  SPOT_MARKETS: spotMarkets_1.MainnetSpotMarkets,
32
32
  MARKET_LOOKUP_TABLE: 'D9cnvzswDikQDf53k4HpQ3KJ9y1Fv3HGGDFYMXnK5T6c',
33
+ SERUM_LOOKUP_TABLE: 'GPZkp76cJtNL2mphCvT6FXkJCVPpouidnacckR6rzKDN',
33
34
  },
34
35
  };
35
36
  let currentConfig = exports.configs.devnet;
@@ -151,7 +151,27 @@ exports.DevnetPerpMarkets = [
151
151
  baseAssetSymbol: 'HNT',
152
152
  marketIndex: 14,
153
153
  oracle: new web3_js_1.PublicKey('6Eg8YdfFJQF2HHonzPUBSCCmyUEhrStg9VBLK957sBe6'),
154
- launchTs: 16922949550000,
154
+ launchTs: 1692294955000,
155
+ oracleSource: __1.OracleSource.PYTH,
156
+ },
157
+ {
158
+ fullName: 'INJ',
159
+ category: ['L1', 'Exchange'],
160
+ symbol: 'INJ-PERP',
161
+ baseAssetSymbol: 'INJ',
162
+ marketIndex: 15,
163
+ oracle: new web3_js_1.PublicKey('44uRsNnT35kjkscSu59MxRr9CfkLZWf6gny8bWqUbVxE'),
164
+ launchTs: 1698074659000,
165
+ oracleSource: __1.OracleSource.PYTH,
166
+ },
167
+ {
168
+ fullName: 'LINK',
169
+ category: ['Oracle'],
170
+ symbol: 'LINK-PERP',
171
+ baseAssetSymbol: 'LINK',
172
+ marketIndex: 16,
173
+ oracle: new web3_js_1.PublicKey('9sGidS4qUXS2WvHZFhzw4df1jNd5TvUGZXZVsSjXo7UF'),
174
+ launchTs: 1698074659000,
155
175
  oracleSource: __1.OracleSource.PYTH,
156
176
  },
157
177
  ];
@@ -303,7 +323,27 @@ exports.MainnetPerpMarkets = [
303
323
  baseAssetSymbol: 'HNT',
304
324
  marketIndex: 14,
305
325
  oracle: new web3_js_1.PublicKey('7moA1i5vQUpfDwSpK6Pw9s56ahB7WFGidtbL2ujWrVvm'),
306
- launchTs: 16922949550000,
326
+ launchTs: 1692294955000,
327
+ oracleSource: __1.OracleSource.PYTH,
328
+ },
329
+ {
330
+ fullName: 'INJ',
331
+ category: ['L1', 'Exchange'],
332
+ symbol: 'INJ-PERP',
333
+ baseAssetSymbol: 'INJ',
334
+ marketIndex: 15,
335
+ oracle: new web3_js_1.PublicKey('9EdtbaivHQYA4Nh3XzGR6DwRaoorqXYnmpfsnFhvwuVj'),
336
+ launchTs: 1698074659000,
337
+ oracleSource: __1.OracleSource.PYTH,
338
+ },
339
+ {
340
+ fullName: 'LINK',
341
+ category: ['Oracle'],
342
+ symbol: 'LINK-PERP',
343
+ baseAssetSymbol: 'LINK',
344
+ marketIndex: 16,
345
+ oracle: new web3_js_1.PublicKey('ALdkqQDMfHNg77oCNskfX751kHys4KE7SFuZzuKaN536'),
346
+ launchTs: 1698074659000,
307
347
  oracleSource: __1.OracleSource.PYTH,
308
348
  },
309
349
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.42.0-beta.12",
3
+ "version": "2.42.0-beta.14",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
package/src/config.ts CHANGED
@@ -26,6 +26,7 @@ type DriftConfig = {
26
26
  PERP_MARKETS: PerpMarketConfig[];
27
27
  SPOT_MARKETS: SpotMarketConfig[];
28
28
  MARKET_LOOKUP_TABLE: string;
29
+ SERUM_LOOKUP_TABLE?: string;
29
30
  };
30
31
 
31
32
  export type DriftEnv = 'devnet' | 'mainnet-beta';
@@ -60,6 +61,7 @@ export const configs: { [key in DriftEnv]: DriftConfig } = {
60
61
  PERP_MARKETS: MainnetPerpMarkets,
61
62
  SPOT_MARKETS: MainnetSpotMarkets,
62
63
  MARKET_LOOKUP_TABLE: 'D9cnvzswDikQDf53k4HpQ3KJ9y1Fv3HGGDFYMXnK5T6c',
64
+ SERUM_LOOKUP_TABLE: 'GPZkp76cJtNL2mphCvT6FXkJCVPpouidnacckR6rzKDN',
63
65
  },
64
66
  };
65
67
 
@@ -161,7 +161,27 @@ export const DevnetPerpMarkets: PerpMarketConfig[] = [
161
161
  baseAssetSymbol: 'HNT',
162
162
  marketIndex: 14,
163
163
  oracle: new PublicKey('6Eg8YdfFJQF2HHonzPUBSCCmyUEhrStg9VBLK957sBe6'),
164
- launchTs: 16922949550000,
164
+ launchTs: 1692294955000,
165
+ oracleSource: OracleSource.PYTH,
166
+ },
167
+ {
168
+ fullName: 'INJ',
169
+ category: ['L1', 'Exchange'],
170
+ symbol: 'INJ-PERP',
171
+ baseAssetSymbol: 'INJ',
172
+ marketIndex: 15,
173
+ oracle: new PublicKey('44uRsNnT35kjkscSu59MxRr9CfkLZWf6gny8bWqUbVxE'),
174
+ launchTs: 1698074659000,
175
+ oracleSource: OracleSource.PYTH,
176
+ },
177
+ {
178
+ fullName: 'LINK',
179
+ category: ['Oracle'],
180
+ symbol: 'LINK-PERP',
181
+ baseAssetSymbol: 'LINK',
182
+ marketIndex: 16,
183
+ oracle: new PublicKey('9sGidS4qUXS2WvHZFhzw4df1jNd5TvUGZXZVsSjXo7UF'),
184
+ launchTs: 1698074659000,
165
185
  oracleSource: OracleSource.PYTH,
166
186
  },
167
187
  ];
@@ -314,7 +334,27 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
314
334
  baseAssetSymbol: 'HNT',
315
335
  marketIndex: 14,
316
336
  oracle: new PublicKey('7moA1i5vQUpfDwSpK6Pw9s56ahB7WFGidtbL2ujWrVvm'),
317
- launchTs: 16922949550000,
337
+ launchTs: 1692294955000,
338
+ oracleSource: OracleSource.PYTH,
339
+ },
340
+ {
341
+ fullName: 'INJ',
342
+ category: ['L1', 'Exchange'],
343
+ symbol: 'INJ-PERP',
344
+ baseAssetSymbol: 'INJ',
345
+ marketIndex: 15,
346
+ oracle: new PublicKey('9EdtbaivHQYA4Nh3XzGR6DwRaoorqXYnmpfsnFhvwuVj'),
347
+ launchTs: 1698074659000,
348
+ oracleSource: OracleSource.PYTH,
349
+ },
350
+ {
351
+ fullName: 'LINK',
352
+ category: ['Oracle'],
353
+ symbol: 'LINK-PERP',
354
+ baseAssetSymbol: 'LINK',
355
+ marketIndex: 16,
356
+ oracle: new PublicKey('ALdkqQDMfHNg77oCNskfX751kHys4KE7SFuZzuKaN536'),
357
+ launchTs: 1698074659000,
318
358
  oracleSource: OracleSource.PYTH,
319
359
  },
320
360
  ];