UNPKG

airgap-coin-lib

Version:

The airgap-coin-lib is a protocol agnostic library to prepare, sign and broadcast cryptocurrency transactions.

33 lines 1.33 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var Domain; (function (Domain) { Domain["SERIALIZER"] = "serializer"; })(Domain = exports.Domain || (exports.Domain = {})); var CoinlibError = /** @class */ (function (_super) { __extends(CoinlibError, _super); function CoinlibError(domain, code, description) { if (description === void 0) { description = ''; } var _this = _super.call(this, domain + "(" + code + "): " + description) || this; _this.domain = domain; _this.code = code; _this.description = description; return _this; } return CoinlibError; }(Error)); exports.CoinlibError = CoinlibError; //# sourceMappingURL=coinlib-error.js.map