Commit graph

13659 commits

Author SHA1 Message Date
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
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
Christoph Atteneder
1daa58624d
Merge pull request #5061 from chimp1984/persist-failed-mailbox-msg-decryption-attempts
Persist failed attempts of decrypting mailbox messages
2021-01-08 10:35:41 +01:00
Christoph Atteneder
be40c7849c
Merge pull request #5008 from jmacxx/remove_awt_dependencies
Remove awt dependencies
2021-01-08 09:25:41 +01:00
James Cox
e50a182883
Merge branch 'master' into remove_awt_dependencies 2021-01-07 17:54:40 -06:00
sqrrm
76e2330b15
Merge pull request #5056 from ghubstan/add-getmyoffers-api-method
Add new api methods 'getmyoffers' and 'getmyoffer'
2021-01-07 22:51:33 +01:00
ghubstan
9689c3edfc
Sort offers in stream 2021-01-07 16:07:41 -03:00
Christoph Atteneder
9b2c0e87c5
Merge pull request #4893 from 81dr/master
Update installation script
2021-01-07 17:12:56 +01:00
Christoph Atteneder
fdf7912bab
Merge pull request #5016 from chimp1984/increase-trade-period-for-transferwise
Change trade period for transferwise from 1 day to 4 days
2021-01-07 16:53:59 +01:00
Christoph Atteneder
6200455770
Merge pull request #5053 from chimp1984/add-protection-tools
Add protection tools
2021-01-07 16:20:26 +01:00
Christoph Atteneder
ad9949c06d
Merge pull request #5059 from ghubstan/fix-createofferservice-log-statement
Fix log statement format
2021-01-07 16:17:21 +01:00
chimp1984
21eaea0703
Add IgnoredMailboxMap to persist failed decryption
attempts and optimize performance by that
2021-01-06 21:20:50 -05:00
ghubstan
424c3cb1ab
Avoid unnecessary comparisons in boolean expressions 2021-01-06 18:13:01 -03:00
ghubstan
80c10dba78
Fix log statement format
A log statement was mismatching argument placeholders with argument
values because it was formatted as
	log.info("msg={}, \n" + args...)
instead of
	log.info("msg={}", args...)

Some code formatting was also done to this block, and a closer approximation
of a CLI 'createoffer` param list replaces the following log statement.
2021-01-06 17:58:52 -03:00
chimp1984
db6722b335
Revert most changes with applying offerFilter. Leave it to @ghubstan to implement it. 2021-01-05 10:19:21 -05:00
ghubstan
03a814f491
Adjust trade apitest cases, anticipating offerFilter.canTakeOffer
Refering to PR https://github.com/bisq-network/bisq/pull/5053.

Test cases need to explicitly use a matching fiat payment account
type when calling 'getoffers'.
2021-01-05 12:00:03 -03:00
ghubstan
18de222d38
Add new api methods 'getmyoffers' and 'getmyoffer'
Similar to 'getoffers' and 'getoffer', but filters out offers not
created by the user.  The new methods are so similar some offer list
filtering and sorting was refactored in CoreOffersService.

Also fixed some createoffer apitest cases in anticipation of a new OfferFilter,
which will filter out offers not matching any user payment account.
2021-01-04 21:43:34 -03:00
chimp1984
fe7fdbde9a
Add num-offers stype to numItems labels 2021-01-04 16:24:27 -05:00
chimp1984
29b4a60dac
Add export to CSV button 2021-01-04 16:23:49 -05:00
chimp1984
58a1f9c402
Remove getOffersAvailableForTaker method
Add offerFilter.canTakeOffer to getOffer and getOffers
2021-01-04 15:34:42 -05:00
chimp1984
c2174607f5
Add isTakerApiUser field to OfferAvailabilityRequest
Add UNCONF_TX_LIMIT_HIT and MAKER_DENIED_API_USER to AvailabilityResult enum
Apply handling for api filter features
2021-01-04 12:35:29 -05:00
chimp1984
95063b6c7f
Add denyApiTaker field to Preferences 2021-01-04 12:00:29 -05:00
chimp1984
b5af6bcfc7
Add missing Filter params in tests 2021-01-04 12:00:00 -05:00
chimp1984
cfabf79ca4
Merge branch 'add-toggle-for-hiding-not-takable-offers' into add-new-filter-entries 2021-01-04 11:48:02 -05:00
chimp1984
4bbc394b2d
Add disableApi flag to filter 2021-01-04 11:44:50 -05:00
chimp1984
f588b22620
Add null checks 2021-01-04 11:32:56 -05:00
chimp1984
9e275048f6
Add toggle for filtering offers which can be taken with users accounts 2021-01-04 11:32:56 -05:00
chimp1984
c3c1f95cba
Extract methods for show all and edit entries.
Use isShowAllEntry methods instead of equals checks
2021-01-04 11:32:56 -05:00
sqrrm
6fc9ad4c9b
Merge pull request #5021 from ghubstan/fix-annotations
Adjust lombok annotations to reduce build warnings
2021-01-04 14:57:50 +01:00
sqrrm
ffb2aa8feb
Merge pull request #5052 from jmacxx/show_offer_stats_by_payment_method
Add a 'payment method details' screen
2021-01-04 13:08:22 +01:00
sqrrm
7bc9c102d0
Merge pull request #5045 from chimp1984/add-option-to-hide-non-supported-payment-methods
Add option to hide non supported payment methods
2021-01-04 12:06:41 +01:00
sqrrm
4127f75b36
Merge pull request #5042 from chimp1984/select-show-all-currencies-for-transferwise
Select show-all currencies if TransferWise is selected
2021-01-04 10:53:34 +01:00
sqrrm
4da1bb0c10
Merge pull request #5041 from chimp1984/request-only-not-seeds-if-no-seed-available
Request only non-seed nodes if no seed nodes are available
2021-01-04 10:50:10 +01:00
sqrrm
bf7a528bac
Merge pull request #5040 from chimp1984/update-inventory-code
Update inventory code
2021-01-04 10:45:18 +01:00
sqrrm
5ae2a0f5a9
Merge pull request #5039 from chimp1984/add-option-for-seeds-doShutdownSeedOnInterval
Add option to prevent periodic shutdown for seed nodes
2021-01-04 10:38:34 +01:00
sqrrm
14d5600107
Merge pull request #5038 from chimp1984/add-filter-support-on-network-level
Add filter support on network level
2021-01-04 10:36:54 +01:00
jmacxx
99f8f7cdfc
Rename tab titles per code review suggestion
Offers by Currency & Offers by Payment Method
2021-01-03 22:39:57 -06:00
jmacxx
3488c9eb07
Add a 'payment method details' screen in Bisq client 2021-01-03 19:59:45 -06:00
chimp1984
05b993e7b9
Rename bannedNodeAddress to nodeAddressesBannedFromTrading 2021-01-03 18:53:15 -05:00
chimp1984
77c405530d
Add comment, remove pointless code. 2021-01-03 18:48:07 -05:00
sqrrm
2be48226d9
Merge pull request #5037 from ripcurlx/fix-german-translation
Update translations and fix a broken German translation
2021-01-03 22:46:23 +01:00
sqrrm
0004dedb3b
Merge pull request #5036 from bisq-network/hotfix/v1.5.4
Merge v1.5.4 hotfix
2021-01-03 22:44:34 +01:00
sqrrm
df5baaf88e
Merge pull request #5031 from chimp1984/access-concrete-data-stores
Access concrete data stores
2021-01-03 22:43:52 +01:00
ghubstan
0c9c96165b
Re-add @EqualsAndHashCode 2021-01-03 13:39:37 -03:00
ghubstan
c2c1ac2087
Adjust class level annoations
as per suggested changes
    https://github.com/bisq-network/bisq/pull/5021#discussion_r550903787
    https://github.com/bisq-network/bisq/pull/5021#discussion_r550903843
    https://github.com/bisq-network/bisq/pull/5021#discussion_r550903860
2021-01-03 12:01:10 -03:00