@solana/wallet-adapter-torus
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30215
332
+ Added@solana/wallet-adapter-base@0.5.2(transitive)
+ Added@toruslabs/openlogin@0.10.2(transitive)
+ Added@toruslabs/openlogin-ed25519@0.10.2(transitive)
+ Added@toruslabs/openlogin-jrpc@0.10.2(transitive)
+ Added@toruslabs/openlogin-utils@0.10.2(transitive)
- Removed@solana/wallet-adapter-base@0.4.1(transitive)
- Removed@toruslabs/openlogin@0.9.5(transitive)
- Removed@toruslabs/openlogin-ed25519@0.9.5(transitive)
- Removed@toruslabs/openlogin-jrpc@0.9.5(transitive)
- Removed@toruslabs/openlogin-utils@0.9.5(transitive)
Updated@toruslabs/openlogin@^0.10.0