@drift-labs/sdk 2.104.0-beta.34 → 2.104.0-beta.35

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.34
1
+ 2.104.0-beta.35
@@ -475,6 +475,17 @@ exports.MainnetSpotMarkets = [
475
475
  precisionExp: numericConstants_1.SIX,
476
476
  pythFeedId: '0xbed3097008b9b5e3c93bec20be79cb43986b85a996475589351a21e67bae9b61',
477
477
  },
478
+ {
479
+ symbol: 'BONK',
480
+ marketIndex: 32,
481
+ poolId: 0,
482
+ oracle: new web3_js_1.PublicKey('GojbSnJuPdKDT1ZuHuAM5t9oz6bxTo1xhUKpTua2F72p'),
483
+ oracleSource: __1.OracleSource.PYTH_PULL,
484
+ mint: new web3_js_1.PublicKey('DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263'),
485
+ precision: new __1.BN(10).pow(numericConstants_1.FIVE),
486
+ precisionExp: numericConstants_1.FIVE,
487
+ pythFeedId: '0x72b021217ca3fe68922a19aaf990109cb9d84e9ad004b4d2025ad6f529314419',
488
+ },
478
489
  ];
479
490
  exports.SpotMarkets = {
480
491
  devnet: exports.DevnetSpotMarkets,
@@ -1,6 +1,6 @@
1
1
  import { Connection, RpcResponseAndContext, SignatureResult, SignatureStatus, TransactionConfirmationStatus } from '@solana/web3.js';
2
2
  /**
3
- * Class to await for transaction confirmations in an optimised manner. It tracks a shared list of all pending transactions and fetches them in bulk in a shared RPC request whenever they have an "overlapping" polling interval. E.g. tx1 with an interval of 200ms and tx2 with an interval of 300ms (if sent at the same time) will be fetched together at at 600ms, 1200ms, 1800ms, etc.
3
+ * Class to await for transaction confirmations in an optimised manner. It tracks a shared list of all pending transactions and fetches them in bulk in a shared RPC request whenever they have an "overlapping" polling interval. E.g. tx1 with an interval of 200ms and tx2 with an interval of 300ms (if sent at the same time) will be fetched together at 600ms, 1200ms, 1800ms, etc.
4
4
  */
5
5
  export declare class TransactionConfirmationManager {
6
6
  private connection;
@@ -12,7 +12,7 @@ const confirmationStatusValues = {
12
12
  finalized: 2,
13
13
  };
14
14
  /**
15
- * Class to await for transaction confirmations in an optimised manner. It tracks a shared list of all pending transactions and fetches them in bulk in a shared RPC request whenever they have an "overlapping" polling interval. E.g. tx1 with an interval of 200ms and tx2 with an interval of 300ms (if sent at the same time) will be fetched together at at 600ms, 1200ms, 1800ms, etc.
15
+ * Class to await for transaction confirmations in an optimised manner. It tracks a shared list of all pending transactions and fetches them in bulk in a shared RPC request whenever they have an "overlapping" polling interval. E.g. tx1 with an interval of 200ms and tx2 with an interval of 300ms (if sent at the same time) will be fetched together at 600ms, 1200ms, 1800ms, etc.
16
16
  */
17
17
  class TransactionConfirmationManager {
18
18
  constructor(connection) {
@@ -475,6 +475,17 @@ exports.MainnetSpotMarkets = [
475
475
  precisionExp: numericConstants_1.SIX,
476
476
  pythFeedId: '0xbed3097008b9b5e3c93bec20be79cb43986b85a996475589351a21e67bae9b61',
477
477
  },
478
+ {
479
+ symbol: 'BONK',
480
+ marketIndex: 32,
481
+ poolId: 0,
482
+ oracle: new web3_js_1.PublicKey('GojbSnJuPdKDT1ZuHuAM5t9oz6bxTo1xhUKpTua2F72p'),
483
+ oracleSource: __1.OracleSource.PYTH_PULL,
484
+ mint: new web3_js_1.PublicKey('DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263'),
485
+ precision: new __1.BN(10).pow(numericConstants_1.FIVE),
486
+ precisionExp: numericConstants_1.FIVE,
487
+ pythFeedId: '0x72b021217ca3fe68922a19aaf990109cb9d84e9ad004b4d2025ad6f529314419',
488
+ },
478
489
  ];
479
490
  exports.SpotMarkets = {
480
491
  devnet: exports.DevnetSpotMarkets,
@@ -1,6 +1,6 @@
1
1
  import { Connection, RpcResponseAndContext, SignatureResult, SignatureStatus, TransactionConfirmationStatus } from '@solana/web3.js';
2
2
  /**
3
- * Class to await for transaction confirmations in an optimised manner. It tracks a shared list of all pending transactions and fetches them in bulk in a shared RPC request whenever they have an "overlapping" polling interval. E.g. tx1 with an interval of 200ms and tx2 with an interval of 300ms (if sent at the same time) will be fetched together at at 600ms, 1200ms, 1800ms, etc.
3
+ * Class to await for transaction confirmations in an optimised manner. It tracks a shared list of all pending transactions and fetches them in bulk in a shared RPC request whenever they have an "overlapping" polling interval. E.g. tx1 with an interval of 200ms and tx2 with an interval of 300ms (if sent at the same time) will be fetched together at 600ms, 1200ms, 1800ms, etc.
4
4
  */
5
5
  export declare class TransactionConfirmationManager {
6
6
  private connection;
@@ -12,7 +12,7 @@ const confirmationStatusValues = {
12
12
  finalized: 2,
13
13
  };
14
14
  /**
15
- * Class to await for transaction confirmations in an optimised manner. It tracks a shared list of all pending transactions and fetches them in bulk in a shared RPC request whenever they have an "overlapping" polling interval. E.g. tx1 with an interval of 200ms and tx2 with an interval of 300ms (if sent at the same time) will be fetched together at at 600ms, 1200ms, 1800ms, etc.
15
+ * Class to await for transaction confirmations in an optimised manner. It tracks a shared list of all pending transactions and fetches them in bulk in a shared RPC request whenever they have an "overlapping" polling interval. E.g. tx1 with an interval of 200ms and tx2 with an interval of 300ms (if sent at the same time) will be fetched together at 600ms, 1200ms, 1800ms, etc.
16
16
  */
17
17
  class TransactionConfirmationManager {
18
18
  constructor(connection) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.104.0-beta.34",
3
+ "version": "2.104.0-beta.35",
4
4
  "main": "lib/node/index.js",
5
5
  "types": "lib/node/index.d.ts",
6
6
  "browser": "./lib/browser/index.js",
@@ -571,6 +571,18 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
571
571
  pythFeedId:
572
572
  '0xbed3097008b9b5e3c93bec20be79cb43986b85a996475589351a21e67bae9b61',
573
573
  },
574
+ {
575
+ symbol: 'BONK',
576
+ marketIndex: 32,
577
+ poolId: 0,
578
+ oracle: new PublicKey('GojbSnJuPdKDT1ZuHuAM5t9oz6bxTo1xhUKpTua2F72p'),
579
+ oracleSource: OracleSource.PYTH_PULL,
580
+ mint: new PublicKey('DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263'),
581
+ precision: new BN(10).pow(FIVE),
582
+ precisionExp: FIVE,
583
+ pythFeedId:
584
+ '0x72b021217ca3fe68922a19aaf990109cb9d84e9ad004b4d2025ad6f529314419',
585
+ },
574
586
  ];
575
587
 
576
588
  export const SpotMarkets: { [key in DriftEnv]: SpotMarketConfig[] } = {