@ethersproject/hardware-wallets
Version:
Hardware Wallet support for ethers.
43 lines (33 loc) • 1.01 kB
TypeScript
declare module "@ledgerhq/hw-app-eth" {
export type PublicAccount = {
publicKey: string;
address: string;
chainCode: string;
};
export type Config = {
arbitraryDataEnabled: number,
version: string
};
export type Signature = {
r: string,
s: string,
v: number
};
export class Transport { }
export class Eth {
constructor(transport: Transport);
getAppConfiguration(): Promise<Config>;
getAddress(path: string): Promise<PublicAccount>;
signPersonalMessage(path: string, message: string): Promise<Signature>;
signTransaction(path: string, unsignedTx: string): Promise<Signature>;
}
export default Eth;
}
declare module "@ledgerhq/hw-transport-node-hid" {
export class Transport { }
export function create(): Promise<Transport>;
}
declare module "@ledgerhq/hw-transport-u2f" {
export class Transport { }
export function create(): Promise<Transport>;
}