Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add api method createcryptopaymentacct #5356

Merged

Conversation

ghubstan
Copy link
Member

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.

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.
Copy link
Contributor

@wallclockbuilder wallclockbuilder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

./bisq-cli --password=xyz --port=9998 createcryptopaymentacct \ --account-name="My BSQ Account" \ --currency-code=BSQ \ --address=BmxdvDCer85sKFWGc5wWTk2JcmK13jWGZsJ

payment account saved
Name Currency Payment Method ID
My BSQ Account BSQ BLOCK_CHAINS 4222730d-802d-4c23-87ed-db096e6a696f

./bisq-cli --password=xyz --port=9998 createcryptopaymentacct \ --account-name="My BSQ Account" \ --currency-code=BSQ \ --address=wrongaddressr85sKFWGc5wWTk2JcmK13wrongaddress

Error: wrongaddressr85sKFWGc5wWTk2JcmK13wrongaddress is not a valid bsq address

- Added bool tradeInstant field to proto message def.
- Adjusted core createcryptopaymentacct impl to new tradeInstant request param.
- Adjusted cli side createcryptopaymentacct impl to new tradeInstant request param.
- Fixed CliMain's takeoffer help text (was missing the --payment-account opt).
@sqrrm sqrrm merged commit 6299dc3 into bisq-network:master Apr 2, 2021
@ghubstan ghubstan deleted the 01-api-add-createcryptopaymentacct branch April 2, 2021 17:03
@ripcurlx ripcurlx added this to the v1.6.3 milestone Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants