types

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: Apache-2.0 Imports: 35 Imported by: 4

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeProfileSaved        = "profile_saved"
	EventTypeProfileDeleted      = "profile_deleted"
	EventTypeDTagTransferRequest = "dtag_transfer_request"
	EventTypeDTagTransferAccept  = "dtag_transfer_accept"
	EventTypeDTagTransferRefuse  = "dtag_transfer_refuse"
	EventTypeDTagTransferCancel  = "dtag_transfer_cancel"

	AttributeProfileDTag         = "profile_dtag"
	AttributeProfileCreator      = "profile_creator"
	AttributeProfileCreationTime = "profile_creation_time"

	AttributeRequestReceiver = "request_receiver"
	AttributeRequestSender   = "request_sender"
	AttributeDTagToTrade     = "dtag_to_trade"
	AttributeNewDTag         = "new_dtag"

	EventTypeRelationshipCreated  = "relationship_created"
	EventTypeRelationshipsDeleted = "relationships_deleted"

	AttributeRelationshipSender   = "sender"
	AttributeRelationshipReceiver = "receiver"
	AttributeRelationshipSubspace = "subspace"

	EventTypeBlockUser   = "block_user"
	EventTypeUnblockUser = "unblock_user"

	AttributeUserBlockBlocker = "blocker"
	AttributeUserBlockBlocked = "blocked"
	AttributeUserBlockReason  = "reason"
	AttributeSubspace         = "subspace"
)
View Source
const (
	ModuleName = "profiles"
	RouterKey  = ModuleName
	StoreKey   = ModuleName

	ActionSaveProfile               = "save_profile"
	ActionDeleteProfile             = "delete_profile"
	ActionRequestDTag               = "request_dtag"
	ActionAcceptDTagTransfer        = "accept_dtag_request"
	ActionRefuseDTagTransferRequest = "refuse_dtag_request"
	ActionCancelDTagTransferRequest = "cancel_dtag_request"
	ActionCreateRelationship        = "create_relationship"
	ActionDeleteRelationship        = "delete_relationship"
	ActionBlockUser                 = "block_user"
	ActionUnblockUser               = "unblock_user"

	QuerierRoute              = ModuleName
	QueryProfile              = "profile"
	QueryIncomingDTagRequests = "incoming-dtag-requests"
	QueryUserRelationships    = "user_relationships"
	QueryRelationships        = "relationships"
	QueryUserBlocks           = "user_blocks"
	QueryParams               = "params"

	DoNotModify = "[do-not-modify]"
)
View Source
const (
	// DefaultParamsSpace represents the default paramspace for the Params keeper
	DefaultParamsSpace = ModuleName
)

Variables

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 (
	DTagPrefix                 = []byte("dtag")
	DTagTransferRequestsPrefix = []byte("transfer_requests")
	RelationshipsStorePrefix   = []byte("relationships")
	UsersBlocksStorePrefix     = []byte("users_blocks")
)
View Source
var (
	ErrInvalidLengthModels        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowModels          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupModels = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMsgs        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsgs          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsgs = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	DefaultMinMonikerLength = sdk.NewInt(2)
	DefaultMaxMonikerLength = sdk.NewInt(1000) //longest name on earth count 954 chars
	DefaultRegEx            = `^[A-Za-z0-9_]+$`
	DefaultMinDTagLength    = sdk.NewInt(3)
	DefaultMaxDTagLength    = sdk.NewInt(30)
	DefaultMaxBioLength     = sdk.NewInt(1000)
)

Default profile paramsModule

View Source
var (
	MonikerLenParamsKey = []byte("MonikerParams")
	DTagLenParamsKey    = []byte("DTagParams")
	MaxBioLenParamsKey  = []byte("MaxBioLen")
)

Parameters store keys

View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = 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 (

	// ModuleCdc references the global x/relationships module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding as Amino is
	// still used for that purpose.
	//
	// The actual codec used for serialization should be provided to x/relationships and
	// defined at the application level.
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func DTagStoreKey added in v0.16.0

func DTagStoreKey(dTag string) []byte

DTagStoreKey turns a DTag into the key used to store the address associated with it into the store

func DTagTransferRequestStoreKey added in v0.16.0

func DTagTransferRequestStoreKey(address string) []byte

DTagTransferRequestStoreKey turns an address to a key used to store a transfer request into the profiles store

func MustMarshalRelationships added in v0.16.0

func MustMarshalRelationships(cdc codec.BinaryMarshaler, relationships []Relationship) []byte

MustMarshalRelationships serializes the given relationships using the provided BinaryMarshaler

func MustMarshalUserBlocks added in v0.16.0

func MustMarshalUserBlocks(cdc codec.BinaryMarshaler, block []UserBlock) []byte

MustMarshalUserBlocks serializes the given blocks using the provided BinaryMarshaler

func ParamKeyTable

func ParamKeyTable() paramstypes.KeyTable

ParamKeyTable Key declaration for parameters

func RegisterInterfaces added in v0.15.0

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec added in v0.15.0

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func RegisterMsgServer added in v0.15.0

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler added in v0.15.0

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 added in v0.15.0

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 added in v0.15.0

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 added in v0.15.0

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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer added in v0.15.0

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func RelationshipsStoreKey added in v0.16.0

func RelationshipsStoreKey(user string) []byte

RelationshipsStoreKey turns a user address to a key used to store a Address -> []Address couple

func UsersBlocksStoreKey added in v0.16.0

func UsersBlocksStoreKey(user string) []byte

UsersBlocksStoreKey turns a user address to a key used to store a Address -> []Address couple

func ValidateBioParams

func ValidateBioParams(i interface{}) error

func ValidateDTagParams added in v0.16.0

func ValidateDTagParams(i interface{}) error

func ValidateGenesis

func ValidateGenesis(data *GenesisState) error

ValidateGenesis validates the given genesis state and returns an error if something is invalid

func ValidateMonikerParams

func ValidateMonikerParams(i interface{}) error

Types

type BlockUserResponse added in v0.16.0

type BlockUserResponse struct {
}

BlockUserResponse defines the Msg/BlockUser response type.

func (*BlockUserResponse) Descriptor added in v0.16.0

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

func (*BlockUserResponse) Marshal added in v0.16.0

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

func (*BlockUserResponse) MarshalTo added in v0.16.0

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

func (*BlockUserResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*BlockUserResponse) ProtoMessage added in v0.16.0

func (*BlockUserResponse) ProtoMessage()

func (*BlockUserResponse) Reset added in v0.16.0

func (m *BlockUserResponse) Reset()

func (*BlockUserResponse) Size added in v0.16.0

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

func (*BlockUserResponse) String added in v0.16.0

func (m *BlockUserResponse) String() string

func (*BlockUserResponse) Unmarshal added in v0.16.0

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

func (*BlockUserResponse) XXX_DiscardUnknown added in v0.16.0

func (m *BlockUserResponse) XXX_DiscardUnknown()

func (*BlockUserResponse) XXX_Marshal added in v0.16.0

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

func (*BlockUserResponse) XXX_Merge added in v0.16.0

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

func (*BlockUserResponse) XXX_Size added in v0.16.0

func (m *BlockUserResponse) XXX_Size() int

func (*BlockUserResponse) XXX_Unmarshal added in v0.16.0

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

type CreateRelationshipResponse added in v0.16.0

type CreateRelationshipResponse struct {
}

CreateRelationshipResponse defines the Msg/CreateRelationship response type.

func (*CreateRelationshipResponse) Descriptor added in v0.16.0

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

func (*CreateRelationshipResponse) Marshal added in v0.16.0

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

func (*CreateRelationshipResponse) MarshalTo added in v0.16.0

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

func (*CreateRelationshipResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*CreateRelationshipResponse) ProtoMessage added in v0.16.0

func (*CreateRelationshipResponse) ProtoMessage()

func (*CreateRelationshipResponse) Reset added in v0.16.0

func (m *CreateRelationshipResponse) Reset()

func (*CreateRelationshipResponse) Size added in v0.16.0

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

func (*CreateRelationshipResponse) String added in v0.16.0

func (m *CreateRelationshipResponse) String() string

func (*CreateRelationshipResponse) Unmarshal added in v0.16.0

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

func (*CreateRelationshipResponse) XXX_DiscardUnknown added in v0.16.0

func (m *CreateRelationshipResponse) XXX_DiscardUnknown()

func (*CreateRelationshipResponse) XXX_Marshal added in v0.16.0

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

func (*CreateRelationshipResponse) XXX_Merge added in v0.16.0

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

func (*CreateRelationshipResponse) XXX_Size added in v0.16.0

func (m *CreateRelationshipResponse) XXX_Size() int

func (*CreateRelationshipResponse) XXX_Unmarshal added in v0.16.0

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

type DTagParams added in v0.15.0

type DTagParams struct {
	RegEx         string                                 `protobuf:"bytes,1,opt,name=reg_ex,json=regEx,proto3" json:"reg_ex,omitempty" yaml:"reg_ex"`
	MinDTagLength github_com_cosmos_cosmos_sdk_types.Int `` /* 165-byte string literal not displayed */
	MaxDTagLength github_com_cosmos_cosmos_sdk_types.Int `` /* 165-byte string literal not displayed */
}

DTagParams defines the parameters related to profile DTags

func DefaultDTagParams added in v0.16.0

func DefaultDTagParams() DTagParams

DefaultDTagParams return default paramsModule

func NewDTagParams added in v0.16.0

func NewDTagParams(regEx string, minLen, maxLen sdk.Int) DTagParams

NewDTagParams creates a new DTagParams obj

func (*DTagParams) Descriptor added in v0.15.0

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

func (*DTagParams) GetRegEx added in v0.15.0

func (m *DTagParams) GetRegEx() string

func (*DTagParams) Marshal added in v0.15.0

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

func (*DTagParams) MarshalTo added in v0.15.0

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

func (*DTagParams) MarshalToSizedBuffer added in v0.15.0

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

func (*DTagParams) ProtoMessage added in v0.15.0

func (*DTagParams) ProtoMessage()

func (*DTagParams) Reset added in v0.15.0

func (m *DTagParams) Reset()

func (*DTagParams) Size added in v0.15.0

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

func (*DTagParams) String added in v0.15.0

func (m *DTagParams) String() string

func (*DTagParams) Unmarshal added in v0.15.0

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

func (*DTagParams) XXX_DiscardUnknown added in v0.15.0

func (m *DTagParams) XXX_DiscardUnknown()

func (*DTagParams) XXX_Marshal added in v0.15.0

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

func (*DTagParams) XXX_Merge added in v0.15.0

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

func (*DTagParams) XXX_Size added in v0.15.0

func (m *DTagParams) XXX_Size() int

func (*DTagParams) XXX_Unmarshal added in v0.15.0

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

type DTagTransferRequest added in v0.12.0

type DTagTransferRequest struct {
	DTagToTrade string `protobuf:"bytes,1,opt,name=dtag_to_trade,json=dtagToTrade,proto3" json:"dtag_to_trade,omitempty" yaml:"dtag_to_trade"`
	Sender      string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	Receiver    string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty" yaml:"receiver"`
}

DTagTransferRequest represent a DTag transfer request between two users

func NewDTagTransferRequest added in v0.12.0

func NewDTagTransferRequest(dTagToTrade string, sender, receiver string) DTagTransferRequest

func (*DTagTransferRequest) Descriptor added in v0.15.0

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

func (*DTagTransferRequest) Equal added in v0.15.0

func (this *DTagTransferRequest) Equal(that interface{}) bool

func (*DTagTransferRequest) GetDTagToTrade added in v0.16.0

func (m *DTagTransferRequest) GetDTagToTrade() string

func (*DTagTransferRequest) GetReceiver added in v0.15.0

func (m *DTagTransferRequest) GetReceiver() string

func (*DTagTransferRequest) GetSender added in v0.15.0

func (m *DTagTransferRequest) GetSender() string

func (*DTagTransferRequest) Marshal added in v0.15.0

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

func (*DTagTransferRequest) MarshalTo added in v0.15.0

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

func (*DTagTransferRequest) MarshalToSizedBuffer added in v0.15.0

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

func (*DTagTransferRequest) ProtoMessage added in v0.15.0

func (*DTagTransferRequest) ProtoMessage()

func (*DTagTransferRequest) Reset added in v0.15.0

func (m *DTagTransferRequest) Reset()

func (*DTagTransferRequest) Size added in v0.15.0

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

func (*DTagTransferRequest) String added in v0.15.0

func (m *DTagTransferRequest) String() string

func (*DTagTransferRequest) Unmarshal added in v0.15.0

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

func (DTagTransferRequest) Validate added in v0.15.0

func (request DTagTransferRequest) Validate() error

Validate checks the request validity

func (*DTagTransferRequest) XXX_DiscardUnknown added in v0.15.0

func (m *DTagTransferRequest) XXX_DiscardUnknown()

func (*DTagTransferRequest) XXX_Marshal added in v0.15.0

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

func (*DTagTransferRequest) XXX_Merge added in v0.15.0

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

func (*DTagTransferRequest) XXX_Size added in v0.15.0

func (m *DTagTransferRequest) XXX_Size() int

func (*DTagTransferRequest) XXX_Unmarshal added in v0.15.0

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

type DTagTransferRequests added in v0.16.0

type DTagTransferRequests struct {
	Requests []DTagTransferRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests"`
}

DTagTransferRequests contains a list of DTagTransferRequest

func NewDTagTransferRequests added in v0.16.0

func NewDTagTransferRequests(requests []DTagTransferRequest) DTagTransferRequests

NewDTagTransferRequests returns a DTagTransferRequests instance wrapping the given requests

func (*DTagTransferRequests) Descriptor added in v0.16.0

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

func (*DTagTransferRequests) Equal added in v0.16.0

func (this *DTagTransferRequests) Equal(that interface{}) bool

func (*DTagTransferRequests) GetRequests added in v0.16.0

func (m *DTagTransferRequests) GetRequests() []DTagTransferRequest

func (*DTagTransferRequests) Marshal added in v0.16.0

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

func (*DTagTransferRequests) MarshalTo added in v0.16.0

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

func (*DTagTransferRequests) MarshalToSizedBuffer added in v0.16.0

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

func (*DTagTransferRequests) ProtoMessage added in v0.16.0

func (*DTagTransferRequests) ProtoMessage()

func (*DTagTransferRequests) Reset added in v0.16.0

func (m *DTagTransferRequests) Reset()

func (*DTagTransferRequests) Size added in v0.16.0

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

func (*DTagTransferRequests) String added in v0.16.0

func (m *DTagTransferRequests) String() string

func (*DTagTransferRequests) Unmarshal added in v0.16.0

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

func (*DTagTransferRequests) XXX_DiscardUnknown added in v0.16.0

func (m *DTagTransferRequests) XXX_DiscardUnknown()

func (*DTagTransferRequests) XXX_Marshal added in v0.16.0

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

func (*DTagTransferRequests) XXX_Merge added in v0.16.0

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

func (*DTagTransferRequests) XXX_Size added in v0.16.0

func (m *DTagTransferRequests) XXX_Size() int

func (*DTagTransferRequests) XXX_Unmarshal added in v0.16.0

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

type DeleteRelationshipResponse added in v0.16.0

type DeleteRelationshipResponse struct {
}

DeleteRelationshipResponse defines the Msg/DeleteRelationship response type.

func (*DeleteRelationshipResponse) Descriptor added in v0.16.0

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

func (*DeleteRelationshipResponse) Marshal added in v0.16.0

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

func (*DeleteRelationshipResponse) MarshalTo added in v0.16.0

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

func (*DeleteRelationshipResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*DeleteRelationshipResponse) ProtoMessage added in v0.16.0

func (*DeleteRelationshipResponse) ProtoMessage()

func (*DeleteRelationshipResponse) Reset added in v0.16.0

func (m *DeleteRelationshipResponse) Reset()

func (*DeleteRelationshipResponse) Size added in v0.16.0

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

func (*DeleteRelationshipResponse) String added in v0.16.0

func (m *DeleteRelationshipResponse) String() string

func (*DeleteRelationshipResponse) Unmarshal added in v0.16.0

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

func (*DeleteRelationshipResponse) XXX_DiscardUnknown added in v0.16.0

func (m *DeleteRelationshipResponse) XXX_DiscardUnknown()

func (*DeleteRelationshipResponse) XXX_Marshal added in v0.16.0

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

func (*DeleteRelationshipResponse) XXX_Merge added in v0.16.0

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

func (*DeleteRelationshipResponse) XXX_Size added in v0.16.0

func (m *DeleteRelationshipResponse) XXX_Size() int

func (*DeleteRelationshipResponse) XXX_Unmarshal added in v0.16.0

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

type GenesisState

type GenesisState struct {
	DTagTransferRequest []DTagTransferRequest `` /* 143-byte string literal not displayed */
	Relationships       []Relationship        `protobuf:"bytes,2,rep,name=relationships,proto3" json:"relationships" yaml:"users_relationships"`
	Blocks              []UserBlock           `protobuf:"bytes,3,rep,name=blocks,proto3" json:"blocks" yaml:"users_blocks"`
	Params              Params                `protobuf:"bytes,4,opt,name=params,proto3" json:"params" yaml:"params"`
}

GenesisState defines the profiles module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns a default GenesisState

func NewGenesisState

func NewGenesisState(
	request []DTagTransferRequest, relationships []Relationship, blocks []UserBlock, params Params,
) *GenesisState

NewGenesisState creates a new genesis state

func (*GenesisState) Descriptor added in v0.15.0

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

func (*GenesisState) GetBlocks added in v0.16.0

func (m *GenesisState) GetBlocks() []UserBlock

func (*GenesisState) GetDTagTransferRequest added in v0.16.0

func (m *GenesisState) GetDTagTransferRequest() []DTagTransferRequest

func (*GenesisState) GetParams added in v0.15.0

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetRelationships added in v0.16.0

func (m *GenesisState) GetRelationships() []Relationship

func (*GenesisState) Marshal added in v0.15.0

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

func (*GenesisState) MarshalTo added in v0.15.0

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

func (*GenesisState) MarshalToSizedBuffer added in v0.15.0

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

func (*GenesisState) ProtoMessage added in v0.15.0

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset added in v0.15.0

func (m *GenesisState) Reset()

func (*GenesisState) Size added in v0.15.0

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

func (*GenesisState) String added in v0.15.0

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal added in v0.15.0

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

func (*GenesisState) XXX_DiscardUnknown added in v0.15.0

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal added in v0.15.0

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

func (*GenesisState) XXX_Merge added in v0.15.0

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

func (*GenesisState) XXX_Size added in v0.15.0

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal added in v0.15.0

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

type MonikerParams

type MonikerParams struct {
	MinMonikerLength github_com_cosmos_cosmos_sdk_types.Int `` /* 177-byte string literal not displayed */
	MaxMonikerLength github_com_cosmos_cosmos_sdk_types.Int `` /* 177-byte string literal not displayed */
}

MonikerParams defines the parameters related to the profiles monikers

func DefaultMonikerParams

func DefaultMonikerParams() MonikerParams

DefaultMonikerParams return default moniker params

func NewMonikerParams

func NewMonikerParams(minLen, maxLen sdk.Int) MonikerParams

NewMonikerParams creates a new MonikerParams obj

func (*MonikerParams) Descriptor added in v0.15.0

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

func (*MonikerParams) Marshal added in v0.15.0

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

func (*MonikerParams) MarshalTo added in v0.15.0

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

func (*MonikerParams) MarshalToSizedBuffer added in v0.15.0

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

func (*MonikerParams) ProtoMessage added in v0.15.0

func (*MonikerParams) ProtoMessage()

func (*MonikerParams) Reset added in v0.15.0

func (m *MonikerParams) Reset()

func (*MonikerParams) Size added in v0.15.0

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

func (*MonikerParams) String

func (m *MonikerParams) String() string

func (*MonikerParams) Unmarshal added in v0.15.0

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

func (*MonikerParams) XXX_DiscardUnknown added in v0.15.0

func (m *MonikerParams) XXX_DiscardUnknown()

func (*MonikerParams) XXX_Marshal added in v0.15.0

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

func (*MonikerParams) XXX_Merge added in v0.15.0

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

func (*MonikerParams) XXX_Size added in v0.15.0

func (m *MonikerParams) XXX_Size() int

func (*MonikerParams) XXX_Unmarshal added in v0.15.0

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

type MsgAcceptDTagTransfer added in v0.12.0

type MsgAcceptDTagTransfer struct {
	NewDTag  string `protobuf:"bytes,1,opt,name=new_dtag,json=newDtag,proto3" json:"new_dtag" yaml:"new_dtag"`
	Sender   string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty" yaml:"receiver"`
}

MsgAcceptDTagTransfer represents the message used to accept a DTag transfer request.

func NewMsgAcceptDTagTransfer added in v0.12.0

func NewMsgAcceptDTagTransfer(newDTag string, sender, receiver string) *MsgAcceptDTagTransfer

NewMsgAcceptDTagTransfer is a constructor for MsgAcceptDTagTransfer

func (*MsgAcceptDTagTransfer) Descriptor added in v0.15.0

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

func (MsgAcceptDTagTransfer) GetSignBytes added in v0.15.0

func (msg MsgAcceptDTagTransfer) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgAcceptDTagTransfer) GetSigners added in v0.15.0

func (msg MsgAcceptDTagTransfer) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgAcceptDTagTransfer) Marshal added in v0.15.0

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

func (*MsgAcceptDTagTransfer) MarshalTo added in v0.15.0

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

func (*MsgAcceptDTagTransfer) MarshalToSizedBuffer added in v0.15.0

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

func (*MsgAcceptDTagTransfer) ProtoMessage added in v0.15.0

func (*MsgAcceptDTagTransfer) ProtoMessage()

func (*MsgAcceptDTagTransfer) Reset added in v0.15.0

func (m *MsgAcceptDTagTransfer) Reset()

func (MsgAcceptDTagTransfer) Route added in v0.15.0

func (msg MsgAcceptDTagTransfer) Route() string

Route should return the name of the module

func (*MsgAcceptDTagTransfer) Size added in v0.15.0

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

func (*MsgAcceptDTagTransfer) String added in v0.15.0

func (m *MsgAcceptDTagTransfer) String() string

func (MsgAcceptDTagTransfer) Type added in v0.15.0

func (msg MsgAcceptDTagTransfer) Type() string

Type should return the action

func (*MsgAcceptDTagTransfer) Unmarshal added in v0.15.0

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

func (MsgAcceptDTagTransfer) ValidateBasic added in v0.15.0

func (msg MsgAcceptDTagTransfer) ValidateBasic() error

func (*MsgAcceptDTagTransfer) XXX_DiscardUnknown added in v0.15.0

func (m *MsgAcceptDTagTransfer) XXX_DiscardUnknown()

func (*MsgAcceptDTagTransfer) XXX_Marshal added in v0.15.0

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

func (*MsgAcceptDTagTransfer) XXX_Merge added in v0.15.0

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

func (*MsgAcceptDTagTransfer) XXX_Size added in v0.15.0

func (m *MsgAcceptDTagTransfer) XXX_Size() int

func (*MsgAcceptDTagTransfer) XXX_Unmarshal added in v0.15.0

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

type MsgAcceptDTagTransferResponse added in v0.15.0

type MsgAcceptDTagTransferResponse struct {
}

MsgAcceptDTagTransferResponse defines the Msg/AcceptDTagTransfer response.

func (*MsgAcceptDTagTransferResponse) Descriptor added in v0.15.0

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

func (*MsgAcceptDTagTransferResponse) Marshal added in v0.15.0

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

func (*MsgAcceptDTagTransferResponse) MarshalTo added in v0.15.0

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

func (*MsgAcceptDTagTransferResponse) MarshalToSizedBuffer added in v0.15.0

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

func (*MsgAcceptDTagTransferResponse) ProtoMessage added in v0.15.0

func (*MsgAcceptDTagTransferResponse) ProtoMessage()

func (*MsgAcceptDTagTransferResponse) Reset added in v0.15.0

func (m *MsgAcceptDTagTransferResponse) Reset()

func (*MsgAcceptDTagTransferResponse) Size added in v0.15.0

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

func (*MsgAcceptDTagTransferResponse) String added in v0.15.0

func (*MsgAcceptDTagTransferResponse) Unmarshal added in v0.15.0

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

func (*MsgAcceptDTagTransferResponse) XXX_DiscardUnknown added in v0.15.0

func (m *MsgAcceptDTagTransferResponse) XXX_DiscardUnknown()

func (*MsgAcceptDTagTransferResponse) XXX_Marshal added in v0.15.0

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

func (*MsgAcceptDTagTransferResponse) XXX_Merge added in v0.15.0

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

func (*MsgAcceptDTagTransferResponse) XXX_Size added in v0.15.0

func (m *MsgAcceptDTagTransferResponse) XXX_Size() int

func (*MsgAcceptDTagTransferResponse) XXX_Unmarshal added in v0.15.0

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

type MsgBlockUser added in v0.16.0

type MsgBlockUser struct {
	Blocker  string `protobuf:"bytes,1,opt,name=blocker,proto3" json:"blocker,omitempty" yaml:"blocker"`
	Blocked  string `protobuf:"bytes,2,opt,name=blocked,proto3" json:"blocked,omitempty" yaml:"blocked"`
	Reason   string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty" yaml:"reason"`
	Subspace string `protobuf:"bytes,4,opt,name=subspace,proto3" json:"subspace,omitempty" yaml:"subspace"`
}

MsgBlockUser represents a message to block another user specifying an optional reason.

func NewMsgBlockUser added in v0.16.0

func NewMsgBlockUser(blocker, blocked, reason, subspace string) *MsgBlockUser

func (*MsgBlockUser) Descriptor added in v0.16.0

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

func (*MsgBlockUser) GetBlocked added in v0.16.0

func (m *MsgBlockUser) GetBlocked() string

func (*MsgBlockUser) GetBlocker added in v0.16.0

func (m *MsgBlockUser) GetBlocker() string

func (*MsgBlockUser) GetReason added in v0.16.0

func (m *MsgBlockUser) GetReason() string

func (MsgBlockUser) GetSignBytes added in v0.16.0

func (msg MsgBlockUser) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgBlockUser) GetSigners added in v0.16.0

func (msg MsgBlockUser) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgBlockUser) GetSubspace added in v0.16.0

func (m *MsgBlockUser) GetSubspace() string

func (*MsgBlockUser) Marshal added in v0.16.0

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

func (*MsgBlockUser) MarshalTo added in v0.16.0

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

func (*MsgBlockUser) MarshalToSizedBuffer added in v0.16.0

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

func (*MsgBlockUser) ProtoMessage added in v0.16.0

func (*MsgBlockUser) ProtoMessage()

func (*MsgBlockUser) Reset added in v0.16.0

func (m *MsgBlockUser) Reset()

func (MsgBlockUser) Route added in v0.16.0

func (msg MsgBlockUser) Route() string

Route should return the name of the module

func (*MsgBlockUser) Size added in v0.16.0

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

func (*MsgBlockUser) String added in v0.16.0

func (m *MsgBlockUser) String() string

func (MsgBlockUser) Type added in v0.16.0

func (msg MsgBlockUser) Type() string

Type should return the action

func (*MsgBlockUser) Unmarshal added in v0.16.0

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

func (MsgBlockUser) ValidateBasic added in v0.16.0

func (msg MsgBlockUser) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgBlockUser) XXX_DiscardUnknown added in v0.16.0

func (m *MsgBlockUser) XXX_DiscardUnknown()

func (*MsgBlockUser) XXX_Marshal added in v0.16.0

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

func (*MsgBlockUser) XXX_Merge added in v0.16.0

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

func (*MsgBlockUser) XXX_Size added in v0.16.0

func (m *MsgBlockUser) XXX_Size() int

func (*MsgBlockUser) XXX_Unmarshal added in v0.16.0

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

type MsgCancelDTagTransfer added in v0.15.0

type MsgCancelDTagTransfer struct {
	Receiver string `protobuf:"bytes,1,opt,name=receiver,proto3" json:"receiver,omitempty" yaml:"receiver"`
	Sender   string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
}

MsgCancelDTagTransfer represents the message used to cancel a DTag transfer request.

func NewMsgCancelDTagTransferRequest added in v0.13.0

func NewMsgCancelDTagTransferRequest(sender, receiver string) *MsgCancelDTagTransfer

NewMsgCancelDTagTransferRequest is a constructor for MsgCancelDTagTransfer

func (*MsgCancelDTagTransfer) Descriptor added in v0.15.0

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

func (MsgCancelDTagTransfer) GetSignBytes added in v0.15.0

func (msg MsgCancelDTagTransfer) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgCancelDTagTransfer) GetSigners added in v0.15.0

func (msg MsgCancelDTagTransfer) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgCancelDTagTransfer) Marshal added in v0.15.0

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

func (*MsgCancelDTagTransfer) MarshalTo added in v0.15.0

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

func (*MsgCancelDTagTransfer) MarshalToSizedBuffer added in v0.15.0

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

func (*MsgCancelDTagTransfer) ProtoMessage added in v0.15.0

func (*MsgCancelDTagTransfer) ProtoMessage()

func (*MsgCancelDTagTransfer) Reset added in v0.15.0

func (m *MsgCancelDTagTransfer) Reset()

func (MsgCancelDTagTransfer) Route added in v0.15.0

func (msg MsgCancelDTagTransfer) Route() string

Route should return the name of the module

func (*MsgCancelDTagTransfer) Size added in v0.15.0

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

func (*MsgCancelDTagTransfer) String added in v0.15.0

func (m *MsgCancelDTagTransfer) String() string

func (MsgCancelDTagTransfer) Type added in v0.15.0

func (msg MsgCancelDTagTransfer) Type() string

Type should return the action

func (*MsgCancelDTagTransfer) Unmarshal added in v0.15.0

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

func (MsgCancelDTagTransfer) ValidateBasic added in v0.15.0

func (msg MsgCancelDTagTransfer) ValidateBasic() error

func (*MsgCancelDTagTransfer) XXX_DiscardUnknown added in v0.15.0

func (m *MsgCancelDTagTransfer) XXX_DiscardUnknown()

func (*MsgCancelDTagTransfer) XXX_Marshal added in v0.15.0

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

func (*MsgCancelDTagTransfer) XXX_Merge added in v0.15.0

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

func (*MsgCancelDTagTransfer) XXX_Size added in v0.15.0

func (m *MsgCancelDTagTransfer) XXX_Size() int

func (*MsgCancelDTagTransfer) XXX_Unmarshal added in v0.15.0

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

type MsgCancelDTagTransferResponse added in v0.15.0

type MsgCancelDTagTransferResponse struct {
}

MsgCancelDTagTransferResponse represents the Msg/CancelDTagTransfer response type.

func (*MsgCancelDTagTransferResponse) Descriptor added in v0.15.0

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

func (*MsgCancelDTagTransferResponse) Marshal added in v0.15.0

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

func (*MsgCancelDTagTransferResponse) MarshalTo added in v0.15.0

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

func (*MsgCancelDTagTransferResponse) MarshalToSizedBuffer added in v0.15.0

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

func (*MsgCancelDTagTransferResponse) ProtoMessage added in v0.15.0

func (*MsgCancelDTagTransferResponse) ProtoMessage()

func (*MsgCancelDTagTransferResponse) Reset added in v0.15.0

func (m *MsgCancelDTagTransferResponse) Reset()

func (*MsgCancelDTagTransferResponse) Size added in v0.15.0

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

func (*MsgCancelDTagTransferResponse) String added in v0.15.0

func (*MsgCancelDTagTransferResponse) Unmarshal added in v0.15.0

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

func (*MsgCancelDTagTransferResponse) XXX_DiscardUnknown added in v0.15.0

func (m *MsgCancelDTagTransferResponse) XXX_DiscardUnknown()

func (*MsgCancelDTagTransferResponse) XXX_Marshal added in v0.15.0

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

func (*MsgCancelDTagTransferResponse) XXX_Merge added in v0.15.0

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

func (*MsgCancelDTagTransferResponse) XXX_Size added in v0.15.0

func (m *MsgCancelDTagTransferResponse) XXX_Size() int

func (*MsgCancelDTagTransferResponse) XXX_Unmarshal added in v0.15.0

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

type MsgClient added in v0.15.0

type MsgClient interface {
	// SaveProfile defines the method to save a profile
	SaveProfile(ctx context.Context, in *MsgSaveProfile, opts ...grpc.CallOption) (*MsgSaveProfileResponse, error)
	// DeleteProfile defines the method to delete an existing profile
	DeleteProfile(ctx context.Context, in *MsgDeleteProfile, opts ...grpc.CallOption) (*MsgDeleteProfileResponse, error)
	// RequestDTagTransfer defines the method to request another user to transfer
	// their DTag to you
	RequestDTagTransfer(ctx context.Context, in *MsgRequestDTagTransfer, opts ...grpc.CallOption) (*MsgRequestDTagTransferResponse, error)
	// CancelDTagTransfer defines the method to cancel an outgoing DTag transfer
	// request
	CancelDTagTransfer(ctx context.Context, in *MsgCancelDTagTransfer, opts ...grpc.CallOption) (*MsgCancelDTagTransferResponse, error)
	// AcceptDTagTransfer defines the method to accept an incoming DTag transfer
	// request
	AcceptDTagTransfer(ctx context.Context, in *MsgAcceptDTagTransfer, opts ...grpc.CallOption) (*MsgAcceptDTagTransferResponse, error)
	// RefuseDTagTransfer defines the method to refuse an incoming DTag transfer
	// request
	RefuseDTagTransfer(ctx context.Context, in *MsgRefuseDTagTransfer, opts ...grpc.CallOption) (*MsgRefuseDTagTransferResponse, error)
	// CreateRelationship defines a method for creating a new relationship
	CreateRelationship(ctx context.Context, in *MsgCreateRelationship, opts ...grpc.CallOption) (*CreateRelationshipResponse, error)
	// DeleteRelationship defines a method for deleting a relationship
	DeleteRelationship(ctx context.Context, in *MsgDeleteRelationship, opts ...grpc.CallOption) (*DeleteRelationshipResponse, error)
	// BlockUser defines a method for blocking a user
	BlockUser(ctx context.Context, in *MsgBlockUser, opts ...grpc.CallOption) (*BlockUserResponse, error)
	// UnblockUser defines a method for unblocking a user
	UnblockUser(ctx context.Context, in *MsgUnblockUser, opts ...grpc.CallOption) (*UnblockUserResponse, 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 added in v0.15.0

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgCreateRelationship added in v0.16.0

type MsgCreateRelationship struct {
	Sender   string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty" yaml:"receiver"`
	Subspace string `protobuf:"bytes,3,opt,name=subspace,proto3" json:"subspace,omitempty" yaml:"subspace"`
}

MsgCreateRelationship represents a message to create a relationship between two users on a specific subspace.

func NewMsgCreateRelationship added in v0.16.0

func NewMsgCreateRelationship(creator, recipient, subspace string) *MsgCreateRelationship

func (*MsgCreateRelationship) Descriptor added in v0.16.0

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

func (MsgCreateRelationship) GetSignBytes added in v0.16.0

func (msg MsgCreateRelationship) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgCreateRelationship) GetSigners added in v0.16.0

func (msg MsgCreateRelationship) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgCreateRelationship) Marshal added in v0.16.0

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

func (*MsgCreateRelationship) MarshalTo added in v0.16.0

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

func (*MsgCreateRelationship) MarshalToSizedBuffer added in v0.16.0

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

func (*MsgCreateRelationship) ProtoMessage added in v0.16.0

func (*MsgCreateRelationship) ProtoMessage()

func (*MsgCreateRelationship) Reset added in v0.16.0

func (m *MsgCreateRelationship) Reset()

func (MsgCreateRelationship) Route added in v0.16.0

func (msg MsgCreateRelationship) Route() string

Route should return the name of the module

func (*MsgCreateRelationship) Size added in v0.16.0

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

func (*MsgCreateRelationship) String added in v0.16.0

func (m *MsgCreateRelationship) String() string

func (MsgCreateRelationship) Type added in v0.16.0

func (msg MsgCreateRelationship) Type() string

Type should return the action

func (*MsgCreateRelationship) Unmarshal added in v0.16.0

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

func (MsgCreateRelationship) ValidateBasic added in v0.16.0

func (msg MsgCreateRelationship) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgCreateRelationship) XXX_DiscardUnknown added in v0.16.0

func (m *MsgCreateRelationship) XXX_DiscardUnknown()

func (*MsgCreateRelationship) XXX_Marshal added in v0.16.0

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

func (*MsgCreateRelationship) XXX_Merge added in v0.16.0

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

func (*MsgCreateRelationship) XXX_Size added in v0.16.0

func (m *MsgCreateRelationship) XXX_Size() int

func (*MsgCreateRelationship) XXX_Unmarshal added in v0.16.0

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

type MsgDeleteProfile

type MsgDeleteProfile struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"`
}

MsgDeleteProfile represents the message used to delete an existing profile.

func NewMsgDeleteProfile

func NewMsgDeleteProfile(creator string) *MsgDeleteProfile

NewMsgDeleteProfile is a constructor function for MsgDeleteProfile

func (*MsgDeleteProfile) Descriptor added in v0.15.0

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

func (MsgDeleteProfile) GetSignBytes

func (msg MsgDeleteProfile) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgDeleteProfile) GetSigners

func (msg MsgDeleteProfile) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgDeleteProfile) Marshal added in v0.15.0

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

func (*MsgDeleteProfile) MarshalTo added in v0.15.0

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

func (*MsgDeleteProfile) MarshalToSizedBuffer added in v0.15.0

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

func (*MsgDeleteProfile) ProtoMessage added in v0.15.0

func (*MsgDeleteProfile) ProtoMessage()

func (*MsgDeleteProfile) Reset added in v0.15.0

func (m *MsgDeleteProfile) Reset()

func (MsgDeleteProfile) Route

func (msg MsgDeleteProfile) Route() string

Route should return the name of the module

func (*MsgDeleteProfile) Size added in v0.15.0

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

func (*MsgDeleteProfile) String added in v0.15.0

func (m *MsgDeleteProfile) String() string

func (MsgDeleteProfile) Type

func (msg MsgDeleteProfile) Type() string

Type should return the action

func (*MsgDeleteProfile) Unmarshal added in v0.15.0

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

func (MsgDeleteProfile) ValidateBasic

func (msg MsgDeleteProfile) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgDeleteProfile) XXX_DiscardUnknown added in v0.15.0

func (m *MsgDeleteProfile) XXX_DiscardUnknown()

func (*MsgDeleteProfile) XXX_Marshal added in v0.15.0

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

func (*MsgDeleteProfile) XXX_Merge added in v0.15.0

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

func (*MsgDeleteProfile) XXX_Size added in v0.15.0

func (m *MsgDeleteProfile) XXX_Size() int

func (*MsgDeleteProfile) XXX_Unmarshal added in v0.15.0

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

type MsgDeleteProfileResponse added in v0.15.0

type MsgDeleteProfileResponse struct {
}

MsgDeleteProfileResponse defines the Msg/DeleteProfile response type.

func (*MsgDeleteProfileResponse) Descriptor added in v0.15.0

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

func (*MsgDeleteProfileResponse) Marshal added in v0.15.0

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

func (*MsgDeleteProfileResponse) MarshalTo added in v0.15.0

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

func (*MsgDeleteProfileResponse) MarshalToSizedBuffer added in v0.15.0

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

func (*MsgDeleteProfileResponse) ProtoMessage added in v0.15.0

func (*MsgDeleteProfileResponse) ProtoMessage()

func (*MsgDeleteProfileResponse) Reset added in v0.15.0

func (m *MsgDeleteProfileResponse) Reset()

func (*MsgDeleteProfileResponse) Size added in v0.15.0

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

func (*MsgDeleteProfileResponse) String added in v0.15.0

func (m *MsgDeleteProfileResponse) String() string

func (*MsgDeleteProfileResponse) Unmarshal added in v0.15.0

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

func (*MsgDeleteProfileResponse) XXX_DiscardUnknown added in v0.15.0

func (m *MsgDeleteProfileResponse) XXX_DiscardUnknown()

func (*MsgDeleteProfileResponse) XXX_Marshal added in v0.15.0

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

func (*MsgDeleteProfileResponse) XXX_Merge added in v0.15.0

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

func (*MsgDeleteProfileResponse) XXX_Size added in v0.15.0

func (m *MsgDeleteProfileResponse) XXX_Size() int

func (*MsgDeleteProfileResponse) XXX_Unmarshal added in v0.15.0

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

type MsgDeleteRelationship added in v0.16.0

type MsgDeleteRelationship struct {
	User         string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
	Counterparty string `protobuf:"bytes,2,opt,name=counterparty,proto3" json:"counterparty,omitempty" yaml:"counterparty"`
	Subspace     string `protobuf:"bytes,3,opt,name=subspace,proto3" json:"subspace,omitempty" yaml:"subspace"`
}

MsgDeleteRelationship represents a message to delete the relationship between two users.

func NewMsgDeleteRelationship added in v0.16.0

func NewMsgDeleteRelationship(user, counterparty, subspace string) *MsgDeleteRelationship

func (*MsgDeleteRelationship) Descriptor added in v0.16.0

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

func (*MsgDeleteRelationship) GetCounterparty added in v0.16.0

func (m *MsgDeleteRelationship) GetCounterparty() string

func (MsgDeleteRelationship) GetSignBytes added in v0.16.0

func (msg MsgDeleteRelationship) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgDeleteRelationship) GetSigners added in v0.16.0

func (msg MsgDeleteRelationship) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgDeleteRelationship) GetSubspace added in v0.16.0

func (m *MsgDeleteRelationship) GetSubspace() string

func (*MsgDeleteRelationship) GetUser added in v0.16.0

func (m *MsgDeleteRelationship) GetUser() string

func (*MsgDeleteRelationship) Marshal added in v0.16.0

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

func (*MsgDeleteRelationship) MarshalTo added in v0.16.0

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

func (*MsgDeleteRelationship) MarshalToSizedBuffer added in v0.16.0

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

func (*MsgDeleteRelationship) ProtoMessage added in v0.16.0

func (*MsgDeleteRelationship) ProtoMessage()

func (*MsgDeleteRelationship) Reset added in v0.16.0

func (m *MsgDeleteRelationship) Reset()

func (MsgDeleteRelationship) Route added in v0.16.0

func (msg MsgDeleteRelationship) Route() string

Route should return the name of the module

func (*MsgDeleteRelationship) Size added in v0.16.0

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

func (*MsgDeleteRelationship) String added in v0.16.0

func (m *MsgDeleteRelationship) String() string

func (MsgDeleteRelationship) Type added in v0.16.0

func (msg MsgDeleteRelationship) Type() string

Type should return the action

func (*MsgDeleteRelationship) Unmarshal added in v0.16.0

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

func (MsgDeleteRelationship) ValidateBasic added in v0.16.0

func (msg MsgDeleteRelationship) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgDeleteRelationship) XXX_DiscardUnknown added in v0.16.0

func (m *MsgDeleteRelationship) XXX_DiscardUnknown()

func (*MsgDeleteRelationship) XXX_Marshal added in v0.16.0

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

func (*MsgDeleteRelationship) XXX_Merge added in v0.16.0

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

func (*MsgDeleteRelationship) XXX_Size added in v0.16.0

func (m *MsgDeleteRelationship) XXX_Size() int

func (*MsgDeleteRelationship) XXX_Unmarshal added in v0.16.0

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

type MsgRefuseDTagTransfer added in v0.15.0

type MsgRefuseDTagTransfer struct {
	Sender   string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty" yaml:"receiver"`
}

MsgRefuseDTagTransfer represents the message used to refuse a DTag transfer request.

func NewMsgRefuseDTagTransferRequest added in v0.13.0

func NewMsgRefuseDTagTransferRequest(sender, receiver string) *MsgRefuseDTagTransfer

NewMsgRefuseDTagTransferRequest is a constructor for MsgRefuseDTagTransfer

func (*MsgRefuseDTagTransfer) Descriptor added in v0.15.0

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

func (MsgRefuseDTagTransfer) GetSignBytes added in v0.15.0

func (msg MsgRefuseDTagTransfer) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgRefuseDTagTransfer) GetSigners added in v0.15.0

func (msg MsgRefuseDTagTransfer) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgRefuseDTagTransfer) Marshal added in v0.15.0

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

func (*MsgRefuseDTagTransfer) MarshalTo added in v0.15.0

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

func (*MsgRefuseDTagTransfer) MarshalToSizedBuffer added in v0.15.0

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

func (*MsgRefuseDTagTransfer) ProtoMessage added in v0.15.0

func (*MsgRefuseDTagTransfer) ProtoMessage()

func (*MsgRefuseDTagTransfer) Reset added in v0.15.0

func (m *MsgRefuseDTagTransfer) Reset()

func (MsgRefuseDTagTransfer) Route added in v0.15.0

func (msg MsgRefuseDTagTransfer) Route() string

Route should return the name of the module

func (*MsgRefuseDTagTransfer) Size added in v0.15.0

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

func (*MsgRefuseDTagTransfer) String added in v0.15.0

func (m *MsgRefuseDTagTransfer) String() string

func (MsgRefuseDTagTransfer) Type added in v0.15.0

func (msg MsgRefuseDTagTransfer) Type() string

Type should return the action

func (*MsgRefuseDTagTransfer) Unmarshal added in v0.15.0

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

func (MsgRefuseDTagTransfer) ValidateBasic added in v0.15.0

func (msg MsgRefuseDTagTransfer) ValidateBasic() error

func (*MsgRefuseDTagTransfer) XXX_DiscardUnknown added in v0.15.0

func (m *MsgRefuseDTagTransfer) XXX_DiscardUnknown()

func (*MsgRefuseDTagTransfer) XXX_Marshal added in v0.15.0

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

func (*MsgRefuseDTagTransfer) XXX_Merge added in v0.15.0

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

func (*MsgRefuseDTagTransfer) XXX_Size added in v0.15.0

func (m *MsgRefuseDTagTransfer) XXX_Size() int

func (*MsgRefuseDTagTransfer) XXX_Unmarshal added in v0.15.0

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

type MsgRefuseDTagTransferResponse added in v0.15.0

type MsgRefuseDTagTransferResponse struct {
}

MsgRefuseDTagTransferResponse defines the Msg/RefuseDTagTransfer response.

func (*MsgRefuseDTagTransferResponse) Descriptor added in v0.15.0

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

func (*MsgRefuseDTagTransferResponse) Marshal added in v0.15.0

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

func (*MsgRefuseDTagTransferResponse) MarshalTo added in v0.15.0

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

func (*MsgRefuseDTagTransferResponse) MarshalToSizedBuffer added in v0.15.0

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

func (*MsgRefuseDTagTransferResponse) ProtoMessage added in v0.15.0

func (*MsgRefuseDTagTransferResponse) ProtoMessage()

func (*MsgRefuseDTagTransferResponse) Reset added in v0.15.0

func (m *MsgRefuseDTagTransferResponse) Reset()

func (*MsgRefuseDTagTransferResponse) Size added in v0.15.0

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

func (*MsgRefuseDTagTransferResponse) String added in v0.15.0

func (*MsgRefuseDTagTransferResponse) Unmarshal added in v0.15.0

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

func (*MsgRefuseDTagTransferResponse) XXX_DiscardUnknown added in v0.15.0

func (m *MsgRefuseDTagTransferResponse) XXX_DiscardUnknown()

func (*MsgRefuseDTagTransferResponse) XXX_Marshal added in v0.15.0

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

func (*MsgRefuseDTagTransferResponse) XXX_Merge added in v0.15.0

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

func (*MsgRefuseDTagTransferResponse) XXX_Size added in v0.15.0

func (m *MsgRefuseDTagTransferResponse) XXX_Size() int

func (*MsgRefuseDTagTransferResponse) XXX_Unmarshal added in v0.15.0

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

type MsgRequestDTagTransfer added in v0.12.0

type MsgRequestDTagTransfer struct {
	Receiver string `protobuf:"bytes,1,opt,name=receiver,proto3" json:"receiver,omitempty" yaml:"receiver"`
	Sender   string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
}

MsgRequestDTagTransfer represents the message used to request the DTag transfer to another user.

func NewMsgRequestDTagTransfer added in v0.12.0

func NewMsgRequestDTagTransfer(sender, receiver string) *MsgRequestDTagTransfer

NewMsgRequestDTagTransfer is a constructor function for MsgRequestDTagTransfer

func (*MsgRequestDTagTransfer) Descriptor added in v0.15.0

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

func (MsgRequestDTagTransfer) GetSignBytes added in v0.15.0

func (msg MsgRequestDTagTransfer) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgRequestDTagTransfer) GetSigners added in v0.15.0

func (msg MsgRequestDTagTransfer) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgRequestDTagTransfer) Marshal added in v0.15.0

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

func (*MsgRequestDTagTransfer) MarshalTo added in v0.15.0

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

func (*MsgRequestDTagTransfer) MarshalToSizedBuffer added in v0.15.0

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

func (*MsgRequestDTagTransfer) ProtoMessage added in v0.15.0

func (*MsgRequestDTagTransfer) ProtoMessage()

func (*MsgRequestDTagTransfer) Reset added in v0.15.0

func (m *MsgRequestDTagTransfer) Reset()

func (MsgRequestDTagTransfer) Route added in v0.15.0

func (msg MsgRequestDTagTransfer) Route() string

Route should return the name of the module

func (*MsgRequestDTagTransfer) Size added in v0.15.0

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

func (*MsgRequestDTagTransfer) String added in v0.15.0

func (m *MsgRequestDTagTransfer) String() string

func (MsgRequestDTagTransfer) Type added in v0.15.0

func (msg MsgRequestDTagTransfer) Type() string

Type should return the action

func (*MsgRequestDTagTransfer) Unmarshal added in v0.15.0

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

func (MsgRequestDTagTransfer) ValidateBasic added in v0.15.0

func (msg MsgRequestDTagTransfer) ValidateBasic() error

func (*MsgRequestDTagTransfer) XXX_DiscardUnknown added in v0.15.0

func (m *MsgRequestDTagTransfer) XXX_DiscardUnknown()

func (*MsgRequestDTagTransfer) XXX_Marshal added in v0.15.0

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

func (*MsgRequestDTagTransfer) XXX_Merge added in v0.15.0

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

func (*MsgRequestDTagTransfer) XXX_Size added in v0.15.0

func (m *MsgRequestDTagTransfer) XXX_Size() int

func (*MsgRequestDTagTransfer) XXX_Unmarshal added in v0.15.0

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

type MsgRequestDTagTransferResponse added in v0.15.0

type MsgRequestDTagTransferResponse struct {
}

MsgRequestDTagTransferResponse defines the Msg/RequestDTagTransfer response type.

func (*MsgRequestDTagTransferResponse) Descriptor added in v0.15.0

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

func (*MsgRequestDTagTransferResponse) Marshal added in v0.15.0

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

func (*MsgRequestDTagTransferResponse) MarshalTo added in v0.15.0

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

func (*MsgRequestDTagTransferResponse) MarshalToSizedBuffer added in v0.15.0

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

func (*MsgRequestDTagTransferResponse) ProtoMessage added in v0.15.0

func (*MsgRequestDTagTransferResponse) ProtoMessage()

func (*MsgRequestDTagTransferResponse) Reset added in v0.15.0

func (m *MsgRequestDTagTransferResponse) Reset()

func (*MsgRequestDTagTransferResponse) Size added in v0.15.0

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

func (*MsgRequestDTagTransferResponse) String added in v0.15.0

func (*MsgRequestDTagTransferResponse) Unmarshal added in v0.15.0

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

func (*MsgRequestDTagTransferResponse) XXX_DiscardUnknown added in v0.15.0

func (m *MsgRequestDTagTransferResponse) XXX_DiscardUnknown()

func (*MsgRequestDTagTransferResponse) XXX_Marshal added in v0.15.0

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

func (*MsgRequestDTagTransferResponse) XXX_Merge added in v0.15.0

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

func (*MsgRequestDTagTransferResponse) XXX_Size added in v0.15.0

func (m *MsgRequestDTagTransferResponse) XXX_Size() int

func (*MsgRequestDTagTransferResponse) XXX_Unmarshal added in v0.15.0

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

type MsgSaveProfile

type MsgSaveProfile struct {
	DTag           string `protobuf:"bytes,1,opt,name=dtag,proto3" json:"dtag,omitempty" yaml:"dtag"`
	Moniker        string `protobuf:"bytes,2,opt,name=moniker,proto3" json:"moniker,omitempty" yaml:"moniker"`
	Bio            string `protobuf:"bytes,3,opt,name=bio,proto3" json:"bio,omitempty" yaml:"bio"`
	ProfilePicture string `protobuf:"bytes,4,opt,name=profile_picture,json=profilePicture,proto3" json:"profile_picture" yaml:"profile_picture"`
	CoverPicture   string `protobuf:"bytes,5,opt,name=cover_picture,json=coverPicture,proto3" json:"cover_picture" yaml:"cover_picture"`
	Creator        string `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"`
}

MsgSaveProfile represents a message to save a profile.

func NewMsgSaveProfile

func NewMsgSaveProfile(dTag string, moniker, bio, profilePic, coverPic string, creator string) *MsgSaveProfile

NewMsgSaveProfile returns a new MsgSaveProfile instance

func (*MsgSaveProfile) Descriptor added in v0.15.0

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

func (MsgSaveProfile) GetSignBytes

func (msg MsgSaveProfile) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgSaveProfile) GetSigners

func (msg MsgSaveProfile) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgSaveProfile) Marshal added in v0.15.0

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

func (*MsgSaveProfile) MarshalTo added in v0.15.0

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

func (*MsgSaveProfile) MarshalToSizedBuffer added in v0.15.0

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

func (*MsgSaveProfile) ProtoMessage added in v0.15.0

func (*MsgSaveProfile) ProtoMessage()

func (*MsgSaveProfile) Reset added in v0.15.0

func (m *MsgSaveProfile) Reset()

func (MsgSaveProfile) Route

func (msg MsgSaveProfile) Route() string

Route should return the name of the module

func (*MsgSaveProfile) Size added in v0.15.0

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

func (*MsgSaveProfile) String added in v0.15.0

func (m *MsgSaveProfile) String() string

func (MsgSaveProfile) Type

func (msg MsgSaveProfile) Type() string

Type should return the action

func (*MsgSaveProfile) Unmarshal added in v0.15.0

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

func (MsgSaveProfile) ValidateBasic

func (msg MsgSaveProfile) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgSaveProfile) XXX_DiscardUnknown added in v0.15.0

func (m *MsgSaveProfile) XXX_DiscardUnknown()

func (*MsgSaveProfile) XXX_Marshal added in v0.15.0

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

func (*MsgSaveProfile) XXX_Merge added in v0.15.0

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

func (*MsgSaveProfile) XXX_Size added in v0.15.0

func (m *MsgSaveProfile) XXX_Size() int

func (*MsgSaveProfile) XXX_Unmarshal added in v0.15.0

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

type MsgSaveProfileResponse added in v0.15.0

type MsgSaveProfileResponse struct {
}

MsgSaveProfileResponse defines the Msg/SaveProfile response type.

func (*MsgSaveProfileResponse) Descriptor added in v0.15.0

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

func (*MsgSaveProfileResponse) Marshal added in v0.15.0

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

func (*MsgSaveProfileResponse) MarshalTo added in v0.15.0

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

func (*MsgSaveProfileResponse) MarshalToSizedBuffer added in v0.15.0

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

func (*MsgSaveProfileResponse) ProtoMessage added in v0.15.0

func (*MsgSaveProfileResponse) ProtoMessage()

func (*MsgSaveProfileResponse) Reset added in v0.15.0

func (m *MsgSaveProfileResponse) Reset()

func (*MsgSaveProfileResponse) Size added in v0.15.0

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

func (*MsgSaveProfileResponse) String added in v0.15.0

func (m *MsgSaveProfileResponse) String() string

func (*MsgSaveProfileResponse) Unmarshal added in v0.15.0

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

func (*MsgSaveProfileResponse) XXX_DiscardUnknown added in v0.15.0

func (m *MsgSaveProfileResponse) XXX_DiscardUnknown()

func (*MsgSaveProfileResponse) XXX_Marshal added in v0.15.0

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

func (*MsgSaveProfileResponse) XXX_Merge added in v0.15.0

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

func (*MsgSaveProfileResponse) XXX_Size added in v0.15.0

func (m *MsgSaveProfileResponse) XXX_Size() int

func (*MsgSaveProfileResponse) XXX_Unmarshal added in v0.15.0

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

type MsgServer added in v0.15.0

type MsgServer interface {
	// SaveProfile defines the method to save a profile
	SaveProfile(context.Context, *MsgSaveProfile) (*MsgSaveProfileResponse, error)
	// DeleteProfile defines the method to delete an existing profile
	DeleteProfile(context.Context, *MsgDeleteProfile) (*MsgDeleteProfileResponse, error)
	// RequestDTagTransfer defines the method to request another user to transfer
	// their DTag to you
	RequestDTagTransfer(context.Context, *MsgRequestDTagTransfer) (*MsgRequestDTagTransferResponse, error)
	// CancelDTagTransfer defines the method to cancel an outgoing DTag transfer
	// request
	CancelDTagTransfer(context.Context, *MsgCancelDTagTransfer) (*MsgCancelDTagTransferResponse, error)
	// AcceptDTagTransfer defines the method to accept an incoming DTag transfer
	// request
	AcceptDTagTransfer(context.Context, *MsgAcceptDTagTransfer) (*MsgAcceptDTagTransferResponse, error)
	// RefuseDTagTransfer defines the method to refuse an incoming DTag transfer
	// request
	RefuseDTagTransfer(context.Context, *MsgRefuseDTagTransfer) (*MsgRefuseDTagTransferResponse, error)
	// CreateRelationship defines a method for creating a new relationship
	CreateRelationship(context.Context, *MsgCreateRelationship) (*CreateRelationshipResponse, error)
	// DeleteRelationship defines a method for deleting a relationship
	DeleteRelationship(context.Context, *MsgDeleteRelationship) (*DeleteRelationshipResponse, error)
	// BlockUser defines a method for blocking a user
	BlockUser(context.Context, *MsgBlockUser) (*BlockUserResponse, error)
	// UnblockUser defines a method for unblocking a user
	UnblockUser(context.Context, *MsgUnblockUser) (*UnblockUserResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUnblockUser added in v0.16.0

type MsgUnblockUser struct {
	Blocker  string `protobuf:"bytes,1,opt,name=blocker,proto3" json:"blocker,omitempty" yaml:"blocker"`
	Blocked  string `protobuf:"bytes,2,opt,name=blocked,proto3" json:"blocked,omitempty" yaml:"blocked"`
	Subspace string `protobuf:"bytes,4,opt,name=subspace,proto3" json:"subspace,omitempty" yaml:"subspace"`
}

MsgUnblockUser represents a message to unblock a previously blocked user.

func NewMsgUnblockUser added in v0.16.0

func NewMsgUnblockUser(blocker, blocked, subspace string) *MsgUnblockUser

func (*MsgUnblockUser) Descriptor added in v0.16.0

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

func (*MsgUnblockUser) GetBlocked added in v0.16.0

func (m *MsgUnblockUser) GetBlocked() string

func (*MsgUnblockUser) GetBlocker added in v0.16.0

func (m *MsgUnblockUser) GetBlocker() string

func (MsgUnblockUser) GetSignBytes added in v0.16.0

func (msg MsgUnblockUser) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgUnblockUser) GetSigners added in v0.16.0

func (msg MsgUnblockUser) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgUnblockUser) GetSubspace added in v0.16.0

func (m *MsgUnblockUser) GetSubspace() string

func (*MsgUnblockUser) Marshal added in v0.16.0

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

func (*MsgUnblockUser) MarshalTo added in v0.16.0

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

func (*MsgUnblockUser) MarshalToSizedBuffer added in v0.16.0

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

func (*MsgUnblockUser) ProtoMessage added in v0.16.0

func (*MsgUnblockUser) ProtoMessage()

func (*MsgUnblockUser) Reset added in v0.16.0

func (m *MsgUnblockUser) Reset()

func (MsgUnblockUser) Route added in v0.16.0

func (msg MsgUnblockUser) Route() string

Route should return the name of the module

func (*MsgUnblockUser) Size added in v0.16.0

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

func (*MsgUnblockUser) String added in v0.16.0

func (m *MsgUnblockUser) String() string

func (MsgUnblockUser) Type added in v0.16.0

func (msg MsgUnblockUser) Type() string

Type should return the action

func (*MsgUnblockUser) Unmarshal added in v0.16.0

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

func (MsgUnblockUser) ValidateBasic added in v0.16.0

func (msg MsgUnblockUser) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgUnblockUser) XXX_DiscardUnknown added in v0.16.0

func (m *MsgUnblockUser) XXX_DiscardUnknown()

func (*MsgUnblockUser) XXX_Marshal added in v0.16.0

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

func (*MsgUnblockUser) XXX_Merge added in v0.16.0

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

func (*MsgUnblockUser) XXX_Size added in v0.16.0

func (m *MsgUnblockUser) XXX_Size() int

func (*MsgUnblockUser) XXX_Unmarshal added in v0.16.0

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

type Params

type Params struct {
	MonikerParams MonikerParams                          `protobuf:"bytes,1,opt,name=moniker_params,json=monikerParams,proto3" json:"moniker_params" yaml:"moniker_params"`
	DTagParams    DTagParams                             `protobuf:"bytes,2,opt,name=dtag_params,json=dtagParams,proto3" json:"dtag_params" yaml:"dtag_params"`
	MaxBioLength  github_com_cosmos_cosmos_sdk_types.Int `` /* 161-byte string literal not displayed */
}

Params contains the parameters for the profiles module

func DefaultParams

func DefaultParams() Params

DefaultParams return default paramsModule

func NewParams

func NewParams(monikerParams MonikerParams, dTagParams DTagParams, maxBioLen sdk.Int) Params

NewParams creates a new ProfileParams obj

func (*Params) Descriptor added in v0.15.0

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

func (*Params) GetDTagParams added in v0.16.0

func (m *Params) GetDTagParams() DTagParams

func (*Params) GetMonikerParams added in v0.15.0

func (m *Params) GetMonikerParams() MonikerParams

func (*Params) Marshal added in v0.15.0

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

func (*Params) MarshalTo added in v0.15.0

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

func (*Params) MarshalToSizedBuffer added in v0.15.0

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

func (*Params) ParamSetPairs

func (params *Params) ParamSetPairs() paramstypes.ParamSetPairs

ParamSetPairs implements the ParamSet interface and returns the key/value pairs of profile module's parameters.

func (*Params) ProtoMessage added in v0.15.0

func (*Params) ProtoMessage()

func (*Params) Reset added in v0.15.0

func (m *Params) Reset()

func (*Params) Size added in v0.15.0

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal added in v0.15.0

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

func (Params) Validate

func (params Params) Validate() error

Validate perform basic checks on all parameters to ensure they are correct

func (*Params) XXX_DiscardUnknown added in v0.15.0

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v0.15.0

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

func (*Params) XXX_Merge added in v0.15.0

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

func (*Params) XXX_Size added in v0.15.0

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v0.15.0

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

type Pictures

type Pictures struct {
	Profile string `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty" yaml:"profile"`
	Cover   string `protobuf:"bytes,2,opt,name=cover,proto3" json:"cover,omitempty" yaml:"cover"`
}

Pictures contains the data of a user profile's related pictures

func NewPictures

func NewPictures(profile, cover string) Pictures

NewPictures is a constructor function for Pictures

func (*Pictures) Descriptor added in v0.15.0

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

func (*Pictures) Equal added in v0.15.0

func (this *Pictures) Equal(that interface{}) bool

func (*Pictures) GetCover added in v0.15.0

func (m *Pictures) GetCover() string

func (*Pictures) GetProfile added in v0.15.0

func (m *Pictures) GetProfile() string

func (*Pictures) Marshal added in v0.15.0

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

func (*Pictures) MarshalTo added in v0.15.0

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

func (*Pictures) MarshalToSizedBuffer added in v0.15.0

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

func (*Pictures) ProtoMessage added in v0.15.0

func (*Pictures) ProtoMessage()

func (*Pictures) Reset added in v0.15.0

func (m *Pictures) Reset()

func (*Pictures) Size added in v0.15.0

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

func (*Pictures) String added in v0.15.0

func (m *Pictures) String() string

func (*Pictures) Unmarshal added in v0.15.0

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

func (Pictures) Validate

func (pic Pictures) Validate() error

Validate check the validity of the Pictures

func (*Pictures) XXX_DiscardUnknown added in v0.15.0

func (m *Pictures) XXX_DiscardUnknown()

func (*Pictures) XXX_Marshal added in v0.15.0

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

func (*Pictures) XXX_Merge added in v0.15.0

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

func (*Pictures) XXX_Size added in v0.15.0

func (m *Pictures) XXX_Size() int

func (*Pictures) XXX_Unmarshal added in v0.15.0

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

type Profile

type Profile struct {
	Account      *types.Any `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	DTag         string     `protobuf:"bytes,2,opt,name=dtag,proto3" json:"dtag,omitempty" yaml:"dtag"`
	Moniker      string     `protobuf:"bytes,3,opt,name=moniker,proto3" json:"moniker,omitempty" yaml:"moniker"`
	Bio          string     `protobuf:"bytes,4,opt,name=bio,proto3" json:"bio,omitempty" yaml:"bio"`
	Pictures     Pictures   `protobuf:"bytes,5,opt,name=pictures,proto3" json:"pictures" yaml:"pictures"`
	CreationDate time.Time  `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3,stdtime" json:"creation_date" yaml:"creation_date"`
}

Profile represents a generic first on Desmos, containing the information of a single user

func NewProfile

func NewProfile(
	dTag string, moniker, bio string, pictures Pictures, creationDate time.Time, account authtypes.AccountI,
) (*Profile, error)

NewProfile builds a new profile having the given DTag, creator and creation date

func (*Profile) Descriptor added in v0.15.0

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

func (*Profile) GetAccount added in v0.16.0

func (p *Profile) GetAccount() authtypes.AccountI

GetAccount returns the underlying account as an authtypes.AccountI instance

func (*Profile) GetAccountNumber added in v0.16.0

func (p *Profile) GetAccountNumber() uint64

GetAccountNumber implements authtypes.AccountI

func (*Profile) GetAddress added in v0.16.0

func (p *Profile) GetAddress() sdk.AccAddress

GetAddress implements authtypes.AccountI

func (*Profile) GetPubKey added in v0.16.0

func (p *Profile) GetPubKey() cryptotypes.PubKey

GetPubKey implements authtypes.AccountI

func (*Profile) GetSequence added in v0.16.0

func (p *Profile) GetSequence() uint64

GetSequence implements authtypes.AccountI

func (*Profile) Marshal added in v0.15.0

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

func (Profile) MarshalJSON added in v0.16.0

func (p Profile) MarshalJSON() ([]byte, error)

MarshalJSON returns the JSON representation of a Profile.

func (*Profile) MarshalTo added in v0.15.0

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

func (*Profile) MarshalToSizedBuffer added in v0.15.0

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

func (*Profile) MarshalYAML added in v0.16.0

func (p *Profile) MarshalYAML() (interface{}, error)

MarshalYAML returns the YAML representation of a Profile.

func (*Profile) ProtoMessage added in v0.15.0

func (*Profile) ProtoMessage()

func (*Profile) Reset added in v0.15.0

func (m *Profile) Reset()

func (*Profile) SetAccountNumber added in v0.16.0

func (p *Profile) SetAccountNumber(accountNumber uint64) error

SetAccountNumber implements authtypes.AccountI

func (*Profile) SetAddress added in v0.16.0

func (p *Profile) SetAddress(addr sdk.AccAddress) error

SetAddress implements authtypes.AccountI

func (*Profile) SetPubKey added in v0.16.0

func (p *Profile) SetPubKey(pubKey cryptotypes.PubKey) error

SetPubKey implements authtypes.AccountI

func (*Profile) SetSequence added in v0.16.0

func (p *Profile) SetSequence(sequence uint64) error

SetSequence implements authtypes.AccountI

func (*Profile) Size added in v0.15.0

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

func (*Profile) String

func (p *Profile) String() string

Ensure that acc // String implements authtypes.AccountIount implements stringer

func (*Profile) Unmarshal added in v0.15.0

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

func (*Profile) UnpackInterfaces added in v0.16.0

func (p *Profile) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (*Profile) Update added in v0.15.0

func (p *Profile) Update(update *ProfileUpdate) (*Profile, error)

Update updates the fields of a given profile. An error is returned if the resulting profile contains invalid values.

func (*Profile) Validate

func (p *Profile) Validate() error

Validate check the validity of the Profile

func (*Profile) XXX_DiscardUnknown added in v0.15.0

func (m *Profile) XXX_DiscardUnknown()

func (*Profile) XXX_Marshal added in v0.15.0

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

func (*Profile) XXX_Merge added in v0.15.0

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

func (*Profile) XXX_Size added in v0.15.0

func (m *Profile) XXX_Size() int

func (*Profile) XXX_Unmarshal added in v0.15.0

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

type ProfileUpdate added in v0.16.0

type ProfileUpdate struct {
	DTag     string
	Moniker  string
	Bio      string
	Pictures Pictures
}

ProfileUpdate contains all the data that can be updated about a profile. When performing an update, if a field should not be edited then it must be set to types.DoNotModify

func NewProfileUpdate added in v0.16.0

func NewProfileUpdate(dTag, moniker, bio string, pictures Pictures) *ProfileUpdate

NewProfileUpdate builds a new ProfileUpdate instance containing the given data

type QueryClient added in v0.15.0

type QueryClient interface {
	// Profile queries the profile of a specific user given their DTag or address.
	// If the queried user does not have a profile, the returned response will
	// contain a null profile.
	Profile(ctx context.Context, in *QueryProfileRequest, opts ...grpc.CallOption) (*QueryProfileResponse, error)
	// DTagTransfers queries all the DTag transfers requests that have been made
	// towards the user with the given address
	DTagTransfers(ctx context.Context, in *QueryDTagTransfersRequest, opts ...grpc.CallOption) (*QueryDTagTransfersResponse, error)
	// Params queries the profiles module params
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// UserRelationships queries the relationships for the user having the given
	// address
	UserRelationships(ctx context.Context, in *QueryUserRelationshipsRequest, opts ...grpc.CallOption) (*QueryUserRelationshipsResponse, error)
	// UserBlocks queries the user blocks for the user having the given address
	UserBlocks(ctx context.Context, in *QueryUserBlocksRequest, opts ...grpc.CallOption) (*QueryUserBlocksResponse, 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 added in v0.15.0

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryDTagTransfersRequest added in v0.15.0

type QueryDTagTransfersRequest struct {
	// Address or DTag of the user to query the transfer requests for
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
}

QueryDTagTransfersRequest is the request type for the Query/DTagTransfers RPC endpoint

func NewQueryDTagTransfersRequest added in v0.16.0

func NewQueryDTagTransfersRequest(user string) *QueryDTagTransfersRequest

NewQueryDTagTransfersRequest returns a new QueryDTagTransfersRequest containing the given data

func (*QueryDTagTransfersRequest) Descriptor added in v0.15.0

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

func (*QueryDTagTransfersRequest) Marshal added in v0.15.0

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

func (*QueryDTagTransfersRequest) MarshalTo added in v0.15.0

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

func (*QueryDTagTransfersRequest) MarshalToSizedBuffer added in v0.15.0

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

func (*QueryDTagTransfersRequest) ProtoMessage added in v0.15.0

func (*QueryDTagTransfersRequest) ProtoMessage()

func (*QueryDTagTransfersRequest) Reset added in v0.15.0

func (m *QueryDTagTransfersRequest) Reset()

func (*QueryDTagTransfersRequest) Size added in v0.15.0

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

func (*QueryDTagTransfersRequest) String added in v0.15.0

func (m *QueryDTagTransfersRequest) String() string

func (*QueryDTagTransfersRequest) Unmarshal added in v0.15.0

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

func (*QueryDTagTransfersRequest) XXX_DiscardUnknown added in v0.15.0

func (m *QueryDTagTransfersRequest) XXX_DiscardUnknown()

func (*QueryDTagTransfersRequest) XXX_Marshal added in v0.15.0

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

func (*QueryDTagTransfersRequest) XXX_Merge added in v0.15.0

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

func (*QueryDTagTransfersRequest) XXX_Size added in v0.15.0

func (m *QueryDTagTransfersRequest) XXX_Size() int

func (*QueryDTagTransfersRequest) XXX_Unmarshal added in v0.15.0

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

type QueryDTagTransfersResponse added in v0.15.0

type QueryDTagTransfersResponse struct {
	// relationships represent the list of all the blocks for the queried user
	Requests []DTagTransferRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests"`
}

QueryDTagTransfersResponse is the response type for the Query/DTagTransfers RPC method.

func (*QueryDTagTransfersResponse) Descriptor added in v0.15.0

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

func (*QueryDTagTransfersResponse) GetRequests added in v0.15.0

func (*QueryDTagTransfersResponse) Marshal added in v0.15.0

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

func (*QueryDTagTransfersResponse) MarshalTo added in v0.15.0

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

func (*QueryDTagTransfersResponse) MarshalToSizedBuffer added in v0.15.0

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

func (*QueryDTagTransfersResponse) ProtoMessage added in v0.15.0

func (*QueryDTagTransfersResponse) ProtoMessage()

func (*QueryDTagTransfersResponse) Reset added in v0.15.0

func (m *QueryDTagTransfersResponse) Reset()

func (*QueryDTagTransfersResponse) Size added in v0.15.0

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

func (*QueryDTagTransfersResponse) String added in v0.15.0

func (m *QueryDTagTransfersResponse) String() string

func (*QueryDTagTransfersResponse) Unmarshal added in v0.15.0

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

func (*QueryDTagTransfersResponse) XXX_DiscardUnknown added in v0.15.0

func (m *QueryDTagTransfersResponse) XXX_DiscardUnknown()

func (*QueryDTagTransfersResponse) XXX_Marshal added in v0.15.0

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

func (*QueryDTagTransfersResponse) XXX_Merge added in v0.15.0

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

func (*QueryDTagTransfersResponse) XXX_Size added in v0.15.0

func (m *QueryDTagTransfersResponse) XXX_Size() int

func (*QueryDTagTransfersResponse) XXX_Unmarshal added in v0.15.0

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

type QueryParamsRequest added in v0.15.0

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params RPC endpoint

func (*QueryParamsRequest) Descriptor added in v0.15.0

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

func (*QueryParamsRequest) Marshal added in v0.15.0

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

func (*QueryParamsRequest) MarshalTo added in v0.15.0

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

func (*QueryParamsRequest) MarshalToSizedBuffer added in v0.15.0

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

func (*QueryParamsRequest) ProtoMessage added in v0.15.0

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset added in v0.15.0

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size added in v0.15.0

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

func (*QueryParamsRequest) String added in v0.15.0

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal added in v0.15.0

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

func (*QueryParamsRequest) XXX_DiscardUnknown added in v0.15.0

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal added in v0.15.0

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

func (*QueryParamsRequest) XXX_Merge added in v0.15.0

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

func (*QueryParamsRequest) XXX_Size added in v0.15.0

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal added in v0.15.0

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

type QueryParamsResponse added in v0.15.0

type QueryParamsResponse struct {
	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 added in v0.15.0

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

func (*QueryParamsResponse) GetParams added in v0.15.0

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal added in v0.15.0

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

func (*QueryParamsResponse) MarshalTo added in v0.15.0

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

func (*QueryParamsResponse) MarshalToSizedBuffer added in v0.15.0

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

func (*QueryParamsResponse) ProtoMessage added in v0.15.0

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset added in v0.15.0

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size added in v0.15.0

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

func (*QueryParamsResponse) String added in v0.15.0

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal added in v0.15.0

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

func (*QueryParamsResponse) XXX_DiscardUnknown added in v0.15.0

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal added in v0.15.0

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

func (*QueryParamsResponse) XXX_Merge added in v0.15.0

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

func (*QueryParamsResponse) XXX_Size added in v0.15.0

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal added in v0.15.0

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

type QueryProfileRequest added in v0.15.0

type QueryProfileRequest struct {
	// Address or DTag of the user to query the profile for
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
}

QueryProfileRequest is the request type for the Query/Profile RPC method.

func NewQueryProfileRequest added in v0.16.0

func NewQueryProfileRequest(user string) *QueryProfileRequest

NewQueryProfileRequest returns a new QueryProfileRequest containing the given data

func (*QueryProfileRequest) Descriptor added in v0.15.0

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

func (*QueryProfileRequest) Marshal added in v0.15.0

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

func (*QueryProfileRequest) MarshalTo added in v0.15.0

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

func (*QueryProfileRequest) MarshalToSizedBuffer added in v0.15.0

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

func (*QueryProfileRequest) ProtoMessage added in v0.15.0

func (*QueryProfileRequest) ProtoMessage()

func (*QueryProfileRequest) Reset added in v0.15.0

func (m *QueryProfileRequest) Reset()

func (*QueryProfileRequest) Size added in v0.15.0

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

func (*QueryProfileRequest) String added in v0.15.0

func (m *QueryProfileRequest) String() string

func (*QueryProfileRequest) Unmarshal added in v0.15.0

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

func (*QueryProfileRequest) XXX_DiscardUnknown added in v0.15.0

func (m *QueryProfileRequest) XXX_DiscardUnknown()

func (*QueryProfileRequest) XXX_Marshal added in v0.15.0

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

func (*QueryProfileRequest) XXX_Merge added in v0.15.0

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

func (*QueryProfileRequest) XXX_Size added in v0.15.0

func (m *QueryProfileRequest) XXX_Size() int

func (*QueryProfileRequest) XXX_Unmarshal added in v0.15.0

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

type QueryProfileResponse added in v0.15.0

type QueryProfileResponse struct {
	Profile *types.Any `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
}

QueryProfileResponse is the response type for the Query/Profile RPC method.

func (*QueryProfileResponse) Descriptor added in v0.15.0

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

func (*QueryProfileResponse) GetProfile added in v0.15.0

func (m *QueryProfileResponse) GetProfile() *types.Any

func (*QueryProfileResponse) Marshal added in v0.15.0

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

func (*QueryProfileResponse) MarshalTo added in v0.15.0

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

func (*QueryProfileResponse) MarshalToSizedBuffer added in v0.15.0

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

func (*QueryProfileResponse) ProtoMessage added in v0.15.0

func (*QueryProfileResponse) ProtoMessage()

func (*QueryProfileResponse) Reset added in v0.15.0

func (m *QueryProfileResponse) Reset()

func (*QueryProfileResponse) Size added in v0.15.0

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

func (*QueryProfileResponse) String added in v0.15.0

func (m *QueryProfileResponse) String() string

func (*QueryProfileResponse) Unmarshal added in v0.15.0

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

func (*QueryProfileResponse) UnpackInterfaces added in v0.16.0

func (r *QueryProfileResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (*QueryProfileResponse) XXX_DiscardUnknown added in v0.15.0

func (m *QueryProfileResponse) XXX_DiscardUnknown()

func (*QueryProfileResponse) XXX_Marshal added in v0.15.0

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

func (*QueryProfileResponse) XXX_Merge added in v0.15.0

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

func (*QueryProfileResponse) XXX_Size added in v0.15.0

func (m *QueryProfileResponse) XXX_Size() int

func (*QueryProfileResponse) XXX_Unmarshal added in v0.15.0

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

type QueryServer added in v0.15.0

type QueryServer interface {
	// Profile queries the profile of a specific user given their DTag or address.
	// If the queried user does not have a profile, the returned response will
	// contain a null profile.
	Profile(context.Context, *QueryProfileRequest) (*QueryProfileResponse, error)
	// DTagTransfers queries all the DTag transfers requests that have been made
	// towards the user with the given address
	DTagTransfers(context.Context, *QueryDTagTransfersRequest) (*QueryDTagTransfersResponse, error)
	// Params queries the profiles module params
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// UserRelationships queries the relationships for the user having the given
	// address
	UserRelationships(context.Context, *QueryUserRelationshipsRequest) (*QueryUserRelationshipsResponse, error)
	// UserBlocks queries the user blocks for the user having the given address
	UserBlocks(context.Context, *QueryUserBlocksRequest) (*QueryUserBlocksResponse, error)
}

QueryServer is the server API for Query service.

type QueryUserBlocksRequest added in v0.16.0

type QueryUserBlocksRequest struct {
	// address of the user to query the blocks for
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
}

QueryUserBlocksRequest is the request type for the Query/UserBlocks RPC endpoint

func (*QueryUserBlocksRequest) Descriptor added in v0.16.0

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

func (*QueryUserBlocksRequest) Marshal added in v0.16.0

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

func (*QueryUserBlocksRequest) MarshalTo added in v0.16.0

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

func (*QueryUserBlocksRequest) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryUserBlocksRequest) ProtoMessage added in v0.16.0

func (*QueryUserBlocksRequest) ProtoMessage()

func (*QueryUserBlocksRequest) Reset added in v0.16.0

func (m *QueryUserBlocksRequest) Reset()

func (*QueryUserBlocksRequest) Size added in v0.16.0

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

func (*QueryUserBlocksRequest) String added in v0.16.0

func (m *QueryUserBlocksRequest) String() string

func (*QueryUserBlocksRequest) Unmarshal added in v0.16.0

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

func (*QueryUserBlocksRequest) XXX_DiscardUnknown added in v0.16.0

func (m *QueryUserBlocksRequest) XXX_DiscardUnknown()

func (*QueryUserBlocksRequest) XXX_Marshal added in v0.16.0

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

func (*QueryUserBlocksRequest) XXX_Merge added in v0.16.0

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

func (*QueryUserBlocksRequest) XXX_Size added in v0.16.0

func (m *QueryUserBlocksRequest) XXX_Size() int

func (*QueryUserBlocksRequest) XXX_Unmarshal added in v0.16.0

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

type QueryUserBlocksResponse added in v0.16.0

type QueryUserBlocksResponse struct {
	// blocks represent the list of all the blocks for the queried user
	Blocks []UserBlock `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks"`
}

QueryUserBlocksResponse is the response type for the Query/UserBlocks RPC method.

func (*QueryUserBlocksResponse) Descriptor added in v0.16.0

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

func (*QueryUserBlocksResponse) GetBlocks added in v0.16.0

func (m *QueryUserBlocksResponse) GetBlocks() []UserBlock

func (*QueryUserBlocksResponse) Marshal added in v0.16.0

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

func (*QueryUserBlocksResponse) MarshalTo added in v0.16.0

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

func (*QueryUserBlocksResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryUserBlocksResponse) ProtoMessage added in v0.16.0

func (*QueryUserBlocksResponse) ProtoMessage()

func (*QueryUserBlocksResponse) Reset added in v0.16.0

func (m *QueryUserBlocksResponse) Reset()

func (*QueryUserBlocksResponse) Size added in v0.16.0

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

func (*QueryUserBlocksResponse) String added in v0.16.0

func (m *QueryUserBlocksResponse) String() string

func (*QueryUserBlocksResponse) Unmarshal added in v0.16.0

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

func (*QueryUserBlocksResponse) XXX_DiscardUnknown added in v0.16.0

func (m *QueryUserBlocksResponse) XXX_DiscardUnknown()

func (*QueryUserBlocksResponse) XXX_Marshal added in v0.16.0

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

func (*QueryUserBlocksResponse) XXX_Merge added in v0.16.0

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

func (*QueryUserBlocksResponse) XXX_Size added in v0.16.0

func (m *QueryUserBlocksResponse) XXX_Size() int

func (*QueryUserBlocksResponse) XXX_Unmarshal added in v0.16.0

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

type QueryUserRelationshipsRequest added in v0.16.0

type QueryUserRelationshipsRequest struct {
	// address of the user to query the relationships for
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
}

QueryUserRelationshipsRequest is the request type for the Query/UserRelationships RPC method.

func (*QueryUserRelationshipsRequest) Descriptor added in v0.16.0

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

func (*QueryUserRelationshipsRequest) Marshal added in v0.16.0

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

func (*QueryUserRelationshipsRequest) MarshalTo added in v0.16.0

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

func (*QueryUserRelationshipsRequest) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryUserRelationshipsRequest) ProtoMessage added in v0.16.0

func (*QueryUserRelationshipsRequest) ProtoMessage()

func (*QueryUserRelationshipsRequest) Reset added in v0.16.0

func (m *QueryUserRelationshipsRequest) Reset()

func (*QueryUserRelationshipsRequest) Size added in v0.16.0

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

func (*QueryUserRelationshipsRequest) String added in v0.16.0

func (*QueryUserRelationshipsRequest) Unmarshal added in v0.16.0

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

func (*QueryUserRelationshipsRequest) XXX_DiscardUnknown added in v0.16.0

func (m *QueryUserRelationshipsRequest) XXX_DiscardUnknown()

func (*QueryUserRelationshipsRequest) XXX_Marshal added in v0.16.0

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

func (*QueryUserRelationshipsRequest) XXX_Merge added in v0.16.0

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

func (*QueryUserRelationshipsRequest) XXX_Size added in v0.16.0

func (m *QueryUserRelationshipsRequest) XXX_Size() int

func (*QueryUserRelationshipsRequest) XXX_Unmarshal added in v0.16.0

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

type QueryUserRelationshipsResponse added in v0.16.0

type QueryUserRelationshipsResponse struct {
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// relationships represent the list of all the relationships for the queried
	// user
	Relationships []Relationship `protobuf:"bytes,2,rep,name=relationships,proto3" json:"relationships"`
}

QueryUserRelationshipsResponse is the response type for the Query/UserRelationships RPC method.

func (*QueryUserRelationshipsResponse) Descriptor added in v0.16.0

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

func (*QueryUserRelationshipsResponse) GetRelationships added in v0.16.0

func (m *QueryUserRelationshipsResponse) GetRelationships() []Relationship

func (*QueryUserRelationshipsResponse) GetUser added in v0.16.0

func (*QueryUserRelationshipsResponse) Marshal added in v0.16.0

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

func (*QueryUserRelationshipsResponse) MarshalTo added in v0.16.0

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

func (*QueryUserRelationshipsResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*QueryUserRelationshipsResponse) ProtoMessage added in v0.16.0

func (*QueryUserRelationshipsResponse) ProtoMessage()

func (*QueryUserRelationshipsResponse) Reset added in v0.16.0

func (m *QueryUserRelationshipsResponse) Reset()

func (*QueryUserRelationshipsResponse) Size added in v0.16.0

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

func (*QueryUserRelationshipsResponse) String added in v0.16.0

func (*QueryUserRelationshipsResponse) Unmarshal added in v0.16.0

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

func (*QueryUserRelationshipsResponse) XXX_DiscardUnknown added in v0.16.0

func (m *QueryUserRelationshipsResponse) XXX_DiscardUnknown()

func (*QueryUserRelationshipsResponse) XXX_Marshal added in v0.16.0

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

func (*QueryUserRelationshipsResponse) XXX_Merge added in v0.16.0

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

func (*QueryUserRelationshipsResponse) XXX_Size added in v0.16.0

func (m *QueryUserRelationshipsResponse) XXX_Size() int

func (*QueryUserRelationshipsResponse) XXX_Unmarshal added in v0.16.0

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

type Relationship added in v0.16.0

type Relationship struct {
	Creator   string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"`
	Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty" yaml:"recipient"`
	Subspace  string `protobuf:"bytes,3,opt,name=subspace,proto3" json:"subspace,omitempty" yaml:"subspace"`
}

Relationship is the struct of a relationship. It represent the concept of "follow" of traditional social networks.

func MustUnmarshalRelationships added in v0.16.0

func MustUnmarshalRelationships(codec codec.BinaryMarshaler, bz []byte) []Relationship

MustUnmarshalRelationships deserializes the given byte array as an array of relationships using the provided BinaryMarshaler

func NewRelationship added in v0.16.0

func NewRelationship(creator string, recipient string, subspace string) Relationship

NewRelationship returns a new relationships with the given recipient and subspace

func RemoveRelationship added in v0.16.0

func RemoveRelationship(relationships []Relationship, relationship Relationship) ([]Relationship, bool)

RemoveRelationship removes the given relationships from the provided relationships slice. If the relationship was found, returns the slice with it removed and true. Otherwise, returns the original slice and false

func (*Relationship) Descriptor added in v0.16.0

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

func (*Relationship) Equal added in v0.16.0

func (this *Relationship) Equal(that interface{}) bool

func (*Relationship) GetCreator added in v0.16.0

func (m *Relationship) GetCreator() string

func (*Relationship) GetRecipient added in v0.16.0

func (m *Relationship) GetRecipient() string

func (*Relationship) GetSubspace added in v0.16.0

func (m *Relationship) GetSubspace() string

func (*Relationship) Marshal added in v0.16.0

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

func (*Relationship) MarshalTo added in v0.16.0

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

func (*Relationship) MarshalToSizedBuffer added in v0.16.0

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

func (*Relationship) ProtoMessage added in v0.16.0

func (*Relationship) ProtoMessage()

func (*Relationship) Reset added in v0.16.0

func (m *Relationship) Reset()

func (*Relationship) Size added in v0.16.0

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

func (*Relationship) String added in v0.16.0

func (m *Relationship) String() string

func (*Relationship) Unmarshal added in v0.16.0

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

func (Relationship) Validate added in v0.16.0

func (r Relationship) Validate() error

Validate implement Validator

func (*Relationship) XXX_DiscardUnknown added in v0.16.0

func (m *Relationship) XXX_DiscardUnknown()

func (*Relationship) XXX_Marshal added in v0.16.0

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

func (*Relationship) XXX_Merge added in v0.16.0

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

func (*Relationship) XXX_Size added in v0.16.0

func (m *Relationship) XXX_Size() int

func (*Relationship) XXX_Unmarshal added in v0.16.0

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

type Relationships added in v0.16.0

type Relationships struct {
	Relationships []Relationship `protobuf:"bytes,1,rep,name=relationships,proto3" json:"relationships"`
}

Relationships wraps a list of Relationship objects

func (*Relationships) Descriptor added in v0.16.0

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

func (*Relationships) GetRelationships added in v0.16.0

func (m *Relationships) GetRelationships() []Relationship

func (*Relationships) Marshal added in v0.16.0

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

func (*Relationships) MarshalTo added in v0.16.0

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

func (*Relationships) MarshalToSizedBuffer added in v0.16.0

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

func (*Relationships) ProtoMessage added in v0.16.0

func (*Relationships) ProtoMessage()

func (*Relationships) Reset added in v0.16.0

func (m *Relationships) Reset()

func (*Relationships) Size added in v0.16.0

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

func (*Relationships) String added in v0.16.0

func (m *Relationships) String() string

func (*Relationships) Unmarshal added in v0.16.0

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

func (*Relationships) XXX_DiscardUnknown added in v0.16.0

func (m *Relationships) XXX_DiscardUnknown()

func (*Relationships) XXX_Marshal added in v0.16.0

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

func (*Relationships) XXX_Merge added in v0.16.0

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

func (*Relationships) XXX_Size added in v0.16.0

func (m *Relationships) XXX_Size() int

func (*Relationships) XXX_Unmarshal added in v0.16.0

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

type UnblockUserResponse added in v0.16.0

type UnblockUserResponse struct {
}

UnblockUserResponse defines the Msg/UnblockUser response type.

func (*UnblockUserResponse) Descriptor added in v0.16.0

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

func (*UnblockUserResponse) Marshal added in v0.16.0

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

func (*UnblockUserResponse) MarshalTo added in v0.16.0

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

func (*UnblockUserResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*UnblockUserResponse) ProtoMessage added in v0.16.0

func (*UnblockUserResponse) ProtoMessage()

func (*UnblockUserResponse) Reset added in v0.16.0

func (m *UnblockUserResponse) Reset()

func (*UnblockUserResponse) Size added in v0.16.0

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

func (*UnblockUserResponse) String added in v0.16.0

func (m *UnblockUserResponse) String() string

func (*UnblockUserResponse) Unmarshal added in v0.16.0

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

func (*UnblockUserResponse) XXX_DiscardUnknown added in v0.16.0

func (m *UnblockUserResponse) XXX_DiscardUnknown()

func (*UnblockUserResponse) XXX_Marshal added in v0.16.0

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

func (*UnblockUserResponse) XXX_Merge added in v0.16.0

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

func (*UnblockUserResponse) XXX_Size added in v0.16.0

func (m *UnblockUserResponse) XXX_Size() int

func (*UnblockUserResponse) XXX_Unmarshal added in v0.16.0

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

type UnimplementedMsgServer added in v0.15.0

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AcceptDTagTransfer added in v0.15.0

func (*UnimplementedMsgServer) BlockUser added in v0.16.0

func (*UnimplementedMsgServer) CancelDTagTransfer added in v0.15.0

func (*UnimplementedMsgServer) CreateRelationship added in v0.16.0

func (*UnimplementedMsgServer) DeleteProfile added in v0.15.0

func (*UnimplementedMsgServer) DeleteRelationship added in v0.16.0

func (*UnimplementedMsgServer) RefuseDTagTransfer added in v0.15.0

func (*UnimplementedMsgServer) RequestDTagTransfer added in v0.15.0

func (*UnimplementedMsgServer) SaveProfile added in v0.15.0

func (*UnimplementedMsgServer) UnblockUser added in v0.16.0

type UnimplementedQueryServer added in v0.15.0

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) DTagTransfers added in v0.15.0

func (*UnimplementedQueryServer) Params added in v0.15.0

func (*UnimplementedQueryServer) Profile added in v0.15.0

func (*UnimplementedQueryServer) UserBlocks added in v0.16.0

func (*UnimplementedQueryServer) UserRelationships added in v0.16.0

type UserBlock added in v0.16.0

type UserBlock struct {
	Blocker  string `protobuf:"bytes,1,opt,name=blocker,proto3" json:"blocker,omitempty" yaml:"blocker"`
	Blocked  string `protobuf:"bytes,2,opt,name=blocked,proto3" json:"blocked,omitempty" yaml:"blocked"`
	Reason   string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty" yaml:"reason"`
	Subspace string `protobuf:"bytes,4,opt,name=subspace,proto3" json:"subspace,omitempty" yaml:"subspace"`
}

UserBlock represents the fact that the Blocker has blocked the given Blocked user.

func MustUnmarshalUserBlocks added in v0.16.0

func MustUnmarshalUserBlocks(cdc codec.BinaryMarshaler, bz []byte) []UserBlock

MustUnmarshalUserBlocks deserializes the given byte array as an array of blocks using the provided BinaryMarshaler

func NewUserBlock added in v0.16.0

func NewUserBlock(blocker, blocked string, reason, subspace string) UserBlock

NewUserBlock returns a new object representing the fact that one user has blocked another one for a specific reason on the given subspace.

func RemoveUserBlock added in v0.16.0

func RemoveUserBlock(blocks []UserBlock, blocker, blocked, subspace string) ([]UserBlock, bool)

RemoveUserBlock removes the block made from the blocker towards the blocked inside the subspace, from the provided slice of blocks. If the block is found, returns the new slice with it removed and true. If the block is not found, returns the original fl

func (*UserBlock) Descriptor added in v0.16.0

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

func (*UserBlock) Equal added in v0.16.0

func (this *UserBlock) Equal(that interface{}) bool

func (*UserBlock) GetBlocked added in v0.16.0

func (m *UserBlock) GetBlocked() string

func (*UserBlock) GetBlocker added in v0.16.0

func (m *UserBlock) GetBlocker() string

func (*UserBlock) GetReason added in v0.16.0

func (m *UserBlock) GetReason() string

func (*UserBlock) GetSubspace added in v0.16.0

func (m *UserBlock) GetSubspace() string

func (*UserBlock) Marshal added in v0.16.0

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

func (*UserBlock) MarshalTo added in v0.16.0

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

func (*UserBlock) MarshalToSizedBuffer added in v0.16.0

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

func (*UserBlock) ProtoMessage added in v0.16.0

func (*UserBlock) ProtoMessage()

func (*UserBlock) Reset added in v0.16.0

func (m *UserBlock) Reset()

func (*UserBlock) Size added in v0.16.0

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

func (*UserBlock) String added in v0.16.0

func (m *UserBlock) String() string

func (*UserBlock) Unmarshal added in v0.16.0

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

func (UserBlock) Validate added in v0.16.0

func (ub UserBlock) Validate() error

Validate implements validator

func (*UserBlock) XXX_DiscardUnknown added in v0.16.0

func (m *UserBlock) XXX_DiscardUnknown()

func (*UserBlock) XXX_Marshal added in v0.16.0

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

func (*UserBlock) XXX_Merge added in v0.16.0

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

func (*UserBlock) XXX_Size added in v0.16.0

func (m *UserBlock) XXX_Size() int

func (*UserBlock) XXX_Unmarshal added in v0.16.0

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

type UserBlocks added in v0.16.0

type UserBlocks struct {
	Blocks []UserBlock `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks"`
}

UserBlocks wraps a list of UserBlock objects

func (*UserBlocks) Descriptor added in v0.16.0

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

func (*UserBlocks) GetBlocks added in v0.16.0

func (m *UserBlocks) GetBlocks() []UserBlock

func (*UserBlocks) Marshal added in v0.16.0

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

func (*UserBlocks) MarshalTo added in v0.16.0

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

func (*UserBlocks) MarshalToSizedBuffer added in v0.16.0

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

func (*UserBlocks) ProtoMessage added in v0.16.0

func (*UserBlocks) ProtoMessage()

func (*UserBlocks) Reset added in v0.16.0

func (m *UserBlocks) Reset()

func (*UserBlocks) Size added in v0.16.0

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

func (*UserBlocks) String added in v0.16.0

func (m *UserBlocks) String() string

func (*UserBlocks) Unmarshal added in v0.16.0

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

func (*UserBlocks) XXX_DiscardUnknown added in v0.16.0

func (m *UserBlocks) XXX_DiscardUnknown()

func (*UserBlocks) XXX_Marshal added in v0.16.0

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

func (*UserBlocks) XXX_Merge added in v0.16.0

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

func (*UserBlocks) XXX_Size added in v0.16.0

func (m *UserBlocks) XXX_Size() int

func (*UserBlocks) XXX_Unmarshal added in v0.16.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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