@drift-labs/sdk 2.31.1-beta.15 → 2.31.1-beta.16

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.31.1-beta.15
1
+ 2.31.1-beta.16
@@ -205,7 +205,11 @@ export declare class DriftClient {
205
205
  deposit(amount: BN, marketIndex: number, associatedTokenAccount: PublicKey, subAccountId?: number, reduceOnly?: boolean): Promise<TransactionSignature>;
206
206
  getDepositInstruction(amount: BN, marketIndex: number, userTokenAccount: PublicKey, subAccountId?: number, reduceOnly?: boolean, userInitialized?: boolean): Promise<TransactionInstruction>;
207
207
  private checkIfAccountExists;
208
- private getWrappedSolAccountCreationIxs;
208
+ getWrappedSolAccountCreationIxs(amount: BN, includeRent?: boolean): Promise<{
209
+ ixs: anchor.web3.TransactionInstruction[];
210
+ signers: Signer[];
211
+ pubkey: PublicKey;
212
+ }>;
209
213
  getAssociatedTokenAccountCreationIx(tokenMintAddress: PublicKey, associatedTokenAddress: PublicKey): anchor.web3.TransactionInstruction;
210
214
  /**
211
215
  * Creates the User account for a user, and deposits some initial collateral
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.31.1-beta.14",
2
+ "version": "2.31.1-beta.15",
3
3
  "name": "drift",
4
4
  "instructions": [
5
5
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.31.1-beta.15",
3
+ "version": "2.31.1-beta.16",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
@@ -1672,7 +1672,7 @@ export class DriftClient {
1672
1672
  }
1673
1673
  }
1674
1674
 
1675
- private async getWrappedSolAccountCreationIxs(
1675
+ public async getWrappedSolAccountCreationIxs(
1676
1676
  amount: BN,
1677
1677
  includeRent?: boolean
1678
1678
  ): Promise<{
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.31.1-beta.15",
2
+ "version": "2.31.1-beta.16",
3
3
  "name": "drift",
4
4
  "instructions": [
5
5
  {