Commit Graph

213 Commits

Author SHA1 Message Date
Ivan Socolsky 2bec543c6f mv Utils.deriveAddress -> Address.derive 2015-11-03 12:21:31 -03:00
Ivan Socolsky 795097bf04 refactor constants+defaults+utils -> common 2015-10-30 17:16:20 -03:00
Ivan Socolsky eb006c3db3 remove bitcore-wallet-utils dependency 2015-10-30 15:24:47 -03:00
Ivan Socolsky 0b43b3b85c cache address activity 2015-10-28 13:23:13 -03:00
Ivan Socolsky b23f412bf3 getLatestNotifications + tests 2015-10-15 16:01:23 -03:00
Matias Alejo Garcia 95e41050bd add log 2015-09-14 14:59:49 -03:00
Matias Alejo Garcia 0a09dac821 Merge pull request #357 from isocolsky/ref/bip44
Ref/bip44
2015-09-10 15:46:41 -03:00
Matias Alejo Garcia a8607fa11b better insight error handling
add check to getPending

add check to getPending

add tests

rm log

store TXID upon tx completion

monitor accepted txs

change delay

change _checkTxInBlockchain

change _checkTxInBlockchain

rm useless params, refactor txid param

complete tx at fetch
2015-09-09 15:14:11 -03:00
Ivan Socolsky 69ae9a63e7 add script type to address 2015-09-07 17:46:45 -03:00
Ivan Socolsky 595a54322b correctly build tx proposal on P2PKH 2015-09-05 18:49:43 -03:00
Ivan Socolsky 45b7b65e99 allow p2pkh addresses in 1-of-1 2015-09-05 01:18:09 -03:00
Kosta Korenkov 20af02e24f Allow arbitrary customData for tx proposals
This way Copay addons may attach related data to proposals
2015-09-03 12:52:12 +03:00
Ivan Socolsky 3f1bae6f25 Merge pull request #340 from matiu/feat/rawTx
add transaction raw HEX if tx status is "accepted"
2015-09-02 13:36:03 -03:00
Matias Alejo Garcia 9de8cfcbf2 add raw HEX if tx is "accepted" 2015-09-02 12:38:28 -03:00
Ivan Socolsky c974cf791a default address manager to BIP45 2015-09-01 12:16:26 -03:00
Ivan Socolsky e11da7cec5 remove AddressManager from copayers on BIP44 2015-08-31 17:38:39 -03:00
Ivan Socolsky d1e318a5b7 v0.2.0 2015-08-31 17:25:36 -03:00
Ivan Socolsky 094e19bc31 use constants form BWU 2015-08-31 17:13:46 -03:00
Ivan Socolsky 3ac0bc5e27 switch tests to bip44 2015-08-28 14:54:36 -03:00
Ivan Socolsky 004890bd6b use BIP45 by default 2015-08-27 17:15:25 -03:00
Ivan Socolsky a4f1169aa9 allow addressManager to handle BIP44 derivations 2015-08-27 17:09:14 -03:00
Ivan Socolsky 7d9e43fccc initialize version field from #create method 2015-08-27 10:47:32 -03:00
Ivan Socolsky 6cba8abc5c add custom data to copayers 2015-08-25 16:12:47 -03:00
Matias Alejo Garcia c4e42da677 rm comment 2015-08-20 16:02:25 -03:00
Matias Alejo Garcia 637a1e2d8b refactor create/fromObj 2015-08-20 14:16:43 -03:00
Matias Alejo Garcia 72ba0b3a58 fix init 2015-08-20 14:16:43 -03:00
Matias Alejo Garcia e5860141a3 ref mnemonic 2015-08-20 14:16:05 -03:00
Matias Alejo Garcia 0433dc05cb add backwards compat with bwc 2015-08-20 14:15:33 -03:00
Matias Alejo Garcia dac564f290 adds addAccess call and tests 2015-08-20 14:15:33 -03:00
Matias Alejo Garcia edc3bc6713 supports multiple pubkeys per copayer 2015-08-20 14:15:33 -03:00
Matias Alejo Garcia cfbf184502 removes isTemporaryRequestKey and replaceTemporaryRequestKey feature. No longer supports joining legacy (<0.9) copayers 2015-08-20 14:15:33 -03:00
Ivan Socolsky 3533b60e6b change fee rounding strategy 2015-08-11 16:52:10 -03:00
Ivan Socolsky 2558dcbbbd support legacy clients + tests 2015-07-29 17:45:25 -03:00
Ivan Socolsky 26aef25be6 compute total bytes to send max 2015-07-27 12:19:27 -03:00
Ivan Socolsky 5b3671b079 fix tests 2015-07-27 11:37:10 -03:00
Ivan Socolsky 344fc525e0 add fee estimation method to txp 2015-07-27 08:59:00 -03:00
Ivan Socolsky 1603c200b6 add excludeUnconfirmedUtxos arg to txp creation 2015-07-20 21:35:34 -03:00
Gregg Zigler bc565f671a get network from first output when multiple outputs in proposal 2015-07-09 12:02:04 -07:00
Ivan Socolsky 15b0f45635 optional html body 2015-06-26 17:39:47 -03:00
Ivan Socolsky 6609814840 test email preferences 2015-06-26 16:10:29 -03:00
Ivan Socolsky 1460bf2128 add language & unit to preferences
Signed-off-by: Ivan Socolsky <jungans@gmail.com>
2015-06-26 16:10:29 -03:00
Ivan Socolsky 7139847709 remove TxProposal#getHeader 2015-06-25 12:53:53 -03:00
Ivan Socolsky 48e0709607 simplify validations on createTx 2015-06-25 11:43:47 -03:00
Ivan Socolsky dee4a83ded refactor proposal hash 2015-06-25 11:03:11 -03:00
Gregg Zigler 40dc1c095b Merge remote-tracking branch 'upstream/master' into feat/multOutputs
Conflicts:
	test/integration/server.js
2015-06-19 12:24:04 -07:00
Gregg Zigler 0a4bf8f77f proposal header hash and proposal amount should work with multi-output 2015-06-19 09:30:46 -07:00
Gregg Zigler ab33debdd1 move types to single object, remove default type assignment from proposal 2015-06-18 10:32:56 -07:00
Ivan Socolsky 931923f585 compute kbs needed to send max in getBalance 2015-06-18 13:20:19 -03:00
Gregg Zigler 10644f7edc handle unknown proposal types 2015-06-18 07:57:07 -07:00
Gregg Zigler 453a7187b5 separate common properties from those that vary by proposal type 2015-06-17 13:33:43 -07:00
Gregg Zigler 6f43888176 txproposal with type=multiple-outputs needs an array of outputs 2015-06-17 12:07:31 -07:00
Ivan Socolsky 366638b2d4 implement variable fee per kb 2015-06-16 17:59:56 -03:00
Matias Alejo Garcia 5d943a4b27 allow to remove creator, in tx without other signatures 2015-06-11 18:00:52 -03:00
Ivan Socolsky 23cca5a948 lock emailservice instances 2015-06-09 18:22:06 -03:00
Ivan Socolsky 897b39f8cd mark emails as sent/fail 2015-05-11 16:51:01 -03:00
Ivan Socolsky 3d901852ab more robust send loop 2015-05-11 16:51:01 -03:00
Ivan Socolsky b78395b851 add nodemailer + templates 2015-05-11 16:51:00 -03:00
Ivan Socolsky 39b254b163 fix tests 2015-05-11 16:51:00 -03:00
Ivan Socolsky de037a3227 add email model 2015-05-11 16:51:00 -03:00
Ivan Socolsky d616959320 add preferences 2015-05-11 16:49:56 -03:00
Ivan Socolsky 4b53947ae6 add network to txproposal model 2015-04-23 12:33:01 -03:00
Ivan Socolsky d8524fed2a add network to address model 2015-04-23 12:25:36 -03:00
Ivan Socolsky 88c7323a0e add walletId to address 2015-04-20 17:48:06 -03:00
Ivan Socolsky 1b2b0dc146 implement mongodb storage 2015-04-20 17:04:26 -03:00
Ivan Socolsky b8501ddb1f unit tests for storage 2015-04-20 12:03:50 -03:00
Ivan Socolsky be0565fca0 test rewind 2015-04-17 18:31:47 -03:00
Ivan Socolsky 1a615e5bb5 discard blocks without activity 2015-04-17 18:25:41 -03:00
Ivan Socolsky 8195e067c3 save wallet inside lock 2015-04-15 10:57:18 -03:00
Ivan Socolsky a643d62fb0 test scan status 2015-04-14 15:19:12 -03:00
Ivan Socolsky fe29fa107a start scan 2015-04-02 13:27:13 -03:00
Matias Alejo Garcia c582842a99 update pkr signature 2015-04-02 13:08:27 -03:00
Matias Alejo Garcia 089ca1fec6 refactor update pkr 2015-04-02 13:08:27 -03:00
Matias Alejo Garcia ce53209a79 update fromObj 2015-04-02 13:08:27 -03:00
Matias Alejo Garcia 747762d114 add API entry point to update reqpubkey 2015-04-02 13:08:27 -03:00
Matias Alejo Garcia 039396dfaa id param to wallet create 2015-04-02 13:08:26 -03:00
Ivan Socolsky 5349529444 add address derivation to copayer model 2015-03-31 17:01:26 -03:00
Ivan Socolsky 26d4d5c434 fix typo 2015-03-30 17:22:45 -03:00
Ivan Socolsky ff29691cd2 add socket connection to block explorer 2015-03-30 16:57:55 -03:00
Ivan Socolsky 4e840328bd add walletId to txProposal model 2015-03-30 11:29:19 -03:00
Ivan Socolsky ef45a97e5b add walletId to notification model 2015-03-30 11:24:33 -03:00
Matias Alejo Garcia 8b4a946497 add payproUrl to model 2015-03-26 17:55:56 -03:00
Ivan Socolsky 43de1e458c add creator to notifications 2015-03-26 13:52:02 -03:00
Ivan Socolsky 10231c3aa7 set fee if txp successfully created 2015-03-14 09:32:19 -03:00
Ivan Socolsky 4a53da8690 shuffle outputs 2015-03-13 11:56:35 -03:00
Ivan Socolsky e06a788e05 build tx using BWU 2015-03-13 11:56:35 -03:00
Ivan Socolsky 97d4809f68 use Bitcore instance from BWU 2015-03-13 11:56:35 -03:00
Ivan Socolsky 5d537afc60 improve error detection when building tx 2015-03-11 17:04:20 -03:00
Ivan Socolsky 7e43e70e6c refactor PKR to hold other pub keys 2015-03-10 13:48:46 -03:00
Ivan Socolsky 43f294876b use external requestPubKey & fix tests 2015-03-09 18:11:25 -03:00
Ivan Socolsky cfd9061cc4 remove unused packages 2015-03-04 13:37:00 -03:00
Ivan Socolsky 09c20a624f replace with github repo 2015-03-04 12:44:28 -03:00
Ivan Socolsky cabdb35cb1 add params needed to check proposal on airgapped client 2015-03-01 00:31:42 -03:00
Ivan Socolsky c3a64761b6 refactor client 2015-02-28 21:12:03 -03:00
Ivan Socolsky 5f687ea5df broadcast tests 2015-02-26 10:27:08 -03:00
Matias Alejo Garcia 992ef12be3 speed up in signing 2015-02-23 15:58:07 -03:00
Ivan Socolsky 8eefe15762 remove redundant code 2015-02-22 17:54:47 -03:00
Ivan Socolsky 1258ac24fb use isChange from address 2015-02-22 17:44:37 -03:00
Ivan Socolsky 24e6ceeab5 add isChange to address model 2015-02-22 17:41:00 -03:00
Ivan Socolsky 0672c9084f rm hdpath 2015-02-22 17:35:27 -03:00
Ivan Socolsky 6bf2a10fd2 base58 walletId in secret 2015-02-22 01:35:25 -03:00