@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 +1 -1
- package/lib/driftClient.d.ts +5 -1
- package/lib/idl/drift.json +1 -1
- package/package.json +1 -1
- package/src/driftClient.ts +1 -1
- package/src/idl/drift.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.31.1-beta.
|
|
1
|
+
2.31.1-beta.16
|
package/lib/driftClient.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
package/lib/idl/drift.json
CHANGED
package/package.json
CHANGED
package/src/driftClient.ts
CHANGED
package/src/idl/drift.json
CHANGED