Commit graph

4135 commits

Author SHA1 Message Date
jmacxx
ca8f53c2c2
Implement XMR tx proof autoconfirm feature
* XMR seller is prompted to enter txId and viewkey.
* looks up the XMR transaction to verify that it has confirmed
* user can run their own validating service, or use the ones provided
* 100% agreement of all chosen services is necessary for confirmation
* feature can be configured and turned on/off from settings screen
* feature can be globally turned off via admin filter
* two code review passes from chimp1984
* one text review from m52go
2020-08-26 21:51:14 -05:00
chimp1984
78da1df9de
Add trade date 2020-07-27 15:09:03 -05:00
chimp1984
43e4809d81
Add basic support for validation for XMR transfer with tx key
Main part missing is the XMR proof service request processing. I did not
get the service compiled yet, so could not test response data and error
conditions.

Further it is missing a "news badge" and popup to guide the user to the
new feature.

Only basic dev tested so far.

Anyone welcome to pick the project up from here as I might not have
time soon to continue.
2020-07-26 18:55:07 -05:00
sqrrm
e1fcbfac18
Merge pull request #4357 from ripcurlx/update-data-stores-for-v1.3.6
Update of data stores for v1.3.6
2020-07-08 15:43:05 +02:00
wiz
f18e7d711a
Add V3 seednode sn2bisq 2020-07-08 01:15:46 +09:00
Christoph Atteneder
a25680ffa2
Update translations for v1.3.6 2020-07-07 15:57:38 +02:00
Christoph Atteneder
3b49acdf12
Update bitcoinj checkpoints 2020-07-07 15:37:00 +02:00
sqrrm
a8e4b51709
Fix taker use all BSQ for fee payment
Issue: if a taker used exactly all BSQ from the BSQ inputs to pay the
trading fee, there was no BSQ change in the takeOfferFeeTx. It was
assumed that the second output was the reservedForTrade output, but in
the case of missing BSQ change it was the first output.

Fix: added a check to make sure the value of the inputs to the deposit
tx match the expected inputAmount.

Added a check that if there is no BSQ outputs in the bsqTradingFeeTx a
change output is added of value 1 satoshi more than the BSQ input value.
This ensures that the second output is always the reservedForTrade
output. It also ensures that the BSQ is burnt, even in the very unlikely
case that the amount of BSQ burnt is larger than the reservedForTrade
amount.
2020-07-06 18:36:30 +02:00
Christoph Atteneder
cfc3252f7b
Merge pull request #4347 from sqrrm/deposit-improvements
Deposit improvements
2020-07-03 21:20:27 +02:00
Christoph Atteneder
ad374bd6ec
Improve layout to prevent truncation in most common use-cases 2020-07-03 19:08:00 +02:00
sqrrm
4e7283cc2c
Remove unused argument 2020-07-03 18:14:10 +02:00
sqrrm
22814d15f8
Publish own witness received as trade message 2020-07-03 18:14:10 +02:00
sqrrm
44c71bd704
Add TraderSignedWitnessMessage 2020-07-03 18:14:10 +02:00
sqrrm
6cd395c227
Change signAccountAgeWitness signature
Return the signed witness when signed by a trader
2020-07-03 18:14:10 +02:00
sqrrm
9a8622c410
Fix codacy comments 2020-07-03 17:35:54 +02:00
sqrrm
fabd592938
Merge remote-tracking branch 'origin/master' into HEAD 2020-07-03 16:58:13 +02:00
sqrrm
ac2f37f968
Merge pull request #4345 from jmacxx/fix_offer_fee_changed
Create order using the same tx fee specified at funding
2020-07-03 13:20:18 +02:00
Christoph Atteneder
a0ec617063
Merge pull request #4350 from m52go/zelle-update
Improve zelle payment account info text
2020-07-02 14:12:43 +02:00
Christoph Atteneder
5edb0d2eb8
Merge pull request #4349 from m52go/account-limits-update
Improve account limits popup text
2020-07-02 14:12:18 +02:00
m52go
ba5496205f
Improve account limits popup text 2020-07-01 11:47:18 -04:00
m52go
ef96fd3be8
Improve zelle payment account info text 2020-07-01 10:21:16 -04:00
sqrrm
44bdce7b5c
Merge pull request #4342 from wiz/update-mempool-explorer-urls
Update Bitcoin explorer URLs and Tor V3 onions for wiz and emzy
2020-07-01 15:53:20 +02:00
sqrrm
79f05bcfa3
Merge pull request #4320 from devinbileck/add-v3-seednode
Add V3 seednode devinv3r
2020-07-01 15:48:30 +02:00
sqrrm
2417cf2f61
Merge pull request #4313 from ncstdc/patch-1
Change "Move funds to Bisq wallet" to "Keep funds in Bisq wallet"
2020-07-01 12:10:05 +02:00
sqrrm
2a8c25e33a
Fix deposit column layout 2020-06-30 19:04:26 +02:00
sqrrm
97f76069f3
Update security deposit info text at offer creation 2020-06-30 18:09:17 +02:00
sqrrm
106c656993
Use same security deposit for buyer and seller 2020-06-30 18:01:50 +02:00
jmacxx
f3fa5ad3a1
Create order using the same tx fee specified at funding
This fixes an issue whereby updates from the fee API were causing
Insufficient Funds exception. Since the wallet is funded with a
specific amount (deposit+trade fee+txFee), that same amount has
to be used when the user confirms offer creation (which could be
some time later).

Fixes #4227
Fixes #4278
Fixes #4336
Fixes #4327
2020-06-29 13:43:06 -05: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
wiz
8dbb01c04f
Update Bitcoin explorer URLs and Tor V3 onions for wiz and emzy 2020-06-29 00:02:50 +09:00
Devin Bileck
3b424fde28
Merge branch 'master' of https://github.com/bisq-network/bisq into add-v3-seednode
 Conflicts:
	core/src/main/resources/btc_mainnet.seednodes
2020-06-26 03:46:24 -07: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
38f6af26ee
Merge pull request #4294 from sqrrm/add-multiple-fee-receivers
Add multiple fee receivers
2020-06-25 13:23:53 +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
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
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
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
4778976b6b
Fix comments 2020-06-20 20:24:49 -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