sarga-cardano-wallet-js-dist/wallet/address-wallet.js
2023-08-08 01:20:23 +02:00

24 lines
806 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AddressWallet = void 0;
var models_1 = require("../models");
var AddressWallet = /** @class */ (function () {
function AddressWallet(address, state) {
if (state === void 0) { state = models_1.ApiAddressStateEnum.Unused; }
this.id = address;
this.state = state;
}
Object.defineProperty(AddressWallet.prototype, "address", {
get: function () {
return this.id;
},
enumerable: false,
configurable: true
});
AddressWallet.prototype.used = function () {
return this.state === models_1.ApiAddressStateEnum.Used;
};
return AddressWallet;
}());
exports.AddressWallet = AddressWallet;
//# sourceMappingURL=address-wallet.js.map