@saberhq/solana
Advanced tools
Comparing version 0.7.1 to 0.7.3
@@ -24,2 +24,3 @@ import { ConfirmOptions, Connection, PublicKey, RpcResponseAndContext, Signer, SimulatedTransactionResponse, Transaction, TransactionSignature } from "@solana/web3.js"; | ||
connection: Connection; | ||
wallet: Wallet; | ||
/** | ||
@@ -26,0 +27,0 @@ * Sends the given transaction, paid for and signed by the provider's wallet. |
@@ -18,3 +18,3 @@ import { ConfirmOptions, Connection, RpcResponseAndContext, Signer, SimulatedTransactionResponse, Transaction, TransactionSignature } from "@solana/web3.js"; | ||
*/ | ||
constructor(connection: Connection, wallet: Wallet, opts: ConfirmOptions); | ||
constructor(connection: Connection, wallet: Wallet, opts?: ConfirmOptions); | ||
static defaultOptions(): ConfirmOptions; | ||
@@ -21,0 +21,0 @@ /** |
@@ -18,3 +18,3 @@ "use strict"; | ||
*/ | ||
constructor(connection, wallet, opts) { | ||
constructor(connection, wallet, opts = SolanaProvider.defaultOptions()) { | ||
this.connection = connection; | ||
@@ -21,0 +21,0 @@ this.wallet = wallet; |
{ | ||
"name": "@saberhq/solana", | ||
"version": "0.7.1", | ||
"version": "0.7.3", | ||
"description": "Common types and libraries for Solana", | ||
@@ -32,3 +32,3 @@ "author": "Ian Macalinao <ian@saber.so>", | ||
}, | ||
"gitHead": "da47f3ef355be581ac3a71d58952f783c3b2b69c", | ||
"gitHead": "93f7ff4dd76300f7529fcd8efd89210f2bf7f11d", | ||
"publishConfig": { | ||
@@ -35,0 +35,0 @@ "access": "public" |
@@ -36,2 +36,4 @@ import { | ||
connection: Connection; | ||
wallet: Wallet; | ||
/** | ||
@@ -38,0 +40,0 @@ * Sends the given transaction, paid for and signed by the provider's wallet. |
@@ -29,5 +29,5 @@ import { | ||
constructor( | ||
readonly connection: Connection, | ||
readonly wallet: Wallet, | ||
readonly opts: ConfirmOptions | ||
public readonly connection: Connection, | ||
public readonly wallet: Wallet, | ||
public readonly opts: ConfirmOptions = SolanaProvider.defaultOptions() | ||
) {} | ||
@@ -34,0 +34,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
61453
1120