sarga-cardano-wallet-js-dist/wallet/address-wallet.js

24 lines
806 B
JavaScript
Raw Permalink Normal View History

2023-08-07 23:20:23 +00:00
"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