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