types

package
v1.20.0-rc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 35 Imported by: 2

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// EventTypeNameBound is the type of event generated when a name is bound to an address.
	EventTypeNameBound string = "name_bound"
	// EventTypeNameUnbound is the type of event generated when a name is unbound from an address (deleted).
	EventTypeNameUnbound string = "name_unbound"

	// KeyAttributeName is the key for a name.
	KeyAttributeName string = "name"
	// KeyAttributeAddress is the key for an address.
	KeyAttributeAddress string = "address"
)
View Source
const (
	// ModuleName is the name of the module
	ModuleName = "name"

	// StoreKey is the store key string for distribution
	StoreKey = ModuleName

	// RouterKey is the message route for distribution
	RouterKey = ModuleName
)
View Source
const (
	DefaultMinSegmentLength       = uint32(2)
	DefaultMaxSegmentLength       = uint32(32)
	DefaultMaxNameLevels          = uint32(16)
	DefaultAllowUnrestrictedNames = true
)
View Source
const (
	// ProposalTypeCreateRootName defines the type for a CreateRootNameProposal
	ProposalTypeCreateRootName = "CreateRootName"
	ProposalTypeModifyName     = "ModifyName"
)

Variables

View Source
var (
	// ErrNameNotBound is a sentinel error returned when a name is not bound to an address.
	ErrNameNotBound = cerrs.Register(ModuleName, 2, "no address bound to name")
	// ErrNameAlreadyBound occurs when a bind request is made against an existing name
	ErrNameAlreadyBound = cerrs.Register(ModuleName, 3, "name is already bound to an address")
	// ErrNameInvalid occurs when a name is invalid
	ErrNameInvalid = cerrs.Register(ModuleName, 4, "value provided for name is invalid")
	// ErrNameSegmentTooShort occurs when a segment of a name is shorter than the minimum length
	ErrNameSegmentTooShort = cerrs.Register(ModuleName, 5, "segment of name is too short")
	// ErrNameSegmentTooLong occurs when a segment of a name is longer than the maximum length
	ErrNameSegmentTooLong = cerrs.Register(ModuleName, 6, "segment of name is too long")
	// ErrNameHasTooManySegments occurs when a name has too many segments (names separated by a period)
	ErrNameHasTooManySegments = cerrs.Register(ModuleName, 7, "name has too many segments")
	// ErrInvalidAddress indicates the address given does not match an existing account.
	ErrInvalidAddress = cerrs.Register(ModuleName, 8, "invalid account address")
	// ErrNameContainsSegments indicates a multi-segment name in a single segment context.
	ErrNameContainsSegments = cerrs.Register(ModuleName, 9, "invalid name: \".\" is reserved")
)

x/name module errors

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// NameKeyPrefix is a prefix added to keys for adding/querying names.
	NameKeyPrefix = []byte{0x03}
	// AddressKeyPrefix is a prefix added to keys for indexing name records by address.
	AddressKeyPrefix = []byte{0x05}
	// NameParamStoreKey key for marker module's params
	NameParamStoreKey = []byte{0x06}
)
View Source
var (
	ErrInvalidLengthName        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowName          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupName = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

AllRequestMsgs defines all the Msg*Request messages.

View Source
var Msg_serviceDesc = _Msg_serviceDesc
View Source
var Query_serviceDesc = _Query_serviceDesc

Functions

func GetAddressKeyPrefix

func GetAddressKeyPrefix(addr sdk.AccAddress) (key []byte, err error)

GetAddressKeyPrefix returns a store key for a name record address

func GetNameKeyPrefix

func GetNameKeyPrefix(name string) (key []byte, err error)

GetNameKeyPrefix converts a name into key format.

func IsValidName added in v1.17.0

func IsValidName(name string) bool

IsValidName returns true if the provided name is valid (without consideration of length limits). It is assumed that the name provided has already been normalized using NormalizeName.

func IsValidNameSegment added in v1.17.0

func IsValidNameSegment(segment string) bool

IsValidNameSegment returns true if the provided string is a valid name segment. Name segments can only contain dashes, digits, and lower-case letters. If it's not a uuid, it can have at most one dash.

The length of the segment is not considered here because the length limits are defined in state.

func IsValidUUID added in v1.17.0

func IsValidUUID(str string) bool

IsValidUUID returns true if the provided string is a valid UUID string.

func NormalizeName added in v1.17.0

func NormalizeName(name string) string

NormalizeName lower-cases and strips out spaces around each segment in the provided string.

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

RegisterInterfaces registers concrete implementations for this module.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateAddress added in v1.7.0

func ValidateAddress(address sdk.AccAddress) error

func ValidateName added in v1.17.0

func ValidateName(name string) error

ValidateName returns an error if the provided name is not valid (without consideration of length limits). It is assumed that the name provided has already been normalized using NormalizeName.

func ValidateNameSegment added in v1.17.0

func ValidateNameSegment(segment string) error

ValidateNameSegment returns an error if the provided string is not a valid name segment. Name segments can only contain dashes, digits, and lower-case letters. If it's not a uuid, it can have at most one dash.

The length of the segment is not considered here because the length limits are defined in state.

Types

type AttributeKeeper added in v1.15.0

type AttributeKeeper interface {
	PurgeAttribute(ctx sdk.Context, name string, owner sdk.AccAddress) error
	AccountsByAttribute(ctx sdk.Context, name string) (addresses []sdk.AccAddress, err error)
}

AttributeKeeper defines the expected attribute keeper interface (noalias)

type CreateRootNameProposal deprecated

type CreateRootNameProposal struct {
	// proposal title
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// proposal description
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// the bound name
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// the address the name will resolve to
	Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
	// a flag that indicates if an owner signature is required to add sub-names
	Restricted bool `protobuf:"varint,5,opt,name=restricted,proto3" json:"restricted,omitempty"`
}

CreateRootNameProposal details a proposal to create a new root name that is controlled by a given owner and optionally restricted to the owner for the sole creation of sub names. Deprecated: This legacy proposal is deprecated in favor of Msg-based gov proposals, see MsgCreateRootNameRequest.

Deprecated: Do not use.

func NewCreateRootNameProposal

func NewCreateRootNameProposal(title, description, name string, owner sdk.AccAddress, restricted bool) *CreateRootNameProposal

NewCreateRootNameProposal create a new governance proposal request to create a root name

func (*CreateRootNameProposal) Descriptor

func (*CreateRootNameProposal) Descriptor() ([]byte, []int)

func (CreateRootNameProposal) GetDescription

func (crnp CreateRootNameProposal) GetDescription() string

GetDescription returns the description of a community pool spend proposal.

func (CreateRootNameProposal) GetTitle

func (crnp CreateRootNameProposal) GetTitle() string

GetTitle returns the title of a community pool spend proposal.

func (*CreateRootNameProposal) Marshal

func (m *CreateRootNameProposal) Marshal() (dAtA []byte, err error)

func (*CreateRootNameProposal) MarshalTo

func (m *CreateRootNameProposal) MarshalTo(dAtA []byte) (int, error)

func (*CreateRootNameProposal) MarshalToSizedBuffer

func (m *CreateRootNameProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (CreateRootNameProposal) ProposalRoute

func (crnp CreateRootNameProposal) ProposalRoute() string

ProposalRoute returns the routing key of a community pool spend proposal.

func (CreateRootNameProposal) ProposalType

func (crnp CreateRootNameProposal) ProposalType() string

ProposalType returns the type of a community pool spend proposal.

func (*CreateRootNameProposal) ProtoMessage

func (*CreateRootNameProposal) ProtoMessage()

func (*CreateRootNameProposal) Reset

func (m *CreateRootNameProposal) Reset()

func (*CreateRootNameProposal) Size

func (m *CreateRootNameProposal) Size() (n int)

func (CreateRootNameProposal) String

func (crnp CreateRootNameProposal) String() string

String implements the Stringer interface.

func (*CreateRootNameProposal) Unmarshal

func (m *CreateRootNameProposal) Unmarshal(dAtA []byte) error

func (CreateRootNameProposal) ValidateBasic

func (crnp CreateRootNameProposal) ValidateBasic() error

ValidateBasic runs basic stateless validity checks

func (*CreateRootNameProposal) XXX_DiscardUnknown

func (m *CreateRootNameProposal) XXX_DiscardUnknown()

func (*CreateRootNameProposal) XXX_Marshal

func (m *CreateRootNameProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateRootNameProposal) XXX_Merge

func (m *CreateRootNameProposal) XXX_Merge(src proto.Message)

func (*CreateRootNameProposal) XXX_Size

func (m *CreateRootNameProposal) XXX_Size() int

func (*CreateRootNameProposal) XXX_Unmarshal

func (m *CreateRootNameProposal) XXX_Unmarshal(b []byte) error

type EventNameBound added in v1.1.0

type EventNameBound struct {
	Address    string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Name       string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Restricted bool   `protobuf:"varint,3,opt,name=restricted,proto3" json:"restricted,omitempty"`
}

Event emitted when name is bound.

func NewEventNameBound added in v1.5.0

func NewEventNameBound(address string, name string, restricted bool) *EventNameBound

func (*EventNameBound) Descriptor added in v1.1.0

func (*EventNameBound) Descriptor() ([]byte, []int)

func (*EventNameBound) GetAddress added in v1.1.0

func (m *EventNameBound) GetAddress() string

func (*EventNameBound) GetName added in v1.1.0

func (m *EventNameBound) GetName() string

func (*EventNameBound) GetRestricted added in v1.11.0

func (m *EventNameBound) GetRestricted() bool

func (*EventNameBound) Marshal added in v1.1.0

func (m *EventNameBound) Marshal() (dAtA []byte, err error)

func (*EventNameBound) MarshalTo added in v1.1.0

func (m *EventNameBound) MarshalTo(dAtA []byte) (int, error)

func (*EventNameBound) MarshalToSizedBuffer added in v1.1.0

func (m *EventNameBound) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventNameBound) ProtoMessage added in v1.1.0

func (*EventNameBound) ProtoMessage()

func (*EventNameBound) Reset added in v1.1.0

func (m *EventNameBound) Reset()

func (*EventNameBound) Size added in v1.1.0

func (m *EventNameBound) Size() (n int)

func (*EventNameBound) String added in v1.1.0

func (m *EventNameBound) String() string

func (*EventNameBound) Unmarshal added in v1.1.0

func (m *EventNameBound) Unmarshal(dAtA []byte) error

func (*EventNameBound) XXX_DiscardUnknown added in v1.1.0

func (m *EventNameBound) XXX_DiscardUnknown()

func (*EventNameBound) XXX_Marshal added in v1.1.0

func (m *EventNameBound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventNameBound) XXX_Merge added in v1.1.0

func (m *EventNameBound) XXX_Merge(src proto.Message)

func (*EventNameBound) XXX_Size added in v1.1.0

func (m *EventNameBound) XXX_Size() int

func (*EventNameBound) XXX_Unmarshal added in v1.1.0

func (m *EventNameBound) XXX_Unmarshal(b []byte) error

type EventNameParamsUpdated added in v1.19.0

type EventNameParamsUpdated struct {
	AllowUnrestrictedNames string `` /* 129-byte string literal not displayed */
	MaxNameLevels          string `protobuf:"bytes,2,opt,name=max_name_levels,json=maxNameLevels,proto3" json:"max_name_levels,omitempty"`
	MinSegmentLength       string `protobuf:"bytes,3,opt,name=min_segment_length,json=minSegmentLength,proto3" json:"min_segment_length,omitempty"`
	MaxSegmentLength       string `protobuf:"bytes,4,opt,name=max_segment_length,json=maxSegmentLength,proto3" json:"max_segment_length,omitempty"`
}

EventNameParamsUpdated event emitted when name params are updated.

func NewEventNameParamsUpdated added in v1.19.0

func NewEventNameParamsUpdated(allowUnrestrictedNames bool, maxNameLevels, minSegmentLength, maxSegmentLength uint32) *EventNameParamsUpdated

NewEventNameParamsUpdated returns a new instance of EventNameParamsUpdated

func (*EventNameParamsUpdated) Descriptor added in v1.19.0

func (*EventNameParamsUpdated) Descriptor() ([]byte, []int)

func (*EventNameParamsUpdated) GetAllowUnrestrictedNames added in v1.19.0

func (m *EventNameParamsUpdated) GetAllowUnrestrictedNames() string

func (*EventNameParamsUpdated) GetMaxNameLevels added in v1.19.0

func (m *EventNameParamsUpdated) GetMaxNameLevels() string

func (*EventNameParamsUpdated) GetMaxSegmentLength added in v1.19.0

func (m *EventNameParamsUpdated) GetMaxSegmentLength() string

func (*EventNameParamsUpdated) GetMinSegmentLength added in v1.19.0

func (m *EventNameParamsUpdated) GetMinSegmentLength() string

func (*EventNameParamsUpdated) Marshal added in v1.19.0

func (m *EventNameParamsUpdated) Marshal() (dAtA []byte, err error)

func (*EventNameParamsUpdated) MarshalTo added in v1.19.0

func (m *EventNameParamsUpdated) MarshalTo(dAtA []byte) (int, error)

func (*EventNameParamsUpdated) MarshalToSizedBuffer added in v1.19.0

func (m *EventNameParamsUpdated) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventNameParamsUpdated) ProtoMessage added in v1.19.0

func (*EventNameParamsUpdated) ProtoMessage()

func (*EventNameParamsUpdated) Reset added in v1.19.0

func (m *EventNameParamsUpdated) Reset()

func (*EventNameParamsUpdated) Size added in v1.19.0

func (m *EventNameParamsUpdated) Size() (n int)

func (*EventNameParamsUpdated) String added in v1.19.0

func (m *EventNameParamsUpdated) String() string

func (*EventNameParamsUpdated) Unmarshal added in v1.19.0

func (m *EventNameParamsUpdated) Unmarshal(dAtA []byte) error

func (*EventNameParamsUpdated) XXX_DiscardUnknown added in v1.19.0

func (m *EventNameParamsUpdated) XXX_DiscardUnknown()

func (*EventNameParamsUpdated) XXX_Marshal added in v1.19.0

func (m *EventNameParamsUpdated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventNameParamsUpdated) XXX_Merge added in v1.19.0

func (m *EventNameParamsUpdated) XXX_Merge(src proto.Message)

func (*EventNameParamsUpdated) XXX_Size added in v1.19.0

func (m *EventNameParamsUpdated) XXX_Size() int

func (*EventNameParamsUpdated) XXX_Unmarshal added in v1.19.0

func (m *EventNameParamsUpdated) XXX_Unmarshal(b []byte) error

type EventNameUnbound added in v1.1.0

type EventNameUnbound struct {
	Address    string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Name       string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Restricted bool   `protobuf:"varint,3,opt,name=restricted,proto3" json:"restricted,omitempty"`
}

Event emitted when name is unbound.

func NewEventNameUnbound added in v1.5.0

func NewEventNameUnbound(address string, name string, restricted bool) *EventNameUnbound

func (*EventNameUnbound) Descriptor added in v1.1.0

func (*EventNameUnbound) Descriptor() ([]byte, []int)

func (*EventNameUnbound) GetAddress added in v1.1.0

func (m *EventNameUnbound) GetAddress() string

func (*EventNameUnbound) GetName added in v1.1.0

func (m *EventNameUnbound) GetName() string

func (*EventNameUnbound) GetRestricted added in v1.11.0

func (m *EventNameUnbound) GetRestricted() bool

func (*EventNameUnbound) Marshal added in v1.1.0

func (m *EventNameUnbound) Marshal() (dAtA []byte, err error)

func (*EventNameUnbound) MarshalTo added in v1.1.0

func (m *EventNameUnbound) MarshalTo(dAtA []byte) (int, error)

func (*EventNameUnbound) MarshalToSizedBuffer added in v1.1.0

func (m *EventNameUnbound) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventNameUnbound) ProtoMessage added in v1.1.0

func (*EventNameUnbound) ProtoMessage()

func (*EventNameUnbound) Reset added in v1.1.0

func (m *EventNameUnbound) Reset()

func (*EventNameUnbound) Size added in v1.1.0

func (m *EventNameUnbound) Size() (n int)

func (*EventNameUnbound) String added in v1.1.0

func (m *EventNameUnbound) String() string

func (*EventNameUnbound) Unmarshal added in v1.1.0

func (m *EventNameUnbound) Unmarshal(dAtA []byte) error

func (*EventNameUnbound) XXX_DiscardUnknown added in v1.1.0

func (m *EventNameUnbound) XXX_DiscardUnknown()

func (*EventNameUnbound) XXX_Marshal added in v1.1.0

func (m *EventNameUnbound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventNameUnbound) XXX_Merge added in v1.1.0

func (m *EventNameUnbound) XXX_Merge(src proto.Message)

func (*EventNameUnbound) XXX_Size added in v1.1.0

func (m *EventNameUnbound) XXX_Size() int

func (*EventNameUnbound) XXX_Unmarshal added in v1.1.0

func (m *EventNameUnbound) XXX_Unmarshal(b []byte) error

type EventNameUpdate added in v1.14.0

type EventNameUpdate struct {
	Address    string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Name       string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Restricted bool   `protobuf:"varint,3,opt,name=restricted,proto3" json:"restricted,omitempty"`
}

Event emitted when name is updated.

func NewEventNameUpdate added in v1.14.0

func NewEventNameUpdate(address string, name string, restricted bool) *EventNameUpdate

func (*EventNameUpdate) Descriptor added in v1.14.0

func (*EventNameUpdate) Descriptor() ([]byte, []int)

func (*EventNameUpdate) GetAddress added in v1.14.0

func (m *EventNameUpdate) GetAddress() string

func (*EventNameUpdate) GetName added in v1.14.0

func (m *EventNameUpdate) GetName() string

func (*EventNameUpdate) GetRestricted added in v1.14.0

func (m *EventNameUpdate) GetRestricted() bool

func (*EventNameUpdate) Marshal added in v1.14.0

func (m *EventNameUpdate) Marshal() (dAtA []byte, err error)

func (*EventNameUpdate) MarshalTo added in v1.14.0

func (m *EventNameUpdate) MarshalTo(dAtA []byte) (int, error)

func (*EventNameUpdate) MarshalToSizedBuffer added in v1.14.0

func (m *EventNameUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventNameUpdate) ProtoMessage added in v1.14.0

func (*EventNameUpdate) ProtoMessage()

func (*EventNameUpdate) Reset added in v1.14.0

func (m *EventNameUpdate) Reset()

func (*EventNameUpdate) Size added in v1.14.0

func (m *EventNameUpdate) Size() (n int)

func (*EventNameUpdate) String added in v1.14.0

func (m *EventNameUpdate) String() string

func (*EventNameUpdate) Unmarshal added in v1.14.0

func (m *EventNameUpdate) Unmarshal(dAtA []byte) error

func (*EventNameUpdate) XXX_DiscardUnknown added in v1.14.0

func (m *EventNameUpdate) XXX_DiscardUnknown()

func (*EventNameUpdate) XXX_Marshal added in v1.14.0

func (m *EventNameUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventNameUpdate) XXX_Merge added in v1.14.0

func (m *EventNameUpdate) XXX_Merge(src proto.Message)

func (*EventNameUpdate) XXX_Size added in v1.14.0

func (m *EventNameUpdate) XXX_Size() int

func (*EventNameUpdate) XXX_Unmarshal added in v1.14.0

func (m *EventNameUpdate) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	// params defines all the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// bindings defines all the name records present at genesis
	Bindings []NameRecord `protobuf:"bytes,2,rep,name=bindings,proto3" json:"bindings"`
}

GenesisState defines the name module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns the initial set of name -> address bindings.

func GetGenesisStateFromAppState

func GetGenesisStateFromAppState(cdc codec.Codec, appState map[string]json.RawMessage) *GenesisState

GetGenesisStateFromAppState returns x/name GenesisState given raw application genesis state.

func NewGenesisState

func NewGenesisState(params Params, nameRecords NameRecords) *GenesisState

NewGenesisState creates a new GenesisState object

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (state GenesisState) Validate() error

Validate ensures a genesis state is valid.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type MsgBindNameRequest

type MsgBindNameRequest struct {
	// The parent record to bind this name under.
	Parent NameRecord `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent"`
	// The name record to bind under the parent
	Record NameRecord `protobuf:"bytes,2,opt,name=record,proto3" json:"record"`
}

MsgBindNameRequest defines an sdk.Msg type that is used to add an address/name binding under an optional parent name. The record may optionally be restricted to prevent additional names from being added under this one without the owner signing the request.

func NewMsgBindNameRequest

func NewMsgBindNameRequest(record, parent NameRecord) *MsgBindNameRequest

func (*MsgBindNameRequest) Descriptor

func (*MsgBindNameRequest) Descriptor() ([]byte, []int)

func (*MsgBindNameRequest) Marshal

func (m *MsgBindNameRequest) Marshal() (dAtA []byte, err error)

func (*MsgBindNameRequest) MarshalTo

func (m *MsgBindNameRequest) MarshalTo(dAtA []byte) (int, error)

func (*MsgBindNameRequest) MarshalToSizedBuffer

func (m *MsgBindNameRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBindNameRequest) ProtoMessage

func (*MsgBindNameRequest) ProtoMessage()

func (*MsgBindNameRequest) Reset

func (m *MsgBindNameRequest) Reset()

func (*MsgBindNameRequest) Size

func (m *MsgBindNameRequest) Size() (n int)

func (*MsgBindNameRequest) String

func (m *MsgBindNameRequest) String() string

func (*MsgBindNameRequest) Unmarshal

func (m *MsgBindNameRequest) Unmarshal(dAtA []byte) error

func (MsgBindNameRequest) ValidateBasic

func (msg MsgBindNameRequest) ValidateBasic() error

func (*MsgBindNameRequest) XXX_DiscardUnknown

func (m *MsgBindNameRequest) XXX_DiscardUnknown()

func (*MsgBindNameRequest) XXX_Marshal

func (m *MsgBindNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBindNameRequest) XXX_Merge

func (m *MsgBindNameRequest) XXX_Merge(src proto.Message)

func (*MsgBindNameRequest) XXX_Size

func (m *MsgBindNameRequest) XXX_Size() int

func (*MsgBindNameRequest) XXX_Unmarshal

func (m *MsgBindNameRequest) XXX_Unmarshal(b []byte) error

type MsgBindNameResponse

type MsgBindNameResponse struct {
}

MsgBindNameResponse defines the Msg/BindName response type.

func (*MsgBindNameResponse) Descriptor

func (*MsgBindNameResponse) Descriptor() ([]byte, []int)

func (*MsgBindNameResponse) Marshal

func (m *MsgBindNameResponse) Marshal() (dAtA []byte, err error)

func (*MsgBindNameResponse) MarshalTo

func (m *MsgBindNameResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgBindNameResponse) MarshalToSizedBuffer

func (m *MsgBindNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBindNameResponse) ProtoMessage

func (*MsgBindNameResponse) ProtoMessage()

func (*MsgBindNameResponse) Reset

func (m *MsgBindNameResponse) Reset()

func (*MsgBindNameResponse) Size

func (m *MsgBindNameResponse) Size() (n int)

func (*MsgBindNameResponse) String

func (m *MsgBindNameResponse) String() string

func (*MsgBindNameResponse) Unmarshal

func (m *MsgBindNameResponse) Unmarshal(dAtA []byte) error

func (*MsgBindNameResponse) XXX_DiscardUnknown

func (m *MsgBindNameResponse) XXX_DiscardUnknown()

func (*MsgBindNameResponse) XXX_Marshal

func (m *MsgBindNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBindNameResponse) XXX_Merge

func (m *MsgBindNameResponse) XXX_Merge(src proto.Message)

func (*MsgBindNameResponse) XXX_Size

func (m *MsgBindNameResponse) XXX_Size() int

func (*MsgBindNameResponse) XXX_Unmarshal

func (m *MsgBindNameResponse) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	// BindName binds a name to an address under a root name.
	BindName(ctx context.Context, in *MsgBindNameRequest, opts ...grpc.CallOption) (*MsgBindNameResponse, error)
	// DeleteName defines a method to verify a particular invariance.
	DeleteName(ctx context.Context, in *MsgDeleteNameRequest, opts ...grpc.CallOption) (*MsgDeleteNameResponse, error)
	// ModifyName defines a method to modify the attributes of an existing name.
	ModifyName(ctx context.Context, in *MsgModifyNameRequest, opts ...grpc.CallOption) (*MsgModifyNameResponse, error)
	// CreateRootName defines a governance method for creating a root name.
	CreateRootName(ctx context.Context, in *MsgCreateRootNameRequest, opts ...grpc.CallOption) (*MsgCreateRootNameResponse, error)
	// UpdateParams is a governance proposal endpoint for updating the name module's params.
	UpdateParams(ctx context.Context, in *MsgUpdateParamsRequest, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgCreateRootNameRequest added in v1.14.0

type MsgCreateRootNameRequest struct {
	// The signing authority for the request
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// NameRecord is a structure used to bind ownership of a name hierarchy to a collection of addresses
	Record *NameRecord `protobuf:"bytes,2,opt,name=record,proto3" json:"record,omitempty"`
}

MsgCreateRootNameRequest defines an sdk.Msg type to create a new root name that is controlled by a given owner and optionally restricted to the owner for the sole creation of sub names.

func NewMsgCreateRootNameRequest added in v1.14.0

func NewMsgCreateRootNameRequest(authority string, name string, address string, restricted bool) *MsgCreateRootNameRequest

func (*MsgCreateRootNameRequest) Descriptor added in v1.14.0

func (*MsgCreateRootNameRequest) Descriptor() ([]byte, []int)

func (*MsgCreateRootNameRequest) GetAuthority added in v1.14.0

func (m *MsgCreateRootNameRequest) GetAuthority() string

func (*MsgCreateRootNameRequest) GetRecord added in v1.14.0

func (m *MsgCreateRootNameRequest) GetRecord() *NameRecord

func (*MsgCreateRootNameRequest) Marshal added in v1.14.0

func (m *MsgCreateRootNameRequest) Marshal() (dAtA []byte, err error)

func (*MsgCreateRootNameRequest) MarshalTo added in v1.14.0

func (m *MsgCreateRootNameRequest) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateRootNameRequest) MarshalToSizedBuffer added in v1.14.0

func (m *MsgCreateRootNameRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateRootNameRequest) ProtoMessage added in v1.14.0

func (*MsgCreateRootNameRequest) ProtoMessage()

func (*MsgCreateRootNameRequest) Reset added in v1.14.0

func (m *MsgCreateRootNameRequest) Reset()

func (*MsgCreateRootNameRequest) Size added in v1.14.0

func (m *MsgCreateRootNameRequest) Size() (n int)

func (*MsgCreateRootNameRequest) String added in v1.14.0

func (m *MsgCreateRootNameRequest) String() string

func (*MsgCreateRootNameRequest) Unmarshal added in v1.14.0

func (m *MsgCreateRootNameRequest) Unmarshal(dAtA []byte) error

func (MsgCreateRootNameRequest) ValidateBasic added in v1.14.0

func (msg MsgCreateRootNameRequest) ValidateBasic() error

func (*MsgCreateRootNameRequest) XXX_DiscardUnknown added in v1.14.0

func (m *MsgCreateRootNameRequest) XXX_DiscardUnknown()

func (*MsgCreateRootNameRequest) XXX_Marshal added in v1.14.0

func (m *MsgCreateRootNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateRootNameRequest) XXX_Merge added in v1.14.0

func (m *MsgCreateRootNameRequest) XXX_Merge(src proto.Message)

func (*MsgCreateRootNameRequest) XXX_Size added in v1.14.0

func (m *MsgCreateRootNameRequest) XXX_Size() int

func (*MsgCreateRootNameRequest) XXX_Unmarshal added in v1.14.0

func (m *MsgCreateRootNameRequest) XXX_Unmarshal(b []byte) error

type MsgCreateRootNameResponse added in v1.14.0

type MsgCreateRootNameResponse struct {
}

MsgCreateRootNameResponse defines Msg/CreateRootName response type.

func (*MsgCreateRootNameResponse) Descriptor added in v1.14.0

func (*MsgCreateRootNameResponse) Descriptor() ([]byte, []int)

func (*MsgCreateRootNameResponse) Marshal added in v1.14.0

func (m *MsgCreateRootNameResponse) Marshal() (dAtA []byte, err error)

func (*MsgCreateRootNameResponse) MarshalTo added in v1.14.0

func (m *MsgCreateRootNameResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateRootNameResponse) MarshalToSizedBuffer added in v1.14.0

func (m *MsgCreateRootNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateRootNameResponse) ProtoMessage added in v1.14.0

func (*MsgCreateRootNameResponse) ProtoMessage()

func (*MsgCreateRootNameResponse) Reset added in v1.14.0

func (m *MsgCreateRootNameResponse) Reset()

func (*MsgCreateRootNameResponse) Size added in v1.14.0

func (m *MsgCreateRootNameResponse) Size() (n int)

func (*MsgCreateRootNameResponse) String added in v1.14.0

func (m *MsgCreateRootNameResponse) String() string

func (*MsgCreateRootNameResponse) Unmarshal added in v1.14.0

func (m *MsgCreateRootNameResponse) Unmarshal(dAtA []byte) error

func (*MsgCreateRootNameResponse) XXX_DiscardUnknown added in v1.14.0

func (m *MsgCreateRootNameResponse) XXX_DiscardUnknown()

func (*MsgCreateRootNameResponse) XXX_Marshal added in v1.14.0

func (m *MsgCreateRootNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateRootNameResponse) XXX_Merge added in v1.14.0

func (m *MsgCreateRootNameResponse) XXX_Merge(src proto.Message)

func (*MsgCreateRootNameResponse) XXX_Size added in v1.14.0

func (m *MsgCreateRootNameResponse) XXX_Size() int

func (*MsgCreateRootNameResponse) XXX_Unmarshal added in v1.14.0

func (m *MsgCreateRootNameResponse) XXX_Unmarshal(b []byte) error

type MsgDeleteNameRequest

type MsgDeleteNameRequest struct {
	// The record being removed
	Record NameRecord `protobuf:"bytes,1,opt,name=record,proto3" json:"record"`
}

MsgDeleteNameRequest defines an sdk.Msg type that is used to remove an existing address/name binding. The binding may not have any child names currently bound for this request to be successful. All associated attributes on account addresses will be deleted.

func NewMsgDeleteNameRequest

func NewMsgDeleteNameRequest(record NameRecord) *MsgDeleteNameRequest

func (*MsgDeleteNameRequest) Descriptor

func (*MsgDeleteNameRequest) Descriptor() ([]byte, []int)

func (*MsgDeleteNameRequest) Marshal

func (m *MsgDeleteNameRequest) Marshal() (dAtA []byte, err error)

func (*MsgDeleteNameRequest) MarshalTo

func (m *MsgDeleteNameRequest) MarshalTo(dAtA []byte) (int, error)

func (*MsgDeleteNameRequest) MarshalToSizedBuffer

func (m *MsgDeleteNameRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDeleteNameRequest) ProtoMessage

func (*MsgDeleteNameRequest) ProtoMessage()

func (*MsgDeleteNameRequest) Reset

func (m *MsgDeleteNameRequest) Reset()

func (*MsgDeleteNameRequest) Size

func (m *MsgDeleteNameRequest) Size() (n int)

func (*MsgDeleteNameRequest) String

func (m *MsgDeleteNameRequest) String() string

func (*MsgDeleteNameRequest) Unmarshal

func (m *MsgDeleteNameRequest) Unmarshal(dAtA []byte) error

func (MsgDeleteNameRequest) ValidateBasic

func (msg MsgDeleteNameRequest) ValidateBasic() error

func (*MsgDeleteNameRequest) XXX_DiscardUnknown

func (m *MsgDeleteNameRequest) XXX_DiscardUnknown()

func (*MsgDeleteNameRequest) XXX_Marshal

func (m *MsgDeleteNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDeleteNameRequest) XXX_Merge

func (m *MsgDeleteNameRequest) XXX_Merge(src proto.Message)

func (*MsgDeleteNameRequest) XXX_Size

func (m *MsgDeleteNameRequest) XXX_Size() int

func (*MsgDeleteNameRequest) XXX_Unmarshal

func (m *MsgDeleteNameRequest) XXX_Unmarshal(b []byte) error

type MsgDeleteNameResponse

type MsgDeleteNameResponse struct {
}

MsgDeleteNameResponse defines the Msg/DeleteName response type.

func (*MsgDeleteNameResponse) Descriptor

func (*MsgDeleteNameResponse) Descriptor() ([]byte, []int)

func (*MsgDeleteNameResponse) Marshal

func (m *MsgDeleteNameResponse) Marshal() (dAtA []byte, err error)

func (*MsgDeleteNameResponse) MarshalTo

func (m *MsgDeleteNameResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgDeleteNameResponse) MarshalToSizedBuffer

func (m *MsgDeleteNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDeleteNameResponse) ProtoMessage

func (*MsgDeleteNameResponse) ProtoMessage()

func (*MsgDeleteNameResponse) Reset

func (m *MsgDeleteNameResponse) Reset()

func (*MsgDeleteNameResponse) Size

func (m *MsgDeleteNameResponse) Size() (n int)

func (*MsgDeleteNameResponse) String

func (m *MsgDeleteNameResponse) String() string

func (*MsgDeleteNameResponse) Unmarshal

func (m *MsgDeleteNameResponse) Unmarshal(dAtA []byte) error

func (*MsgDeleteNameResponse) XXX_DiscardUnknown

func (m *MsgDeleteNameResponse) XXX_DiscardUnknown()

func (*MsgDeleteNameResponse) XXX_Marshal

func (m *MsgDeleteNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDeleteNameResponse) XXX_Merge

func (m *MsgDeleteNameResponse) XXX_Merge(src proto.Message)

func (*MsgDeleteNameResponse) XXX_Size

func (m *MsgDeleteNameResponse) XXX_Size() int

func (*MsgDeleteNameResponse) XXX_Unmarshal

func (m *MsgDeleteNameResponse) XXX_Unmarshal(b []byte) error

type MsgModifyNameRequest added in v1.14.0

type MsgModifyNameRequest struct {
	// The address signing the message
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// The record being updated
	Record NameRecord `protobuf:"bytes,2,opt,name=record,proto3" json:"record"`
}

MsgModifyNameRequest defines a governance method that is used to update an existing address/name binding.

func NewMsgModifyNameRequest added in v1.14.0

func NewMsgModifyNameRequest(authority string, name string, owner sdk.AccAddress, restricted bool) *MsgModifyNameRequest

func (*MsgModifyNameRequest) Descriptor added in v1.14.0

func (*MsgModifyNameRequest) Descriptor() ([]byte, []int)

func (*MsgModifyNameRequest) GetAuthority added in v1.14.0

func (m *MsgModifyNameRequest) GetAuthority() string

func (*MsgModifyNameRequest) GetRecord added in v1.14.0

func (m *MsgModifyNameRequest) GetRecord() NameRecord

func (*MsgModifyNameRequest) Marshal added in v1.14.0

func (m *MsgModifyNameRequest) Marshal() (dAtA []byte, err error)

func (*MsgModifyNameRequest) MarshalTo added in v1.14.0

func (m *MsgModifyNameRequest) MarshalTo(dAtA []byte) (int, error)

func (*MsgModifyNameRequest) MarshalToSizedBuffer added in v1.14.0

func (m *MsgModifyNameRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgModifyNameRequest) ProtoMessage added in v1.14.0

func (*MsgModifyNameRequest) ProtoMessage()

func (*MsgModifyNameRequest) Reset added in v1.14.0

func (m *MsgModifyNameRequest) Reset()

func (*MsgModifyNameRequest) Size added in v1.14.0

func (m *MsgModifyNameRequest) Size() (n int)

func (*MsgModifyNameRequest) String added in v1.14.0

func (m *MsgModifyNameRequest) String() string

func (*MsgModifyNameRequest) Unmarshal added in v1.14.0

func (m *MsgModifyNameRequest) Unmarshal(dAtA []byte) error

func (MsgModifyNameRequest) ValidateBasic added in v1.14.0

func (msg MsgModifyNameRequest) ValidateBasic() error

func (*MsgModifyNameRequest) XXX_DiscardUnknown added in v1.14.0

func (m *MsgModifyNameRequest) XXX_DiscardUnknown()

func (*MsgModifyNameRequest) XXX_Marshal added in v1.14.0

func (m *MsgModifyNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgModifyNameRequest) XXX_Merge added in v1.14.0

func (m *MsgModifyNameRequest) XXX_Merge(src proto.Message)

func (*MsgModifyNameRequest) XXX_Size added in v1.14.0

func (m *MsgModifyNameRequest) XXX_Size() int

func (*MsgModifyNameRequest) XXX_Unmarshal added in v1.14.0

func (m *MsgModifyNameRequest) XXX_Unmarshal(b []byte) error

type MsgModifyNameResponse added in v1.14.0

type MsgModifyNameResponse struct {
}

MsgModifyNameResponse defines the Msg/ModifyName response type.

func (*MsgModifyNameResponse) Descriptor added in v1.14.0

func (*MsgModifyNameResponse) Descriptor() ([]byte, []int)

func (*MsgModifyNameResponse) Marshal added in v1.14.0

func (m *MsgModifyNameResponse) Marshal() (dAtA []byte, err error)

func (*MsgModifyNameResponse) MarshalTo added in v1.14.0

func (m *MsgModifyNameResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgModifyNameResponse) MarshalToSizedBuffer added in v1.14.0

func (m *MsgModifyNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgModifyNameResponse) ProtoMessage added in v1.14.0

func (*MsgModifyNameResponse) ProtoMessage()

func (*MsgModifyNameResponse) Reset added in v1.14.0

func (m *MsgModifyNameResponse) Reset()

func (*MsgModifyNameResponse) Size added in v1.14.0

func (m *MsgModifyNameResponse) Size() (n int)

func (*MsgModifyNameResponse) String added in v1.14.0

func (m *MsgModifyNameResponse) String() string

func (*MsgModifyNameResponse) Unmarshal added in v1.14.0

func (m *MsgModifyNameResponse) Unmarshal(dAtA []byte) error

func (*MsgModifyNameResponse) XXX_DiscardUnknown added in v1.14.0

func (m *MsgModifyNameResponse) XXX_DiscardUnknown()

func (*MsgModifyNameResponse) XXX_Marshal added in v1.14.0

func (m *MsgModifyNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgModifyNameResponse) XXX_Merge added in v1.14.0

func (m *MsgModifyNameResponse) XXX_Merge(src proto.Message)

func (*MsgModifyNameResponse) XXX_Size added in v1.14.0

func (m *MsgModifyNameResponse) XXX_Size() int

func (*MsgModifyNameResponse) XXX_Unmarshal added in v1.14.0

func (m *MsgModifyNameResponse) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	// BindName binds a name to an address under a root name.
	BindName(context.Context, *MsgBindNameRequest) (*MsgBindNameResponse, error)
	// DeleteName defines a method to verify a particular invariance.
	DeleteName(context.Context, *MsgDeleteNameRequest) (*MsgDeleteNameResponse, error)
	// ModifyName defines a method to modify the attributes of an existing name.
	ModifyName(context.Context, *MsgModifyNameRequest) (*MsgModifyNameResponse, error)
	// CreateRootName defines a governance method for creating a root name.
	CreateRootName(context.Context, *MsgCreateRootNameRequest) (*MsgCreateRootNameResponse, error)
	// UpdateParams is a governance proposal endpoint for updating the name module's params.
	UpdateParams(context.Context, *MsgUpdateParamsRequest) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateParamsRequest added in v1.19.0

type MsgUpdateParamsRequest struct {
	// authority should be the governance module account address.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params are the new param values to set.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParamsRequest is a request message for the UpdateParams endpoint.

func NewMsgUpdateParamsRequest added in v1.19.0

func NewMsgUpdateParamsRequest(
	maxSegmentLength uint32,
	minSegmentLength uint32,
	maxNameLevels uint32,
	allowUnrestrictedNames bool,
	authority string,
) *MsgUpdateParamsRequest

func (*MsgUpdateParamsRequest) Descriptor added in v1.19.0

func (*MsgUpdateParamsRequest) Descriptor() ([]byte, []int)

func (*MsgUpdateParamsRequest) GetAuthority added in v1.19.0

func (m *MsgUpdateParamsRequest) GetAuthority() string

func (*MsgUpdateParamsRequest) GetParams added in v1.19.0

func (m *MsgUpdateParamsRequest) GetParams() Params

func (*MsgUpdateParamsRequest) Marshal added in v1.19.0

func (m *MsgUpdateParamsRequest) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParamsRequest) MarshalTo added in v1.19.0

func (m *MsgUpdateParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParamsRequest) MarshalToSizedBuffer added in v1.19.0

func (m *MsgUpdateParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParamsRequest) ProtoMessage added in v1.19.0

func (*MsgUpdateParamsRequest) ProtoMessage()

func (*MsgUpdateParamsRequest) Reset added in v1.19.0

func (m *MsgUpdateParamsRequest) Reset()

func (*MsgUpdateParamsRequest) Size added in v1.19.0

func (m *MsgUpdateParamsRequest) Size() (n int)

func (*MsgUpdateParamsRequest) String added in v1.19.0

func (m *MsgUpdateParamsRequest) String() string

func (*MsgUpdateParamsRequest) Unmarshal added in v1.19.0

func (m *MsgUpdateParamsRequest) Unmarshal(dAtA []byte) error

func (MsgUpdateParamsRequest) ValidateBasic added in v1.19.0

func (msg MsgUpdateParamsRequest) ValidateBasic() error

func (*MsgUpdateParamsRequest) XXX_DiscardUnknown added in v1.19.0

func (m *MsgUpdateParamsRequest) XXX_DiscardUnknown()

func (*MsgUpdateParamsRequest) XXX_Marshal added in v1.19.0

func (m *MsgUpdateParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateParamsRequest) XXX_Merge added in v1.19.0

func (m *MsgUpdateParamsRequest) XXX_Merge(src proto.Message)

func (*MsgUpdateParamsRequest) XXX_Size added in v1.19.0

func (m *MsgUpdateParamsRequest) XXX_Size() int

func (*MsgUpdateParamsRequest) XXX_Unmarshal added in v1.19.0

func (m *MsgUpdateParamsRequest) XXX_Unmarshal(b []byte) error

type MsgUpdateParamsResponse added in v1.19.0

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse is a response message for the UpdateParams endpoint.

func (*MsgUpdateParamsResponse) Descriptor added in v1.19.0

func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateParamsResponse) Marshal added in v1.19.0

func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParamsResponse) MarshalTo added in v1.19.0

func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer added in v1.19.0

func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) ProtoMessage added in v1.19.0

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset added in v1.19.0

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size added in v1.19.0

func (m *MsgUpdateParamsResponse) Size() (n int)

func (*MsgUpdateParamsResponse) String added in v1.19.0

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal added in v1.19.0

func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown added in v1.19.0

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal added in v1.19.0

func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateParamsResponse) XXX_Merge added in v1.19.0

func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateParamsResponse) XXX_Size added in v1.19.0

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal added in v1.19.0

func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error

type NameRecord

type NameRecord struct {
	// the bound name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// the address the name resolved to
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// whether owner signature is required to add sub-names
	Restricted bool `protobuf:"varint,3,opt,name=restricted,proto3" json:"restricted,omitempty"`
}

NameRecord is a structure used to bind ownership of a name hierarchy to a collection of addresses

func NewNameRecord

func NewNameRecord(name string, address sdk.AccAddress, restricted bool) NameRecord

NewNameRecord creates a name record binding that is restricted for child updates to the owner.

func (*NameRecord) Descriptor

func (*NameRecord) Descriptor() ([]byte, []int)

func (*NameRecord) GetAddress

func (m *NameRecord) GetAddress() string

func (*NameRecord) GetName

func (m *NameRecord) GetName() string

func (*NameRecord) GetRestricted

func (m *NameRecord) GetRestricted() bool

func (*NameRecord) Marshal

func (m *NameRecord) Marshal() (dAtA []byte, err error)

func (*NameRecord) MarshalTo

func (m *NameRecord) MarshalTo(dAtA []byte) (int, error)

func (*NameRecord) MarshalToSizedBuffer

func (m *NameRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NameRecord) ProtoMessage

func (*NameRecord) ProtoMessage()

func (*NameRecord) Reset

func (m *NameRecord) Reset()

func (*NameRecord) Size

func (m *NameRecord) Size() (n int)

func (NameRecord) String

func (nr NameRecord) String() string

implement fmt.Stringer

func (*NameRecord) Unmarshal

func (m *NameRecord) Unmarshal(dAtA []byte) error

func (NameRecord) Validate added in v1.14.0

func (nr NameRecord) Validate() error

Validate performs basic stateless validity checks.

func (*NameRecord) XXX_DiscardUnknown

func (m *NameRecord) XXX_DiscardUnknown()

func (*NameRecord) XXX_Marshal

func (m *NameRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NameRecord) XXX_Merge

func (m *NameRecord) XXX_Merge(src proto.Message)

func (*NameRecord) XXX_Size

func (m *NameRecord) XXX_Size() int

func (*NameRecord) XXX_Unmarshal

func (m *NameRecord) XXX_Unmarshal(b []byte) error

type NameRecords

type NameRecords []NameRecord

NameRecords within the GenesisState

func (NameRecords) Contains

func (nrs NameRecords) Contains(name string) bool

Contains returns true if the given name exists in a slice of NameRecord genesis objects.

type ParamSubspace

type ParamSubspace interface {
	Get(ctx sdk.Context, key []byte, ptr interface{})
	Set(ctx sdk.Context, key []byte, param interface{})
}

ParamSubspace defines the expected Subspace interface for parameters (noalias)

type Params

type Params struct {
	// maximum length of name segment to allow
	MaxSegmentLength uint32 `protobuf:"varint,1,opt,name=max_segment_length,json=maxSegmentLength,proto3" json:"max_segment_length,omitempty"`
	// minimum length of name segment to allow
	MinSegmentLength uint32 `protobuf:"varint,2,opt,name=min_segment_length,json=minSegmentLength,proto3" json:"min_segment_length,omitempty"`
	// maximum number of name segments to allow.  Example: `foo.bar.baz` would be 3
	MaxNameLevels uint32 `protobuf:"varint,3,opt,name=max_name_levels,json=maxNameLevels,proto3" json:"max_name_levels,omitempty"`
	// determines if unrestricted name keys are allowed or not
	AllowUnrestrictedNames bool `` /* 130-byte string literal not displayed */
}

Params defines the set of params for the name module.

func DefaultParams

func DefaultParams() Params

DefaultParams defines the parameters for this module

func NewParams

func NewParams(
	maxSegmentLength uint32,
	minSegmentLength uint32,
	maxNameLevels uint32,
	allowUnrestrictedNames bool,
) Params

NewParams creates a new parameter object

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Equal added in v1.0.0

func (p *Params) Equal(that interface{}) bool

Equal returns true if the given value is equivalent to the current instance of params

func (*Params) GetAllowUnrestrictedNames

func (m *Params) GetAllowUnrestrictedNames() bool

func (*Params) GetMaxNameLevels

func (m *Params) GetMaxNameLevels() uint32

func (*Params) GetMaxSegmentLength

func (m *Params) GetMaxSegmentLength() uint32

func (*Params) GetMinSegmentLength

func (m *Params) GetMinSegmentLength() uint32

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Params queries params of the name module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Resolve queries for the address associated with a given name
	Resolve(ctx context.Context, in *QueryResolveRequest, opts ...grpc.CallOption) (*QueryResolveResponse, error)
	// ReverseLookup queries for all names bound against a given address
	ReverseLookup(ctx context.Context, in *QueryReverseLookupRequest, opts ...grpc.CallOption) (*QueryReverseLookupResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

func (*QueryParamsRequest) Marshal

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse

type QueryParamsResponse struct {
	// params defines the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is the response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

type QueryResolveRequest

type QueryResolveRequest struct {
	// name to resolve the address for
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}

QueryResolveRequest is the request type for the Query/Resolve method.

func (*QueryResolveRequest) Descriptor

func (*QueryResolveRequest) Descriptor() ([]byte, []int)

func (*QueryResolveRequest) Marshal

func (m *QueryResolveRequest) Marshal() (dAtA []byte, err error)

func (*QueryResolveRequest) MarshalTo

func (m *QueryResolveRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryResolveRequest) MarshalToSizedBuffer

func (m *QueryResolveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryResolveRequest) ProtoMessage

func (*QueryResolveRequest) ProtoMessage()

func (*QueryResolveRequest) Reset

func (m *QueryResolveRequest) Reset()

func (*QueryResolveRequest) Size

func (m *QueryResolveRequest) Size() (n int)

func (*QueryResolveRequest) String

func (m *QueryResolveRequest) String() string

func (*QueryResolveRequest) Unmarshal

func (m *QueryResolveRequest) Unmarshal(dAtA []byte) error

func (*QueryResolveRequest) XXX_DiscardUnknown

func (m *QueryResolveRequest) XXX_DiscardUnknown()

func (*QueryResolveRequest) XXX_Marshal

func (m *QueryResolveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryResolveRequest) XXX_Merge

func (m *QueryResolveRequest) XXX_Merge(src proto.Message)

func (*QueryResolveRequest) XXX_Size

func (m *QueryResolveRequest) XXX_Size() int

func (*QueryResolveRequest) XXX_Unmarshal

func (m *QueryResolveRequest) XXX_Unmarshal(b []byte) error

type QueryResolveResponse

type QueryResolveResponse struct {
	// a string containing the address the name resolves to
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// Whether owner signature is required to add sub-names.
	Restricted bool `protobuf:"varint,2,opt,name=restricted,proto3" json:"restricted,omitempty"`
}

QueryResolveResponse is the response type for the Query/Resolve method.

func (*QueryResolveResponse) Descriptor

func (*QueryResolveResponse) Descriptor() ([]byte, []int)

func (*QueryResolveResponse) GetAddress

func (m *QueryResolveResponse) GetAddress() string

func (*QueryResolveResponse) GetRestricted added in v1.11.0

func (m *QueryResolveResponse) GetRestricted() bool

func (*QueryResolveResponse) Marshal

func (m *QueryResolveResponse) Marshal() (dAtA []byte, err error)

func (*QueryResolveResponse) MarshalTo

func (m *QueryResolveResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryResolveResponse) MarshalToSizedBuffer

func (m *QueryResolveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryResolveResponse) ProtoMessage

func (*QueryResolveResponse) ProtoMessage()

func (*QueryResolveResponse) Reset

func (m *QueryResolveResponse) Reset()

func (*QueryResolveResponse) Size

func (m *QueryResolveResponse) Size() (n int)

func (*QueryResolveResponse) String

func (m *QueryResolveResponse) String() string

func (*QueryResolveResponse) Unmarshal

func (m *QueryResolveResponse) Unmarshal(dAtA []byte) error

func (*QueryResolveResponse) XXX_DiscardUnknown

func (m *QueryResolveResponse) XXX_DiscardUnknown()

func (*QueryResolveResponse) XXX_Marshal

func (m *QueryResolveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryResolveResponse) XXX_Merge

func (m *QueryResolveResponse) XXX_Merge(src proto.Message)

func (*QueryResolveResponse) XXX_Size

func (m *QueryResolveResponse) XXX_Size() int

func (*QueryResolveResponse) XXX_Unmarshal

func (m *QueryResolveResponse) XXX_Unmarshal(b []byte) error

type QueryReverseLookupRequest

type QueryReverseLookupRequest struct {
	// address to find name records for
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryReverseLookupRequest is the request type for the Query/ReverseLookup method.

func (*QueryReverseLookupRequest) Descriptor

func (*QueryReverseLookupRequest) Descriptor() ([]byte, []int)

func (*QueryReverseLookupRequest) Marshal

func (m *QueryReverseLookupRequest) Marshal() (dAtA []byte, err error)

func (*QueryReverseLookupRequest) MarshalTo

func (m *QueryReverseLookupRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryReverseLookupRequest) MarshalToSizedBuffer

func (m *QueryReverseLookupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryReverseLookupRequest) ProtoMessage

func (*QueryReverseLookupRequest) ProtoMessage()

func (*QueryReverseLookupRequest) Reset

func (m *QueryReverseLookupRequest) Reset()

func (*QueryReverseLookupRequest) Size

func (m *QueryReverseLookupRequest) Size() (n int)

func (*QueryReverseLookupRequest) String

func (m *QueryReverseLookupRequest) String() string

func (*QueryReverseLookupRequest) Unmarshal

func (m *QueryReverseLookupRequest) Unmarshal(dAtA []byte) error

func (*QueryReverseLookupRequest) XXX_DiscardUnknown

func (m *QueryReverseLookupRequest) XXX_DiscardUnknown()

func (*QueryReverseLookupRequest) XXX_Marshal

func (m *QueryReverseLookupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryReverseLookupRequest) XXX_Merge

func (m *QueryReverseLookupRequest) XXX_Merge(src proto.Message)

func (*QueryReverseLookupRequest) XXX_Size

func (m *QueryReverseLookupRequest) XXX_Size() int

func (*QueryReverseLookupRequest) XXX_Unmarshal

func (m *QueryReverseLookupRequest) XXX_Unmarshal(b []byte) error

type QueryReverseLookupResponse

type QueryReverseLookupResponse struct {
	// an array of names bound against a given address
	Name []string `protobuf:"bytes,1,rep,name=name,proto3" json:"name,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryReverseLookupResponse is the response type for the Query/Resolve method.

func (*QueryReverseLookupResponse) Descriptor

func (*QueryReverseLookupResponse) Descriptor() ([]byte, []int)

func (*QueryReverseLookupResponse) Marshal

func (m *QueryReverseLookupResponse) Marshal() (dAtA []byte, err error)

func (*QueryReverseLookupResponse) MarshalTo

func (m *QueryReverseLookupResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryReverseLookupResponse) MarshalToSizedBuffer

func (m *QueryReverseLookupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryReverseLookupResponse) ProtoMessage

func (*QueryReverseLookupResponse) ProtoMessage()

func (*QueryReverseLookupResponse) Reset

func (m *QueryReverseLookupResponse) Reset()

func (*QueryReverseLookupResponse) Size

func (m *QueryReverseLookupResponse) Size() (n int)

func (*QueryReverseLookupResponse) String

func (m *QueryReverseLookupResponse) String() string

func (*QueryReverseLookupResponse) Unmarshal

func (m *QueryReverseLookupResponse) Unmarshal(dAtA []byte) error

func (*QueryReverseLookupResponse) XXX_DiscardUnknown

func (m *QueryReverseLookupResponse) XXX_DiscardUnknown()

func (*QueryReverseLookupResponse) XXX_Marshal

func (m *QueryReverseLookupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryReverseLookupResponse) XXX_Merge

func (m *QueryReverseLookupResponse) XXX_Merge(src proto.Message)

func (*QueryReverseLookupResponse) XXX_Size

func (m *QueryReverseLookupResponse) XXX_Size() int

func (*QueryReverseLookupResponse) XXX_Unmarshal

func (m *QueryReverseLookupResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Params queries params of the name module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Resolve queries for the address associated with a given name
	Resolve(context.Context, *QueryResolveRequest) (*QueryResolveResponse, error)
	// ReverseLookup queries for all names bound against a given address
	ReverseLookup(context.Context, *QueryReverseLookupRequest) (*QueryReverseLookupResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) BindName

func (*UnimplementedMsgServer) CreateRootName added in v1.14.0

func (*UnimplementedMsgServer) DeleteName

func (*UnimplementedMsgServer) ModifyName added in v1.14.0

func (*UnimplementedMsgServer) UpdateParams added in v1.19.0

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Resolve

func (*UnimplementedQueryServer) ReverseLookup

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL