Commit graph

11240 commits

Author SHA1 Message Date
sqrrm
106c656993
Use same security deposit for buyer and seller 2020-06-30 18:01:50 +02:00
sqrrm
190867e383
Suggest security deposit depending on previous volatility 2020-06-30 14:45:51 +02:00
sqrrm
5b94a895aa
Move locktime definition to Restrictions 2020-06-29 20:01:47 +02:00
sqrrm
3121f6f2fe
Add deposit column to OfferBookView 2020-06-29 19:09:50 +02:00
sqrrm
a54eeeabcc
Merge pull request #4329 from ghubstan/6-getoffers
Add rpc method 'getoffers'
2020-06-25 20:41:34 +02:00
sqrrm
79f0dacc24
Merge pull request #4324 from ghubstan/5A-print-addressinfo-as-table
Return protos from funding address methods
2020-06-25 19:44:24 +02:00
sqrrm
ca98654725
Merge pull request #4304 from ghubstan/2-getaddressbalance
Add rpc method 'getaddressbalance'
2020-06-25 19:41:21 +02:00
Christoph Atteneder
d810387b41
Merge pull request #4305 from sqrrm/sign-same-name
Sign same name
2020-06-25 14:07:24 +02:00
Christoph Atteneder
ab92350369
Merge pull request #4319 from devinbileck/update-install-scripts
Update seednode/pricenode install scripts
2020-06-25 13:56:31 +02:00
Christoph Atteneder
38f6af26ee
Merge pull request #4294 from sqrrm/add-multiple-fee-receivers
Add multiple fee receivers
2020-06-25 13:23:53 +02:00
sqrrm
745178e7db
Merge pull request #4335 from ripcurlx/fix-filter-propagation
Add equals check to prevent resetting of newly set Filter
2020-06-25 12:56:00 +02:00
sqrrm
cfd126f9e2
Merge pull request #4296 from ghubstan/wallets-protection-api-tests
Add wallets protection api tests
2020-06-25 12:48:31 +02:00
Christoph Atteneder
e50c7a6132
Add equals check to prevent resetting of newly set Filter 2020-06-25 12:40:49 +02:00
sqrrm
1c9299a2e5
Merge pull request #4295 from ghubstan/rename-core-wallet-service
Rename CoreWalletService -> CoreWalletsService
2020-06-25 11:01:31 +02:00
Christoph Atteneder
96645a7238
Merge pull request #4306 from huey735/patch-5
Add link to scripts
2020-06-25 10:15:31 +02:00
Christoph Atteneder
2e85d8824f
Merge pull request #4332 from Emzy/patch-3
Add V3 seednode sn3emzy
2020-06-25 10:11:03 +02:00
ghubstan
f820897e5b
Format dates ISO 8601 in UTC
We display all dates in UTC, using the "yyyy-MM-dd'T'HH:mm:ss'Z'" format.
2020-06-24 13:27:43 -03:00
ghubstan
51d82b1dff
Fix offer list filter bug due to direction flip
Respect the direction parmeter;  do not give it meaning it does not
have.  If the user passes a 'buy' parameter, return buy offers.  Do
not misinterpret the param's intent.  The direction parameter's value
does not imply "buy=I'm a buyer, show me sell offers" or
"sell=I'm a seller, show me buy offers".

I got mixed up by looking at the UI.  If I want to sell BTC, I click
the SELL tab to view buy offers (maker as buyer).  If I want to buy
BTC, I click the BUY tab to view sell offers (maker as seller).

This change also fixes an offer list sorting bug.

The commit is in response to a requested changes in PR 4329:
https://github.com/bisq-network/bisq/pull/4329#pullrequestreview-436033502
2020-06-23 17:15:39 -03:00
ghubstan
69792098c6
Check param count only, not param order correctness
This change simplifies client 'getoffers' method parameter
validation.  It no longer assumes parameter ordering is correct, nor
validates the direction parameter value.  The client only verifies
the correct number of string parameters are present.
2020-06-23 15:29:32 -03:00
Stephan Oeste
e9562b0d9b
Add V3 seednode sn3emzy
As part of the Tor V3 upgrade, and the effort to increase the number of
Bisq seednodes from 8 to 12, this PR adds a new V3 seednode.
2020-06-23 19:07:06 +02:00
ghubstan
e1fddfacf8
Remove duplication in wallets availability checks
This change adds a new 'verifyWalletsAreAvailable' method to the client,
which eliminates this duplicated statement:
    throw new IllegalStateException("wallet is not yet available");

The commit is in response to a requested change in PR 4312:
https://github.com/bisq-network/bisq/pull/4312#pullrequestreview-435659314
2020-06-23 13:11:36 -03:00
ghubstan
9691f35082
Check param count only, not param order correctness
This change simplifies client 'createpaymentacct' method parameter
validation.  It no longer assumes parameter ordering is correct, and
only verifies the string parameter count is correct.

A unit test was also added to cli/test.sh

This commit is in response to the requested change in PR 4308.
https://github.com/bisq-network/bisq/pull/4308#pullrequestreview-435052357
2020-06-23 12:42:56 -03:00
sqrrm
b87ba9e5ca
Merge pull request #4331 from bisq-network/release/v1.3.5
Release/v1.3.5
2020-06-23 15:54:28 +02:00
Christoph Atteneder
d2fdc79c26
Revert to SNAPSHOT version 2020-06-23 15:32:57 +02:00
ghubstan
52529a912e
Move getpaymentaccts tbl formatting to TableFormat
Created a new TableFormat.formatPaymentAcctTbl method.

Also:

 * Defined new "Currency" and "Name" column headers in TableFormat.

 * Changed syntax of stream().map() calls in some TableFormat methods.

 * Fixed verbose return statement in TableFormat.getLengthOfLongestColumn.

This commit is out of scope for the getoffers PR (4329), but is
included as part of the migration of all console tbl formatting
from the client into TableFormat.
2020-06-22 18:20:09 -03:00
ghubstan
8dcfa50bde
Define reusable headers from balance-info tbl 2020-06-22 17:49:46 -03:00
ghubstan
0d9bdefa00
Add 'getoffers' smoke test 2020-06-22 15:23:27 -03:00
ghubstan
61285a7602
Do not change case of input params in client
This commit is for a change requested in PR 4308:
https://github.com/bisq-network/bisq/pull/4308#pullrequestreview-435055483

  ".toUpperCase() seems misplaced here. It would soon get repetive.
  Whether the underlying logic differentiates between capitalizations
  is a low-level implementation detail and would do better at the
  lowest practical level."
2020-06-22 15:08:46 -03:00
ghubstan
a48af7c052
Add 'getoffers' unit tests 2020-06-22 14:43:59 -03:00
ghubstan
b25abf1b6b
Refactor CLI output table formatting
This change moves logic for formatting BTC balances, dates and
tables out of CliMain.  Two new output formatting classes were
added:  CurrencyFormat and TableFormat.
2020-06-21 19:46:37 -03:00
ghubstan
4778976b6b
Fix comments 2020-06-20 20:24:49 -03:00
ghubstan
1756258e81
Do not use protobuf.OfferPayload.Direction in client 2020-06-20 20:09:18 -03:00
ghubstan
88cb90e209
Add rpc method 'getoffers'
The new method returns current buy or sell offers for a fiat ccy.

These changes need refactoring and polishing before merging, but they're
committed in this state to be safe (don't lose work).  Changes include:

* New core.grpc classes
    CoreOffersService
    GrpcOffersService
    model.OfferInfo

* CoreApi -- The new CoreOffersService is injected into CoreApi and
  the old getOffers() and placeOffer() impls were moved into the
  new CoreOffersService.  The getOffers implementation was re-done.
  Other changes are just rearranging location of core method calls.

* GrpcServer -- The new GrpcOffersService replaced the old
  GetOffersService and PlaceOfferService.

* grpc.proto -- The old GetOffers and PlaceOffer services were combined
  into a single Offers service, and the PlaceOffer rpc was renamed
  as CreateOffer.  These are the only substantive changes; the rest
  is just rearranging location of the service defs in the file.
  Also created a lighterweight OfferInfo proto message wrapper to
  be passed between server & client (client has no access to core's
  Offer and OfferPayload).

* OfferInfo -- A new wrapper around the OfferInfo proto message.

* CliMain -- The new GetOffers service stub was added.
  Some (maybe too much) number and ccy formatting logic was
  copied & modified from core.  Some tedius string formatting
  was added too (needs to be tidied up).

* License comments were also copied to several classes, and I
  made a mistake in reverting changes to the wrong file.

TODO add unit tests
2020-06-20 19:56:28 -03:00
ghubstan
41f1add76b
Remove try catch block
Remove the recently added gRPC StatusRuntimeException wrapping
logic because we want unexpected Exceptions to bubble up for now,
until CorePaymentAccountsService.java throws specific
IllegalStateExceptions with user friendly error messages.
(See CoreWalletsService.java for example.)
2020-06-20 10:24:14 -03:00
ghubstan
d6ea0ea236
Re-add license comment
The previous revert was a mistake.  It applied to
GrpcPaymentAccountsService, not CorePaymentAccountsService.
2020-06-20 10:21:57 -03:00
ghubstan
7c073c65f5
Revert "Add license comment"
This reverts commit bfcc693f69.

This change was reverted because we want unexpected Exceptions
to bubble up for now, until CorePaymentAccountsService.java
throws specific IllegalStateExceptions with user friendly
error messages.  (See CoreWalletsService.java for example.)
2020-06-20 10:14:36 -03:00
ghubstan
d06807b0e5
Wrap Exception from core in gRPC StatusRuntimeException 2020-06-20 10:10:39 -03:00
ghubstan
bfcc693f69
Add license comment 2020-06-20 10:03:10 -03:00
ghubstan
855ac0f250
Add license comment 2020-06-20 10:02:04 -03:00
ghubstan
37fb60672f
Add license comment
This is not in scope of current PR, but easy enough to review.
2020-06-20 09:59:06 -03:00
ghubstan
612bafe59a
Refactor AddressBalanceInfo display logic 2020-06-20 08:42:58 -03:00
ghubstan
331f488057
Return protos from funding address methods
The 'getaddressbalance' and 'getfundingaddresses' methods now send
new AddressBalanceInfo proto messages instead of a formatted String
to the client.  The AddressBalanceInfo message contains addressString,
balance, and # of confirmations (transaction confidence) fields.

Changes include:
* A new AddressBalanceInfo proto message
* A wrapper class for the new AddressBalanceInfo proto
* New 'getaddressbalance' and 'getfundingaddresses' signatures in server
* AddressBalanceInfo display logic in client
* Removal of balance formatting logic in server
* Refactoring of balance formatting logic in client
2020-06-19 20:00:28 -03:00
ghubstan
435672a5ee
Add rpc method 'getpaymentaccts'
This addresses task 5 in issue 4257
	https://github.com/bisq-network/bisq/issues/4257

This new gRPC PaymentAccounts service method displays the user's
saved payment accounts.

A unit test to check a successful return status code was added
to cli/test.sh.

This PR should be reviewed/merged after PR 4322.
	https://github.com/bisq-network/bisq/pull/4322
2020-06-19 12:45:04 -03:00
ghubstan
1930411e61
Rmove blank line 2020-06-18 12:55:31 -03:00
ghubstan
b0e278f32e
Refactor getFundingAddresses to use memoization
Also reordered some import statements according to Bisq style rules.
2020-06-18 12:52:29 -03:00
Stan
9db9ee2906
Merge pull request #2 from dmos62/Z-getfundingaddresses-patch
Refactor getFundingAddresses to use memoization
2020-06-18 11:08:39 -03:00
Dominykas Mostauskis
c5134e14c2
Replace Tuple3 with memoization 2020-06-18 15:57:26 +02:00
Devin Bileck
68d8125d76
Combine separate gradlew clean and build commands into a single command 2020-06-17 22:35:02 -07:00
Devin Bileck
1d2c60f2f1
Update seednode README with Ubuntu 20.04 as an OS known to work well 2020-06-17 22:35:02 -07:00
Devin Bileck
0bab863ee9
Fix command shown in README used to install collectd service
The install_collectd_debian.sh script reads user input to obtain the
onion address. However, when you pipe the output of curl into the shell
you're making the script text be standard input of the shell, which
takes it in as commands to run. After that, there's nothing left to
read. Even if it were to try, it wouldn't get anything from the terminal
input, because it's not connected to it. The pipe has replaced standard
input for the shell process.

Instead, create a pipe for bash to read the output of curl from and
provide it as the script file argument. In this case, the standard input
of the script is still connected to the terminal, and read will work.
2020-06-17 22:35:02 -07:00