types

package
v0.0.0-...-03ee383 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeAddReaction              = "add_reaction"
	EventTypeRemoveReaction           = "remove_reaction"
	EventTypeAddRegisteredReaction    = "add_registered_reaction"
	EventTypeRemoveRegisteredReaction = "removed_registered_reaction"
	EventTypeSetReactionsParams       = "set_reactions_params"

	AttributeValueCategory           = ModuleName
	AttributeKeySubspaceID           = "subspace_id"
	AttributeKeyPostID               = "post_id"
	AttributeKeyReactionID           = "reaction_id"
	AttributeKeyRegisteredReactionID = "registered_reaction_id"
	AttributeKeyUser                 = "user"
)
View Source
const (
	ModuleName   = "reactions"
	RouterKey    = ModuleName
	StoreKey     = ModuleName
	QuerierRoute = ModuleName

	ActionAddReaction              = "add_reaction"
	ActionRemoveReaction           = "remove_reaction"
	ActionAddRegisteredReaction    = "add_registered_reaction"
	ActionEditRegisteredReaction   = "edit_registered_reaction"
	ActionRemoveRegisteredReaction = "remove_registered_reaction"
	ActionSetReactionParams        = "set_reaction_params"

	DoNotModify = "[do-not-modify]"
)

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 (
	NextRegisteredReactionIDPrefix = []byte{0x01}
	RegisteredReactionPrefix       = []byte{0x02}

	NextReactionIDPrefix = []byte{0x10}
	ReactionPrefix       = []byte{0x11}

	ReactionsParamsPrefix = []byte{0x20}
)
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 (
	PermissionsReact                    = subspacestypes.RegisterPermission("add reaction")
	PermissionManageRegisteredReactions = subspacestypes.RegisterPermission("manage registered reactions")
	PermissionManageReactionParams      = subspacestypes.RegisterPermission("manage reaction params")
)
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 (

	// AminoCdc references the global x/reactions 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/reactions and
	// defined at the application level.
	AminoCdc = codec.NewAminoCodec(amino)
)
View Source
var (
	ErrInvalidGenesis = sdkerrors.Register(ModuleName, 1, "invalid genesis state")
)

Functions

func GetReactionIDBytes

func GetReactionIDBytes(reactionID uint32) (reactionIDBz []byte)

GetReactionIDBytes returns the byte representation f the reactionID

func GetReactionIDFromBytes

func GetReactionIDFromBytes(bz []byte) (reactionID uint32)

GetReactionIDFromBytes returns reactionID in uint64 format from a byte array

func GetRegisteredReactionIDBytes

func GetRegisteredReactionIDBytes(registeredReactionID uint32) (reactionIDBz []byte)

GetRegisteredReactionIDBytes returns the byte representation of the registeredReactionID

func GetRegisteredReactionIDFromBytes

func GetRegisteredReactionIDFromBytes(bz []byte) (registeredReactionID uint32)

GetRegisteredReactionIDFromBytes returns registeredReactionID in uint32 format from a byte array

func NextReactionIDStoreKey

func NextReactionIDStoreKey(subspaceID uint64, postID uint64) []byte

NextReactionIDStoreKey returns the key used to store the next reaction id for the given subspace

func NextRegisteredReactionIDStoreKey

func NextRegisteredReactionIDStoreKey(subspaceID uint64) []byte

NextRegisteredReactionIDStoreKey returns the key used to store the next registered reaction id for the given subspace

func NextSubspaceReactionIDPrefix

func NextSubspaceReactionIDPrefix(subspaceID uint64) []byte

NextSubspaceReactionIDPrefix returns the store prefix used to store all the next reaction ids for the given subspace

func ParseReactionID

func ParseReactionID(value string) (uint32, error)

ParseReactionID parses the given value as a reaction id, returning an error if it's invalid

func ParseRegisteredReactionID

func ParseRegisteredReactionID(value string) (uint32, error)

ParseRegisteredReactionID parses the given value as a registered reaction id, returning an error if it's invalid

func PostReactionsPrefix

func PostReactionsPrefix(subspaceID uint64, postID uint64) []byte

PostReactionsPrefix returns the prefix used to store the reactions for the given post

func ReactionStoreKey

func ReactionStoreKey(subspaceID uint64, postID uint64, reactionID uint32) []byte

ReactionStoreKey returns the key used to store the reaction with the given id

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func RegisteredReactionStoreKey

func RegisteredReactionStoreKey(subspaceID uint64, registeredReactionID uint32) []byte

RegisteredReactionStoreKey returns the key used to store the registered reaction with the given id

func SubspaceReactionsParamsStoreKey

func SubspaceReactionsParamsStoreKey(subspaceID uint64) []byte

SubspaceReactionsParamsStoreKey returns the key used to store the reactions params for the given subspace id

func SubspaceReactionsPrefix

func SubspaceReactionsPrefix(subspaceID uint64) []byte

SubspaceReactionsPrefix returns the prefix used to store the reactions for the given subspace

func SubspaceRegisteredReactionsPrefix

func SubspaceRegisteredReactionsPrefix(subspaceID uint64) []byte

SubspaceRegisteredReactionsPrefix returns the prefix used to store the registered reactions for the given subspace

func ValidateGenesis

func ValidateGenesis(data *GenesisState) error

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

Types

type FreeTextValue

type FreeTextValue struct {
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty" yaml:"text"`
}

FreeTextValue contains the details of a reaction value that is made of free text

func NewFreeTextValue

func NewFreeTextValue(text string) *FreeTextValue

NewFreeTextValue returns a new FreeTextValue instance

func (*FreeTextValue) Descriptor

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

func (*FreeTextValue) Equal

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

func (*FreeTextValue) GetText

func (m *FreeTextValue) GetText() string

func (*FreeTextValue) Marshal

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

func (*FreeTextValue) MarshalTo

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

func (*FreeTextValue) MarshalToSizedBuffer

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

func (*FreeTextValue) ProtoMessage

func (*FreeTextValue) ProtoMessage()

func (*FreeTextValue) Reset

func (m *FreeTextValue) Reset()

func (*FreeTextValue) Size

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

func (*FreeTextValue) String

func (m *FreeTextValue) String() string

func (*FreeTextValue) Unmarshal

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

func (*FreeTextValue) Validate

func (v *FreeTextValue) Validate() error

Validate implements ReactionValue

func (*FreeTextValue) XXX_DiscardUnknown

func (m *FreeTextValue) XXX_DiscardUnknown()

func (*FreeTextValue) XXX_Marshal

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

func (*FreeTextValue) XXX_Merge

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

func (*FreeTextValue) XXX_Size

func (m *FreeTextValue) XXX_Size() int

func (*FreeTextValue) XXX_Unmarshal

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

type FreeTextValueParams

type FreeTextValueParams struct {
	// Whether FreeTextValue reactions should be enabled
	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty" yaml:"enabled"`
	// The max length that FreeTextValue reactions should have
	MaxLength uint32 `protobuf:"varint,2,opt,name=max_length,json=maxLength,proto3" json:"max_length,omitempty" yaml:"max_length"`
	// RegEx that each FreeTextValue should respect.
	// This is useful to limit what characters can be used as a reaction.
	RegEx string `protobuf:"bytes,3,opt,name=reg_ex,json=regEx,proto3" json:"reg_ex,omitempty" yaml:"reg_ex"`
}

FreeTextValueParams contains the params for FreeTextValue based reactions

func NewFreeTextValueParams

func NewFreeTextValueParams(enabled bool, maxLength uint32, regEx string) FreeTextValueParams

NewFreeTextValueParams returns a new FreeTextValueParams instance

func (*FreeTextValueParams) Descriptor

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

func (*FreeTextValueParams) Equal

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

func (*FreeTextValueParams) GetEnabled

func (m *FreeTextValueParams) GetEnabled() bool

func (*FreeTextValueParams) GetMaxLength

func (m *FreeTextValueParams) GetMaxLength() uint32

func (*FreeTextValueParams) GetRegEx

func (m *FreeTextValueParams) GetRegEx() string

func (*FreeTextValueParams) Marshal

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

func (*FreeTextValueParams) MarshalTo

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

func (*FreeTextValueParams) MarshalToSizedBuffer

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

func (*FreeTextValueParams) ProtoMessage

func (*FreeTextValueParams) ProtoMessage()

func (*FreeTextValueParams) Reset

func (m *FreeTextValueParams) Reset()

func (*FreeTextValueParams) Size

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

func (*FreeTextValueParams) String

func (m *FreeTextValueParams) String() string

func (*FreeTextValueParams) Unmarshal

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

func (FreeTextValueParams) Validate

func (p FreeTextValueParams) Validate() error

Validate implements fmt.Validator

func (*FreeTextValueParams) XXX_DiscardUnknown

func (m *FreeTextValueParams) XXX_DiscardUnknown()

func (*FreeTextValueParams) XXX_Marshal

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

func (*FreeTextValueParams) XXX_Merge

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

func (*FreeTextValueParams) XXX_Size

func (m *FreeTextValueParams) XXX_Size() int

func (*FreeTextValueParams) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	SubspacesData       []SubspaceDataEntry       `protobuf:"bytes,1,rep,name=subspaces_data,json=subspacesData,proto3" json:"subspaces_data"`
	RegisteredReactions []RegisteredReaction      `protobuf:"bytes,2,rep,name=registered_reactions,json=registeredReactions,proto3" json:"registered_reactions"`
	PostsData           []PostDataEntry           `protobuf:"bytes,3,rep,name=posts_data,json=postsData,proto3" json:"posts_data"`
	Reactions           []Reaction                `protobuf:"bytes,4,rep,name=reactions,proto3" json:"reactions"`
	SubspacesParams     []SubspaceReactionsParams `protobuf:"bytes,5,rep,name=subspaces_params,json=subspacesParams,proto3" json:"subspaces_params"`
}

GenesisState contains the data of the genesis state for the reactions module

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns a default GenesisState

func NewGenesisState

func NewGenesisState(
	subspacesData []SubspaceDataEntry,
	registeredReactions []RegisteredReaction,
	postsData []PostDataEntry,
	reactions []Reaction,
	subspacesParams []SubspaceReactionsParams,
) *GenesisState

NewGenesisState returns a new GenesisState instance

func (*GenesisState) Descriptor

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

func (*GenesisState) Equal

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

func (*GenesisState) GetPostsData

func (m *GenesisState) GetPostsData() []PostDataEntry

func (*GenesisState) GetReactions

func (m *GenesisState) GetReactions() []Reaction

func (*GenesisState) GetRegisteredReactions

func (m *GenesisState) GetRegisteredReactions() []RegisteredReaction

func (*GenesisState) GetSubspacesData

func (m *GenesisState) GetSubspacesData() []SubspaceDataEntry

func (*GenesisState) GetSubspacesParams

func (m *GenesisState) GetSubspacesParams() []SubspaceReactionsParams

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) UnpackInterfaces

func (e GenesisState) UnpackInterfaces(unpacker types.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MsgAddReaction

type MsgAddReaction struct {
	// Id of the subspace inside which the post to react to is
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the post to react to
	PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
	// Value of the reaction
	Value *types.Any `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty" yaml:"value"`
	// User reacting to the post
	User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
}

MsgAddReaction represents the message to be used to add a post reaction

func NewMsgAddReaction

func NewMsgAddReaction(subspaceID uint64, postID uint64, value ReactionValue, user string) *MsgAddReaction

NewMsgAddReaction returns a new MsgAddReaction instance

func (*MsgAddReaction) Descriptor

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

func (*MsgAddReaction) GetPostID

func (m *MsgAddReaction) GetPostID() uint64

func (MsgAddReaction) GetSignBytes

func (msg MsgAddReaction) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgAddReaction) GetSigners

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

GetSigners implements sdk.Msg

func (*MsgAddReaction) GetSubspaceID

func (m *MsgAddReaction) GetSubspaceID() uint64

func (*MsgAddReaction) GetUser

func (m *MsgAddReaction) GetUser() string

func (*MsgAddReaction) GetValue

func (m *MsgAddReaction) GetValue() *types.Any

func (*MsgAddReaction) Marshal

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

func (*MsgAddReaction) MarshalTo

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

func (*MsgAddReaction) MarshalToSizedBuffer

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

func (*MsgAddReaction) ProtoMessage

func (*MsgAddReaction) ProtoMessage()

func (*MsgAddReaction) Reset

func (m *MsgAddReaction) Reset()

func (MsgAddReaction) Route

func (msg MsgAddReaction) Route() string

Route implements sdk.Msg

func (*MsgAddReaction) Size

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

func (*MsgAddReaction) String

func (m *MsgAddReaction) String() string

func (MsgAddReaction) Type

func (msg MsgAddReaction) Type() string

Type implements sdk.Msg

func (*MsgAddReaction) Unmarshal

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

func (MsgAddReaction) UnpackInterfaces

func (msg MsgAddReaction) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (MsgAddReaction) ValidateBasic

func (msg MsgAddReaction) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgAddReaction) XXX_DiscardUnknown

func (m *MsgAddReaction) XXX_DiscardUnknown()

func (*MsgAddReaction) XXX_Marshal

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

func (*MsgAddReaction) XXX_Merge

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

func (*MsgAddReaction) XXX_Size

func (m *MsgAddReaction) XXX_Size() int

func (*MsgAddReaction) XXX_Unmarshal

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

type MsgAddReactionResponse

type MsgAddReactionResponse struct {
	// Id of the newly added reaction
	ReactionID uint32 `protobuf:"varint,1,opt,name=reaction_id,json=reactionId,proto3" json:"reaction_id,omitempty" yaml:"reaction_id"`
}

MsgAddReactionResponse represents the Msg/AddReaction response type

func (*MsgAddReactionResponse) Descriptor

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

func (*MsgAddReactionResponse) GetReactionID

func (m *MsgAddReactionResponse) GetReactionID() uint32

func (*MsgAddReactionResponse) Marshal

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

func (*MsgAddReactionResponse) MarshalTo

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

func (*MsgAddReactionResponse) MarshalToSizedBuffer

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

func (*MsgAddReactionResponse) ProtoMessage

func (*MsgAddReactionResponse) ProtoMessage()

func (*MsgAddReactionResponse) Reset

func (m *MsgAddReactionResponse) Reset()

func (*MsgAddReactionResponse) Size

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

func (*MsgAddReactionResponse) String

func (m *MsgAddReactionResponse) String() string

func (*MsgAddReactionResponse) Unmarshal

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

func (*MsgAddReactionResponse) XXX_DiscardUnknown

func (m *MsgAddReactionResponse) XXX_DiscardUnknown()

func (*MsgAddReactionResponse) XXX_Marshal

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

func (*MsgAddReactionResponse) XXX_Merge

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

func (*MsgAddReactionResponse) XXX_Size

func (m *MsgAddReactionResponse) XXX_Size() int

func (*MsgAddReactionResponse) XXX_Unmarshal

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

type MsgAddRegisteredReaction

type MsgAddRegisteredReaction struct {
	// Id of the subspace inside which this reaction should be registered
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Shorthand code of the reaction
	ShorthandCode string `protobuf:"bytes,2,opt,name=shorthand_code,json=shorthandCode,proto3" json:"shorthand_code,omitempty" yaml:"shorthand_code"`
	// Display value of the reaction
	DisplayValue string `protobuf:"bytes,3,opt,name=display_value,json=displayValue,proto3" json:"display_value,omitempty" yaml:"display_value"`
	// User adding the supported reaction
	User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
}

MsgAddRegisteredReaction represents the message to be used to register a new supported reaction

func NewMsgAddRegisteredReaction

func NewMsgAddRegisteredReaction(
	subspaceID uint64,
	shorthandCode string,
	displayValue string,
	user string,
) *MsgAddRegisteredReaction

NewMsgAddRegisteredReaction returns a new MsgAddRegisteredReaction instance

func (*MsgAddRegisteredReaction) Descriptor

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

func (*MsgAddRegisteredReaction) GetDisplayValue

func (m *MsgAddRegisteredReaction) GetDisplayValue() string

func (*MsgAddRegisteredReaction) GetShorthandCode

func (m *MsgAddRegisteredReaction) GetShorthandCode() string

func (MsgAddRegisteredReaction) GetSignBytes

func (msg MsgAddRegisteredReaction) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgAddRegisteredReaction) GetSigners

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

GetSigners implements sdk.Msg

func (*MsgAddRegisteredReaction) GetSubspaceID

func (m *MsgAddRegisteredReaction) GetSubspaceID() uint64

func (*MsgAddRegisteredReaction) GetUser

func (m *MsgAddRegisteredReaction) GetUser() string

func (*MsgAddRegisteredReaction) Marshal

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

func (*MsgAddRegisteredReaction) MarshalTo

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

func (*MsgAddRegisteredReaction) MarshalToSizedBuffer

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

func (*MsgAddRegisteredReaction) ProtoMessage

func (*MsgAddRegisteredReaction) ProtoMessage()

func (*MsgAddRegisteredReaction) Reset

func (m *MsgAddRegisteredReaction) Reset()

func (MsgAddRegisteredReaction) Route

func (msg MsgAddRegisteredReaction) Route() string

Route implements sdk.Msg

func (*MsgAddRegisteredReaction) Size

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

func (*MsgAddRegisteredReaction) String

func (m *MsgAddRegisteredReaction) String() string

func (MsgAddRegisteredReaction) Type

func (msg MsgAddRegisteredReaction) Type() string

Type implements sdk.Msg

func (*MsgAddRegisteredReaction) Unmarshal

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

func (MsgAddRegisteredReaction) ValidateBasic

func (msg MsgAddRegisteredReaction) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgAddRegisteredReaction) XXX_DiscardUnknown

func (m *MsgAddRegisteredReaction) XXX_DiscardUnknown()

func (*MsgAddRegisteredReaction) XXX_Marshal

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

func (*MsgAddRegisteredReaction) XXX_Merge

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

func (*MsgAddRegisteredReaction) XXX_Size

func (m *MsgAddRegisteredReaction) XXX_Size() int

func (*MsgAddRegisteredReaction) XXX_Unmarshal

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

type MsgAddRegisteredReactionResponse

type MsgAddRegisteredReactionResponse struct {
	// Id of the newly registered reaction
	RegisteredReactionID uint32 `` /* 154-byte string literal not displayed */
}

MsgAddRegisteredReactionResponse represents the Msg/AddRegisteredReaction response type

func (*MsgAddRegisteredReactionResponse) Descriptor

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

func (*MsgAddRegisteredReactionResponse) GetRegisteredReactionID

func (m *MsgAddRegisteredReactionResponse) GetRegisteredReactionID() uint32

func (*MsgAddRegisteredReactionResponse) Marshal

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

func (*MsgAddRegisteredReactionResponse) MarshalTo

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

func (*MsgAddRegisteredReactionResponse) MarshalToSizedBuffer

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

func (*MsgAddRegisteredReactionResponse) ProtoMessage

func (*MsgAddRegisteredReactionResponse) ProtoMessage()

func (*MsgAddRegisteredReactionResponse) Reset

func (*MsgAddRegisteredReactionResponse) Size

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

func (*MsgAddRegisteredReactionResponse) String

func (*MsgAddRegisteredReactionResponse) Unmarshal

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

func (*MsgAddRegisteredReactionResponse) XXX_DiscardUnknown

func (m *MsgAddRegisteredReactionResponse) XXX_DiscardUnknown()

func (*MsgAddRegisteredReactionResponse) XXX_Marshal

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

func (*MsgAddRegisteredReactionResponse) XXX_Merge

func (*MsgAddRegisteredReactionResponse) XXX_Size

func (m *MsgAddRegisteredReactionResponse) XXX_Size() int

func (*MsgAddRegisteredReactionResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// AddReaction allows to add a post reaction
	AddReaction(ctx context.Context, in *MsgAddReaction, opts ...grpc.CallOption) (*MsgAddReactionResponse, error)
	// RemoveReaction allows to remove an existing post reaction
	RemoveReaction(ctx context.Context, in *MsgRemoveReaction, opts ...grpc.CallOption) (*MsgRemoveReactionResponse, error)
	// AddRegisteredReaction allows to registered a new supported reaction
	AddRegisteredReaction(ctx context.Context, in *MsgAddRegisteredReaction, opts ...grpc.CallOption) (*MsgAddRegisteredReactionResponse, error)
	// EditRegisteredReaction allows to edit a registered reaction
	EditRegisteredReaction(ctx context.Context, in *MsgEditRegisteredReaction, opts ...grpc.CallOption) (*MsgEditRegisteredReactionResponse, error)
	// RemoveRegisteredReaction allows to remove an existing supported reaction
	RemoveRegisteredReaction(ctx context.Context, in *MsgRemoveRegisteredReaction, opts ...grpc.CallOption) (*MsgRemoveRegisteredReactionResponse, error)
	// SetReactionsParams allows to set the reactions params
	SetReactionsParams(ctx context.Context, in *MsgSetReactionsParams, opts ...grpc.CallOption) (*MsgSetReactionsParamsResponse, error)
}

MsgClient is the client API for Msg service.

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

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgEditRegisteredReaction

type MsgEditRegisteredReaction struct {
	// Id of the subspace inside which the reaction to edit is
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the registered reaction to edit
	RegisteredReactionID uint32 `` /* 154-byte string literal not displayed */
	// New shorthand code to be set
	ShorthandCode string `protobuf:"bytes,3,opt,name=shorthand_code,json=shorthandCode,proto3" json:"shorthand_code,omitempty" yaml:"shorthand_code"`
	// Display value to be set
	DisplayValue string `protobuf:"bytes,4,opt,name=display_value,json=displayValue,proto3" json:"display_value,omitempty" yaml:"display_value"`
	// User editing the registered reaction
	User string `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
}

MsgEditRegisteredReaction represents the message to be used to edit a registered reaction

func NewMsgEditRegisteredReaction

func NewMsgEditRegisteredReaction(
	subspaceID uint64,
	registeredReactionID uint32,
	shorthandCode string,
	displayValue string,
	user string,
) *MsgEditRegisteredReaction

NewMsgEditRegisteredReaction returns a new MsgEditRegisteredReaction instance

func (*MsgEditRegisteredReaction) Descriptor

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

func (*MsgEditRegisteredReaction) GetDisplayValue

func (m *MsgEditRegisteredReaction) GetDisplayValue() string

func (*MsgEditRegisteredReaction) GetRegisteredReactionID

func (m *MsgEditRegisteredReaction) GetRegisteredReactionID() uint32

func (*MsgEditRegisteredReaction) GetShorthandCode

func (m *MsgEditRegisteredReaction) GetShorthandCode() string

func (MsgEditRegisteredReaction) GetSignBytes

func (msg MsgEditRegisteredReaction) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgEditRegisteredReaction) GetSigners

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

GetSigners implements sdk.Msg

func (*MsgEditRegisteredReaction) GetSubspaceID

func (m *MsgEditRegisteredReaction) GetSubspaceID() uint64

func (*MsgEditRegisteredReaction) GetUser

func (m *MsgEditRegisteredReaction) GetUser() string

func (*MsgEditRegisteredReaction) Marshal

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

func (*MsgEditRegisteredReaction) MarshalTo

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

func (*MsgEditRegisteredReaction) MarshalToSizedBuffer

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

func (*MsgEditRegisteredReaction) ProtoMessage

func (*MsgEditRegisteredReaction) ProtoMessage()

func (*MsgEditRegisteredReaction) Reset

func (m *MsgEditRegisteredReaction) Reset()

func (MsgEditRegisteredReaction) Route

func (msg MsgEditRegisteredReaction) Route() string

Route implements sdk.Msg

func (*MsgEditRegisteredReaction) Size

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

func (*MsgEditRegisteredReaction) String

func (m *MsgEditRegisteredReaction) String() string

func (MsgEditRegisteredReaction) Type

func (msg MsgEditRegisteredReaction) Type() string

Type implements sdk.Msg

func (*MsgEditRegisteredReaction) Unmarshal

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

func (MsgEditRegisteredReaction) ValidateBasic

func (msg MsgEditRegisteredReaction) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgEditRegisteredReaction) XXX_DiscardUnknown

func (m *MsgEditRegisteredReaction) XXX_DiscardUnknown()

func (*MsgEditRegisteredReaction) XXX_Marshal

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

func (*MsgEditRegisteredReaction) XXX_Merge

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

func (*MsgEditRegisteredReaction) XXX_Size

func (m *MsgEditRegisteredReaction) XXX_Size() int

func (*MsgEditRegisteredReaction) XXX_Unmarshal

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

type MsgEditRegisteredReactionResponse

type MsgEditRegisteredReactionResponse struct {
}

MsgEditRegisteredReactionResponse represents the Msg/EditRegisteredReaction response type

func (*MsgEditRegisteredReactionResponse) Descriptor

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

func (*MsgEditRegisteredReactionResponse) Marshal

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

func (*MsgEditRegisteredReactionResponse) MarshalTo

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

func (*MsgEditRegisteredReactionResponse) MarshalToSizedBuffer

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

func (*MsgEditRegisteredReactionResponse) ProtoMessage

func (*MsgEditRegisteredReactionResponse) ProtoMessage()

func (*MsgEditRegisteredReactionResponse) Reset

func (*MsgEditRegisteredReactionResponse) Size

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

func (*MsgEditRegisteredReactionResponse) String

func (*MsgEditRegisteredReactionResponse) Unmarshal

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

func (*MsgEditRegisteredReactionResponse) XXX_DiscardUnknown

func (m *MsgEditRegisteredReactionResponse) XXX_DiscardUnknown()

func (*MsgEditRegisteredReactionResponse) XXX_Marshal

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

func (*MsgEditRegisteredReactionResponse) XXX_Merge

func (*MsgEditRegisteredReactionResponse) XXX_Size

func (m *MsgEditRegisteredReactionResponse) XXX_Size() int

func (*MsgEditRegisteredReactionResponse) XXX_Unmarshal

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

type MsgRemoveReaction

type MsgRemoveReaction struct {
	// Id of the subspace inside which the reaction to remove is
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the post from which to remove the reaction
	PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
	// Id of the reaction to be removed
	ReactionID uint32 `protobuf:"varint,3,opt,name=reaction_id,json=reactionId,proto3" json:"reaction_id,omitempty" yaml:"reaction_id"`
	// User removing the reaction
	User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
}

MsgRemoveReaction represents the message to be used to remove an existing reaction from a post

func NewMsgRemoveReaction

func NewMsgRemoveReaction(subspaceID uint64, postID uint64, reactionID uint32, user string) *MsgRemoveReaction

NewMsgRemoveReaction returns a new MsgRemoveReaction instance

func (*MsgRemoveReaction) Descriptor

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

func (*MsgRemoveReaction) GetPostID

func (m *MsgRemoveReaction) GetPostID() uint64

func (*MsgRemoveReaction) GetReactionID

func (m *MsgRemoveReaction) GetReactionID() uint32

func (MsgRemoveReaction) GetSignBytes

func (msg MsgRemoveReaction) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgRemoveReaction) GetSigners

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

GetSigners implements sdk.Msg

func (*MsgRemoveReaction) GetSubspaceID

func (m *MsgRemoveReaction) GetSubspaceID() uint64

func (*MsgRemoveReaction) GetUser

func (m *MsgRemoveReaction) GetUser() string

func (*MsgRemoveReaction) Marshal

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

func (*MsgRemoveReaction) MarshalTo

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

func (*MsgRemoveReaction) MarshalToSizedBuffer

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

func (*MsgRemoveReaction) ProtoMessage

func (*MsgRemoveReaction) ProtoMessage()

func (*MsgRemoveReaction) Reset

func (m *MsgRemoveReaction) Reset()

func (MsgRemoveReaction) Route

func (msg MsgRemoveReaction) Route() string

Route implements sdk.Msg

func (*MsgRemoveReaction) Size

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

func (*MsgRemoveReaction) String

func (m *MsgRemoveReaction) String() string

func (MsgRemoveReaction) Type

func (msg MsgRemoveReaction) Type() string

Type implements sdk.Msg

func (*MsgRemoveReaction) Unmarshal

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

func (MsgRemoveReaction) ValidateBasic

func (msg MsgRemoveReaction) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgRemoveReaction) XXX_DiscardUnknown

func (m *MsgRemoveReaction) XXX_DiscardUnknown()

func (*MsgRemoveReaction) XXX_Marshal

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

func (*MsgRemoveReaction) XXX_Merge

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

func (*MsgRemoveReaction) XXX_Size

func (m *MsgRemoveReaction) XXX_Size() int

func (*MsgRemoveReaction) XXX_Unmarshal

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

type MsgRemoveReactionResponse

type MsgRemoveReactionResponse struct {
}

MsgRemoveReactionResponse represents the Msg/RemoveReaction response type

func (*MsgRemoveReactionResponse) Descriptor

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

func (*MsgRemoveReactionResponse) Marshal

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

func (*MsgRemoveReactionResponse) MarshalTo

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

func (*MsgRemoveReactionResponse) MarshalToSizedBuffer

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

func (*MsgRemoveReactionResponse) ProtoMessage

func (*MsgRemoveReactionResponse) ProtoMessage()

func (*MsgRemoveReactionResponse) Reset

func (m *MsgRemoveReactionResponse) Reset()

func (*MsgRemoveReactionResponse) Size

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

func (*MsgRemoveReactionResponse) String

func (m *MsgRemoveReactionResponse) String() string

func (*MsgRemoveReactionResponse) Unmarshal

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

func (*MsgRemoveReactionResponse) XXX_DiscardUnknown

func (m *MsgRemoveReactionResponse) XXX_DiscardUnknown()

func (*MsgRemoveReactionResponse) XXX_Marshal

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

func (*MsgRemoveReactionResponse) XXX_Merge

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

func (*MsgRemoveReactionResponse) XXX_Size

func (m *MsgRemoveReactionResponse) XXX_Size() int

func (*MsgRemoveReactionResponse) XXX_Unmarshal

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

type MsgRemoveRegisteredReaction

type MsgRemoveRegisteredReaction struct {
	// Id of the subspace from which to remove the registered reaction
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the registered reaction to be removed
	RegisteredReactionID uint32 `` /* 154-byte string literal not displayed */
	// User removing the registered reaction
	User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
}

MsgRemoveRegisteredReaction represents the message to be used to remove an existing registered reaction

func NewMsgRemoveRegisteredReaction

func NewMsgRemoveRegisteredReaction(
	subspaceID uint64,
	registeredReactionID uint32,
	user string,
) *MsgRemoveRegisteredReaction

NewMsgRemoveRegisteredReaction returns a new MsgRemoveRegisteredReaction instance

func (*MsgRemoveRegisteredReaction) Descriptor

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

func (*MsgRemoveRegisteredReaction) GetRegisteredReactionID

func (m *MsgRemoveRegisteredReaction) GetRegisteredReactionID() uint32

func (MsgRemoveRegisteredReaction) GetSignBytes

func (msg MsgRemoveRegisteredReaction) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgRemoveRegisteredReaction) GetSigners

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

GetSigners implements sdk.Msg

func (*MsgRemoveRegisteredReaction) GetSubspaceID

func (m *MsgRemoveRegisteredReaction) GetSubspaceID() uint64

func (*MsgRemoveRegisteredReaction) GetUser

func (m *MsgRemoveRegisteredReaction) GetUser() string

func (*MsgRemoveRegisteredReaction) Marshal

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

func (*MsgRemoveRegisteredReaction) MarshalTo

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

func (*MsgRemoveRegisteredReaction) MarshalToSizedBuffer

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

func (*MsgRemoveRegisteredReaction) ProtoMessage

func (*MsgRemoveRegisteredReaction) ProtoMessage()

func (*MsgRemoveRegisteredReaction) Reset

func (m *MsgRemoveRegisteredReaction) Reset()

func (MsgRemoveRegisteredReaction) Route

func (msg MsgRemoveRegisteredReaction) Route() string

Route implements sdk.Msg

func (*MsgRemoveRegisteredReaction) Size

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

func (*MsgRemoveRegisteredReaction) String

func (m *MsgRemoveRegisteredReaction) String() string

func (MsgRemoveRegisteredReaction) Type

Type implements sdk.Msg

func (*MsgRemoveRegisteredReaction) Unmarshal

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

func (MsgRemoveRegisteredReaction) ValidateBasic

func (msg MsgRemoveRegisteredReaction) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgRemoveRegisteredReaction) XXX_DiscardUnknown

func (m *MsgRemoveRegisteredReaction) XXX_DiscardUnknown()

func (*MsgRemoveRegisteredReaction) XXX_Marshal

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

func (*MsgRemoveRegisteredReaction) XXX_Merge

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

func (*MsgRemoveRegisteredReaction) XXX_Size

func (m *MsgRemoveRegisteredReaction) XXX_Size() int

func (*MsgRemoveRegisteredReaction) XXX_Unmarshal

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

type MsgRemoveRegisteredReactionResponse

type MsgRemoveRegisteredReactionResponse struct {
}

MsgRemoveRegisteredReactionResponse represents the Msg/RemoveRegisteredReaction response type

func (*MsgRemoveRegisteredReactionResponse) Descriptor

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

func (*MsgRemoveRegisteredReactionResponse) Marshal

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

func (*MsgRemoveRegisteredReactionResponse) MarshalTo

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

func (*MsgRemoveRegisteredReactionResponse) MarshalToSizedBuffer

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

func (*MsgRemoveRegisteredReactionResponse) ProtoMessage

func (*MsgRemoveRegisteredReactionResponse) ProtoMessage()

func (*MsgRemoveRegisteredReactionResponse) Reset

func (*MsgRemoveRegisteredReactionResponse) Size

func (*MsgRemoveRegisteredReactionResponse) String

func (*MsgRemoveRegisteredReactionResponse) Unmarshal

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

func (*MsgRemoveRegisteredReactionResponse) XXX_DiscardUnknown

func (m *MsgRemoveRegisteredReactionResponse) XXX_DiscardUnknown()

func (*MsgRemoveRegisteredReactionResponse) XXX_Marshal

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

func (*MsgRemoveRegisteredReactionResponse) XXX_Merge

func (*MsgRemoveRegisteredReactionResponse) XXX_Size

func (*MsgRemoveRegisteredReactionResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// AddReaction allows to add a post reaction
	AddReaction(context.Context, *MsgAddReaction) (*MsgAddReactionResponse, error)
	// RemoveReaction allows to remove an existing post reaction
	RemoveReaction(context.Context, *MsgRemoveReaction) (*MsgRemoveReactionResponse, error)
	// AddRegisteredReaction allows to registered a new supported reaction
	AddRegisteredReaction(context.Context, *MsgAddRegisteredReaction) (*MsgAddRegisteredReactionResponse, error)
	// EditRegisteredReaction allows to edit a registered reaction
	EditRegisteredReaction(context.Context, *MsgEditRegisteredReaction) (*MsgEditRegisteredReactionResponse, error)
	// RemoveRegisteredReaction allows to remove an existing supported reaction
	RemoveRegisteredReaction(context.Context, *MsgRemoveRegisteredReaction) (*MsgRemoveRegisteredReactionResponse, error)
	// SetReactionsParams allows to set the reactions params
	SetReactionsParams(context.Context, *MsgSetReactionsParams) (*MsgSetReactionsParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetReactionsParams

type MsgSetReactionsParams struct {
	// Id of the subspace for which to set the params
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Params related to RegisteredReactionValue reactions
	RegisteredReaction RegisteredReactionValueParams `` /* 132-byte string literal not displayed */
	// Params related to FreeTextValue reactions
	FreeText FreeTextValueParams `protobuf:"bytes,3,opt,name=free_text,json=freeText,proto3" json:"free_text" yaml:"free_text"`
	// User setting the params
	User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
}

MsgSetReactionsParams represents the message to be used when setting a subspace reactions params

func NewMsgSetReactionsParams

func NewMsgSetReactionsParams(
	subspaceID uint64,
	registeredReaction RegisteredReactionValueParams,
	freeText FreeTextValueParams,
	user string,
) *MsgSetReactionsParams

NewMsgSetReactionsParams returns a new MsgSetReactionsParams instance

func (*MsgSetReactionsParams) Descriptor

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

func (*MsgSetReactionsParams) GetFreeText

func (m *MsgSetReactionsParams) GetFreeText() FreeTextValueParams

func (*MsgSetReactionsParams) GetRegisteredReaction

func (m *MsgSetReactionsParams) GetRegisteredReaction() RegisteredReactionValueParams

func (MsgSetReactionsParams) GetSignBytes

func (msg MsgSetReactionsParams) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgSetReactionsParams) GetSigners

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

GetSigners implements sdk.Msg

func (*MsgSetReactionsParams) GetSubspaceID

func (m *MsgSetReactionsParams) GetSubspaceID() uint64

func (*MsgSetReactionsParams) GetUser

func (m *MsgSetReactionsParams) GetUser() string

func (*MsgSetReactionsParams) Marshal

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

func (*MsgSetReactionsParams) MarshalTo

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

func (*MsgSetReactionsParams) MarshalToSizedBuffer

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

func (*MsgSetReactionsParams) ProtoMessage

func (*MsgSetReactionsParams) ProtoMessage()

func (*MsgSetReactionsParams) Reset

func (m *MsgSetReactionsParams) Reset()

func (MsgSetReactionsParams) Route

func (msg MsgSetReactionsParams) Route() string

Route implements sdk.Msg

func (*MsgSetReactionsParams) Size

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

func (*MsgSetReactionsParams) String

func (m *MsgSetReactionsParams) String() string

func (MsgSetReactionsParams) Type

func (msg MsgSetReactionsParams) Type() string

Type implements sdk.Msg

func (*MsgSetReactionsParams) Unmarshal

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

func (MsgSetReactionsParams) ValidateBasic

func (msg MsgSetReactionsParams) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgSetReactionsParams) XXX_DiscardUnknown

func (m *MsgSetReactionsParams) XXX_DiscardUnknown()

func (*MsgSetReactionsParams) XXX_Marshal

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

func (*MsgSetReactionsParams) XXX_Merge

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

func (*MsgSetReactionsParams) XXX_Size

func (m *MsgSetReactionsParams) XXX_Size() int

func (*MsgSetReactionsParams) XXX_Unmarshal

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

type MsgSetReactionsParamsResponse

type MsgSetReactionsParamsResponse struct {
}

MsgSetReactionsParamsResponse represents the Msg/SetReactionsParams response type

func (*MsgSetReactionsParamsResponse) Descriptor

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

func (*MsgSetReactionsParamsResponse) Marshal

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

func (*MsgSetReactionsParamsResponse) MarshalTo

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

func (*MsgSetReactionsParamsResponse) MarshalToSizedBuffer

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

func (*MsgSetReactionsParamsResponse) ProtoMessage

func (*MsgSetReactionsParamsResponse) ProtoMessage()

func (*MsgSetReactionsParamsResponse) Reset

func (m *MsgSetReactionsParamsResponse) Reset()

func (*MsgSetReactionsParamsResponse) Size

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

func (*MsgSetReactionsParamsResponse) String

func (*MsgSetReactionsParamsResponse) Unmarshal

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

func (*MsgSetReactionsParamsResponse) XXX_DiscardUnknown

func (m *MsgSetReactionsParamsResponse) XXX_DiscardUnknown()

func (*MsgSetReactionsParamsResponse) XXX_Marshal

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

func (*MsgSetReactionsParamsResponse) XXX_Merge

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

func (*MsgSetReactionsParamsResponse) XXX_Size

func (m *MsgSetReactionsParamsResponse) XXX_Size() int

func (*MsgSetReactionsParamsResponse) XXX_Unmarshal

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

type MultiReactionsHooks

type MultiReactionsHooks []ReactionsHooks

MultiReactionsHooks combines multiple posts hooks, all hook functions are run in array sequence

func NewMultiReactionsHooks

func NewMultiReactionsHooks(hooks ...ReactionsHooks) MultiReactionsHooks

func (MultiReactionsHooks) AfterReactionDeleted

func (h MultiReactionsHooks) AfterReactionDeleted(ctx sdk.Context, subspaceID uint64, reactionID uint32)

AfterReactionDeleted implements ReactionsHooks

func (MultiReactionsHooks) AfterReactionParamsSaved

func (h MultiReactionsHooks) AfterReactionParamsSaved(ctx sdk.Context, subspaceID uint64)

AfterReactionParamsSaved implements ReactionsHooks

func (MultiReactionsHooks) AfterReactionSaved

func (h MultiReactionsHooks) AfterReactionSaved(ctx sdk.Context, subspaceID uint64, reactionID uint32)

AfterReactionSaved implements ReactionsHooks

func (MultiReactionsHooks) AfterRegisteredReactionDeleted

func (h MultiReactionsHooks) AfterRegisteredReactionDeleted(ctx sdk.Context, subspaceID uint64, registeredReactionID uint32)

AfterRegisteredReactionDeleted implements ReactionsHooks

func (MultiReactionsHooks) AfterRegisteredReactionSaved

func (h MultiReactionsHooks) AfterRegisteredReactionSaved(ctx sdk.Context, subspaceID uint64, registeredReactionID uint32)

AfterRegisteredReactionSaved implements ReactionsHooks

type PostDataEntry

type PostDataEntry struct {
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	PostID     uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"`
	ReactionID uint32 `protobuf:"varint,3,opt,name=reaction_id,json=reactionId,proto3" json:"reaction_id,omitempty"`
}

PostDataEntry contains the data related to a single post

func NewPostDataEntry

func NewPostDataEntry(subspaceID uint64, postID uint64, reactionID uint32) PostDataEntry

NewPostDataEntry returns a new PostDataEntry instance

func (*PostDataEntry) Descriptor

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

func (*PostDataEntry) Equal

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

func (*PostDataEntry) GetPostID

func (m *PostDataEntry) GetPostID() uint64

func (*PostDataEntry) GetReactionID

func (m *PostDataEntry) GetReactionID() uint32

func (*PostDataEntry) GetSubspaceID

func (m *PostDataEntry) GetSubspaceID() uint64

func (*PostDataEntry) Marshal

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

func (*PostDataEntry) MarshalTo

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

func (*PostDataEntry) MarshalToSizedBuffer

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

func (*PostDataEntry) ProtoMessage

func (*PostDataEntry) ProtoMessage()

func (*PostDataEntry) Reset

func (m *PostDataEntry) Reset()

func (*PostDataEntry) Size

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

func (*PostDataEntry) String

func (m *PostDataEntry) String() string

func (*PostDataEntry) Unmarshal

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

func (PostDataEntry) Validate

func (e PostDataEntry) Validate() error

Validate returns an error if something is wrong within the entry data

func (*PostDataEntry) XXX_DiscardUnknown

func (m *PostDataEntry) XXX_DiscardUnknown()

func (*PostDataEntry) XXX_Marshal

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

func (*PostDataEntry) XXX_Merge

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

func (*PostDataEntry) XXX_Size

func (m *PostDataEntry) XXX_Size() int

func (*PostDataEntry) XXX_Unmarshal

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

type PostsKeeper

type PostsKeeper interface {
	// HasPost tells whether the given post exists or not
	HasPost(ctx sdk.Context, subspaceID uint64, postID uint64) bool

	// GetPost returns the post associated with the given id.
	// If there is no post associated with the given id the function will return an empty post and false.
	GetPost(ctx sdk.Context, subspaceID uint64, postID uint64) (post poststypes.Post, found bool)

	// IteratePosts iterates over all the posts stored inside the context and performs the provided function
	IteratePosts(ctx sdk.Context, fn func(post poststypes.Post) (stop bool))
}

PostsKeeper represents a keeper that deals with posts

type ProfilesKeeper

type ProfilesKeeper interface {
	// HasProfile returns true iff the given user has a profile, or an error if something is wrong.
	HasProfile(ctx sdk.Context, user string) bool
}

ProfilesKeeper represents a keeper that deals with profiles

type QueryClient

type QueryClient interface {
	// Reactions allows to query the reactions for a given post
	Reactions(ctx context.Context, in *QueryReactionsRequest, opts ...grpc.CallOption) (*QueryReactionsResponse, error)
	// Reaction allows to query the reaction with the given id
	Reaction(ctx context.Context, in *QueryReactionRequest, opts ...grpc.CallOption) (*QueryReactionResponse, error)
	// RegisteredReactions allows to query the registered reaction of a subspace
	RegisteredReactions(ctx context.Context, in *QueryRegisteredReactionsRequest, opts ...grpc.CallOption) (*QueryRegisteredReactionsResponse, error)
	// RegisteredReaction allows to query the registered reaction of a subspace
	RegisteredReaction(ctx context.Context, in *QueryRegisteredReactionRequest, opts ...grpc.CallOption) (*QueryRegisteredReactionResponse, error)
	// ReactionsParams allows to query the reaction params of a subspace
	ReactionsParams(ctx context.Context, in *QueryReactionsParamsRequest, opts ...grpc.CallOption) (*QueryReactionsParamsResponse, error)
}

QueryClient is the client API for Query service.

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

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryReactionRequest

type QueryReactionRequest struct {
	// Id of the subspace that contains the post to query the reactions for
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	// Post id to query the reactions for
	PostId uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"`
	// Id of the reaction to query
	ReactionId uint32 `protobuf:"varint,3,opt,name=reaction_id,json=reactionId,proto3" json:"reaction_id,omitempty"`
}

QueryReactionRequest is the request type for the Query/ReactionRequest RPC method

func NewQueryReactionRequest

func NewQueryReactionRequest(subspaceID uint64, postID uint64, reactionID uint32) *QueryReactionRequest

NewQueryReactionRequest returns a new QueryReactionRequest request

func (*QueryReactionRequest) Descriptor

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

func (*QueryReactionRequest) GetPostId

func (m *QueryReactionRequest) GetPostId() uint64

func (*QueryReactionRequest) GetReactionId

func (m *QueryReactionRequest) GetReactionId() uint32

func (*QueryReactionRequest) GetSubspaceId

func (m *QueryReactionRequest) GetSubspaceId() uint64

func (*QueryReactionRequest) Marshal

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

func (*QueryReactionRequest) MarshalTo

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

func (*QueryReactionRequest) MarshalToSizedBuffer

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

func (*QueryReactionRequest) ProtoMessage

func (*QueryReactionRequest) ProtoMessage()

func (*QueryReactionRequest) Reset

func (m *QueryReactionRequest) Reset()

func (*QueryReactionRequest) Size

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

func (*QueryReactionRequest) String

func (m *QueryReactionRequest) String() string

func (*QueryReactionRequest) Unmarshal

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

func (*QueryReactionRequest) XXX_DiscardUnknown

func (m *QueryReactionRequest) XXX_DiscardUnknown()

func (*QueryReactionRequest) XXX_Marshal

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

func (*QueryReactionRequest) XXX_Merge

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

func (*QueryReactionRequest) XXX_Size

func (m *QueryReactionRequest) XXX_Size() int

func (*QueryReactionRequest) XXX_Unmarshal

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

type QueryReactionResponse

type QueryReactionResponse struct {
	Reaction Reaction `protobuf:"bytes,1,opt,name=reaction,proto3" json:"reaction"`
}

QueryReactionResponse is the response type for the Query/Reaction RPC method

func (*QueryReactionResponse) Descriptor

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

func (*QueryReactionResponse) GetReaction

func (m *QueryReactionResponse) GetReaction() Reaction

func (*QueryReactionResponse) Marshal

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

func (*QueryReactionResponse) MarshalTo

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

func (*QueryReactionResponse) MarshalToSizedBuffer

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

func (*QueryReactionResponse) ProtoMessage

func (*QueryReactionResponse) ProtoMessage()

func (*QueryReactionResponse) Reset

func (m *QueryReactionResponse) Reset()

func (*QueryReactionResponse) Size

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

func (*QueryReactionResponse) String

func (m *QueryReactionResponse) String() string

func (*QueryReactionResponse) Unmarshal

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

func (*QueryReactionResponse) UnpackInterfaces

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

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (*QueryReactionResponse) XXX_DiscardUnknown

func (m *QueryReactionResponse) XXX_DiscardUnknown()

func (*QueryReactionResponse) XXX_Marshal

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

func (*QueryReactionResponse) XXX_Merge

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

func (*QueryReactionResponse) XXX_Size

func (m *QueryReactionResponse) XXX_Size() int

func (*QueryReactionResponse) XXX_Unmarshal

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

type QueryReactionsParamsRequest

type QueryReactionsParamsRequest struct {
	// Id of the subspace for which to query the params
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
}

QueryReactionsParamsRequest is the request type for the Query/ReactionsParams RPC method

func NewQueryReactionsParamsRequest

func NewQueryReactionsParamsRequest(subspaceID uint64) *QueryReactionsParamsRequest

NewQueryReactionsParamsRequest returns a new QueryReactionsParamsRequest instance

func (*QueryReactionsParamsRequest) Descriptor

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

func (*QueryReactionsParamsRequest) GetSubspaceId

func (m *QueryReactionsParamsRequest) GetSubspaceId() uint64

func (*QueryReactionsParamsRequest) Marshal

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

func (*QueryReactionsParamsRequest) MarshalTo

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

func (*QueryReactionsParamsRequest) MarshalToSizedBuffer

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

func (*QueryReactionsParamsRequest) ProtoMessage

func (*QueryReactionsParamsRequest) ProtoMessage()

func (*QueryReactionsParamsRequest) Reset

func (m *QueryReactionsParamsRequest) Reset()

func (*QueryReactionsParamsRequest) Size

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

func (*QueryReactionsParamsRequest) String

func (m *QueryReactionsParamsRequest) String() string

func (*QueryReactionsParamsRequest) Unmarshal

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

func (*QueryReactionsParamsRequest) XXX_DiscardUnknown

func (m *QueryReactionsParamsRequest) XXX_DiscardUnknown()

func (*QueryReactionsParamsRequest) XXX_Marshal

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

func (*QueryReactionsParamsRequest) XXX_Merge

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

func (*QueryReactionsParamsRequest) XXX_Size

func (m *QueryReactionsParamsRequest) XXX_Size() int

func (*QueryReactionsParamsRequest) XXX_Unmarshal

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

type QueryReactionsParamsResponse

type QueryReactionsParamsResponse struct {
	Params SubspaceReactionsParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryReactionsParamsResponse is the response type for the Query/ReactionsParam RPC method

func (*QueryReactionsParamsResponse) Descriptor

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

func (*QueryReactionsParamsResponse) GetParams

func (*QueryReactionsParamsResponse) Marshal

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

func (*QueryReactionsParamsResponse) MarshalTo

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

func (*QueryReactionsParamsResponse) MarshalToSizedBuffer

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

func (*QueryReactionsParamsResponse) ProtoMessage

func (*QueryReactionsParamsResponse) ProtoMessage()

func (*QueryReactionsParamsResponse) Reset

func (m *QueryReactionsParamsResponse) Reset()

func (*QueryReactionsParamsResponse) Size

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

func (*QueryReactionsParamsResponse) String

func (*QueryReactionsParamsResponse) Unmarshal

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

func (*QueryReactionsParamsResponse) XXX_DiscardUnknown

func (m *QueryReactionsParamsResponse) XXX_DiscardUnknown()

func (*QueryReactionsParamsResponse) XXX_Marshal

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

func (*QueryReactionsParamsResponse) XXX_Merge

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

func (*QueryReactionsParamsResponse) XXX_Size

func (m *QueryReactionsParamsResponse) XXX_Size() int

func (*QueryReactionsParamsResponse) XXX_Unmarshal

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

type QueryReactionsRequest

type QueryReactionsRequest struct {
	// Id of the subspace that contains the post to query the reactions for
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	// Post id to query the reactions for
	PostId uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"`
	// (optional) User to query the reactions for.
	// This is going to be used only if a post id is specified as well.
	User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryReactionsRequest is the request type for the Query/Reactions RPC method

func NewQueryReactionsRequest

func NewQueryReactionsRequest(subspaceID uint64, postID uint64, user string, pagination *query.PageRequest) *QueryReactionsRequest

NewQueryReactionsRequest returns a new QueryReactionsRequest instance

func (*QueryReactionsRequest) Descriptor

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

func (*QueryReactionsRequest) GetPagination

func (m *QueryReactionsRequest) GetPagination() *query.PageRequest

func (*QueryReactionsRequest) GetPostId

func (m *QueryReactionsRequest) GetPostId() uint64

func (*QueryReactionsRequest) GetSubspaceId

func (m *QueryReactionsRequest) GetSubspaceId() uint64

func (*QueryReactionsRequest) GetUser

func (m *QueryReactionsRequest) GetUser() string

func (*QueryReactionsRequest) Marshal

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

func (*QueryReactionsRequest) MarshalTo

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

func (*QueryReactionsRequest) MarshalToSizedBuffer

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

func (*QueryReactionsRequest) ProtoMessage

func (*QueryReactionsRequest) ProtoMessage()

func (*QueryReactionsRequest) Reset

func (m *QueryReactionsRequest) Reset()

func (*QueryReactionsRequest) Size

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

func (*QueryReactionsRequest) String

func (m *QueryReactionsRequest) String() string

func (*QueryReactionsRequest) Unmarshal

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

func (*QueryReactionsRequest) XXX_DiscardUnknown

func (m *QueryReactionsRequest) XXX_DiscardUnknown()

func (*QueryReactionsRequest) XXX_Marshal

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

func (*QueryReactionsRequest) XXX_Merge

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

func (*QueryReactionsRequest) XXX_Size

func (m *QueryReactionsRequest) XXX_Size() int

func (*QueryReactionsRequest) XXX_Unmarshal

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

type QueryReactionsResponse

type QueryReactionsResponse struct {
	Reactions  []Reaction          `protobuf:"bytes,1,rep,name=reactions,proto3" json:"reactions"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryReactionsResponse is the response type for the Query/Reactions RPC method

func (*QueryReactionsResponse) Descriptor

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

func (*QueryReactionsResponse) GetPagination

func (m *QueryReactionsResponse) GetPagination() *query.PageResponse

func (*QueryReactionsResponse) GetReactions

func (m *QueryReactionsResponse) GetReactions() []Reaction

func (*QueryReactionsResponse) Marshal

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

func (*QueryReactionsResponse) MarshalTo

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

func (*QueryReactionsResponse) MarshalToSizedBuffer

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

func (*QueryReactionsResponse) ProtoMessage

func (*QueryReactionsResponse) ProtoMessage()

func (*QueryReactionsResponse) Reset

func (m *QueryReactionsResponse) Reset()

func (*QueryReactionsResponse) Size

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

func (*QueryReactionsResponse) String

func (m *QueryReactionsResponse) String() string

func (*QueryReactionsResponse) Unmarshal

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

func (*QueryReactionsResponse) UnpackInterfaces

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

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (*QueryReactionsResponse) XXX_DiscardUnknown

func (m *QueryReactionsResponse) XXX_DiscardUnknown()

func (*QueryReactionsResponse) XXX_Marshal

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

func (*QueryReactionsResponse) XXX_Merge

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

func (*QueryReactionsResponse) XXX_Size

func (m *QueryReactionsResponse) XXX_Size() int

func (*QueryReactionsResponse) XXX_Unmarshal

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

type QueryRegisteredReactionRequest

type QueryRegisteredReactionRequest struct {
	// Id of the subspace to query the registered reactions for
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	// Id of the registered reaction to query for
	ReactionId uint32 `protobuf:"varint,2,opt,name=reaction_id,json=reactionId,proto3" json:"reaction_id,omitempty"`
}

QueryRegisteredReactionRequest is the request type for the Query/RegisteredReaction RPC method

func NewQueryRegisteredReactionRequest

func NewQueryRegisteredReactionRequest(subspaceID uint64, registeredReactionID uint32) *QueryRegisteredReactionRequest

NewQueryRegisteredReactionRequest returns a new QueryRegisteredReactionRequest instance

func (*QueryRegisteredReactionRequest) Descriptor

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

func (*QueryRegisteredReactionRequest) GetReactionId

func (m *QueryRegisteredReactionRequest) GetReactionId() uint32

func (*QueryRegisteredReactionRequest) GetSubspaceId

func (m *QueryRegisteredReactionRequest) GetSubspaceId() uint64

func (*QueryRegisteredReactionRequest) Marshal

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

func (*QueryRegisteredReactionRequest) MarshalTo

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

func (*QueryRegisteredReactionRequest) MarshalToSizedBuffer

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

func (*QueryRegisteredReactionRequest) ProtoMessage

func (*QueryRegisteredReactionRequest) ProtoMessage()

func (*QueryRegisteredReactionRequest) Reset

func (m *QueryRegisteredReactionRequest) Reset()

func (*QueryRegisteredReactionRequest) Size

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

func (*QueryRegisteredReactionRequest) String

func (*QueryRegisteredReactionRequest) Unmarshal

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

func (*QueryRegisteredReactionRequest) XXX_DiscardUnknown

func (m *QueryRegisteredReactionRequest) XXX_DiscardUnknown()

func (*QueryRegisteredReactionRequest) XXX_Marshal

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

func (*QueryRegisteredReactionRequest) XXX_Merge

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

func (*QueryRegisteredReactionRequest) XXX_Size

func (m *QueryRegisteredReactionRequest) XXX_Size() int

func (*QueryRegisteredReactionRequest) XXX_Unmarshal

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

type QueryRegisteredReactionResponse

type QueryRegisteredReactionResponse struct {
	RegisteredReaction RegisteredReaction `protobuf:"bytes,1,opt,name=registered_reaction,json=registeredReaction,proto3" json:"registered_reaction"`
}

QueryRegisteredReactionResponse is the response type for the Query/RegisteredReaction RPC method

func (*QueryRegisteredReactionResponse) Descriptor

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

func (*QueryRegisteredReactionResponse) GetRegisteredReaction

func (m *QueryRegisteredReactionResponse) GetRegisteredReaction() RegisteredReaction

func (*QueryRegisteredReactionResponse) Marshal

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

func (*QueryRegisteredReactionResponse) MarshalTo

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

func (*QueryRegisteredReactionResponse) MarshalToSizedBuffer

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

func (*QueryRegisteredReactionResponse) ProtoMessage

func (*QueryRegisteredReactionResponse) ProtoMessage()

func (*QueryRegisteredReactionResponse) Reset

func (*QueryRegisteredReactionResponse) Size

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

func (*QueryRegisteredReactionResponse) String

func (*QueryRegisteredReactionResponse) Unmarshal

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

func (*QueryRegisteredReactionResponse) XXX_DiscardUnknown

func (m *QueryRegisteredReactionResponse) XXX_DiscardUnknown()

func (*QueryRegisteredReactionResponse) XXX_Marshal

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

func (*QueryRegisteredReactionResponse) XXX_Merge

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

func (*QueryRegisteredReactionResponse) XXX_Size

func (m *QueryRegisteredReactionResponse) XXX_Size() int

func (*QueryRegisteredReactionResponse) XXX_Unmarshal

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

type QueryRegisteredReactionsRequest

type QueryRegisteredReactionsRequest struct {
	// Id of the subspace to query the registered reactions for
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryRegisteredReactionsRequest is the request type for the Query/RegisteredReactions RPC method

func NewQueryRegisteredReactionsRequest

func NewQueryRegisteredReactionsRequest(subspaceID uint64, pagination *query.PageRequest) *QueryRegisteredReactionsRequest

NewQueryRegisteredReactionsRequest returns a new QueryRegisteredReactionsRequest instance

func (*QueryRegisteredReactionsRequest) Descriptor

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

func (*QueryRegisteredReactionsRequest) GetPagination

func (*QueryRegisteredReactionsRequest) GetSubspaceId

func (m *QueryRegisteredReactionsRequest) GetSubspaceId() uint64

func (*QueryRegisteredReactionsRequest) Marshal

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

func (*QueryRegisteredReactionsRequest) MarshalTo

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

func (*QueryRegisteredReactionsRequest) MarshalToSizedBuffer

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

func (*QueryRegisteredReactionsRequest) ProtoMessage

func (*QueryRegisteredReactionsRequest) ProtoMessage()

func (*QueryRegisteredReactionsRequest) Reset

func (*QueryRegisteredReactionsRequest) Size

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

func (*QueryRegisteredReactionsRequest) String

func (*QueryRegisteredReactionsRequest) Unmarshal

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

func (*QueryRegisteredReactionsRequest) XXX_DiscardUnknown

func (m *QueryRegisteredReactionsRequest) XXX_DiscardUnknown()

func (*QueryRegisteredReactionsRequest) XXX_Marshal

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

func (*QueryRegisteredReactionsRequest) XXX_Merge

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

func (*QueryRegisteredReactionsRequest) XXX_Size

func (m *QueryRegisteredReactionsRequest) XXX_Size() int

func (*QueryRegisteredReactionsRequest) XXX_Unmarshal

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

type QueryRegisteredReactionsResponse

type QueryRegisteredReactionsResponse struct {
	RegisteredReactions []RegisteredReaction `protobuf:"bytes,1,rep,name=registered_reactions,json=registeredReactions,proto3" json:"registered_reactions"`
	Pagination          *query.PageResponse  `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryRegisteredReactionsResponse is the response type for the Query/RegisteredReactions RPC method

func (*QueryRegisteredReactionsResponse) Descriptor

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

func (*QueryRegisteredReactionsResponse) GetPagination

func (*QueryRegisteredReactionsResponse) GetRegisteredReactions

func (m *QueryRegisteredReactionsResponse) GetRegisteredReactions() []RegisteredReaction

func (*QueryRegisteredReactionsResponse) Marshal

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

func (*QueryRegisteredReactionsResponse) MarshalTo

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

func (*QueryRegisteredReactionsResponse) MarshalToSizedBuffer

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

func (*QueryRegisteredReactionsResponse) ProtoMessage

func (*QueryRegisteredReactionsResponse) ProtoMessage()

func (*QueryRegisteredReactionsResponse) Reset

func (*QueryRegisteredReactionsResponse) Size

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

func (*QueryRegisteredReactionsResponse) String

func (*QueryRegisteredReactionsResponse) Unmarshal

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

func (*QueryRegisteredReactionsResponse) XXX_DiscardUnknown

func (m *QueryRegisteredReactionsResponse) XXX_DiscardUnknown()

func (*QueryRegisteredReactionsResponse) XXX_Marshal

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

func (*QueryRegisteredReactionsResponse) XXX_Merge

func (*QueryRegisteredReactionsResponse) XXX_Size

func (m *QueryRegisteredReactionsResponse) XXX_Size() int

func (*QueryRegisteredReactionsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Reactions allows to query the reactions for a given post
	Reactions(context.Context, *QueryReactionsRequest) (*QueryReactionsResponse, error)
	// Reaction allows to query the reaction with the given id
	Reaction(context.Context, *QueryReactionRequest) (*QueryReactionResponse, error)
	// RegisteredReactions allows to query the registered reaction of a subspace
	RegisteredReactions(context.Context, *QueryRegisteredReactionsRequest) (*QueryRegisteredReactionsResponse, error)
	// RegisteredReaction allows to query the registered reaction of a subspace
	RegisteredReaction(context.Context, *QueryRegisteredReactionRequest) (*QueryRegisteredReactionResponse, error)
	// ReactionsParams allows to query the reaction params of a subspace
	ReactionsParams(context.Context, *QueryReactionsParamsRequest) (*QueryReactionsParamsResponse, error)
}

QueryServer is the server API for Query service.

type Reaction

type Reaction struct {
	// Id of the subspace inside which the reaction has been put
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the post to which the reaction is associated
	PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
	// Id of the reaction within the post
	ID uint32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	// Value of the reaction.
	Value *types.Any `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty" yaml:"value"`
	// Author of the reaction
	Author string `protobuf:"bytes,5,opt,name=author,proto3" json:"author,omitempty" yaml:"author"`
}

Reaction contains the data of a single post reaction

func NewReaction

func NewReaction(subspaceID uint64, postID uint64, id uint32, value ReactionValue, author string) Reaction

NewReaction returns a new Reaction instance

func (*Reaction) Descriptor

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

func (*Reaction) Equal

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

func (*Reaction) GetAuthor

func (m *Reaction) GetAuthor() string

func (*Reaction) GetID

func (m *Reaction) GetID() uint32

func (*Reaction) GetPostID

func (m *Reaction) GetPostID() uint64

func (*Reaction) GetSubspaceID

func (m *Reaction) GetSubspaceID() uint64

func (*Reaction) GetValue

func (m *Reaction) GetValue() *types.Any

func (*Reaction) Marshal

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

func (*Reaction) MarshalTo

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

func (*Reaction) MarshalToSizedBuffer

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

func (*Reaction) ProtoMessage

func (*Reaction) ProtoMessage()

func (*Reaction) Reset

func (m *Reaction) Reset()

func (*Reaction) Size

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

func (*Reaction) String

func (m *Reaction) String() string

func (*Reaction) Unmarshal

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

func (*Reaction) UnpackInterfaces

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

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (Reaction) Validate

func (r Reaction) Validate() error

Validate implements fmt.Validator

func (*Reaction) XXX_DiscardUnknown

func (m *Reaction) XXX_DiscardUnknown()

func (*Reaction) XXX_Marshal

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

func (*Reaction) XXX_Merge

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

func (*Reaction) XXX_Size

func (m *Reaction) XXX_Size() int

func (*Reaction) XXX_Unmarshal

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

type ReactionValue

type ReactionValue interface {
	proto.Message

	Validate() error
	// contains filtered or unexported methods
}

ReactionValue represents a generic reaction value

type ReactionsHooks

type ReactionsHooks interface {
	AfterReactionSaved(ctx sdk.Context, subspaceID uint64, reactionID uint32)   // Must be called when a reaction is saved
	AfterReactionDeleted(ctx sdk.Context, subspaceID uint64, reactionID uint32) // Must be called when a reaction is deleted

	AfterRegisteredReactionSaved(ctx sdk.Context, subspaceID uint64, registeredReactionID uint32)   // Must be called when a registered reaction is saved
	AfterRegisteredReactionDeleted(ctx sdk.Context, subspaceID uint64, registeredReactionID uint32) // Must be called when a registered reaction is deleted

	AfterReactionParamsSaved(ctx sdk.Context, subspaceID uint64) // Must be called when some reaction params are saved
}

ReactionsHooks event hooks for reactions objects (noalias)

type ReactionsMsg

type ReactionsMsg struct {
	AddReaction              *json.RawMessage `json:"add_reaction"`
	RemoveReaction           *json.RawMessage `json:"remove_reaction"`
	AddRegisteredReaction    *json.RawMessage `json:"add_registered_reaction"`
	EditRegisteredReaction   *json.RawMessage `json:"edit_registered_reaction"`
	RemoveRegisteredReaction *json.RawMessage `json:"remove_registered_reaction"`
	SetReactionsParams       *json.RawMessage `json:"set_reactions_params"`
}

type ReactionsQuery

type ReactionsQuery struct {
	Reactions           *json.RawMessage `json:"reactions"`
	Reaction            *json.RawMessage `json:"reaction"`
	RegisteredReactions *json.RawMessage `json:"registered_reactions"`
	RegisteredReaction  *json.RawMessage `json:"registered_reaction"`
	ReactionsParams     *json.RawMessage `json:"reactions_params"`
}

type RegisteredReaction

type RegisteredReaction struct {
	// Id of the subspace for which this reaction has been registered
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the registered reaction
	ID uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	// Unique shorthand code associated to this reaction
	ShorthandCode string `protobuf:"bytes,3,opt,name=shorthand_code,json=shorthandCode,proto3" json:"shorthand_code,omitempty" yaml:"shorthand_code"`
	// Value that should be displayed when using this reaction
	DisplayValue string `protobuf:"bytes,4,opt,name=display_value,json=displayValue,proto3" json:"display_value,omitempty" yaml:"display_value"`
}

RegisteredReaction contains the details of a registered reaction within a subspace

func NewRegisteredReaction

func NewRegisteredReaction(subspaceID uint64, id uint32, shorthandCode string, displayValue string) RegisteredReaction

NewRegisteredReaction returns a new RegisteredReaction instance

func (*RegisteredReaction) Descriptor

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

func (*RegisteredReaction) Equal

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

func (*RegisteredReaction) GetDisplayValue

func (m *RegisteredReaction) GetDisplayValue() string

func (*RegisteredReaction) GetID

func (m *RegisteredReaction) GetID() uint32

func (*RegisteredReaction) GetShorthandCode

func (m *RegisteredReaction) GetShorthandCode() string

func (*RegisteredReaction) GetSubspaceID

func (m *RegisteredReaction) GetSubspaceID() uint64

func (*RegisteredReaction) Marshal

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

func (*RegisteredReaction) MarshalTo

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

func (*RegisteredReaction) MarshalToSizedBuffer

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

func (*RegisteredReaction) ProtoMessage

func (*RegisteredReaction) ProtoMessage()

func (*RegisteredReaction) Reset

func (m *RegisteredReaction) Reset()

func (*RegisteredReaction) Size

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

func (*RegisteredReaction) String

func (m *RegisteredReaction) String() string

func (*RegisteredReaction) Unmarshal

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

func (RegisteredReaction) Update

Update updates the fields of a given registered reaction without validating it. Before storing the updated reaction, a validation with Validate() should be performed.

func (RegisteredReaction) Validate

func (r RegisteredReaction) Validate() error

Validate implements fmt.Validator

func (*RegisteredReaction) XXX_DiscardUnknown

func (m *RegisteredReaction) XXX_DiscardUnknown()

func (*RegisteredReaction) XXX_Marshal

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

func (*RegisteredReaction) XXX_Merge

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

func (*RegisteredReaction) XXX_Size

func (m *RegisteredReaction) XXX_Size() int

func (*RegisteredReaction) XXX_Unmarshal

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

type RegisteredReactionUpdate

type RegisteredReactionUpdate struct {
	ShorthandCode string
	DisplayValue  string
}

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

func NewRegisteredReactionUpdate

func NewRegisteredReactionUpdate(shorthandCode, displayValue string) RegisteredReactionUpdate

NewRegisteredReactionUpdate builds a new RegisteredReactionUpdate instance containing the given data

type RegisteredReactionValue

type RegisteredReactionValue struct {
	// Id of the registered reaction
	RegisteredReactionID uint32 `` /* 154-byte string literal not displayed */
}

RegisteredReactionValue contains the details of a reaction value that references a reaction registered within the subspace

func NewRegisteredReactionValue

func NewRegisteredReactionValue(registeredReactionID uint32) *RegisteredReactionValue

NewRegisteredReactionValue returns a new RegisteredReactionValue instance

func (*RegisteredReactionValue) Descriptor

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

func (*RegisteredReactionValue) Equal

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

func (*RegisteredReactionValue) GetRegisteredReactionID

func (m *RegisteredReactionValue) GetRegisteredReactionID() uint32

func (*RegisteredReactionValue) Marshal

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

func (*RegisteredReactionValue) MarshalTo

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

func (*RegisteredReactionValue) MarshalToSizedBuffer

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

func (*RegisteredReactionValue) ProtoMessage

func (*RegisteredReactionValue) ProtoMessage()

func (*RegisteredReactionValue) Reset

func (m *RegisteredReactionValue) Reset()

func (*RegisteredReactionValue) Size

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

func (*RegisteredReactionValue) String

func (m *RegisteredReactionValue) String() string

func (*RegisteredReactionValue) Unmarshal

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

func (*RegisteredReactionValue) Validate

func (v *RegisteredReactionValue) Validate() error

Validate implements ReactionValue

func (*RegisteredReactionValue) XXX_DiscardUnknown

func (m *RegisteredReactionValue) XXX_DiscardUnknown()

func (*RegisteredReactionValue) XXX_Marshal

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

func (*RegisteredReactionValue) XXX_Merge

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

func (*RegisteredReactionValue) XXX_Size

func (m *RegisteredReactionValue) XXX_Size() int

func (*RegisteredReactionValue) XXX_Unmarshal

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

type RegisteredReactionValueParams

type RegisteredReactionValueParams struct {
	// Whether RegisteredReactionValue reactions should be enabled
	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty" yaml:"enabled"`
}

RegisteredReactionValueParams contains the params for RegisteredReactionValue based reactions

func NewRegisteredReactionValueParams

func NewRegisteredReactionValueParams(enabled bool) RegisteredReactionValueParams

NewRegisteredReactionValueParams returns a new RegisteredReactionValueParams instance

func (*RegisteredReactionValueParams) Descriptor

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

func (*RegisteredReactionValueParams) Equal

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

func (*RegisteredReactionValueParams) GetEnabled

func (m *RegisteredReactionValueParams) GetEnabled() bool

func (*RegisteredReactionValueParams) Marshal

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

func (*RegisteredReactionValueParams) MarshalTo

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

func (*RegisteredReactionValueParams) MarshalToSizedBuffer

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

func (*RegisteredReactionValueParams) ProtoMessage

func (*RegisteredReactionValueParams) ProtoMessage()

func (*RegisteredReactionValueParams) Reset

func (m *RegisteredReactionValueParams) Reset()

func (*RegisteredReactionValueParams) Size

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

func (*RegisteredReactionValueParams) String

func (*RegisteredReactionValueParams) Unmarshal

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

func (*RegisteredReactionValueParams) XXX_DiscardUnknown

func (m *RegisteredReactionValueParams) XXX_DiscardUnknown()

func (*RegisteredReactionValueParams) XXX_Marshal

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

func (*RegisteredReactionValueParams) XXX_Merge

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

func (*RegisteredReactionValueParams) XXX_Size

func (m *RegisteredReactionValueParams) XXX_Size() int

func (*RegisteredReactionValueParams) XXX_Unmarshal

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

type RelationshipsKeeper

type RelationshipsKeeper interface {
	// HasUserBlocked tells whether the given blocker has blocked the user inside the provided subspace
	HasUserBlocked(ctx sdk.Context, blocker, user string, subspaceID uint64) bool

	// HasRelationship tells whether the relationship between the user and counterparty exists for the given subspace
	HasRelationship(ctx sdk.Context, user, counterparty string, subspaceID uint64) bool
}

RelationshipsKeeper represents a keeper that deals with relationships

type SubspaceDataEntry

type SubspaceDataEntry struct {
	SubspaceID           uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	RegisteredReactionID uint32 `protobuf:"varint,2,opt,name=registered_reaction_id,json=registeredReactionId,proto3" json:"registered_reaction_id,omitempty"`
}

SubspaceDataEntry contains the data related to a single subspace

func NewSubspaceDataEntry

func NewSubspaceDataEntry(subspaceID uint64, registeredReactionID uint32) SubspaceDataEntry

NewSubspaceDataEntry returns a new SubspaceDataEntry instance

func (*SubspaceDataEntry) Descriptor

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

func (*SubspaceDataEntry) Equal

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

func (*SubspaceDataEntry) GetRegisteredReactionID

func (m *SubspaceDataEntry) GetRegisteredReactionID() uint32

func (*SubspaceDataEntry) GetSubspaceID

func (m *SubspaceDataEntry) GetSubspaceID() uint64

func (*SubspaceDataEntry) Marshal

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

func (*SubspaceDataEntry) MarshalTo

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

func (*SubspaceDataEntry) MarshalToSizedBuffer

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

func (*SubspaceDataEntry) ProtoMessage

func (*SubspaceDataEntry) ProtoMessage()

func (*SubspaceDataEntry) Reset

func (m *SubspaceDataEntry) Reset()

func (*SubspaceDataEntry) Size

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

func (*SubspaceDataEntry) String

func (m *SubspaceDataEntry) String() string

func (*SubspaceDataEntry) Unmarshal

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

func (SubspaceDataEntry) Validate

func (e SubspaceDataEntry) Validate() error

Validate returns an error if something is wrong within the entry data

func (*SubspaceDataEntry) XXX_DiscardUnknown

func (m *SubspaceDataEntry) XXX_DiscardUnknown()

func (*SubspaceDataEntry) XXX_Marshal

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

func (*SubspaceDataEntry) XXX_Merge

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

func (*SubspaceDataEntry) XXX_Size

func (m *SubspaceDataEntry) XXX_Size() int

func (*SubspaceDataEntry) XXX_Unmarshal

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

type SubspaceReactionsParams

type SubspaceReactionsParams struct {
	// Id of the subspace for which these params are valid
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Params related to RegisteredReactionValue reactions
	RegisteredReaction RegisteredReactionValueParams `` /* 132-byte string literal not displayed */
	// Params related to FreeTextValue reactions
	FreeText FreeTextValueParams `protobuf:"bytes,3,opt,name=free_text,json=freeText,proto3" json:"free_text" yaml:"free_text"`
}

SubspaceReactionsParams contains the params related to a single subspace reactions

func DefaultReactionsParams

func DefaultReactionsParams(subspaceID uint64) SubspaceReactionsParams

DefaultReactionsParams returns the default params for the given subspace

func NewSubspaceReactionsParams

func NewSubspaceReactionsParams(
	subspaceID uint64,
	registeredReactionParams RegisteredReactionValueParams,
	freeTextParams FreeTextValueParams,
) SubspaceReactionsParams

NewSubspaceReactionsParams returns a new SubspaceReactionsParams instance

func (*SubspaceReactionsParams) Descriptor

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

func (*SubspaceReactionsParams) Equal

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

func (*SubspaceReactionsParams) GetFreeText

func (*SubspaceReactionsParams) GetRegisteredReaction

func (m *SubspaceReactionsParams) GetRegisteredReaction() RegisteredReactionValueParams

func (*SubspaceReactionsParams) GetSubspaceID

func (m *SubspaceReactionsParams) GetSubspaceID() uint64

func (*SubspaceReactionsParams) Marshal

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

func (*SubspaceReactionsParams) MarshalTo

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

func (*SubspaceReactionsParams) MarshalToSizedBuffer

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

func (*SubspaceReactionsParams) ProtoMessage

func (*SubspaceReactionsParams) ProtoMessage()

func (*SubspaceReactionsParams) Reset

func (m *SubspaceReactionsParams) Reset()

func (*SubspaceReactionsParams) Size

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

func (*SubspaceReactionsParams) String

func (m *SubspaceReactionsParams) String() string

func (*SubspaceReactionsParams) Unmarshal

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

func (SubspaceReactionsParams) Validate

func (p SubspaceReactionsParams) Validate() error

Validate implements fmt.Validator

func (*SubspaceReactionsParams) XXX_DiscardUnknown

func (m *SubspaceReactionsParams) XXX_DiscardUnknown()

func (*SubspaceReactionsParams) XXX_Marshal

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

func (*SubspaceReactionsParams) XXX_Merge

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

func (*SubspaceReactionsParams) XXX_Size

func (m *SubspaceReactionsParams) XXX_Size() int

func (*SubspaceReactionsParams) XXX_Unmarshal

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

type SubspacesKeeper

type SubspacesKeeper interface {
	// HasSubspace tells whether the subspace with the given id exists or not
	HasSubspace(ctx sdk.Context, subspaceID uint64) bool

	// HasPermission tells whether the given user has the provided permission inside the subspace with the specified id
	HasPermission(ctx sdk.Context, subspaceID uint64, sectionID uint32, user string, permission subspacestypes.Permission) bool

	// IterateSubspaces iterates through the subspaces set and performs the given function
	IterateSubspaces(ctx sdk.Context, fn func(subspace subspacestypes.Subspace) (stop bool))
}

SubspacesKeeper represents a keeper that deals with subspaces

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddReaction

func (*UnimplementedMsgServer) AddRegisteredReaction

func (*UnimplementedMsgServer) EditRegisteredReaction

func (*UnimplementedMsgServer) RemoveReaction

func (*UnimplementedMsgServer) RemoveRegisteredReaction

func (*UnimplementedMsgServer) SetReactionsParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Reaction

func (*UnimplementedQueryServer) Reactions

func (*UnimplementedQueryServer) ReactionsParams

func (*UnimplementedQueryServer) RegisteredReaction

func (*UnimplementedQueryServer) RegisteredReactions

Jump to

Keyboard shortcuts

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