Remove old ledger
This commit is contained in:
parent
8521775389
commit
71e7e9c9c3
29
packages/subproviders/src/globals.d.ts
vendored
29
packages/subproviders/src/globals.d.ts
vendored
@ -54,35 +54,6 @@ declare module '@ledgerhq/hw-transport-u2f' {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module 'ledgerco' {
|
|
||||||
interface comm {
|
|
||||||
close_async(): Promise<void>;
|
|
||||||
}
|
|
||||||
export class comm_node implements comm {
|
|
||||||
public static create_async(timeoutMilliseconds?: number): Promise<comm_node>;
|
|
||||||
public close_async(): Promise<void>;
|
|
||||||
}
|
|
||||||
export class comm_u2f implements comm {
|
|
||||||
public static create_async(): Promise<comm_u2f>;
|
|
||||||
public close_async(): Promise<void>;
|
|
||||||
}
|
|
||||||
export class eth {
|
|
||||||
public comm: comm;
|
|
||||||
constructor(comm: comm);
|
|
||||||
public getAddress_async(
|
|
||||||
path: string,
|
|
||||||
display?: boolean,
|
|
||||||
chaincode?: boolean,
|
|
||||||
): Promise<{ publicKey: string; address: string; chainCode: string }>;
|
|
||||||
public signTransaction_async(path: string, rawTxHex: string): Promise<ECSignatureString>;
|
|
||||||
public getAppConfiguration_async(): Promise<{
|
|
||||||
arbitraryDataEnabled: number;
|
|
||||||
version: string;
|
|
||||||
}>;
|
|
||||||
public signPersonalMessage_async(path: string, messageHex: string): Promise<ECSignature>;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Semaphore-async-await declarations
|
// Semaphore-async-await declarations
|
||||||
declare module 'semaphore-async-await' {
|
declare module 'semaphore-async-await' {
|
||||||
class Semaphore {
|
class Semaphore {
|
||||||
|
@ -25,13 +25,3 @@ export async function ledgerEthereumBrowserClientFactoryAsync(): Promise<LedgerE
|
|||||||
const ledgerEthClient = new LedgerEthereumClientFn(ledgerConnection);
|
const ledgerEthClient = new LedgerEthereumClientFn(ledgerConnection);
|
||||||
return ledgerEthClient;
|
return ledgerEthClient;
|
||||||
}
|
}
|
||||||
|
|
||||||
// /**
|
|
||||||
// * A factory for creating a LedgerEthereumClient usable in a Node.js context.
|
|
||||||
// * @return LedgerEthereumClient A Node.js client
|
|
||||||
// */
|
|
||||||
// export async function ledgerEthereumNodeJsClientFactoryAsync(): Promise<LedgerEthereumClient> {
|
|
||||||
// const ledgerConnection = await LedgerNodeCommunication.create_async();
|
|
||||||
// const ledgerEthClient = new LedgerEthereumClientFn(ledgerConnection);
|
|
||||||
// return ledgerEthClient;
|
|
||||||
// }
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user