@machinemode/cryptopia
Version:
Node wrapper for Cryptopia's CLient API
113 lines • 3.41 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Currency = (function () {
function Currency(currency) {
this.Id = currency.Id;
this.Name = currency.Name;
this.Symbol = currency.Symbol;
this.Algorithm = currency.Algorithm;
this.WithdrawFee = currency.WithdrawFee;
this.MinWithdraw = currency.MinWithdraw;
this.MinBaseTrade = currency.MinBaseTrade;
this.IsTipEnabled = currency.IsTipEnabled;
this.MinTip = currency.MinTip;
this.DepositConfirmations = currency.DepositConfirmations;
this.Status = currency.Status || '';
this.StatusMessage = currency.StatusMessage || '';
this.ListingStatus = currency.ListingStatus || '';
}
Object.defineProperty(Currency.prototype, "id", {
get: function () {
return this.Id;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Currency.prototype, "name", {
get: function () {
return this.Name;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Currency.prototype, "symbol", {
get: function () {
return this.Symbol;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Currency.prototype, "algorithm", {
get: function () {
return this.Algorithm;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Currency.prototype, "withdrawFee", {
get: function () {
return this.WithdrawFee;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Currency.prototype, "minWithdraw", {
get: function () {
return this.MinWithdraw;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Currency.prototype, "minBaseTrade", {
get: function () {
return this.MinBaseTrade;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Currency.prototype, "isTipEnabled", {
get: function () {
return this.IsTipEnabled;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Currency.prototype, "minTip", {
get: function () {
return this.MinTip;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Currency.prototype, "depositConfirmations", {
get: function () {
return this.DepositConfirmations;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Currency.prototype, "status", {
get: function () {
return this.Status;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Currency.prototype, "statusMessage", {
get: function () {
return this.StatusMessage;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Currency.prototype, "listingStatus", {
get: function () {
return this.ListingStatus;
},
enumerable: true,
configurable: true
});
return Currency;
}());
exports.default = Currency;
//# sourceMappingURL=Currency.js.map