@drift-labs/sdk 2.85.0-beta.6 → 2.85.0-beta.8
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 +1 -1
- package/lib/constants/spotMarkets.js +1 -1
- package/lib/driftClient.d.ts +1 -1
- package/package.json +1 -1
- package/src/constants/spotMarkets.ts +1 -1
- package/src/driftClient.ts +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.85.0-beta.
|
|
1
|
+
2.85.0-beta.8
|
|
@@ -241,7 +241,7 @@ exports.MainnetSpotMarkets = [
|
|
|
241
241
|
{
|
|
242
242
|
symbol: 'JLP',
|
|
243
243
|
marketIndex: 19,
|
|
244
|
-
oracle: new web3_js_1.PublicKey('
|
|
244
|
+
oracle: new web3_js_1.PublicKey('pmHEXBam7kbmCCg5ED5V7RNMN8e34sKu338KeuFAGof'),
|
|
245
245
|
oracleSource: __1.OracleSource.SWITCHBOARD,
|
|
246
246
|
mint: new web3_js_1.PublicKey('27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4'),
|
|
247
247
|
precision: new __1.BN(10).pow(numericConstants_1.SIX),
|
package/lib/driftClient.d.ts
CHANGED
|
@@ -293,7 +293,7 @@ export declare class DriftClient {
|
|
|
293
293
|
* @deprecated use {@link placePerpOrder} or {@link placeAndTakePerpOrder} instead
|
|
294
294
|
*/
|
|
295
295
|
openPosition(direction: PositionDirection, amount: BN, marketIndex: number, limitPrice?: BN, subAccountId?: number): Promise<TransactionSignature>;
|
|
296
|
-
sendSignedTx(tx: Transaction, opts?: ConfirmOptions): Promise<TransactionSignature>;
|
|
296
|
+
sendSignedTx(tx: Transaction | VersionedTransaction, opts?: ConfirmOptions): Promise<TransactionSignature>;
|
|
297
297
|
prepareMarketOrderTxs(orderParams: OptionalOrderParams, userAccountPublicKey: PublicKey, userAccount: UserAccount, makerInfo?: MakerInfo | MakerInfo[], txParams?: TxParams, bracketOrdersParams?: OptionalOrderParams[], referrerInfo?: ReferrerInfo, cancelExistingOrders?: boolean, settlePnl?: boolean): Promise<{
|
|
298
298
|
cancelExistingOrdersTx?: Transaction | VersionedTransaction;
|
|
299
299
|
settlePnlTx?: Transaction | VersionedTransaction;
|
package/package.json
CHANGED
|
@@ -286,7 +286,7 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
|
|
|
286
286
|
{
|
|
287
287
|
symbol: 'JLP',
|
|
288
288
|
marketIndex: 19,
|
|
289
|
-
oracle: new PublicKey('
|
|
289
|
+
oracle: new PublicKey('pmHEXBam7kbmCCg5ED5V7RNMN8e34sKu338KeuFAGof'),
|
|
290
290
|
oracleSource: OracleSource.SWITCHBOARD,
|
|
291
291
|
mint: new PublicKey('27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4'),
|
|
292
292
|
precision: new BN(10).pow(SIX),
|
package/src/driftClient.ts
CHANGED
|
@@ -2770,7 +2770,7 @@ export class DriftClient {
|
|
|
2770
2770
|
}
|
|
2771
2771
|
|
|
2772
2772
|
public async sendSignedTx(
|
|
2773
|
-
tx: Transaction,
|
|
2773
|
+
tx: Transaction | VersionedTransaction,
|
|
2774
2774
|
opts?: ConfirmOptions
|
|
2775
2775
|
): Promise<TransactionSignature> {
|
|
2776
2776
|
const { txSig } = await this.sendTransaction(
|