Ivan Socolsky
827bb03d0c
restore legacy txproposal model
9 years ago
Ivan Socolsky
bc9354bf1f
remove tx legacy code
9 years ago
Ivan Socolsky
49929942e7
accept id as arg for tx creation
9 years ago
Ivan Socolsky
a998186737
add single-address wallet
9 years ago
Ivan Socolsky
fa1c63ac66
decorate tx history with notes
9 years ago
Ivan Socolsky
5abe6fac51
edit/retrieve notes + tests
9 years ago
Ivan Socolsky
67bea09fe8
add tx note as model
9 years ago
Ivan Socolsky
700c898508
allow 1 <= n <= 15 && 1 <= m <= n
9 years ago
Ivan Socolsky
f455b53971
always add changeaddress if specified
9 years ago
Kosta Korenkov
11b32f4ee5
Optionally disable outputs shuffling for createTx
9 years ago
Ivan Socolsky
4d25161098
assert inputs & outputs are consistent
9 years ago
Kosta Korenkov
2e1cc88c56
fix: wrong output value calculation in _buildTx
9 years ago
Kosta Korenkov
0d9dc85030
fix: do not remove scripts from outputs
9 years ago
Ivan Socolsky
bdff2cbc35
sendMax option on createTx
9 years ago
Ivan Socolsky
8d25f23849
get send max info
9 years ago
Ivan Socolsky
8ce304fd4e
reduce safety margin to 2%
9 years ago
Ivan Socolsky
8865d42ec3
improve fee computation for P2PKH wallets
9 years ago
Ivan Socolsky
ee7d3bad7f
allow absolute fee when specifying inputs
9 years ago
Ivan Socolsky
c01d1568bb
adapt fee to avoid change below dust
9 years ago
Ivan Socolsky
328f6250be
improve utxo mocking
9 years ago
Ivan Socolsky
dbba3acfa8
new input selection algorithm
9 years ago
Ivan Socolsky
f878594d40
rm feeLevel
9 years ago
Ivan Socolsky
682bf7fdd2
make feePerKb required
9 years ago
Ivan Socolsky
446f35426f
remove explicit final fee for tx creation
9 years ago
Ivan Socolsky
37f87e4793
accept feeLevel on createTx
9 years ago
Braydon Fuller
7530ee9d0e
Wallet Model: Check that "m" and "n" arguments are numbers
9 years ago
Ivan Socolsky
23cddbe47f
fix broadcasting new proposals
9 years ago
Ivan Socolsky
6f196aa1b9
allow fee to be specified on proposal creation
9 years ago
Ivan Socolsky
3bef4f30b6
initialize amount field on multiple_output tx proposals
9 years ago
Ivan Socolsky
0bb043d034
simplify proposal creation + allow non-validated outputs (external txps)
9 years ago
Ivan Socolsky
5755b965e8
use TxProposal#fromObj as a factory for proposals
9 years ago
Ivan Socolsky
2211847d0c
remove type from txproposal model
9 years ago
Ivan Socolsky
9db456550f
create temporary proposal + test
9 years ago
Ivan Socolsky
6deb9e77f6
txproposalv3 -> txproposal
9 years ago
Ivan Socolsky
563ee14dc1
txproposal.js -> txproposal_legacy.js
9 years ago
Ivan Socolsky
63eca6b529
txProposal v3
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
2bec543c6f
mv Utils.deriveAddress -> Address.derive
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
Ivan Socolsky
0b43b3b85c
cache address activity
9 years ago
Ivan Socolsky
b23f412bf3
getLatestNotifications + tests
9 years ago
Matias Alejo Garcia
95e41050bd
add log
9 years ago