Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

govtreasury source realm

Constants 1

Functions 14

func CreateProposal

crossing Action
1func CreateProposal(cur realm, recipient address, amount int64, description string, votingBlocks int64) int64
source

Types 2

type Proposal

struct
 1type Proposal struct {
 2	ID                   int64
 3	Proposer             address
 4	Recipient            address
 5	Amount               int64
 6	Description          string
 7	CreatedAtBlock       int64
 8	VotingDeadlineHeight int64
 9	Status               ProposalStatus
10	SnapshotMemberCount  int64
11	YesVotes             *avl.Tree
12	NoVotes              *avl.Tree
13}
source

type ProposalStatus

ident
1type ProposalStatus int
source

Methods on ProposalStatus

func String

method on ProposalStatus
1func (s ProposalStatus) String() string
source

Imports 6

Source Files 2