@abcpros/bitcore-wallet-service
Version:
A service for Mutisig HD Bitcoin Wallets
35 lines • 1.13 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TxConfirmationSub = void 0;
var TxConfirmationSub = (function () {
function TxConfirmationSub() {
}
TxConfirmationSub.create = function (opts) {
opts = opts || {};
var x = new TxConfirmationSub();
x.version = 1;
x.createdOn = Math.floor(Date.now() / 1000);
x.walletId = opts.walletId;
x.copayerId = opts.copayerId;
x.txid = opts.txid;
x.isActive = true;
x.amount = opts.amount;
x.isCreator = opts.isCreator;
return x;
};
TxConfirmationSub.fromObj = function (obj) {
var x = new TxConfirmationSub();
x.version = obj.version;
x.createdOn = obj.createdOn;
x.walletId = obj.walletId;
x.copayerId = obj.copayerId;
x.txid = obj.txid;
x.amount = obj.amount;
x.isActive = obj.isActive;
x.isCreator = obj.isCreator;
return x;
};
return TxConfirmationSub;
}());
exports.TxConfirmationSub = TxConfirmationSub;
//# sourceMappingURL=txconfirmationsub.js.map