benthecarman
e098aba680
Create and implement OrderedAnnouncements type ( #3356 )
...
* Create and implement OrderedAnnouncements type
* Fix docs
* Update scaladoc
2021-07-06 07:58:58 -05:00
benthecarman
78e2fceb90
Use OrderedNonces type in DLC data types ( #3352 )
2021-06-30 06:35:02 -05:00
benthecarman
cada6fdc63
Fix DLC not storing nSequence for funding inputs ( #3342 )
...
* Fix DLC wallet not storing nSequence for funding inputs
* Fix DLCTest
2021-06-29 09:36:30 -05:00
benthecarman
0d2bc7a927
Remove unneeded asInstanceOf calls in DLCWallet ( #3345 )
2021-06-28 22:34:42 -05:00
benthecarman
cfe0c2f0d8
Multi wallet support for DLC database ( #3289 )
...
* Multi wallet support for DLC database
* Fix for postgres
2021-06-22 12:56:26 -05:00
benthecarman
ca2ddbb7ec
Preserve noncedb outcomes when adding oracle ( #3273 )
2021-06-16 07:50:09 -05:00
benthecarman
e63a12e47f
Better error message for invalid DLC refunds ( #3209 )
2021-06-15 10:57:50 -05:00
benthecarman
a526ad14ee
Fix DLC Accounting errors ( #3249 )
2021-06-12 08:12:38 -05:00
benthecarman
c2237ab6fe
Only unreserve our utxos when canceling a DLC ( #3250 )
2021-06-12 08:01:24 -05:00
benthecarman
95f6c0d790
Skip adding DLC sigs if we already have them ( #3236 )
...
* Skip adding DLC sigs if we already have them
* Fix compile
* Fix test
2021-06-09 18:42:17 -05:00
Chris Stewart
9431be2f25
2021 06 07 dlc wallet pnl ( #3229 )
...
* WIP
* Add profit and loss and rate of return for entire wallet
* Fix rebase
* Address part 1 of code review from Ben
* Add unit test for wallet accounting
2021-06-08 15:05:40 -05:00
benthecarman
a56086b751
Use nonceDb's outcome to calc oracle outcome ( #3217 )
2021-06-08 12:32:11 -05:00
Chris Stewart
2269a052b1
Rework findDLC() ( #3214 )
...
* Rework findDLC(), break things out into separate objects to make things more testable and correct
* Address ben's code review
* Add caching of oracle outcomes we know are valid and broadcast
2021-06-01 14:54:00 -05:00
Chris Stewart
bf02e89faa
2021 05 29 dlc pnl ( #3198 )
...
* WIP
* WIP2
* Get tableview rendering something
* Add basic unit tests for accounting
* Add rate of return
* Add myPayout and theirPayout to json objects
* Address code review
* Fix 2.12 compile, adjust table view
* drop isInit column on table view
* Fix scala 2.13
2021-05-31 11:12:24 -05:00
Chris Stewart
43a5c5fc49
Add dlc wallet test to postgres matrix ( #3199 )
...
* Add dlc wallet test to postgres matrix
* Fix migration and DAO
Co-authored-by: Ben Carman <benthecarman@live.com>
2021-05-31 06:51:39 -05:00
benthecarman
0e701bc9d0
Fix verify funding sigs ( #3194 )
...
* Fix verify funding sigs
* Sort funding inputs
* Sort utxos in dlc signer
* Other multi input fixes & tests
* Fix compile error
2021-05-28 19:59:45 -05:00
benthecarman
dd865c7329
Fix serialId columns to use a String instead of Integer ( #3170 )
2021-05-27 10:27:17 -05:00
benthecarman
fb81552f6d
Don't fetch all DLC data when canceling DLC ( #3159 )
...
* Don't fetch all DLC data when canceling DLC
* Allow unmarkUTXOsAsReserved when canceling DLC
* Add ability to cancel a Signed DLC
* add gui conf window
2021-05-27 06:28:09 -05:00
benthecarman
80ace5a911
Use groupByExistingAnnouncements when accepting ( #3157 )
2021-05-26 15:37:50 -06:00
benthecarman
880c8898da
Upsert remote txs in DLC Wallet ( #3150 )
2021-05-26 14:49:34 -05:00
Chris Stewart
701418f89f
Fix issue 3102 to allow a user to create an offer with an announcement embedded inside a contract info that the user's wallet has seen before ( #3140 )
...
Fix bug where we were not taking into account all announcementTLVs
2021-05-25 18:53:13 -05:00
benthecarman
be8e965367
DLC Wallet pulldown ( #3138 )
...
* DLC Wallet pulldown
* Respond to review
2021-05-25 17:31:01 -05:00