2024-07-01 06:05:28 +00:00
|
|
|
package module
|
|
|
|
|
|
|
|
import (
|
|
|
|
autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
|
2024-07-03 11:38:48 +00:00
|
|
|
|
|
|
|
onboardingv1 "git.vdb.to/cerc-io/laconicd/api/cerc/onboarding/v1"
|
2024-07-01 06:05:28 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// AutoCLIOptions implements the autocli.HasAutoCLIConfig interface.
|
|
|
|
func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
|
|
|
|
return &autocliv1.ModuleOptions{
|
|
|
|
Query: nil,
|
2024-07-03 11:38:48 +00:00
|
|
|
// TODO: Use JSON file for input
|
|
|
|
Tx: &autocliv1.ServiceCommandDescriptor{
|
|
|
|
Service: onboardingv1.Msg_ServiceDesc.ServiceName,
|
|
|
|
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
|
|
|
|
{
|
|
|
|
RpcMethod: "OnboardParticipant",
|
|
|
|
Use: "enroll",
|
|
|
|
Short: "Enroll a testnet validator",
|
|
|
|
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
|
|
|
|
{ProtoField: "ethPayload"},
|
|
|
|
{ProtoField: "ethSignature"},
|
|
|
|
{ProtoField: "message"},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-07-01 06:05:28 +00:00
|
|
|
}
|
|
|
|
}
|