UNPKG

@machinemode/cryptopia

Version:

Node wrapper for Cryptopia's CLient API

97 lines 2.9 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Balance = (function () { function Balance(balance) { this.CurrencyId = balance.CurrencyId; this.Symbol = balance.Symbol; this.Total = balance.Total; this.Available = balance.Available; this.Unconfirmed = balance.Unconfirmed; this.HeldForTrades = balance.HeldForTrades; this.PendingWithdraw = balance.PendingWithdraw; this.Address = balance.Address || ''; this.BaseAddress = balance.BaseAddress || ''; this.Status = balance.Status || ''; this.StatusMessage = balance.StatusMessage || ''; } Object.defineProperty(Balance.prototype, "currencyId", { get: function () { return this.CurrencyId; }, enumerable: true, configurable: true }); Object.defineProperty(Balance.prototype, "symbol", { get: function () { return this.Symbol; }, enumerable: true, configurable: true }); Object.defineProperty(Balance.prototype, "total", { get: function () { return this.Total; }, enumerable: true, configurable: true }); Object.defineProperty(Balance.prototype, "available", { get: function () { return this.Available; }, enumerable: true, configurable: true }); Object.defineProperty(Balance.prototype, "unconfirmed", { get: function () { return this.Unconfirmed; }, enumerable: true, configurable: true }); Object.defineProperty(Balance.prototype, "heldForTrades", { get: function () { return this.HeldForTrades; }, enumerable: true, configurable: true }); Object.defineProperty(Balance.prototype, "pendingWithdraw", { get: function () { return this.PendingWithdraw; }, enumerable: true, configurable: true }); Object.defineProperty(Balance.prototype, "address", { get: function () { return this.Address; }, enumerable: true, configurable: true }); Object.defineProperty(Balance.prototype, "baseAddress", { get: function () { return this.BaseAddress; }, enumerable: true, configurable: true }); Object.defineProperty(Balance.prototype, "status", { get: function () { return this.Status; }, enumerable: true, configurable: true }); Object.defineProperty(Balance.prototype, "statusMessage", { get: function () { return this.StatusMessage; }, enumerable: true, configurable: true }); return Balance; }()); exports.default = Balance; //# sourceMappingURL=Balance.js.map