WalletAdapterLedger
Defined in: packages/iso-filecoin-wallets/src/ledger.js:31
Ledger wallet implementation
Implements
Extends
TypedEventTarget
Accessors
app
Get Signature
get app(): | undefined | LedgerFilecoin;
Defined in: packages/iso-filecoin-wallets/src/ledger.js:82
Returns
| undefined
| LedgerFilecoin
connected
Get Signature
get connected(): boolean;
Defined in: packages/iso-filecoin-wallets/src/ledger.js:78
Whether the wallet is currently connected
Returns
boolean
connecting
Get Signature
get connecting(): boolean;
Defined in: packages/iso-filecoin-wallets/src/ledger.js:74
Whether the wallet is in the process of connecting
Returns
boolean
support
Get Signature
get support(): "NotChecked" | "Detected" | "NotDetected" | "NotSupported";
Defined in: packages/iso-filecoin-wallets/src/ledger.js:86
Wallet support status (NotChecked, Detected, NotDetected, NotSupported)
Returns
"NotChecked"
| "Detected"
| "NotDetected"
| "NotSupported"
Constructors
Constructor
new WalletAdapterLedger(config: WalletLedgerConfig): WalletAdapterLedger;
Defined in: packages/iso-filecoin-wallets/src/ledger.js:63
Parameters
Parameter | Type |
---|---|
config | WalletLedgerConfig |
Returns
WalletAdapterLedger
Overrides
TypedEventTarget.constructor
Methods
addEventListener()
addEventListener<T>( type: T, callback: | null | TypedEventListenerOrEventListenerObject<WalletEvents, T>, options?: boolean | AddEventListenerOptions): void;
Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/event-target/index.d.ts:29
Type Parameters
Type Parameter |
---|
T extends | "accountChanged" | "networkChanged" | "disconnect" | "connect" | "error" | "stateChanged" |
Parameters
Parameter | Type |
---|---|
type | T |
callback | | null | TypedEventListenerOrEventListenerObject <WalletEvents , T > |
options ? | boolean | AddEventListenerOptions |
Returns
void
Inherit Doc
Inherited from
TypedEventTarget.addEventListener
changeNetwork()
changeNetwork(network: Network): Promise<{ account: IAccount; network: Network;}>;
Defined in: packages/iso-filecoin-wallets/src/ledger.js:156
Parameters
Parameter | Type |
---|---|
network | Network |
Returns
Promise
<{
account
: IAccount
;
network
: Network
;
}>
checkSupport()
checkSupport(): Promise<void>;
Defined in: packages/iso-filecoin-wallets/src/ledger.js:90
Check if this wallet adapter is supported in the current environment
Returns
Promise
<void
>
connect()
connect(params?: { network: Network;}): Promise<{ account: IAccount; network: Network;}>;
Defined in: packages/iso-filecoin-wallets/src/ledger.js:108
Parameters
Parameter | Type |
---|---|
params ? | { network : Network ; } |
params.network ? | Network |
Returns
Promise
<{
account
: IAccount
;
network
: Network
;
}>
deriveAccount()
deriveAccount(index: number): Promise<IAccount>;
Defined in: packages/iso-filecoin-wallets/src/ledger.js:184
Parameters
Parameter | Type |
---|---|
index | number |
Returns
disconnect()
disconnect(): Promise<void>;
Defined in: packages/iso-filecoin-wallets/src/ledger.js:139
Disconnect from the wallet
Returns
Promise
<void
>
dispatchEvent()
dispatchEvent(event: Event): boolean;
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:8882
Dispatches a synthetic event event to target and returns true if either event’s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Parameters
Parameter | Type |
---|---|
event | Event |
Returns
boolean
Inherited from
TypedEventTarget.dispatchEvent
dispatchTypedEvent()
dispatchTypedEvent<T>(_type: T, event: WalletEvents[T]): boolean;
Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/event-target/index.d.ts:20
Dispatches a synthetic event to target and returns true if either event’s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Type Parameters
Type Parameter |
---|
T extends keyof WalletEvents |
Parameters
Parameter | Type |
---|---|
_type | T |
event | WalletEvents [T ] |
Returns
boolean
Inherited from
TypedEventTarget.dispatchTypedEvent
emit()
emit<T>(...args: WalletEvents[T]["detail"] extends IsAny<WalletEvents[T]["detail"]> ? [T, unknown] : [T, WalletEvents[T]["detail"]]): boolean;
Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/event-target/index.d.ts:21
Type Parameters
Type Parameter |
---|
T extends keyof WalletEvents |
Parameters
Parameter | Type |
---|---|
…args | WalletEvents [T ]["detail" ] extends IsAny <WalletEvents [T ]["detail" ]> ? [T , unknown ] : [T , WalletEvents [T ]["detail" ]] |
Returns
boolean
Inherited from
TypedEventTarget.emit
off()
off<T>( type: T, callback: | null | TypedEventListenerOrEventListenerObject<WalletEvents, T>, options?: boolean | EventListenerOptions): void;
Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/event-target/index.d.ts:55
Alias for TypedEventTarget.removeEventListener
Type Parameters
Type Parameter |
---|
T extends | "accountChanged" | "networkChanged" | "disconnect" | "connect" | "error" | "stateChanged" |
Parameters
Parameter | Type |
---|---|
type | T |
callback | | null | TypedEventListenerOrEventListenerObject <WalletEvents , T > |
options ? | boolean | EventListenerOptions |
Returns
void
Inherited from
TypedEventTarget.off
on()
on<T>( type: T, callback: | null | TypedEventListenerOrEventListenerObject<WalletEvents, T>, options?: boolean | AddEventListenerOptions): void;
Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/event-target/index.d.ts:38
Alias for TypedEventTarget.addEventListener
Type Parameters
Type Parameter |
---|
T extends | "accountChanged" | "networkChanged" | "disconnect" | "connect" | "error" | "stateChanged" |
Parameters
Parameter | Type |
---|---|
type | T |
callback | | null | TypedEventListenerOrEventListenerObject <WalletEvents , T > |
options ? | boolean | AddEventListenerOptions |
Returns
void
Inherited from
TypedEventTarget.on
removeEventListener()
removeEventListener<T>( type: T, callback: | null | TypedEventListenerOrEventListenerObject<WalletEvents, T>, options?: boolean | EventListenerOptions): void;
Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/event-target/index.d.ts:46
Type Parameters
Type Parameter |
---|
T extends | "accountChanged" | "networkChanged" | "disconnect" | "connect" | "error" | "stateChanged" |
Parameters
Parameter | Type |
---|---|
type | T |
callback | | null | TypedEventListenerOrEventListenerObject <WalletEvents , T > |
options ? | boolean | EventListenerOptions |
Returns
void
Inherit Doc
Inherited from
TypedEventTarget.removeEventListener
sign()
sign(data: Uint8Array<ArrayBufferLike>): Promise<Signature>;
Defined in: packages/iso-filecoin-wallets/src/ledger.js:203
Parameters
Parameter | Type |
---|---|
data | Uint8Array <ArrayBufferLike > |
Returns
signMessage()
signMessage(message: { from: string; gasFeeCap: string; gasLimit: number; gasPremium: string; method: number; nonce: number; params: string; to: string; value: string; version: 0;}): Promise<Signature>;
Defined in: packages/iso-filecoin-wallets/src/ledger.js:229
Parameters
Parameter | Type |
---|---|
message | { from : string ; gasFeeCap : string ; gasLimit : number ; gasPremium : string ; method : number ; nonce : number ; params : string ; to : string ; value : string ; version : 0 ; } |
message.from | string |
message.gasFeeCap | string |
message.gasLimit | number |
message.gasPremium | string |
message.method | number |
message.nonce | number |
message.params | string |
message.to | string |
message.value | string |
message.version | 0 |
Returns
Properties
[symbol]
[symbol]: boolean = true;
Defined in: packages/iso-filecoin-wallets/src/ledger.js:33
account
account: | undefined | IAccount = undefined;
Defined in: packages/iso-filecoin-wallets/src/ledger.js:40
id
id: string = 'ledger';
Defined in: packages/iso-filecoin-wallets/src/ledger.js:35
Wallet adapter identifier (e.g. ‘filsnap’, ‘ledger’, ‘hd’, ‘raw’)
name
name: string = 'Ledger';
Defined in: packages/iso-filecoin-wallets/src/ledger.js:36
Human readable wallet name
network
network: Network;
Defined in: packages/iso-filecoin-wallets/src/ledger.js:69
signatureType
signatureType: "SECP256K1" | "BLS";
Defined in: packages/iso-filecoin-wallets/src/ledger.js:70
uid
uid: string;
Defined in: packages/iso-filecoin-wallets/src/ledger.js:34
Unique identifier for this wallet instance
url
url: string = 'https://ledger.com';
Defined in: packages/iso-filecoin-wallets/src/ledger.js:37
Wallet homepage URL