@solana/wallet-adapter-base
Advanced tools
Comparing version 0.9.11 to 0.9.12
@@ -56,2 +56,11 @@ "use strict"; | ||
} | ||
signAllTransactions(transactions) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const signedTransactions = []; | ||
for (const transaction of transactions) { | ||
signedTransactions.push(yield this.signTransaction(transaction)); | ||
} | ||
return signedTransactions; | ||
}); | ||
} | ||
} | ||
@@ -58,0 +67,0 @@ exports.BaseSignerWalletAdapter = BaseSignerWalletAdapter; |
@@ -1,2 +0,3 @@ | ||
import type { Connection, Transaction, TransactionSignature } from '@solana/web3.js'; | ||
import type { Transaction, TransactionSignature } from '@solana/web3.js'; | ||
import { Connection } from '@solana/web3.js'; | ||
import type { SendTransactionOptions, WalletAdapter } from './adapter'; | ||
@@ -12,3 +13,3 @@ import { BaseWalletAdapter } from './adapter'; | ||
abstract signTransaction(transaction: Transaction): Promise<Transaction>; | ||
abstract signAllTransactions(transaction: Transaction[]): Promise<Transaction[]>; | ||
signAllTransactions(transactions: Transaction[]): Promise<Transaction[]>; | ||
} | ||
@@ -15,0 +16,0 @@ export interface MessageSignerWalletAdapterProps { |
{ | ||
"name": "@solana/wallet-adapter-base", | ||
"version": "0.9.11", | ||
"version": "0.9.12", | ||
"author": "Solana Maintainers <maintainers@solana.foundation>", | ||
@@ -42,3 +42,3 @@ "repository": "https://github.com/solana-labs/wallet-adapter", | ||
}, | ||
"gitHead": "dfe6f0cd3cd8a6430aab3bc82049d58d8e41ce09" | ||
"gitHead": "723e197f5bda4661b7bede354858948ce5d889c8" | ||
} |
@@ -80,3 +80,3 @@ import type { Connection, PublicKey, SendOptions, Signer, Transaction, TransactionSignature } from '@solana/web3.js'; | ||
get connected(): boolean { | ||
get connected() { | ||
return !!this.publicKey; | ||
@@ -83,0 +83,0 @@ } |
export class WalletError extends Error { | ||
public error: any; | ||
error: any; | ||
@@ -4,0 +4,0 @@ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types |
@@ -1,2 +0,3 @@ | ||
import type { Connection, Transaction, TransactionSignature } from '@solana/web3.js'; | ||
import type { Transaction, TransactionSignature } from '@solana/web3.js'; | ||
import { Connection } from '@solana/web3.js'; | ||
import type { SendTransactionOptions, WalletAdapter } from './adapter'; | ||
@@ -50,3 +51,10 @@ import { BaseWalletAdapter } from './adapter'; | ||
abstract signTransaction(transaction: Transaction): Promise<Transaction>; | ||
abstract signAllTransactions(transaction: Transaction[]): Promise<Transaction[]>; | ||
async signAllTransactions(transactions: Transaction[]): Promise<Transaction[]> { | ||
const signedTransactions: Transaction[] = []; | ||
for (const transaction of transactions) { | ||
signedTransactions.push(await this.signTransaction(transaction)); | ||
} | ||
return signedTransactions; | ||
} | ||
} | ||
@@ -53,0 +61,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62988
970