Commit graph

13737 commits

Author SHA1 Message Date
ghubstan
5538914cf8
Add line break 2021-01-16 12:03:06 -03:00
sqrrm
44cbea886a
Merge pull request #5081 from ghubstan/04-posix-cli-opts+method-help
Use posix-style CLI opts, provide method help
2021-01-16 13:43:18 +01:00
ghubstan
1ad7b351b6
Remove uneeded method 2021-01-15 16:33:52 -03:00
ghubstan
ec9f783eb5
Remove switch(hardcoded enum.name)
There is no need for a switch here, the doc exists or it does not.
2021-01-15 16:25:39 -03:00
ghubstan
f2a899917c
Fix default opt values 2021-01-14 19:05:27 -03:00
ghubstan
baf79e2b50
Make opt description more generic 2021-01-14 19:03:49 -03:00
ghubstan
acf2c7c50e
Remove deprecated NegativeNumberOptions
Not needed anymore, and all method opts are posix style.
(The opts parsing lib used to treat negative numbers as opt labels.)
2021-01-14 10:27:47 -03:00
ghubstan
9f0f083cf7
Change CLI opts to posix-style 2021-01-14 10:26:11 -03:00
ghubstan
f4e735faec
Move CLI method enum to it's own class
This helps reduce size of growing CLI class file.
2021-01-14 10:25:08 -03:00
ghubstan
37ad73d4f4
Add posix-style api method option parsers 2021-01-14 10:23:38 -03:00
ghubstan
49a3b46960
Add CoreHelpService gRPC stubs and test case 2021-01-14 10:22:14 -03:00
ghubstan
a067ba1228
Add new CoreHelpService and method help docs
Adds all the gRPC server boilerplate, and a simple help service
that serves method help in man page format.  Help text is maintained
in text files located in core/src/main/resources/help.

Only some of the method help text files are defined in this
change, more to be added.
2021-01-14 10:19:39 -03:00
sqrrm
f838b1a475
Merge pull request #5076 from ghubstan/03-support-trigger-price
Stub out support for OpenOffer's triggerPrice in api
2021-01-14 10:34:29 +01:00
Christoph Atteneder
01bfbe7ca0
Merge pull request #5071 from jmacxx/fix_issue_5067
Show a confirmation of successfully sending BTC or BSQ from wallet
2021-01-14 09:37:20 +01:00
jmacxx
3984e8b3dd
Code review suggestions from @ripcurlx
Disable validation errors when clearing edit fields
Implement spacer field using Region
2021-01-13 21:31:58 -06:00
sqrrm
685d79749b
Merge pull request #5065 from ghubstan/offer-protection-tools-api-integration
Integrate new protection tools into api's offer & trade services
2021-01-14 00:26:10 +01:00
ghubstan
a8d15d0161
Merge branch 'offer-protection-tools-api-integration' into 03-support-trigger-price 2021-01-13 20:03:03 -03:00
ghubstan
0e779a4bf6
Inject CoreContext into server, then set isApiUser=true
Do not set isApiUser=true based on hardcoded thread name ;-(

For requested change
https://github.com/bisq-network/bisq/pull/5065#pullrequestreview-567708569
2021-01-13 19:55:49 -03:00
ghubstan
9a4e311193
Fix file conflict
The createoffer trigger price was defined as the 0 default value
in the gRPC request object (causing the file conflict with the
main branch).  This line can be removed because a protobuf
long's default value is 0.
2021-01-13 09:31:34 -03:00
sqrrm
fe32c91426
Merge pull request #5063 from ghubstan/fix-cli-negative-opts-parsing
Fix two CLI option parsing bugs
2021-01-13 10:42:08 +01:00
ghubstan
eaf41eb2ca
Merge branch 'master' into 03-support-trigger-price 2021-01-12 11:42:25 -03:00
Christoph Atteneder
1406043f3b
Merge pull request #5078 from chimp1984/add-v2-seeds
Add 4 olds v2 seed nodes
2021-01-12 14:29:55 +01:00
sqrrm
4298c3937e
Merge pull request #5070 from chimp1984/improve-cleanup-tor-dir-at-seeds
Improve cleanup tor dir at seeds
2021-01-12 13:23:37 +01:00
sqrrm
fea52f07a3
Merge pull request #5057 from chimp1984/fix-premature-disconnections-from-seeds
Fix premature disconnections from seeds
2021-01-12 12:52:41 +01:00
chimp1984
b80a654fe1
Add v2 nodes to monitor 2021-01-11 23:34:55 -05:00
chimp1984
9b026868f8
Add 4 olds v2 seed nodes 2021-01-11 23:29:51 -05:00
chimp1984
3f8972bf87
Call init after setting connectionState and connectionStatistics 2021-01-11 22:38:49 -05:00
sqrrm
e565a18bc5
Merge pull request #5066 from chimp1984/add-usd-volume-to-tradestatistics-chart
Add toggle for displaying volume in tradestatistics chart in USD
2021-01-11 23:06:13 +01:00
ghubstan
f1a6783c15
Display fiat ccy code in upper case 2021-01-11 14:56:47 -03:00
ghubstan
0c6005ed2d
Stub out support for OpenOffer's triggerPrice in api
This is a feature that will not be included in api v1, but partial
support is added in this change to the server.  CLI will pass a
default triggerPrice of 0 (unused) with the createoffer command.

When fully implemented, an optional trigger-price param will be
added to the CLI's createoffer method, and the value will only be
visible to offer owners.  New enableoffer and disableoffer
methods will also need to be added.
2021-01-11 14:36:51 -03:00
ghubstan
02931967fb
Merge branch 'master' into 03-support-trigger-price 2021-01-11 12:50:11 -03:00
Christoph Atteneder
917637c4a9
Merge pull request #5054 from chimp1984/add-csv-export-to-bsq-tx-view
Add csv export to bsq tx view
2021-01-11 11:14:27 +01:00
jmacxx
27d41c8499
Show a confirmation of successfully sending BTC or BSQ from wallet
The confirmation details include amount, recipient address and txId.
Includes a link to open txId details in the user's external block explorer.
@m52go reworded the BSQ conf explanation note.
Added "don't show again" checkbox.
2021-01-10 19:51:34 -06:00
chimp1984
8ecfa8bcba
We set a flag to clear tor cache files at re-start.
We cannot clear it now as Tor is used and
that can cause problems.
2021-01-09 20:40:58 -05:00
chimp1984
4e444269af
Remove unnecessary ObservableList 2021-01-08 19:57:39 -05:00
chimp1984
ec7521628b
Only update selectedTradeStatistics if selected currency has
changed or we got added new trade stats
2021-01-08 19:53:40 -05:00
chimp1984
2006f58580
Refactor: Rename tradeStatisticsByCurrency to selectedTradeStatistics 2021-01-08 19:43:24 -05:00
chimp1984
397a97a899
Call fillTradeCurrencies only once at activate 2021-01-08 19:42:51 -05:00
chimp1984
b3c8e20d66
Fix available height calculation
Fix incorrect removeListener call on priceColumn.textProperty()
instead of priceColumnLabel
2021-01-08 19:31:33 -05:00
chimp1984
0d09c19953
Cleanups 2021-01-08 19:30:10 -05:00
chimp1984
5ec6ad503f
Cache fields in TradeStatistics3ListItem 2021-01-08 18:24:56 -05:00
chimp1984
bf7acb5932
Add toggle for showing volume as USD instead of BTC
Precalculate the USD average prices for tick intervals
and use that for converting the BTC volume to USD volume.
2021-01-08 16:41:55 -05:00
chimp1984
764614d762
Add methods for boolean values 2021-01-08 16:41:55 -05:00
chimp1984
73fcf52129
Cache price and localDateTime 2021-01-08 16:41:55 -05:00
chimp1984
8927787286
Cache Volume
Volume was created at each access from amount and price.
To improve performance we cache the result once calculated.
2021-01-08 16:41:55 -05:00
chimp1984
ad1b436832
Use List instead of ObservableList, cleanups 2021-01-08 16:41:55 -05:00
chimp1984
6c62e77d7c
Remove unused variable 2021-01-08 14:24:24 -05:00
ghubstan
9ae1a29f23
Integrate new protection tools into api's offer & trade services
- Injected OfferFilter into CoreOffersService and CoreTradesService.

  The filter constrains 'getoffer(s)' results to offers an api user
  can take, as the first part of ongoing protection tools / api
  integration.

- Created a new CoreContext singleton.

  Initially, lets Core*Services know if the user is using the api --
  isApiUser=true if the current thread's name is "BisqDaemonMain" or
  the name contains "grpc".  We do this anticipating future :desktop
  dependencies on the core api, and we don't pass hardcoded
  isApiUser=true params to lower level domain objects.

  We cannot check BisqDaemonMain.class.getSimpleName() because :core
  cannot have a circular dependency on :daemon, but there is probably a
  better way to do this than depending on the thread name set in
  BisqDaemonMain#configUserThread().

- Added @Singleton annotation to all Core*Service classes.
2021-01-08 13:22:01 -03:00
ghubstan
cc0855497e
Add @Singleton annotation 2021-01-08 12:51:48 -03:00
ghubstan
9180ca61f6
Fix two CLI option parsing bugs
- Fix bug locating index of method name in String[] args.

- Make createoffer method's security-deposit param format consistent with UI's.

  When creating an offer, the CLI should take "15.0", not "0.15" as
  a 15% security deposit.  This is consistent with the UI, and the
  CLI's mkt-price-margin input format.
2021-01-08 11:14:16 -03:00