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