-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 cli commands for the coinswap module. #4719
Add cli commands for the coinswap module. #4719
Conversation
…ct type for query params in querier.go. Incorporated review comment of querying liquidity with a param. Fixed some code problems in tx.go..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! I left a lot of nit pick stuff and suggestions. Let me know if you have any questions.
Co-Authored-By: colin axner <colinaxner@berkeley.edu>
Co-Authored-By: colin axner <colinaxner@berkeley.edu>
Co-Authored-By: colin axner <colinaxner@berkeley.edu>
So I think we should add a config file for this client. This would be done the same way |
I like the idea of storing the native denom in a config file. Also now that the client will have access to the native denom because of the config file, we would be using that to see if the deposit amount (after parsing) has the term |
As discussed on Slack, will change the type from |
Co-Authored-By: colin axner <colinaxner@berkeley.edu>
Co-Authored-By: colin axner <colinaxner@berkeley.edu>
@aayushijain23 mind resolving issues once they are addressed? |
@@ -14,6 +14,10 @@ import ( | |||
"github.com/cosmos/cosmos-sdk/x/coinswap/internal/types" | |||
) | |||
|
|||
const ( | |||
nativeDenom = "atom" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be configurable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is in the core code; its a parameter. The issue on the client is its useful to know what the native denom is but it is inefficient to do an extra query for it for every command especially since it doesn't change after genesis. One way of handling this is through a config file, which could be done at a later point
Let's merge this to the coinswap module PR and address the rest of the comments there |
ref #4443
Adding cli-commands for the coinswap module.
PLEASE NOTE: This PR is up for code review and is not intended to be merged into the master atm.
Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added a relevant changelog entry:
clog add [section] [stanza] [message]
rereviewed
Files changed
in the github PR explorerFor Admin Use: