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.
32 lines
637 B
32 lines
637 B
'use strict';
|
|
|
|
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;
|
|
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.isActive = obj.isActive;
|
|
return x;
|
|
};
|
|
|
|
|
|
module.exports = TxConfirmationSub;
|
|
|