@demox-labs/aleo-wallet-adapter-base
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -65,1 +65,7 @@ export declare class WalletError extends Error { | ||
} | ||
export declare class WalletRecordsError extends WalletError { | ||
name: string; | ||
} | ||
export declare class WalletTransactionError extends WalletError { | ||
name: string; | ||
} |
@@ -69,2 +69,8 @@ export class WalletError extends Error { | ||
} | ||
export class WalletRecordsError extends WalletError { | ||
name = 'WalletRecordsError'; | ||
} | ||
export class WalletTransactionError extends WalletError { | ||
name = 'WalletTransactionError'; | ||
} | ||
//# sourceMappingURL=errors.js.map |
@@ -5,1 +5,2 @@ export * from './adapter'; | ||
export * from './types'; | ||
export * from './transaction'; |
@@ -5,2 +5,3 @@ export * from './adapter'; | ||
export * from './types'; | ||
export * from './transaction'; | ||
//# sourceMappingURL=index.js.map |
import type { WalletAdapter, WalletAdapterProps } from './adapter'; | ||
import { BaseWalletAdapter } from './adapter'; | ||
import type { TransactionOrVersionedTransaction } from './types'; | ||
import { AleoTransaction } from './transaction'; | ||
export declare type Adapter = WalletAdapter | SignerWalletAdapter | MessageSignerWalletAdapter; | ||
export interface SignerWalletAdapterProps<Name extends string = string> extends WalletAdapterProps<Name> { | ||
signTransaction<T extends TransactionOrVersionedTransaction<this['supportedTransactionVersions']>>(transaction: T): Promise<T>; | ||
signAllTransactions<T extends TransactionOrVersionedTransaction<this['supportedTransactionVersions']>>(transactions: T[]): Promise<T[]>; | ||
} | ||
export declare type SignerWalletAdapter<Name extends string = string> = WalletAdapter<Name> & SignerWalletAdapterProps<Name>; | ||
export declare abstract class BaseSignerWalletAdapter<Name extends string = string> extends BaseWalletAdapter<Name> implements SignerWalletAdapter<Name> { | ||
signTransaction<T extends TransactionOrVersionedTransaction<this['supportedTransactionVersions']>>(transaction: T): Promise<T>; | ||
signAllTransactions<T extends TransactionOrVersionedTransaction<this['supportedTransactionVersions']>>(transactions: T[]): Promise<T[]>; | ||
} | ||
@@ -18,2 +14,4 @@ export interface MessageSignerWalletAdapterProps<Name extends string = string> extends WalletAdapterProps<Name> { | ||
decrypt(cipherText: string): Promise<string>; | ||
requestRecords(program: string): Promise<any[]>; | ||
requestTransaction(transaction: AleoTransaction): Promise<string>; | ||
} | ||
@@ -25,2 +23,4 @@ export declare type MessageSignerWalletAdapter<Name extends string = string> = WalletAdapter<Name> & MessageSignerWalletAdapterProps<Name>; | ||
abstract decrypt(cipherText: string): Promise<string>; | ||
abstract requestRecords(program: string): Promise<any[]>; | ||
abstract requestTransaction(transaction: AleoTransaction): Promise<string>; | ||
} |
import { BaseWalletAdapter } from './adapter'; | ||
export class BaseSignerWalletAdapter extends BaseWalletAdapter { | ||
signTransaction(transaction) { | ||
throw new Error('Method not implemented.'); | ||
} | ||
signAllTransactions(transactions) { | ||
throw new Error('Method not implemented.'); | ||
} | ||
} | ||
@@ -10,0 +4,0 @@ export class BaseMessageSignerWalletAdapter extends BaseSignerWalletAdapter { |
export declare enum WalletAdapterNetwork { | ||
Mainnet = "mainnet", | ||
Testnet = "testnet3", | ||
Localnet = "localnet" | ||
Testnet = "testnet3" | ||
} | ||
@@ -6,0 +4,0 @@ export declare type SupportedTransactionVersions = ReadonlySet<any> | null; |
export var WalletAdapterNetwork; | ||
(function (WalletAdapterNetwork) { | ||
WalletAdapterNetwork["Mainnet"] = "mainnet"; | ||
WalletAdapterNetwork["Testnet"] = "testnet3"; | ||
WalletAdapterNetwork["Localnet"] = "localnet"; | ||
})(WalletAdapterNetwork || (WalletAdapterNetwork = {})); | ||
@@ -7,0 +5,0 @@ ; |
@@ -61,6 +61,6 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / BaseMessageSignerWalletAdapter | ||
- [removeListener](BaseMessageSignerWalletAdapter.md#removelistener) | ||
- [requestRecords](BaseMessageSignerWalletAdapter.md#requestrecords) | ||
- [requestTransaction](BaseMessageSignerWalletAdapter.md#requesttransaction) | ||
- [requestViewKey](BaseMessageSignerWalletAdapter.md#requestviewkey) | ||
- [signAllTransactions](BaseMessageSignerWalletAdapter.md#signalltransactions) | ||
- [signMessage](BaseMessageSignerWalletAdapter.md#signmessage) | ||
- [signTransaction](BaseMessageSignerWalletAdapter.md#signtransaction) | ||
@@ -99,3 +99,3 @@ ## Constructors | ||
[adapter.ts:74](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L74) | ||
[adapter.ts:74](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L74) | ||
@@ -118,3 +118,3 @@ ___ | ||
[adapter.ts:70](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L70) | ||
[adapter.ts:70](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L70) | ||
@@ -137,3 +137,3 @@ ___ | ||
[adapter.ts:68](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L68) | ||
[adapter.ts:68](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L68) | ||
@@ -156,3 +156,3 @@ ___ | ||
[adapter.ts:72](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L72) | ||
[adapter.ts:72](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L72) | ||
@@ -175,3 +175,3 @@ ___ | ||
[adapter.ts:71](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L71) | ||
[adapter.ts:71](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L71) | ||
@@ -194,3 +194,3 @@ ___ | ||
[adapter.ts:75](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L75) | ||
[adapter.ts:75](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L75) | ||
@@ -213,3 +213,3 @@ ___ | ||
[adapter.ts:69](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L69) | ||
[adapter.ts:69](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L69) | ||
@@ -232,3 +232,3 @@ ___ | ||
[adapter.ts:73](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L73) | ||
[adapter.ts:73](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L73) | ||
@@ -269,3 +269,3 @@ ___ | ||
[adapter.ts:77](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L77) | ||
[adapter.ts:77](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L77) | ||
@@ -312,4 +312,11 @@ ## Methods | ||
▸ `Abstract` **connect**(): `Promise`<`void`\> | ||
▸ `Abstract` **connect**(`decryptPermission`, `network`): `Promise`<`void`\> | ||
#### Parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `decryptPermission` | [`DecryptPermission`](../enums/DecryptPermission.md) | | ||
| `network` | [`Testnet`](../enums/WalletAdapterNetwork.md#testnet) | | ||
#### Returns | ||
@@ -329,3 +336,3 @@ | ||
[adapter.ts:81](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L81) | ||
[adapter.ts:81](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L81) | ||
@@ -354,3 +361,3 @@ ___ | ||
[signer.ts:49](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/signer.ts#L49) | ||
[signer.ts:39](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/signer.ts#L39) | ||
@@ -377,3 +384,3 @@ ___ | ||
[adapter.ts:82](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L82) | ||
[adapter.ts:82](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L82) | ||
@@ -692,30 +699,30 @@ ___ | ||
### requestViewKey | ||
### requestRecords | ||
▸ `Abstract` **requestViewKey**(): `Promise`<`string`\> | ||
▸ `Abstract` **requestRecords**(`program`): `Promise`<`any`[]\> | ||
#### Parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `program` | `string` | | ||
#### Returns | ||
`Promise`<`string`\> | ||
`Promise`<`any`[]\> | ||
#### Implementation of | ||
MessageSignerWalletAdapter.requestViewKey | ||
MessageSignerWalletAdapter.requestRecords | ||
#### Defined in | ||
[signer.ts:47](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/signer.ts#L47) | ||
[signer.ts:41](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/signer.ts#L41) | ||
___ | ||
### signAllTransactions | ||
### requestTransaction | ||
▸ **signAllTransactions**<`T`\>(`transactions`): `Promise`<`T`[]\> | ||
▸ `Abstract` **requestTransaction**(`transaction`): `Promise`<`string`\> | ||
#### Type parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `T` | extends `any` | | ||
#### Parameters | ||
@@ -725,52 +732,40 @@ | ||
| :------ | :------ | | ||
| `transactions` | `T`[] | | ||
| `transaction` | [`AleoTransaction`](../interfaces/AleoTransaction.md) | | ||
#### Returns | ||
`Promise`<`T`[]\> | ||
`Promise`<`string`\> | ||
#### Inherited from | ||
#### Implementation of | ||
[BaseSignerWalletAdapter](BaseSignerWalletAdapter.md).[signAllTransactions](BaseSignerWalletAdapter.md#signalltransactions) | ||
MessageSignerWalletAdapter.requestTransaction | ||
#### Defined in | ||
[signer.ts:25](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/signer.ts#L25) | ||
[signer.ts:43](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/signer.ts#L43) | ||
___ | ||
### signMessage | ||
### requestViewKey | ||
▸ `Abstract` **signMessage**(`message`): `Promise`<`Uint8Array`\> | ||
▸ `Abstract` **requestViewKey**(): `Promise`<`string`\> | ||
#### Parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `message` | `Uint8Array` | | ||
#### Returns | ||
`Promise`<`Uint8Array`\> | ||
`Promise`<`string`\> | ||
#### Implementation of | ||
MessageSignerWalletAdapter.signMessage | ||
MessageSignerWalletAdapter.requestViewKey | ||
#### Defined in | ||
[signer.ts:45](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/signer.ts#L45) | ||
[signer.ts:37](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/signer.ts#L37) | ||
___ | ||
### signTransaction | ||
### signMessage | ||
▸ **signTransaction**<`T`\>(`transaction`): `Promise`<`T`\> | ||
▸ `Abstract` **signMessage**(`message`): `Promise`<`Uint8Array`\> | ||
#### Type parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `T` | extends `any` | | ||
#### Parameters | ||
@@ -780,14 +775,14 @@ | ||
| :------ | :------ | | ||
| `transaction` | `T` | | ||
| `message` | `Uint8Array` | | ||
#### Returns | ||
`Promise`<`T`\> | ||
`Promise`<`Uint8Array`\> | ||
#### Inherited from | ||
#### Implementation of | ||
[BaseSignerWalletAdapter](BaseSignerWalletAdapter.md).[signTransaction](BaseSignerWalletAdapter.md#signtransaction) | ||
MessageSignerWalletAdapter.signMessage | ||
#### Defined in | ||
[signer.ts:22](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/signer.ts#L22) | ||
[signer.ts:35](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/signer.ts#L35) |
@@ -62,4 +62,2 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / BaseSignerWalletAdapter | ||
- [removeListener](BaseSignerWalletAdapter.md#removelistener) | ||
- [signAllTransactions](BaseSignerWalletAdapter.md#signalltransactions) | ||
- [signTransaction](BaseSignerWalletAdapter.md#signtransaction) | ||
@@ -98,3 +96,3 @@ ## Constructors | ||
[adapter.ts:74](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L74) | ||
[adapter.ts:74](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L74) | ||
@@ -117,3 +115,3 @@ ___ | ||
[adapter.ts:70](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L70) | ||
[adapter.ts:70](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L70) | ||
@@ -136,3 +134,3 @@ ___ | ||
[adapter.ts:68](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L68) | ||
[adapter.ts:68](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L68) | ||
@@ -155,3 +153,3 @@ ___ | ||
[adapter.ts:72](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L72) | ||
[adapter.ts:72](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L72) | ||
@@ -174,3 +172,3 @@ ___ | ||
[adapter.ts:71](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L71) | ||
[adapter.ts:71](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L71) | ||
@@ -193,3 +191,3 @@ ___ | ||
[adapter.ts:75](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L75) | ||
[adapter.ts:75](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L75) | ||
@@ -212,3 +210,3 @@ ___ | ||
[adapter.ts:69](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L69) | ||
[adapter.ts:69](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L69) | ||
@@ -231,3 +229,3 @@ ___ | ||
[adapter.ts:73](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L73) | ||
[adapter.ts:73](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L73) | ||
@@ -268,3 +266,3 @@ ___ | ||
[adapter.ts:77](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L77) | ||
[adapter.ts:77](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L77) | ||
@@ -311,4 +309,11 @@ ## Methods | ||
▸ `Abstract` **connect**(): `Promise`<`void`\> | ||
▸ `Abstract` **connect**(`decryptPermission`, `network`): `Promise`<`void`\> | ||
#### Parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `decryptPermission` | [`DecryptPermission`](../enums/DecryptPermission.md) | | ||
| `network` | [`Testnet`](../enums/WalletAdapterNetwork.md#testnet) | | ||
#### Returns | ||
@@ -328,3 +333,3 @@ | ||
[adapter.ts:81](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L81) | ||
[adapter.ts:81](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L81) | ||
@@ -351,3 +356,3 @@ ___ | ||
[adapter.ts:82](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L82) | ||
[adapter.ts:82](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L82) | ||
@@ -663,61 +668,1 @@ ___ | ||
node_modules/eventemitter3/index.d.ts:63 | ||
___ | ||
### signAllTransactions | ||
▸ **signAllTransactions**<`T`\>(`transactions`): `Promise`<`T`[]\> | ||
#### Type parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `T` | extends `any` | | ||
#### Parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `transactions` | `T`[] | | ||
#### Returns | ||
`Promise`<`T`[]\> | ||
#### Implementation of | ||
SignerWalletAdapter.signAllTransactions | ||
#### Defined in | ||
[signer.ts:25](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/signer.ts#L25) | ||
___ | ||
### signTransaction | ||
▸ **signTransaction**<`T`\>(`transaction`): `Promise`<`T`\> | ||
#### Type parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `T` | extends `any` | | ||
#### Parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `transaction` | `T` | | ||
#### Returns | ||
`Promise`<`T`\> | ||
#### Implementation of | ||
SignerWalletAdapter.signTransaction | ||
#### Defined in | ||
[signer.ts:22](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/signer.ts#L22) |
@@ -91,3 +91,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / BaseWalletAdapter | ||
[adapter.ts:74](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L74) | ||
[adapter.ts:74](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L74) | ||
@@ -106,3 +106,3 @@ ___ | ||
[adapter.ts:70](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L70) | ||
[adapter.ts:70](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L70) | ||
@@ -121,3 +121,3 @@ ___ | ||
[adapter.ts:68](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L68) | ||
[adapter.ts:68](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L68) | ||
@@ -136,3 +136,3 @@ ___ | ||
[adapter.ts:72](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L72) | ||
[adapter.ts:72](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L72) | ||
@@ -151,3 +151,3 @@ ___ | ||
[adapter.ts:71](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L71) | ||
[adapter.ts:71](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L71) | ||
@@ -166,3 +166,3 @@ ___ | ||
[adapter.ts:75](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L75) | ||
[adapter.ts:75](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L75) | ||
@@ -181,3 +181,3 @@ ___ | ||
[adapter.ts:69](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L69) | ||
[adapter.ts:69](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L69) | ||
@@ -196,3 +196,3 @@ ___ | ||
[adapter.ts:73](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L73) | ||
[adapter.ts:73](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L73) | ||
@@ -229,3 +229,3 @@ ___ | ||
[adapter.ts:77](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L77) | ||
[adapter.ts:77](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L77) | ||
@@ -272,4 +272,11 @@ ## Methods | ||
▸ `Abstract` **connect**(): `Promise`<`void`\> | ||
▸ `Abstract` **connect**(`decryptPermission`, `network`): `Promise`<`void`\> | ||
#### Parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `decryptPermission` | [`DecryptPermission`](../enums/DecryptPermission.md) | | ||
| `network` | [`Testnet`](../enums/WalletAdapterNetwork.md#testnet) | | ||
#### Returns | ||
@@ -285,3 +292,3 @@ | ||
[adapter.ts:81](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L81) | ||
[adapter.ts:81](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L81) | ||
@@ -304,3 +311,3 @@ ___ | ||
[adapter.ts:82](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L82) | ||
[adapter.ts:82](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L82) | ||
@@ -307,0 +314,0 @@ ___ |
@@ -44,3 +44,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletAccountError | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -73,3 +73,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -102,3 +102,3 @@ ___ | ||
[errors.ts:40](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L40) | ||
[errors.ts:40](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L40) | ||
@@ -105,0 +105,0 @@ ___ |
@@ -44,3 +44,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletConfigError | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -73,3 +73,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -102,3 +102,3 @@ ___ | ||
[errors.ts:20](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L20) | ||
[errors.ts:20](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L20) | ||
@@ -105,0 +105,0 @@ ___ |
@@ -44,3 +44,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletConnectionError | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -73,3 +73,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -102,3 +102,3 @@ ___ | ||
[errors.ts:24](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L24) | ||
[errors.ts:24](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L24) | ||
@@ -105,0 +105,0 @@ ___ |
@@ -44,3 +44,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletDecryptionError | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -73,3 +73,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -102,3 +102,3 @@ ___ | ||
[errors.ts:88](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L88) | ||
[errors.ts:88](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L88) | ||
@@ -105,0 +105,0 @@ ___ |
@@ -44,3 +44,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletDecryptionNotAllowedError | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -73,3 +73,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -102,3 +102,3 @@ ___ | ||
[errors.ts:84](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L84) | ||
[errors.ts:84](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L84) | ||
@@ -105,0 +105,0 @@ ___ |
@@ -44,3 +44,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletDisconnectedError | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -73,3 +73,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -102,3 +102,3 @@ ___ | ||
[errors.ts:32](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L32) | ||
[errors.ts:32](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L32) | ||
@@ -105,0 +105,0 @@ ___ |
@@ -44,3 +44,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletDisconnectionError | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -73,3 +73,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -102,3 +102,3 @@ ___ | ||
[errors.ts:36](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L36) | ||
[errors.ts:36](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L36) | ||
@@ -105,0 +105,0 @@ ___ |
@@ -51,2 +51,6 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletError | ||
↳↳ [`WalletRecordsError`](WalletRecordsError.md) | ||
↳↳ [`WalletTransactionError`](WalletTransactionError.md) | ||
## Table of contents | ||
@@ -85,3 +89,3 @@ | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -110,3 +114,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -113,0 +117,0 @@ ___ |
@@ -44,3 +44,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletKeypairError | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -73,3 +73,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -102,3 +102,3 @@ ___ | ||
[errors.ts:48](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L48) | ||
[errors.ts:48](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L48) | ||
@@ -105,0 +105,0 @@ ___ |
@@ -44,3 +44,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletLoadError | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -73,3 +73,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -102,3 +102,3 @@ ___ | ||
[errors.ts:16](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L16) | ||
[errors.ts:16](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L16) | ||
@@ -105,0 +105,0 @@ ___ |
@@ -44,3 +44,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletNotConnectedError | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -73,3 +73,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -102,3 +102,3 @@ ___ | ||
[errors.ts:52](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L52) | ||
[errors.ts:52](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L52) | ||
@@ -105,0 +105,0 @@ ___ |
@@ -44,3 +44,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletNotReadyError | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -73,3 +73,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -102,3 +102,3 @@ ___ | ||
[errors.ts:12](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L12) | ||
[errors.ts:12](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L12) | ||
@@ -105,0 +105,0 @@ ___ |
@@ -44,3 +44,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletNotSelectedError | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -73,3 +73,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -102,3 +102,3 @@ ___ | ||
[errors.ts:28](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L28) | ||
[errors.ts:28](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L28) | ||
@@ -105,0 +105,0 @@ ___ |
@@ -44,3 +44,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletPublicKeyError | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -73,3 +73,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -102,3 +102,3 @@ ___ | ||
[errors.ts:44](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L44) | ||
[errors.ts:44](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L44) | ||
@@ -105,0 +105,0 @@ ___ |
@@ -44,3 +44,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletRequestViewKeyError | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -73,3 +73,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -102,3 +102,3 @@ ___ | ||
[errors.ts:68](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L68) | ||
[errors.ts:68](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L68) | ||
@@ -105,0 +105,0 @@ ___ |
@@ -44,3 +44,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletSendTransactionError | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -73,3 +73,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -102,3 +102,3 @@ ___ | ||
[errors.ts:56](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L56) | ||
[errors.ts:56](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L56) | ||
@@ -105,0 +105,0 @@ ___ |
@@ -44,3 +44,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletSignMessageError | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -73,3 +73,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -102,3 +102,3 @@ ___ | ||
[errors.ts:60](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L60) | ||
[errors.ts:60](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L60) | ||
@@ -105,0 +105,0 @@ ___ |
@@ -44,3 +44,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletSignTransactionError | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -73,3 +73,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -102,3 +102,3 @@ ___ | ||
[errors.ts:64](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L64) | ||
[errors.ts:64](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L64) | ||
@@ -105,0 +105,0 @@ ___ |
@@ -44,3 +44,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletTimeoutError | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -73,3 +73,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -102,3 +102,3 @@ ___ | ||
[errors.ts:72](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L72) | ||
[errors.ts:72](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L72) | ||
@@ -105,0 +105,0 @@ ___ |
@@ -44,3 +44,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletWindowBlockedError | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -73,3 +73,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -102,3 +102,3 @@ ___ | ||
[errors.ts:76](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L76) | ||
[errors.ts:76](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L76) | ||
@@ -105,0 +105,0 @@ ___ |
@@ -44,3 +44,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletWindowClosedError | ||
[errors.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L5) | ||
[errors.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L5) | ||
@@ -73,3 +73,3 @@ ## Properties | ||
[errors.ts:2](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L2) | ||
[errors.ts:2](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L2) | ||
@@ -102,3 +102,3 @@ ___ | ||
[errors.ts:80](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/errors.ts#L80) | ||
[errors.ts:80](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/errors.ts#L80) | ||
@@ -105,0 +105,0 @@ ___ |
@@ -34,3 +34,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletReadyState | ||
[adapter.ts:50](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L50) | ||
[adapter.ts:50](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L50) | ||
@@ -48,3 +48,3 @@ ___ | ||
[adapter.ts:56](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L56) | ||
[adapter.ts:56](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L56) | ||
@@ -59,3 +59,3 @@ ___ | ||
[adapter.ts:51](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L51) | ||
[adapter.ts:51](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L51) | ||
@@ -73,2 +73,2 @@ ___ | ||
[adapter.ts:61](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L61) | ||
[adapter.ts:61](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L61) |
@@ -36,2 +36,4 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / MessageSignerWalletAdapterProps | ||
- [disconnect](MessageSignerWalletAdapterProps.md#disconnect) | ||
- [requestRecords](MessageSignerWalletAdapterProps.md#requestrecords) | ||
- [requestTransaction](MessageSignerWalletAdapterProps.md#requesttransaction) | ||
- [requestViewKey](MessageSignerWalletAdapterProps.md#requestviewkey) | ||
@@ -52,3 +54,3 @@ - [signMessage](MessageSignerWalletAdapterProps.md#signmessage) | ||
[adapter.ts:26](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L26) | ||
[adapter.ts:26](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L26) | ||
@@ -67,3 +69,3 @@ ___ | ||
[adapter.ts:25](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L25) | ||
[adapter.ts:25](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L25) | ||
@@ -82,3 +84,3 @@ ___ | ||
[adapter.ts:21](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L21) | ||
[adapter.ts:21](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L21) | ||
@@ -97,3 +99,3 @@ ___ | ||
[adapter.ts:19](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L19) | ||
[adapter.ts:19](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L19) | ||
@@ -112,3 +114,3 @@ ___ | ||
[adapter.ts:23](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L23) | ||
[adapter.ts:23](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L23) | ||
@@ -127,3 +129,3 @@ ___ | ||
[adapter.ts:22](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L22) | ||
[adapter.ts:22](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L22) | ||
@@ -142,3 +144,3 @@ ___ | ||
[adapter.ts:27](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L27) | ||
[adapter.ts:27](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L27) | ||
@@ -157,3 +159,3 @@ ___ | ||
[adapter.ts:20](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L20) | ||
[adapter.ts:20](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L20) | ||
@@ -172,3 +174,3 @@ ___ | ||
[adapter.ts:24](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L24) | ||
[adapter.ts:24](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L24) | ||
@@ -179,4 +181,11 @@ ## Methods | ||
▸ **connect**(): `Promise`<`void`\> | ||
▸ **connect**(`decryptPermission`, `network`): `Promise`<`void`\> | ||
#### Parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `decryptPermission` | [`DecryptPermission`](../enums/DecryptPermission.md) | | ||
| `network` | [`Testnet`](../enums/WalletAdapterNetwork.md#testnet) | | ||
#### Returns | ||
@@ -192,3 +201,3 @@ | ||
[adapter.ts:29](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L29) | ||
[adapter.ts:29](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L29) | ||
@@ -213,3 +222,3 @@ ___ | ||
[signer.ts:35](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/signer.ts#L35) | ||
[signer.ts:21](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/signer.ts#L21) | ||
@@ -232,6 +241,46 @@ ___ | ||
[adapter.ts:30](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L30) | ||
[adapter.ts:30](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L30) | ||
___ | ||
### requestRecords | ||
▸ **requestRecords**(`program`): `Promise`<`any`[]\> | ||
#### Parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `program` | `string` | | ||
#### Returns | ||
`Promise`<`any`[]\> | ||
#### Defined in | ||
[signer.ts:23](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/signer.ts#L23) | ||
___ | ||
### requestTransaction | ||
▸ **requestTransaction**(`transaction`): `Promise`<`string`\> | ||
#### Parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `transaction` | [`AleoTransaction`](AleoTransaction.md) | | ||
#### Returns | ||
`Promise`<`string`\> | ||
#### Defined in | ||
[signer.ts:25](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/signer.ts#L25) | ||
___ | ||
### requestViewKey | ||
@@ -247,3 +296,3 @@ | ||
[signer.ts:33](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/signer.ts#L33) | ||
[signer.ts:19](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/signer.ts#L19) | ||
@@ -268,2 +317,2 @@ ___ | ||
[signer.ts:31](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/signer.ts#L31) | ||
[signer.ts:17](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/signer.ts#L17) |
@@ -35,4 +35,2 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / SignerWalletAdapterProps | ||
- [disconnect](SignerWalletAdapterProps.md#disconnect) | ||
- [signAllTransactions](SignerWalletAdapterProps.md#signalltransactions) | ||
- [signTransaction](SignerWalletAdapterProps.md#signtransaction) | ||
@@ -51,3 +49,3 @@ ## Properties | ||
[adapter.ts:26](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L26) | ||
[adapter.ts:26](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L26) | ||
@@ -66,3 +64,3 @@ ___ | ||
[adapter.ts:25](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L25) | ||
[adapter.ts:25](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L25) | ||
@@ -81,3 +79,3 @@ ___ | ||
[adapter.ts:21](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L21) | ||
[adapter.ts:21](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L21) | ||
@@ -96,3 +94,3 @@ ___ | ||
[adapter.ts:19](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L19) | ||
[adapter.ts:19](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L19) | ||
@@ -111,3 +109,3 @@ ___ | ||
[adapter.ts:23](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L23) | ||
[adapter.ts:23](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L23) | ||
@@ -126,3 +124,3 @@ ___ | ||
[adapter.ts:22](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L22) | ||
[adapter.ts:22](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L22) | ||
@@ -141,3 +139,3 @@ ___ | ||
[adapter.ts:27](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L27) | ||
[adapter.ts:27](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L27) | ||
@@ -156,3 +154,3 @@ ___ | ||
[adapter.ts:20](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L20) | ||
[adapter.ts:20](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L20) | ||
@@ -171,3 +169,3 @@ ___ | ||
[adapter.ts:24](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L24) | ||
[adapter.ts:24](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L24) | ||
@@ -178,4 +176,11 @@ ## Methods | ||
▸ **connect**(): `Promise`<`void`\> | ||
▸ **connect**(`decryptPermission`, `network`): `Promise`<`void`\> | ||
#### Parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `decryptPermission` | [`DecryptPermission`](../enums/DecryptPermission.md) | | ||
| `network` | [`Testnet`](../enums/WalletAdapterNetwork.md#testnet) | | ||
#### Returns | ||
@@ -191,3 +196,3 @@ | ||
[adapter.ts:29](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L29) | ||
[adapter.ts:29](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L29) | ||
@@ -210,54 +215,2 @@ ___ | ||
[adapter.ts:30](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L30) | ||
___ | ||
### signAllTransactions | ||
▸ **signAllTransactions**<`T`\>(`transactions`): `Promise`<`T`[]\> | ||
#### Type parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `T` | extends `any` | | ||
#### Parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `transactions` | `T`[] | | ||
#### Returns | ||
`Promise`<`T`[]\> | ||
#### Defined in | ||
[signer.ts:11](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/signer.ts#L11) | ||
___ | ||
### signTransaction | ||
▸ **signTransaction**<`T`\>(`transaction`): `Promise`<`T`\> | ||
#### Type parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `T` | extends `any` | | ||
#### Parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `transaction` | `T` | | ||
#### Returns | ||
`Promise`<`T`\> | ||
#### Defined in | ||
[signer.ts:8](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/signer.ts#L8) | ||
[adapter.ts:30](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L30) |
@@ -32,3 +32,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletAdapterEvents | ||
[adapter.ts:8](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L8) | ||
[adapter.ts:8](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L8) | ||
@@ -47,3 +47,3 @@ ___ | ||
[adapter.ts:9](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L9) | ||
[adapter.ts:9](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L9) | ||
@@ -68,3 +68,3 @@ ___ | ||
[adapter.ts:10](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L10) | ||
[adapter.ts:10](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L10) | ||
@@ -89,2 +89,2 @@ ___ | ||
[adapter.ts:11](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L11) | ||
[adapter.ts:11](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L11) |
@@ -46,3 +46,3 @@ [@demox-labs/aleo-wallet-adapter-base](../README.md) / [Exports](../modules.md) / WalletAdapterProps | ||
[adapter.ts:26](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L26) | ||
[adapter.ts:26](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L26) | ||
@@ -57,3 +57,3 @@ ___ | ||
[adapter.ts:25](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L25) | ||
[adapter.ts:25](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L25) | ||
@@ -68,3 +68,3 @@ ___ | ||
[adapter.ts:21](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L21) | ||
[adapter.ts:21](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L21) | ||
@@ -79,3 +79,3 @@ ___ | ||
[adapter.ts:19](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L19) | ||
[adapter.ts:19](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L19) | ||
@@ -90,3 +90,3 @@ ___ | ||
[adapter.ts:23](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L23) | ||
[adapter.ts:23](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L23) | ||
@@ -101,3 +101,3 @@ ___ | ||
[adapter.ts:22](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L22) | ||
[adapter.ts:22](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L22) | ||
@@ -112,3 +112,3 @@ ___ | ||
[adapter.ts:27](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L27) | ||
[adapter.ts:27](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L27) | ||
@@ -123,3 +123,3 @@ ___ | ||
[adapter.ts:20](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L20) | ||
[adapter.ts:20](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L20) | ||
@@ -134,3 +134,3 @@ ___ | ||
[adapter.ts:24](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L24) | ||
[adapter.ts:24](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L24) | ||
@@ -141,4 +141,11 @@ ## Methods | ||
▸ **connect**(): `Promise`<`void`\> | ||
▸ **connect**(`decryptPermission`, `network`): `Promise`<`void`\> | ||
#### Parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `decryptPermission` | [`DecryptPermission`](../enums/DecryptPermission.md) | | ||
| `network` | [`Testnet`](../enums/WalletAdapterNetwork.md#testnet) | | ||
#### Returns | ||
@@ -150,3 +157,3 @@ | ||
[adapter.ts:29](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L29) | ||
[adapter.ts:29](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L29) | ||
@@ -165,2 +172,2 @@ ___ | ||
[adapter.ts:30](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L30) | ||
[adapter.ts:30](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L30) |
@@ -13,2 +13,4 @@ [@demox-labs/aleo-wallet-adapter-base](README.md) / Exports | ||
- [DecryptPermission](enums/DecryptPermission.md) | ||
- [WalletAdapterNetwork](enums/WalletAdapterNetwork.md) | ||
- [WalletReadyState](enums/WalletReadyState.md) | ||
@@ -22,2 +24,4 @@ | ||
- [EventEmitter](classes/EventEmitter-1.md) | ||
- [Transaction](classes/Transaction.md) | ||
- [Transition](classes/Transition.md) | ||
- [WalletAccountError](classes/WalletAccountError.md) | ||
@@ -37,2 +41,3 @@ - [WalletConfigError](classes/WalletConfigError.md) | ||
- [WalletPublicKeyError](classes/WalletPublicKeyError.md) | ||
- [WalletRecordsError](classes/WalletRecordsError.md) | ||
- [WalletRequestViewKeyError](classes/WalletRequestViewKeyError.md) | ||
@@ -43,2 +48,3 @@ - [WalletSendTransactionError](classes/WalletSendTransactionError.md) | ||
- [WalletTimeoutError](classes/WalletTimeoutError.md) | ||
- [WalletTransactionError](classes/WalletTransactionError.md) | ||
- [WalletWindowBlockedError](classes/WalletWindowBlockedError.md) | ||
@@ -49,2 +55,4 @@ - [WalletWindowClosedError](classes/WalletWindowClosedError.md) | ||
- [AleoTransaction](interfaces/AleoTransaction.md) | ||
- [AleoTransition](interfaces/AleoTransition.md) | ||
- [MessageSignerWalletAdapterProps](interfaces/MessageSignerWalletAdapterProps.md) | ||
@@ -65,6 +73,2 @@ - [SignerWalletAdapterProps](interfaces/SignerWalletAdapterProps.md) | ||
### Variables | ||
- [WalletAdapterNetwork](modules.md#walletadapternetwork) | ||
### Functions | ||
@@ -82,3 +86,3 @@ | ||
[signer.ts:5](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/signer.ts#L5) | ||
[signer.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/signer.ts#L5) | ||
@@ -99,3 +103,3 @@ ___ | ||
[signer.ts:38](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/signer.ts#L38) | ||
[signer.ts:28](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/signer.ts#L28) | ||
@@ -116,3 +120,3 @@ ___ | ||
[signer.ts:16](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/signer.ts#L16) | ||
[signer.ts:9](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/signer.ts#L9) | ||
@@ -127,3 +131,3 @@ ___ | ||
[types.ts:7](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/types.ts#L7) | ||
[types.ts:5](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/types.ts#L5) | ||
@@ -144,3 +148,3 @@ ___ | ||
[types.ts:9](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/types.ts#L9) | ||
[types.ts:7](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/types.ts#L7) | ||
@@ -161,3 +165,3 @@ ___ | ||
[adapter.ts:33](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L33) | ||
[adapter.ts:33](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L33) | ||
@@ -178,22 +182,4 @@ ___ | ||
[adapter.ts:16](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L16) | ||
[adapter.ts:16](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L16) | ||
## Variables | ||
### WalletAdapterNetwork | ||
• `Const` **WalletAdapterNetwork**: `Object` | ||
#### Type declaration | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `Devnet` | `string` | | ||
| `Mainnet` | `string` | | ||
| `Testnet` | `string` | | ||
#### Defined in | ||
[types.ts:1](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/types.ts#L1) | ||
## Functions | ||
@@ -217,2 +203,2 @@ | ||
[adapter.ts:85](https://github.com/demox-labs/aleo-wallet-adapter/blob/77a8a54/packages/core/base/adapter.ts#L85) | ||
[adapter.ts:85](https://github.com/demox-labs/leo-wallet-adapter/blob/a4e012e/packages/core/base/adapter.ts#L85) |
@demox-labs/aleo-wallet-adapter-base / [Exports](modules.md) | ||
# Wallet Adapter for Aleo Apps | ||
Modular TypeScript wallet adapters and components for Aleo applications. | ||
- [Demo](https://demo.leo.app) | ||
- [Base Docs](https://github.com/demox-labs/aleo-wallet-adapter/blob/main/packages/core/base/docs/modules.md) | ||
- [React Docs](https://github.com/demox-labs/aleo-wallet-adapter/blob/main/packages/core/react/docs/modules.md) | ||
- [React UI Docs](https://github.com/demox-labs/aleo-wallet-adapter/blob/main/packages/ui/docs/modules.md) | ||
- [Leo Adapter Docs](https://github.com/demox-labs/aleo-wallet-adapter/blob/main/packages/wallets/leo/docs/modules.md) | ||
This is a quick setup guide with examples of how to add Wallet Adapter to a React-based Aleo app. | ||
## Quick Setup (using React UI) | ||
### 📲Install | ||
Install these dependencies: | ||
```shell | ||
npm install --save \ | ||
@demox-labs/aleo-wallet-adapter-base \ | ||
@demox-labs/aleo-wallet-adapter-react \ | ||
@demox-labs/aleo-wallet-adapter-reactui \ | ||
@demox-labs/aleo-wallet-adapter-leo \ | ||
react | ||
``` | ||
### 🛠️Setup | ||
```tsx | ||
import React, { FC, useMemo } from "react"; | ||
import { WalletProvider } from "@demox-labs/aleo-wallet-adapter-react"; | ||
import { WalletModalProvider } from "@demox-labs/aleo-wallet-adapter-reactui"; | ||
import { LeoWalletAdapter } from "@demox-labs/aleo-wallet-adapter-leo"; | ||
import { | ||
DecryptPermission, | ||
WalletAdapterNetwork, | ||
} from "@demox-labs/aleo-wallet-adapter-base"; | ||
// Default styles that can be overridden by your app | ||
require("@demox-labs/aleo-wallet-adapter-reactui/styles.css"); | ||
export const Wallet: FC = () => { | ||
const wallets = useMemo( | ||
() => [ | ||
new LeoWalletAdapter({ | ||
appName: "Leo Demo App", | ||
}), | ||
], | ||
[] | ||
); | ||
return ( | ||
<WalletProvider | ||
wallets={wallets} | ||
decryptPermission={DecryptPermission.UponRequest} | ||
network={WalletAdapterNetwork.Localnet} | ||
autoConnect | ||
> | ||
<WalletModalProvider> | ||
// Your app's components go here | ||
</WalletModalProvider> | ||
</WalletProvider> | ||
); | ||
}; | ||
``` | ||
### ✍🏻Signing | ||
```tsx | ||
import { WalletNotConnectedError } from "@demox-labs/aleo-wallet-adapter-base"; | ||
import { useWallet } from "@demox-labs/aleo-wallet-adapter-react"; | ||
import { LeoWalletAdapter } from "@demox-labs/aleo-wallet-adapter-leo"; | ||
import React, { FC, useCallback } from "react"; | ||
export const SignMessage: FC = () => { | ||
const { wallet, publicKey } = useWallet(); | ||
const onClick = useCallback(async () => { | ||
if (!publicKey) throw new WalletNotConnectedError(); | ||
const message = "a message to sign"; | ||
const bytes = new TextEncoder().encode(message); | ||
const signatureBytes = await ( | ||
wallet?.adapter as LeoWalletAdapter | ||
).signMessage(bytes); | ||
const signature = new TextDecoder().decode(signatureBytes); | ||
alert("Signed message: " + signature); | ||
}, [wallet, publicKey]); | ||
return ( | ||
<button onClick={onClick} disabled={!publicKey}> | ||
Sign message | ||
</button> | ||
); | ||
}; | ||
``` | ||
### 🔓Decrypting | ||
```tsx | ||
import { WalletNotConnectedError } from "@demox-labs/aleo-wallet-adapter-base"; | ||
import { useWallet } from "@demox-labs/aleo-wallet-adapter-react"; | ||
import React, { FC, useCallback } from "react"; | ||
export const DecryptMessage: FC = () => { | ||
const { publicKey, decrypt } = useWallet(); | ||
const onClick = async () => { | ||
const cipherText = "record...."; | ||
if (!publicKey) throw new WalletNotConnectedError(); | ||
if (decrypt) { | ||
const decryptedPayload = await decrypt(cipherText); | ||
alert("Decrypted payload: " + decryptedPayload); | ||
} | ||
}; | ||
return ( | ||
<button onClick={onClick} disabled={!publicKey}> | ||
Decrypt message | ||
</button> | ||
); | ||
}; | ||
``` | ||
### 🗂️Requesting Records | ||
```tsx | ||
import { WalletNotConnectedError } from "@demox-labs/aleo-wallet-adapter-base"; | ||
import { useWallet } from "@demox-labs/aleo-wallet-adapter-react"; | ||
import React, { FC, useCallback } from "react"; | ||
export const RequestRecords: FC = () => { | ||
const { publicKey, requestRecords } = useWallet(); | ||
const onClick = async () => { | ||
const program = "credits.aleo"; | ||
if (!publicKey) throw new WalletNotConnectedError(); | ||
if (requestRecords) { | ||
const records = await requestRecords(program); | ||
console.log("Records: " + records); | ||
} | ||
}; | ||
return ( | ||
<button onClick={onClick} disabled={!publicKey}> | ||
Request Records | ||
</button> | ||
); | ||
}; | ||
``` | ||
### 📡Requesting Transactions | ||
```tsx | ||
import { | ||
Transaction, | ||
WalletAdapterNetwork, | ||
WalletNotConnectedError | ||
} from "@demox-labs/aleo-wallet-adapter-base"; | ||
import { useWallet } from "@demox-labs/aleo-wallet-adapter-react"; | ||
import React, { FC, useCallback } from "react"; | ||
export const RequestRecords: FC = () => { | ||
const { publicKey, requestTransaction } = useWallet(); | ||
const onClick = async () => { | ||
if (!publicKey) throw new WalletNotConnectedError(); | ||
// The credits.aleo transfer proving key can be found here: https://aleo-public.s3.us-west-2.amazonaws.com/testnet3/transfer.prover.837ad21 | ||
// For other programs, you will need to host your proving key file | ||
const provingKey: Uint8Array = [...]; | ||
// The record here is an output from the Requesting Records above | ||
const record = `'{"id":"0f27d86a-1026-4980-9816-bcdce7569aa4","program_id":"credits.aleo","gates":"200000","spent":false,"data":{}}'` | ||
// Note that the inputs must be formatted in the same order as the Aleo program function expects, otherwise it will fail | ||
const inputs = [JSON.parse(record), "aleo1kf3dgrz9...", `${amount}u64`]; | ||
const aleoTransaction = Transaction.createTransaction( | ||
publicKey, | ||
WalletAdapterNetwork.Testnet, | ||
'credits.aleo', | ||
'transfer', | ||
inputs, | ||
provingKey.buffer | ||
); | ||
if (requestTransaction) { | ||
// No error is success, getting transaction id is currently not supported for privacy concerns | ||
await requestTransaction(aleoTransaction); | ||
} | ||
}; | ||
return ( | ||
<button onClick={onClick} disabled={!publicKey}> | ||
Request Transaction | ||
</button> | ||
); | ||
}; | ||
``` |
@@ -84,7 +84,15 @@ export class WalletError extends Error { | ||
export class WalletDecryptionNotAllowedError extends WalletError { | ||
name = 'WalletDecryptionNotAllowedError' | ||
name = 'WalletDecryptionNotAllowedError'; | ||
} | ||
export class WalletDecryptionError extends WalletError { | ||
name = 'WalletDecryptionError' | ||
name = 'WalletDecryptionError'; | ||
} | ||
export class WalletRecordsError extends WalletError { | ||
name = 'WalletRecordsError'; | ||
} | ||
export class WalletTransactionError extends WalletError { | ||
name = 'WalletTransactionError'; | ||
} |
@@ -5,1 +5,2 @@ export * from './adapter'; | ||
export * from './types'; | ||
export * from './transaction'; |
{ | ||
"name": "@demox-labs/aleo-wallet-adapter-base", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "Core infrastructure for connecting aleo-compatible wallets to your dApp.", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
import type { WalletAdapter, WalletAdapterProps } from './adapter'; | ||
import { BaseWalletAdapter } from './adapter'; | ||
import type { TransactionOrVersionedTransaction } from './types'; | ||
import { AleoTransaction } from './transaction'; | ||
export type Adapter = WalletAdapter | SignerWalletAdapter | MessageSignerWalletAdapter; | ||
export interface SignerWalletAdapterProps<Name extends string = string> extends WalletAdapterProps<Name> { | ||
signTransaction<T extends TransactionOrVersionedTransaction<this['supportedTransactionVersions']>>( | ||
transaction: T | ||
): Promise<T>; | ||
signAllTransactions<T extends TransactionOrVersionedTransaction<this['supportedTransactionVersions']>>( | ||
transactions: T[] | ||
): Promise<T[]>; | ||
} | ||
export interface SignerWalletAdapterProps<Name extends string = string> extends WalletAdapterProps<Name> { } | ||
@@ -21,10 +14,3 @@ export type SignerWalletAdapter<Name extends string = string> = WalletAdapter<Name> & SignerWalletAdapterProps<Name>; | ||
implements SignerWalletAdapter<Name> | ||
{ | ||
signTransaction<T extends TransactionOrVersionedTransaction<this['supportedTransactionVersions']>>(transaction: T): Promise<T> { | ||
throw new Error('Method not implemented.'); | ||
} | ||
signAllTransactions<T extends TransactionOrVersionedTransaction<this['supportedTransactionVersions']>>(transactions: T[]): Promise<T[]> { | ||
throw new Error('Method not implemented.'); | ||
} | ||
} | ||
{ } | ||
@@ -37,2 +23,6 @@ export interface MessageSignerWalletAdapterProps<Name extends string = string> extends WalletAdapterProps<Name> { | ||
decrypt(cipherText: string): Promise<string>; | ||
requestRecords(program: string): Promise<any[]>; | ||
requestTransaction(transaction: AleoTransaction): Promise<string>; | ||
} | ||
@@ -52,2 +42,6 @@ | ||
abstract decrypt(cipherText: string): Promise<string>; | ||
abstract requestRecords(program: string): Promise<any[]>; | ||
abstract requestTransaction(transaction: AleoTransaction): Promise<string>; | ||
} |
export enum WalletAdapterNetwork { | ||
Mainnet = 'mainnet', | ||
Testnet = 'testnet3', | ||
Localnet = 'localnet', | ||
Testnet = 'testnet3' | ||
}; | ||
@@ -6,0 +4,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
176976
70
675
203
1