You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
671 B

10 years ago
'use strict';
function TxProposalAction() {
this.version = '1.0.0';
};
TxProposalAction.create = function(opts) {
opts = opts || {};
10 years ago
var x = new TxProposalAction();
x.createdOn = Math.floor(Date.now() / 1000);
x.copayerId = opts.copayerId;
10 years ago
x.type = opts.type;
x.signatures = opts.signatures;
x.xpub = opts.xpub;
x.comment = opts.comment;
return x;
10 years ago
};
TxProposalAction.fromObj = function(obj) {
var x = new TxProposalAction();
10 years ago
x.createdOn = obj.createdOn;
x.copayerId = obj.copayerId;
x.type = obj.type;
x.signatures = obj.signatures;
x.xpub = obj.xpub;
x.comment = obj.comment;
10 years ago
return x;
10 years ago
};
module.exports = TxProposalAction;