@drift-labs/sdk 2.39.1-beta.0 → 2.40.0-beta.0

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.39.1-beta.0
1
+ 2.40.0-beta.0
@@ -98,6 +98,16 @@ exports.MainnetSpotMarkets = [
98
98
  precisionExp: numericConstants_1.QUOTE_PRECISION_EXP,
99
99
  serumMarket: new web3_js_1.PublicKey('B2na8Awyd7cpC59iEU43FagJAPLigr3AP3s38KM982bu'),
100
100
  },
101
+ {
102
+ symbol: 'jitoSOL',
103
+ marketIndex: 6,
104
+ oracle: new web3_js_1.PublicKey('7yyaeuJ1GGtVBLT2z2xub5ZWYKaNhF28mj1RdV4VDFVk'),
105
+ oracleSource: __1.OracleSource.PYTH,
106
+ mint: new web3_js_1.PublicKey('J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn'),
107
+ precision: new __1.BN(10).pow(numericConstants_1.NINE),
108
+ precisionExp: numericConstants_1.NINE,
109
+ serumMarket: new web3_js_1.PublicKey('JAmhJbmBzLp2aTp9mNJodPsTcpCJsmq5jpr6CuCbWHvR'),
110
+ },
101
111
  ];
102
112
  exports.SpotMarkets = {
103
113
  devnet: exports.DevnetSpotMarkets,
@@ -2158,6 +2158,7 @@ class DriftClient {
2158
2158
  const remainingAccounts = this.getRemainingAccounts({
2159
2159
  userAccounts,
2160
2160
  writableSpotMarketIndexes: [outMarketIndex, inMarketIndex],
2161
+ readableSpotMarketIndexes: [numericConstants_1.QUOTE_SPOT_MARKET_INDEX],
2161
2162
  });
2162
2163
  const outSpotMarket = this.getSpotMarketAccount(outMarketIndex);
2163
2164
  const inSpotMarket = this.getSpotMarketAccount(inMarketIndex);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.39.1-beta.0",
3
+ "version": "2.40.0-beta.0",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
@@ -124,6 +124,16 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
124
124
  precisionExp: QUOTE_PRECISION_EXP,
125
125
  serumMarket: new PublicKey('B2na8Awyd7cpC59iEU43FagJAPLigr3AP3s38KM982bu'),
126
126
  },
127
+ {
128
+ symbol: 'jitoSOL',
129
+ marketIndex: 6,
130
+ oracle: new PublicKey('7yyaeuJ1GGtVBLT2z2xub5ZWYKaNhF28mj1RdV4VDFVk'),
131
+ oracleSource: OracleSource.PYTH,
132
+ mint: new PublicKey('J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn'),
133
+ precision: new BN(10).pow(NINE),
134
+ precisionExp: NINE,
135
+ serumMarket: new PublicKey('JAmhJbmBzLp2aTp9mNJodPsTcpCJsmq5jpr6CuCbWHvR'),
136
+ },
127
137
  ];
128
138
 
129
139
  export const SpotMarkets: { [key in DriftEnv]: SpotMarketConfig[] } = {
@@ -3789,6 +3789,7 @@ export class DriftClient {
3789
3789
  const remainingAccounts = this.getRemainingAccounts({
3790
3790
  userAccounts,
3791
3791
  writableSpotMarketIndexes: [outMarketIndex, inMarketIndex],
3792
+ readableSpotMarketIndexes: [QUOTE_SPOT_MARKET_INDEX],
3792
3793
  });
3793
3794
 
3794
3795
  const outSpotMarket = this.getSpotMarketAccount(outMarketIndex);