Documentation ¶
Index ¶
- Variables
- func NewCleanProposal(cleaner roxe.AccountName, proposalName roxe.Name, maxCount uint64) *roxe.Action
- func NewExpire(proposer roxe.AccountName, proposalName roxe.Name) *roxe.Action
- func NewPost(poster roxe.AccountName, postUUID, content string, ...) *roxe.Action
- func NewPropose(proposer roxe.AccountName, proposalName roxe.Name, title string, ...) *roxe.Action
- func NewStatus(account roxe.AccountName, content string) *roxe.Action
- func NewUnPost(poster roxe.AccountName, postUUID string) *roxe.Action
- func NewUnVote(voter roxe.AccountName, proposalName roxe.Name) *roxe.Action
- func NewVote(voter roxe.AccountName, proposalName roxe.Name, voteValue uint8, ...) *roxe.Action
- type CleanProposal
- type Expire
- type Post
- type Propose
- type Status
- type UnPost
- type UnVote
- type Vote
Constants ¶
This section is empty.
Variables ¶
View Source
var AN = roxe.AN
View Source
var ActN = roxe.ActN
View Source
var ForumAN = AN("roxe.forum")
View Source
var PN = roxe.PN
Functions ¶
func NewCleanProposal ¶
func NewCleanProposal(cleaner roxe.AccountName, proposalName roxe.Name, maxCount uint64) *roxe.Action
CleanProposal is an action to flush proposal and allow RAM used by it.
func NewPost ¶
func NewPost(poster roxe.AccountName, postUUID, content string, replyToPoster roxe.AccountName, replyToPostUUID string, certify bool, jsonMetadata string) *roxe.Action
NewPost is an action representing a simple message to be posted through the chain network.
func NewPropose ¶
func NewPropose(proposer roxe.AccountName, proposalName roxe.Name, title string, proposalJSON string, expiresAt roxe.JSONTime) *roxe.Action
NewPropose is an action to submit a proposal for vote.
func NewStatus ¶
func NewStatus(account roxe.AccountName, content string) *roxe.Action
Status is an action to set a status update for a given account on the forum contract.
func NewUnPost ¶
func NewUnPost(poster roxe.AccountName, postUUID string) *roxe.Action
NewUnPost is an action undoing a post that is active
Types ¶
type CleanProposal ¶
type CleanProposal struct { ProposalName roxe.Name `json:"proposal_name"` MaxCount uint64 `json:"max_count"` }
CleanProposal represents the `roxe.forum::clnproposal` action.
type Post ¶
type Post struct { Poster roxe.AccountName `json:"poster"` PostUUID string `json:"post_uuid"` Content string `json:"content"` ReplyToPoster roxe.AccountName `json:"reply_to_poster"` ReplyToPostUUID string `json:"reply_to_post_uuid"` Certify bool `json:"certify"` JSONMetadata string `json:"json_metadata"` }
Post represents the `roxe.forum::post` action.
type Propose ¶
type Propose struct { Proposer roxe.AccountName `json:"proposer"` ProposalName roxe.Name `json:"proposal_name"` Title string `json:"title"` ProposalJSON string `json:"proposal_json"` ExpiresAt roxe.JSONTime `json:"expires_at"` }
Propose represents the `roxe.forum::propose` action.
type Status ¶
type Status struct { Account roxe.AccountName `json:"account_name"` Content string `json:"content"` }
Status represents the `roxe.forum::status` action.
type UnPost ¶
type UnPost struct { Poster roxe.AccountName `json:"poster"` PostUUID string `json:"post_uuid"` }
UnPost represents the `roxe.forum::unpost` action.
Click to show internal directories.
Click to hide internal directories.