-
Notifications
You must be signed in to change notification settings - Fork 329
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 tx raw
commands
#2404
Refactor tx raw
commands
#2404
Conversation
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.
Looks good to me 👍
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.
Awesome, thanks so much @ljoss17! 💐
Let's rename the guide/src/commands/raw
folder to guide/src/commands/tx
and we're good to go!
I know this is merged but I am not sure about some of these changes. I find it confusing, especially for handshake Tx-es, where we now use I also find it confusing the sender/ receiver in Nit: there is stil |
Is it a reasonable compromise if we make the explicit relation between |
Not sure what you mean by "make an explicit relation". And btw, |
I propose we use chain/ counterparty instead of b-chain/ a-chain. Except the chain upgrade where we can use host-chain/ reference-chain (with the note that the reference-chain is the chain to be upgraded) |
Just to be clear, are you proposing we remove all |
Only from the tx CLIs (old |
As I see the process for the commands syntaxe, it usually has two steps:
So I think this should be discussed in the issue regarding updating ADR 010 #2383 or in a new issue. This would avoid having a mismatch between ADR 010 and the commands, as well as making it easier to track the discussion which lead to the chosen syntaxe. |
I opened #2410 to capture @ancazamfir's request. We should continue further discussion in there 🙂 |
* Remove the `raw` subcommand from all the `tx raw` commands * Remove the four duplicate commands: * `tx raw update-client`, which is the same as `update client` * `tx raw upgrade-client`, which is the same as `upgrade client` * `tx raw upgrade-clients`, which is the same as `upgrade clients` * `tx raw create-client`, which is the same as `create client` * Replace all flag prefixes `--src-` and `--dst-` with more appropriate prefixes * Add unit tests for all `tx raw` commands --- * Updated 'tx raw' commands following ADR 010 update of 07.07.22 * Fixed markdown title in ADR 010 * Added changelog entry * Updated old 'tx raw' commands with new format in e2e tests and comments * Renamed folder 'guide/src/commands/raw' to 'guide/src/commands/tx'
Closes: #2315, closes: #2376
Description
This PR refactors the
tx raw
commands in order to be synchronised with the ADR 010. The following modifications are applied:raw
subcommand from all thetx raw
commandstx raw update-client
, which is the same asupdate client
tx raw upgrade-client
, which is the same asupgrade client
tx raw upgrade-clients
, which is the same asupgrade clients
tx raw create-client
, which is the same ascreate client
--src-
and--dst-
with more appropriate prefixestx raw
commandsPR author checklist:
unclog
.guide/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.