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.

24 lines
507 B

10 years ago
'use strict';
function TxProposalAction(opts) {
opts = opts || {};
10 years ago
this.createdOn = Math.floor(Date.now() / 1000);
this.copayerId = opts.copayerId;
this.type = opts.type || (opts.signature ? 'accept' : 'reject');
this.signature = opts.signature;
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.signature = obj.signature;
10 years ago
return x;
10 years ago
};
module.exports = TxProposalAction;