Socket
Socket
Sign inDemoInstall

@solana/wallet-adapter-base

Package Overview
Dependencies
Maintainers
14
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/wallet-adapter-base - npm Package Compare versions

Comparing version 0.9.11 to 0.9.12

9

lib/cjs/signer.js

@@ -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;

5

lib/types/signer.d.ts

@@ -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 {

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc