Prathamesh Musale
620c5224f7
All checks were successful
Build / build (pull_request) Successful in 1m53s
Protobuf / lint (pull_request) Successful in 10s
E2E Tests / test-e2e (pull_request) Successful in 2m46s
Integration Tests / test-integration (pull_request) Successful in 1m47s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 6m45s
Unit Tests / test-unit (pull_request) Successful in 2m18s
SDK Tests / sdk_tests_auctions (pull_request) Successful in 12m20s
SDK Tests / sdk_tests (pull_request) Successful in 9m1s
58 lines
1.7 KiB
Go
58 lines
1.7 KiB
Go
package module
|
|
|
|
import (
|
|
autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
|
|
|
|
onboardingv1 "git.vdb.to/cerc-io/laconicd/api/cerc/onboarding/v1"
|
|
)
|
|
|
|
// AutoCLIOptions implements the autocli.HasAutoCLIConfig interface.
|
|
func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
|
|
return &autocliv1.ModuleOptions{
|
|
Query: &autocliv1.ServiceCommandDescriptor{
|
|
Service: onboardingv1.Query_ServiceDesc.ServiceName,
|
|
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
|
|
{
|
|
RpcMethod: "Participants",
|
|
Use: "list",
|
|
Short: "List participants",
|
|
PositionalArgs: []*autocliv1.PositionalArgDescriptor{},
|
|
},
|
|
{
|
|
RpcMethod: "GetParticipantByAddress",
|
|
Use: "get-by-address [address]",
|
|
Short: "Get participant by address",
|
|
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
|
|
{ProtoField: "address"},
|
|
},
|
|
},
|
|
{
|
|
RpcMethod: "GetParticipantByNitroAddress",
|
|
Use: "get-by-nitro-address [nitro_address]",
|
|
Short: "Get participant by nitro address",
|
|
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
|
|
{ProtoField: "nitro_address"},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
// TODO: Use JSON file for input
|
|
Tx: &autocliv1.ServiceCommandDescriptor{
|
|
Service: onboardingv1.Msg_ServiceDesc.ServiceName,
|
|
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
|
|
{
|
|
RpcMethod: "OnboardParticipant",
|
|
Use: "enroll [eth_payload] [eth_signature] [role] [kyc_id]",
|
|
Short: "Enroll a testnet validator",
|
|
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
|
|
{ProtoField: "eth_payload"},
|
|
{ProtoField: "eth_signature"},
|
|
{ProtoField: "role"},
|
|
{ProtoField: "kyc_id"},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|
|
}
|