forum

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2020 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AN = yta.AN
View Source
var ActN = yta.ActN
View Source
var ForumAN = AN("eosio.forum")
View Source
var PN = yta.PN

Functions

func NewCleanProposal

func NewCleanProposal(cleaner yta.AccountName, proposalName yta.Name, maxCount uint64) *yta.Action

CleanProposal is an action to flush proposal and allow RAM used by it.

func NewExpire

func NewExpire(proposer yta.AccountName, proposalName yta.Name) *yta.Action

NewExpire is an action to expire a proposal ahead of its natural death.

func NewPost

func NewPost(poster yta.AccountName, postUUID, content string, replyToPoster yta.AccountName, replyToPostUUID string, certify bool, jsonMetadata string) *yta.Action

NewPost is an action representing a simple message to be posted through the chain network.

func NewPropose

func NewPropose(proposer yta.AccountName, proposalName yta.Name, title string, proposalJSON string, expiresAt yta.JSONTime) *yta.Action

NewPropose is an action to submit a proposal for vote.

func NewStatus

func NewStatus(account yta.AccountName, content string) *yta.Action

Status is an action to set a status update for a given account on the forum contract.

func NewUnPost

func NewUnPost(poster yta.AccountName, postUUID string) *yta.Action

NewUnPost is an action undoing a post that is active

func NewUnVote

func NewUnVote(voter yta.AccountName, proposalName yta.Name) *yta.Action

NewUnVote is an action representing the action to undoing a current vote

func NewVote

func NewVote(voter yta.AccountName, proposalName yta.Name, voteValue uint8, voteJSON string) *yta.Action

NewVote is an action representing a simple vote to be broadcast through the chain network.

Types

type CleanProposal

type CleanProposal struct {
	ProposalName yta.Name `json:"proposal_name"`
	MaxCount     uint64   `json:"max_count"`
}

CleanProposal represents the `eosio.forum::clnproposal` action.

type Expire

type Expire struct {
	ProposalName yta.Name `json:"proposal_name"`
}

Expire represents the `eosio.forum::propose` action.

type Post

type Post struct {
	Poster          yta.AccountName `json:"poster"`
	PostUUID        string          `json:"post_uuid"`
	Content         string          `json:"content"`
	ReplyToPoster   yta.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     yta.AccountName `json:"proposer"`
	ProposalName yta.Name        `json:"proposal_name"`
	Title        string          `json:"title"`
	ProposalJSON string          `json:"proposal_json"`
	ExpiresAt    yta.JSONTime    `json:"expires_at"`
}

Propose represents the `eosio.forum::propose` action.

type Status

type Status struct {
	Account yta.AccountName `json:"account_name"`
	Content string          `json:"content"`
}

Status represents the `eosio.forum::status` action.

type UnPost

type UnPost struct {
	Poster   yta.AccountName `json:"poster"`
	PostUUID string          `json:"post_uuid"`
}

UnPost represents the `eosio.forum::unpost` action.

type UnVote

type UnVote struct {
	Voter        yta.AccountName `json:"voter"`
	ProposalName yta.Name        `json:"proposal_name"`
}

UnVote represents the `eosio.forum::unvote` action.

type Vote

type Vote struct {
	Voter        yta.AccountName `json:"voter"`
	ProposalName yta.Name        `json:"proposal_name"`
	Vote         uint8           `json:"vote"`
	VoteJSON     string          `json:"vote_json"`
}

Vote represents the `eosio.forum::vote` action.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL