@demox-labs/aleo-wallet-adapter-leo
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -17,2 +17,3 @@ import { | ||
DecryptPermission, | ||
WalletAdapterNetwork, | ||
} from '@demox-labs/aleo-wallet-adapter-base'; | ||
@@ -37,3 +38,3 @@ | ||
decrypt(cipherText: string): Promise<{ text: string }>, | ||
connect(decryptPermission: DecryptPermission): Promise<void>; | ||
connect(decryptPermission: DecryptPermission, network: WalletAdapterNetwork): Promise<void>; | ||
disconnect(): Promise<void>; | ||
@@ -144,3 +145,3 @@ } | ||
async connect(decryptPermission: DecryptPermission): Promise<void> { | ||
async connect(decryptPermission: DecryptPermission, network: WalletAdapterNetwork): Promise<void> { | ||
try { | ||
@@ -156,3 +157,3 @@ if (this.connected || this.connecting) return; | ||
try { | ||
await wallet.connect(decryptPermission); | ||
await wallet.connect(decryptPermission, network); | ||
if (!wallet?.publicKey) { | ||
@@ -200,3 +201,2 @@ throw new WalletConnectionError(); | ||
const wallet = this._wallet; | ||
const messageString = new TextDecoder().decode(message); | ||
if (!wallet || !this.publicKey) throw new WalletNotConnectedError(); | ||
@@ -203,0 +203,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { BaseMessageSignerWalletAdapter, EventEmitter, WalletName, WalletReadyState, DecryptPermission } from '@demox-labs/aleo-wallet-adapter-base'; | ||
import { BaseMessageSignerWalletAdapter, EventEmitter, WalletName, WalletReadyState, DecryptPermission, WalletAdapterNetwork } from '@demox-labs/aleo-wallet-adapter-base'; | ||
export interface LeoWalletEvents { | ||
@@ -23,3 +23,3 @@ connect(...args: unknown[]): unknown; | ||
}>; | ||
connect(decryptPermission: DecryptPermission): Promise<void>; | ||
connect(decryptPermission: DecryptPermission, network: WalletAdapterNetwork): Promise<void>; | ||
disconnect(): Promise<void>; | ||
@@ -54,3 +54,3 @@ } | ||
decrypt(cipherText: string): Promise<string>; | ||
connect(decryptPermission: DecryptPermission): Promise<void>; | ||
connect(decryptPermission: DecryptPermission, network: WalletAdapterNetwork): Promise<void>; | ||
disconnect(): Promise<void>; | ||
@@ -57,0 +57,0 @@ signMessage(message: Uint8Array): Promise<Uint8Array>; |
@@ -81,3 +81,3 @@ import { BaseMessageSignerWalletAdapter, scopePollingDetectionStrategy, WalletConnectionError, WalletRequestViewKeyError, WalletDisconnectionError, WalletNotConnectedError, WalletNotReadyError, WalletReadyState, WalletSignTransactionError, WalletDecryptionNotAllowedError, WalletDecryptionError, DecryptPermission, } from '@demox-labs/aleo-wallet-adapter-base'; | ||
} | ||
async connect(decryptPermission) { | ||
async connect(decryptPermission, network) { | ||
try { | ||
@@ -92,3 +92,3 @@ if (this.connected || this.connecting) | ||
try { | ||
await wallet.connect(decryptPermission); | ||
await wallet.connect(decryptPermission, network); | ||
if (!wallet?.publicKey) { | ||
@@ -133,3 +133,2 @@ throw new WalletConnectionError(); | ||
const wallet = this._wallet; | ||
const messageString = new TextDecoder().decode(message); | ||
if (!wallet || !this.publicKey) | ||
@@ -136,0 +135,0 @@ throw new WalletNotConnectedError(); |
{ | ||
"name": "@demox-labs/aleo-wallet-adapter-leo", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Aleo wallet adapter for the Leo Wallet.", | ||
@@ -12,3 +12,3 @@ "module": "dist/index.js", | ||
"dependencies": { | ||
"@demox-labs/aleo-wallet-adapter-base": "^0.0.10", | ||
"@demox-labs/aleo-wallet-adapter-base": "^0.0.11", | ||
"nanoid": "^4.0.0" | ||
@@ -15,0 +15,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
152858
988
+ Added@demox-labs/aleo-wallet-adapter-base@0.0.11(transitive)
- Removed@demox-labs/aleo-wallet-adapter-base@0.0.10(transitive)