@saberhq/solana
Advanced tools
Comparing version 0.1.1-beta.4 to 0.1.1-beta.5
@@ -23,2 +23,7 @@ import { ConfirmOptions, RpcResponseAndContext, Signer, SimulatedTransactionResponse, Transaction, TransactionInstruction, TransactionResponse, TransactionSignature } from "@solana/web3.js"; | ||
send(opts?: ConfirmOptions): Promise<PendingTransaction>; | ||
/** | ||
* Sends the transaction and waits for confirmation. | ||
* @param opts | ||
*/ | ||
confirm(opts?: ConfirmOptions): Promise<TransactionReceipt>; | ||
} | ||
@@ -25,0 +30,0 @@ /** |
@@ -41,2 +41,11 @@ "use strict"; | ||
} | ||
/** | ||
* Sends the transaction and waits for confirmation. | ||
* @param opts | ||
*/ | ||
confirm(opts) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
return (yield this.send(opts)).wait(); | ||
}); | ||
} | ||
} | ||
@@ -43,0 +52,0 @@ exports.TransactionEnvelope = TransactionEnvelope; |
{ | ||
"name": "@saberhq/solana", | ||
"version": "0.1.1-beta.4", | ||
"version": "0.1.1-beta.5", | ||
"description": "Common types and libraries for Solana", | ||
@@ -33,3 +33,3 @@ "author": "Ian Macalinao <ian@saber.so>", | ||
}, | ||
"gitHead": "fa18e912d04c073ff72e63e4c73fda2e75b1788d", | ||
"gitHead": "c37c9bb24f03579d8f9de0ed20c5a5e652bf8a43", | ||
"publishConfig": { | ||
@@ -36,0 +36,0 @@ "access": "public" |
@@ -53,2 +53,10 @@ import { | ||
} | ||
/** | ||
* Sends the transaction and waits for confirmation. | ||
* @param opts | ||
*/ | ||
public async confirm(opts?: ConfirmOptions): Promise<TransactionReceipt> { | ||
return (await this.send(opts)).wait(); | ||
} | ||
} | ||
@@ -55,0 +63,0 @@ |
Sorry, the diff of this file is not supported yet
51509
980