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