Review copay features for 1-of-1

This commit is contained in:
Yemel Jardi 2014-06-24 15:46:07 -03:00
commit 7d8d89ab38
5 changed files with 89 additions and 13 deletions

View file

@ -2,6 +2,8 @@ var FakeWallet = function() {
this.id = 'testID';
this.balance = 10000;
this.safeBalance = 1000;
this.totalCopayers = 2;
this.requiredCopayers = 2;
this.balanceByAddr = {
'1CjPR7Z5ZSyWk6WtXvSFgkptmpoi4UM9BC': 1000
};
@ -15,6 +17,15 @@ var FakeWallet = function() {
};
};
FakeWallet.prototype.createTx = function(toAddress, amountSatStr, comment, opts, cb) {
var callback = cb || opts;
callback({});
}
FakeWallet.prototype.sendTx = function(ntxid, cb) {
cb(8);
}
FakeWallet.prototype.set = function(balance, safeBalance, balanceByAddr) {
this.balance = balance;
this.safeBalance = safeBalance;