2024-02-01 04:48:40 +00:00
|
|
|
package module
|
2024-02-01 10:58:34 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
|
|
|
|
"cosmossdk.io/client/v2/autocli"
|
2024-02-02 09:39:10 +00:00
|
|
|
|
|
|
|
bondv1 "git.vdb.to/cerc-io/laconic2d/api/cerc/bond/v1"
|
2024-02-01 10:58:34 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var _ autocli.HasAutoCLIConfig = AppModule{}
|
|
|
|
|
|
|
|
// AutoCLIOptions implements the autocli.HasAutoCLIConfig interface.
|
|
|
|
func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
|
|
|
|
return &autocliv1.ModuleOptions{
|
2024-02-02 09:39:10 +00:00
|
|
|
Query: &autocliv1.ServiceCommandDescriptor{
|
|
|
|
Service: bondv1.Query_ServiceDesc.ServiceName,
|
|
|
|
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
|
|
|
|
{
|
|
|
|
RpcMethod: "Bonds",
|
|
|
|
Use: "list",
|
|
|
|
Short: "List bonds",
|
|
|
|
PositionalArgs: []*autocliv1.PositionalArgDescriptor{},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Tx: &autocliv1.ServiceCommandDescriptor{
|
|
|
|
Service: bondv1.Msg_ServiceDesc.ServiceName,
|
|
|
|
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
|
|
|
|
{
|
|
|
|
RpcMethod: "CreateBond",
|
|
|
|
Use: "create [amount]",
|
|
|
|
Short: "Create bond",
|
|
|
|
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
|
|
|
|
{ProtoField: "coins"},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-01 10:58:34 +00:00
|
|
|
}
|
|
|
|
}
|