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

@demox-labs/aleo-wallet-adapter-leo

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@demox-labs/aleo-wallet-adapter-leo - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

8

adapter.ts

@@ -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

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