-
Notifications
You must be signed in to change notification settings - Fork 3.6k
/
autocli.go
40 lines (38 loc) · 1.04 KB
/
autocli.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package mint
import (
autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
mintv1beta1 "cosmossdk.io/api/cosmos/mint/v1beta1"
)
func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
return &autocliv1.ModuleOptions{
Query: &autocliv1.ServiceCommandDescriptor{
Service: mintv1beta1.Query_ServiceDesc.ServiceName,
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
{
RpcMethod: "Params",
Use: "params",
Short: "Query the current minting parameters",
},
{
RpcMethod: "Inflation",
Use: "inflation",
Short: "Query the current minting inflation value",
},
{
RpcMethod: "AnnualProvisions",
Use: "annual-provisions",
Short: "Query the current minting annual provisions value",
},
},
},
Tx: &autocliv1.ServiceCommandDescriptor{
Service: mintv1beta1.Msg_ServiceDesc.ServiceName,
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
{
RpcMethod: "UpdateParams",
Skip: true, // skipped because authority gated
},
},
},
}
}