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

Refactor, document Java API takeoffer bots #12

Merged
merged 41 commits into from
Jul 5, 2022

Conversation

ghubstan
Copy link
Owner

@ghubstan ghubstan commented Jul 4, 2022

  • Big refactor
  • Filled out class level javadocs
  • Filled out READMEs

Code, configuration and documentation is simplified with this refactoring. Two bots could do everything to take BTC/BSQ/XMR offers, but we want the script configs to be less complex, and the code more readable for people who aren't Java devs -- who might want to port them to other gRPC supported language bindings.

Note: there are some README links pointing back to this split-up-take-btc-offer-bots branch. They will be changed to point to the main branch when/if this PR is near approval.

ghubstan added 30 commits June 28, 2022 19:52
The TakeBestPricedOfferTo*Btc needed to be split up so they are specific
to fiat offers, and this change adds new TakeBestPricedOfferTo*Xmr bots
just for XMR.

This simplifies the the non-bsq-swap bots;  documenting, coding,
configuring, and logging the taking of both fiat and xmr (altcoin)
offers in the same bots was getting confusing, and that's going to
turn away potential users.

This refactoring means there are six bots now, and it forced considerable
refactoring in all of them.

This commit is the bulk of the work for the PR, but there will be more
changes after everything is tested again, and comments are adjusted.
Hideous, but navigable.
Copy link
Collaborator

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

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

utACK

Links to xmr bot src added to the PR branch will work after PR is merged.
@ghubstan ghubstan changed the title [WIP] Split take BTC offer bots into take BTC-FIAT and XMR-BTC offer bots Split take BTC offer bots into take BTC-FIAT and XMR-BTC offer bots Jul 5, 2022
@ghubstan ghubstan marked this pull request as ready for review July 5, 2022 11:19
Copy link
Collaborator

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

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

utACK

@ghubstan ghubstan merged commit 3170e71 into ghubstan:main Jul 5, 2022
@ghubstan ghubstan deleted the split-up-take-btc-offer-bots branch July 5, 2022 11:52
@ghubstan ghubstan changed the title Split take BTC offer bots into take BTC-FIAT and XMR-BTC offer bots Refactor, document Java takeoffer bots Jul 29, 2022
@ghubstan ghubstan changed the title Refactor, document Java takeoffer bots Refactor, document Java API takeoffer bots Jul 29, 2022
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.

2 participants