Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Use txnbuild #205

Merged
merged 16 commits into from
Sep 3, 2019
Merged

Use txnbuild #205

merged 16 commits into from
Sep 3, 2019

Conversation

poliha
Copy link
Contributor

@poliha poliha commented Jul 25, 2019

closes #269

This PR covers part of the work required to update Kelp to use the new stellar Go sdk. This PR focuses on changing the transaction builder package from build to txnbuild.

This PR also changes the usage of clients/horizon in some places that could not be changed in #204. In particular, these two files were changed

.../gui/backend/upsert_bot_config.go
.../gui/backend/autogenerate_bot.go

With these changes, Kelp should not have any instance of the deprecated build and clients/horizon packages.
This PR is based off the branch in #204, please review that before this.


Nikhil's list of outstanding issues to check:

  • orderConstraintsFilter logs baseAmount and quoteAmount numbers that are divided by 10^7. Example: 0.00015000 instead of 1500.0000000 when the other log lines use the correct value of 1500.0000000
  • revert txnbuild.Operation references in api/* so we don't bump major version number and create a new PR for this API change to be merged later

@poliha poliha requested a review from nikhilsaraf as a code owner July 25, 2019 20:21
@poliha poliha changed the base branch from hprotocol_merge_base to master July 26, 2019 13:42
Copy link
Contributor

@nikhilsaraf nikhilsaraf left a comment

Choose a reason for hiding this comment

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

reviewed most of the files. mostly looks good -- will look at the last few files remaining soon.
this review has more changes than I was expecting so it's taking a little longer -- although they all seem warranted so thanks for make these changes. will try and take a look at the rest of the files as soon as possible but it will likely be after the kelp hackathon is kicked off this week because there's a lot of stuff to be done before I can kick that off.

Added a few comments inline about pointers, rest looks good so far.

plugins/batchedExchange.go Show resolved Hide resolved
plugins/batchedExchange.go Outdated Show resolved Hide resolved
plugins/makerModeFilter.go Show resolved Hide resolved
plugins/mirrorStrategy.go Show resolved Hide resolved
plugins/mirrorStrategy.go Show resolved Hide resolved
plugins/orderConstraintsFilter.go Show resolved Hide resolved
@poliha
Copy link
Contributor Author

poliha commented Jul 30, 2019

No worries, please take your time. It is essential that the changes do not introduce any bugs so it is a good call to delay on this a bit till you have more bandwidth.

@nikhilsaraf nikhilsaraf dismissed a stale review via f9ca510 August 30, 2019 08:15
avoids threading errors through in this situation where really there should be no reason for an error from the delete offer op, althrough ideally we should thread the error through
@nikhilsaraf nikhilsaraf merged commit c18c97f into stellar-deprecated:master Sep 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use txnbuild instead of build package, except in Kelp APIs
2 participants