bitcore-wallet-service
Version:
A service for Mutisig HD Bitcoin Wallets
30 lines • 918 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TxProposalAction = void 0;
class TxProposalAction {
static create(opts) {
opts = opts || {};
let x = new TxProposalAction();
x.version = '1.0.0';
x.createdOn = Math.floor(Date.now() / 1000);
x.copayerId = opts.copayerId;
x.type = opts.type;
x.signatures = opts.signatures;
x.xpub = opts.xpub;
x.comment = opts.comment;
return x;
}
static fromObj(obj) {
let x = new TxProposalAction();
x.version = obj.version;
x.createdOn = obj.createdOn;
x.copayerId = obj.copayerId;
x.type = obj.type;
x.signatures = obj.signatures;
x.xpub = obj.xpub;
x.comment = obj.comment;
return x;
}
}
exports.TxProposalAction = TxProposalAction;
//# sourceMappingURL=txproposalaction.js.map