UNPKG

@ngraveio/bc-ur-multi-layer-sync

Version:

Provides BC-UR types for syncing multiple coins and accounts from cold wallets to watch only wallets.

22 lines (21 loc) 1.02 kB
/// <reference types="node" /> import { DataItem, RegistryItem, CryptoHDKey, CryptoOutput } from '@keystonehq/bc-ur-registry'; import { HexString } from '@ngraveio/bc-ur-registry-hex-string'; type token_id_input = string | Buffer | HexString; type account_exp = CryptoHDKey | CryptoOutput; export declare class CryptoDetailedAccount extends RegistryItem { private account; private tokenIds?; getRegistryType: () => import("@keystonehq/bc-ur-registry").RegistryType; constructor(account: account_exp, tokenIds?: token_id_input[]); static checkAccount(account: account_exp): void; static checkHdKey(hdKey: CryptoHDKey): void; getAccount: () => account_exp; getCryptoHDKey: () => CryptoHDKey | undefined; getCryptoOutput: () => CryptoOutput | undefined; getTokenIds: () => string[] | undefined; toDataItem: () => DataItem; static fromDataItem: (dataItem: DataItem) => CryptoDetailedAccount; static fromCBOR: (_cborPayload: Buffer) => CryptoDetailedAccount; } export {};