BaseWalletAdapter
Last updated
Last updated
@demox-labs/aleo-wallet-adapter-base / Exports / BaseWalletAdapter
Minimal EventEmitter
interface that is molded against the Node.js EventEmitter
interface.
Name | Type |
---|---|
WalletAdapter
<Name
>
• new BaseWalletAdapter<Name
>()
Type parameters
Inherited from
• Abstract
connecting: boolean
Implementation of
WalletAdapter.connecting
Defined in
• Abstract
icon: string
Implementation of
WalletAdapter.icon
Defined in
• Abstract
name: WalletName
<Name
>
Implementation of
WalletAdapter.name
Defined in
• Abstract
publicKey: string
Implementation of
WalletAdapter.publicKey
Defined in
• Abstract
readyState: WalletReadyState
Implementation of
WalletAdapter.readyState
Defined in
• Abstract
supportedTransactionVersions: ReadonlySet
<any
>
Implementation of
WalletAdapter.supportedTransactionVersions
Defined in
• Abstract
url: string
Implementation of
WalletAdapter.url
Defined in
▪ Static
prefixed: string
| boolean
Inherited from
Defined in
node_modules/eventemitter3/index.d.ts:9
• get
connected(): boolean
Returns
boolean
Implementation of
WalletAdapter.connected
Defined in
▸ addListener<T
>(event
, fn
, context?
): BaseWalletAdapter
<Name
>
Type parameters
Parameters
Returns
BaseWalletAdapter
<Name
>
Implementation of
WalletAdapter.addListener
Inherited from
Defined in
node_modules/eventemitter3/index.d.ts:45
▸ Abstract
connect(decryptPermission
, network
, programs?
): Promise
<void
>
Parameters
Returns
Promise
<void
>
Implementation of
WalletAdapter.connect
Defined in
▸ Abstract
disconnect(): Promise
<void
>
Returns
Promise
<void
>
Implementation of
WalletAdapter.disconnect
Defined in
▸ emit<T
>(event
, ...args
): boolean
Calls each of the listeners registered for a given event.
Type parameters
Parameters
Returns
boolean
Implementation of
WalletAdapter.emit
Inherited from
Defined in
node_modules/eventemitter3/index.d.ts:32
▸ eventNames(): keyof WalletAdapterEvents
[]
Return an array listing the events for which the emitter has registered listeners.
Returns
keyof WalletAdapterEvents
[]
Implementation of
WalletAdapter.eventNames
Inherited from
Defined in
node_modules/eventemitter3/index.d.ts:15
▸ listenerCount(event
): number
Return the number of listeners listening to a given event.
Parameters
Returns
number
Implementation of
WalletAdapter.listenerCount
Inherited from
Defined in
node_modules/eventemitter3/index.d.ts:27
▸ listeners<T
>(event
): (...args
: ArgumentMap
<WalletAdapterEvents
>[Extract
<T
, keyof WalletAdapterEvents
>]) => void
[]
Return the listeners registered for a given event.
Type parameters
Parameters
Returns
(...args
: ArgumentMap
<WalletAdapterEvents
>[Extract
<T
, keyof WalletAdapterEvents
>]) => void
[]
Implementation of
WalletAdapter.listeners
Inherited from
Defined in
node_modules/eventemitter3/index.d.ts:20
▸ off<T
>(event
, fn?
, context?
, once?
): BaseWalletAdapter
<Name
>
Type parameters
Parameters
Returns
BaseWalletAdapter
<Name
>
Implementation of
WalletAdapter.off
Inherited from
Defined in
node_modules/eventemitter3/index.d.ts:69
▸ on<T
>(event
, fn
, context?
): BaseWalletAdapter
<Name
>
Add a listener for a given event.
Type parameters
Parameters
Returns
BaseWalletAdapter
<Name
>
Implementation of
WalletAdapter.on
Inherited from
Defined in
node_modules/eventemitter3/index.d.ts:40
▸ once<T
>(event
, fn
, context?
): BaseWalletAdapter
<Name
>
Add a one-time listener for a given event.
Type parameters
Parameters
Returns
BaseWalletAdapter
<Name
>
Implementation of
WalletAdapter.once
Inherited from
Defined in
node_modules/eventemitter3/index.d.ts:54
▸ removeAllListeners(event?
): BaseWalletAdapter
<Name
>
Remove all listeners, or those of the specified event.
Parameters
Returns
BaseWalletAdapter
<Name
>
Implementation of
WalletAdapter.removeAllListeners
Inherited from
EventEmitter.removeAllListeners
Defined in
node_modules/eventemitter3/index.d.ts:79
▸ removeListener<T
>(event
, fn?
, context?
, once?
): BaseWalletAdapter
<Name
>
Remove the listeners of a given event.
Type parameters
Parameters
Returns
BaseWalletAdapter
<Name
>
Implementation of
WalletAdapter.removeListener
Inherited from
Defined in
node_modules/eventemitter3/index.d.ts:63
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name
extends string
= string
Name
extends string
= string
T
extends keyof WalletAdapterEvents
event
T
fn
(...args
: ArgumentMap
<WalletAdapterEvents
>[Extract
<T
, keyof WalletAdapterEvents
>]) => void
context?
any
decryptPermission
network
programs?
string
[]
T
extends keyof WalletAdapterEvents
event
T
...args
ArgumentMap
<WalletAdapterEvents
>[Extract
<T
, keyof WalletAdapterEvents
>]
event
keyof WalletAdapterEvents
T
extends keyof WalletAdapterEvents
event
T
T
extends keyof WalletAdapterEvents
event
T
fn?
(...args
: ArgumentMap
<WalletAdapterEvents
>[Extract
<T
, keyof WalletAdapterEvents
>]) => void
context?
any
once?
boolean
T
extends keyof WalletAdapterEvents
event
T
fn
(...args
: ArgumentMap
<WalletAdapterEvents
>[Extract
<T
, keyof WalletAdapterEvents
>]) => void
context?
any
T
extends keyof WalletAdapterEvents
event
T
fn
(...args
: ArgumentMap
<WalletAdapterEvents
>[Extract
<T
, keyof WalletAdapterEvents
>]) => void
context?
any
event?
keyof WalletAdapterEvents
T
extends keyof WalletAdapterEvents
event
T
fn?
(...args
: ArgumentMap
<WalletAdapterEvents
>[Extract
<T
, keyof WalletAdapterEvents
>]) => void
context?
any
once?
boolean