-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
CLI tx
commands should generate service Msgs
#8306
Comments
tx
commands should generate service Msgs
I'm not sure why we'd postpone #8270. I did most of the preparatory work already. Delaying it will just mean we have to refactor CLI methods twice right? |
Well it's just about tradeoffs. I wouldn't block authz and fee grant getting merged in. But if we're refactoring all tx cli commands we might as well do that once the right way. That refactoring is separate from the basic authz implementation as I understand it. |
IMO the x/authz PR looks good overall, but what feels weird to me before approving are the two following points:
How about for now:
|
Summary of Bug
There's currently no way to create transactions that contain ADR-031 service Msgs. At the very least, CLI
tx
commands should output txs with service Msgs.x/authz can only exec service Msgs, so is blocked on this.
Version
v0.40.0
Proposal
As discussed internally at Regen, we can outline the following plan:
For 0.41, create a temporary struct
ServiceMsgClientConn
which implements grpc.ClientConn. This struct actually already exists, but is only used for tests. The idea is to:types/msgservice
For 0.42, try to pull Custom protobuf service code generator #8270 in. Once codegen is in, this temporary
ServiceMsgClientConn
could be removed, and service Msgs could then be created using TxBuilder (Add ClientConn to TxBuilder to support ADR 031 #7541).Notes
--service-msg
(true by default) to generate service Msgs or proto Msgs. This might still allow generating amino Msgs.For Admin Use
The text was updated successfully, but these errors were encountered: