Ivan Socolsky
0bb043d034
simplify proposal creation + allow non-validated outputs (external txps)
2015-12-08 10:30:27 -03:00
Ivan Socolsky
5755b965e8
use TxProposal#fromObj as a factory for proposals
2015-12-08 10:30:26 -03:00
Ivan Socolsky
2211847d0c
remove type from txproposal model
2015-12-08 10:30:26 -03:00
Ivan Socolsky
9db456550f
create temporary proposal + test
2015-12-08 10:30:26 -03:00
Ivan Socolsky
6deb9e77f6
txproposalv3 -> txproposal
2015-12-08 10:30:26 -03:00
Ivan Socolsky
563ee14dc1
txproposal.js -> txproposal_legacy.js
2015-12-08 10:30:26 -03:00
Ivan Socolsky
63eca6b529
txProposal v3
2015-12-08 10:28:21 -03:00
Ivan Socolsky
1b6980fd1e
call toObject before storing models
2015-11-23 17:28:02 -03:00
Ivan Socolsky
80d1d31130
Merge pull request #330 from troggy/txp/manual-outputs
...
Add EXTERNAL proposal type
2015-11-20 15:10:40 -03:00
Matias Alejo Garcia
f8248a0eba
Merge pull request #403 from isocolsky/fix/multi-output-no-change
...
Fix/multi output no change
2015-11-18 16:03:51 -03:00
Ivan Socolsky
5794883eb0
allow either script or toAddress
2015-11-16 18:39:51 -03:00
Ivan Socolsky
6476de0461
remove unused elements in output order array
2015-11-16 17:59:48 -03:00
Kosta Korenkov
2bdc6cf19d
Make API.createTx accept preselected inputs
...
Add EXTERNAL tx type
It will allow clients to specify inputs and outputs when creating proposals
Extract _validateOutputs method
Use for-loop to simplify and make it fail-fast.
Do not validate outputs for EXTERNAL tx type
Outputs may be of any kind (e.g. OP_RETURN). It is assumed that outputs are validated by caller.
Move output validation to a single place
Check tx and estimate fees for EXTERNAL proposal
Set amount for external proposals
Use changeAddress to determine network
Do not shuffle outputs for EXTERNAL txp
Fix input selection to respect fees
Add more inputs, if we selected exactly the amount to spend, so we avoid 'Insufficient funds for a fee' error
Properly handle UTXO with 0 satoshis
Minor fixes
ignore invalid utxos
2015-11-11 21:23:44 +03:00
Ivan Socolsky
fa58b5b778
restore derivation strategy on txps
2015-11-11 11:59:34 -03:00
Ivan Socolsky
414b4403c4
remove unused method
2015-11-06 12:05:33 -03:00
Ivan Socolsky
714b95b32c
remove derivationStrategy field from txp
2015-11-06 12:02:41 -03:00
Ivan Socolsky
e55983b151
mv Utils.buildTx -> TxProposal
2015-11-03 13:01:12 -03:00
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