Commit graph

14297 commits

Author SHA1 Message Date
ghubstan
780be1a93c
Adjust maker gettrade output checks to new column
The number of gettrade output columns are the same for makers and takers.
2021-03-26 10:58:47 -03:00
ghubstan
9e035e5542
Provide more offer & contract detail available to CLI.
This change adds offer and trade contract detail to the API's Offer
and Trade protos, and improves CLI output formatting.

- Appended missing fields to OfferInfo proto message:
	uint64 sellerSecurityDeposit = 20;
	string offerFeePaymentTxId = 21;
	uint64 txFee = 22;
	uint64 makerFee = 23;

- Added new api proto messages ContractInfo and PaymentAccountPayloadInfo.
  Lighterweight protos are needed because core Trade/Contract classes are
  not visible to CLI.

- Appended ContractInfo field to api proto message TradeInfo.

- Added proto / model converters for ContractInfo and PaymentAccountPayloadInfo,
  and adjusted OfferInfo & TradeInfo.

- Improved CLI output formatting.  Added more trade detail to CLI's gettrade output,
  and prepared to support BTC/BSQ trading pair.  Note a reviewer is advised to
  look at the CLI outout formatting class files instead getting bogged down in the
  many commit changes.
2021-03-25 19:23:06 -03:00
ghubstan
27b090005d
Add cli side help for createcryptopaymentacct 2021-03-25 18:46:41 -03:00
ghubstan
c3f5669cf8
Add api method createcryptopaymentacct
This change supports creation of BSQ BLOCKCHAIN payment method accounts.

- Added proto message defs to grpc.proto.
- Added grpc server boilerplate to GrpcPaymentAccountsService.
- Added server impl to CoreApi, CorePaymentAccountsService.
- Added createcryptopaymentacct-help.txt.
- Added CLI side support for new api method.
- Added opt parsing unit tests to OptionParsersTest.

This is the 1st PR in a series, with the goal of supporting the BTC/BSQ trading
pair.  Support for other crypto currency payment accounts will be added later.
2021-03-25 18:36:26 -03:00
Christoph Atteneder
a97f80a348
Merge pull request #5353 from huey735/delete-issue-template-file
Delete issue template file
2021-03-25 08:33:26 +01:00
Huey
3feaccb382
Delete issue template file
I deleted the old ISSUE_TEMPLATE.md file to not cause conflicts
with the new bug-report.md file that replaces it.
2021-03-24 21:34:42 +00:00
Christoph Atteneder
00616acd97
Merge pull request #5352 from huey735/add-front-matter-to-bug-report-template
Add front matter to issue_template.md
2021-03-24 22:21:31 +01:00
Huey
040fc00c9d
Rename issue_template.md and add front matter
Renamed the issue_template.md to bug-report.md to adhere to
Github's guidelines.
I added semanticly relevant front matter to the issue_template.md
so that it explicit that it should be reserved for reporting bugs
or unintentional behaviours from the software.
2021-03-24 21:12:11 +00:00
Christoph Atteneder
3d1072e584
Merge pull request #5332 from BtcContributor/darkread
Fix dark mode readibility of specific texts - Part 2
2021-03-24 21:33:44 +01:00
BtcContributor
8713756d12
Highlight of closed disputes with unread chats 2021-03-24 19:54:37 +01:00
Christoph Atteneder
93647770f7
Merge pull request #5351 from huey735/fix-feature-request-url
Fix feature request url on the issue template config.yml
2021-03-24 13:08:18 +01:00
Huey
b6fcd662c4
Fix feature request url on the issue template config.yml 2021-03-24 11:29:32 +00:00
Christoph Atteneder
2bf7b9389b
Merge pull request #5346 from huey735/move-issue-template-doc
Move the issue template doc to new folder
2021-03-24 10:17:57 +01:00
Christoph Atteneder
a0bc8a7088
Merge pull request #5348 from huey735/add-issue-template-config
Add issue template config
2021-03-24 10:17:11 +01:00
Christoph Atteneder
4290613973
Merge pull request #5347 from jmacxx/fee_validation_allow_old_param
Fee validation leniency using old DAO param values
2021-03-24 09:58:02 +01:00
Christoph Atteneder
b0a5a943df
Merge pull request #5349 from jmacxx/mediation_follow_up_issues
Review changes for Disputes GUI
2021-03-24 09:46:03 +01:00
jmacxx
e9b3b9ac1f
Review changes for Disputes GUI
highlight trade period end using an appropriate CSS alert style
system messages to show in chat unread message count
2021-03-23 23:02:21 -05:00
Huey
014eba918f
Add issue template config
I added an issue template config file to better guide
the user as to where their issue may be more fitting.
2021-03-23 20:35:59 +00:00
jmacxx
f85667b55a
Fee validation leniency using old DAO param values 2021-03-23 15:32:01 -05:00
Huey
2332e24af0
Move the issue template doc to new folder
I moved the ISSUE_TEMPLATE.md file to .github/ISSUE_TEMPLATE/ to
obey by Github's new template workflow.
2021-03-23 20:25:13 +00:00
Christoph Atteneder
e59f6afd91
Merge pull request #5344 from jmacxx/add_warning_risk_sell
Pop-up warning for trading with risky payment methods
2021-03-23 15:11:42 +01:00
jmacxx
fb1f5855bd
Pop-up warning for trading with risky payment methods 2021-03-22 14:45:53 -05:00
sqrrm
9c40a641f3
Merge pull request #5337 from ghubstan/01-fix-api-encrypted-walletappsetup
Fix API startup's wallet.init failure when wallet is encrypted
2021-03-22 12:36:13 +01:00
Christoph Atteneder
0d2db39ac3
Merge pull request #5333 from jmacxx/fix_withdrawal_txdetails_popup
Fix race condition in BTC sent confirmation popup
2021-03-22 11:58:52 +01:00
Christoph Atteneder
1958b8cc0c
Merge pull request #5342 from sqrrm/revert-unsigned-size-change
Revert "Lower tolerated small amount"
2021-03-22 11:37:11 +01:00
sqrrm
520b6481f4
Revert "Lower tolerated small amount"
This reverts commit 99123b7297.
2021-03-22 11:12:10 +01:00
ghubstan
d819e91b0c
Fix method name and error msg 2021-03-20 19:18:40 -03:00
ghubstan
8f092a6b4d
Fix comment, left justify non-numeric column value 2021-03-20 19:08:21 -03:00
ghubstan
cfd52cdb8c
Remove log statement, add comment 2021-03-20 18:48:01 -03:00
ghubstan
6913e82f74
Fix typo 2021-03-20 18:47:21 -03:00
ghubstan
838595cb03
Set WalletsManager key if missing
This change sets the WalletsManager key the first time `unlockwallet` is called.
This is necessary because the key cannot be set during api daemon startup, as it
normally is at UI startup.  See commit eb15fda229.
2021-03-20 18:38:33 -03:00
ghubstan
eb15fda229
Block UI popups in api startup's encrypted wallet init
Running the UI's walletPasswordHandler during wallet initialization will fail
and block wallet initialization.  This change ensures an encrypted wallet
does not trigger a walletPasswordHandler.run() if isApiUser=true during startup.
2021-03-20 18:22:52 -03:00
jmacxx
f17e988cb3
codacy 2021-03-19 10:57:30 -05:00
jmacxx
f4407187c6
fix race condition in sent confirmation popup 2021-03-19 10:24:53 -05:00
BtcContributor
8abfa63db8
Remove setOpacity in 2 remaining cases 2021-03-19 15:59:36 +01:00
sqrrm
53f42c4885
Merge pull request #5303 from ghubstan/03-add-long-running-trade-test
Add LongRunningTradesTest to apitest
2021-03-19 12:20:00 +01:00
sqrrm
59a0cc41dc
Merge pull request #5302 from ghubstan/02-modify-txinfo
Avoid NPE due to null fee while wrapping tx in TxInfo
2021-03-19 12:05:09 +01:00
sqrrm
1c3fc41c33
Merge pull request #5294 from ghubstan/01-fix-takeoffer-err-handling
Improve takeoffer error handing
2021-03-19 11:55:18 +01:00
Christoph Atteneder
d8676fdeb7
Merge pull request #5330 from ghubstan/01-clarify-paymentacct-form-country-field
Disambiguate payment acct json form's "country" field
2021-03-18 20:33:49 +01:00
ghubstan
67252642c7
Disambiguate payment acct json form's "country" field
Make it clear the user needs to enter a two letter country code
in json form's "country" field, not a country name.

The json form's field name was not changed to "countryCode" in
this change for the following reason:

The API's payment account forms are dynamically generated using
reflection, and PaymentAccount class hierarchy @Setter methods
determine which form fields are included or excluded.  Reflection
and @Setter methods are also used when reading completed json
forms, to set the field values on a new PaymentAccount instance
before it is persisted.

CountryBasedPaymentAccount subclasses have a country field and a
@Setter, not a countryCode field, hence this shortcut to informing
the user the country field value is a country-code.
2021-03-18 16:14:28 -03:00
Christoph Atteneder
c8d01a2d4c
Merge pull request #5328 from ghubstan/01-apidoc-changes-for-ripcurlx
Improve apitest docs
2021-03-18 19:15:09 +01:00
Christoph Atteneder
d34a73276e
Merge pull request #5326 from sqrrm/lower-deposit
Lower min deposit to 0.001 BTC
2021-03-18 19:02:24 +01:00
ghubstan
14b2bc2544
Make codacy happy (I hope) 2021-03-18 14:49:57 -03:00
ghubstan
dc4f730605
Validate paymentAccountId in createAndPlaceOffer 2021-03-18 14:46:28 -03:00
ghubstan
f732983d6c
Make multi-line bash command copy/pastable from rendered md 2021-03-18 14:20:47 -03:00
ghubstan
514e7b74ce
Refactor, include section about running on mainnet 2021-03-18 13:22:31 -03:00
ghubstan
ec65c010f7
Don't be polite 2021-03-18 13:12:32 -03:00
ghubstan
d07a26d560
Add missing withdrawfunds options 2021-03-18 12:58:26 -03:00
ghubstan
d3b5e1ee4b
Alternate ports to improve api/protocol guide 2021-03-18 12:56:18 -03:00
sqrrm
e6b7c88bed
Lower min deposit to 0.001 BTC
Lower min refund to half of min deposit as it doesn't make sense to have
a higher min refund than the min deposit.
2021-03-18 13:44:05 +01:00