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.21 to 0.9.22

8

lib/cjs/standard.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isWalletAdapterCompatibleStandardWallet = void 0;
const wallet_standard_features_1 = require("@solana/wallet-standard-features");
const features_1 = require("@wallet-standard/features");
function isWalletAdapterCompatibleStandardWallet(wallet) {
return ('standard:connect' in wallet.features &&
'standard:events' in wallet.features &&
('solana:signAndSendTransaction' in wallet.features || 'solana:signTransaction' in wallet.features));
return (features_1.StandardConnect in wallet.features &&
features_1.StandardEvents in wallet.features &&
(wallet_standard_features_1.SolanaSignAndSendTransaction in wallet.features || wallet_standard_features_1.SolanaSignTransaction in wallet.features));
}
exports.isWalletAdapterCompatibleStandardWallet = isWalletAdapterCompatibleStandardWallet;
//# sourceMappingURL=standard.js.map

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

import { SolanaSignAndSendTransaction, SolanaSignTransaction, } from '@solana/wallet-standard-features';
import { StandardConnect, StandardEvents, } from '@wallet-standard/features';
export function isWalletAdapterCompatibleStandardWallet(wallet) {
return ('standard:connect' in wallet.features &&
'standard:events' in wallet.features &&
('solana:signAndSendTransaction' in wallet.features || 'solana:signTransaction' in wallet.features));
return (StandardConnect in wallet.features &&
StandardEvents in wallet.features &&
(SolanaSignAndSendTransaction in wallet.features || SolanaSignTransaction in wallet.features));
}
//# sourceMappingURL=standard.js.map

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

import type { SolanaSignAndSendTransactionFeature, SolanaSignMessageFeature, SolanaSignTransactionFeature } from '@solana/wallet-standard-features';
import { type SolanaSignAndSendTransactionFeature, type SolanaSignMessageFeature, type SolanaSignTransactionFeature } from '@solana/wallet-standard-features';
import type { Wallet as StandardWallet, WalletWithFeatures as StandardWalletWithFeatures } from '@wallet-standard/base';
import type { ConnectFeature, DisconnectFeature, EventsFeature } from '@wallet-standard/features';
import { type StandardConnectFeature, type StandardDisconnectFeature, type StandardEventsFeature } from '@wallet-standard/features';
import type { WalletAdapter, WalletAdapterProps } from './adapter.js';
export declare type WalletAdapterCompatibleStandardWallet = StandardWalletWithFeatures<ConnectFeature & EventsFeature & (SolanaSignAndSendTransactionFeature | SolanaSignTransactionFeature) & (DisconnectFeature | SolanaSignMessageFeature | object)>;
export declare type WalletAdapterCompatibleStandardWallet = StandardWalletWithFeatures<StandardConnectFeature & StandardEventsFeature & (SolanaSignAndSendTransactionFeature | SolanaSignTransactionFeature) & (StandardDisconnectFeature | SolanaSignMessageFeature | object)>;
export interface StandardWalletAdapterProps<Name extends string = string> extends WalletAdapterProps<Name> {

@@ -7,0 +7,0 @@ wallet: WalletAdapterCompatibleStandardWallet;

{
"name": "@solana/wallet-adapter-base",
"version": "0.9.21",
"version": "0.9.22",
"author": "Solana Maintainers <maintainers@solana.foundation>",

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

"dependencies": {
"@solana/wallet-standard-features": "^1.0.0",
"@solana/wallet-standard-features": "^1.0.1",
"@wallet-standard/base": "^1.0.1",
"@wallet-standard/features": "^1.0.1",
"eventemitter3": "^4.0.0"
"@wallet-standard/features": "^1.0.3",
"eventemitter3": "^4.0.7"
},
"devDependencies": {
"@solana/web3.js": "^1.58.0",
"@solana/web3.js": "^1.73.2",
"@types/node-fetch": "^2.6.2",

@@ -41,0 +41,0 @@ "shx": "^0.3.4"

@@ -1,15 +0,23 @@

import type {
SolanaSignAndSendTransactionFeature,
SolanaSignMessageFeature,
SolanaSignTransactionFeature,
import {
SolanaSignAndSendTransaction,
type SolanaSignAndSendTransactionFeature,
type SolanaSignMessageFeature,
SolanaSignTransaction,
type SolanaSignTransactionFeature,
} from '@solana/wallet-standard-features';
import type { Wallet as StandardWallet, WalletWithFeatures as StandardWalletWithFeatures } from '@wallet-standard/base';
import type { ConnectFeature, DisconnectFeature, EventsFeature } from '@wallet-standard/features';
import {
StandardConnect,
type StandardConnectFeature,
type StandardDisconnectFeature,
StandardEvents,
type StandardEventsFeature,
} from '@wallet-standard/features';
import type { WalletAdapter, WalletAdapterProps } from './adapter.js';
export type WalletAdapterCompatibleStandardWallet = StandardWalletWithFeatures<
ConnectFeature &
EventsFeature &
StandardConnectFeature &
StandardEventsFeature &
(SolanaSignAndSendTransactionFeature | SolanaSignTransactionFeature) &
(DisconnectFeature | SolanaSignMessageFeature | object)
(StandardDisconnectFeature | SolanaSignMessageFeature | object)
>;

@@ -29,6 +37,6 @@

return (
'standard:connect' in wallet.features &&
'standard:events' in wallet.features &&
('solana:signAndSendTransaction' in wallet.features || 'solana:signTransaction' in wallet.features)
StandardConnect in wallet.features &&
StandardEvents in wallet.features &&
(SolanaSignAndSendTransaction in wallet.features || SolanaSignTransaction in wallet.features)
);
}

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