Ivan Socolsky
58cb560b79
select appropriate Bitcore when building/signing tx proposal
7 years ago
Ivan Socolsky
06b63e0311
all methods working with coin
7 years ago
Ivan Socolsky
827bb03d0c
restore legacy txproposal model
9 years ago
Ivan Socolsky
bc9354bf1f
remove tx legacy code
9 years ago
Ivan Socolsky
328f6250be
improve utxo mocking
9 years ago
Ivan Socolsky
682bf7fdd2
make feePerKb required
9 years ago
Ivan Socolsky
3bef4f30b6
initialize amount field on multiple_output tx proposals
9 years ago
Ivan Socolsky
563ee14dc1
txproposal.js -> txproposal_legacy.js
9 years ago
Ivan Socolsky
1b6980fd1e
call toObject before storing models
10 years ago
Ivan Socolsky
5794883eb0
allow either script or toAddress
9 years ago
Ivan Socolsky
6476de0461
remove unused elements in output order array
9 years ago
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
10 years ago
Ivan Socolsky
fa58b5b778
restore derivation strategy on txps
9 years ago
Ivan Socolsky
414b4403c4
remove unused method
9 years ago
Ivan Socolsky
714b95b32c
remove derivationStrategy field from txp
9 years ago
Ivan Socolsky
e55983b151
mv Utils.buildTx -> TxProposal
9 years ago
Ivan Socolsky
795097bf04
refactor constants+defaults+utils -> common
9 years ago
Ivan Socolsky
eb006c3db3
remove bitcore-wallet-utils dependency
9 years ago
Matias Alejo Garcia
95e41050bd
add log
9 years ago
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
9 years ago
Ivan Socolsky
595a54322b
correctly build tx proposal on P2PKH
9 years ago
Kosta Korenkov
20af02e24f
Allow arbitrary customData for tx proposals
This way Copay addons may attach related data to proposals
10 years ago
Matias Alejo Garcia
9de8cfcbf2
add raw HEX if tx is "accepted"
9 years ago
Ivan Socolsky
094e19bc31
use constants form BWU
9 years ago
Ivan Socolsky
3ac0bc5e27
switch tests to bip44
9 years ago
Ivan Socolsky
7d9e43fccc
initialize version field from #create method
10 years ago
Matias Alejo Garcia
dac564f290
adds addAccess call and tests
10 years ago
Ivan Socolsky
3533b60e6b
change fee rounding strategy
10 years ago
Ivan Socolsky
2558dcbbbd
support legacy clients + tests
10 years ago
Ivan Socolsky
26aef25be6
compute total bytes to send max
10 years ago
Ivan Socolsky
5b3671b079
fix tests
10 years ago
Ivan Socolsky
344fc525e0
add fee estimation method to txp
10 years ago
Ivan Socolsky
1603c200b6
add excludeUnconfirmedUtxos arg to txp creation
10 years ago
Gregg Zigler
bc565f671a
get network from first output when multiple outputs in proposal
10 years ago
Ivan Socolsky
7139847709
remove TxProposal#getHeader
10 years ago
Ivan Socolsky
48e0709607
simplify validations on createTx
10 years ago
Ivan Socolsky
dee4a83ded
refactor proposal hash
10 years ago
Gregg Zigler
0a4bf8f77f
proposal header hash and proposal amount should work with multi-output
10 years ago
Gregg Zigler
ab33debdd1
move types to single object, remove default type assignment from proposal
10 years ago
Ivan Socolsky
931923f585
compute kbs needed to send max in getBalance
10 years ago
Gregg Zigler
10644f7edc
handle unknown proposal types
10 years ago
Gregg Zigler
453a7187b5
separate common properties from those that vary by proposal type
10 years ago
Gregg Zigler
6f43888176
txproposal with type=multiple-outputs needs an array of outputs
10 years ago
Ivan Socolsky
366638b2d4
implement variable fee per kb
10 years ago
Matias Alejo Garcia
5d943a4b27
allow to remove creator, in tx without other signatures
10 years ago
Ivan Socolsky
4b53947ae6
add network to txproposal model
10 years ago
Ivan Socolsky
4e840328bd
add walletId to txProposal model
10 years ago
Matias Alejo Garcia
8b4a946497
add payproUrl to model
10 years ago
Ivan Socolsky
10231c3aa7
set fee if txp successfully created
10 years ago
Ivan Socolsky
4a53da8690
shuffle outputs
10 years ago