@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
20 lines • 1.08 kB
TypeScript
import type { ChainwatchNetwork, ChainwatchAccount, ChainwatchTargetType, ChainwatchMonitorType, Account } from "@ledgerhq/types-live";
declare class ChainwatchAccountManager {
chainwatchBaseUrl: string;
userId: string;
network: ChainwatchNetwork;
suffixes: string[];
constructor(chainwatchBaseUrl: string, userId: string, network: ChainwatchNetwork);
getChainwatchAccount(): Promise<ChainwatchAccount | undefined>;
removeChainwatchAccount(): Promise<void>;
registerNewChainwatchAccount(): Promise<any>;
getAccountAddress(account: Account): string;
accountAlreadySubscribed(account: Account): boolean | "";
registerNewAccountsAddresses(accountsToRegister: Account[]): Promise<void>;
removeAccountsAddresses(accountsToRemove: Account[]): Promise<void>;
registerNewMonitor(monitor: ChainwatchMonitorType): Promise<void>;
registerNewTarget(target: ChainwatchTargetType): Promise<void>;
setupChainwatchAccount(): Promise<void>;
}
export default ChainwatchAccountManager;
//# sourceMappingURL=ChainwatchAccountManager.d.ts.map