Versions in this module Expand all Collapse all v1 v1.5.0 Jun 29, 2024 v1.4.0 Aug 9, 2022 Changes in this version + const CmdBestBlock + const CmdCensorComment + const CmdGetComments + const CmdNewComment + const ID + const Version + var ErrorStatus = map[ErrorStatusT]string + func EncodeBestBlock(bb BestBlock) ([]byte, error) + func EncodeBestBlockReply(bbr BestBlockReply) ([]byte, error) + func EncodeCensorComment(cc CensorComment) ([]byte, error) + func EncodeCensorCommentReply(ccr CensorCommentReply) ([]byte, error) + func EncodeComment(c Comment) ([]byte, error) + func EncodeGetComments(gc GetComments) ([]byte, error) + func EncodeGetCommentsReply(gcr GetCommentsReply) ([]byte, error) + func EncodeNewComment(nc NewComment) ([]byte, error) + func EncodeNewCommentReply(ncr NewCommentReply) ([]byte, error) + type BestBlock struct + func DecodeBestBlock(payload []byte) (*BestBlock, error) + type BestBlockReply struct + Height uint32 + func DecodeBestBlockReply(payload []byte) (*BestBlockReply, error) + type CensorComment struct + CommentID string + PublicKey string + Reason string + Receipt string + Signature string + Timestamp int64 + Token string + func DecodeCensorComment(payload []byte) (*CensorComment, error) + type CensorCommentReply struct + Receipt string + func DecodeCensorCommentReply(payload []byte) (*CensorCommentReply, error) + type Comment struct + Censored bool + Comment string + CommentID string + ParentID string + PublicKey string + Receipt string + ResultVotes int64 + Signature string + Timestamp int64 + Token string + TotalVotes uint64 + func DecodeComment(payload []byte) (*Comment, error) + type ErrorStatusT int + const ErrorStatusDuplicateVote + const ErrorStatusIneligibleTicket + const ErrorStatusInternalError + const ErrorStatusInvalid + const ErrorStatusInvalidVoteBit + const ErrorStatusLast + const ErrorStatusProposalNotFound + const ErrorStatusVoteHasEnded + type GetComments struct + Token string + func DecodeGetComments(payload []byte) (*GetComments, error) + type GetCommentsReply struct + Comments []Comment + func DecodeGetCommentsReply(payload []byte) (*GetCommentsReply, error) + type NewComment struct + Comment string + ParentID string + PublicKey string + Signature string + Token string + func DecodeNewComment(payload []byte) (*NewComment, error) + type NewCommentReply struct + CommentID string + Receipt string + Timestamp int64 + func DecodeNewCommentReply(payload []byte) (*NewCommentReply, error)