@demox-labs/aleo-wallet-adapter-base
Advanced tools
Comparing version 0.0.10 to 0.0.11
import EventEmitter from 'eventemitter3'; | ||
import type { WalletError } from './errors'; | ||
import type { SupportedTransactionVersions, DecryptPermission } from './types'; | ||
import type { SupportedTransactionVersions, DecryptPermission, WalletAdapterNetwork } from './types'; | ||
@@ -29,3 +29,3 @@ export { EventEmitter }; | ||
connect(decryptPermission: DecryptPermission): Promise<void>; | ||
connect(decryptPermission: DecryptPermission, network: WalletAdapterNetwork): Promise<void>; | ||
disconnect(): Promise<void>; | ||
@@ -82,3 +82,3 @@ } | ||
abstract connect(decryptPermission: DecryptPermission): Promise<void>; | ||
abstract connect(decryptPermission: DecryptPermission, network: WalletAdapterNetwork): Promise<void>; | ||
abstract disconnect(): Promise<void>; | ||
@@ -85,0 +85,0 @@ } |
import EventEmitter from 'eventemitter3'; | ||
import type { WalletError } from './errors'; | ||
import type { SupportedTransactionVersions, DecryptPermission } from './types'; | ||
import type { SupportedTransactionVersions, DecryptPermission, WalletAdapterNetwork } from './types'; | ||
export { EventEmitter }; | ||
@@ -24,3 +24,3 @@ export interface WalletAdapterEvents { | ||
supportedTransactionVersions: SupportedTransactionVersions; | ||
connect(decryptPermission: DecryptPermission): Promise<void>; | ||
connect(decryptPermission: DecryptPermission, network: WalletAdapterNetwork): Promise<void>; | ||
disconnect(): Promise<void>; | ||
@@ -67,5 +67,5 @@ } | ||
get connected(): boolean; | ||
abstract connect(decryptPermission: DecryptPermission): Promise<void>; | ||
abstract connect(decryptPermission: DecryptPermission, network: WalletAdapterNetwork): Promise<void>; | ||
abstract disconnect(): Promise<void>; | ||
} | ||
export declare function scopePollingDetectionStrategy(detect: () => boolean): void; |
@@ -1,6 +0,6 @@ | ||
export declare const WalletAdapterNetwork: { | ||
Mainnet: string; | ||
Testnet: string; | ||
Devnet: string; | ||
}; | ||
export declare enum WalletAdapterNetwork { | ||
Mainnet = "mainnet", | ||
Testnet = "testnet3", | ||
Localnet = "localnet" | ||
} | ||
export declare type SupportedTransactionVersions = ReadonlySet<any> | null; | ||
@@ -7,0 +7,0 @@ export declare type TransactionOrVersionedTransaction<S extends SupportedTransactionVersions> = S extends null ? any : any | any; |
@@ -1,6 +0,8 @@ | ||
export const WalletAdapterNetwork = { | ||
Mainnet: 'mainnet-beta', | ||
Testnet: 'testnet3', | ||
Devnet: 'devnet', | ||
}; | ||
export var WalletAdapterNetwork; | ||
(function (WalletAdapterNetwork) { | ||
WalletAdapterNetwork["Mainnet"] = "mainnet"; | ||
WalletAdapterNetwork["Testnet"] = "testnet3"; | ||
WalletAdapterNetwork["Localnet"] = "localnet"; | ||
})(WalletAdapterNetwork || (WalletAdapterNetwork = {})); | ||
; | ||
export var DecryptPermission; | ||
@@ -7,0 +9,0 @@ (function (DecryptPermission) { |
{ | ||
"name": "@demox-labs/aleo-wallet-adapter-base", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "Core infrastructure for connecting aleo-compatible wallets to your dApp.", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
@@ -1,5 +0,5 @@ | ||
export const WalletAdapterNetwork = { | ||
Mainnet: 'mainnet-beta', | ||
Testnet: 'testnet3', | ||
Devnet: 'devnet', | ||
export enum WalletAdapterNetwork { | ||
Mainnet = 'mainnet', | ||
Testnet = 'testnet3', | ||
Localnet = 'localnet', | ||
}; | ||
@@ -6,0 +6,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
155464
588