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

21 lines
877 B
JavaScript
Raw Normal View History

2023-08-07 23:20:23 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StakePoolWallet = void 0;
var StakePoolWallet = /** @class */ (function () {
function StakePoolWallet(id, metrics, cost, margin, pledge, metadata, retirement, flags) {
this.id = id;
this.metrics = metrics;
this.cost = cost;
this.margin = margin;
this.pledge = pledge;
this.metadata = metadata;
this.retirement = retirement;
this.flags = flags;
}
StakePoolWallet.from = function (apiStakePool) {
return new this(apiStakePool.id, apiStakePool.metrics, apiStakePool.cost, apiStakePool.margin, apiStakePool.pledge, apiStakePool.metadata, apiStakePool.retirement, apiStakePool.flags);
};
return StakePoolWallet;
}());
exports.StakePoolWallet = StakePoolWallet;
//# sourceMappingURL=stakepool-wallet.js.map