Skip to content

Commit 7c1f93a

Browse files
committed
feat(x): enable autocli for txs in modules
1 parent d6f3ede commit 7c1f93a

File tree

16 files changed

+30
-22
lines changed

16 files changed

+30
-22
lines changed

x/auth/autocli.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
7777
},
7878
},
7979
Tx: &autocliv1.ServiceCommandDescriptor{
80-
Service: authv1beta1.Msg_ServiceDesc.ServiceName,
80+
Service: authv1beta1.Msg_ServiceDesc.ServiceName,
81+
EnhanceCustomCommand: true,
8182
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
8283
{
8384
RpcMethod: "UpdateParams",

x/auth/vesting/autocli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import (
99
func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
1010
return &autocliv1.ModuleOptions{
1111
Tx: &autocliv1.ServiceCommandDescriptor{
12-
Service: vestingv1beta1.Msg_ServiceDesc.ServiceName,
12+
Service: vestingv1beta1.Msg_ServiceDesc.ServiceName,
13+
EnhanceCustomCommand: true,
1314
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
1415
{
1516
RpcMethod: "CreateVestingAccount",
@@ -41,7 +42,6 @@ These tokens may be used for staking but are non-transferable. Staking rewards w
4142
},
4243
},
4344
},
44-
EnhanceCustomCommand: false, // use custom commands only until v0.51
4545
},
4646
}
4747
}

x/authz/module/autocli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
4848
},
4949
Tx: &autocliv1.ServiceCommandDescriptor{
5050
Service: authzv1beta1.Msg_ServiceDesc.ServiceName,
51-
EnhanceCustomCommand: false, // use custom commands only until v0.51
51+
EnhanceCustomCommand: true,
5252
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
5353
{
5454
RpcMethod: "Exec",

x/circuit/autocli.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
3333
},
3434
},
3535
Tx: &autocliv1.ServiceCommandDescriptor{
36-
Service: circuitv1.Msg_ServiceDesc.ServiceName,
36+
Service: circuitv1.Msg_ServiceDesc.ServiceName,
37+
EnhanceCustomCommand: true,
3738
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
3839
{
3940
RpcMethod: "AuthorizeCircuitBreaker",

x/consensus/autocli.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
2727
},
2828
},
2929
Tx: &autocliv1.ServiceCommandDescriptor{
30-
Service: consensusv1.Msg_ServiceDesc.ServiceName,
30+
Service: consensusv1.Msg_ServiceDesc.ServiceName,
31+
EnhanceCustomCommand: true,
3132
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
3233
{
3334
RpcMethod: "UpdateParams",

x/crisis/autocli.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import (
1212
func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
1313
return &autocliv1.ModuleOptions{
1414
Tx: &autocliv1.ServiceCommandDescriptor{
15-
Service: crisisv1beta1.Msg_ServiceDesc.ServiceName,
15+
Service: crisisv1beta1.Msg_ServiceDesc.ServiceName,
16+
EnhanceCustomCommand: true,
1617
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
1718
{
1819
RpcMethod: "VerifyInvariant",

x/distribution/autocli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
8888
},
8989
},
9090
Tx: &autocliv1.ServiceCommandDescriptor{
91-
Service: distributionv1beta1.Msg_ServiceDesc.ServiceName,
91+
Service: distributionv1beta1.Msg_ServiceDesc.ServiceName,
92+
EnhanceCustomCommand: true,
9293
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
9394
{
9495
RpcMethod: "SetWithdrawAddress",
@@ -154,7 +155,6 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
154155
GovProposal: true,
155156
},
156157
},
157-
EnhanceCustomCommand: true,
158158
},
159159
}
160160
}

x/feegrant/module/autocli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
4747
},
4848
},
4949
Tx: &autocliv1.ServiceCommandDescriptor{
50-
Service: feegrantv1beta1.Msg_ServiceDesc.ServiceName,
50+
Service: feegrantv1beta1.Msg_ServiceDesc.ServiceName,
51+
EnhanceCustomCommand: true,
5152
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
5253
{
5354
RpcMethod: "RevokeAllowance",
@@ -68,7 +69,6 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
6869
Example: fmt.Sprintf(`$ %s tx feegrant prune --from [mykey]`, version.AppName),
6970
},
7071
},
71-
EnhanceCustomCommand: true,
7272
},
7373
}
7474
}

x/gov/autocli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
9494
EnhanceCustomCommand: true, // We still have manual commands in gov that we want to keep
9595
},
9696
Tx: &autocliv1.ServiceCommandDescriptor{
97-
Service: govv1.Msg_ServiceDesc.ServiceName,
97+
EnhanceCustomCommand: true,
98+
Service: govv1.Msg_ServiceDesc.ServiceName,
9899
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
99100
{
100101
RpcMethod: "Deposit",
@@ -140,7 +141,6 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
140141
GovProposal: true,
141142
},
142143
},
143-
EnhanceCustomCommand: false, // use custom commands only until v0.51
144144
},
145145
}
146146
}

x/group/module/autocli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
125125
},
126126
Tx: &autocliv1.ServiceCommandDescriptor{
127127
Service: groupv1.Msg_ServiceDesc.ServiceName,
128-
EnhanceCustomCommand: false, // use custom commands only until v0.51
128+
EnhanceCustomCommand: true,
129129
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
130130
{
131131
RpcMethod: "UpdateGroupAdmin",

0 commit comments

Comments
 (0)