UNPKG

charms-wallet-js

Version:

Professional Bitcoin wallet library for Charms ecosystem using @scure stack

43 lines 1.49 kB
"use strict"; // Core type definitions for Charms Wallet JS Object.defineProperty(exports, "__esModule", { value: true }); exports.CryptographyError = exports.NetworkError = exports.TransactionError = exports.ValidationError = exports.CharmsWalletError = void 0; // Error types class CharmsWalletError extends Error { constructor(message, code, details) { super(message); this.name = 'CharmsWalletError'; this.code = code; this.details = details; } } exports.CharmsWalletError = CharmsWalletError; class ValidationError extends CharmsWalletError { constructor(message, details) { super(message, 'VALIDATION_ERROR', details); this.name = 'ValidationError'; } } exports.ValidationError = ValidationError; class TransactionError extends CharmsWalletError { constructor(message, details) { super(message, 'TRANSACTION_ERROR', details); this.name = 'TransactionError'; } } exports.TransactionError = TransactionError; class NetworkError extends CharmsWalletError { constructor(message, details) { super(message, 'NETWORK_ERROR', details); this.name = 'NetworkError'; } } exports.NetworkError = NetworkError; class CryptographyError extends CharmsWalletError { constructor(message, details) { super(message, 'CRYPTOGRAPHY_ERROR', details); this.name = 'CryptographyError'; } } exports.CryptographyError = CryptographyError; //# sourceMappingURL=types.js.map