Documentation ¶
Index ¶
- Variables
- func CreateMessage(permType string, msg *CreateMessageData) *eos.Action
- func NewCleanProposal(cleaner eos.AccountName, proposalName eos.Name, maxCount uint64) *eos.Action
- func NewExpire(proposer eos.AccountName, proposalName eos.Name) *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(permType, voter, contentAuthor, contentPermlink string, weight int) *eos.Action
- func UpdateMessage(permType string, msg *UpdateMessageData) *eos.Action
- type CleanProposal
- type CreateMessageData
- type Expire
- type Propose
- type Status
- type UnPost
- type UnVote
- type UpdateMessageData
- type Vote
Constants ¶
This section is empty.
Variables ¶
var AN = eos.AN
var ActN = eos.ActN
var ForumAN = AN("gls.publish")
var PN = eos.PN
Functions ¶
func CreateMessage ¶
func CreateMessage(permType string, msg *CreateMessageData) *eos.Action
NewMessage is an action representing a simple message to be posted through the chain network.
func NewCleanProposal ¶
CleanProposal is an action to flush proposal and allow RAM used by it.
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
func NewVote ¶
NewVote is an action representing a simple vote to be broadcast through the chain network.
func UpdateMessage ¶
func UpdateMessage(permType string, msg *UpdateMessageData) *eos.Action
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 CreateMessageData ¶
type CreateMessageData struct { Id eos.MssgId `json:"message_id"` ParentId eos.MssgId `json:"parent_id"` Beneficiaries []eos.Beneficiary `json:"beneficiaries"` TokenProp uint16 `json:"tokenprop"` VestPayment bool `json:"vestpayment"` Header string `json:"headermssg"` Body string `json:"bodymssg"` Language string `json:"languagemssg"` Tags []string `json:"tags"` JsonMetadata string `json:"jsonmetadata"` CuratorsPrcnt uint16 `json:"curators_prcnt,ommitempty"` MaxPayout string `json:"max_payout,ommitempty"` }
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.
type UnVote ¶
type UnVote struct { Voter eos.AccountName `json:"voter"` ProposalName eos.Name `json:"proposal_name"` }
UnVote represents the `eosio.forum::unvote` action.