aion-gql-webcomponents
Version:
AION Webcomponents using AION GraphQL
27 lines (26 loc) • 1.04 kB
TypeScript
import Transport from "@ledgerhq/hw-transport-u2f";
import { WalletProvider } from "../../WalletProvider";
import { Transaction } from "../../../common/Transaction";
import { SignedTransaction } from "../../../common/SignedTransaction";
export declare class LedgerProvider implements WalletProvider {
transport: Transport;
path: string;
private address;
private publicKey;
constructor();
private connect;
unlock(progressCallback: (number: any) => void): Promise<[string, string]>;
/**
* get Aion address for a given BIP 32 path.
* @param path a path in BIP 32 format
* @option boolDisplay optionally enable or not the display
* @option boolChaincode optionally enable or not the chaincode request
* @return an object with a publicKey, address
* @example
*/
getAddress(path: string, boolDisplay?: boolean, boolChaincode?: boolean): Promise<{
publicKey: string;
address: string;
}>;
sign(transaction: Transaction): Promise<SignedTransaction>;
}