@drift-labs/sdk-browser 2.111.0-beta.3 → 2.111.0-beta.5

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.111.0-beta.3
1
+ 2.111.0-beta.5
@@ -1139,6 +1139,17 @@ exports.MainnetPerpMarkets = [
1139
1139
  oracleSource: __1.OracleSource.PYTH_PULL,
1140
1140
  pythFeedId: '0x7302dee641a08507c297a7b0c8b3efa74a48a3baa6c040acab1e5209692b7e59',
1141
1141
  },
1142
+ {
1143
+ fullName: 'Story Protocol',
1144
+ category: ['L1'],
1145
+ symbol: 'IP-PERP',
1146
+ baseAssetSymbol: 'IP',
1147
+ marketIndex: 70,
1148
+ oracle: new web3_js_1.PublicKey('E8A2iky96tzM8YuNNcJateE8S4e5N8FYspg17XHLp2aY'),
1149
+ launchTs: 1740150623000,
1150
+ oracleSource: __1.OracleSource.PYTH_PULL,
1151
+ pythFeedId: '0xb620ba83044577029da7e4ded7a2abccf8e6afc2a0d4d26d89ccdd39ec109025',
1152
+ },
1142
1153
  ];
1143
1154
  exports.PerpMarkets = {
1144
1155
  devnet: exports.DevnetPerpMarkets,
@@ -279,6 +279,10 @@ class TxHandler {
279
279
  var _a;
280
280
  const { txVersion, txParams, connection: _connection, preFlightCommitment: _preFlightCommitment, fetchAllMarketLookupTableAccounts, forceVersionedTransaction, instructions, } = props;
281
281
  let { lookupTables } = props;
282
+ const marketLookupTables = await fetchAllMarketLookupTableAccounts();
283
+ lookupTables = lookupTables
284
+ ? [...lookupTables, ...marketLookupTables]
285
+ : marketLookupTables;
282
286
  // # Collect and process Tx Params
283
287
  let baseTxParams = {
284
288
  computeUnits: txParams === null || txParams === void 0 ? void 0 : txParams.computeUnits,
@@ -337,10 +341,6 @@ class TxHandler {
337
341
  }
338
342
  }
339
343
  else {
340
- const marketLookupTables = await fetchAllMarketLookupTableAccounts();
341
- lookupTables = lookupTables
342
- ? [...lookupTables, ...marketLookupTables]
343
- : marketLookupTables;
344
344
  return this.generateVersionedTransaction(recentBlockhash, allIx, lookupTables);
345
345
  }
346
346
  }
@@ -1139,6 +1139,17 @@ exports.MainnetPerpMarkets = [
1139
1139
  oracleSource: __1.OracleSource.PYTH_PULL,
1140
1140
  pythFeedId: '0x7302dee641a08507c297a7b0c8b3efa74a48a3baa6c040acab1e5209692b7e59',
1141
1141
  },
1142
+ {
1143
+ fullName: 'Story Protocol',
1144
+ category: ['L1'],
1145
+ symbol: 'IP-PERP',
1146
+ baseAssetSymbol: 'IP',
1147
+ marketIndex: 70,
1148
+ oracle: new web3_js_1.PublicKey('E8A2iky96tzM8YuNNcJateE8S4e5N8FYspg17XHLp2aY'),
1149
+ launchTs: 1740150623000,
1150
+ oracleSource: __1.OracleSource.PYTH_PULL,
1151
+ pythFeedId: '0xb620ba83044577029da7e4ded7a2abccf8e6afc2a0d4d26d89ccdd39ec109025',
1152
+ },
1142
1153
  ];
1143
1154
  exports.PerpMarkets = {
1144
1155
  devnet: exports.DevnetPerpMarkets,
@@ -279,6 +279,10 @@ class TxHandler {
279
279
  var _a;
280
280
  const { txVersion, txParams, connection: _connection, preFlightCommitment: _preFlightCommitment, fetchAllMarketLookupTableAccounts, forceVersionedTransaction, instructions, } = props;
281
281
  let { lookupTables } = props;
282
+ const marketLookupTables = await fetchAllMarketLookupTableAccounts();
283
+ lookupTables = lookupTables
284
+ ? [...lookupTables, ...marketLookupTables]
285
+ : marketLookupTables;
282
286
  // # Collect and process Tx Params
283
287
  let baseTxParams = {
284
288
  computeUnits: txParams === null || txParams === void 0 ? void 0 : txParams.computeUnits,
@@ -337,10 +341,6 @@ class TxHandler {
337
341
  }
338
342
  }
339
343
  else {
340
- const marketLookupTables = await fetchAllMarketLookupTableAccounts();
341
- lookupTables = lookupTables
342
- ? [...lookupTables, ...marketLookupTables]
343
- : marketLookupTables;
344
344
  return this.generateVersionedTransaction(recentBlockhash, allIx, lookupTables);
345
345
  }
346
346
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk-browser",
3
- "version": "2.111.0-beta.3",
3
+ "version": "2.111.0-beta.5",
4
4
  "main": "lib/node/index.js",
5
5
  "types": "lib/node/index.d.ts",
6
6
  "browser": "./lib/browser/index.js",
@@ -1232,6 +1232,18 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
1232
1232
  pythFeedId:
1233
1233
  '0x7302dee641a08507c297a7b0c8b3efa74a48a3baa6c040acab1e5209692b7e59',
1234
1234
  },
1235
+ {
1236
+ fullName: 'Story Protocol',
1237
+ category: ['L1'],
1238
+ symbol: 'IP-PERP',
1239
+ baseAssetSymbol: 'IP',
1240
+ marketIndex: 70,
1241
+ oracle: new PublicKey('E8A2iky96tzM8YuNNcJateE8S4e5N8FYspg17XHLp2aY'),
1242
+ launchTs: 1740150623000,
1243
+ oracleSource: OracleSource.PYTH_PULL,
1244
+ pythFeedId:
1245
+ '0xb620ba83044577029da7e4ded7a2abccf8e6afc2a0d4d26d89ccdd39ec109025',
1246
+ },
1235
1247
  ];
1236
1248
 
1237
1249
  export const PerpMarkets: { [key in DriftEnv]: PerpMarketConfig[] } = {
@@ -482,6 +482,12 @@ export class TxHandler {
482
482
 
483
483
  let { lookupTables } = props;
484
484
 
485
+ const marketLookupTables = await fetchAllMarketLookupTableAccounts();
486
+
487
+ lookupTables = lookupTables
488
+ ? [...lookupTables, ...marketLookupTables]
489
+ : marketLookupTables;
490
+
485
491
  // # Collect and process Tx Params
486
492
  let baseTxParams: BaseTxParams = {
487
493
  computeUnits: txParams?.computeUnits,
@@ -561,11 +567,6 @@ export class TxHandler {
561
567
  return this.generateLegacyTransaction(allIx, recentBlockhash);
562
568
  }
563
569
  } else {
564
- const marketLookupTables = await fetchAllMarketLookupTableAccounts();
565
- lookupTables = lookupTables
566
- ? [...lookupTables, ...marketLookupTables]
567
- : marketLookupTables;
568
-
569
570
  return this.generateVersionedTransaction(
570
571
  recentBlockhash,
571
572
  allIx,