@airgap/coinlib-core
Version:
The @airgap/coinlib-core is a protocol agnostic library to prepare, sign and broadcast cryptocurrency transactions.
35 lines (34 loc) • 934 B
TypeScript
export declare enum Domain {
SERIALIZER = "SERIALIZER",
SUBPROTOCOLS = "SUBPROTOCOLS",
WALLET = "WALLET",
BITCOIN = "BITCOIN",
ETHEREUM = "ETHEREUM",
ERC20 = "ERC20",
COSMOS = "COSMOS",
SUBSTRATE = "SUBSTRATE",
AETERNITY = "AETERNITY",
GROESTLCOIN = "GROESTLCOIN",
TEZOS = "TEZOS",
TEZOSFA = "TEZOSFA",
UTILS = "UTILS",
ACTIONS = "ACTIONS",
ICP = "ICP",
COREUM = "COREUM",
OPTIMISM = "OPTIMISM",
MINA = "MINA",
STELLAR = "STELLAR"
}
export declare class CoinlibError extends Error {
domain: Domain;
code: string;
description?: string | undefined;
constructor(domain: Domain, code: string, description?: string | undefined);
}
export declare class CoinlibAssertionError extends Error {
domain: Domain;
code: string;
expected: string;
actual: any;
constructor(domain: Domain, code: string, expected: string, actual: any);
}