-
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
Transaction Client (CLI & REST) Protobuf Migration #5864
Comments
Regarding moving tx related stuff out of |
Yeah I think that makes sense 👍 |
As part of #5864 part 2), this PR decouples the new client/tx package from x/auth (as an incremental step to deprecating all the tx logic in x/auth) and adds StdFee, StdSignature, StdSignMsgBase and StdTxBase to codec/std, while deprecating the corresponding types in x/auth.
Here's my current thinking on how to address tx CLI commands:
Reading the doc string for it says "a typical CLI context created in SDK modules for transaction handling and queries". It seems natural that they would fit there. Before tx stuff depended on
I've thought about this a bit and I would argue that passing in a |
Sure. They're part of the TxFactory now, but I see no reason why we can't move them to the
I would advise against this. Just keep the
👍
What does this really buy you? It saves you from writing one line and now this depends on Cobra. |
Well in order for them to exist on
Fine it could be |
Because it has nothing to do with a context.
👍 |
I'm going to work on the IBC module tx migration |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Marking this as done. Any remaining work is happening in #6213. |
Summary
x/auth
. We should remove all business logic from this module.GetTxCmd
(andGetQueryCmd
?) fromAppModuleBasic
. Because certain modules have messages that are application-level defined, they'll need custom arguments. The module manager can be redesigned to accommodate this, but it is not a hard requirement for completeness. Rather, the application can just call each module's root handlers for now.NewTxCmd
module interfaceStdTx
implementClientTx
so that we have a single set of tx commandssimcli
to use the new module interface (x/bank
)simcli
to use the new module interface from (Tx CLI proto module interface #5989) and pass integration testssimcli
to use the new proto transaction format (after Proto Any Tx migration #6213 is far enough along). Make sure integration tests work for both proto and amino (Full amino encoding support #6190). Also being taken care of in part by (Implement SIGN_MODE_DIRECT #6216)ref: #5663
/cc @jackzampolin @aaronc @marbar3778 @alessio
For Admin Use
The text was updated successfully, but these errors were encountered: