@machinemode/cryptopia
Version:
Node wrapper for Cryptopia's CLient API
89 lines • 2.63 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Transaction = (function () {
function Transaction(transaction) {
this.Id = transaction.Id;
this.Currency = transaction.Currency;
this.TxId = transaction.TxId;
this.Type = transaction.Type;
this.Amount = transaction.Amount;
this.Fee = transaction.Fee;
this.Status = transaction.Status || '';
this.Confirmations = transaction.Confirmations;
this.TimeStamp = Date.parse(transaction.TimeStamp);
this.Address = transaction.Address || '';
}
Object.defineProperty(Transaction.prototype, "id", {
get: function () {
return this.Id;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Transaction.prototype, "currency", {
get: function () {
return this.Currency;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Transaction.prototype, "txId", {
get: function () {
return this.TxId;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Transaction.prototype, "type", {
get: function () {
return this.Type;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Transaction.prototype, "amount", {
get: function () {
return this.Amount;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Transaction.prototype, "fee", {
get: function () {
return this.Fee;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Transaction.prototype, "status", {
get: function () {
return this.Status;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Transaction.prototype, "confirmations", {
get: function () {
return this.Confirmations;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Transaction.prototype, "timeStamp", {
get: function () {
return this.TimeStamp;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Transaction.prototype, "address", {
get: function () {
return this.Address;
},
enumerable: true,
configurable: true
});
return Transaction;
}());
exports.default = Transaction;
//# sourceMappingURL=Transaction.js.map