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.5 to 0.9.6

8

lib/types/adapter.d.ts

@@ -14,7 +14,7 @@ import { Connection, PublicKey, SendOptions, Signer, Transaction, TransactionSignature } from '@solana/web3.js';

}
export declare type WalletName = string & {
export declare type WalletName<T extends string = string> = T & {
__brand__: 'WalletName';
};
export interface WalletAdapterProps {
name: WalletName;
export interface WalletAdapterProps<Name extends string = string> {
name: WalletName<Name>;
url: string;

@@ -30,3 +30,3 @@ icon: string;

}
export declare type WalletAdapter = WalletAdapterProps & EventEmitter<WalletAdapterEvents>;
export declare type WalletAdapter<Name extends string = string> = WalletAdapterProps<Name> & EventEmitter<WalletAdapterEvents>;
/**

@@ -33,0 +33,0 @@ * A wallet's readiness describes a series of states that the wallet can be in,

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

@@ -29,7 +29,12 @@ "repository": "https://github.com/solana-labs/wallet-adapter",

},
"peerDependencies": {
"@solana/web3.js": "^1.44.3"
},
"dependencies": {
"@solana/web3.js": "^1.36.0",
"eventemitter3": "^4.0.0"
},
"gitHead": "e89adf6cdc59ca33db0fcc3a27841a1f94a8b8ed"
"devDependencies": {
"@solana/web3.js": "^1.44.3"
},
"gitHead": "b4e2ac67dab0d8dadb4b0d49a456c63aa29b5663"
}

@@ -18,8 +18,8 @@ import { Connection, PublicKey, SendOptions, Signer, Transaction, TransactionSignature } from '@solana/web3.js';

// WalletName is a nominal type that wallet adapters should use, e.g. `'MyCryptoWallet' as WalletName`
// WalletName is a nominal type that wallet adapters should use, e.g. `'MyCryptoWallet' as WalletName<'MyCryptoWallet'>`
// https://medium.com/@KevinBGreene/surviving-the-typescript-ecosystem-branding-and-type-tagging-6cf6e516523d
export type WalletName = string & { __brand__: 'WalletName' };
export type WalletName<T extends string = string> = T & { __brand__: 'WalletName' };
export interface WalletAdapterProps {
name: WalletName;
export interface WalletAdapterProps<Name extends string = string> {
name: WalletName<Name>;
url: string;

@@ -41,3 +41,3 @@ icon: string;

export type WalletAdapter = WalletAdapterProps & EventEmitter<WalletAdapterEvents>;
export type WalletAdapter<Name extends string = string> = WalletAdapterProps<Name> & EventEmitter<WalletAdapterEvents>;

@@ -44,0 +44,0 @@ /**

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