@demox-labs/aleo-wallet-adapter-base
Advanced tools
Comparing version 0.0.7 to 0.0.8
import EventEmitter from 'eventemitter3'; | ||
import type { WalletError } from './errors'; | ||
import type { SupportedTransactionVersions, TransactionOrVersionedTransaction } from './types'; | ||
import type { SupportedTransactionVersions, DecryptPermission } from './types'; | ||
@@ -29,3 +29,3 @@ export { EventEmitter }; | ||
connect(): Promise<void>; | ||
connect(decryptPermission: DecryptPermission): Promise<void>; | ||
disconnect(): Promise<void>; | ||
@@ -32,0 +32,0 @@ } |
import EventEmitter from 'eventemitter3'; | ||
import type { WalletError } from './errors'; | ||
import type { SupportedTransactionVersions } from './types'; | ||
import type { SupportedTransactionVersions, DecryptPermission } from './types'; | ||
export { EventEmitter }; | ||
@@ -24,3 +24,3 @@ export interface WalletAdapterEvents { | ||
supportedTransactionVersions: SupportedTransactionVersions; | ||
connect(): Promise<void>; | ||
connect(decryptPermission: DecryptPermission): Promise<void>; | ||
disconnect(): Promise<void>; | ||
@@ -27,0 +27,0 @@ } |
@@ -8,1 +8,7 @@ export declare const WalletAdapterNetwork: { | ||
export declare type TransactionOrVersionedTransaction<S extends SupportedTransactionVersions> = S extends null ? any : any | any; | ||
export declare type DecryptPermission = { | ||
NoDecrypt: 'NO_DECRYPT'; | ||
UponRequest: 'DECRYPT_UPON_REQUEST'; | ||
AutoDecrypt: 'AUTO_DECRYPT'; | ||
ViewKeyAccess: 'VIEW_KEY_ACCESS'; | ||
}; |
{ | ||
"name": "@demox-labs/aleo-wallet-adapter-base", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Core infrastructure for connecting aleo-compatible wallets to your dApp.", | ||
@@ -8,3 +8,4 @@ "module": "dist/index.js", | ||
"scripts": { | ||
"build": "tsc" | ||
"build": "tsc", | ||
"doc": "typedoc --tsconfig ./tsconfig.json --plugin typedoc-plugin-markdown --entryPoints index.ts" | ||
}, | ||
@@ -18,2 +19,4 @@ "repository": "https://github.com/demox-labs/aleo-wallet-adapter", | ||
"devDependencies": { | ||
"typedoc": "^0.23.18", | ||
"typedoc-plugin-markdown": "^3.13.6", | ||
"typescript": "^4.8.4" | ||
@@ -20,0 +23,0 @@ }, |
@@ -12,1 +12,8 @@ export const WalletAdapterNetwork = { | ||
: any | any; | ||
export type DecryptPermission = { | ||
NoDecrypt: 'NO_DECRYPT', // The App cannot decrypt any records | ||
UponRequest: 'DECRYPT_UPON_REQUEST', | ||
AutoDecrypt: 'AUTO_DECRYPT', // The App can decrypt any requested records | ||
ViewKeyAccess: 'VIEW_KEY_ACCESS' // The App gets the View Key of the connected wallet | ||
} |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
154443
58
579
1
2
3