@stabbleorg/anchor-contrib
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -28,3 +28,3 @@ import { Provider } from "@coral-xyz/anchor"; | ||
closeIntermediateTokenAccountInstruction(accountAddress: PublicKey): TransactionInstruction; | ||
transferWSOLInstructions(accountAddress: PublicKey, mintAddress: PublicKey, amount: string | number): Promise<TransactionInstruction[]>; | ||
transferWSOLInstructions(accountAddress: PublicKey, amount: string | number): Promise<TransactionInstruction[]>; | ||
getTokenBalances(): Promise<TokenAccountBalancePair[]>; | ||
@@ -31,0 +31,0 @@ getPriorityFeeEstimate(transaction: VersionedTransaction, priorityLevel?: PriorityLevel): Promise<number>; |
@@ -67,5 +67,5 @@ "use strict"; | ||
} | ||
transferWSOLInstructions(accountAddress, mintAddress, amount) { | ||
transferWSOLInstructions(accountAddress, amount) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const instructions = yield this.createIntermediateTokenAccountInstructions(accountAddress, mintAddress); | ||
const instructions = yield this.createIntermediateTokenAccountInstructions(accountAddress, spl_token_1.NATIVE_MINT); | ||
instructions.push(web3_js_1.SystemProgram.transfer({ | ||
@@ -72,0 +72,0 @@ fromPubkey: this.walletAddress, |
{ | ||
"name": "@stabbleorg/anchor-contrib", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -114,6 +114,5 @@ import bs58 from "bs58"; | ||
accountAddress: PublicKey, | ||
mintAddress: PublicKey, | ||
amount: string | number, | ||
): Promise<TransactionInstruction[]> { | ||
const instructions = await this.createIntermediateTokenAccountInstructions(accountAddress, mintAddress); | ||
const instructions = await this.createIntermediateTokenAccountInstructions(accountAddress, NATIVE_MINT); | ||
instructions.push( | ||
@@ -120,0 +119,0 @@ SystemProgram.transfer({ |
Sorry, the diff of this file is not supported yet
32071
598