Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@solana/wallet-adapter-torus

Package Overview
Dependencies
Maintainers
10
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.5.0 to 0.6.0

4

lib/adapter.d.ts

@@ -1,2 +0,2 @@

import { EventEmitter, WalletAdapter, WalletAdapterEvents } from '@solana/wallet-adapter-base';
import { BaseSignerWalletAdapter } from '@solana/wallet-adapter-base';
import { PublicKey, Transaction } from '@solana/web3.js';

@@ -7,3 +7,3 @@ import { OpenLoginOptions } from '@toruslabs/openlogin';

}
export declare class TorusWalletAdapter extends EventEmitter<WalletAdapterEvents> implements WalletAdapter {
export declare class TorusWalletAdapter extends BaseSignerWalletAdapter {
private _options;

@@ -10,0 +10,0 @@ private _connecting;

@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

};
import { EventEmitter, WalletConnectionError, WalletDisconnectionError, WalletError, WalletKeypairError, WalletNotConnectedError, WalletSignatureError, WalletWindowBlockedError, WalletWindowClosedError, } from '@solana/wallet-adapter-base';
import { BaseSignerWalletAdapter, WalletConnectionError, WalletDisconnectionError, WalletError, WalletKeypairError, WalletNotConnectedError, WalletSignTransactionError, WalletWindowBlockedError, WalletWindowClosedError, } from '@solana/wallet-adapter-base';
import { Keypair } from '@solana/web3.js';
import OpenLogin, { OPENLOGIN_NETWORK } from '@toruslabs/openlogin';
import { getED25519Key } from '@toruslabs/openlogin-ed25519';
export class TorusWalletAdapter extends EventEmitter {
export class TorusWalletAdapter extends BaseSignerWalletAdapter {
constructor(config) {

@@ -129,3 +129,3 @@ super();

catch (error) {
throw new WalletSignatureError(error === null || error === void 0 ? void 0 : error.message, error);
throw new WalletSignTransactionError(error === null || error === void 0 ? void 0 : error.message, error);
}

@@ -152,3 +152,3 @@ return transaction;

catch (error) {
throw new WalletSignatureError(error === null || error === void 0 ? void 0 : error.message, error);
throw new WalletSignTransactionError(error === null || error === void 0 ? void 0 : error.message, error);
}

@@ -155,0 +155,0 @@ return transactions;

{
"name": "@solana/wallet-adapter-torus",
"version": "0.5.0",
"version": "0.6.0",
"author": "Solana Maintainers <maintainers@solana.foundation>",

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

"peerDependencies": {
"@solana/wallet-adapter-base": "^0.4.1",
"@solana/wallet-adapter-base": "^0.5.0",
"@solana/web3.js": "^1.20.0"
},
"dependencies": {
"@toruslabs/openlogin": "^0.9.2",
"@toruslabs/openlogin-ed25519": "^0.9.2",
"@toruslabs/openlogin": "^0.10.0",
"@toruslabs/openlogin-ed25519": "^0.10.0",
"@types/keccak": "^3.0.1"
},
"devDependencies": {
"@solana/wallet-adapter-base": "^0.4.1",
"@solana/wallet-adapter-base": "^0.5.0",
"@solana/web3.js": "^1.20.0"
},
"gitHead": "45013f04ea3be6a877e899f16c33d23884d147ec"
"gitHead": "76ff330eaf74b916f448eb8870302ae127a94b3d"
}
import {
EventEmitter,
WalletAdapter,
WalletAdapterEvents,
BaseSignerWalletAdapter,
WalletConnectionError,

@@ -10,3 +8,3 @@ WalletDisconnectionError,

WalletNotConnectedError,
WalletSignatureError,
WalletSignTransactionError,
WalletWindowBlockedError,

@@ -23,3 +21,3 @@ WalletWindowClosedError,

export class TorusWalletAdapter extends EventEmitter<WalletAdapterEvents> implements WalletAdapter {
export class TorusWalletAdapter extends BaseSignerWalletAdapter {
private _options: OpenLoginOptions;

@@ -148,3 +146,3 @@ private _connecting: boolean;

} catch (error) {
throw new WalletSignatureError(error?.message, error);
throw new WalletSignTransactionError(error?.message, error);
}

@@ -169,3 +167,3 @@

} catch (error) {
throw new WalletSignatureError(error?.message, error);
throw new WalletSignTransactionError(error?.message, error);
}

@@ -172,0 +170,0 @@

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