mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 03:26:14 +00:00
c340246ca0
* Progress commit * Update more types * Fix more types * Fix abi function types * Fix lib types * Fix rest of types * Address wbobeirne changes * Change origin and destination check
46 lines
902 B
TypeScript
46 lines
902 B
TypeScript
declare module 'ledgerco' {
|
|
// TODO: fill the library typings out
|
|
export const comm_u2f: any;
|
|
export class eth {
|
|
constructor(transport: any);
|
|
getAddress_async(
|
|
path: string,
|
|
boolDisplay?: boolean,
|
|
boolChaincode?: boolean
|
|
): Promise<{
|
|
publicKey: string;
|
|
address: string;
|
|
chainCode: string;
|
|
}>;
|
|
|
|
signTransaction_async(
|
|
path: string,
|
|
rawTxHex: string
|
|
): Promise<{
|
|
s: string;
|
|
v: string;
|
|
r: string;
|
|
}>;
|
|
|
|
getAppConfiguration_async(): Promise<{
|
|
arbitraryDataEnabled: number;
|
|
version: string;
|
|
}>;
|
|
|
|
signPersonalMessage_async(
|
|
path: string,
|
|
messageHex: string
|
|
): Promise<{
|
|
v: number;
|
|
s: string;
|
|
r: string;
|
|
}>;
|
|
|
|
signPersonalMessage_async(
|
|
path: string,
|
|
messageHex: string,
|
|
cb: (signed: any, error: any) => any
|
|
): void;
|
|
}
|
|
}
|