settings: create new model

This commit is contained in:
Manuel Araoz 2014-09-03 13:11:32 -03:00
commit d2861d9c2a
4 changed files with 32 additions and 22 deletions

View file

@ -0,0 +1,12 @@
'use strict';
var preconditions = require('preconditions').singleton();
var log = require('../../log');
var copayConfig = require('../../../config');
function Settings(opts) {
var self = this;
}
module.exports = Settings;

View file

@ -25,6 +25,7 @@ var TxProposal = require('./TxProposal');
var TxProposals = require('./TxProposals');
var PrivateKey = require('./PrivateKey');
var WalletLock = require('./WalletLock');
var Settings = require('./Settings');
var copayConfig = require('../../../config');
/**
@ -73,6 +74,7 @@ function Wallet(opts) {
this.id = opts.id || Wallet.getRandomId();
this.secretNumber = opts.secretNumber || Wallet.getRandomNumber();
this.lock = new WalletLock(this.storage, this.id, opts.lockTimeOutMin);
this.settings = new Settings(opts.settings);
this.name = opts.name;
this.verbose = opts.verbose;