@drift-labs/sdk-browser 2.104.0-beta.28 → 2.104.0-beta.30

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.104.0-beta.28
1
+ 2.104.0-beta.30
@@ -244,6 +244,7 @@ class PollingDriftClientAccountSubscriber {
244
244
  this.accountsToPoll.clear();
245
245
  this.oraclesToPoll.clear();
246
246
  this.isSubscribed = false;
247
+ this.accountLoader.accountsToLoad = new Map();
247
248
  }
248
249
  async addSpotMarket(marketIndex) {
249
250
  const marketPublicKey = await (0, pda_1.getSpotMarketPublicKey)(this.program.programId, marketIndex);
@@ -990,6 +990,17 @@ exports.MainnetPerpMarkets = [
990
990
  oracleSource: __1.OracleSource.PYTH_PULL,
991
991
  pythFeedId: '0x91519e3e48571e1232a85a938e714da19fe5ce05107f3eebb8a870b2e8020169',
992
992
  },
993
+ {
994
+ fullName: 'PENGU',
995
+ category: ['Meme'],
996
+ symbol: 'PENGU-PERP',
997
+ baseAssetSymbol: 'PENGU',
998
+ marketIndex: 62,
999
+ oracle: new web3_js_1.PublicKey('7vGHChuBJyFMYBqMLXRzBmRxWdSuwEmg8RvRm3RWQsxi'),
1000
+ launchTs: 1734444000000,
1001
+ oracleSource: __1.OracleSource.PYTH_PULL,
1002
+ pythFeedId: '0xbed3097008b9b5e3c93bec20be79cb43986b85a996475589351a21e67bae9b61',
1003
+ },
993
1004
  ];
994
1005
  exports.PerpMarkets = {
995
1006
  devnet: exports.DevnetPerpMarkets,
@@ -463,6 +463,17 @@ exports.MainnetSpotMarkets = [
463
463
  precisionExp: numericConstants_1.SIX,
464
464
  pythFeedId: '0x91519e3e48571e1232a85a938e714da19fe5ce05107f3eebb8a870b2e8020169',
465
465
  },
466
+ {
467
+ symbol: 'PENGU',
468
+ marketIndex: 31,
469
+ poolId: 0,
470
+ oracle: new web3_js_1.PublicKey('7vGHChuBJyFMYBqMLXRzBmRxWdSuwEmg8RvRm3RWQsxi'),
471
+ oracleSource: __1.OracleSource.PYTH_PULL,
472
+ mint: new web3_js_1.PublicKey('2zMMhcVQEXDtdE6vsFS7S7D5oUodfJHE8vd1gnBouauv'),
473
+ precision: new __1.BN(10).pow(numericConstants_1.SIX),
474
+ precisionExp: numericConstants_1.SIX,
475
+ pythFeedId: '0xbed3097008b9b5e3c93bec20be79cb43986b85a996475589351a21e67bae9b61',
476
+ },
466
477
  ];
467
478
  exports.SpotMarkets = {
468
479
  devnet: exports.DevnetSpotMarkets,
@@ -244,6 +244,7 @@ class PollingDriftClientAccountSubscriber {
244
244
  this.accountsToPoll.clear();
245
245
  this.oraclesToPoll.clear();
246
246
  this.isSubscribed = false;
247
+ this.accountLoader.accountsToLoad = new Map();
247
248
  }
248
249
  async addSpotMarket(marketIndex) {
249
250
  const marketPublicKey = await (0, pda_1.getSpotMarketPublicKey)(this.program.programId, marketIndex);
@@ -990,6 +990,17 @@ exports.MainnetPerpMarkets = [
990
990
  oracleSource: __1.OracleSource.PYTH_PULL,
991
991
  pythFeedId: '0x91519e3e48571e1232a85a938e714da19fe5ce05107f3eebb8a870b2e8020169',
992
992
  },
993
+ {
994
+ fullName: 'PENGU',
995
+ category: ['Meme'],
996
+ symbol: 'PENGU-PERP',
997
+ baseAssetSymbol: 'PENGU',
998
+ marketIndex: 62,
999
+ oracle: new web3_js_1.PublicKey('7vGHChuBJyFMYBqMLXRzBmRxWdSuwEmg8RvRm3RWQsxi'),
1000
+ launchTs: 1734444000000,
1001
+ oracleSource: __1.OracleSource.PYTH_PULL,
1002
+ pythFeedId: '0xbed3097008b9b5e3c93bec20be79cb43986b85a996475589351a21e67bae9b61',
1003
+ },
993
1004
  ];
994
1005
  exports.PerpMarkets = {
995
1006
  devnet: exports.DevnetPerpMarkets,
@@ -463,6 +463,17 @@ exports.MainnetSpotMarkets = [
463
463
  precisionExp: numericConstants_1.SIX,
464
464
  pythFeedId: '0x91519e3e48571e1232a85a938e714da19fe5ce05107f3eebb8a870b2e8020169',
465
465
  },
466
+ {
467
+ symbol: 'PENGU',
468
+ marketIndex: 31,
469
+ poolId: 0,
470
+ oracle: new web3_js_1.PublicKey('7vGHChuBJyFMYBqMLXRzBmRxWdSuwEmg8RvRm3RWQsxi'),
471
+ oracleSource: __1.OracleSource.PYTH_PULL,
472
+ mint: new web3_js_1.PublicKey('2zMMhcVQEXDtdE6vsFS7S7D5oUodfJHE8vd1gnBouauv'),
473
+ precision: new __1.BN(10).pow(numericConstants_1.SIX),
474
+ precisionExp: numericConstants_1.SIX,
475
+ pythFeedId: '0xbed3097008b9b5e3c93bec20be79cb43986b85a996475589351a21e67bae9b61',
476
+ },
466
477
  ];
467
478
  exports.SpotMarkets = {
468
479
  devnet: exports.DevnetSpotMarkets,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk-browser",
3
- "version": "2.104.0-beta.28",
3
+ "version": "2.104.0-beta.30",
4
4
  "main": "lib/node/index.js",
5
5
  "types": "lib/node/index.d.ts",
6
6
  "browser": "./lib/browser/index.js",
@@ -402,6 +402,7 @@ export class PollingDriftClientAccountSubscriber
402
402
  this.accountsToPoll.clear();
403
403
  this.oraclesToPoll.clear();
404
404
  this.isSubscribed = false;
405
+ this.accountLoader.accountsToLoad = new Map();
405
406
  }
406
407
 
407
408
  async addSpotMarket(marketIndex: number): Promise<boolean> {
@@ -1076,6 +1076,18 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
1076
1076
  pythFeedId:
1077
1077
  '0x91519e3e48571e1232a85a938e714da19fe5ce05107f3eebb8a870b2e8020169',
1078
1078
  },
1079
+ {
1080
+ fullName: 'PENGU',
1081
+ category: ['Meme'],
1082
+ symbol: 'PENGU-PERP',
1083
+ baseAssetSymbol: 'PENGU',
1084
+ marketIndex: 62,
1085
+ oracle: new PublicKey('7vGHChuBJyFMYBqMLXRzBmRxWdSuwEmg8RvRm3RWQsxi'),
1086
+ launchTs: 1734444000000,
1087
+ oracleSource: OracleSource.PYTH_PULL,
1088
+ pythFeedId:
1089
+ '0xbed3097008b9b5e3c93bec20be79cb43986b85a996475589351a21e67bae9b61',
1090
+ },
1079
1091
  ];
1080
1092
 
1081
1093
  export const PerpMarkets: { [key in DriftEnv]: PerpMarketConfig[] } = {
@@ -557,6 +557,18 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
557
557
  pythFeedId:
558
558
  '0x91519e3e48571e1232a85a938e714da19fe5ce05107f3eebb8a870b2e8020169',
559
559
  },
560
+ {
561
+ symbol: 'PENGU',
562
+ marketIndex: 31,
563
+ poolId: 0,
564
+ oracle: new PublicKey('7vGHChuBJyFMYBqMLXRzBmRxWdSuwEmg8RvRm3RWQsxi'),
565
+ oracleSource: OracleSource.PYTH_PULL,
566
+ mint: new PublicKey('2zMMhcVQEXDtdE6vsFS7S7D5oUodfJHE8vd1gnBouauv'),
567
+ precision: new BN(10).pow(SIX),
568
+ precisionExp: SIX,
569
+ pythFeedId:
570
+ '0xbed3097008b9b5e3c93bec20be79cb43986b85a996475589351a21e67bae9b61',
571
+ },
560
572
  ];
561
573
 
562
574
  export const SpotMarkets: { [key in DriftEnv]: SpotMarketConfig[] } = {