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