register interface
This commit is contained in:
parent
5223e1d58e
commit
62fbbe4237
@ -14,14 +14,14 @@ import (
|
||||
|
||||
// GetQueryCmd returns the cli query commands for this module
|
||||
func GetQueryCmd() *cobra.Command {
|
||||
bondQueryCmd := &cobra.Command{
|
||||
nameserviceQueryCmd := &cobra.Command{
|
||||
Use: types.ModuleName,
|
||||
Short: "Querying commands for the nameservice module",
|
||||
DisableFlagParsing: true,
|
||||
SuggestionsMinimumDistance: 2,
|
||||
RunE: client.ValidateCmd,
|
||||
}
|
||||
bondQueryCmd.AddCommand(
|
||||
nameserviceQueryCmd.AddCommand(
|
||||
GetCmdWhoIs(),
|
||||
GetCmdResolve(),
|
||||
GetCmdLookupCRN(),
|
||||
@ -34,7 +34,7 @@ func GetQueryCmd() *cobra.Command {
|
||||
GetCmdBalance(),
|
||||
GetCmdNames(),
|
||||
)
|
||||
return bondQueryCmd
|
||||
return nameserviceQueryCmd
|
||||
}
|
||||
|
||||
// GetCmdWhoIs queries a whois info for a name.
|
||||
|
@ -17,7 +17,7 @@ import (
|
||||
|
||||
// NewTxCmd returns a root CLI command handler for all x/bond transaction commands.
|
||||
func NewTxCmd() *cobra.Command {
|
||||
bondTxCmd := &cobra.Command{
|
||||
nameserviceTxCmd := &cobra.Command{
|
||||
Use: types.ModuleName,
|
||||
Short: "nameservice transaction subcommands",
|
||||
DisableFlagParsing: true,
|
||||
@ -25,7 +25,7 @@ func NewTxCmd() *cobra.Command {
|
||||
RunE: client.ValidateCmd,
|
||||
}
|
||||
|
||||
bondTxCmd.AddCommand(
|
||||
nameserviceTxCmd.AddCommand(
|
||||
GetCmdSetRecord(),
|
||||
GetCmdRenewRecord(),
|
||||
GetCmdAssociateBond(),
|
||||
@ -38,7 +38,7 @@ func NewTxCmd() *cobra.Command {
|
||||
GetCmdDeleteName(),
|
||||
)
|
||||
|
||||
return bondTxCmd
|
||||
return nameserviceTxCmd
|
||||
}
|
||||
|
||||
// GetCmdSetRecord is the CLI command for creating/updating a record.
|
||||
|
@ -44,6 +44,12 @@ func RegisterInterfaces(registry types.InterfaceRegistry) {
|
||||
(*Attributes)(nil),
|
||||
&ServiceProviderRegistration{},
|
||||
)
|
||||
|
||||
registry.RegisterInterface(
|
||||
"vulcanize.nameservice.v1beta1.WebsiteRegistrationRecord",
|
||||
(*Attributes)(nil),
|
||||
&WebsiteRegistrationRecord{},
|
||||
)
|
||||
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user