Commit Graph

127 Commits

Author SHA1 Message Date
GreyMcCarthy
b7c7cb8fc2
Moving duplicate dataStructures in cli and app-server into app-commons (#4541)
* duplicate data structures in (ConsoleCli.scala) and (ServerJsonModels.scala) moved to (Command.scala)

* removed unused imports

* rebase for merge conflitcts

* change output type for Accept DLC

* more error fixes

* error fixes

* fixed destintaion error

* scala reformatting

* send from outpoints test runs and passes

* removed unnecessary braces, removed incorrect extensions on objects

* scala reformatting

* removed commented out code
2022-08-02 11:55:43 -05:00
rorp
fdf281b469
DLC <-> contact mapping (#4346)
* DLC <-> contact mapping

* updated docs

* populate dlc/contact mapping automatically

* typo

* respond to the PR comments

* rename `contact` to `peer`

* fix unit tests

* create a contact when an incoming offers gets created

* drop dlc_contact_mapping table

* fix build

* update the docs

* Revert "update the docs"

This reverts commit 2386adadcd.

* revert dlc-contact-* endpoints
t Please enter the commit message for your changes. Lines starting
2022-06-14 08:14:28 -05:00
Nadav Kohen
525fb2ac0d
Default createDLCOffer to current block height (#4285)
* Added createDLCOffer endpoint which doesn't take a locktime and uses current block height instead

* Made cetLocktime an option instead of an argument to the CLI, updated docs

* fix compile

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2022-04-25 14:30:32 -05:00
rorp
f5940c93d4
Contact list (#4234)
* Contact list

* fix unit tests

* Add contact rpc tests

* Add documentation

* Refactor ConsoleCli into app-commons

* Add commands to bitcoin-s-cli

* Fix timeout for rescan

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2022-04-21 13:02:35 -05:00
Chris Stewart
f2fa56221d
2022 03 31 collateral invariant (#4232)
* DLCMessage.totalCollateral -> DLCMessage.collateral

* Fix bad names of {DLCOfferTLV,DLCAcceptTLV}.totalCollateralSatoshis, its not the total collateral, rather the collateral being contributed by the offerer and acceptor

* Fix rebase

* Fix appServerTest

* Fix docs
2022-03-31 09:48:08 -05:00
Chris Stewart
ec384a8b39
2022 03 05 rescan gui (#4170)
* Add rescan option to the GUI

* Create 'Advanced' Menu
2022-03-07 07:48:40 -06:00
Chris Stewart
8f02ebce10
2022 02 26 dynamic fee gui (#4135)
* WIP: Implement dynamic fee rates on desktop gui

* Fix bugs where we were calling fee rate api before backend was started
2022-02-27 07:14:52 -06:00
Chris Stewart
9de4b0272a
2022 01 31 issue 4030 (#4066)
* WIP

* WIP

* Get basic unit test passing for new adaptor sig states

* Fix compile
2022-02-09 13:15:44 -06:00
rorp
546e030dde
[GUI] Fix 'First and last points must be endpoints' exception (#4029) 2022-01-31 14:55:28 -06:00
Chris Stewart
2aa6f168eb
Implement rpc password in GUI (#3986) 2022-01-15 20:41:27 -06:00
Chris Stewart
44a66e72e5
Upgrade to Scala 2.13.8 (#3789)
* Upgrade to Scala 2.13.7

* Upgrade to Scala 2.13.8
2022-01-13 10:17:11 -06:00
Chris Stewart
8857af2b66
Address ben's code review on #3854 (#3962)
* Address ben's code review

* Rename DLCSerializationVersion

* Scalafmt and bug fix'

* Fix docs
2022-01-05 08:49:23 -06:00
Chris Stewart
8c5288d758
Implemented general payout curves (#3854)
* Implemented general payout curves including hyperbola curve piece support

WIP

Get GUI compiling

* WIP

* Get backward compatible serialization working, everything is equivalent except for in memory Scala data structures

* Get numeric contracts backward compatible

* Get rest of codebase compiling

* Add test case for old contract info

* Add sanity test vector for old enum contract descriptors

* Fix docs

* Remove comment

* Scalafmt

* Add DLCSerializationVersion, replace isOldSerialization

* Remove ValueIterator.takeNoSkip()

* Fix docs

Co-authored-by: nkohen <nadavk25@gmail.com>
2022-01-05 07:07:22 -06:00
benthecarman
7f9fb87a55
Call trim on peer address in Accept dialog (#3942) 2021-12-25 19:39:09 -06:00
Chris Stewart
8765c2f845
Disjoint union dlc (#3839)
* Implemented Disjoint Union DLC related data structures with dlcTest passing

Broke DLCClientTest up into multiple test files

Optimized DLC execution unit tests by checking all outcomes on a single setup DLC

Refactored DLCTest to allow for Disjoint Union DLC construction and validation, added tests

Responded to review

Fixed after cherry-pick

Fixed docs

* Fixed things after rebase

* Rebase

* Fix json serializer

* Finish fixing compile

* Start trying to make APIs better for multi oracle contract infos

* Clean things up in the GUI, try to make failures on disjoint union contracts as explicit as possible

* Use less numDigits as optimization for non secp CI test cases

* Fix compile

* Refactor BroadcastDLCDialog

* Fix test case optimization

* Clean up comment

Co-authored-by: nkohen <nadavk25@gmail.com>
2021-11-29 19:26:00 -06:00
user411
856e455be3
Remove 'not set' rate of return % sign on wallet (#3828) 2021-11-16 13:06:36 -06:00
Chris Stewart
aa748c012f
2021 11 03 protocol version (#3793)
* ProtocolVersion WIP

* Start incorporating protocol version into DLC Offer

* Fix doc
2021-11-03 15:13:19 -05:00
Chris Stewart
94e219befd
Update getbalance rpcs to return a number rather than a string (#3746)
* Update getbalance rpcs to return a number rather than a string

* Make sure serialized number returned is a javascript number, not string
2021-10-12 15:43:54 -05:00
benthecarman
ba21c24d6f
Give funding txid in DLC Signed state (#3640)
* Give funding txid in DLC Signed state

* Improve test
2021-09-02 08:17:20 -05:00
benthecarman
656e9b1b5d
Sort DLC table by last updated (#3607)
* Sort DLC table by last updated

* Add LastUpdatedDb

* Make visible

* Fix compile

* Add time, fix sorting

* Switch to local time

* fix compile

* Fix test

* Fix postgres migration

* Specify zoneId
2021-08-31 14:27:36 -05:00
user411
11dd28085a
Add debug window button to unreserve all utxos (#3633) 2021-08-30 12:31:38 -05:00
user411
072c4164db
Add Tor running text to UI (#3546)
* Add Tor running text to UI

* Fix tor/proxy references

* Set network and proxy enabled from final config

* Cleanup

* Change to Tor Proxy indicator when enabled
2021-08-19 18:24:34 -05:00
benthecarman
68afe90778
Flip buttons for Offer and Accept (#3579) 2021-08-19 17:31:54 -05:00
user411
01617be190
Add welcome pane to right view on startup (#3577) 2021-08-19 17:24:02 -05:00
user411
fd02d3642e
Add dialog to show transaction id and link after wallet Send (#3570)
* Add dialog to show transaction id and link after wallet Send

* Add transaction sent to rebroadcast closing tx

* Add Platform.runLater() for Ubuntu support

* Add block explorer timing warning

* Add Funding Transaction dialog, mempool.space urls
2021-08-19 12:24:41 -05:00
user411
5567d2214f
Move DLC/Event loading operations to Pane (#3567)
* Move DLC/Event loading operations to Pane

* Change labeling to Accept Offer / Build Offer

* Cleanup comment
2021-08-19 11:16:22 -06:00
user411
589077f2f3
Enum outcome labels to match numeric outcome labels (#3568)
* Enum outcome labels to match numeric outcome labels

* Add vertical space above outcomes

* Bump vertical spacing
2021-08-18 06:49:24 -05:00
user411
b545915fc0
Implement rebroadcast closing tx (#3564)
* Implement rebroadcast closing tx

* Add minWidth to Rebroadcast buttons
2021-08-17 12:16:46 -05:00
Chris Stewart
7cd21edb12
2021 08 17 rebroadcast funding tx (#3561)
* Add check for valid broadcast states

* Add rebroadcast funding tx button

* remove printlns

* Add status to error message to get compile working

* println -> logger.info

Co-authored-by: Ivan <erickson.ivan@gmail.com>
2021-08-17 08:41:55 -05:00
user411
e08dc636a1
Wallet on top UI, minWidth on DLC View fields (#3540) 2021-08-13 10:22:51 -05:00
user411
63ccfbe1a0
Add Network label to statusbar (#3541) 2021-08-13 08:45:01 -05:00
user411
e0ecafc5f9
Add debug window to view log fixes #3516 (#3536)
* Add debug window to view log

* Test with Desktop.open() vs Desktop.edit()

* Use Runtime.exec() to open unix file

* Ubuntu log file open works

* Cleanup

* Brace cleanup

* Add logging for unsupported platforms
2021-08-13 07:20:03 -05:00
user411
77539c570a
Adjust DLCTableView column widths and "counter party" to "counterparty" (#3539) 2021-08-13 07:14:11 -05:00
user411
b2065a9c02
SplitPane flat Dialog UI (#3505)
* SplitPane flat Dialog UI

* Fix Scala 2.12 nits

* Cleanup bool names and unused code
2021-08-11 07:29:59 -05:00
user411
b98aa7c8e1
GUI code cleanup (#3504)
* GUI cleanup

* Remove import {}
2021-08-09 17:55:38 -05:00
user411
5524f7d393
Add style classes, center Rounding Info (#3496) 2021-08-07 11:39:54 -05:00
user411
84e6097d48
Set disable to context menu items based on selection, add Refund/Execute (#3477)
* Set disable to context menu items based on selection, add Refund/Execute

* Fix DLCStatus.state matching for disabling

* Add all explicit states to match
2021-08-06 16:17:32 -05:00
benthecarman
66813dc7c5
Fix error parsing address in AcceptOfferDialog (#3491) 2021-08-05 17:44:05 -05:00
user411
e315fb0563
Move to GridPane wallet, dynamic sizing (#3492) 2021-08-05 17:42:04 -05:00
user411
831e0fd96d
Evenly space footer status items (#3485) 2021-08-05 06:51:11 -05:00
user411
3177b1586b
Adds Tor Address to UI, if set (#3481)
* Adds Tor Address to UI, if set

* Put .error-label back in

* Use GUIUtil.getCopyToClipboardButton
2021-08-04 15:55:07 -05:00
user411
2dd348a79f
Fix dialog results optionality nesting to match dialogOpt (#3479) 2021-08-04 14:25:53 -05:00
user411
bc3140c6bb
Default Use Tor to config value, space login pages the same (#3472)
* Default Use Tor to config value, space login pages the same, GUIUtil updates

* Use socks5ProxyParams.isDefined for Use Tor and add types to GUIUtil
2021-08-04 13:34:18 -05:00
user411
00841160e0
Modifer keys per OS, Mac native menubar (#3474)
* Modifer keys per OS, Mac native menubar

* Remove menuUtil in favor of ShortcutDown
2021-08-04 13:31:26 -05:00
benthecarman
7cac44de4d
DLC P2P in AppServer and GUI (#3462) 2021-08-04 07:06:19 -05:00
user411
c022261c4f
Remove colons from DLC view labels (#3471) 2021-08-03 16:57:10 -05:00
user411
9aadf9053d
Dialogs to CliCommandProducers with buildView(), common fileChooser (#3456)
* Dialogs to CliCommandProducers with buildView(), common fileChooser

* Fix Insets import error

* Code cleanup

* Parameterize CliCommandProducer to allow us to be more specific about the CliCommand

* Refactor CliCommandProducer to return just T rather than Some[T]

* Use Option rather than null

* Add error-label style

* Move Dialog tracking to Option[Dialog]

* Move GUIUtil params to Options

* Fix buildView param ordering and Try() notation

* Use match notation on file handling Options

* Fix Option variable naming/handling

* Add privates and style cleanup

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2021-07-30 12:30:11 -05:00
benthecarman
f20cdf667c
Pretty print PnL in table view (#3400) 2021-07-16 10:15:35 -05:00
benthecarman
c1715760c6
Add connection indicator to GUI (#3381) 2021-07-11 06:36:16 -05:00
user411
253f7444c6
Show error on SignedDigit contract (#3376) 2021-07-07 15:51:29 -05:00