ethers.js/packages/hardware-wallets/lib/ledger.d.ts

14 lines
688 B
TypeScript
Raw Normal View History

2020-01-11 04:09:40 +03:00
import { ethers } from "ethers";
2020-01-10 11:19:21 +03:00
import Eth from "@ledgerhq/hw-app-eth";
2020-01-11 04:09:40 +03:00
export declare class LedgerSigner extends ethers.Signer {
2020-01-10 11:19:21 +03:00
readonly type: string;
readonly path: string;
readonly _eth: Promise<Eth>;
2020-01-11 04:09:40 +03:00
constructor(provider?: ethers.providers.Provider, type?: string, path?: string);
_retry<T = any>(callback: (eth: Eth) => Promise<T>, timeout?: number): Promise<T>;
2020-01-10 11:19:21 +03:00
getAddress(): Promise<string>;
2020-01-11 04:09:40 +03:00
signMessage(message: ethers.utils.Bytes | string): Promise<string>;
signTransaction(transaction: ethers.providers.TransactionRequest): Promise<string>;
connect(provider: ethers.providers.Provider): ethers.Signer;
2020-01-10 11:19:21 +03:00
}
//# sourceMappingURL=ledger.d.ts.map