Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ActivePollByTimeKey(endTime time.Time) []byte
- func ActivePollQueueKey(subspaceID uint64, postID uint64, pollID uint32, endTime time.Time) []byte
- func AttachmentStoreKey(subspaceID uint64, postID uint64, attachmentID uint32) []byte
- func GetAttachmentIDBytes(attachmentID uint32) (attachmentIDBz []byte)
- func GetAttachmentIDFromBytes(bz []byte) (attachmentID uint32)
- func GetPollIDBytes(subspaceID uint64, postID uint64, pollID uint32) []byte
- func GetPollIDFromBytes(bz []byte) (subspaceID uint64, postID uint64, pollID uint32)
- func GetPostIDBytes(postID uint64) (postIDBz []byte)
- func GetPostIDFromBytes(bz []byte) (postID uint64)
- func GetSubspacePostIDBytes(subspaceID uint64, postID uint64) []byte
- func IsPoll(attachment Attachment) bool
- func NextAttachmentIDStoreKey(subspaceID uint64, postID uint64) []byte
- func NextPostIDStoreKey(subspaceID uint64) []byte
- func PackAttachments(attachments []AttachmentContent) ([]*codectypes.Any, error)
- func ParamKeyTable() paramstypes.KeyTable
- func ParseAttachmentID(value string) (uint32, error)
- func ParsePostID(value string) (uint64, error)
- func PollAnswerStoreKey(subspaceID uint64, postID uint64, pollID uint32, user string) []byte
- func PollAnswersPrefix(subspaceID uint64, postID uint64, pollID uint32) []byte
- func PostAttachmentsPrefix(subspaceID uint64, postID uint64) []byte
- func PostOwnerTransferRequestStoreKey(subspaceID uint64, postID uint64) []byte
- func PostSectionStoreKey(subspaceID uint64, sectionID uint32, postID uint64) []byte
- func PostStoreKey(subspaceID uint64, postID uint64) []byte
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func SectionPostsPrefix(subspaceID uint64, sectionID uint32) []byte
- func SplitActivePollQueueKey(key []byte) (subspaceID uint64, postID uint64, pollID uint32, endTime time.Time)
- func SplitPostSectionStoreKey(key []byte) (subspaceID uint64, sectionID uint32, postID uint64)
- func SubspacePostOwnerTransferRequestPrefix(subspaceID uint64) []byte
- func SubspacePostsPrefix(subspaceID uint64) []byte
- func SubspaceSectionsPrefix(subspaceID uint64) []byte
- func ValidateGenesis(data *GenesisState) error
- func ValidateMaxTextLength(i interface{}) error
- type ActivePollData
- func (*ActivePollData) Descriptor() ([]byte, []int)
- func (this *ActivePollData) Equal(that interface{}) bool
- func (m *ActivePollData) GetEndDate() time.Time
- func (m *ActivePollData) GetPollID() uint32
- func (m *ActivePollData) GetPostID() uint64
- func (m *ActivePollData) GetSubspaceID() uint64
- func (m *ActivePollData) Marshal() (dAtA []byte, err error)
- func (m *ActivePollData) MarshalTo(dAtA []byte) (int, error)
- func (m *ActivePollData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ActivePollData) ProtoMessage()
- func (m *ActivePollData) Reset()
- func (m *ActivePollData) Size() (n int)
- func (m *ActivePollData) String() string
- func (m *ActivePollData) Unmarshal(dAtA []byte) error
- func (d ActivePollData) Validate() error
- func (m *ActivePollData) XXX_DiscardUnknown()
- func (m *ActivePollData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ActivePollData) XXX_Merge(src proto.Message)
- func (m *ActivePollData) XXX_Size() int
- func (m *ActivePollData) XXX_Unmarshal(b []byte) error
- type Attachment
- func (*Attachment) Descriptor() ([]byte, []int)
- func (this *Attachment) Equal(that interface{}) bool
- func (m *Attachment) GetContent() *types.Any
- func (m *Attachment) GetID() uint32
- func (m *Attachment) GetPostID() uint64
- func (m *Attachment) GetSubspaceID() uint64
- func (m *Attachment) Marshal() (dAtA []byte, err error)
- func (m *Attachment) MarshalTo(dAtA []byte) (int, error)
- func (m *Attachment) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Attachment) ProtoMessage()
- func (m *Attachment) Reset()
- func (m *Attachment) Size() (n int)
- func (m *Attachment) String() string
- func (m *Attachment) Unmarshal(dAtA []byte) error
- func (a *Attachment) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (a Attachment) Validate() error
- func (m *Attachment) XXX_DiscardUnknown()
- func (m *Attachment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Attachment) XXX_Merge(src proto.Message)
- func (m *Attachment) XXX_Size() int
- func (m *Attachment) XXX_Unmarshal(b []byte) error
- type AttachmentContent
- type AttachmentMove
- type Attachments
- type Entities
- func (*Entities) Descriptor() ([]byte, []int)
- func (this *Entities) Equal(that interface{}) bool
- func (m *Entities) GetHashtags() []TextTag
- func (m *Entities) GetMentions() []TextTag
- func (m *Entities) GetUrls() []Url
- func (m *Entities) Marshal() (dAtA []byte, err error)
- func (m *Entities) MarshalTo(dAtA []byte) (int, error)
- func (m *Entities) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Entities) ProtoMessage()
- func (m *Entities) Reset()
- func (m *Entities) Size() (n int)
- func (m *Entities) String() string
- func (m *Entities) Unmarshal(dAtA []byte) error
- func (e *Entities) Validate() error
- func (m *Entities) XXX_DiscardUnknown()
- func (m *Entities) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Entities) XXX_Merge(src proto.Message)
- func (m *Entities) XXX_Size() int
- func (m *Entities) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (this *GenesisState) Equal(that interface{}) bool
- func (m *GenesisState) GetActivePolls() []ActivePollData
- func (m *GenesisState) GetAttachments() []Attachment
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPostOwnerTransferRequests() []PostOwnerTransferRequest
- func (m *GenesisState) GetPosts() []Post
- func (m *GenesisState) GetPostsData() []PostDataEntry
- func (m *GenesisState) GetSubspacesData() []SubspaceDataEntry
- func (m *GenesisState) GetUserAnswers() []UserAnswer
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (e GenesisState) UnpackInterfaces(unpacker types.AnyUnpacker) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type Media
- func (*Media) Descriptor() ([]byte, []int)
- func (this *Media) Equal(that interface{}) bool
- func (m *Media) GetMimeType() string
- func (m *Media) GetUri() string
- func (m *Media) Marshal() (dAtA []byte, err error)
- func (m *Media) MarshalTo(dAtA []byte) (int, error)
- func (m *Media) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Media) ProtoMessage()
- func (m *Media) Reset()
- func (m *Media) Size() (n int)
- func (m *Media) String() string
- func (m *Media) Unmarshal(dAtA []byte) error
- func (m *Media) Validate() error
- func (m *Media) XXX_DiscardUnknown()
- func (m *Media) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Media) XXX_Merge(src proto.Message)
- func (m *Media) XXX_Size() int
- func (m *Media) XXX_Unmarshal(b []byte) error
- type MsgAcceptPostOwnerTransferRequest
- func (*MsgAcceptPostOwnerTransferRequest) Descriptor() ([]byte, []int)
- func (m *MsgAcceptPostOwnerTransferRequest) GetPostID() uint64
- func (m *MsgAcceptPostOwnerTransferRequest) GetReceiver() string
- func (msg *MsgAcceptPostOwnerTransferRequest) GetSignBytes() []byte
- func (msg *MsgAcceptPostOwnerTransferRequest) GetSigners() []sdk.AccAddress
- func (m *MsgAcceptPostOwnerTransferRequest) GetSubspaceID() uint64
- func (m *MsgAcceptPostOwnerTransferRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgAcceptPostOwnerTransferRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAcceptPostOwnerTransferRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAcceptPostOwnerTransferRequest) ProtoMessage()
- func (m *MsgAcceptPostOwnerTransferRequest) Reset()
- func (msg *MsgAcceptPostOwnerTransferRequest) Route() string
- func (m *MsgAcceptPostOwnerTransferRequest) Size() (n int)
- func (m *MsgAcceptPostOwnerTransferRequest) String() string
- func (msg *MsgAcceptPostOwnerTransferRequest) Type() string
- func (m *MsgAcceptPostOwnerTransferRequest) Unmarshal(dAtA []byte) error
- func (msg *MsgAcceptPostOwnerTransferRequest) ValidateBasic() error
- func (m *MsgAcceptPostOwnerTransferRequest) XXX_DiscardUnknown()
- func (m *MsgAcceptPostOwnerTransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAcceptPostOwnerTransferRequest) XXX_Merge(src proto.Message)
- func (m *MsgAcceptPostOwnerTransferRequest) XXX_Size() int
- func (m *MsgAcceptPostOwnerTransferRequest) XXX_Unmarshal(b []byte) error
- type MsgAcceptPostOwnerTransferRequestResponse
- func (*MsgAcceptPostOwnerTransferRequestResponse) Descriptor() ([]byte, []int)
- func (m *MsgAcceptPostOwnerTransferRequestResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAcceptPostOwnerTransferRequestResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAcceptPostOwnerTransferRequestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAcceptPostOwnerTransferRequestResponse) ProtoMessage()
- func (m *MsgAcceptPostOwnerTransferRequestResponse) Reset()
- func (m *MsgAcceptPostOwnerTransferRequestResponse) Size() (n int)
- func (m *MsgAcceptPostOwnerTransferRequestResponse) String() string
- func (m *MsgAcceptPostOwnerTransferRequestResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAcceptPostOwnerTransferRequestResponse) XXX_DiscardUnknown()
- func (m *MsgAcceptPostOwnerTransferRequestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAcceptPostOwnerTransferRequestResponse) XXX_Merge(src proto.Message)
- func (m *MsgAcceptPostOwnerTransferRequestResponse) XXX_Size() int
- func (m *MsgAcceptPostOwnerTransferRequestResponse) XXX_Unmarshal(b []byte) error
- type MsgAddPostAttachment
- func (*MsgAddPostAttachment) Descriptor() ([]byte, []int)
- func (m *MsgAddPostAttachment) GetContent() *types.Any
- func (m *MsgAddPostAttachment) GetEditor() string
- func (m *MsgAddPostAttachment) GetPostID() uint64
- func (msg *MsgAddPostAttachment) GetSignBytes() []byte
- func (msg *MsgAddPostAttachment) GetSigners() []sdk.AccAddress
- func (m *MsgAddPostAttachment) GetSubspaceID() uint64
- func (m *MsgAddPostAttachment) Marshal() (dAtA []byte, err error)
- func (m *MsgAddPostAttachment) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddPostAttachment) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddPostAttachment) ProtoMessage()
- func (m *MsgAddPostAttachment) Reset()
- func (msg *MsgAddPostAttachment) Route() string
- func (m *MsgAddPostAttachment) Size() (n int)
- func (m *MsgAddPostAttachment) String() string
- func (msg *MsgAddPostAttachment) Type() string
- func (m *MsgAddPostAttachment) Unmarshal(dAtA []byte) error
- func (msg *MsgAddPostAttachment) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (msg *MsgAddPostAttachment) ValidateBasic() error
- func (m *MsgAddPostAttachment) XXX_DiscardUnknown()
- func (m *MsgAddPostAttachment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddPostAttachment) XXX_Merge(src proto.Message)
- func (m *MsgAddPostAttachment) XXX_Size() int
- func (m *MsgAddPostAttachment) XXX_Unmarshal(b []byte) error
- type MsgAddPostAttachmentResponse
- func (*MsgAddPostAttachmentResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddPostAttachmentResponse) GetAttachmentID() uint32
- func (m *MsgAddPostAttachmentResponse) GetEditDate() time.Time
- func (m *MsgAddPostAttachmentResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddPostAttachmentResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddPostAttachmentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddPostAttachmentResponse) ProtoMessage()
- func (m *MsgAddPostAttachmentResponse) Reset()
- func (m *MsgAddPostAttachmentResponse) Size() (n int)
- func (m *MsgAddPostAttachmentResponse) String() string
- func (m *MsgAddPostAttachmentResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddPostAttachmentResponse) XXX_DiscardUnknown()
- func (m *MsgAddPostAttachmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddPostAttachmentResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddPostAttachmentResponse) XXX_Size() int
- func (m *MsgAddPostAttachmentResponse) XXX_Unmarshal(b []byte) error
- type MsgAnswerPoll
- func (*MsgAnswerPoll) Descriptor() ([]byte, []int)
- func (m *MsgAnswerPoll) GetAnswersIndexes() []uint32
- func (m *MsgAnswerPoll) GetPollID() uint32
- func (m *MsgAnswerPoll) GetPostID() uint64
- func (msg *MsgAnswerPoll) GetSignBytes() []byte
- func (m *MsgAnswerPoll) GetSigner() string
- func (msg *MsgAnswerPoll) GetSigners() []sdk.AccAddress
- func (m *MsgAnswerPoll) GetSubspaceID() uint64
- func (m *MsgAnswerPoll) Marshal() (dAtA []byte, err error)
- func (m *MsgAnswerPoll) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAnswerPoll) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAnswerPoll) ProtoMessage()
- func (m *MsgAnswerPoll) Reset()
- func (msg *MsgAnswerPoll) Route() string
- func (m *MsgAnswerPoll) Size() (n int)
- func (m *MsgAnswerPoll) String() string
- func (msg *MsgAnswerPoll) Type() string
- func (m *MsgAnswerPoll) Unmarshal(dAtA []byte) error
- func (msg *MsgAnswerPoll) ValidateBasic() error
- func (m *MsgAnswerPoll) XXX_DiscardUnknown()
- func (m *MsgAnswerPoll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAnswerPoll) XXX_Merge(src proto.Message)
- func (m *MsgAnswerPoll) XXX_Size() int
- func (m *MsgAnswerPoll) XXX_Unmarshal(b []byte) error
- type MsgAnswerPollResponse
- func (*MsgAnswerPollResponse) Descriptor() ([]byte, []int)
- func (m *MsgAnswerPollResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAnswerPollResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAnswerPollResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAnswerPollResponse) ProtoMessage()
- func (m *MsgAnswerPollResponse) Reset()
- func (m *MsgAnswerPollResponse) Size() (n int)
- func (m *MsgAnswerPollResponse) String() string
- func (m *MsgAnswerPollResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAnswerPollResponse) XXX_DiscardUnknown()
- func (m *MsgAnswerPollResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAnswerPollResponse) XXX_Merge(src proto.Message)
- func (m *MsgAnswerPollResponse) XXX_Size() int
- func (m *MsgAnswerPollResponse) XXX_Unmarshal(b []byte) error
- type MsgCancelPostOwnerTransferRequest
- func (*MsgCancelPostOwnerTransferRequest) Descriptor() ([]byte, []int)
- func (m *MsgCancelPostOwnerTransferRequest) GetPostID() uint64
- func (m *MsgCancelPostOwnerTransferRequest) GetSender() string
- func (msg *MsgCancelPostOwnerTransferRequest) GetSignBytes() []byte
- func (msg *MsgCancelPostOwnerTransferRequest) GetSigners() []sdk.AccAddress
- func (m *MsgCancelPostOwnerTransferRequest) GetSubspaceID() uint64
- func (m *MsgCancelPostOwnerTransferRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelPostOwnerTransferRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelPostOwnerTransferRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelPostOwnerTransferRequest) ProtoMessage()
- func (m *MsgCancelPostOwnerTransferRequest) Reset()
- func (msg *MsgCancelPostOwnerTransferRequest) Route() string
- func (m *MsgCancelPostOwnerTransferRequest) Size() (n int)
- func (m *MsgCancelPostOwnerTransferRequest) String() string
- func (msg *MsgCancelPostOwnerTransferRequest) Type() string
- func (m *MsgCancelPostOwnerTransferRequest) Unmarshal(dAtA []byte) error
- func (msg *MsgCancelPostOwnerTransferRequest) ValidateBasic() error
- func (m *MsgCancelPostOwnerTransferRequest) XXX_DiscardUnknown()
- func (m *MsgCancelPostOwnerTransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelPostOwnerTransferRequest) XXX_Merge(src proto.Message)
- func (m *MsgCancelPostOwnerTransferRequest) XXX_Size() int
- func (m *MsgCancelPostOwnerTransferRequest) XXX_Unmarshal(b []byte) error
- type MsgCancelPostOwnerTransferRequestResponse
- func (*MsgCancelPostOwnerTransferRequestResponse) Descriptor() ([]byte, []int)
- func (m *MsgCancelPostOwnerTransferRequestResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelPostOwnerTransferRequestResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelPostOwnerTransferRequestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelPostOwnerTransferRequestResponse) ProtoMessage()
- func (m *MsgCancelPostOwnerTransferRequestResponse) Reset()
- func (m *MsgCancelPostOwnerTransferRequestResponse) Size() (n int)
- func (m *MsgCancelPostOwnerTransferRequestResponse) String() string
- func (m *MsgCancelPostOwnerTransferRequestResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCancelPostOwnerTransferRequestResponse) XXX_DiscardUnknown()
- func (m *MsgCancelPostOwnerTransferRequestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelPostOwnerTransferRequestResponse) XXX_Merge(src proto.Message)
- func (m *MsgCancelPostOwnerTransferRequestResponse) XXX_Size() int
- func (m *MsgCancelPostOwnerTransferRequestResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreatePost
- func (*MsgCreatePost) Descriptor() ([]byte, []int)
- func (m *MsgCreatePost) GetAttachments() []*types.Any
- func (m *MsgCreatePost) GetAuthor() string
- func (m *MsgCreatePost) GetConversationID() uint64
- func (m *MsgCreatePost) GetEntities() *Entities
- func (m *MsgCreatePost) GetExternalID() string
- func (m *MsgCreatePost) GetReferencedPosts() []PostReference
- func (m *MsgCreatePost) GetReplySettings() ReplySetting
- func (m *MsgCreatePost) GetSectionID() uint32
- func (msg *MsgCreatePost) GetSignBytes() []byte
- func (msg *MsgCreatePost) GetSigners() []sdk.AccAddress
- func (m *MsgCreatePost) GetSubspaceID() uint64
- func (m *MsgCreatePost) GetTags() []string
- func (m *MsgCreatePost) GetText() string
- func (m *MsgCreatePost) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePost) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePost) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePost) ProtoMessage()
- func (m *MsgCreatePost) Reset()
- func (msg *MsgCreatePost) Route() string
- func (m *MsgCreatePost) Size() (n int)
- func (m *MsgCreatePost) String() string
- func (msg *MsgCreatePost) Type() string
- func (m *MsgCreatePost) Unmarshal(dAtA []byte) error
- func (msg *MsgCreatePost) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (msg *MsgCreatePost) ValidateBasic() error
- func (m *MsgCreatePost) XXX_DiscardUnknown()
- func (m *MsgCreatePost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePost) XXX_Merge(src proto.Message)
- func (m *MsgCreatePost) XXX_Size() int
- func (m *MsgCreatePost) XXX_Unmarshal(b []byte) error
- type MsgCreatePostResponse
- func (*MsgCreatePostResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreatePostResponse) GetCreationDate() time.Time
- func (m *MsgCreatePostResponse) GetPostID() uint64
- func (m *MsgCreatePostResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePostResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePostResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePostResponse) ProtoMessage()
- func (m *MsgCreatePostResponse) Reset()
- func (m *MsgCreatePostResponse) Size() (n int)
- func (m *MsgCreatePostResponse) String() string
- func (m *MsgCreatePostResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreatePostResponse) XXX_DiscardUnknown()
- func (m *MsgCreatePostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePostResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreatePostResponse) XXX_Size() int
- func (m *MsgCreatePostResponse) XXX_Unmarshal(b []byte) error
- type MsgDeletePost
- func (*MsgDeletePost) Descriptor() ([]byte, []int)
- func (m *MsgDeletePost) GetPostID() uint64
- func (msg *MsgDeletePost) GetSignBytes() []byte
- func (m *MsgDeletePost) GetSigner() string
- func (msg *MsgDeletePost) GetSigners() []sdk.AccAddress
- func (m *MsgDeletePost) GetSubspaceID() uint64
- func (m *MsgDeletePost) Marshal() (dAtA []byte, err error)
- func (m *MsgDeletePost) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeletePost) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeletePost) ProtoMessage()
- func (m *MsgDeletePost) Reset()
- func (msg *MsgDeletePost) Route() string
- func (m *MsgDeletePost) Size() (n int)
- func (m *MsgDeletePost) String() string
- func (msg *MsgDeletePost) Type() string
- func (m *MsgDeletePost) Unmarshal(dAtA []byte) error
- func (msg *MsgDeletePost) ValidateBasic() error
- func (m *MsgDeletePost) XXX_DiscardUnknown()
- func (m *MsgDeletePost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeletePost) XXX_Merge(src proto.Message)
- func (m *MsgDeletePost) XXX_Size() int
- func (m *MsgDeletePost) XXX_Unmarshal(b []byte) error
- type MsgDeletePostResponse
- func (*MsgDeletePostResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeletePostResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeletePostResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeletePostResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeletePostResponse) ProtoMessage()
- func (m *MsgDeletePostResponse) Reset()
- func (m *MsgDeletePostResponse) Size() (n int)
- func (m *MsgDeletePostResponse) String() string
- func (m *MsgDeletePostResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeletePostResponse) XXX_DiscardUnknown()
- func (m *MsgDeletePostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeletePostResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeletePostResponse) XXX_Size() int
- func (m *MsgDeletePostResponse) XXX_Unmarshal(b []byte) error
- type MsgEditPost
- func (*MsgEditPost) Descriptor() ([]byte, []int)
- func (m *MsgEditPost) GetEditor() string
- func (m *MsgEditPost) GetEntities() *Entities
- func (m *MsgEditPost) GetPostID() uint64
- func (msg *MsgEditPost) GetSignBytes() []byte
- func (msg *MsgEditPost) GetSigners() []sdk.AccAddress
- func (m *MsgEditPost) GetSubspaceID() uint64
- func (m *MsgEditPost) GetTags() []string
- func (m *MsgEditPost) GetText() string
- func (m *MsgEditPost) Marshal() (dAtA []byte, err error)
- func (m *MsgEditPost) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEditPost) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEditPost) ProtoMessage()
- func (m *MsgEditPost) Reset()
- func (msg *MsgEditPost) Route() string
- func (m *MsgEditPost) Size() (n int)
- func (m *MsgEditPost) String() string
- func (msg *MsgEditPost) Type() string
- func (m *MsgEditPost) Unmarshal(dAtA []byte) error
- func (msg *MsgEditPost) ValidateBasic() error
- func (m *MsgEditPost) XXX_DiscardUnknown()
- func (m *MsgEditPost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEditPost) XXX_Merge(src proto.Message)
- func (m *MsgEditPost) XXX_Size() int
- func (m *MsgEditPost) XXX_Unmarshal(b []byte) error
- type MsgEditPostResponse
- func (*MsgEditPostResponse) Descriptor() ([]byte, []int)
- func (m *MsgEditPostResponse) GetEditDate() time.Time
- func (m *MsgEditPostResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgEditPostResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEditPostResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEditPostResponse) ProtoMessage()
- func (m *MsgEditPostResponse) Reset()
- func (m *MsgEditPostResponse) Size() (n int)
- func (m *MsgEditPostResponse) String() string
- func (m *MsgEditPostResponse) Unmarshal(dAtA []byte) error
- func (m *MsgEditPostResponse) XXX_DiscardUnknown()
- func (m *MsgEditPostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEditPostResponse) XXX_Merge(src proto.Message)
- func (m *MsgEditPostResponse) XXX_Size() int
- func (m *MsgEditPostResponse) XXX_Unmarshal(b []byte) error
- type MsgMovePost
- func (*MsgMovePost) Descriptor() ([]byte, []int)
- func (m *MsgMovePost) GetOwner() string
- func (m *MsgMovePost) GetPostID() uint64
- func (msg *MsgMovePost) GetSignBytes() []byte
- func (msg *MsgMovePost) GetSigners() []sdk.AccAddress
- func (m *MsgMovePost) GetSubspaceID() uint64
- func (m *MsgMovePost) GetTargetSectionID() uint32
- func (m *MsgMovePost) GetTargetSubspaceID() uint64
- func (m *MsgMovePost) Marshal() (dAtA []byte, err error)
- func (m *MsgMovePost) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMovePost) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMovePost) ProtoMessage()
- func (m *MsgMovePost) Reset()
- func (msg *MsgMovePost) Route() string
- func (m *MsgMovePost) Size() (n int)
- func (m *MsgMovePost) String() string
- func (msg *MsgMovePost) Type() string
- func (m *MsgMovePost) Unmarshal(dAtA []byte) error
- func (msg *MsgMovePost) ValidateBasic() error
- func (m *MsgMovePost) XXX_DiscardUnknown()
- func (m *MsgMovePost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMovePost) XXX_Merge(src proto.Message)
- func (m *MsgMovePost) XXX_Size() int
- func (m *MsgMovePost) XXX_Unmarshal(b []byte) error
- type MsgMovePostResponse
- func (*MsgMovePostResponse) Descriptor() ([]byte, []int)
- func (m *MsgMovePostResponse) GetPostID() uint64
- func (m *MsgMovePostResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMovePostResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMovePostResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMovePostResponse) ProtoMessage()
- func (m *MsgMovePostResponse) Reset()
- func (m *MsgMovePostResponse) Size() (n int)
- func (m *MsgMovePostResponse) String() string
- func (m *MsgMovePostResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMovePostResponse) XXX_DiscardUnknown()
- func (m *MsgMovePostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMovePostResponse) XXX_Merge(src proto.Message)
- func (m *MsgMovePostResponse) XXX_Size() int
- func (m *MsgMovePostResponse) XXX_Unmarshal(b []byte) error
- type MsgRefusePostOwnerTransferRequest
- func (*MsgRefusePostOwnerTransferRequest) Descriptor() ([]byte, []int)
- func (m *MsgRefusePostOwnerTransferRequest) GetPostID() uint64
- func (m *MsgRefusePostOwnerTransferRequest) GetReceiver() string
- func (msg *MsgRefusePostOwnerTransferRequest) GetSignBytes() []byte
- func (msg *MsgRefusePostOwnerTransferRequest) GetSigners() []sdk.AccAddress
- func (m *MsgRefusePostOwnerTransferRequest) GetSubspaceID() uint64
- func (m *MsgRefusePostOwnerTransferRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgRefusePostOwnerTransferRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRefusePostOwnerTransferRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRefusePostOwnerTransferRequest) ProtoMessage()
- func (m *MsgRefusePostOwnerTransferRequest) Reset()
- func (msg *MsgRefusePostOwnerTransferRequest) Route() string
- func (m *MsgRefusePostOwnerTransferRequest) Size() (n int)
- func (m *MsgRefusePostOwnerTransferRequest) String() string
- func (msg *MsgRefusePostOwnerTransferRequest) Type() string
- func (m *MsgRefusePostOwnerTransferRequest) Unmarshal(dAtA []byte) error
- func (msg *MsgRefusePostOwnerTransferRequest) ValidateBasic() error
- func (m *MsgRefusePostOwnerTransferRequest) XXX_DiscardUnknown()
- func (m *MsgRefusePostOwnerTransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRefusePostOwnerTransferRequest) XXX_Merge(src proto.Message)
- func (m *MsgRefusePostOwnerTransferRequest) XXX_Size() int
- func (m *MsgRefusePostOwnerTransferRequest) XXX_Unmarshal(b []byte) error
- type MsgRefusePostOwnerTransferRequestResponse
- func (*MsgRefusePostOwnerTransferRequestResponse) Descriptor() ([]byte, []int)
- func (m *MsgRefusePostOwnerTransferRequestResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRefusePostOwnerTransferRequestResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRefusePostOwnerTransferRequestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRefusePostOwnerTransferRequestResponse) ProtoMessage()
- func (m *MsgRefusePostOwnerTransferRequestResponse) Reset()
- func (m *MsgRefusePostOwnerTransferRequestResponse) Size() (n int)
- func (m *MsgRefusePostOwnerTransferRequestResponse) String() string
- func (m *MsgRefusePostOwnerTransferRequestResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRefusePostOwnerTransferRequestResponse) XXX_DiscardUnknown()
- func (m *MsgRefusePostOwnerTransferRequestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRefusePostOwnerTransferRequestResponse) XXX_Merge(src proto.Message)
- func (m *MsgRefusePostOwnerTransferRequestResponse) XXX_Size() int
- func (m *MsgRefusePostOwnerTransferRequestResponse) XXX_Unmarshal(b []byte) error
- type MsgRemovePostAttachment
- func (*MsgRemovePostAttachment) Descriptor() ([]byte, []int)
- func (m *MsgRemovePostAttachment) GetAttachmentID() uint32
- func (m *MsgRemovePostAttachment) GetEditor() string
- func (m *MsgRemovePostAttachment) GetPostID() uint64
- func (msg *MsgRemovePostAttachment) GetSignBytes() []byte
- func (msg *MsgRemovePostAttachment) GetSigners() []sdk.AccAddress
- func (m *MsgRemovePostAttachment) GetSubspaceID() uint64
- func (m *MsgRemovePostAttachment) Marshal() (dAtA []byte, err error)
- func (m *MsgRemovePostAttachment) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemovePostAttachment) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemovePostAttachment) ProtoMessage()
- func (m *MsgRemovePostAttachment) Reset()
- func (msg *MsgRemovePostAttachment) Route() string
- func (m *MsgRemovePostAttachment) Size() (n int)
- func (m *MsgRemovePostAttachment) String() string
- func (msg *MsgRemovePostAttachment) Type() string
- func (m *MsgRemovePostAttachment) Unmarshal(dAtA []byte) error
- func (msg *MsgRemovePostAttachment) ValidateBasic() error
- func (m *MsgRemovePostAttachment) XXX_DiscardUnknown()
- func (m *MsgRemovePostAttachment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemovePostAttachment) XXX_Merge(src proto.Message)
- func (m *MsgRemovePostAttachment) XXX_Size() int
- func (m *MsgRemovePostAttachment) XXX_Unmarshal(b []byte) error
- type MsgRemovePostAttachmentResponse
- func (*MsgRemovePostAttachmentResponse) Descriptor() ([]byte, []int)
- func (m *MsgRemovePostAttachmentResponse) GetEditDate() time.Time
- func (m *MsgRemovePostAttachmentResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRemovePostAttachmentResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemovePostAttachmentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemovePostAttachmentResponse) ProtoMessage()
- func (m *MsgRemovePostAttachmentResponse) Reset()
- func (m *MsgRemovePostAttachmentResponse) Size() (n int)
- func (m *MsgRemovePostAttachmentResponse) String() string
- func (m *MsgRemovePostAttachmentResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRemovePostAttachmentResponse) XXX_DiscardUnknown()
- func (m *MsgRemovePostAttachmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemovePostAttachmentResponse) XXX_Merge(src proto.Message)
- func (m *MsgRemovePostAttachmentResponse) XXX_Size() int
- func (m *MsgRemovePostAttachmentResponse) XXX_Unmarshal(b []byte) error
- type MsgRequestPostOwnerTransfer
- func (*MsgRequestPostOwnerTransfer) Descriptor() ([]byte, []int)
- func (m *MsgRequestPostOwnerTransfer) GetPostID() uint64
- func (m *MsgRequestPostOwnerTransfer) GetReceiver() string
- func (m *MsgRequestPostOwnerTransfer) GetSender() string
- func (msg *MsgRequestPostOwnerTransfer) GetSignBytes() []byte
- func (msg *MsgRequestPostOwnerTransfer) GetSigners() []sdk.AccAddress
- func (m *MsgRequestPostOwnerTransfer) GetSubspaceID() uint64
- func (m *MsgRequestPostOwnerTransfer) Marshal() (dAtA []byte, err error)
- func (m *MsgRequestPostOwnerTransfer) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRequestPostOwnerTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRequestPostOwnerTransfer) ProtoMessage()
- func (m *MsgRequestPostOwnerTransfer) Reset()
- func (msg *MsgRequestPostOwnerTransfer) Route() string
- func (m *MsgRequestPostOwnerTransfer) Size() (n int)
- func (m *MsgRequestPostOwnerTransfer) String() string
- func (msg *MsgRequestPostOwnerTransfer) Type() string
- func (m *MsgRequestPostOwnerTransfer) Unmarshal(dAtA []byte) error
- func (msg *MsgRequestPostOwnerTransfer) ValidateBasic() error
- func (m *MsgRequestPostOwnerTransfer) XXX_DiscardUnknown()
- func (m *MsgRequestPostOwnerTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRequestPostOwnerTransfer) XXX_Merge(src proto.Message)
- func (m *MsgRequestPostOwnerTransfer) XXX_Size() int
- func (m *MsgRequestPostOwnerTransfer) XXX_Unmarshal(b []byte) error
- type MsgRequestPostOwnerTransferResponse
- func (*MsgRequestPostOwnerTransferResponse) Descriptor() ([]byte, []int)
- func (m *MsgRequestPostOwnerTransferResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRequestPostOwnerTransferResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRequestPostOwnerTransferResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRequestPostOwnerTransferResponse) ProtoMessage()
- func (m *MsgRequestPostOwnerTransferResponse) Reset()
- func (m *MsgRequestPostOwnerTransferResponse) Size() (n int)
- func (m *MsgRequestPostOwnerTransferResponse) String() string
- func (m *MsgRequestPostOwnerTransferResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRequestPostOwnerTransferResponse) XXX_DiscardUnknown()
- func (m *MsgRequestPostOwnerTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRequestPostOwnerTransferResponse) XXX_Merge(src proto.Message)
- func (m *MsgRequestPostOwnerTransferResponse) XXX_Size() int
- func (m *MsgRequestPostOwnerTransferResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (msg *MsgUpdateParams) GetSignBytes() []byte
- func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (msg *MsgUpdateParams) Route() string
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (msg *MsgUpdateParams) Type() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type MultiPostsHooks
- func (h MultiPostsHooks) AfterAttachmentDeleted(ctx sdk.Context, subspaceID uint64, postID uint64, attachmentID uint32)
- func (h MultiPostsHooks) AfterAttachmentSaved(ctx sdk.Context, subspaceID uint64, postID uint64, attachmentID uint32)
- func (h MultiPostsHooks) AfterPollAnswerDeleted(ctx sdk.Context, subspaceID uint64, postID uint64, pollID uint32, user string)
- func (h MultiPostsHooks) AfterPollAnswerSaved(ctx sdk.Context, subspaceID uint64, postID uint64, pollID uint32, user string)
- func (h MultiPostsHooks) AfterPollVotingPeriodEnded(ctx sdk.Context, subspaceID uint64, postID uint64, pollID uint32)
- func (h MultiPostsHooks) AfterPostDeleted(ctx sdk.Context, subspaceID uint64, postID uint64)
- func (h MultiPostsHooks) AfterPostSaved(ctx sdk.Context, subspaceID uint64, postID uint64)
- type OwnerTransfer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetMaxTextLength() uint32
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (params *Params) ParamSetPairs() paramstypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (params Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type ParamsSubspace
- type Poll
- func (*Poll) Descriptor() ([]byte, []int)
- func (this *Poll) Equal(that interface{}) bool
- func (m *Poll) GetAllowsAnswerEdits() bool
- func (m *Poll) GetAllowsMultipleAnswers() bool
- func (m *Poll) GetEndDate() time.Time
- func (m *Poll) GetFinalTallyResults() *PollTallyResults
- func (m *Poll) GetProvidedAnswers() []Poll_ProvidedAnswer
- func (m *Poll) GetQuestion() string
- func (m *Poll) Marshal() (dAtA []byte, err error)
- func (m *Poll) MarshalTo(dAtA []byte) (int, error)
- func (m *Poll) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Poll) ProtoMessage()
- func (m *Poll) Reset()
- func (m *Poll) Size() (n int)
- func (m *Poll) String() string
- func (m *Poll) Unmarshal(dAtA []byte) error
- func (a *Poll) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (p *Poll) Validate() error
- func (m *Poll) XXX_DiscardUnknown()
- func (m *Poll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Poll) XXX_Merge(src proto.Message)
- func (m *Poll) XXX_Size() int
- func (m *Poll) XXX_Unmarshal(b []byte) error
- type PollTallyResults
- func (*PollTallyResults) Descriptor() ([]byte, []int)
- func (this *PollTallyResults) Equal(that interface{}) bool
- func (m *PollTallyResults) GetResults() []PollTallyResults_AnswerResult
- func (m *PollTallyResults) Marshal() (dAtA []byte, err error)
- func (m *PollTallyResults) MarshalTo(dAtA []byte) (int, error)
- func (m *PollTallyResults) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PollTallyResults) ProtoMessage()
- func (m *PollTallyResults) Reset()
- func (m *PollTallyResults) Size() (n int)
- func (m *PollTallyResults) String() string
- func (m *PollTallyResults) Unmarshal(dAtA []byte) error
- func (r *PollTallyResults) Validate() error
- func (m *PollTallyResults) XXX_DiscardUnknown()
- func (m *PollTallyResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PollTallyResults) XXX_Merge(src proto.Message)
- func (m *PollTallyResults) XXX_Size() int
- func (m *PollTallyResults) XXX_Unmarshal(b []byte) error
- type PollTallyResults_AnswerResult
- func (*PollTallyResults_AnswerResult) Descriptor() ([]byte, []int)
- func (this *PollTallyResults_AnswerResult) Equal(that interface{}) bool
- func (m *PollTallyResults_AnswerResult) GetAnswerIndex() uint32
- func (m *PollTallyResults_AnswerResult) GetVotes() uint64
- func (m *PollTallyResults_AnswerResult) Marshal() (dAtA []byte, err error)
- func (m *PollTallyResults_AnswerResult) MarshalTo(dAtA []byte) (int, error)
- func (m *PollTallyResults_AnswerResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PollTallyResults_AnswerResult) ProtoMessage()
- func (m *PollTallyResults_AnswerResult) Reset()
- func (m *PollTallyResults_AnswerResult) Size() (n int)
- func (m *PollTallyResults_AnswerResult) String() string
- func (m *PollTallyResults_AnswerResult) Unmarshal(dAtA []byte) error
- func (m *PollTallyResults_AnswerResult) XXX_DiscardUnknown()
- func (m *PollTallyResults_AnswerResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PollTallyResults_AnswerResult) XXX_Merge(src proto.Message)
- func (m *PollTallyResults_AnswerResult) XXX_Size() int
- func (m *PollTallyResults_AnswerResult) XXX_Unmarshal(b []byte) error
- type Poll_ProvidedAnswer
- func (*Poll_ProvidedAnswer) Descriptor() ([]byte, []int)
- func (this *Poll_ProvidedAnswer) Equal(that interface{}) bool
- func (m *Poll_ProvidedAnswer) GetAttachments() []*types.Any
- func (m *Poll_ProvidedAnswer) GetText() string
- func (m *Poll_ProvidedAnswer) Marshal() (dAtA []byte, err error)
- func (m *Poll_ProvidedAnswer) MarshalTo(dAtA []byte) (int, error)
- func (m *Poll_ProvidedAnswer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Poll_ProvidedAnswer) ProtoMessage()
- func (m *Poll_ProvidedAnswer) Reset()
- func (m *Poll_ProvidedAnswer) Size() (n int)
- func (m *Poll_ProvidedAnswer) String() string
- func (m *Poll_ProvidedAnswer) Unmarshal(dAtA []byte) error
- func (a *Poll_ProvidedAnswer) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (a Poll_ProvidedAnswer) Validate() error
- func (m *Poll_ProvidedAnswer) XXX_DiscardUnknown()
- func (m *Poll_ProvidedAnswer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Poll_ProvidedAnswer) XXX_Merge(src proto.Message)
- func (m *Poll_ProvidedAnswer) XXX_Size() int
- func (m *Poll_ProvidedAnswer) XXX_Unmarshal(b []byte) error
- type Post
- func (*Post) Descriptor() ([]byte, []int)
- func (this *Post) Equal(that interface{}) bool
- func (m *Post) GetAuthor() string
- func (m *Post) GetConversationID() uint64
- func (m *Post) GetCreationDate() time.Time
- func (m *Post) GetEntities() *Entities
- func (m *Post) GetExternalID() string
- func (m *Post) GetID() uint64
- func (m *Post) GetLastEditedDate() *time.Time
- func (p Post) GetMentionedUsers() []string
- func (m *Post) GetOwner() string
- func (m *Post) GetReferencedPosts() []PostReference
- func (m *Post) GetReplySettings() ReplySetting
- func (m *Post) GetSectionID() uint32
- func (m *Post) GetSubspaceID() uint64
- func (m *Post) GetTags() []string
- func (m *Post) GetText() string
- func (p Post) GetTextLength() int
- func (p Post) IsUserMentioned(user string) bool
- func (m *Post) Marshal() (dAtA []byte, err error)
- func (m *Post) MarshalTo(dAtA []byte) (int, error)
- func (m *Post) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Post) ProtoMessage()
- func (m *Post) Reset()
- func (m *Post) Size() (n int)
- func (m *Post) String() string
- func (m *Post) Unmarshal(dAtA []byte) error
- func (p Post) Update(update PostUpdate) Post
- func (p Post) Validate() error
- func (m *Post) XXX_DiscardUnknown()
- func (m *Post) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Post) XXX_Merge(src proto.Message)
- func (m *Post) XXX_Size() int
- func (m *Post) XXX_Unmarshal(b []byte) error
- type PostDataEntry
- func (*PostDataEntry) Descriptor() ([]byte, []int)
- func (this *PostDataEntry) Equal(that interface{}) bool
- func (m *PostDataEntry) GetInitialAttachmentID() uint32
- func (m *PostDataEntry) GetPostID() uint64
- func (m *PostDataEntry) GetSubspaceID() uint64
- func (m *PostDataEntry) Marshal() (dAtA []byte, err error)
- func (m *PostDataEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *PostDataEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PostDataEntry) ProtoMessage()
- func (m *PostDataEntry) Reset()
- func (m *PostDataEntry) Size() (n int)
- func (m *PostDataEntry) String() string
- func (m *PostDataEntry) Unmarshal(dAtA []byte) error
- func (p PostDataEntry) Validate() error
- func (m *PostDataEntry) XXX_DiscardUnknown()
- func (m *PostDataEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PostDataEntry) XXX_Merge(src proto.Message)
- func (m *PostDataEntry) XXX_Size() int
- func (m *PostDataEntry) XXX_Unmarshal(b []byte) error
- type PostMove
- type PostOwnerTransferRequest
- func (*PostOwnerTransferRequest) Descriptor() ([]byte, []int)
- func (this *PostOwnerTransferRequest) Equal(that interface{}) bool
- func (m *PostOwnerTransferRequest) GetPostID() uint64
- func (m *PostOwnerTransferRequest) GetReceiver() string
- func (m *PostOwnerTransferRequest) GetSender() string
- func (m *PostOwnerTransferRequest) GetSubspaceID() uint64
- func (m *PostOwnerTransferRequest) Marshal() (dAtA []byte, err error)
- func (m *PostOwnerTransferRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *PostOwnerTransferRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PostOwnerTransferRequest) ProtoMessage()
- func (m *PostOwnerTransferRequest) Reset()
- func (m *PostOwnerTransferRequest) Size() (n int)
- func (m *PostOwnerTransferRequest) String() string
- func (m *PostOwnerTransferRequest) Unmarshal(dAtA []byte) error
- func (request PostOwnerTransferRequest) Validate() error
- func (m *PostOwnerTransferRequest) XXX_DiscardUnknown()
- func (m *PostOwnerTransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PostOwnerTransferRequest) XXX_Merge(src proto.Message)
- func (m *PostOwnerTransferRequest) XXX_Size() int
- func (m *PostOwnerTransferRequest) XXX_Unmarshal(b []byte) error
- type PostReference
- func (*PostReference) Descriptor() ([]byte, []int)
- func (this *PostReference) Equal(that interface{}) bool
- func (m *PostReference) GetPosition() uint64
- func (m *PostReference) GetPostID() uint64
- func (m *PostReference) GetType() PostReferenceType
- func (m *PostReference) Marshal() (dAtA []byte, err error)
- func (m *PostReference) MarshalTo(dAtA []byte) (int, error)
- func (m *PostReference) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PostReference) ProtoMessage()
- func (m *PostReference) Reset()
- func (m *PostReference) Size() (n int)
- func (m *PostReference) String() string
- func (m *PostReference) Unmarshal(dAtA []byte) error
- func (r PostReference) Validate() error
- func (m *PostReference) XXX_DiscardUnknown()
- func (m *PostReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PostReference) XXX_Merge(src proto.Message)
- func (m *PostReference) XXX_Size() int
- func (m *PostReference) XXX_Unmarshal(b []byte) error
- type PostReferenceType
- type PostUpdate
- type PostsHooks
- type PostsHooksWrapper
- type PostsMsg
- type PostsQuery
- type ProfilesKeeper
- type QueryClient
- type QueryIncomingPostOwnerTransferRequestsRequest
- func (*QueryIncomingPostOwnerTransferRequestsRequest) Descriptor() ([]byte, []int)
- func (m *QueryIncomingPostOwnerTransferRequestsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryIncomingPostOwnerTransferRequestsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryIncomingPostOwnerTransferRequestsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryIncomingPostOwnerTransferRequestsRequest) ProtoMessage()
- func (m *QueryIncomingPostOwnerTransferRequestsRequest) Reset()
- func (m *QueryIncomingPostOwnerTransferRequestsRequest) Size() (n int)
- func (m *QueryIncomingPostOwnerTransferRequestsRequest) String() string
- func (m *QueryIncomingPostOwnerTransferRequestsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryIncomingPostOwnerTransferRequestsRequest) XXX_DiscardUnknown()
- func (m *QueryIncomingPostOwnerTransferRequestsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryIncomingPostOwnerTransferRequestsRequest) XXX_Merge(src proto.Message)
- func (m *QueryIncomingPostOwnerTransferRequestsRequest) XXX_Size() int
- func (m *QueryIncomingPostOwnerTransferRequestsRequest) XXX_Unmarshal(b []byte) error
- type QueryIncomingPostOwnerTransferRequestsResponse
- func (*QueryIncomingPostOwnerTransferRequestsResponse) Descriptor() ([]byte, []int)
- func (m *QueryIncomingPostOwnerTransferRequestsResponse) GetPagination() *query.PageResponse
- func (m *QueryIncomingPostOwnerTransferRequestsResponse) GetRequests() []PostOwnerTransferRequest
- func (m *QueryIncomingPostOwnerTransferRequestsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryIncomingPostOwnerTransferRequestsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryIncomingPostOwnerTransferRequestsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryIncomingPostOwnerTransferRequestsResponse) ProtoMessage()
- func (m *QueryIncomingPostOwnerTransferRequestsResponse) Reset()
- func (m *QueryIncomingPostOwnerTransferRequestsResponse) Size() (n int)
- func (m *QueryIncomingPostOwnerTransferRequestsResponse) String() string
- func (m *QueryIncomingPostOwnerTransferRequestsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryIncomingPostOwnerTransferRequestsResponse) XXX_DiscardUnknown()
- func (m *QueryIncomingPostOwnerTransferRequestsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryIncomingPostOwnerTransferRequestsResponse) XXX_Merge(src proto.Message)
- func (m *QueryIncomingPostOwnerTransferRequestsResponse) XXX_Size() int
- func (m *QueryIncomingPostOwnerTransferRequestsResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryPollAnswersRequest
- func (*QueryPollAnswersRequest) Descriptor() ([]byte, []int)
- func (m *QueryPollAnswersRequest) GetPagination() *query.PageRequest
- func (m *QueryPollAnswersRequest) GetPollId() uint32
- func (m *QueryPollAnswersRequest) GetPostId() uint64
- func (m *QueryPollAnswersRequest) GetSubspaceId() uint64
- func (m *QueryPollAnswersRequest) GetUser() string
- func (m *QueryPollAnswersRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPollAnswersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPollAnswersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPollAnswersRequest) ProtoMessage()
- func (m *QueryPollAnswersRequest) Reset()
- func (m *QueryPollAnswersRequest) Size() (n int)
- func (m *QueryPollAnswersRequest) String() string
- func (m *QueryPollAnswersRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPollAnswersRequest) XXX_DiscardUnknown()
- func (m *QueryPollAnswersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPollAnswersRequest) XXX_Merge(src proto.Message)
- func (m *QueryPollAnswersRequest) XXX_Size() int
- func (m *QueryPollAnswersRequest) XXX_Unmarshal(b []byte) error
- type QueryPollAnswersResponse
- func (*QueryPollAnswersResponse) Descriptor() ([]byte, []int)
- func (m *QueryPollAnswersResponse) GetAnswers() []UserAnswer
- func (m *QueryPollAnswersResponse) GetPagination() *query.PageResponse
- func (m *QueryPollAnswersResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPollAnswersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPollAnswersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPollAnswersResponse) ProtoMessage()
- func (m *QueryPollAnswersResponse) Reset()
- func (m *QueryPollAnswersResponse) Size() (n int)
- func (m *QueryPollAnswersResponse) String() string
- func (m *QueryPollAnswersResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPollAnswersResponse) XXX_DiscardUnknown()
- func (m *QueryPollAnswersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPollAnswersResponse) XXX_Merge(src proto.Message)
- func (m *QueryPollAnswersResponse) XXX_Size() int
- func (m *QueryPollAnswersResponse) XXX_Unmarshal(b []byte) error
- type QueryPostAttachmentsRequest
- func (*QueryPostAttachmentsRequest) Descriptor() ([]byte, []int)
- func (m *QueryPostAttachmentsRequest) GetPagination() *query.PageRequest
- func (m *QueryPostAttachmentsRequest) GetPostId() uint64
- func (m *QueryPostAttachmentsRequest) GetSubspaceId() uint64
- func (m *QueryPostAttachmentsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPostAttachmentsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPostAttachmentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPostAttachmentsRequest) ProtoMessage()
- func (m *QueryPostAttachmentsRequest) Reset()
- func (m *QueryPostAttachmentsRequest) Size() (n int)
- func (m *QueryPostAttachmentsRequest) String() string
- func (m *QueryPostAttachmentsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPostAttachmentsRequest) XXX_DiscardUnknown()
- func (m *QueryPostAttachmentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPostAttachmentsRequest) XXX_Merge(src proto.Message)
- func (m *QueryPostAttachmentsRequest) XXX_Size() int
- func (m *QueryPostAttachmentsRequest) XXX_Unmarshal(b []byte) error
- type QueryPostAttachmentsResponse
- func (*QueryPostAttachmentsResponse) Descriptor() ([]byte, []int)
- func (m *QueryPostAttachmentsResponse) GetAttachments() []Attachment
- func (m *QueryPostAttachmentsResponse) GetPagination() *query.PageResponse
- func (m *QueryPostAttachmentsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPostAttachmentsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPostAttachmentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPostAttachmentsResponse) ProtoMessage()
- func (m *QueryPostAttachmentsResponse) Reset()
- func (m *QueryPostAttachmentsResponse) Size() (n int)
- func (m *QueryPostAttachmentsResponse) String() string
- func (m *QueryPostAttachmentsResponse) Unmarshal(dAtA []byte) error
- func (r *QueryPostAttachmentsResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *QueryPostAttachmentsResponse) XXX_DiscardUnknown()
- func (m *QueryPostAttachmentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPostAttachmentsResponse) XXX_Merge(src proto.Message)
- func (m *QueryPostAttachmentsResponse) XXX_Size() int
- func (m *QueryPostAttachmentsResponse) XXX_Unmarshal(b []byte) error
- type QueryPostRequest
- func (*QueryPostRequest) Descriptor() ([]byte, []int)
- func (m *QueryPostRequest) GetPostId() uint64
- func (m *QueryPostRequest) GetSubspaceId() uint64
- func (m *QueryPostRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPostRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPostRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPostRequest) ProtoMessage()
- func (m *QueryPostRequest) Reset()
- func (m *QueryPostRequest) Size() (n int)
- func (m *QueryPostRequest) String() string
- func (m *QueryPostRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPostRequest) XXX_DiscardUnknown()
- func (m *QueryPostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPostRequest) XXX_Merge(src proto.Message)
- func (m *QueryPostRequest) XXX_Size() int
- func (m *QueryPostRequest) XXX_Unmarshal(b []byte) error
- type QueryPostResponse
- func (*QueryPostResponse) Descriptor() ([]byte, []int)
- func (m *QueryPostResponse) GetPost() Post
- func (m *QueryPostResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPostResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPostResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPostResponse) ProtoMessage()
- func (m *QueryPostResponse) Reset()
- func (m *QueryPostResponse) Size() (n int)
- func (m *QueryPostResponse) String() string
- func (m *QueryPostResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPostResponse) XXX_DiscardUnknown()
- func (m *QueryPostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPostResponse) XXX_Merge(src proto.Message)
- func (m *QueryPostResponse) XXX_Size() int
- func (m *QueryPostResponse) XXX_Unmarshal(b []byte) error
- type QuerySectionPostsRequest
- func (*QuerySectionPostsRequest) Descriptor() ([]byte, []int)
- func (m *QuerySectionPostsRequest) GetPagination() *query.PageRequest
- func (m *QuerySectionPostsRequest) GetSectionId() uint32
- func (m *QuerySectionPostsRequest) GetSubspaceId() uint64
- func (m *QuerySectionPostsRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySectionPostsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySectionPostsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySectionPostsRequest) ProtoMessage()
- func (m *QuerySectionPostsRequest) Reset()
- func (m *QuerySectionPostsRequest) Size() (n int)
- func (m *QuerySectionPostsRequest) String() string
- func (m *QuerySectionPostsRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySectionPostsRequest) XXX_DiscardUnknown()
- func (m *QuerySectionPostsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySectionPostsRequest) XXX_Merge(src proto.Message)
- func (m *QuerySectionPostsRequest) XXX_Size() int
- func (m *QuerySectionPostsRequest) XXX_Unmarshal(b []byte) error
- type QuerySectionPostsResponse
- func (*QuerySectionPostsResponse) Descriptor() ([]byte, []int)
- func (m *QuerySectionPostsResponse) GetPagination() *query.PageResponse
- func (m *QuerySectionPostsResponse) GetPosts() []Post
- func (m *QuerySectionPostsResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySectionPostsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySectionPostsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySectionPostsResponse) ProtoMessage()
- func (m *QuerySectionPostsResponse) Reset()
- func (m *QuerySectionPostsResponse) Size() (n int)
- func (m *QuerySectionPostsResponse) String() string
- func (m *QuerySectionPostsResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySectionPostsResponse) XXX_DiscardUnknown()
- func (m *QuerySectionPostsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySectionPostsResponse) XXX_Merge(src proto.Message)
- func (m *QuerySectionPostsResponse) XXX_Size() int
- func (m *QuerySectionPostsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QuerySubspacePostsRequest
- func (*QuerySubspacePostsRequest) Descriptor() ([]byte, []int)
- func (m *QuerySubspacePostsRequest) GetPagination() *query.PageRequest
- func (m *QuerySubspacePostsRequest) GetSubspaceId() uint64
- func (m *QuerySubspacePostsRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySubspacePostsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubspacePostsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubspacePostsRequest) ProtoMessage()
- func (m *QuerySubspacePostsRequest) Reset()
- func (m *QuerySubspacePostsRequest) Size() (n int)
- func (m *QuerySubspacePostsRequest) String() string
- func (m *QuerySubspacePostsRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySubspacePostsRequest) XXX_DiscardUnknown()
- func (m *QuerySubspacePostsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubspacePostsRequest) XXX_Merge(src proto.Message)
- func (m *QuerySubspacePostsRequest) XXX_Size() int
- func (m *QuerySubspacePostsRequest) XXX_Unmarshal(b []byte) error
- type QuerySubspacePostsResponse
- func (*QuerySubspacePostsResponse) Descriptor() ([]byte, []int)
- func (m *QuerySubspacePostsResponse) GetPagination() *query.PageResponse
- func (m *QuerySubspacePostsResponse) GetPosts() []Post
- func (m *QuerySubspacePostsResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySubspacePostsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubspacePostsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubspacePostsResponse) ProtoMessage()
- func (m *QuerySubspacePostsResponse) Reset()
- func (m *QuerySubspacePostsResponse) Size() (n int)
- func (m *QuerySubspacePostsResponse) String() string
- func (m *QuerySubspacePostsResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySubspacePostsResponse) XXX_DiscardUnknown()
- func (m *QuerySubspacePostsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubspacePostsResponse) XXX_Merge(src proto.Message)
- func (m *QuerySubspacePostsResponse) XXX_Size() int
- func (m *QuerySubspacePostsResponse) XXX_Unmarshal(b []byte) error
- type RelationshipsKeeper
- type ReplySetting
- type SubspaceDataEntry
- func (*SubspaceDataEntry) Descriptor() ([]byte, []int)
- func (this *SubspaceDataEntry) Equal(that interface{}) bool
- func (m *SubspaceDataEntry) GetInitialPostID() uint64
- func (m *SubspaceDataEntry) GetSubspaceID() uint64
- func (m *SubspaceDataEntry) Marshal() (dAtA []byte, err error)
- func (m *SubspaceDataEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *SubspaceDataEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SubspaceDataEntry) ProtoMessage()
- func (m *SubspaceDataEntry) Reset()
- func (m *SubspaceDataEntry) Size() (n int)
- func (m *SubspaceDataEntry) String() string
- func (m *SubspaceDataEntry) Unmarshal(dAtA []byte) error
- func (e SubspaceDataEntry) Validate() error
- func (m *SubspaceDataEntry) XXX_DiscardUnknown()
- func (m *SubspaceDataEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubspaceDataEntry) XXX_Merge(src proto.Message)
- func (m *SubspaceDataEntry) XXX_Size() int
- func (m *SubspaceDataEntry) XXX_Unmarshal(b []byte) error
- type SubspacesKeeper
- type TextTag
- func (*TextTag) Descriptor() ([]byte, []int)
- func (this *TextTag) Equal(that interface{}) bool
- func (m *TextTag) GetEnd() uint64
- func (m *TextTag) GetStart() uint64
- func (m *TextTag) GetTag() string
- func (m *TextTag) Marshal() (dAtA []byte, err error)
- func (m *TextTag) MarshalTo(dAtA []byte) (int, error)
- func (m *TextTag) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TextTag) ProtoMessage()
- func (m *TextTag) Reset()
- func (m *TextTag) Size() (n int)
- func (m *TextTag) String() string
- func (m *TextTag) Unmarshal(dAtA []byte) error
- func (t TextTag) Validate() error
- func (m *TextTag) XXX_DiscardUnknown()
- func (m *TextTag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TextTag) XXX_Merge(src proto.Message)
- func (m *TextTag) XXX_Size() int
- func (m *TextTag) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AcceptPostOwnerTransferRequest(ctx context.Context, req *MsgAcceptPostOwnerTransferRequest) (*MsgAcceptPostOwnerTransferRequestResponse, error)
- func (*UnimplementedMsgServer) AddPostAttachment(ctx context.Context, req *MsgAddPostAttachment) (*MsgAddPostAttachmentResponse, error)
- func (*UnimplementedMsgServer) AnswerPoll(ctx context.Context, req *MsgAnswerPoll) (*MsgAnswerPollResponse, error)
- func (*UnimplementedMsgServer) CancelPostOwnerTransferRequest(ctx context.Context, req *MsgCancelPostOwnerTransferRequest) (*MsgCancelPostOwnerTransferRequestResponse, error)
- func (*UnimplementedMsgServer) CreatePost(ctx context.Context, req *MsgCreatePost) (*MsgCreatePostResponse, error)
- func (*UnimplementedMsgServer) DeletePost(ctx context.Context, req *MsgDeletePost) (*MsgDeletePostResponse, error)
- func (*UnimplementedMsgServer) EditPost(ctx context.Context, req *MsgEditPost) (*MsgEditPostResponse, error)
- func (*UnimplementedMsgServer) MovePost(ctx context.Context, req *MsgMovePost) (*MsgMovePostResponse, error)
- func (*UnimplementedMsgServer) RefusePostOwnerTransferRequest(ctx context.Context, req *MsgRefusePostOwnerTransferRequest) (*MsgRefusePostOwnerTransferRequestResponse, error)
- func (*UnimplementedMsgServer) RemovePostAttachment(ctx context.Context, req *MsgRemovePostAttachment) (*MsgRemovePostAttachmentResponse, error)
- func (*UnimplementedMsgServer) RequestPostOwnerTransfer(ctx context.Context, req *MsgRequestPostOwnerTransfer) (*MsgRequestPostOwnerTransferResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) IncomingPostOwnerTransferRequests(ctx context.Context, req *QueryIncomingPostOwnerTransferRequestsRequest) (*QueryIncomingPostOwnerTransferRequestsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) PollAnswers(ctx context.Context, req *QueryPollAnswersRequest) (*QueryPollAnswersResponse, error)
- func (*UnimplementedQueryServer) Post(ctx context.Context, req *QueryPostRequest) (*QueryPostResponse, error)
- func (*UnimplementedQueryServer) PostAttachments(ctx context.Context, req *QueryPostAttachmentsRequest) (*QueryPostAttachmentsResponse, error)
- func (*UnimplementedQueryServer) SectionPosts(ctx context.Context, req *QuerySectionPostsRequest) (*QuerySectionPostsResponse, error)
- func (*UnimplementedQueryServer) SubspacePosts(ctx context.Context, req *QuerySubspacePostsRequest) (*QuerySubspacePostsResponse, error)
- type Url
- func (*Url) Descriptor() ([]byte, []int)
- func (this *Url) Equal(that interface{}) bool
- func (m *Url) GetDisplayUrl() string
- func (m *Url) GetEnd() uint64
- func (m *Url) GetStart() uint64
- func (m *Url) GetUrl() string
- func (m *Url) Marshal() (dAtA []byte, err error)
- func (m *Url) MarshalTo(dAtA []byte) (int, error)
- func (m *Url) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Url) ProtoMessage()
- func (m *Url) Reset()
- func (m *Url) Size() (n int)
- func (m *Url) String() string
- func (m *Url) Unmarshal(dAtA []byte) error
- func (u Url) Validate() error
- func (m *Url) XXX_DiscardUnknown()
- func (m *Url) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Url) XXX_Merge(src proto.Message)
- func (m *Url) XXX_Size() int
- func (m *Url) XXX_Unmarshal(b []byte) error
- type UserAnswer
- func (*UserAnswer) Descriptor() ([]byte, []int)
- func (this *UserAnswer) Equal(that interface{}) bool
- func (m *UserAnswer) GetAnswersIndexes() []uint32
- func (m *UserAnswer) GetPollID() uint32
- func (m *UserAnswer) GetPostID() uint64
- func (m *UserAnswer) GetSubspaceID() uint64
- func (m *UserAnswer) GetUser() string
- func (m *UserAnswer) Marshal() (dAtA []byte, err error)
- func (m *UserAnswer) MarshalTo(dAtA []byte) (int, error)
- func (m *UserAnswer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserAnswer) ProtoMessage()
- func (m *UserAnswer) Reset()
- func (m *UserAnswer) Size() (n int)
- func (m *UserAnswer) String() string
- func (m *UserAnswer) Unmarshal(dAtA []byte) error
- func (a UserAnswer) Validate() error
- func (m *UserAnswer) XXX_DiscardUnknown()
- func (m *UserAnswer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserAnswer) XXX_Merge(src proto.Message)
- func (m *UserAnswer) XXX_Size() int
- func (m *UserAnswer) XXX_Unmarshal(b []byte) error
Constants ¶
const ( EventTypeCreatedPost = "created_post" EventTypeEditedPost = "edited_post" EventTypeDeletedPost = "deleted_post" EventTypeAddedPostAttachment = "added_post_attachment" EventTypeRemovedPostAttachment = "removed_post_attachment" EventTypeAnsweredPoll = "answered_poll" EventTypeTalliedPoll = "tallied_poll" EventTypeMovedPost = "moved_post" EventTypeRequestedPostOwnerTransfer = "requested_post_owner_transfer" EventTypeCanceledPostOwnerTransfer = "canceled_post_owner_transfer" EventTypeAcceptedPostOwnerTransfer = "accepted_post_owner_transfer" EventTypeRefusedPostOwnerTransfer = "refused_post_owner_transfer" AttributeKeyPostID = "post_id" AttributeKeyAuthor = "author" AttributeKeyCreationTime = "creation_date" AttributeKeyLastEditTime = "last_edit_date" AttributeKeyAttachmentID = "attachment_id" AttributeKeyPollID = "poll_id" AttributeKeyAnswersIndexes = "answers_indexes" AttributeKeyAnswerer = "answerer" AttributeKeyNewSubspaceID = "new_subspace_id" AttributeKeyNewPostID = "new_post_id" AttributeKeySender = "sender" AttributeKeyReceiver = "receiver" )
Posts module event types
const ( ModuleName = "posts" RouterKey = ModuleName StoreKey = ModuleName QuerierRoute = ModuleName ActionCreatePost = "create_post" ActionEditPost = "edit_post" ActionAddPostAttachment = "add_post_attachment" ActionRemovePostAttachment = "remove_post_attachment" ActionDeletePost = "delete_post" ActionAnswerPoll = "answer_poll" ActionUpdateParams = "update_params" ActionMovePost = "move_post" ActionRequestPostOwnerTransfer = "request_post_owner_transfer" ActionCancelPostOwnerTransfer = "cancel_post_owner_transfer" ActionAcceptPostOwnerTransfer = "accept_post_owner_transfer" ActionRefusePostOwnerTransfer = "refuse_post_owner_transfer" DoNotModify = "[do-not-modify]" )
const ( // DefaultParamsSpace represents the default paramspace for the Params keeper DefaultParamsSpace = ModuleName )
Variables ¶
var ( ErrInvalidGenesis = errors.Register(ModuleName, 1, "invalid genesis state") ErrInvalidPost = errors.Register(ModuleName, 2, "invalid post") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( NextPostIDPrefix = []byte{0x00} PostPrefix = []byte{0x01} PostSectionPrefix = []byte{0x02} NextAttachmentIDPrefix = []byte{0x10} AttachmentPrefix = []byte{0x11} UserAnswerPrefix = []byte{0x20} ActivePollQueuePrefix = []byte{0x21} ParamsKey = []byte{0x30} PostOwnerTransferRequestPrefix = []byte{0x40} )
var ( PostSectionPrefixLen = len(PostSectionPrefix) SubspaceIDLen = len(subspacestypes.GetSubspaceIDBytes(1)) SectionIDLen = len(subspacestypes.GetSectionIDBytes(1)) PostIDLen = len(GetPostIDBytes(1)) )
var ( ErrInvalidLengthModels = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowModels = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupModels = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthMsgs = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMsgs = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMsgs = fmt.Errorf("proto: unexpected end of group") )
var ( // PermissionWrite identifies users that can create content inside the subspace PermissionWrite = subspacestypes.RegisterPermission("write content") // PermissionComment identifies users that can comment posts inside the subspace PermissionComment = subspacestypes.RegisterPermission("comment content") // PermissionInteractWithContent allows users to interact with content inside the subspace (eg. polls) PermissionInteractWithContent = subspacestypes.RegisterPermission("interact with content") // PermissionEditOwnContent allows users to edit their own content inside the subspace PermissionEditOwnContent = subspacestypes.RegisterPermission("edit own content") // PermissionModerateContent allows users to moderate other user's content PermissionModerateContent = subspacestypes.RegisterPermission("moderate content") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( // AminoCodec references the global x/posts 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/posts and // defined at the application level. AminoCodec = codec.NewAminoCodec(amino) )
var ( // DefaultMaxTextLength represents the default max length for post texts DefaultMaxTextLength uint32 = 500 )
var ( // MaxTextLengthKey represents the key used to store the max length for posts texts MaxTextLengthKey = []byte("MaxTextLength") )
var PostReferenceType_name = map[int32]string{
0: "POST_REFERENCE_TYPE_UNSPECIFIED",
1: "POST_REFERENCE_TYPE_REPLY",
2: "POST_REFERENCE_TYPE_QUOTE",
3: "POST_REFERENCE_TYPE_REPOST",
}
var PostReferenceType_value = map[string]int32{
"POST_REFERENCE_TYPE_UNSPECIFIED": 0,
"POST_REFERENCE_TYPE_REPLY": 1,
"POST_REFERENCE_TYPE_QUOTE": 2,
"POST_REFERENCE_TYPE_REPOST": 3,
}
var ReplySetting_name = map[int32]string{
0: "REPLY_SETTING_UNSPECIFIED",
1: "REPLY_SETTING_EVERYONE",
2: "REPLY_SETTING_FOLLOWERS",
3: "REPLY_SETTING_MUTUAL",
4: "REPLY_SETTING_MENTIONS",
}
var ReplySetting_value = map[string]int32{
"REPLY_SETTING_UNSPECIFIED": 0,
"REPLY_SETTING_EVERYONE": 1,
"REPLY_SETTING_FOLLOWERS": 2,
"REPLY_SETTING_MUTUAL": 3,
"REPLY_SETTING_MENTIONS": 4,
}
Functions ¶
func ActivePollByTimeKey ¶
ActivePollByTimeKey gets the active poll queue key by endTime
func ActivePollQueueKey ¶
ActivePollQueueKey returns the key for a pollID in the activePollQueue
func AttachmentStoreKey ¶
AttachmentStoreKey returns the store key that is used to store the attachment having the given id
func GetAttachmentIDBytes ¶
GetAttachmentIDBytes returns the byte representation of the attachmentID
func GetAttachmentIDFromBytes ¶
GetAttachmentIDFromBytes returns the attachmentID in uint32 format from a byte array
func GetPollIDBytes ¶
GetPollIDBytes returns the byte representation of the provided pollID
func GetPollIDFromBytes ¶
GetPollIDFromBytes returns the pollID in uint32 format from a byte array
func GetPostIDBytes ¶
GetPostIDBytes returns the byte representation of the postID
func GetPostIDFromBytes ¶
GetPostIDFromBytes returns postID in uint64 format from a byte array
func GetSubspacePostIDBytes ¶
GetSubspacePostIDBytes returns the byte representation of the subspaceID merged with the postID
func IsPoll ¶
func IsPoll(attachment Attachment) bool
IsPoll tells whether the given attachment represents a poll or not
func NextAttachmentIDStoreKey ¶
NextAttachmentIDStoreKey returns the store key that is used to store the attachment id to be used next for the given post
func NextPostIDStoreKey ¶
NextPostIDStoreKey returns the key uses to store the next post id for the given subspace
func PackAttachments ¶
func PackAttachments(attachments []AttachmentContent) ([]*codectypes.Any, error)
PackAttachments packs the given AttachmentContent instances as Any instances
func ParamKeyTable ¶
func ParamKeyTable() paramstypes.KeyTable
ParamKeyTable Key declaration for parameters
func ParseAttachmentID ¶
ParseAttachmentID parses the given value as an attachment id, returning an error if it's invalid
func ParsePostID ¶
ParsePostID parses the given value as a post id, returning an error if it's invalid
func PollAnswerStoreKey ¶
PollAnswerStoreKey returns the store key used to store the poll answer for the given user
func PollAnswersPrefix ¶
PollAnswersPrefix returns the store prefix used to store the polls associated with the given post
func PostAttachmentsPrefix ¶
PostAttachmentsPrefix returns the store prefix used to store all the given post attachments
func PostOwnerTransferRequestStoreKey ¶
PostOwnerTransferRequestStoreKey returns the store key used to store the post owner transfer request the given post
func PostSectionStoreKey ¶
PostSectionStoreKey returns the key used to store the section reference for the given post
func PostStoreKey ¶
PostStoreKey returns the key for a specific post
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func SectionPostsPrefix ¶
SectionPostsPrefix returns the prefix used to store all the section references for the given section
func SplitActivePollQueueKey ¶
func SplitActivePollQueueKey(key []byte) (subspaceID uint64, postID uint64, pollID uint32, endTime time.Time)
SplitActivePollQueueKey split the active poll key and returns the poll id and endTime
func SubspacePostOwnerTransferRequestPrefix ¶
SubspacePostOwnerTransferRequestPrefix returns the store prefix used to store the post owner transfer request associated with the given subspace
func SubspacePostsPrefix ¶
SubspacePostsPrefix returns the store prefix used to store all the posts related to the given subspace
func SubspaceSectionsPrefix ¶
SubspaceSectionsPrefix returns the prefix used to store all the section references 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
func ValidateMaxTextLength ¶
func ValidateMaxTextLength(i interface{}) error
Types ¶
type ActivePollData ¶
type ActivePollData 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"` PollID uint32 `protobuf:"varint,3,opt,name=poll_id,json=pollId,proto3" json:"poll_id,omitempty"` EndDate time.Time `protobuf:"bytes,4,opt,name=end_date,json=endDate,proto3,stdtime" json:"end_date"` }
ActivePollData contains the data of an active poll
func NewActivePollData ¶
func NewActivePollData(subspaceID uint64, postID uint64, pollID uint32, endTime time.Time) ActivePollData
NewActivePollData returns a new ActivePollData instance
func (*ActivePollData) Descriptor ¶
func (*ActivePollData) Descriptor() ([]byte, []int)
func (*ActivePollData) Equal ¶
func (this *ActivePollData) Equal(that interface{}) bool
func (*ActivePollData) GetEndDate ¶
func (m *ActivePollData) GetEndDate() time.Time
func (*ActivePollData) GetPollID ¶
func (m *ActivePollData) GetPollID() uint32
func (*ActivePollData) GetPostID ¶
func (m *ActivePollData) GetPostID() uint64
func (*ActivePollData) GetSubspaceID ¶
func (m *ActivePollData) GetSubspaceID() uint64
func (*ActivePollData) Marshal ¶
func (m *ActivePollData) Marshal() (dAtA []byte, err error)
func (*ActivePollData) MarshalToSizedBuffer ¶
func (m *ActivePollData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ActivePollData) ProtoMessage ¶
func (*ActivePollData) ProtoMessage()
func (*ActivePollData) Reset ¶
func (m *ActivePollData) Reset()
func (*ActivePollData) Size ¶
func (m *ActivePollData) Size() (n int)
func (*ActivePollData) String ¶
func (m *ActivePollData) String() string
func (*ActivePollData) Unmarshal ¶
func (m *ActivePollData) Unmarshal(dAtA []byte) error
func (ActivePollData) Validate ¶
func (d ActivePollData) Validate() error
Validate returns an error if something is wrong with the poll data
func (*ActivePollData) XXX_DiscardUnknown ¶
func (m *ActivePollData) XXX_DiscardUnknown()
func (*ActivePollData) XXX_Marshal ¶
func (m *ActivePollData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ActivePollData) XXX_Merge ¶
func (m *ActivePollData) XXX_Merge(src proto.Message)
func (*ActivePollData) XXX_Size ¶
func (m *ActivePollData) XXX_Size() int
func (*ActivePollData) XXX_Unmarshal ¶
func (m *ActivePollData) XXX_Unmarshal(b []byte) error
type Attachment ¶
type Attachment struct { // Id of the subspace inside which the post to which this attachment should be // connected 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 which this attachment should be connected PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"` // If of this attachment ID uint32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty" yaml:"id"` // Content of the attachment Content *types.Any `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty" yaml:"content"` }
Attachment contains the data of a single post attachment
func NewAttachment ¶
func NewAttachment(subspaceID uint64, postID uint64, id uint32, content AttachmentContent) Attachment
NewAttachment returns a new Attachment instance
func (*Attachment) Descriptor ¶
func (*Attachment) Descriptor() ([]byte, []int)
func (*Attachment) Equal ¶
func (this *Attachment) Equal(that interface{}) bool
func (*Attachment) GetContent ¶
func (m *Attachment) GetContent() *types.Any
func (*Attachment) GetID ¶
func (m *Attachment) GetID() uint32
func (*Attachment) GetPostID ¶
func (m *Attachment) GetPostID() uint64
func (*Attachment) GetSubspaceID ¶
func (m *Attachment) GetSubspaceID() uint64
func (*Attachment) Marshal ¶
func (m *Attachment) Marshal() (dAtA []byte, err error)
func (*Attachment) MarshalToSizedBuffer ¶
func (m *Attachment) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Attachment) ProtoMessage ¶
func (*Attachment) ProtoMessage()
func (*Attachment) Reset ¶
func (m *Attachment) Reset()
func (*Attachment) Size ¶
func (m *Attachment) Size() (n int)
func (*Attachment) String ¶
func (m *Attachment) String() string
func (*Attachment) Unmarshal ¶
func (m *Attachment) Unmarshal(dAtA []byte) error
func (*Attachment) UnpackInterfaces ¶
func (a *Attachment) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements codectypes.UnpackInterfacesMessage
func (*Attachment) XXX_DiscardUnknown ¶
func (m *Attachment) XXX_DiscardUnknown()
func (*Attachment) XXX_Marshal ¶
func (m *Attachment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Attachment) XXX_Merge ¶
func (m *Attachment) XXX_Merge(src proto.Message)
func (*Attachment) XXX_Size ¶
func (m *Attachment) XXX_Size() int
func (*Attachment) XXX_Unmarshal ¶
func (m *Attachment) XXX_Unmarshal(b []byte) error
type AttachmentContent ¶
type AttachmentContent interface { proto.Message Validate() error Equal(other interface{}) bool // contains filtered or unexported methods }
AttachmentContent represents an attachment content
func UnpackAttachments ¶
func UnpackAttachments(cdc codectypes.AnyUnpacker, attachmentAnys []*codectypes.Any) ([]AttachmentContent, error)
UnpackAttachments unpacks the given Any instances as AttachmentContent
type AttachmentMove ¶
type AttachmentMove struct { // ID of the subspace inside which the attachment should be moved SubspaceID uint64 // ID of the post to which the attachment should be associated within the new subspace PostID uint64 }
AttachmentMove contains data related to a attachment that can be updated after it has been moved.
func NewAttachmentMove ¶
func NewAttachmentMove(subspaceID uint64, postID uint64) AttachmentMove
NewAttachmentMove returns a new AttachmentMove instance
func (AttachmentMove) Update ¶
func (update AttachmentMove) Update(attachment Attachment) Attachment
Update updates the fields of a moved attachment.
type Attachments ¶
type Attachments []Attachment
Attachments represents a slice of Attachment objects
func (Attachments) Validate ¶
func (a Attachments) Validate() error
Validate implements fmt.Validators fmt.Validator
type Entities ¶
type Entities struct { TextTag `protobuf:"bytes,1,rep,name=hashtags,proto3" json:"hashtags" yaml:"hashtags"` // Mentions present inside the post text Mentions []TextTag `protobuf:"bytes,2,rep,name=mentions,proto3" json:"mentions" yaml:"mentions"` // Links present inside the post text Urls []Url `protobuf:"bytes,3,rep,name=urls,proto3" json:"urls" yaml:"urls"` }Hashtags []
Contains the details of entities parsed out of the post text
func NewEntities ¶
NewEntities returns a new Entities instance
func (*Entities) Descriptor ¶
func (*Entities) GetHashtags ¶
func (*Entities) GetMentions ¶
func (*Entities) MarshalToSizedBuffer ¶
func (*Entities) ProtoMessage ¶
func (*Entities) ProtoMessage()
func (*Entities) XXX_DiscardUnknown ¶
func (m *Entities) XXX_DiscardUnknown()
func (*Entities) XXX_Marshal ¶
func (*Entities) XXX_Unmarshal ¶
type GenesisState ¶
type GenesisState struct { SubspacesData []SubspaceDataEntry `protobuf:"bytes,1,rep,name=subspaces_data,json=subspacesData,proto3" json:"subspaces_data"` PostsData []PostDataEntry `protobuf:"bytes,2,rep,name=posts_data,json=postsData,proto3" json:"posts_data"` Posts []Post `protobuf:"bytes,3,rep,name=posts,proto3" json:"posts"` Attachments []Attachment `protobuf:"bytes,4,rep,name=attachments,proto3" json:"attachments"` ActivePolls []ActivePollData `protobuf:"bytes,5,rep,name=active_polls,json=activePolls,proto3" json:"active_polls"` UserAnswers []UserAnswer `protobuf:"bytes,6,rep,name=user_answers,json=userAnswers,proto3" json:"user_answers"` Params Params `protobuf:"bytes,7,opt,name=params,proto3" json:"params"` PostOwnerTransferRequests []PostOwnerTransferRequest `` /* 130-byte string literal not displayed */ }
GenesisState contains the data of the genesis state for the posts module
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState returns a default GenesisState
func NewGenesisState ¶
func NewGenesisState( subspacesData []SubspaceDataEntry, posts []Post, postsData []PostDataEntry, attachments []Attachment, activePolls []ActivePollData, userAnswers []UserAnswer, params Params, transferRequests []PostOwnerTransferRequest, ) *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) GetActivePolls ¶
func (m *GenesisState) GetActivePolls() []ActivePollData
func (*GenesisState) GetAttachments ¶
func (m *GenesisState) GetAttachments() []Attachment
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetPostOwnerTransferRequests ¶
func (m *GenesisState) GetPostOwnerTransferRequests() []PostOwnerTransferRequest
func (*GenesisState) GetPosts ¶
func (m *GenesisState) GetPosts() []Post
func (*GenesisState) GetPostsData ¶
func (m *GenesisState) GetPostsData() []PostDataEntry
func (*GenesisState) GetSubspacesData ¶
func (m *GenesisState) GetSubspacesData() []SubspaceDataEntry
func (*GenesisState) GetUserAnswers ¶
func (m *GenesisState) GetUserAnswers() []UserAnswer
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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 Media ¶
type Media struct { Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty" yaml:"uri"` MimeType string `protobuf:"bytes,3,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty" yaml:"mime_type"` }
Media represents a media attachment
func (*Media) Descriptor ¶
func (*Media) GetMimeType ¶
func (*Media) ProtoMessage ¶
func (*Media) ProtoMessage()
func (*Media) XXX_DiscardUnknown ¶
func (m *Media) XXX_DiscardUnknown()
func (*Media) XXX_Marshal ¶
func (*Media) XXX_Unmarshal ¶
type MsgAcceptPostOwnerTransferRequest ¶
type MsgAcceptPostOwnerTransferRequest struct { // Id of the subspace holding the post for which the request will be accepted SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the post for which the request will be accepted PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"` // Address of the request receiver Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty" yaml:"receiver"` }
MsgAcceptPostOwnerTransferRequest represents a message used to accept a incoming post transfer request
Since: Desmos 6.0.0
func NewMsgAcceptPostOwnerTransferRequest ¶
func NewMsgAcceptPostOwnerTransferRequest(subspaceID uint64, postID uint64, receiver string) *MsgAcceptPostOwnerTransferRequest
MsgAcceptPostOwnerTransferRequest returns a new MsgAcceptPostOwnerTransferRequest instance
func (*MsgAcceptPostOwnerTransferRequest) Descriptor ¶
func (*MsgAcceptPostOwnerTransferRequest) Descriptor() ([]byte, []int)
func (*MsgAcceptPostOwnerTransferRequest) GetPostID ¶
func (m *MsgAcceptPostOwnerTransferRequest) GetPostID() uint64
func (*MsgAcceptPostOwnerTransferRequest) GetReceiver ¶
func (m *MsgAcceptPostOwnerTransferRequest) GetReceiver() string
func (*MsgAcceptPostOwnerTransferRequest) GetSignBytes ¶
func (msg *MsgAcceptPostOwnerTransferRequest) GetSignBytes() []byte
GetSigners implements legacytx.LegacyMsg
func (*MsgAcceptPostOwnerTransferRequest) GetSigners ¶
func (msg *MsgAcceptPostOwnerTransferRequest) GetSigners() []sdk.AccAddress
GetSignBytes implements sdk.Msg
func (*MsgAcceptPostOwnerTransferRequest) GetSubspaceID ¶
func (m *MsgAcceptPostOwnerTransferRequest) GetSubspaceID() uint64
func (*MsgAcceptPostOwnerTransferRequest) Marshal ¶
func (m *MsgAcceptPostOwnerTransferRequest) Marshal() (dAtA []byte, err error)
func (*MsgAcceptPostOwnerTransferRequest) MarshalTo ¶
func (m *MsgAcceptPostOwnerTransferRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgAcceptPostOwnerTransferRequest) MarshalToSizedBuffer ¶
func (m *MsgAcceptPostOwnerTransferRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAcceptPostOwnerTransferRequest) ProtoMessage ¶
func (*MsgAcceptPostOwnerTransferRequest) ProtoMessage()
func (*MsgAcceptPostOwnerTransferRequest) Reset ¶
func (m *MsgAcceptPostOwnerTransferRequest) Reset()
func (*MsgAcceptPostOwnerTransferRequest) Route ¶
func (msg *MsgAcceptPostOwnerTransferRequest) Route() string
Route implements legacytx.LegacyMsg
func (*MsgAcceptPostOwnerTransferRequest) Size ¶
func (m *MsgAcceptPostOwnerTransferRequest) Size() (n int)
func (*MsgAcceptPostOwnerTransferRequest) String ¶
func (m *MsgAcceptPostOwnerTransferRequest) String() string
func (*MsgAcceptPostOwnerTransferRequest) Type ¶
func (msg *MsgAcceptPostOwnerTransferRequest) Type() string
Type implements legacytx.LegacyMsg
func (*MsgAcceptPostOwnerTransferRequest) Unmarshal ¶
func (m *MsgAcceptPostOwnerTransferRequest) Unmarshal(dAtA []byte) error
func (*MsgAcceptPostOwnerTransferRequest) ValidateBasic ¶
func (msg *MsgAcceptPostOwnerTransferRequest) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgAcceptPostOwnerTransferRequest) XXX_DiscardUnknown ¶
func (m *MsgAcceptPostOwnerTransferRequest) XXX_DiscardUnknown()
func (*MsgAcceptPostOwnerTransferRequest) XXX_Marshal ¶
func (m *MsgAcceptPostOwnerTransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAcceptPostOwnerTransferRequest) XXX_Merge ¶
func (m *MsgAcceptPostOwnerTransferRequest) XXX_Merge(src proto.Message)
func (*MsgAcceptPostOwnerTransferRequest) XXX_Size ¶
func (m *MsgAcceptPostOwnerTransferRequest) XXX_Size() int
func (*MsgAcceptPostOwnerTransferRequest) XXX_Unmarshal ¶
func (m *MsgAcceptPostOwnerTransferRequest) XXX_Unmarshal(b []byte) error
type MsgAcceptPostOwnerTransferRequestResponse ¶
type MsgAcceptPostOwnerTransferRequestResponse struct { }
MsgAcceptPostOwnerTransferRequestResponse defines the Msg/AcceptPostOwnerTransferRequest response type
Since: Desmos 6.0.0
func (*MsgAcceptPostOwnerTransferRequestResponse) Descriptor ¶
func (*MsgAcceptPostOwnerTransferRequestResponse) Descriptor() ([]byte, []int)
func (*MsgAcceptPostOwnerTransferRequestResponse) Marshal ¶
func (m *MsgAcceptPostOwnerTransferRequestResponse) Marshal() (dAtA []byte, err error)
func (*MsgAcceptPostOwnerTransferRequestResponse) MarshalTo ¶
func (m *MsgAcceptPostOwnerTransferRequestResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAcceptPostOwnerTransferRequestResponse) MarshalToSizedBuffer ¶
func (m *MsgAcceptPostOwnerTransferRequestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAcceptPostOwnerTransferRequestResponse) ProtoMessage ¶
func (*MsgAcceptPostOwnerTransferRequestResponse) ProtoMessage()
func (*MsgAcceptPostOwnerTransferRequestResponse) Reset ¶
func (m *MsgAcceptPostOwnerTransferRequestResponse) Reset()
func (*MsgAcceptPostOwnerTransferRequestResponse) Size ¶
func (m *MsgAcceptPostOwnerTransferRequestResponse) Size() (n int)
func (*MsgAcceptPostOwnerTransferRequestResponse) String ¶
func (m *MsgAcceptPostOwnerTransferRequestResponse) String() string
func (*MsgAcceptPostOwnerTransferRequestResponse) Unmarshal ¶
func (m *MsgAcceptPostOwnerTransferRequestResponse) Unmarshal(dAtA []byte) error
func (*MsgAcceptPostOwnerTransferRequestResponse) XXX_DiscardUnknown ¶
func (m *MsgAcceptPostOwnerTransferRequestResponse) XXX_DiscardUnknown()
func (*MsgAcceptPostOwnerTransferRequestResponse) XXX_Marshal ¶
func (m *MsgAcceptPostOwnerTransferRequestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAcceptPostOwnerTransferRequestResponse) XXX_Merge ¶
func (m *MsgAcceptPostOwnerTransferRequestResponse) XXX_Merge(src proto.Message)
func (*MsgAcceptPostOwnerTransferRequestResponse) XXX_Size ¶
func (m *MsgAcceptPostOwnerTransferRequestResponse) XXX_Size() int
func (*MsgAcceptPostOwnerTransferRequestResponse) XXX_Unmarshal ¶
func (m *MsgAcceptPostOwnerTransferRequestResponse) XXX_Unmarshal(b []byte) error
type MsgAddPostAttachment ¶
type MsgAddPostAttachment struct { // Id of the subspace containing the post 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 to add the attachment PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"` // Content of the attachment Content *types.Any `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty" yaml:"content"` // Editor of the post Editor string `protobuf:"bytes,4,opt,name=editor,proto3" json:"editor,omitempty" yaml:"editor"` }
MsgAddPostAttachment represents the message that should be used when adding an attachment to post
func NewMsgAddPostAttachment ¶
func NewMsgAddPostAttachment( subspaceID uint64, postID uint64, content AttachmentContent, editor string, ) *MsgAddPostAttachment
NewMsgAddPostAttachment returns a new MsgAddPostAttachment instance
func (*MsgAddPostAttachment) Descriptor ¶
func (*MsgAddPostAttachment) Descriptor() ([]byte, []int)
func (*MsgAddPostAttachment) GetContent ¶
func (m *MsgAddPostAttachment) GetContent() *types.Any
func (*MsgAddPostAttachment) GetEditor ¶
func (m *MsgAddPostAttachment) GetEditor() string
func (*MsgAddPostAttachment) GetPostID ¶
func (m *MsgAddPostAttachment) GetPostID() uint64
func (*MsgAddPostAttachment) GetSignBytes ¶
func (msg *MsgAddPostAttachment) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgAddPostAttachment) GetSigners ¶
func (msg *MsgAddPostAttachment) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgAddPostAttachment) GetSubspaceID ¶
func (m *MsgAddPostAttachment) GetSubspaceID() uint64
func (*MsgAddPostAttachment) Marshal ¶
func (m *MsgAddPostAttachment) Marshal() (dAtA []byte, err error)
func (*MsgAddPostAttachment) MarshalTo ¶
func (m *MsgAddPostAttachment) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddPostAttachment) MarshalToSizedBuffer ¶
func (m *MsgAddPostAttachment) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddPostAttachment) ProtoMessage ¶
func (*MsgAddPostAttachment) ProtoMessage()
func (*MsgAddPostAttachment) Reset ¶
func (m *MsgAddPostAttachment) Reset()
func (*MsgAddPostAttachment) Route ¶
func (msg *MsgAddPostAttachment) Route() string
Route implements sdk.Msg
func (*MsgAddPostAttachment) Size ¶
func (m *MsgAddPostAttachment) Size() (n int)
func (*MsgAddPostAttachment) String ¶
func (m *MsgAddPostAttachment) String() string
func (*MsgAddPostAttachment) Type ¶
func (msg *MsgAddPostAttachment) Type() string
Type implements sdk.Msg
func (*MsgAddPostAttachment) Unmarshal ¶
func (m *MsgAddPostAttachment) Unmarshal(dAtA []byte) error
func (*MsgAddPostAttachment) UnpackInterfaces ¶
func (msg *MsgAddPostAttachment) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements codectypes.UnpackInterfacesMessage
func (*MsgAddPostAttachment) ValidateBasic ¶
func (msg *MsgAddPostAttachment) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgAddPostAttachment) XXX_DiscardUnknown ¶
func (m *MsgAddPostAttachment) XXX_DiscardUnknown()
func (*MsgAddPostAttachment) XXX_Marshal ¶
func (m *MsgAddPostAttachment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddPostAttachment) XXX_Merge ¶
func (m *MsgAddPostAttachment) XXX_Merge(src proto.Message)
func (*MsgAddPostAttachment) XXX_Size ¶
func (m *MsgAddPostAttachment) XXX_Size() int
func (*MsgAddPostAttachment) XXX_Unmarshal ¶
func (m *MsgAddPostAttachment) XXX_Unmarshal(b []byte) error
type MsgAddPostAttachmentResponse ¶
type MsgAddPostAttachmentResponse struct { // New id of the uploaded attachment AttachmentID uint32 `protobuf:"varint,1,opt,name=attachment_id,json=attachmentId,proto3" json:"attachment_id,omitempty" yaml:"attachment_id"` // Edit date of the post EditDate time.Time `protobuf:"bytes,2,opt,name=edit_date,json=editDate,proto3,stdtime" json:"edit_date" yaml:"edit_date"` }
MsgAddPostAttachmentResponse defines the Msg/AddPostAttachment response type.
func (*MsgAddPostAttachmentResponse) Descriptor ¶
func (*MsgAddPostAttachmentResponse) Descriptor() ([]byte, []int)
func (*MsgAddPostAttachmentResponse) GetAttachmentID ¶
func (m *MsgAddPostAttachmentResponse) GetAttachmentID() uint32
func (*MsgAddPostAttachmentResponse) GetEditDate ¶
func (m *MsgAddPostAttachmentResponse) GetEditDate() time.Time
func (*MsgAddPostAttachmentResponse) Marshal ¶
func (m *MsgAddPostAttachmentResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddPostAttachmentResponse) MarshalTo ¶
func (m *MsgAddPostAttachmentResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddPostAttachmentResponse) MarshalToSizedBuffer ¶
func (m *MsgAddPostAttachmentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddPostAttachmentResponse) ProtoMessage ¶
func (*MsgAddPostAttachmentResponse) ProtoMessage()
func (*MsgAddPostAttachmentResponse) Reset ¶
func (m *MsgAddPostAttachmentResponse) Reset()
func (*MsgAddPostAttachmentResponse) Size ¶
func (m *MsgAddPostAttachmentResponse) Size() (n int)
func (*MsgAddPostAttachmentResponse) String ¶
func (m *MsgAddPostAttachmentResponse) String() string
func (*MsgAddPostAttachmentResponse) Unmarshal ¶
func (m *MsgAddPostAttachmentResponse) Unmarshal(dAtA []byte) error
func (*MsgAddPostAttachmentResponse) XXX_DiscardUnknown ¶
func (m *MsgAddPostAttachmentResponse) XXX_DiscardUnknown()
func (*MsgAddPostAttachmentResponse) XXX_Marshal ¶
func (m *MsgAddPostAttachmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddPostAttachmentResponse) XXX_Merge ¶
func (m *MsgAddPostAttachmentResponse) XXX_Merge(src proto.Message)
func (*MsgAddPostAttachmentResponse) XXX_Size ¶
func (m *MsgAddPostAttachmentResponse) XXX_Size() int
func (*MsgAddPostAttachmentResponse) XXX_Unmarshal ¶
func (m *MsgAddPostAttachmentResponse) XXX_Unmarshal(b []byte) error
type MsgAnswerPoll ¶
type MsgAnswerPoll struct { // Id of the subspace containing the post SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the post that contains the poll to be answered PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"` // Id of the poll to be answered PollID uint32 `protobuf:"varint,3,opt,name=poll_id,json=pollId,proto3" json:"poll_id,omitempty" yaml:"poll_id"` // Indexes of the answer inside the ProvidedAnswers array AnswersIndexes []uint32 `` /* 134-byte string literal not displayed */ // Address of the user answering the poll Signer string `protobuf:"bytes,5,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"` }
MsgAnswerPoll represents the message used to answer a poll
func NewMsgAnswerPoll ¶
func NewMsgAnswerPoll( subspaceID uint64, postID uint64, pollID uint32, answersIndexes []uint32, signer string, ) *MsgAnswerPoll
NewMsgAnswerPoll returns a new MsgAnswerPoll instance
func (*MsgAnswerPoll) Descriptor ¶
func (*MsgAnswerPoll) Descriptor() ([]byte, []int)
func (*MsgAnswerPoll) GetAnswersIndexes ¶
func (m *MsgAnswerPoll) GetAnswersIndexes() []uint32
func (*MsgAnswerPoll) GetPollID ¶
func (m *MsgAnswerPoll) GetPollID() uint32
func (*MsgAnswerPoll) GetPostID ¶
func (m *MsgAnswerPoll) GetPostID() uint64
func (*MsgAnswerPoll) GetSignBytes ¶
func (msg *MsgAnswerPoll) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgAnswerPoll) GetSigner ¶
func (m *MsgAnswerPoll) GetSigner() string
func (*MsgAnswerPoll) GetSigners ¶
func (msg *MsgAnswerPoll) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgAnswerPoll) GetSubspaceID ¶
func (m *MsgAnswerPoll) GetSubspaceID() uint64
func (*MsgAnswerPoll) Marshal ¶
func (m *MsgAnswerPoll) Marshal() (dAtA []byte, err error)
func (*MsgAnswerPoll) MarshalToSizedBuffer ¶
func (m *MsgAnswerPoll) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAnswerPoll) ProtoMessage ¶
func (*MsgAnswerPoll) ProtoMessage()
func (*MsgAnswerPoll) Reset ¶
func (m *MsgAnswerPoll) Reset()
func (*MsgAnswerPoll) Size ¶
func (m *MsgAnswerPoll) Size() (n int)
func (*MsgAnswerPoll) String ¶
func (m *MsgAnswerPoll) String() string
func (*MsgAnswerPoll) Unmarshal ¶
func (m *MsgAnswerPoll) Unmarshal(dAtA []byte) error
func (*MsgAnswerPoll) ValidateBasic ¶
func (msg *MsgAnswerPoll) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgAnswerPoll) XXX_DiscardUnknown ¶
func (m *MsgAnswerPoll) XXX_DiscardUnknown()
func (*MsgAnswerPoll) XXX_Marshal ¶
func (m *MsgAnswerPoll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAnswerPoll) XXX_Merge ¶
func (m *MsgAnswerPoll) XXX_Merge(src proto.Message)
func (*MsgAnswerPoll) XXX_Size ¶
func (m *MsgAnswerPoll) XXX_Size() int
func (*MsgAnswerPoll) XXX_Unmarshal ¶
func (m *MsgAnswerPoll) XXX_Unmarshal(b []byte) error
type MsgAnswerPollResponse ¶
type MsgAnswerPollResponse struct { }
MsgAnswerPollResponse represents the MSg/AnswerPoll response type
func (*MsgAnswerPollResponse) Descriptor ¶
func (*MsgAnswerPollResponse) Descriptor() ([]byte, []int)
func (*MsgAnswerPollResponse) Marshal ¶
func (m *MsgAnswerPollResponse) Marshal() (dAtA []byte, err error)
func (*MsgAnswerPollResponse) MarshalTo ¶
func (m *MsgAnswerPollResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAnswerPollResponse) MarshalToSizedBuffer ¶
func (m *MsgAnswerPollResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAnswerPollResponse) ProtoMessage ¶
func (*MsgAnswerPollResponse) ProtoMessage()
func (*MsgAnswerPollResponse) Reset ¶
func (m *MsgAnswerPollResponse) Reset()
func (*MsgAnswerPollResponse) Size ¶
func (m *MsgAnswerPollResponse) Size() (n int)
func (*MsgAnswerPollResponse) String ¶
func (m *MsgAnswerPollResponse) String() string
func (*MsgAnswerPollResponse) Unmarshal ¶
func (m *MsgAnswerPollResponse) Unmarshal(dAtA []byte) error
func (*MsgAnswerPollResponse) XXX_DiscardUnknown ¶
func (m *MsgAnswerPollResponse) XXX_DiscardUnknown()
func (*MsgAnswerPollResponse) XXX_Marshal ¶
func (m *MsgAnswerPollResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAnswerPollResponse) XXX_Merge ¶
func (m *MsgAnswerPollResponse) XXX_Merge(src proto.Message)
func (*MsgAnswerPollResponse) XXX_Size ¶
func (m *MsgAnswerPollResponse) XXX_Size() int
func (*MsgAnswerPollResponse) XXX_Unmarshal ¶
func (m *MsgAnswerPollResponse) XXX_Unmarshal(b []byte) error
type MsgCancelPostOwnerTransferRequest ¶
type MsgCancelPostOwnerTransferRequest struct { // Id of the subspace that holds the post for which the request should be // canceled SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the post for which the request will be cancelled PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"` // Address of the transfer request sender Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` }
MsgCancelPostOwnerTransferRequest represents a message used to cancel a outgoing post transfer request
Since: Desmos 6.0.0
func NewMsgCancelPostOwnerTransferRequest ¶
func NewMsgCancelPostOwnerTransferRequest(subspaceID uint64, postID uint64, sender string) *MsgCancelPostOwnerTransferRequest
MsgCancelPostOwnerTransferRequest returns a new MsgCancelPostOwnerTransferRequest instance
func (*MsgCancelPostOwnerTransferRequest) Descriptor ¶
func (*MsgCancelPostOwnerTransferRequest) Descriptor() ([]byte, []int)
func (*MsgCancelPostOwnerTransferRequest) GetPostID ¶
func (m *MsgCancelPostOwnerTransferRequest) GetPostID() uint64
func (*MsgCancelPostOwnerTransferRequest) GetSender ¶
func (m *MsgCancelPostOwnerTransferRequest) GetSender() string
func (*MsgCancelPostOwnerTransferRequest) GetSignBytes ¶
func (msg *MsgCancelPostOwnerTransferRequest) GetSignBytes() []byte
GetSigners implements legacytx.LegacyMsg
func (*MsgCancelPostOwnerTransferRequest) GetSigners ¶
func (msg *MsgCancelPostOwnerTransferRequest) GetSigners() []sdk.AccAddress
GetSignBytes implements sdk.Msg
func (*MsgCancelPostOwnerTransferRequest) GetSubspaceID ¶
func (m *MsgCancelPostOwnerTransferRequest) GetSubspaceID() uint64
func (*MsgCancelPostOwnerTransferRequest) Marshal ¶
func (m *MsgCancelPostOwnerTransferRequest) Marshal() (dAtA []byte, err error)
func (*MsgCancelPostOwnerTransferRequest) MarshalTo ¶
func (m *MsgCancelPostOwnerTransferRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelPostOwnerTransferRequest) MarshalToSizedBuffer ¶
func (m *MsgCancelPostOwnerTransferRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelPostOwnerTransferRequest) ProtoMessage ¶
func (*MsgCancelPostOwnerTransferRequest) ProtoMessage()
func (*MsgCancelPostOwnerTransferRequest) Reset ¶
func (m *MsgCancelPostOwnerTransferRequest) Reset()
func (*MsgCancelPostOwnerTransferRequest) Route ¶
func (msg *MsgCancelPostOwnerTransferRequest) Route() string
Route implements legacytx.LegacyMsg
func (*MsgCancelPostOwnerTransferRequest) Size ¶
func (m *MsgCancelPostOwnerTransferRequest) Size() (n int)
func (*MsgCancelPostOwnerTransferRequest) String ¶
func (m *MsgCancelPostOwnerTransferRequest) String() string
func (*MsgCancelPostOwnerTransferRequest) Type ¶
func (msg *MsgCancelPostOwnerTransferRequest) Type() string
Type implements legacytx.LegacyMsg
func (*MsgCancelPostOwnerTransferRequest) Unmarshal ¶
func (m *MsgCancelPostOwnerTransferRequest) Unmarshal(dAtA []byte) error
func (*MsgCancelPostOwnerTransferRequest) ValidateBasic ¶
func (msg *MsgCancelPostOwnerTransferRequest) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgCancelPostOwnerTransferRequest) XXX_DiscardUnknown ¶
func (m *MsgCancelPostOwnerTransferRequest) XXX_DiscardUnknown()
func (*MsgCancelPostOwnerTransferRequest) XXX_Marshal ¶
func (m *MsgCancelPostOwnerTransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelPostOwnerTransferRequest) XXX_Merge ¶
func (m *MsgCancelPostOwnerTransferRequest) XXX_Merge(src proto.Message)
func (*MsgCancelPostOwnerTransferRequest) XXX_Size ¶
func (m *MsgCancelPostOwnerTransferRequest) XXX_Size() int
func (*MsgCancelPostOwnerTransferRequest) XXX_Unmarshal ¶
func (m *MsgCancelPostOwnerTransferRequest) XXX_Unmarshal(b []byte) error
type MsgCancelPostOwnerTransferRequestResponse ¶
type MsgCancelPostOwnerTransferRequestResponse struct { }
MsgCancelPostOwnerTransferRequestResponse defines the Msg/CancelPostOwnerTransferRequest response type
Since: Desmos 6.0.0
func (*MsgCancelPostOwnerTransferRequestResponse) Descriptor ¶
func (*MsgCancelPostOwnerTransferRequestResponse) Descriptor() ([]byte, []int)
func (*MsgCancelPostOwnerTransferRequestResponse) Marshal ¶
func (m *MsgCancelPostOwnerTransferRequestResponse) Marshal() (dAtA []byte, err error)
func (*MsgCancelPostOwnerTransferRequestResponse) MarshalTo ¶
func (m *MsgCancelPostOwnerTransferRequestResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelPostOwnerTransferRequestResponse) MarshalToSizedBuffer ¶
func (m *MsgCancelPostOwnerTransferRequestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelPostOwnerTransferRequestResponse) ProtoMessage ¶
func (*MsgCancelPostOwnerTransferRequestResponse) ProtoMessage()
func (*MsgCancelPostOwnerTransferRequestResponse) Reset ¶
func (m *MsgCancelPostOwnerTransferRequestResponse) Reset()
func (*MsgCancelPostOwnerTransferRequestResponse) Size ¶
func (m *MsgCancelPostOwnerTransferRequestResponse) Size() (n int)
func (*MsgCancelPostOwnerTransferRequestResponse) String ¶
func (m *MsgCancelPostOwnerTransferRequestResponse) String() string
func (*MsgCancelPostOwnerTransferRequestResponse) Unmarshal ¶
func (m *MsgCancelPostOwnerTransferRequestResponse) Unmarshal(dAtA []byte) error
func (*MsgCancelPostOwnerTransferRequestResponse) XXX_DiscardUnknown ¶
func (m *MsgCancelPostOwnerTransferRequestResponse) XXX_DiscardUnknown()
func (*MsgCancelPostOwnerTransferRequestResponse) XXX_Marshal ¶
func (m *MsgCancelPostOwnerTransferRequestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelPostOwnerTransferRequestResponse) XXX_Merge ¶
func (m *MsgCancelPostOwnerTransferRequestResponse) XXX_Merge(src proto.Message)
func (*MsgCancelPostOwnerTransferRequestResponse) XXX_Size ¶
func (m *MsgCancelPostOwnerTransferRequestResponse) XXX_Size() int
func (*MsgCancelPostOwnerTransferRequestResponse) XXX_Unmarshal ¶
func (m *MsgCancelPostOwnerTransferRequestResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // CreatePost allows to create a new post CreatePost(ctx context.Context, in *MsgCreatePost, opts ...grpc.CallOption) (*MsgCreatePostResponse, error) // EditPost allows to edit an existing post EditPost(ctx context.Context, in *MsgEditPost, opts ...grpc.CallOption) (*MsgEditPostResponse, error) // DeletePost allows to delete an existing post DeletePost(ctx context.Context, in *MsgDeletePost, opts ...grpc.CallOption) (*MsgDeletePostResponse, error) // AddPostAttachment allows to add a new attachment to a post AddPostAttachment(ctx context.Context, in *MsgAddPostAttachment, opts ...grpc.CallOption) (*MsgAddPostAttachmentResponse, error) // RemovePostAttachment allows to remove an attachment from a post RemovePostAttachment(ctx context.Context, in *MsgRemovePostAttachment, opts ...grpc.CallOption) (*MsgRemovePostAttachmentResponse, error) // AnswerPoll allows to answer a post poll AnswerPoll(ctx context.Context, in *MsgAnswerPoll, opts ...grpc.CallOption) (*MsgAnswerPollResponse, error) // UpdateParams defines a (governance) operation for updating the module // parameters. // The authority defaults to the x/gov module account. // // Since: Desmos 5.0.0 UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) // MovePost allows users to move their own posts to another subspace // // Since: Desmos 6.0.0 MovePost(ctx context.Context, in *MsgMovePost, opts ...grpc.CallOption) (*MsgMovePostResponse, error) // RequestPostOwnerTransfer allows sender to send a request to transfer a post // ownership to receiver // // Since: Desmos 6.0.0 RequestPostOwnerTransfer(ctx context.Context, in *MsgRequestPostOwnerTransfer, opts ...grpc.CallOption) (*MsgRequestPostOwnerTransferResponse, error) // CancelPostOwnerTransferRequest allows sender to cancel an outgoing post // owner transfer request // // Since: Desmos 6.0.0 CancelPostOwnerTransferRequest(ctx context.Context, in *MsgCancelPostOwnerTransferRequest, opts ...grpc.CallOption) (*MsgCancelPostOwnerTransferRequestResponse, error) // AcceptPostOwnerTransferRequest allows receiver to accept an incoming post // transfer request // // Since: Desmos 6.0.0 AcceptPostOwnerTransferRequest(ctx context.Context, in *MsgAcceptPostOwnerTransferRequest, opts ...grpc.CallOption) (*MsgAcceptPostOwnerTransferRequestResponse, error) // RefusePostOwnerTransferRequest allows receiver to refuse an incoming post // transfer request // // Since: Desmos 6.0.0 RefusePostOwnerTransferRequest(ctx context.Context, in *MsgRefusePostOwnerTransferRequest, opts ...grpc.CallOption) (*MsgRefusePostOwnerTransferRequestResponse, 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 MsgCreatePost ¶
type MsgCreatePost struct { // Id of the subspace inside which the post must be created SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the section inside which the post must be created SectionID uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"` // (optional) External id for this post ExternalID string `protobuf:"bytes,3,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty" yaml:"external_id"` // (optional) Text of the post Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty" yaml:"text"` // (optional) Entities connected to this post Entities *Entities `protobuf:"bytes,5,opt,name=entities,proto3" json:"entities,omitempty" yaml:"entities"` // Tags connected to this post Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty" yaml:"tags"` // Attachments of the post Attachments []*types.Any `protobuf:"bytes,7,rep,name=attachments,proto3" json:"attachments,omitempty" yaml:"attachments"` // Author of the post Author string `protobuf:"bytes,8,opt,name=author,proto3" json:"author,omitempty" yaml:"author"` // (optional) Id of the original post of the conversation ConversationID uint64 `` /* 127-byte string literal not displayed */ // Reply settings of this post ReplySettings ReplySetting `` /* 158-byte string literal not displayed */ // A list this posts references (either as a reply, repost or quote) ReferencedPosts []PostReference `protobuf:"bytes,11,rep,name=referenced_posts,json=referencedPosts,proto3" json:"referenced_posts" yaml:"referenced_posts"` }
MsgCreatePost represents the message to be used to create a post.
func NewMsgCreatePost ¶
func NewMsgCreatePost( subspaceID uint64, sectionID uint32, externalID string, text string, conversationID uint64, replySettings ReplySetting, entities *Entities, tags []string, attachments []AttachmentContent, referencedPosts []PostReference, author string, ) *MsgCreatePost
NewMsgCreatePost returns a new MsgCreatePost instance
func (*MsgCreatePost) Descriptor ¶
func (*MsgCreatePost) Descriptor() ([]byte, []int)
func (*MsgCreatePost) GetAttachments ¶
func (m *MsgCreatePost) GetAttachments() []*types.Any
func (*MsgCreatePost) GetAuthor ¶
func (m *MsgCreatePost) GetAuthor() string
func (*MsgCreatePost) GetConversationID ¶
func (m *MsgCreatePost) GetConversationID() uint64
func (*MsgCreatePost) GetEntities ¶
func (m *MsgCreatePost) GetEntities() *Entities
func (*MsgCreatePost) GetExternalID ¶
func (m *MsgCreatePost) GetExternalID() string
func (*MsgCreatePost) GetReferencedPosts ¶
func (m *MsgCreatePost) GetReferencedPosts() []PostReference
func (*MsgCreatePost) GetReplySettings ¶
func (m *MsgCreatePost) GetReplySettings() ReplySetting
func (*MsgCreatePost) GetSectionID ¶
func (m *MsgCreatePost) GetSectionID() uint32
func (*MsgCreatePost) GetSignBytes ¶
func (msg *MsgCreatePost) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgCreatePost) GetSigners ¶
func (msg *MsgCreatePost) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgCreatePost) GetSubspaceID ¶
func (m *MsgCreatePost) GetSubspaceID() uint64
func (*MsgCreatePost) GetTags ¶
func (m *MsgCreatePost) GetTags() []string
func (*MsgCreatePost) GetText ¶
func (m *MsgCreatePost) GetText() string
func (*MsgCreatePost) Marshal ¶
func (m *MsgCreatePost) Marshal() (dAtA []byte, err error)
func (*MsgCreatePost) MarshalToSizedBuffer ¶
func (m *MsgCreatePost) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePost) ProtoMessage ¶
func (*MsgCreatePost) ProtoMessage()
func (*MsgCreatePost) Reset ¶
func (m *MsgCreatePost) Reset()
func (*MsgCreatePost) Size ¶
func (m *MsgCreatePost) Size() (n int)
func (*MsgCreatePost) String ¶
func (m *MsgCreatePost) String() string
func (*MsgCreatePost) Unmarshal ¶
func (m *MsgCreatePost) Unmarshal(dAtA []byte) error
func (*MsgCreatePost) UnpackInterfaces ¶
func (msg *MsgCreatePost) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements codectypes.UnpackInterfacesMessage
func (*MsgCreatePost) ValidateBasic ¶
func (msg *MsgCreatePost) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgCreatePost) XXX_DiscardUnknown ¶
func (m *MsgCreatePost) XXX_DiscardUnknown()
func (*MsgCreatePost) XXX_Marshal ¶
func (m *MsgCreatePost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePost) XXX_Merge ¶
func (m *MsgCreatePost) XXX_Merge(src proto.Message)
func (*MsgCreatePost) XXX_Size ¶
func (m *MsgCreatePost) XXX_Size() int
func (*MsgCreatePost) XXX_Unmarshal ¶
func (m *MsgCreatePost) XXX_Unmarshal(b []byte) error
type MsgCreatePostResponse ¶
type MsgCreatePostResponse struct { // Id of the newly created post PostID uint64 `protobuf:"varint,1,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"` // Creation date of the post CreationDate time.Time `protobuf:"bytes,2,opt,name=creation_date,json=creationDate,proto3,stdtime" json:"creation_date" yaml:"creation_date"` }
MsgCreatePostResponse defines the Msg/CreatePost response type.
func (*MsgCreatePostResponse) Descriptor ¶
func (*MsgCreatePostResponse) Descriptor() ([]byte, []int)
func (*MsgCreatePostResponse) GetCreationDate ¶
func (m *MsgCreatePostResponse) GetCreationDate() time.Time
func (*MsgCreatePostResponse) GetPostID ¶
func (m *MsgCreatePostResponse) GetPostID() uint64
func (*MsgCreatePostResponse) Marshal ¶
func (m *MsgCreatePostResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreatePostResponse) MarshalTo ¶
func (m *MsgCreatePostResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePostResponse) MarshalToSizedBuffer ¶
func (m *MsgCreatePostResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePostResponse) ProtoMessage ¶
func (*MsgCreatePostResponse) ProtoMessage()
func (*MsgCreatePostResponse) Reset ¶
func (m *MsgCreatePostResponse) Reset()
func (*MsgCreatePostResponse) Size ¶
func (m *MsgCreatePostResponse) Size() (n int)
func (*MsgCreatePostResponse) String ¶
func (m *MsgCreatePostResponse) String() string
func (*MsgCreatePostResponse) Unmarshal ¶
func (m *MsgCreatePostResponse) Unmarshal(dAtA []byte) error
func (*MsgCreatePostResponse) XXX_DiscardUnknown ¶
func (m *MsgCreatePostResponse) XXX_DiscardUnknown()
func (*MsgCreatePostResponse) XXX_Marshal ¶
func (m *MsgCreatePostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePostResponse) XXX_Merge ¶
func (m *MsgCreatePostResponse) XXX_Merge(src proto.Message)
func (*MsgCreatePostResponse) XXX_Size ¶
func (m *MsgCreatePostResponse) XXX_Size() int
func (*MsgCreatePostResponse) XXX_Unmarshal ¶
func (m *MsgCreatePostResponse) XXX_Unmarshal(b []byte) error
type MsgDeletePost ¶
type MsgDeletePost struct { // Id of the subspace containing the post SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the post to be deleted PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"` // User that is deleting the post Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"` }
MsgDeletePost represents the message used when deleting a post.
func NewMsgDeletePost ¶
func NewMsgDeletePost(subspaceID uint64, postID uint64, signer string) *MsgDeletePost
NewMsgDeletePost returns a new MsgDeletePost instance
func (*MsgDeletePost) Descriptor ¶
func (*MsgDeletePost) Descriptor() ([]byte, []int)
func (*MsgDeletePost) GetPostID ¶
func (m *MsgDeletePost) GetPostID() uint64
func (*MsgDeletePost) GetSignBytes ¶
func (msg *MsgDeletePost) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgDeletePost) GetSigner ¶
func (m *MsgDeletePost) GetSigner() string
func (*MsgDeletePost) GetSigners ¶
func (msg *MsgDeletePost) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgDeletePost) GetSubspaceID ¶
func (m *MsgDeletePost) GetSubspaceID() uint64
func (*MsgDeletePost) Marshal ¶
func (m *MsgDeletePost) Marshal() (dAtA []byte, err error)
func (*MsgDeletePost) MarshalToSizedBuffer ¶
func (m *MsgDeletePost) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeletePost) ProtoMessage ¶
func (*MsgDeletePost) ProtoMessage()
func (*MsgDeletePost) Reset ¶
func (m *MsgDeletePost) Reset()
func (*MsgDeletePost) Size ¶
func (m *MsgDeletePost) Size() (n int)
func (*MsgDeletePost) String ¶
func (m *MsgDeletePost) String() string
func (*MsgDeletePost) Unmarshal ¶
func (m *MsgDeletePost) Unmarshal(dAtA []byte) error
func (*MsgDeletePost) ValidateBasic ¶
func (msg *MsgDeletePost) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgDeletePost) XXX_DiscardUnknown ¶
func (m *MsgDeletePost) XXX_DiscardUnknown()
func (*MsgDeletePost) XXX_Marshal ¶
func (m *MsgDeletePost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeletePost) XXX_Merge ¶
func (m *MsgDeletePost) XXX_Merge(src proto.Message)
func (*MsgDeletePost) XXX_Size ¶
func (m *MsgDeletePost) XXX_Size() int
func (*MsgDeletePost) XXX_Unmarshal ¶
func (m *MsgDeletePost) XXX_Unmarshal(b []byte) error
type MsgDeletePostResponse ¶
type MsgDeletePostResponse struct { }
MsgDeletePostResponse represents the Msg/DeletePost response type
func (*MsgDeletePostResponse) Descriptor ¶
func (*MsgDeletePostResponse) Descriptor() ([]byte, []int)
func (*MsgDeletePostResponse) Marshal ¶
func (m *MsgDeletePostResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeletePostResponse) MarshalTo ¶
func (m *MsgDeletePostResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeletePostResponse) MarshalToSizedBuffer ¶
func (m *MsgDeletePostResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeletePostResponse) ProtoMessage ¶
func (*MsgDeletePostResponse) ProtoMessage()
func (*MsgDeletePostResponse) Reset ¶
func (m *MsgDeletePostResponse) Reset()
func (*MsgDeletePostResponse) Size ¶
func (m *MsgDeletePostResponse) Size() (n int)
func (*MsgDeletePostResponse) String ¶
func (m *MsgDeletePostResponse) String() string
func (*MsgDeletePostResponse) Unmarshal ¶
func (m *MsgDeletePostResponse) Unmarshal(dAtA []byte) error
func (*MsgDeletePostResponse) XXX_DiscardUnknown ¶
func (m *MsgDeletePostResponse) XXX_DiscardUnknown()
func (*MsgDeletePostResponse) XXX_Marshal ¶
func (m *MsgDeletePostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeletePostResponse) XXX_Merge ¶
func (m *MsgDeletePostResponse) XXX_Merge(src proto.Message)
func (*MsgDeletePostResponse) XXX_Size ¶
func (m *MsgDeletePostResponse) XXX_Size() int
func (*MsgDeletePostResponse) XXX_Unmarshal ¶
func (m *MsgDeletePostResponse) XXX_Unmarshal(b []byte) error
type MsgEditPost ¶
type MsgEditPost struct { // Id of the subspace inside which the post 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 edit PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"` // New text of the post. If set to [do-not-modify] it will change the current // post's text. Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty" yaml:"text"` // New entities connected to this post. These will always replace the current // post's entities Entities *Entities `protobuf:"bytes,4,opt,name=entities,proto3" json:"entities,omitempty" yaml:"entities"` // New tags connected to this post. These will always replace the current // post's tags Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty" yaml:"tags"` // Editor of the post Editor string `protobuf:"bytes,6,opt,name=editor,proto3" json:"editor,omitempty" yaml:"editor"` }
MsgEditPost represents the message to be used to edit a post.
func NewMsgEditPost ¶
func NewMsgEditPost( subspaceID uint64, postID uint64, text string, entities *Entities, tags []string, editor string, ) *MsgEditPost
NewMsgEditPost returns a new MsgEditPost instance
func (*MsgEditPost) Descriptor ¶
func (*MsgEditPost) Descriptor() ([]byte, []int)
func (*MsgEditPost) GetEditor ¶
func (m *MsgEditPost) GetEditor() string
func (*MsgEditPost) GetEntities ¶
func (m *MsgEditPost) GetEntities() *Entities
func (*MsgEditPost) GetPostID ¶
func (m *MsgEditPost) GetPostID() uint64
func (*MsgEditPost) GetSignBytes ¶
func (msg *MsgEditPost) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgEditPost) GetSigners ¶
func (msg *MsgEditPost) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgEditPost) GetSubspaceID ¶
func (m *MsgEditPost) GetSubspaceID() uint64
func (*MsgEditPost) GetTags ¶
func (m *MsgEditPost) GetTags() []string
func (*MsgEditPost) GetText ¶
func (m *MsgEditPost) GetText() string
func (*MsgEditPost) Marshal ¶
func (m *MsgEditPost) Marshal() (dAtA []byte, err error)
func (*MsgEditPost) MarshalToSizedBuffer ¶
func (m *MsgEditPost) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEditPost) ProtoMessage ¶
func (*MsgEditPost) ProtoMessage()
func (*MsgEditPost) Reset ¶
func (m *MsgEditPost) Reset()
func (*MsgEditPost) Size ¶
func (m *MsgEditPost) Size() (n int)
func (*MsgEditPost) String ¶
func (m *MsgEditPost) String() string
func (*MsgEditPost) Unmarshal ¶
func (m *MsgEditPost) Unmarshal(dAtA []byte) error
func (*MsgEditPost) ValidateBasic ¶
func (msg *MsgEditPost) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgEditPost) XXX_DiscardUnknown ¶
func (m *MsgEditPost) XXX_DiscardUnknown()
func (*MsgEditPost) XXX_Marshal ¶
func (m *MsgEditPost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEditPost) XXX_Merge ¶
func (m *MsgEditPost) XXX_Merge(src proto.Message)
func (*MsgEditPost) XXX_Size ¶
func (m *MsgEditPost) XXX_Size() int
func (*MsgEditPost) XXX_Unmarshal ¶
func (m *MsgEditPost) XXX_Unmarshal(b []byte) error
type MsgEditPostResponse ¶
type MsgEditPostResponse struct { // Edit date of the post EditDate time.Time `protobuf:"bytes,1,opt,name=edit_date,json=editDate,proto3,stdtime" json:"edit_date" yaml:"edit_date"` }
MsgCreatePostResponse defines the Msg/EditPost response type.
func (*MsgEditPostResponse) Descriptor ¶
func (*MsgEditPostResponse) Descriptor() ([]byte, []int)
func (*MsgEditPostResponse) GetEditDate ¶
func (m *MsgEditPostResponse) GetEditDate() time.Time
func (*MsgEditPostResponse) Marshal ¶
func (m *MsgEditPostResponse) Marshal() (dAtA []byte, err error)
func (*MsgEditPostResponse) MarshalTo ¶
func (m *MsgEditPostResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgEditPostResponse) MarshalToSizedBuffer ¶
func (m *MsgEditPostResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEditPostResponse) ProtoMessage ¶
func (*MsgEditPostResponse) ProtoMessage()
func (*MsgEditPostResponse) Reset ¶
func (m *MsgEditPostResponse) Reset()
func (*MsgEditPostResponse) Size ¶
func (m *MsgEditPostResponse) Size() (n int)
func (*MsgEditPostResponse) String ¶
func (m *MsgEditPostResponse) String() string
func (*MsgEditPostResponse) Unmarshal ¶
func (m *MsgEditPostResponse) Unmarshal(dAtA []byte) error
func (*MsgEditPostResponse) XXX_DiscardUnknown ¶
func (m *MsgEditPostResponse) XXX_DiscardUnknown()
func (*MsgEditPostResponse) XXX_Marshal ¶
func (m *MsgEditPostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEditPostResponse) XXX_Merge ¶
func (m *MsgEditPostResponse) XXX_Merge(src proto.Message)
func (*MsgEditPostResponse) XXX_Size ¶
func (m *MsgEditPostResponse) XXX_Size() int
func (*MsgEditPostResponse) XXX_Unmarshal ¶
func (m *MsgEditPostResponse) XXX_Unmarshal(b []byte) error
type MsgMovePost ¶
type MsgMovePost struct { // Id of the subspace where the post is currently located SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the post to be moved PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"` // Id of the target subspace to which the post will be moved TargetSubspaceID uint64 `` /* 138-byte string literal not displayed */ // Id of the target section to which the post will be moved TargetSectionID uint32 `` /* 134-byte string literal not displayed */ // Address of the post owner Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` }
MsgMovePost moves a post to another subspace
Since: Desmos 6.0.0
func NewMsgMovePost ¶
func NewMsgMovePost( subspaceID uint64, postID uint64, targetSubspaceID uint64, targetSectionID uint32, owner string, ) *MsgMovePost
NewMsgMovePost returns a new MsgMovePost instance
func (*MsgMovePost) Descriptor ¶
func (*MsgMovePost) Descriptor() ([]byte, []int)
func (*MsgMovePost) GetOwner ¶
func (m *MsgMovePost) GetOwner() string
func (*MsgMovePost) GetPostID ¶
func (m *MsgMovePost) GetPostID() uint64
func (*MsgMovePost) GetSignBytes ¶
func (msg *MsgMovePost) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgMovePost) GetSigners ¶
func (msg *MsgMovePost) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgMovePost) GetSubspaceID ¶
func (m *MsgMovePost) GetSubspaceID() uint64
func (*MsgMovePost) GetTargetSectionID ¶
func (m *MsgMovePost) GetTargetSectionID() uint32
func (*MsgMovePost) GetTargetSubspaceID ¶
func (m *MsgMovePost) GetTargetSubspaceID() uint64
func (*MsgMovePost) Marshal ¶
func (m *MsgMovePost) Marshal() (dAtA []byte, err error)
func (*MsgMovePost) MarshalToSizedBuffer ¶
func (m *MsgMovePost) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMovePost) ProtoMessage ¶
func (*MsgMovePost) ProtoMessage()
func (*MsgMovePost) Reset ¶
func (m *MsgMovePost) Reset()
func (*MsgMovePost) Size ¶
func (m *MsgMovePost) Size() (n int)
func (*MsgMovePost) String ¶
func (m *MsgMovePost) String() string
func (*MsgMovePost) Unmarshal ¶
func (m *MsgMovePost) Unmarshal(dAtA []byte) error
func (*MsgMovePost) ValidateBasic ¶
func (msg *MsgMovePost) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgMovePost) XXX_DiscardUnknown ¶
func (m *MsgMovePost) XXX_DiscardUnknown()
func (*MsgMovePost) XXX_Marshal ¶
func (m *MsgMovePost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMovePost) XXX_Merge ¶
func (m *MsgMovePost) XXX_Merge(src proto.Message)
func (*MsgMovePost) XXX_Size ¶
func (m *MsgMovePost) XXX_Size() int
func (*MsgMovePost) XXX_Unmarshal ¶
func (m *MsgMovePost) XXX_Unmarshal(b []byte) error
type MsgMovePostResponse ¶
type MsgMovePostResponse struct { // New id of the post in the target subspace PostID uint64 `protobuf:"varint,1,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"` }
MsgMovePostResponse defines the Msg/MsgMovePost response type
Since: Desmos 6.0.0
func (*MsgMovePostResponse) Descriptor ¶
func (*MsgMovePostResponse) Descriptor() ([]byte, []int)
func (*MsgMovePostResponse) GetPostID ¶
func (m *MsgMovePostResponse) GetPostID() uint64
func (*MsgMovePostResponse) Marshal ¶
func (m *MsgMovePostResponse) Marshal() (dAtA []byte, err error)
func (*MsgMovePostResponse) MarshalTo ¶
func (m *MsgMovePostResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgMovePostResponse) MarshalToSizedBuffer ¶
func (m *MsgMovePostResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMovePostResponse) ProtoMessage ¶
func (*MsgMovePostResponse) ProtoMessage()
func (*MsgMovePostResponse) Reset ¶
func (m *MsgMovePostResponse) Reset()
func (*MsgMovePostResponse) Size ¶
func (m *MsgMovePostResponse) Size() (n int)
func (*MsgMovePostResponse) String ¶
func (m *MsgMovePostResponse) String() string
func (*MsgMovePostResponse) Unmarshal ¶
func (m *MsgMovePostResponse) Unmarshal(dAtA []byte) error
func (*MsgMovePostResponse) XXX_DiscardUnknown ¶
func (m *MsgMovePostResponse) XXX_DiscardUnknown()
func (*MsgMovePostResponse) XXX_Marshal ¶
func (m *MsgMovePostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMovePostResponse) XXX_Merge ¶
func (m *MsgMovePostResponse) XXX_Merge(src proto.Message)
func (*MsgMovePostResponse) XXX_Size ¶
func (m *MsgMovePostResponse) XXX_Size() int
func (*MsgMovePostResponse) XXX_Unmarshal ¶
func (m *MsgMovePostResponse) XXX_Unmarshal(b []byte) error
type MsgRefusePostOwnerTransferRequest ¶
type MsgRefusePostOwnerTransferRequest struct { // Id of the subspace holding the post for which the request will be refused SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the post for which the request will be refused PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"` // Address of the request receiver Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty" yaml:"receiver"` }
MsgRefusePostOwnerTransferRequest represents a message used to refuse a incoming post transfer request
Since: Desmos 6.0.0
func NewMsgRefusePostOwnerTransferRequest ¶
func NewMsgRefusePostOwnerTransferRequest(subspaceID uint64, postID uint64, receiver string) *MsgRefusePostOwnerTransferRequest
MsgRefusePostOwnerTransferRequest returns a new MsgRefusePostOwnerTransferRequest instance
func (*MsgRefusePostOwnerTransferRequest) Descriptor ¶
func (*MsgRefusePostOwnerTransferRequest) Descriptor() ([]byte, []int)
func (*MsgRefusePostOwnerTransferRequest) GetPostID ¶
func (m *MsgRefusePostOwnerTransferRequest) GetPostID() uint64
func (*MsgRefusePostOwnerTransferRequest) GetReceiver ¶
func (m *MsgRefusePostOwnerTransferRequest) GetReceiver() string
func (*MsgRefusePostOwnerTransferRequest) GetSignBytes ¶
func (msg *MsgRefusePostOwnerTransferRequest) GetSignBytes() []byte
GetSigners implements legacytx.LegacyMsg
func (*MsgRefusePostOwnerTransferRequest) GetSigners ¶
func (msg *MsgRefusePostOwnerTransferRequest) GetSigners() []sdk.AccAddress
GetSignBytes implements sdk.Msg
func (*MsgRefusePostOwnerTransferRequest) GetSubspaceID ¶
func (m *MsgRefusePostOwnerTransferRequest) GetSubspaceID() uint64
func (*MsgRefusePostOwnerTransferRequest) Marshal ¶
func (m *MsgRefusePostOwnerTransferRequest) Marshal() (dAtA []byte, err error)
func (*MsgRefusePostOwnerTransferRequest) MarshalTo ¶
func (m *MsgRefusePostOwnerTransferRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgRefusePostOwnerTransferRequest) MarshalToSizedBuffer ¶
func (m *MsgRefusePostOwnerTransferRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRefusePostOwnerTransferRequest) ProtoMessage ¶
func (*MsgRefusePostOwnerTransferRequest) ProtoMessage()
func (*MsgRefusePostOwnerTransferRequest) Reset ¶
func (m *MsgRefusePostOwnerTransferRequest) Reset()
func (*MsgRefusePostOwnerTransferRequest) Route ¶
func (msg *MsgRefusePostOwnerTransferRequest) Route() string
Route implements legacytx.LegacyMsg
func (*MsgRefusePostOwnerTransferRequest) Size ¶
func (m *MsgRefusePostOwnerTransferRequest) Size() (n int)
func (*MsgRefusePostOwnerTransferRequest) String ¶
func (m *MsgRefusePostOwnerTransferRequest) String() string
func (*MsgRefusePostOwnerTransferRequest) Type ¶
func (msg *MsgRefusePostOwnerTransferRequest) Type() string
Type implements legacytx.LegacyMsg
func (*MsgRefusePostOwnerTransferRequest) Unmarshal ¶
func (m *MsgRefusePostOwnerTransferRequest) Unmarshal(dAtA []byte) error
func (*MsgRefusePostOwnerTransferRequest) ValidateBasic ¶
func (msg *MsgRefusePostOwnerTransferRequest) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgRefusePostOwnerTransferRequest) XXX_DiscardUnknown ¶
func (m *MsgRefusePostOwnerTransferRequest) XXX_DiscardUnknown()
func (*MsgRefusePostOwnerTransferRequest) XXX_Marshal ¶
func (m *MsgRefusePostOwnerTransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRefusePostOwnerTransferRequest) XXX_Merge ¶
func (m *MsgRefusePostOwnerTransferRequest) XXX_Merge(src proto.Message)
func (*MsgRefusePostOwnerTransferRequest) XXX_Size ¶
func (m *MsgRefusePostOwnerTransferRequest) XXX_Size() int
func (*MsgRefusePostOwnerTransferRequest) XXX_Unmarshal ¶
func (m *MsgRefusePostOwnerTransferRequest) XXX_Unmarshal(b []byte) error
type MsgRefusePostOwnerTransferRequestResponse ¶
type MsgRefusePostOwnerTransferRequestResponse struct { }
MsgRefusePostOwnerTransferRequest defines the Msg/RefusePostOwnerTransferRequest response type
Since: Desmos 6.0.0
func (*MsgRefusePostOwnerTransferRequestResponse) Descriptor ¶
func (*MsgRefusePostOwnerTransferRequestResponse) Descriptor() ([]byte, []int)
func (*MsgRefusePostOwnerTransferRequestResponse) Marshal ¶
func (m *MsgRefusePostOwnerTransferRequestResponse) Marshal() (dAtA []byte, err error)
func (*MsgRefusePostOwnerTransferRequestResponse) MarshalTo ¶
func (m *MsgRefusePostOwnerTransferRequestResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRefusePostOwnerTransferRequestResponse) MarshalToSizedBuffer ¶
func (m *MsgRefusePostOwnerTransferRequestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRefusePostOwnerTransferRequestResponse) ProtoMessage ¶
func (*MsgRefusePostOwnerTransferRequestResponse) ProtoMessage()
func (*MsgRefusePostOwnerTransferRequestResponse) Reset ¶
func (m *MsgRefusePostOwnerTransferRequestResponse) Reset()
func (*MsgRefusePostOwnerTransferRequestResponse) Size ¶
func (m *MsgRefusePostOwnerTransferRequestResponse) Size() (n int)
func (*MsgRefusePostOwnerTransferRequestResponse) String ¶
func (m *MsgRefusePostOwnerTransferRequestResponse) String() string
func (*MsgRefusePostOwnerTransferRequestResponse) Unmarshal ¶
func (m *MsgRefusePostOwnerTransferRequestResponse) Unmarshal(dAtA []byte) error
func (*MsgRefusePostOwnerTransferRequestResponse) XXX_DiscardUnknown ¶
func (m *MsgRefusePostOwnerTransferRequestResponse) XXX_DiscardUnknown()
func (*MsgRefusePostOwnerTransferRequestResponse) XXX_Marshal ¶
func (m *MsgRefusePostOwnerTransferRequestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRefusePostOwnerTransferRequestResponse) XXX_Merge ¶
func (m *MsgRefusePostOwnerTransferRequestResponse) XXX_Merge(src proto.Message)
func (*MsgRefusePostOwnerTransferRequestResponse) XXX_Size ¶
func (m *MsgRefusePostOwnerTransferRequestResponse) XXX_Size() int
func (*MsgRefusePostOwnerTransferRequestResponse) XXX_Unmarshal ¶
func (m *MsgRefusePostOwnerTransferRequestResponse) XXX_Unmarshal(b []byte) error
type MsgRemovePostAttachment ¶
type MsgRemovePostAttachment struct { // Id of the subspace containing the post 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 attachment PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"` // Id of the attachment to be removed AttachmentID uint32 `protobuf:"varint,3,opt,name=attachment_id,json=attachmentId,proto3" json:"attachment_id,omitempty" yaml:"attachment_id"` // User that is removing the attachment Editor string `protobuf:"bytes,4,opt,name=editor,proto3" json:"editor,omitempty" yaml:"editor"` }
MsgRemovePostAttachment represents the message to be used when removing an attachment from a post
func NewMsgRemovePostAttachment ¶
func NewMsgRemovePostAttachment(subspaceID uint64, postID uint64, attachmentID uint32, editor string) *MsgRemovePostAttachment
NewMsgRemovePostAttachment returns a new MsgRemovePostAttachment instance
func (*MsgRemovePostAttachment) Descriptor ¶
func (*MsgRemovePostAttachment) Descriptor() ([]byte, []int)
func (*MsgRemovePostAttachment) GetAttachmentID ¶
func (m *MsgRemovePostAttachment) GetAttachmentID() uint32
func (*MsgRemovePostAttachment) GetEditor ¶
func (m *MsgRemovePostAttachment) GetEditor() string
func (*MsgRemovePostAttachment) GetPostID ¶
func (m *MsgRemovePostAttachment) GetPostID() uint64
func (*MsgRemovePostAttachment) GetSignBytes ¶
func (msg *MsgRemovePostAttachment) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgRemovePostAttachment) GetSigners ¶
func (msg *MsgRemovePostAttachment) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgRemovePostAttachment) GetSubspaceID ¶
func (m *MsgRemovePostAttachment) GetSubspaceID() uint64
func (*MsgRemovePostAttachment) Marshal ¶
func (m *MsgRemovePostAttachment) Marshal() (dAtA []byte, err error)
func (*MsgRemovePostAttachment) MarshalTo ¶
func (m *MsgRemovePostAttachment) MarshalTo(dAtA []byte) (int, error)
func (*MsgRemovePostAttachment) MarshalToSizedBuffer ¶
func (m *MsgRemovePostAttachment) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRemovePostAttachment) ProtoMessage ¶
func (*MsgRemovePostAttachment) ProtoMessage()
func (*MsgRemovePostAttachment) Reset ¶
func (m *MsgRemovePostAttachment) Reset()
func (*MsgRemovePostAttachment) Route ¶
func (msg *MsgRemovePostAttachment) Route() string
Route implements sdk.Msg
func (*MsgRemovePostAttachment) Size ¶
func (m *MsgRemovePostAttachment) Size() (n int)
func (*MsgRemovePostAttachment) String ¶
func (m *MsgRemovePostAttachment) String() string
func (*MsgRemovePostAttachment) Type ¶
func (msg *MsgRemovePostAttachment) Type() string
Type implements sdk.Msg
func (*MsgRemovePostAttachment) Unmarshal ¶
func (m *MsgRemovePostAttachment) Unmarshal(dAtA []byte) error
func (*MsgRemovePostAttachment) ValidateBasic ¶
func (msg *MsgRemovePostAttachment) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgRemovePostAttachment) XXX_DiscardUnknown ¶
func (m *MsgRemovePostAttachment) XXX_DiscardUnknown()
func (*MsgRemovePostAttachment) XXX_Marshal ¶
func (m *MsgRemovePostAttachment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRemovePostAttachment) XXX_Merge ¶
func (m *MsgRemovePostAttachment) XXX_Merge(src proto.Message)
func (*MsgRemovePostAttachment) XXX_Size ¶
func (m *MsgRemovePostAttachment) XXX_Size() int
func (*MsgRemovePostAttachment) XXX_Unmarshal ¶
func (m *MsgRemovePostAttachment) XXX_Unmarshal(b []byte) error
type MsgRemovePostAttachmentResponse ¶
type MsgRemovePostAttachmentResponse struct { // Edit date of the post EditDate time.Time `protobuf:"bytes,1,opt,name=edit_date,json=editDate,proto3,stdtime" json:"edit_date" yaml:"edit_date"` }
MsgRemovePostAttachmentResponse defines the Msg/RemovePostAttachment response type.
func (*MsgRemovePostAttachmentResponse) Descriptor ¶
func (*MsgRemovePostAttachmentResponse) Descriptor() ([]byte, []int)
func (*MsgRemovePostAttachmentResponse) GetEditDate ¶
func (m *MsgRemovePostAttachmentResponse) GetEditDate() time.Time
func (*MsgRemovePostAttachmentResponse) Marshal ¶
func (m *MsgRemovePostAttachmentResponse) Marshal() (dAtA []byte, err error)
func (*MsgRemovePostAttachmentResponse) MarshalTo ¶
func (m *MsgRemovePostAttachmentResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRemovePostAttachmentResponse) MarshalToSizedBuffer ¶
func (m *MsgRemovePostAttachmentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRemovePostAttachmentResponse) ProtoMessage ¶
func (*MsgRemovePostAttachmentResponse) ProtoMessage()
func (*MsgRemovePostAttachmentResponse) Reset ¶
func (m *MsgRemovePostAttachmentResponse) Reset()
func (*MsgRemovePostAttachmentResponse) Size ¶
func (m *MsgRemovePostAttachmentResponse) Size() (n int)
func (*MsgRemovePostAttachmentResponse) String ¶
func (m *MsgRemovePostAttachmentResponse) String() string
func (*MsgRemovePostAttachmentResponse) Unmarshal ¶
func (m *MsgRemovePostAttachmentResponse) Unmarshal(dAtA []byte) error
func (*MsgRemovePostAttachmentResponse) XXX_DiscardUnknown ¶
func (m *MsgRemovePostAttachmentResponse) XXX_DiscardUnknown()
func (*MsgRemovePostAttachmentResponse) XXX_Marshal ¶
func (m *MsgRemovePostAttachmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRemovePostAttachmentResponse) XXX_Merge ¶
func (m *MsgRemovePostAttachmentResponse) XXX_Merge(src proto.Message)
func (*MsgRemovePostAttachmentResponse) XXX_Size ¶
func (m *MsgRemovePostAttachmentResponse) XXX_Size() int
func (*MsgRemovePostAttachmentResponse) XXX_Unmarshal ¶
func (m *MsgRemovePostAttachmentResponse) XXX_Unmarshal(b []byte) error
type MsgRequestPostOwnerTransfer ¶
type MsgRequestPostOwnerTransfer struct { // Id of the subspace that holds the post which ownership should be transfered SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the post which will be transferred PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"` // Address of the post ownership receiver Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty" yaml:"receiver"` // Address of the sender who is creating a transfer request Sender string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` }
MsgRequestPostOwnerTransfer represent a message used to transfer a post ownership to receiver
Since: Desmos 6.0.0
func NewMsgRequestPostOwnerTransfer ¶
func NewMsgRequestPostOwnerTransfer(subspaceID uint64, postID uint64, receiver string, sender string) *MsgRequestPostOwnerTransfer
MsgRequestPostOwnerTransfer returns a new MsgRequestPostOwnerTransfer instance
func (*MsgRequestPostOwnerTransfer) Descriptor ¶
func (*MsgRequestPostOwnerTransfer) Descriptor() ([]byte, []int)
func (*MsgRequestPostOwnerTransfer) GetPostID ¶
func (m *MsgRequestPostOwnerTransfer) GetPostID() uint64
func (*MsgRequestPostOwnerTransfer) GetReceiver ¶
func (m *MsgRequestPostOwnerTransfer) GetReceiver() string
func (*MsgRequestPostOwnerTransfer) GetSender ¶
func (m *MsgRequestPostOwnerTransfer) GetSender() string
func (*MsgRequestPostOwnerTransfer) GetSignBytes ¶
func (msg *MsgRequestPostOwnerTransfer) GetSignBytes() []byte
GetSigners implements legacytx.LegacyMsg
func (*MsgRequestPostOwnerTransfer) GetSigners ¶
func (msg *MsgRequestPostOwnerTransfer) GetSigners() []sdk.AccAddress
GetSignBytes implements sdk.Msg
func (*MsgRequestPostOwnerTransfer) GetSubspaceID ¶
func (m *MsgRequestPostOwnerTransfer) GetSubspaceID() uint64
func (*MsgRequestPostOwnerTransfer) Marshal ¶
func (m *MsgRequestPostOwnerTransfer) Marshal() (dAtA []byte, err error)
func (*MsgRequestPostOwnerTransfer) MarshalTo ¶
func (m *MsgRequestPostOwnerTransfer) MarshalTo(dAtA []byte) (int, error)
func (*MsgRequestPostOwnerTransfer) MarshalToSizedBuffer ¶
func (m *MsgRequestPostOwnerTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRequestPostOwnerTransfer) ProtoMessage ¶
func (*MsgRequestPostOwnerTransfer) ProtoMessage()
func (*MsgRequestPostOwnerTransfer) Reset ¶
func (m *MsgRequestPostOwnerTransfer) Reset()
func (*MsgRequestPostOwnerTransfer) Route ¶
func (msg *MsgRequestPostOwnerTransfer) Route() string
Route implements legacytx.LegacyMsg
func (*MsgRequestPostOwnerTransfer) Size ¶
func (m *MsgRequestPostOwnerTransfer) Size() (n int)
func (*MsgRequestPostOwnerTransfer) String ¶
func (m *MsgRequestPostOwnerTransfer) String() string
func (*MsgRequestPostOwnerTransfer) Type ¶
func (msg *MsgRequestPostOwnerTransfer) Type() string
Type implements legacytx.LegacyMsg
func (*MsgRequestPostOwnerTransfer) Unmarshal ¶
func (m *MsgRequestPostOwnerTransfer) Unmarshal(dAtA []byte) error
func (*MsgRequestPostOwnerTransfer) ValidateBasic ¶
func (msg *MsgRequestPostOwnerTransfer) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgRequestPostOwnerTransfer) XXX_DiscardUnknown ¶
func (m *MsgRequestPostOwnerTransfer) XXX_DiscardUnknown()
func (*MsgRequestPostOwnerTransfer) XXX_Marshal ¶
func (m *MsgRequestPostOwnerTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRequestPostOwnerTransfer) XXX_Merge ¶
func (m *MsgRequestPostOwnerTransfer) XXX_Merge(src proto.Message)
func (*MsgRequestPostOwnerTransfer) XXX_Size ¶
func (m *MsgRequestPostOwnerTransfer) XXX_Size() int
func (*MsgRequestPostOwnerTransfer) XXX_Unmarshal ¶
func (m *MsgRequestPostOwnerTransfer) XXX_Unmarshal(b []byte) error
type MsgRequestPostOwnerTransferResponse ¶
type MsgRequestPostOwnerTransferResponse struct { }
MsgRequestPostOwnerTransferResponse defines the Msg/RequestPostOwnerTransfer response type
Since: Desmos 6.0.0
func (*MsgRequestPostOwnerTransferResponse) Descriptor ¶
func (*MsgRequestPostOwnerTransferResponse) Descriptor() ([]byte, []int)
func (*MsgRequestPostOwnerTransferResponse) Marshal ¶
func (m *MsgRequestPostOwnerTransferResponse) Marshal() (dAtA []byte, err error)
func (*MsgRequestPostOwnerTransferResponse) MarshalTo ¶
func (m *MsgRequestPostOwnerTransferResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRequestPostOwnerTransferResponse) MarshalToSizedBuffer ¶
func (m *MsgRequestPostOwnerTransferResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRequestPostOwnerTransferResponse) ProtoMessage ¶
func (*MsgRequestPostOwnerTransferResponse) ProtoMessage()
func (*MsgRequestPostOwnerTransferResponse) Reset ¶
func (m *MsgRequestPostOwnerTransferResponse) Reset()
func (*MsgRequestPostOwnerTransferResponse) Size ¶
func (m *MsgRequestPostOwnerTransferResponse) Size() (n int)
func (*MsgRequestPostOwnerTransferResponse) String ¶
func (m *MsgRequestPostOwnerTransferResponse) String() string
func (*MsgRequestPostOwnerTransferResponse) Unmarshal ¶
func (m *MsgRequestPostOwnerTransferResponse) Unmarshal(dAtA []byte) error
func (*MsgRequestPostOwnerTransferResponse) XXX_DiscardUnknown ¶
func (m *MsgRequestPostOwnerTransferResponse) XXX_DiscardUnknown()
func (*MsgRequestPostOwnerTransferResponse) XXX_Marshal ¶
func (m *MsgRequestPostOwnerTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRequestPostOwnerTransferResponse) XXX_Merge ¶
func (m *MsgRequestPostOwnerTransferResponse) XXX_Merge(src proto.Message)
func (*MsgRequestPostOwnerTransferResponse) XXX_Size ¶
func (m *MsgRequestPostOwnerTransferResponse) XXX_Size() int
func (*MsgRequestPostOwnerTransferResponse) XXX_Unmarshal ¶
func (m *MsgRequestPostOwnerTransferResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // CreatePost allows to create a new post CreatePost(context.Context, *MsgCreatePost) (*MsgCreatePostResponse, error) // EditPost allows to edit an existing post EditPost(context.Context, *MsgEditPost) (*MsgEditPostResponse, error) // DeletePost allows to delete an existing post DeletePost(context.Context, *MsgDeletePost) (*MsgDeletePostResponse, error) // AddPostAttachment allows to add a new attachment to a post AddPostAttachment(context.Context, *MsgAddPostAttachment) (*MsgAddPostAttachmentResponse, error) // RemovePostAttachment allows to remove an attachment from a post RemovePostAttachment(context.Context, *MsgRemovePostAttachment) (*MsgRemovePostAttachmentResponse, error) // AnswerPoll allows to answer a post poll AnswerPoll(context.Context, *MsgAnswerPoll) (*MsgAnswerPollResponse, error) // UpdateParams defines a (governance) operation for updating the module // parameters. // The authority defaults to the x/gov module account. // // Since: Desmos 5.0.0 UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // MovePost allows users to move their own posts to another subspace // // Since: Desmos 6.0.0 MovePost(context.Context, *MsgMovePost) (*MsgMovePostResponse, error) // RequestPostOwnerTransfer allows sender to send a request to transfer a post // ownership to receiver // // Since: Desmos 6.0.0 RequestPostOwnerTransfer(context.Context, *MsgRequestPostOwnerTransfer) (*MsgRequestPostOwnerTransferResponse, error) // CancelPostOwnerTransferRequest allows sender to cancel an outgoing post // owner transfer request // // Since: Desmos 6.0.0 CancelPostOwnerTransferRequest(context.Context, *MsgCancelPostOwnerTransferRequest) (*MsgCancelPostOwnerTransferRequestResponse, error) // AcceptPostOwnerTransferRequest allows receiver to accept an incoming post // transfer request // // Since: Desmos 6.0.0 AcceptPostOwnerTransferRequest(context.Context, *MsgAcceptPostOwnerTransferRequest) (*MsgAcceptPostOwnerTransferRequestResponse, error) // RefusePostOwnerTransferRequest allows receiver to refuse an incoming post // transfer request // // Since: Desmos 6.0.0 RefusePostOwnerTransferRequest(context.Context, *MsgRefusePostOwnerTransferRequest) (*MsgRefusePostOwnerTransferRequestResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless // overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty" yaml:"authority"` // params defines the parameters to update. // // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams is the Msg/UpdateParams request type.
Since: Desmos 5.0.0
func NewMsgUpdateParams ¶
func NewMsgUpdateParams(params Params, authority string) *MsgUpdateParams
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) GetSignBytes ¶
func (msg *MsgUpdateParams) GetSignBytes() []byte
GetSigners implements legacytx.LegacyMsg
func (*MsgUpdateParams) GetSigners ¶
func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
GetSignBytes implements sdk.Msg
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Route ¶
func (msg *MsgUpdateParams) Route() string
Route implements legacytx.LegacyMsg
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Type ¶
func (msg *MsgUpdateParams) Type() string
Type implements legacytx.LegacyMsg
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶
func (msg *MsgUpdateParams) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Since: Desmos 5.0.0
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type MultiPostsHooks ¶
type MultiPostsHooks []PostsHooks
MultiPostsHooks combines multiple posts hooks, all hook functions are run in array sequence
func NewMultiPostsHooks ¶
func NewMultiPostsHooks(hooks ...PostsHooks) MultiPostsHooks
func (MultiPostsHooks) AfterAttachmentDeleted ¶
func (h MultiPostsHooks) AfterAttachmentDeleted(ctx sdk.Context, subspaceID uint64, postID uint64, attachmentID uint32)
AfterAttachmentDeleted implements PostsHooks
func (MultiPostsHooks) AfterAttachmentSaved ¶
func (h MultiPostsHooks) AfterAttachmentSaved(ctx sdk.Context, subspaceID uint64, postID uint64, attachmentID uint32)
AfterAttachmentSaved implements PostsHooks
func (MultiPostsHooks) AfterPollAnswerDeleted ¶
func (h MultiPostsHooks) AfterPollAnswerDeleted(ctx sdk.Context, subspaceID uint64, postID uint64, pollID uint32, user string)
AfterPollAnswerDeleted implements PostsHooks
func (MultiPostsHooks) AfterPollAnswerSaved ¶
func (h MultiPostsHooks) AfterPollAnswerSaved(ctx sdk.Context, subspaceID uint64, postID uint64, pollID uint32, user string)
AfterPollAnswerSaved implements PostsHooks
func (MultiPostsHooks) AfterPollVotingPeriodEnded ¶
func (h MultiPostsHooks) AfterPollVotingPeriodEnded(ctx sdk.Context, subspaceID uint64, postID uint64, pollID uint32)
AfterPollVotingPeriodEnded implements PostsHooks
func (MultiPostsHooks) AfterPostDeleted ¶
func (h MultiPostsHooks) AfterPostDeleted(ctx sdk.Context, subspaceID uint64, postID uint64)
AfterPostDeleted implements PostsHooks
func (MultiPostsHooks) AfterPostSaved ¶
func (h MultiPostsHooks) AfterPostSaved(ctx sdk.Context, subspaceID uint64, postID uint64)
AfterPostSaved implements PostsHooks
type OwnerTransfer ¶
type OwnerTransfer struct { // Address of the user who will be the new owner of the post NewOwner string UpdateTime time.Time }
OwnerTransfer contains data related to a post that can be updated after the owner of it has been transferred.
func NewOwnerTransfer ¶
func NewOwnerTransfer(newOwner string, updateTime time.Time) OwnerTransfer
NewOwnerTransfer returns a new OwnerTransfer instance
func (OwnerTransfer) Update ¶
func (update OwnerTransfer) Update(post Post) Post
Update updates the fields of a owner transferred post without validating it. Before storing the updated post, a validation with keeper.ValidatePost should be performed.
type Params ¶
type Params struct { // Maximum length of the post text MaxTextLength uint32 `` /* 126-byte string literal not displayed */ }
Params contains the parameters for the posts module
func (*Params) Descriptor ¶
func (*Params) GetMaxTextLength ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (params *Params) ParamSetPairs() paramstypes.ParamSetPairs
ParamSetPairs implements the ParamSet interface and returns the key/value pairs of posts module's parameters.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type ParamsSubspace ¶
type ParamsSubspace interface { SetParamSet(ctx sdk.Context, ps paramstypes.ParamSet) GetParamSet(ctx sdk.Context, ps paramstypes.ParamSet) }
ParamsSubspace defines an interface that implements the legacy x/params ParamsSubspace type.
NOTE: This is used solely for migration of x/params managed parameters.
type Poll ¶
type Poll struct { // Question of the poll Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty" yaml:"question"` // Answers the users can choose from ProvidedAnswers []Poll_ProvidedAnswer `protobuf:"bytes,2,rep,name=provided_answers,json=providedAnswers,proto3" json:"provided_answers" yaml:"provided_answers"` // Date at which the poll will close EndDate time.Time `protobuf:"bytes,3,opt,name=end_date,json=endDate,proto3,stdtime" json:"end_date" yaml:"end_date"` // Whether the poll allows multiple choices from the same user or not AllowsMultipleAnswers bool `` /* 158-byte string literal not displayed */ // Whether the poll allows to edit an answer or not AllowsAnswerEdits bool `` /* 143-byte string literal not displayed */ // Final poll results FinalTallyResults *PollTallyResults `` /* 141-byte string literal not displayed */ }
Poll represents a poll attachment
func NewPoll ¶
func NewPoll( question string, providedAnswers []Poll_ProvidedAnswer, endDate time.Time, allowsMultipleAnswers bool, allowsAnswerEdits bool, tallyResults *PollTallyResults, ) *Poll
NewPoll returns a new Poll instance
func (*Poll) Descriptor ¶
func (*Poll) GetAllowsAnswerEdits ¶
func (*Poll) GetAllowsMultipleAnswers ¶
func (*Poll) GetEndDate ¶
func (*Poll) GetFinalTallyResults ¶
func (m *Poll) GetFinalTallyResults() *PollTallyResults
func (*Poll) GetProvidedAnswers ¶
func (m *Poll) GetProvidedAnswers() []Poll_ProvidedAnswer
func (*Poll) GetQuestion ¶
func (*Poll) ProtoMessage ¶
func (*Poll) ProtoMessage()
func (*Poll) UnpackInterfaces ¶
func (a *Poll) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements codectypes.UnpackInterfacesMessage
func (*Poll) XXX_DiscardUnknown ¶
func (m *Poll) XXX_DiscardUnknown()
func (*Poll) XXX_Unmarshal ¶
type PollTallyResults ¶
type PollTallyResults struct {
Results []PollTallyResults_AnswerResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results" yaml:"results"`
}
PollTallyResults contains the tally results for a poll
func NewPollTallyResults ¶
func NewPollTallyResults(results []PollTallyResults_AnswerResult) *PollTallyResults
NewPollTallyResults returns a new PollTallyResults instance
func (*PollTallyResults) Descriptor ¶
func (*PollTallyResults) Descriptor() ([]byte, []int)
func (*PollTallyResults) Equal ¶
func (this *PollTallyResults) Equal(that interface{}) bool
func (*PollTallyResults) GetResults ¶
func (m *PollTallyResults) GetResults() []PollTallyResults_AnswerResult
func (*PollTallyResults) Marshal ¶
func (m *PollTallyResults) Marshal() (dAtA []byte, err error)
func (*PollTallyResults) MarshalToSizedBuffer ¶
func (m *PollTallyResults) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PollTallyResults) ProtoMessage ¶
func (*PollTallyResults) ProtoMessage()
func (*PollTallyResults) Reset ¶
func (m *PollTallyResults) Reset()
func (*PollTallyResults) Size ¶
func (m *PollTallyResults) Size() (n int)
func (*PollTallyResults) String ¶
func (m *PollTallyResults) String() string
func (*PollTallyResults) Unmarshal ¶
func (m *PollTallyResults) Unmarshal(dAtA []byte) error
func (*PollTallyResults) Validate ¶
func (r *PollTallyResults) Validate() error
Validate implements fmt.Validator
func (*PollTallyResults) XXX_DiscardUnknown ¶
func (m *PollTallyResults) XXX_DiscardUnknown()
func (*PollTallyResults) XXX_Marshal ¶
func (m *PollTallyResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PollTallyResults) XXX_Merge ¶
func (m *PollTallyResults) XXX_Merge(src proto.Message)
func (*PollTallyResults) XXX_Size ¶
func (m *PollTallyResults) XXX_Size() int
func (*PollTallyResults) XXX_Unmarshal ¶
func (m *PollTallyResults) XXX_Unmarshal(b []byte) error
type PollTallyResults_AnswerResult ¶
type PollTallyResults_AnswerResult struct { // Index of the answer inside the poll's ProvidedAnswers slice AnswerIndex uint32 `protobuf:"varint,1,opt,name=answer_index,json=answerIndex,proto3" json:"answer_index,omitempty" yaml:"answer_index"` // Number of votes the answer has received Votes uint64 `protobuf:"varint,2,opt,name=votes,proto3" json:"votes,omitempty" yaml:"votes"` }
AnswerResult contains the result of a single poll provided answer
func NewAnswerResult ¶
func NewAnswerResult(answerIndex uint32, votes uint64) PollTallyResults_AnswerResult
NewAnswerResult returns a new PollTallyResults_AnswerResult instance
func (*PollTallyResults_AnswerResult) Descriptor ¶
func (*PollTallyResults_AnswerResult) Descriptor() ([]byte, []int)
func (*PollTallyResults_AnswerResult) Equal ¶
func (this *PollTallyResults_AnswerResult) Equal(that interface{}) bool
func (*PollTallyResults_AnswerResult) GetAnswerIndex ¶
func (m *PollTallyResults_AnswerResult) GetAnswerIndex() uint32
func (*PollTallyResults_AnswerResult) GetVotes ¶
func (m *PollTallyResults_AnswerResult) GetVotes() uint64
func (*PollTallyResults_AnswerResult) Marshal ¶
func (m *PollTallyResults_AnswerResult) Marshal() (dAtA []byte, err error)
func (*PollTallyResults_AnswerResult) MarshalTo ¶
func (m *PollTallyResults_AnswerResult) MarshalTo(dAtA []byte) (int, error)
func (*PollTallyResults_AnswerResult) MarshalToSizedBuffer ¶
func (m *PollTallyResults_AnswerResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PollTallyResults_AnswerResult) ProtoMessage ¶
func (*PollTallyResults_AnswerResult) ProtoMessage()
func (*PollTallyResults_AnswerResult) Reset ¶
func (m *PollTallyResults_AnswerResult) Reset()
func (*PollTallyResults_AnswerResult) Size ¶
func (m *PollTallyResults_AnswerResult) Size() (n int)
func (*PollTallyResults_AnswerResult) String ¶
func (m *PollTallyResults_AnswerResult) String() string
func (*PollTallyResults_AnswerResult) Unmarshal ¶
func (m *PollTallyResults_AnswerResult) Unmarshal(dAtA []byte) error
func (*PollTallyResults_AnswerResult) XXX_DiscardUnknown ¶
func (m *PollTallyResults_AnswerResult) XXX_DiscardUnknown()
func (*PollTallyResults_AnswerResult) XXX_Marshal ¶
func (m *PollTallyResults_AnswerResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PollTallyResults_AnswerResult) XXX_Merge ¶
func (m *PollTallyResults_AnswerResult) XXX_Merge(src proto.Message)
func (*PollTallyResults_AnswerResult) XXX_Size ¶
func (m *PollTallyResults_AnswerResult) XXX_Size() int
func (*PollTallyResults_AnswerResult) XXX_Unmarshal ¶
func (m *PollTallyResults_AnswerResult) XXX_Unmarshal(b []byte) error
type Poll_ProvidedAnswer ¶
type Poll_ProvidedAnswer struct { // (optional) Text of the answer Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty" yaml:"text"` // Content of the attachment Attachments []*types.Any `protobuf:"bytes,2,rep,name=attachments,proto3" json:"attachments,omitempty" yaml:"attachments"` }
Provided answer contains the details of a possible poll answer
func NewProvidedAnswer ¶
func NewProvidedAnswer(text string, attachments []AttachmentContent) Poll_ProvidedAnswer
NewProvidedAnswer returns a new Poll_ProvidedAnswer instance
func (*Poll_ProvidedAnswer) Descriptor ¶
func (*Poll_ProvidedAnswer) Descriptor() ([]byte, []int)
func (*Poll_ProvidedAnswer) Equal ¶
func (this *Poll_ProvidedAnswer) Equal(that interface{}) bool
func (*Poll_ProvidedAnswer) GetAttachments ¶
func (m *Poll_ProvidedAnswer) GetAttachments() []*types.Any
func (*Poll_ProvidedAnswer) GetText ¶
func (m *Poll_ProvidedAnswer) GetText() string
func (*Poll_ProvidedAnswer) Marshal ¶
func (m *Poll_ProvidedAnswer) Marshal() (dAtA []byte, err error)
func (*Poll_ProvidedAnswer) MarshalTo ¶
func (m *Poll_ProvidedAnswer) MarshalTo(dAtA []byte) (int, error)
func (*Poll_ProvidedAnswer) MarshalToSizedBuffer ¶
func (m *Poll_ProvidedAnswer) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Poll_ProvidedAnswer) ProtoMessage ¶
func (*Poll_ProvidedAnswer) ProtoMessage()
func (*Poll_ProvidedAnswer) Reset ¶
func (m *Poll_ProvidedAnswer) Reset()
func (*Poll_ProvidedAnswer) Size ¶
func (m *Poll_ProvidedAnswer) Size() (n int)
func (*Poll_ProvidedAnswer) String ¶
func (m *Poll_ProvidedAnswer) String() string
func (*Poll_ProvidedAnswer) Unmarshal ¶
func (m *Poll_ProvidedAnswer) Unmarshal(dAtA []byte) error
func (*Poll_ProvidedAnswer) UnpackInterfaces ¶
func (a *Poll_ProvidedAnswer) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements codectypes.UnpackInterfacesMessage
func (Poll_ProvidedAnswer) Validate ¶
func (a Poll_ProvidedAnswer) Validate() error
Validate implements fmt.Validator
func (*Poll_ProvidedAnswer) XXX_DiscardUnknown ¶
func (m *Poll_ProvidedAnswer) XXX_DiscardUnknown()
func (*Poll_ProvidedAnswer) XXX_Marshal ¶
func (m *Poll_ProvidedAnswer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Poll_ProvidedAnswer) XXX_Merge ¶
func (m *Poll_ProvidedAnswer) XXX_Merge(src proto.Message)
func (*Poll_ProvidedAnswer) XXX_Size ¶
func (m *Poll_ProvidedAnswer) XXX_Size() int
func (*Poll_ProvidedAnswer) XXX_Unmarshal ¶
func (m *Poll_ProvidedAnswer) XXX_Unmarshal(b []byte) error
type Post ¶
type Post struct { // Id of the subspace inside which the post has been created SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the section inside which the post has been created SectionID uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"` // Unique id of the post ID uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty" yaml:"id"` // (optional) External id for this post ExternalID string `protobuf:"bytes,4,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty" yaml:"external_id"` // (optional) Text of the post Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty" yaml:"text"` // (optional) Entities connected to this post Entities *Entities `protobuf:"bytes,6,opt,name=entities,proto3" json:"entities,omitempty" yaml:"entities"` // Tags related to this post, useful for categorization Tags []string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty" yaml:"tags"` // Author of the post Author string `protobuf:"bytes,8,opt,name=author,proto3" json:"author,omitempty" yaml:"author"` // (optional) Id of the original post of the conversation ConversationID uint64 `` /* 127-byte string literal not displayed */ // A list this posts references (either as a reply, repost or quote) ReferencedPosts []PostReference `protobuf:"bytes,10,rep,name=referenced_posts,json=referencedPosts,proto3" json:"referenced_posts" yaml:"referenced_posts"` // Reply settings of this post ReplySettings ReplySetting `` /* 158-byte string literal not displayed */ // Creation date of the post CreationDate time.Time `protobuf:"bytes,12,opt,name=creation_date,json=creationDate,proto3,stdtime" json:"creation_date" yaml:"creation_date"` // (optional) Last edited time of the post LastEditedDate *time.Time `` /* 138-byte string literal not displayed */ // Owner of the post Owner string `protobuf:"bytes,14,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` }
Post contains all the information about a single post
func NewPost ¶
func NewPost( subspaceID uint64, sectionID uint32, id uint64, externalID string, text string, author string, conversationID uint64, entities *Entities, tags []string, referencedPosts []PostReference, replySetting ReplySetting, creationDate time.Time, lastEditedDate *time.Time, owner string, ) Post
NewPost allows to build a new Post instance
func (*Post) Descriptor ¶
func (*Post) GetConversationID ¶
func (*Post) GetCreationDate ¶
func (*Post) GetEntities ¶
func (*Post) GetExternalID ¶
func (*Post) GetLastEditedDate ¶
func (Post) GetMentionedUsers ¶
GetMentionedUsers returns all the mentioned users
func (*Post) GetReferencedPosts ¶
func (m *Post) GetReferencedPosts() []PostReference
func (*Post) GetReplySettings ¶
func (m *Post) GetReplySettings() ReplySetting
func (*Post) GetSectionID ¶
func (*Post) GetSubspaceID ¶
func (Post) GetTextLength ¶
GetTextLength returns the length of the post text
func (Post) IsUserMentioned ¶
IsUserMentioned tells whether the given user is mentioned inside the post or not
func (*Post) ProtoMessage ¶
func (*Post) ProtoMessage()
func (Post) Update ¶
func (p Post) Update(update PostUpdate) Post
Update updates the fields of a given post without validating it. Before storing the updated post, a validation with keeper.ValidatePost should be performed.
func (*Post) XXX_DiscardUnknown ¶
func (m *Post) XXX_DiscardUnknown()
func (*Post) XXX_Unmarshal ¶
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"` InitialAttachmentID uint32 `protobuf:"varint,3,opt,name=initial_attachment_id,json=initialAttachmentId,proto3" json:"initial_attachment_id,omitempty"` }
PostDataEntry contains the data of a given post
func NewPostDataEntry ¶
func NewPostDataEntry(subspaceID uint64, postID uint64, attachmentID 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) GetInitialAttachmentID ¶
func (m *PostDataEntry) GetInitialAttachmentID() uint32
func (*PostDataEntry) GetPostID ¶
func (m *PostDataEntry) GetPostID() uint64
func (*PostDataEntry) GetSubspaceID ¶
func (m *PostDataEntry) GetSubspaceID() uint64
func (*PostDataEntry) Marshal ¶
func (m *PostDataEntry) Marshal() (dAtA []byte, err 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 (p PostDataEntry) Validate() error
Validate returns an error if something is wrong within the entry
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 PostMove ¶
type PostMove struct { // ID of the subspace where the post should be moved to SubspaceID uint64 // ID of the section where the post should be moved to SectionID uint32 // ID of the post within the new subspace PostID uint64 UpdateTime time.Time }
PostMove contains data related to a post that can be updated after it has been moved.
func NewPostMove ¶
NewPostMove returns a new PostMove instance
type PostOwnerTransferRequest ¶
type PostOwnerTransferRequest struct { // Id of the subspace that holds the post to transfer SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the post which will be transferred PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"` // Address of the sender Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` // Address of the receiver Receiver string `protobuf:"bytes,4,opt,name=receiver,proto3" json:"receiver,omitempty" yaml:"receiver"` }
PostOwnerTransferRequest represents a request to transfer the ownership of a post from the sender to the receiver
func NewPostOwnerTransferRequest ¶
func NewPostOwnerTransferRequest(subspaceID uint64, postID uint64, receiver string, sender string) PostOwnerTransferRequest
NewPostOwnerTransferRequest returns a new PostOwnerTransferRequest instance
func (*PostOwnerTransferRequest) Descriptor ¶
func (*PostOwnerTransferRequest) Descriptor() ([]byte, []int)
func (*PostOwnerTransferRequest) Equal ¶
func (this *PostOwnerTransferRequest) Equal(that interface{}) bool
func (*PostOwnerTransferRequest) GetPostID ¶
func (m *PostOwnerTransferRequest) GetPostID() uint64
func (*PostOwnerTransferRequest) GetReceiver ¶
func (m *PostOwnerTransferRequest) GetReceiver() string
func (*PostOwnerTransferRequest) GetSender ¶
func (m *PostOwnerTransferRequest) GetSender() string
func (*PostOwnerTransferRequest) GetSubspaceID ¶
func (m *PostOwnerTransferRequest) GetSubspaceID() uint64
func (*PostOwnerTransferRequest) Marshal ¶
func (m *PostOwnerTransferRequest) Marshal() (dAtA []byte, err error)
func (*PostOwnerTransferRequest) MarshalTo ¶
func (m *PostOwnerTransferRequest) MarshalTo(dAtA []byte) (int, error)
func (*PostOwnerTransferRequest) MarshalToSizedBuffer ¶
func (m *PostOwnerTransferRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PostOwnerTransferRequest) ProtoMessage ¶
func (*PostOwnerTransferRequest) ProtoMessage()
func (*PostOwnerTransferRequest) Reset ¶
func (m *PostOwnerTransferRequest) Reset()
func (*PostOwnerTransferRequest) Size ¶
func (m *PostOwnerTransferRequest) Size() (n int)
func (*PostOwnerTransferRequest) String ¶
func (m *PostOwnerTransferRequest) String() string
func (*PostOwnerTransferRequest) Unmarshal ¶
func (m *PostOwnerTransferRequest) Unmarshal(dAtA []byte) error
func (PostOwnerTransferRequest) Validate ¶
func (request PostOwnerTransferRequest) Validate() error
Validate checks the request validity
func (*PostOwnerTransferRequest) XXX_DiscardUnknown ¶
func (m *PostOwnerTransferRequest) XXX_DiscardUnknown()
func (*PostOwnerTransferRequest) XXX_Marshal ¶
func (m *PostOwnerTransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PostOwnerTransferRequest) XXX_Merge ¶
func (m *PostOwnerTransferRequest) XXX_Merge(src proto.Message)
func (*PostOwnerTransferRequest) XXX_Size ¶
func (m *PostOwnerTransferRequest) XXX_Size() int
func (*PostOwnerTransferRequest) XXX_Unmarshal ¶
func (m *PostOwnerTransferRequest) XXX_Unmarshal(b []byte) error
type PostReference ¶
type PostReference struct { // Type of reference Type PostReferenceType `protobuf:"varint,1,opt,name=type,proto3,enum=desmos.posts.v3.PostReferenceType" json:"type,omitempty" yaml:"type"` // Id of the referenced post PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"` // Position of the reference inside the post's text. This should be used only // with the type set to TYPE_QUOTE Position uint64 `protobuf:"varint,3,opt,name=position,proto3" json:"position,omitempty" yaml:"position"` }
PostReference contains the details of a post reference
func NewPostReference ¶
func NewPostReference(referenceType PostReferenceType, postID uint64, position uint64) PostReference
NewPostReference returns a new PostReference instance
func (*PostReference) Descriptor ¶
func (*PostReference) Descriptor() ([]byte, []int)
func (*PostReference) Equal ¶
func (this *PostReference) Equal(that interface{}) bool
func (*PostReference) GetPosition ¶
func (m *PostReference) GetPosition() uint64
func (*PostReference) GetPostID ¶
func (m *PostReference) GetPostID() uint64
func (*PostReference) GetType ¶
func (m *PostReference) GetType() PostReferenceType
func (*PostReference) Marshal ¶
func (m *PostReference) Marshal() (dAtA []byte, err error)
func (*PostReference) MarshalToSizedBuffer ¶
func (m *PostReference) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PostReference) ProtoMessage ¶
func (*PostReference) ProtoMessage()
func (*PostReference) Reset ¶
func (m *PostReference) Reset()
func (*PostReference) Size ¶
func (m *PostReference) Size() (n int)
func (*PostReference) String ¶
func (m *PostReference) String() string
func (*PostReference) Unmarshal ¶
func (m *PostReference) Unmarshal(dAtA []byte) error
func (PostReference) Validate ¶
func (r PostReference) Validate() error
Validate implements fmt.Validator
func (*PostReference) XXX_DiscardUnknown ¶
func (m *PostReference) XXX_DiscardUnknown()
func (*PostReference) XXX_Marshal ¶
func (m *PostReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PostReference) XXX_Merge ¶
func (m *PostReference) XXX_Merge(src proto.Message)
func (*PostReference) XXX_Size ¶
func (m *PostReference) XXX_Size() int
func (*PostReference) XXX_Unmarshal ¶
func (m *PostReference) XXX_Unmarshal(b []byte) error
type PostReferenceType ¶
type PostReferenceType int32
PostReferenceType represents the different types of references
const ( // No reference specified POST_REFERENCE_TYPE_UNSPECIFIED PostReferenceType = 0 // This reference represents a reply to the specified post POST_REFERENCE_TYPE_REPLY PostReferenceType = 1 // This reference represents a quote of the specified post POST_REFERENCE_TYPE_QUOTE PostReferenceType = 2 // This reference represents a repost of the specified post POST_REFERENCE_TYPE_REPOST PostReferenceType = 3 )
func (PostReferenceType) EnumDescriptor ¶
func (PostReferenceType) EnumDescriptor() ([]byte, []int)
func (PostReferenceType) String ¶
func (x PostReferenceType) String() string
type PostUpdate ¶
type PostUpdate struct { // If it shouldn't replace the current text, it must be set to types.DoNotModify Text string // Update's entities will always replace the existing ones Entities *Entities // Update's tags will always replace the existing ones Tags []string UpdateTime time.Time }
PostUpdate contains all the data that can be updated about a post. When performing an update, if a text field should not be edited then it must be set to types.DoNotModify.
func NewPostUpdate ¶
NewPostUpdate returns a new PostUpdate instance
type PostsHooks ¶
type PostsHooks interface { AfterPostSaved(ctx sdk.Context, subspaceID uint64, postID uint64) // Must be called when a post is saved AfterPostDeleted(ctx sdk.Context, subspaceID uint64, postID uint64) // Must be called when a post is deleted AfterAttachmentSaved(ctx sdk.Context, subspaceID uint64, postID uint64, attachmentID uint32) // Must be called when a post attachment is saved AfterAttachmentDeleted(ctx sdk.Context, subspaceID uint64, postID uint64, attachmentID uint32) // Must be called when a post attachment is deleted AfterPollAnswerSaved(ctx sdk.Context, subspaceID uint64, postID uint64, pollID uint32, user string) // Must be called when a poll user answer is saved AfterPollAnswerDeleted(ctx sdk.Context, subspaceID uint64, postID uint64, pollID uint32, user string) // Must be called when a poll user answer is deleted AfterPollVotingPeriodEnded(ctx sdk.Context, subspaceID uint64, postID uint64, pollID uint32) // Must be called when a poll tally results are saved }
PostsHooks event hooks for posts objects (noalias)
type PostsHooksWrapper ¶
type PostsHooksWrapper struct{ Hooks PostsHooks }
PostsHooksWrapper is a wrapper for modules to inject PostsHooks using depinject.
func (PostsHooksWrapper) IsOnePerModuleType ¶
func (PostsHooksWrapper) IsOnePerModuleType()
IsOnePerModuleType implements the depinject.OnePerModuleType interface.
type PostsMsg ¶
type PostsMsg struct { CreatePost *json.RawMessage `json:"create_post"` EditPost *json.RawMessage `json:"edit_post"` DeletePost *json.RawMessage `json:"delete_post"` AddPostAttachment *json.RawMessage `json:"add_post_attachment"` RemovePostAttachment *json.RawMessage `json:"remove_post_attachment"` AnswerPoll *json.RawMessage `json:"answer_poll"` }
type PostsQuery ¶
type PostsQuery struct { SubspacePosts *json.RawMessage `json:"subspace_posts"` SectionPosts *json.RawMessage `json:"section_posts"` Post *json.RawMessage `json:"post"` PostAttachments *json.RawMessage `json:"post_attachments"` PollAnswers *json.RawMessage `json:"poll_answers"` }
type ProfilesKeeper ¶
type ProfilesKeeper interface { // HasProfile returns true iff the given user has a profile HasProfile(ctx sdk.Context, user string) bool }
ProfilesKeeper represents a keeper that deals with profiles
type QueryClient ¶
type QueryClient interface { // SubspacePosts queries all the posts inside a given subspace SubspacePosts(ctx context.Context, in *QuerySubspacePostsRequest, opts ...grpc.CallOption) (*QuerySubspacePostsResponse, error) // SectionPosts queries all the posts inside a given section SectionPosts(ctx context.Context, in *QuerySectionPostsRequest, opts ...grpc.CallOption) (*QuerySectionPostsResponse, error) // Post queries for a single post inside a given subspace Post(ctx context.Context, in *QueryPostRequest, opts ...grpc.CallOption) (*QueryPostResponse, error) // PostAttachments queries the attachments of the post having the given id PostAttachments(ctx context.Context, in *QueryPostAttachmentsRequest, opts ...grpc.CallOption) (*QueryPostAttachmentsResponse, error) // PollAnswers queries the answers for the poll having the given id PollAnswers(ctx context.Context, in *QueryPollAnswersRequest, opts ...grpc.CallOption) (*QueryPollAnswersResponse, error) // Params queries the module parameters Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // IncomingPostOwnerTransferRequests queries all the post owner transfers // requests that have been made towards the receiver with the given address IncomingPostOwnerTransferRequests(ctx context.Context, in *QueryIncomingPostOwnerTransferRequestsRequest, opts ...grpc.CallOption) (*QueryIncomingPostOwnerTransferRequestsResponse, 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 QueryIncomingPostOwnerTransferRequestsRequest ¶
type QueryIncomingPostOwnerTransferRequestsRequest struct { // Id of the subspace where the requests are stored SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"` // (optional) Receiver represents the address of the user to which query the // incoming requests for Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` // Pagination defines an optional pagination for the request Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryIncomingPostOwnerTransferRequestsRequest is the request type for the Query/IncomingPostOwnerTransferRequests RPC endpoint
func NewQueryIncomingPostOwnerTransferRequestsRequest ¶
func NewQueryIncomingPostOwnerTransferRequestsRequest( subspaceID uint64, receiver string, pagination *query.PageRequest, ) *QueryIncomingPostOwnerTransferRequestsRequest
QueryIncomingPostOwnerTransferRequestsRequest returns a new QueryIncomingPostOwnerTransferRequestsRequest instance
func (*QueryIncomingPostOwnerTransferRequestsRequest) Descriptor ¶
func (*QueryIncomingPostOwnerTransferRequestsRequest) Descriptor() ([]byte, []int)
func (*QueryIncomingPostOwnerTransferRequestsRequest) Marshal ¶
func (m *QueryIncomingPostOwnerTransferRequestsRequest) Marshal() (dAtA []byte, err error)
func (*QueryIncomingPostOwnerTransferRequestsRequest) MarshalTo ¶
func (m *QueryIncomingPostOwnerTransferRequestsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryIncomingPostOwnerTransferRequestsRequest) MarshalToSizedBuffer ¶
func (m *QueryIncomingPostOwnerTransferRequestsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryIncomingPostOwnerTransferRequestsRequest) ProtoMessage ¶
func (*QueryIncomingPostOwnerTransferRequestsRequest) ProtoMessage()
func (*QueryIncomingPostOwnerTransferRequestsRequest) Reset ¶
func (m *QueryIncomingPostOwnerTransferRequestsRequest) Reset()
func (*QueryIncomingPostOwnerTransferRequestsRequest) Size ¶
func (m *QueryIncomingPostOwnerTransferRequestsRequest) Size() (n int)
func (*QueryIncomingPostOwnerTransferRequestsRequest) String ¶
func (m *QueryIncomingPostOwnerTransferRequestsRequest) String() string
func (*QueryIncomingPostOwnerTransferRequestsRequest) Unmarshal ¶
func (m *QueryIncomingPostOwnerTransferRequestsRequest) Unmarshal(dAtA []byte) error
func (*QueryIncomingPostOwnerTransferRequestsRequest) XXX_DiscardUnknown ¶
func (m *QueryIncomingPostOwnerTransferRequestsRequest) XXX_DiscardUnknown()
func (*QueryIncomingPostOwnerTransferRequestsRequest) XXX_Marshal ¶
func (m *QueryIncomingPostOwnerTransferRequestsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryIncomingPostOwnerTransferRequestsRequest) XXX_Merge ¶
func (m *QueryIncomingPostOwnerTransferRequestsRequest) XXX_Merge(src proto.Message)
func (*QueryIncomingPostOwnerTransferRequestsRequest) XXX_Size ¶
func (m *QueryIncomingPostOwnerTransferRequestsRequest) XXX_Size() int
func (*QueryIncomingPostOwnerTransferRequestsRequest) XXX_Unmarshal ¶
func (m *QueryIncomingPostOwnerTransferRequestsRequest) XXX_Unmarshal(b []byte) error
type QueryIncomingPostOwnerTransferRequestsResponse ¶
type QueryIncomingPostOwnerTransferRequestsResponse struct { // Requests represent the list of all the post owner transfer requests made // towards the receiver Requests []PostOwnerTransferRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests"` // Pagination defines the pagination response Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryIncomingPostOwnerTransferRequestsResponse is the response type for the Query/IncomingPostOwnerTransferRequests RPC method.
func (*QueryIncomingPostOwnerTransferRequestsResponse) Descriptor ¶
func (*QueryIncomingPostOwnerTransferRequestsResponse) Descriptor() ([]byte, []int)
func (*QueryIncomingPostOwnerTransferRequestsResponse) GetPagination ¶
func (m *QueryIncomingPostOwnerTransferRequestsResponse) GetPagination() *query.PageResponse
func (*QueryIncomingPostOwnerTransferRequestsResponse) GetRequests ¶
func (m *QueryIncomingPostOwnerTransferRequestsResponse) GetRequests() []PostOwnerTransferRequest
func (*QueryIncomingPostOwnerTransferRequestsResponse) Marshal ¶
func (m *QueryIncomingPostOwnerTransferRequestsResponse) Marshal() (dAtA []byte, err error)
func (*QueryIncomingPostOwnerTransferRequestsResponse) MarshalTo ¶
func (m *QueryIncomingPostOwnerTransferRequestsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryIncomingPostOwnerTransferRequestsResponse) MarshalToSizedBuffer ¶
func (m *QueryIncomingPostOwnerTransferRequestsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryIncomingPostOwnerTransferRequestsResponse) ProtoMessage ¶
func (*QueryIncomingPostOwnerTransferRequestsResponse) ProtoMessage()
func (*QueryIncomingPostOwnerTransferRequestsResponse) Reset ¶
func (m *QueryIncomingPostOwnerTransferRequestsResponse) Reset()
func (*QueryIncomingPostOwnerTransferRequestsResponse) Size ¶
func (m *QueryIncomingPostOwnerTransferRequestsResponse) Size() (n int)
func (*QueryIncomingPostOwnerTransferRequestsResponse) String ¶
func (m *QueryIncomingPostOwnerTransferRequestsResponse) String() string
func (*QueryIncomingPostOwnerTransferRequestsResponse) Unmarshal ¶
func (m *QueryIncomingPostOwnerTransferRequestsResponse) Unmarshal(dAtA []byte) error
func (*QueryIncomingPostOwnerTransferRequestsResponse) XXX_DiscardUnknown ¶
func (m *QueryIncomingPostOwnerTransferRequestsResponse) XXX_DiscardUnknown()
func (*QueryIncomingPostOwnerTransferRequestsResponse) XXX_Marshal ¶
func (m *QueryIncomingPostOwnerTransferRequestsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryIncomingPostOwnerTransferRequestsResponse) XXX_Merge ¶
func (m *QueryIncomingPostOwnerTransferRequestsResponse) XXX_Merge(src proto.Message)
func (*QueryIncomingPostOwnerTransferRequestsResponse) XXX_Size ¶
func (m *QueryIncomingPostOwnerTransferRequestsResponse) XXX_Size() int
func (*QueryIncomingPostOwnerTransferRequestsResponse) XXX_Unmarshal ¶
func (m *QueryIncomingPostOwnerTransferRequestsResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method
func NewQueryParamsRequest ¶
func NewQueryParamsRequest() *QueryParamsRequest
NewQueryParamsRequest returns a new QueryParamsRequest instance
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse is the response type for the Query/Params RPC method
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryPollAnswersRequest ¶
type QueryPollAnswersRequest struct { // Id of the subspace where the post is stored SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"` // Id of the post that holds the poll PostId uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"` // Id of the poll to query the answers for PollId uint32 `protobuf:"varint,3,opt,name=poll_id,json=pollId,proto3" json:"poll_id,omitempty"` // (Optional) Address of the user to query the responses for User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,5,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryPollAnswersRequest is the request type for the Query/PollAnswers RPC method
func NewQueryPollAnswersRequest ¶
func NewQueryPollAnswersRequest( subspaceID uint64, postID uint64, pollID uint32, user string, pagination *query.PageRequest, ) *QueryPollAnswersRequest
NewQueryPollAnswersRequest returns a new QueryPollAnswersRequest instance
func (*QueryPollAnswersRequest) Descriptor ¶
func (*QueryPollAnswersRequest) Descriptor() ([]byte, []int)
func (*QueryPollAnswersRequest) GetPagination ¶
func (m *QueryPollAnswersRequest) GetPagination() *query.PageRequest
func (*QueryPollAnswersRequest) GetPollId ¶
func (m *QueryPollAnswersRequest) GetPollId() uint32
func (*QueryPollAnswersRequest) GetPostId ¶
func (m *QueryPollAnswersRequest) GetPostId() uint64
func (*QueryPollAnswersRequest) GetSubspaceId ¶
func (m *QueryPollAnswersRequest) GetSubspaceId() uint64
func (*QueryPollAnswersRequest) GetUser ¶
func (m *QueryPollAnswersRequest) GetUser() string
func (*QueryPollAnswersRequest) Marshal ¶
func (m *QueryPollAnswersRequest) Marshal() (dAtA []byte, err error)
func (*QueryPollAnswersRequest) MarshalTo ¶
func (m *QueryPollAnswersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPollAnswersRequest) MarshalToSizedBuffer ¶
func (m *QueryPollAnswersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPollAnswersRequest) ProtoMessage ¶
func (*QueryPollAnswersRequest) ProtoMessage()
func (*QueryPollAnswersRequest) Reset ¶
func (m *QueryPollAnswersRequest) Reset()
func (*QueryPollAnswersRequest) Size ¶
func (m *QueryPollAnswersRequest) Size() (n int)
func (*QueryPollAnswersRequest) String ¶
func (m *QueryPollAnswersRequest) String() string
func (*QueryPollAnswersRequest) Unmarshal ¶
func (m *QueryPollAnswersRequest) Unmarshal(dAtA []byte) error
func (*QueryPollAnswersRequest) XXX_DiscardUnknown ¶
func (m *QueryPollAnswersRequest) XXX_DiscardUnknown()
func (*QueryPollAnswersRequest) XXX_Marshal ¶
func (m *QueryPollAnswersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPollAnswersRequest) XXX_Merge ¶
func (m *QueryPollAnswersRequest) XXX_Merge(src proto.Message)
func (*QueryPollAnswersRequest) XXX_Size ¶
func (m *QueryPollAnswersRequest) XXX_Size() int
func (*QueryPollAnswersRequest) XXX_Unmarshal ¶
func (m *QueryPollAnswersRequest) XXX_Unmarshal(b []byte) error
type QueryPollAnswersResponse ¶
type QueryPollAnswersResponse struct { Answers []UserAnswer `protobuf:"bytes,1,rep,name=answers,proto3" json:"answers"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryPollAnswersResponse is the response type for the Query/PollAnswers RPC method
func (*QueryPollAnswersResponse) Descriptor ¶
func (*QueryPollAnswersResponse) Descriptor() ([]byte, []int)
func (*QueryPollAnswersResponse) GetAnswers ¶
func (m *QueryPollAnswersResponse) GetAnswers() []UserAnswer
func (*QueryPollAnswersResponse) GetPagination ¶
func (m *QueryPollAnswersResponse) GetPagination() *query.PageResponse
func (*QueryPollAnswersResponse) Marshal ¶
func (m *QueryPollAnswersResponse) Marshal() (dAtA []byte, err error)
func (*QueryPollAnswersResponse) MarshalTo ¶
func (m *QueryPollAnswersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPollAnswersResponse) MarshalToSizedBuffer ¶
func (m *QueryPollAnswersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPollAnswersResponse) ProtoMessage ¶
func (*QueryPollAnswersResponse) ProtoMessage()
func (*QueryPollAnswersResponse) Reset ¶
func (m *QueryPollAnswersResponse) Reset()
func (*QueryPollAnswersResponse) Size ¶
func (m *QueryPollAnswersResponse) Size() (n int)
func (*QueryPollAnswersResponse) String ¶
func (m *QueryPollAnswersResponse) String() string
func (*QueryPollAnswersResponse) Unmarshal ¶
func (m *QueryPollAnswersResponse) Unmarshal(dAtA []byte) error
func (*QueryPollAnswersResponse) XXX_DiscardUnknown ¶
func (m *QueryPollAnswersResponse) XXX_DiscardUnknown()
func (*QueryPollAnswersResponse) XXX_Marshal ¶
func (m *QueryPollAnswersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPollAnswersResponse) XXX_Merge ¶
func (m *QueryPollAnswersResponse) XXX_Merge(src proto.Message)
func (*QueryPollAnswersResponse) XXX_Size ¶
func (m *QueryPollAnswersResponse) XXX_Size() int
func (*QueryPollAnswersResponse) XXX_Unmarshal ¶
func (m *QueryPollAnswersResponse) XXX_Unmarshal(b []byte) error
type QueryPostAttachmentsRequest ¶
type QueryPostAttachmentsRequest struct { // Id of the subspace where the post is stored SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"` // Id of the post to query the attachments for PostId uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryPostsRequest is the request type for the Query/PostAttachments RPC method
func NewQueryPostAttachmentsRequest ¶
func NewQueryPostAttachmentsRequest( subspaceID uint64, postID uint64, pagination *query.PageRequest, ) *QueryPostAttachmentsRequest
NewQueryPostAttachmentsRequest returns a new QueryPostAttachmentsRequest instance
func (*QueryPostAttachmentsRequest) Descriptor ¶
func (*QueryPostAttachmentsRequest) Descriptor() ([]byte, []int)
func (*QueryPostAttachmentsRequest) GetPagination ¶
func (m *QueryPostAttachmentsRequest) GetPagination() *query.PageRequest
func (*QueryPostAttachmentsRequest) GetPostId ¶
func (m *QueryPostAttachmentsRequest) GetPostId() uint64
func (*QueryPostAttachmentsRequest) GetSubspaceId ¶
func (m *QueryPostAttachmentsRequest) GetSubspaceId() uint64
func (*QueryPostAttachmentsRequest) Marshal ¶
func (m *QueryPostAttachmentsRequest) Marshal() (dAtA []byte, err error)
func (*QueryPostAttachmentsRequest) MarshalTo ¶
func (m *QueryPostAttachmentsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPostAttachmentsRequest) MarshalToSizedBuffer ¶
func (m *QueryPostAttachmentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPostAttachmentsRequest) ProtoMessage ¶
func (*QueryPostAttachmentsRequest) ProtoMessage()
func (*QueryPostAttachmentsRequest) Reset ¶
func (m *QueryPostAttachmentsRequest) Reset()
func (*QueryPostAttachmentsRequest) Size ¶
func (m *QueryPostAttachmentsRequest) Size() (n int)
func (*QueryPostAttachmentsRequest) String ¶
func (m *QueryPostAttachmentsRequest) String() string
func (*QueryPostAttachmentsRequest) Unmarshal ¶
func (m *QueryPostAttachmentsRequest) Unmarshal(dAtA []byte) error
func (*QueryPostAttachmentsRequest) XXX_DiscardUnknown ¶
func (m *QueryPostAttachmentsRequest) XXX_DiscardUnknown()
func (*QueryPostAttachmentsRequest) XXX_Marshal ¶
func (m *QueryPostAttachmentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPostAttachmentsRequest) XXX_Merge ¶
func (m *QueryPostAttachmentsRequest) XXX_Merge(src proto.Message)
func (*QueryPostAttachmentsRequest) XXX_Size ¶
func (m *QueryPostAttachmentsRequest) XXX_Size() int
func (*QueryPostAttachmentsRequest) XXX_Unmarshal ¶
func (m *QueryPostAttachmentsRequest) XXX_Unmarshal(b []byte) error
type QueryPostAttachmentsResponse ¶
type QueryPostAttachmentsResponse struct { Attachments []Attachment `protobuf:"bytes,1,rep,name=attachments,proto3" json:"attachments"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryPostAttachmentsResponse is the response type for the Query/PostAttachments RPC method
func (*QueryPostAttachmentsResponse) Descriptor ¶
func (*QueryPostAttachmentsResponse) Descriptor() ([]byte, []int)
func (*QueryPostAttachmentsResponse) GetAttachments ¶
func (m *QueryPostAttachmentsResponse) GetAttachments() []Attachment
func (*QueryPostAttachmentsResponse) GetPagination ¶
func (m *QueryPostAttachmentsResponse) GetPagination() *query.PageResponse
func (*QueryPostAttachmentsResponse) Marshal ¶
func (m *QueryPostAttachmentsResponse) Marshal() (dAtA []byte, err error)
func (*QueryPostAttachmentsResponse) MarshalTo ¶
func (m *QueryPostAttachmentsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPostAttachmentsResponse) MarshalToSizedBuffer ¶
func (m *QueryPostAttachmentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPostAttachmentsResponse) ProtoMessage ¶
func (*QueryPostAttachmentsResponse) ProtoMessage()
func (*QueryPostAttachmentsResponse) Reset ¶
func (m *QueryPostAttachmentsResponse) Reset()
func (*QueryPostAttachmentsResponse) Size ¶
func (m *QueryPostAttachmentsResponse) Size() (n int)
func (*QueryPostAttachmentsResponse) String ¶
func (m *QueryPostAttachmentsResponse) String() string
func (*QueryPostAttachmentsResponse) Unmarshal ¶
func (m *QueryPostAttachmentsResponse) Unmarshal(dAtA []byte) error
func (*QueryPostAttachmentsResponse) UnpackInterfaces ¶
func (r *QueryPostAttachmentsResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements codectypes.UnpackInterfacesMessage
func (*QueryPostAttachmentsResponse) XXX_DiscardUnknown ¶
func (m *QueryPostAttachmentsResponse) XXX_DiscardUnknown()
func (*QueryPostAttachmentsResponse) XXX_Marshal ¶
func (m *QueryPostAttachmentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPostAttachmentsResponse) XXX_Merge ¶
func (m *QueryPostAttachmentsResponse) XXX_Merge(src proto.Message)
func (*QueryPostAttachmentsResponse) XXX_Size ¶
func (m *QueryPostAttachmentsResponse) XXX_Size() int
func (*QueryPostAttachmentsResponse) XXX_Unmarshal ¶
func (m *QueryPostAttachmentsResponse) XXX_Unmarshal(b []byte) error
type QueryPostRequest ¶
type QueryPostRequest struct { // Id of the subspace inside which the post lies SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"` // Id of the post to query for PostId uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"` }
QueryPostRequest is the request type for the Query/Post RPC method
func NewQueryPostRequest ¶
func NewQueryPostRequest(subspaceID uint64, postID uint64) *QueryPostRequest
NewQueryPostRequest returns a new QueryPostRequest instance
func (*QueryPostRequest) Descriptor ¶
func (*QueryPostRequest) Descriptor() ([]byte, []int)
func (*QueryPostRequest) GetPostId ¶
func (m *QueryPostRequest) GetPostId() uint64
func (*QueryPostRequest) GetSubspaceId ¶
func (m *QueryPostRequest) GetSubspaceId() uint64
func (*QueryPostRequest) Marshal ¶
func (m *QueryPostRequest) Marshal() (dAtA []byte, err error)
func (*QueryPostRequest) MarshalToSizedBuffer ¶
func (m *QueryPostRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPostRequest) ProtoMessage ¶
func (*QueryPostRequest) ProtoMessage()
func (*QueryPostRequest) Reset ¶
func (m *QueryPostRequest) Reset()
func (*QueryPostRequest) Size ¶
func (m *QueryPostRequest) Size() (n int)
func (*QueryPostRequest) String ¶
func (m *QueryPostRequest) String() string
func (*QueryPostRequest) Unmarshal ¶
func (m *QueryPostRequest) Unmarshal(dAtA []byte) error
func (*QueryPostRequest) XXX_DiscardUnknown ¶
func (m *QueryPostRequest) XXX_DiscardUnknown()
func (*QueryPostRequest) XXX_Marshal ¶
func (m *QueryPostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPostRequest) XXX_Merge ¶
func (m *QueryPostRequest) XXX_Merge(src proto.Message)
func (*QueryPostRequest) XXX_Size ¶
func (m *QueryPostRequest) XXX_Size() int
func (*QueryPostRequest) XXX_Unmarshal ¶
func (m *QueryPostRequest) XXX_Unmarshal(b []byte) error
type QueryPostResponse ¶
type QueryPostResponse struct {
Post Post `protobuf:"bytes,1,opt,name=post,proto3" json:"post"`
}
QueryPostResponse is the response type for the Query/Post RPC method
func (*QueryPostResponse) Descriptor ¶
func (*QueryPostResponse) Descriptor() ([]byte, []int)
func (*QueryPostResponse) GetPost ¶
func (m *QueryPostResponse) GetPost() Post
func (*QueryPostResponse) Marshal ¶
func (m *QueryPostResponse) Marshal() (dAtA []byte, err error)
func (*QueryPostResponse) MarshalTo ¶
func (m *QueryPostResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPostResponse) MarshalToSizedBuffer ¶
func (m *QueryPostResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPostResponse) ProtoMessage ¶
func (*QueryPostResponse) ProtoMessage()
func (*QueryPostResponse) Reset ¶
func (m *QueryPostResponse) Reset()
func (*QueryPostResponse) Size ¶
func (m *QueryPostResponse) Size() (n int)
func (*QueryPostResponse) String ¶
func (m *QueryPostResponse) String() string
func (*QueryPostResponse) Unmarshal ¶
func (m *QueryPostResponse) Unmarshal(dAtA []byte) error
func (*QueryPostResponse) XXX_DiscardUnknown ¶
func (m *QueryPostResponse) XXX_DiscardUnknown()
func (*QueryPostResponse) XXX_Marshal ¶
func (m *QueryPostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPostResponse) XXX_Merge ¶
func (m *QueryPostResponse) XXX_Merge(src proto.Message)
func (*QueryPostResponse) XXX_Size ¶
func (m *QueryPostResponse) XXX_Size() int
func (*QueryPostResponse) XXX_Unmarshal ¶
func (m *QueryPostResponse) XXX_Unmarshal(b []byte) error
type QuerySectionPostsRequest ¶
type QuerySectionPostsRequest struct { // Id of the subspace to query the posts for SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"` // Id of the section to query the posts for SectionId uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QuerySectionPostsRequest is the request type for the Query/SectionPosts RPC method
func NewQuerySectionPostsRequest ¶
func NewQuerySectionPostsRequest(subspaceID uint64, sectionID uint32, pagination *query.PageRequest) *QuerySectionPostsRequest
NewQuerySectionPostsRequest returns a new QuerySectionPostsRequest instance
func (*QuerySectionPostsRequest) Descriptor ¶
func (*QuerySectionPostsRequest) Descriptor() ([]byte, []int)
func (*QuerySectionPostsRequest) GetPagination ¶
func (m *QuerySectionPostsRequest) GetPagination() *query.PageRequest
func (*QuerySectionPostsRequest) GetSectionId ¶
func (m *QuerySectionPostsRequest) GetSectionId() uint32
func (*QuerySectionPostsRequest) GetSubspaceId ¶
func (m *QuerySectionPostsRequest) GetSubspaceId() uint64
func (*QuerySectionPostsRequest) Marshal ¶
func (m *QuerySectionPostsRequest) Marshal() (dAtA []byte, err error)
func (*QuerySectionPostsRequest) MarshalTo ¶
func (m *QuerySectionPostsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySectionPostsRequest) MarshalToSizedBuffer ¶
func (m *QuerySectionPostsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySectionPostsRequest) ProtoMessage ¶
func (*QuerySectionPostsRequest) ProtoMessage()
func (*QuerySectionPostsRequest) Reset ¶
func (m *QuerySectionPostsRequest) Reset()
func (*QuerySectionPostsRequest) Size ¶
func (m *QuerySectionPostsRequest) Size() (n int)
func (*QuerySectionPostsRequest) String ¶
func (m *QuerySectionPostsRequest) String() string
func (*QuerySectionPostsRequest) Unmarshal ¶
func (m *QuerySectionPostsRequest) Unmarshal(dAtA []byte) error
func (*QuerySectionPostsRequest) XXX_DiscardUnknown ¶
func (m *QuerySectionPostsRequest) XXX_DiscardUnknown()
func (*QuerySectionPostsRequest) XXX_Marshal ¶
func (m *QuerySectionPostsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySectionPostsRequest) XXX_Merge ¶
func (m *QuerySectionPostsRequest) XXX_Merge(src proto.Message)
func (*QuerySectionPostsRequest) XXX_Size ¶
func (m *QuerySectionPostsRequest) XXX_Size() int
func (*QuerySectionPostsRequest) XXX_Unmarshal ¶
func (m *QuerySectionPostsRequest) XXX_Unmarshal(b []byte) error
type QuerySectionPostsResponse ¶
type QuerySectionPostsResponse struct { Posts []Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QuerySectionPostsResponse is the response type for the Query/SectionPosts RPC method
func (*QuerySectionPostsResponse) Descriptor ¶
func (*QuerySectionPostsResponse) Descriptor() ([]byte, []int)
func (*QuerySectionPostsResponse) GetPagination ¶
func (m *QuerySectionPostsResponse) GetPagination() *query.PageResponse
func (*QuerySectionPostsResponse) GetPosts ¶
func (m *QuerySectionPostsResponse) GetPosts() []Post
func (*QuerySectionPostsResponse) Marshal ¶
func (m *QuerySectionPostsResponse) Marshal() (dAtA []byte, err error)
func (*QuerySectionPostsResponse) MarshalTo ¶
func (m *QuerySectionPostsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySectionPostsResponse) MarshalToSizedBuffer ¶
func (m *QuerySectionPostsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySectionPostsResponse) ProtoMessage ¶
func (*QuerySectionPostsResponse) ProtoMessage()
func (*QuerySectionPostsResponse) Reset ¶
func (m *QuerySectionPostsResponse) Reset()
func (*QuerySectionPostsResponse) Size ¶
func (m *QuerySectionPostsResponse) Size() (n int)
func (*QuerySectionPostsResponse) String ¶
func (m *QuerySectionPostsResponse) String() string
func (*QuerySectionPostsResponse) Unmarshal ¶
func (m *QuerySectionPostsResponse) Unmarshal(dAtA []byte) error
func (*QuerySectionPostsResponse) XXX_DiscardUnknown ¶
func (m *QuerySectionPostsResponse) XXX_DiscardUnknown()
func (*QuerySectionPostsResponse) XXX_Marshal ¶
func (m *QuerySectionPostsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySectionPostsResponse) XXX_Merge ¶
func (m *QuerySectionPostsResponse) XXX_Merge(src proto.Message)
func (*QuerySectionPostsResponse) XXX_Size ¶
func (m *QuerySectionPostsResponse) XXX_Size() int
func (*QuerySectionPostsResponse) XXX_Unmarshal ¶
func (m *QuerySectionPostsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // SubspacePosts queries all the posts inside a given subspace SubspacePosts(context.Context, *QuerySubspacePostsRequest) (*QuerySubspacePostsResponse, error) // SectionPosts queries all the posts inside a given section SectionPosts(context.Context, *QuerySectionPostsRequest) (*QuerySectionPostsResponse, error) // Post queries for a single post inside a given subspace Post(context.Context, *QueryPostRequest) (*QueryPostResponse, error) // PostAttachments queries the attachments of the post having the given id PostAttachments(context.Context, *QueryPostAttachmentsRequest) (*QueryPostAttachmentsResponse, error) // PollAnswers queries the answers for the poll having the given id PollAnswers(context.Context, *QueryPollAnswersRequest) (*QueryPollAnswersResponse, error) // Params queries the module parameters Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // IncomingPostOwnerTransferRequests queries all the post owner transfers // requests that have been made towards the receiver with the given address IncomingPostOwnerTransferRequests(context.Context, *QueryIncomingPostOwnerTransferRequestsRequest) (*QueryIncomingPostOwnerTransferRequestsResponse, error) }
QueryServer is the server API for Query service.
type QuerySubspacePostsRequest ¶
type QuerySubspacePostsRequest struct { // Id of the subspace to query the posts 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,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QuerySubspacePostsRequest is the request type for the Query/SubspacePosts RPC method
func NewQuerySubspacePostsRequest ¶
func NewQuerySubspacePostsRequest(subspaceID uint64, pagination *query.PageRequest) *QuerySubspacePostsRequest
NewQuerySubspacePostsRequest returns a new QuerySubspacePostsRequest instance
func (*QuerySubspacePostsRequest) Descriptor ¶
func (*QuerySubspacePostsRequest) Descriptor() ([]byte, []int)
func (*QuerySubspacePostsRequest) GetPagination ¶
func (m *QuerySubspacePostsRequest) GetPagination() *query.PageRequest
func (*QuerySubspacePostsRequest) GetSubspaceId ¶
func (m *QuerySubspacePostsRequest) GetSubspaceId() uint64
func (*QuerySubspacePostsRequest) Marshal ¶
func (m *QuerySubspacePostsRequest) Marshal() (dAtA []byte, err error)
func (*QuerySubspacePostsRequest) MarshalTo ¶
func (m *QuerySubspacePostsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubspacePostsRequest) MarshalToSizedBuffer ¶
func (m *QuerySubspacePostsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubspacePostsRequest) ProtoMessage ¶
func (*QuerySubspacePostsRequest) ProtoMessage()
func (*QuerySubspacePostsRequest) Reset ¶
func (m *QuerySubspacePostsRequest) Reset()
func (*QuerySubspacePostsRequest) Size ¶
func (m *QuerySubspacePostsRequest) Size() (n int)
func (*QuerySubspacePostsRequest) String ¶
func (m *QuerySubspacePostsRequest) String() string
func (*QuerySubspacePostsRequest) Unmarshal ¶
func (m *QuerySubspacePostsRequest) Unmarshal(dAtA []byte) error
func (*QuerySubspacePostsRequest) XXX_DiscardUnknown ¶
func (m *QuerySubspacePostsRequest) XXX_DiscardUnknown()
func (*QuerySubspacePostsRequest) XXX_Marshal ¶
func (m *QuerySubspacePostsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubspacePostsRequest) XXX_Merge ¶
func (m *QuerySubspacePostsRequest) XXX_Merge(src proto.Message)
func (*QuerySubspacePostsRequest) XXX_Size ¶
func (m *QuerySubspacePostsRequest) XXX_Size() int
func (*QuerySubspacePostsRequest) XXX_Unmarshal ¶
func (m *QuerySubspacePostsRequest) XXX_Unmarshal(b []byte) error
type QuerySubspacePostsResponse ¶
type QuerySubspacePostsResponse struct { Posts []Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QuerySubspacePostsResponse is the response type for the Query/SubspacePosts RPC method
func (*QuerySubspacePostsResponse) Descriptor ¶
func (*QuerySubspacePostsResponse) Descriptor() ([]byte, []int)
func (*QuerySubspacePostsResponse) GetPagination ¶
func (m *QuerySubspacePostsResponse) GetPagination() *query.PageResponse
func (*QuerySubspacePostsResponse) GetPosts ¶
func (m *QuerySubspacePostsResponse) GetPosts() []Post
func (*QuerySubspacePostsResponse) Marshal ¶
func (m *QuerySubspacePostsResponse) Marshal() (dAtA []byte, err error)
func (*QuerySubspacePostsResponse) MarshalTo ¶
func (m *QuerySubspacePostsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubspacePostsResponse) MarshalToSizedBuffer ¶
func (m *QuerySubspacePostsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubspacePostsResponse) ProtoMessage ¶
func (*QuerySubspacePostsResponse) ProtoMessage()
func (*QuerySubspacePostsResponse) Reset ¶
func (m *QuerySubspacePostsResponse) Reset()
func (*QuerySubspacePostsResponse) Size ¶
func (m *QuerySubspacePostsResponse) Size() (n int)
func (*QuerySubspacePostsResponse) String ¶
func (m *QuerySubspacePostsResponse) String() string
func (*QuerySubspacePostsResponse) Unmarshal ¶
func (m *QuerySubspacePostsResponse) Unmarshal(dAtA []byte) error
func (*QuerySubspacePostsResponse) XXX_DiscardUnknown ¶
func (m *QuerySubspacePostsResponse) XXX_DiscardUnknown()
func (*QuerySubspacePostsResponse) XXX_Marshal ¶
func (m *QuerySubspacePostsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubspacePostsResponse) XXX_Merge ¶
func (m *QuerySubspacePostsResponse) XXX_Merge(src proto.Message)
func (*QuerySubspacePostsResponse) XXX_Size ¶
func (m *QuerySubspacePostsResponse) XXX_Size() int
func (*QuerySubspacePostsResponse) XXX_Unmarshal ¶
func (m *QuerySubspacePostsResponse) 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 ReplySetting ¶
type ReplySetting int32
ReplySetting contains the possible reply settings that a post can have
const ( // No reply setting specified REPLY_SETTING_UNSPECIFIED ReplySetting = 0 // Everyone will be able to reply to this post REPLY_SETTING_EVERYONE ReplySetting = 1 // Only followers of the author will be able to reply to this post REPLY_SETTING_FOLLOWERS ReplySetting = 2 // Only the author mutual followers will be able to reply to this post REPLY_SETTING_MUTUAL ReplySetting = 3 // Only people mentioned inside this post will be able to reply REPLY_SETTING_MENTIONS ReplySetting = 4 )
func (ReplySetting) EnumDescriptor ¶
func (ReplySetting) EnumDescriptor() ([]byte, []int)
func (ReplySetting) String ¶
func (x ReplySetting) String() string
type SubspaceDataEntry ¶
type SubspaceDataEntry struct { SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"` InitialPostID uint64 `protobuf:"varint,2,opt,name=initial_post_id,json=initialPostId,proto3" json:"initial_post_id,omitempty"` }
SubspaceDataEntry contains the data for a given subspace
func NewSubspaceDataEntry ¶
func NewSubspaceDataEntry(subspaceID uint64, initialPostID uint64) 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) GetInitialPostID ¶
func (m *SubspaceDataEntry) GetInitialPostID() uint64
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 SubspacesKeeper ¶
type SubspacesKeeper interface { // HasSubspace tells whether the subspace with the given id exists or not HasSubspace(ctx sdk.Context, subspaceID uint64) bool // HasSection tells whether the section having the given id exists inside the provided subspace HasSection(ctx sdk.Context, subspaceID uint64, sectionID uint32) 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)) // GetAllSections returns all the stored sections GetAllSections(ctx sdk.Context) []subspacestypes.Section // GetUsersWithRootPermissions returns all the users that have a given permission inside the specified subspace GetUsersWithRootPermissions(ctx sdk.Context, subspaceID uint64, permission subspacestypes.Permissions) []string }
SubspacesKeeper represents a keeper that deals with subspaces
type TextTag ¶
type TextTag struct { // Index of the character inside the text at which the tag starts Start uint64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty" yaml:"start"` // Index of the character inside the text at which the tag ends End uint64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty" yaml:"end"` // Tag reference (user address, hashtag value, etc) Tag string `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty" yaml:"tag"` }
TextTag represents a tag within the post text
func NewTextTag ¶
NewTextTag returns a new TextTag instance
func (*TextTag) Descriptor ¶
func (*TextTag) MarshalToSizedBuffer ¶
func (*TextTag) ProtoMessage ¶
func (*TextTag) ProtoMessage()
func (*TextTag) XXX_DiscardUnknown ¶
func (m *TextTag) XXX_DiscardUnknown()
func (*TextTag) XXX_Marshal ¶
func (*TextTag) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AcceptPostOwnerTransferRequest ¶
func (*UnimplementedMsgServer) AcceptPostOwnerTransferRequest(ctx context.Context, req *MsgAcceptPostOwnerTransferRequest) (*MsgAcceptPostOwnerTransferRequestResponse, error)
func (*UnimplementedMsgServer) AddPostAttachment ¶
func (*UnimplementedMsgServer) AddPostAttachment(ctx context.Context, req *MsgAddPostAttachment) (*MsgAddPostAttachmentResponse, error)
func (*UnimplementedMsgServer) AnswerPoll ¶
func (*UnimplementedMsgServer) AnswerPoll(ctx context.Context, req *MsgAnswerPoll) (*MsgAnswerPollResponse, error)
func (*UnimplementedMsgServer) CancelPostOwnerTransferRequest ¶
func (*UnimplementedMsgServer) CancelPostOwnerTransferRequest(ctx context.Context, req *MsgCancelPostOwnerTransferRequest) (*MsgCancelPostOwnerTransferRequestResponse, error)
func (*UnimplementedMsgServer) CreatePost ¶
func (*UnimplementedMsgServer) CreatePost(ctx context.Context, req *MsgCreatePost) (*MsgCreatePostResponse, error)
func (*UnimplementedMsgServer) DeletePost ¶
func (*UnimplementedMsgServer) DeletePost(ctx context.Context, req *MsgDeletePost) (*MsgDeletePostResponse, error)
func (*UnimplementedMsgServer) EditPost ¶
func (*UnimplementedMsgServer) EditPost(ctx context.Context, req *MsgEditPost) (*MsgEditPostResponse, error)
func (*UnimplementedMsgServer) MovePost ¶
func (*UnimplementedMsgServer) MovePost(ctx context.Context, req *MsgMovePost) (*MsgMovePostResponse, error)
func (*UnimplementedMsgServer) RefusePostOwnerTransferRequest ¶
func (*UnimplementedMsgServer) RefusePostOwnerTransferRequest(ctx context.Context, req *MsgRefusePostOwnerTransferRequest) (*MsgRefusePostOwnerTransferRequestResponse, error)
func (*UnimplementedMsgServer) RemovePostAttachment ¶
func (*UnimplementedMsgServer) RemovePostAttachment(ctx context.Context, req *MsgRemovePostAttachment) (*MsgRemovePostAttachmentResponse, error)
func (*UnimplementedMsgServer) RequestPostOwnerTransfer ¶
func (*UnimplementedMsgServer) RequestPostOwnerTransfer(ctx context.Context, req *MsgRequestPostOwnerTransfer) (*MsgRequestPostOwnerTransferResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) IncomingPostOwnerTransferRequests ¶
func (*UnimplementedQueryServer) IncomingPostOwnerTransferRequests(ctx context.Context, req *QueryIncomingPostOwnerTransferRequestsRequest) (*QueryIncomingPostOwnerTransferRequestsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) PollAnswers ¶
func (*UnimplementedQueryServer) PollAnswers(ctx context.Context, req *QueryPollAnswersRequest) (*QueryPollAnswersResponse, error)
func (*UnimplementedQueryServer) Post ¶
func (*UnimplementedQueryServer) Post(ctx context.Context, req *QueryPostRequest) (*QueryPostResponse, error)
func (*UnimplementedQueryServer) PostAttachments ¶
func (*UnimplementedQueryServer) PostAttachments(ctx context.Context, req *QueryPostAttachmentsRequest) (*QueryPostAttachmentsResponse, error)
func (*UnimplementedQueryServer) SectionPosts ¶
func (*UnimplementedQueryServer) SectionPosts(ctx context.Context, req *QuerySectionPostsRequest) (*QuerySectionPostsResponse, error)
func (*UnimplementedQueryServer) SubspacePosts ¶
func (*UnimplementedQueryServer) SubspacePosts(ctx context.Context, req *QuerySubspacePostsRequest) (*QuerySubspacePostsResponse, error)
type Url ¶
type Url struct { // Index of the character inside the text at which the URL starts Start uint64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty" yaml:"start"` // Index of the character inside the text at which the URL ends End uint64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty" yaml:"end"` // Value of the URL where the user should be redirected to Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty" yaml:"url"` // (optional) Display value of the URL DisplayUrl string `protobuf:"bytes,4,opt,name=display_url,json=displayUrl,proto3" json:"display_url,omitempty" yaml:"display_url"` }
Url contains the details of a generic URL
func (*Url) Descriptor ¶
func (*Url) GetDisplayUrl ¶
func (*Url) ProtoMessage ¶
func (*Url) ProtoMessage()
func (*Url) XXX_DiscardUnknown ¶
func (m *Url) XXX_DiscardUnknown()
func (*Url) XXX_Unmarshal ¶
type UserAnswer ¶
type UserAnswer struct { // Subspace id inside which the post related to this attachment is located SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the post associated to this attachment PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"` // Id of the poll to which this answer is associated PollID uint32 `protobuf:"varint,3,opt,name=poll_id,json=pollId,proto3" json:"poll_id,omitempty" yaml:"poll_id"` // Indexes of the answers inside the ProvidedAnswers array AnswersIndexes []uint32 `` /* 134-byte string literal not displayed */ // Address of the user answering the poll User string `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty" yaml:"user"` }
UserAnswer represents a user answer to a poll
func NewUserAnswer ¶
func NewUserAnswer(subspaceID uint64, postID uint64, pollID uint32, answersIndexes []uint32, user string) UserAnswer
NewUserAnswer returns a new UserAnswer instance
func (*UserAnswer) Descriptor ¶
func (*UserAnswer) Descriptor() ([]byte, []int)
func (*UserAnswer) Equal ¶
func (this *UserAnswer) Equal(that interface{}) bool
func (*UserAnswer) GetAnswersIndexes ¶
func (m *UserAnswer) GetAnswersIndexes() []uint32
func (*UserAnswer) GetPollID ¶
func (m *UserAnswer) GetPollID() uint32
func (*UserAnswer) GetPostID ¶
func (m *UserAnswer) GetPostID() uint64
func (*UserAnswer) GetSubspaceID ¶
func (m *UserAnswer) GetSubspaceID() uint64
func (*UserAnswer) GetUser ¶
func (m *UserAnswer) GetUser() string
func (*UserAnswer) Marshal ¶
func (m *UserAnswer) Marshal() (dAtA []byte, err error)
func (*UserAnswer) MarshalToSizedBuffer ¶
func (m *UserAnswer) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UserAnswer) ProtoMessage ¶
func (*UserAnswer) ProtoMessage()
func (*UserAnswer) Reset ¶
func (m *UserAnswer) Reset()
func (*UserAnswer) Size ¶
func (m *UserAnswer) Size() (n int)
func (*UserAnswer) String ¶
func (m *UserAnswer) String() string
func (*UserAnswer) Unmarshal ¶
func (m *UserAnswer) Unmarshal(dAtA []byte) error
func (*UserAnswer) XXX_DiscardUnknown ¶
func (m *UserAnswer) XXX_DiscardUnknown()
func (*UserAnswer) XXX_Marshal ¶
func (m *UserAnswer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserAnswer) XXX_Merge ¶
func (m *UserAnswer) XXX_Merge(src proto.Message)
func (*UserAnswer) XXX_Size ¶
func (m *UserAnswer) XXX_Size() int
func (*UserAnswer) XXX_Unmarshal ¶
func (m *UserAnswer) XXX_Unmarshal(b []byte) error