Socket
Socket
Sign inDemoInstall

@solana/wallet-adapter-base

Package Overview
Dependencies
Maintainers
13
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.20 to 0.9.21

./lib/cjs/index.js

2

lib/cjs/index.js

@@ -20,3 +20,5 @@ "use strict";

__exportStar(require("./signer.js"), exports);
__exportStar(require("./standard.js"), exports);
__exportStar(require("./transaction.js"), exports);
__exportStar(require("./types.js"), exports);
//# sourceMappingURL=index.js.map

6

lib/cjs/signer.js

@@ -26,3 +26,3 @@ "use strict";

const errors_js_1 = require("./errors.js");
const types_js_1 = require("./types.js");
const transaction_js_1 = require("./transaction.js");
class BaseSignerWalletAdapter extends adapter_js_1.BaseWalletAdapter {

@@ -33,3 +33,3 @@ sendTransaction(transaction, connection, options = {}) {

try {
if ((0, types_js_1.isVersionedTransaction)(transaction)) {
if ((0, transaction_js_1.isVersionedTransaction)(transaction)) {
if (!this.supportedTransactionVersions)

@@ -83,3 +83,3 @@ throw new errors_js_1.WalletSendTransactionError(`Sending versioned transactions isn't supported by this wallet`);

for (const transaction of transactions) {
if ((0, types_js_1.isVersionedTransaction)(transaction)) {
if ((0, transaction_js_1.isVersionedTransaction)(transaction)) {
if (!this.supportedTransactionVersions)

@@ -86,0 +86,0 @@ throw new errors_js_1.WalletSignTransactionError(`Signing versioned transactions isn't supported by this wallet`);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isVersionedTransaction = exports.WalletAdapterNetwork = void 0;
exports.WalletAdapterNetwork = void 0;
var WalletAdapterNetwork;

@@ -10,6 +10,2 @@ (function (WalletAdapterNetwork) {

})(WalletAdapterNetwork = exports.WalletAdapterNetwork || (exports.WalletAdapterNetwork = {}));
function isVersionedTransaction(transaction) {
return 'version' in transaction;
}
exports.isVersionedTransaction = isVersionedTransaction;
//# sourceMappingURL=types.js.map
export * from './adapter.js';
export * from './errors.js';
export * from './signer.js';
export * from './standard.js';
export * from './transaction.js';
export * from './types.js';
//# sourceMappingURL=index.js.map

@@ -1,4 +0,4 @@

import { BaseWalletAdapter } from './adapter.js';
import { BaseWalletAdapter, } from './adapter.js';
import { WalletSendTransactionError, WalletSignTransactionError } from './errors.js';
import { isVersionedTransaction } from './types.js';
import { isVersionedTransaction } from './transaction.js';
export class BaseSignerWalletAdapter extends BaseWalletAdapter {

@@ -5,0 +5,0 @@ async sendTransaction(transaction, connection, options = {}) {

@@ -7,5 +7,2 @@ export var WalletAdapterNetwork;

})(WalletAdapterNetwork || (WalletAdapterNetwork = {}));
export function isVersionedTransaction(transaction) {
return 'version' in transaction;
}
//# sourceMappingURL=types.js.map
import type { Connection, PublicKey, SendOptions, Signer, Transaction, TransactionSignature } from '@solana/web3.js';
import EventEmitter from 'eventemitter3';
import type { WalletError } from './errors.js';
import type { SupportedTransactionVersions, TransactionOrVersionedTransaction } from './types.js';
import { type WalletError } from './errors.js';
import type { SupportedTransactionVersions, TransactionOrVersionedTransaction } from './transaction.js';
export { EventEmitter };

@@ -6,0 +6,0 @@ export interface WalletAdapterEvents {

export * from './adapter.js';
export * from './errors.js';
export * from './signer.js';
export * from './standard.js';
export * from './transaction.js';
export * from './types.js';
//# sourceMappingURL=index.d.ts.map
import type { Connection, TransactionSignature } from '@solana/web3.js';
import type { SendTransactionOptions, WalletAdapter, WalletAdapterProps } from './adapter.js';
import { BaseWalletAdapter } from './adapter.js';
import type { TransactionOrVersionedTransaction } from './types.js';
import { BaseWalletAdapter, type SendTransactionOptions, type WalletAdapter, type WalletAdapterProps } from './adapter.js';
import { type TransactionOrVersionedTransaction } from './transaction.js';
export interface SignerWalletAdapterProps<Name extends string = string> extends WalletAdapterProps<Name> {

@@ -6,0 +5,0 @@ signTransaction<T extends TransactionOrVersionedTransaction<this['supportedTransactionVersions']>>(transaction: T): Promise<T>;

@@ -1,5 +0,5 @@

import type { Transaction, TransactionVersion, VersionedTransaction } from '@solana/web3.js';
import type { WalletAdapter } from './adapter.js';
import type { MessageSignerWalletAdapter, SignerWalletAdapter } from './signer.js';
export declare type Adapter = WalletAdapter | SignerWalletAdapter | MessageSignerWalletAdapter;
import type { StandardWalletAdapter } from './standard.js';
export declare type Adapter = WalletAdapter | SignerWalletAdapter | MessageSignerWalletAdapter | StandardWalletAdapter;
export declare enum WalletAdapterNetwork {

@@ -10,5 +10,2 @@ Mainnet = "mainnet-beta",

}
export declare type SupportedTransactionVersions = ReadonlySet<TransactionVersion> | null | undefined;
export declare type TransactionOrVersionedTransaction<S extends SupportedTransactionVersions> = S extends null | undefined ? Transaction : Transaction | VersionedTransaction;
export declare function isVersionedTransaction(transaction: Transaction | VersionedTransaction): transaction is VersionedTransaction;
//# sourceMappingURL=types.d.ts.map
{
"name": "@solana/wallet-adapter-base",
"version": "0.9.20",
"version": "0.9.21",
"author": "Solana Maintainers <maintainers@solana.foundation>",

@@ -32,2 +32,5 @@ "repository": "https://github.com/solana-labs/wallet-adapter",

"dependencies": {
"@solana/wallet-standard-features": "^1.0.0",
"@wallet-standard/base": "^1.0.1",
"@wallet-standard/features": "^1.0.1",
"eventemitter3": "^4.0.0"

@@ -41,5 +44,7 @@ },

"scripts": {
"build": "tsc --build --verbose && pnpm run package",
"clean": "shx mkdir -p lib && shx rm -rf lib",
"lint": "prettier --check 'src/{*,**/*}.{ts,tsx,js,jsx,json}' && eslint",
"package": "shx mkdir -p lib/cjs && shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json"
}
}
import type { Connection, PublicKey, SendOptions, Signer, Transaction, TransactionSignature } from '@solana/web3.js';
import EventEmitter from 'eventemitter3';
import type { WalletError } from './errors.js';
import { WalletNotConnectedError } from './errors.js';
import type { SupportedTransactionVersions, TransactionOrVersionedTransaction } from './types.js';
import { type WalletError, WalletNotConnectedError } from './errors.js';
import type { SupportedTransactionVersions, TransactionOrVersionedTransaction } from './transaction.js';

@@ -37,3 +36,2 @@ export { EventEmitter };

disconnect(): Promise<void>;
sendTransaction(

@@ -40,0 +38,0 @@ transaction: TransactionOrVersionedTransaction<this['supportedTransactionVersions']>,

export * from './adapter.js';
export * from './errors.js';
export * from './signer.js';
export * from './standard.js';
export * from './transaction.js';
export * from './types.js';
import type { Connection, TransactionSignature } from '@solana/web3.js';
import type { SendTransactionOptions, WalletAdapter, WalletAdapterProps } from './adapter.js';
import { BaseWalletAdapter } from './adapter.js';
import {
BaseWalletAdapter,
type SendTransactionOptions,
type WalletAdapter,
type WalletAdapterProps,
} from './adapter.js';
import { WalletSendTransactionError, WalletSignTransactionError } from './errors.js';
import type { TransactionOrVersionedTransaction } from './types.js';
import { isVersionedTransaction } from './types.js';
import { isVersionedTransaction, type TransactionOrVersionedTransaction } from './transaction.js';

@@ -8,0 +11,0 @@ export interface SignerWalletAdapterProps<Name extends string = string> extends WalletAdapterProps<Name> {

@@ -1,6 +0,6 @@

import type { Transaction, TransactionVersion, VersionedTransaction } from '@solana/web3.js';
import type { WalletAdapter } from './adapter.js';
import type { MessageSignerWalletAdapter, SignerWalletAdapter } from './signer.js';
import type { StandardWalletAdapter } from './standard.js';
export type Adapter = WalletAdapter | SignerWalletAdapter | MessageSignerWalletAdapter;
export type Adapter = WalletAdapter | SignerWalletAdapter | MessageSignerWalletAdapter | StandardWalletAdapter;

@@ -12,13 +12,1 @@ export enum WalletAdapterNetwork {

}
export type SupportedTransactionVersions = ReadonlySet<TransactionVersion> | null | undefined;
export type TransactionOrVersionedTransaction<S extends SupportedTransactionVersions> = S extends null | undefined
? Transaction
: Transaction | VersionedTransaction;
export function isVersionedTransaction(
transaction: Transaction | VersionedTransaction
): transaction is VersionedTransaction {
return 'version' in transaction;
}

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

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

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

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc