Versions in this module Expand all Collapse all v1 v1.0.2 Jan 27, 2022 v1.0.1 Dec 1, 2021 Changes in this version + const GovernTokenKernelContract + const GovernTokenTypeOrdinary + const GovernTokenTypeTDPOS + const ProposalKernelContract + const ProposalStatusCancelled + const ProposalStatusCompletedAndFailure + const ProposalStatusCompletedAndSuccess + const ProposalStatusPassed + const ProposalStatusRejected + const ProposalStatusVoting + const StatusException + const StatusOK + const TDPOSKernelContract + const TimerTaskKernelContract + const XPOSKernelContract + func GetCacheKey() string + func GetDistributedKey() string + func GetGovernTokenBucket() string + func GetProposalBucket() string + func GetProposalIDKey() []byte + func GetTaskIDKey() []byte + func GetTimerBucket() string + func GetvoteCandidateKey() string + func MakeAccountBalanceKey(account string) string + func MakeCacheKey(account string) string + func MakeProposalKey(proposalID string) string + func MakeProposalLockKey(proposalID string, account string) string + func MakeProposalLockPrefix(proposalID string) string + func MakeProposalLockPrefixSeparator(proposalID string) string + func MakeTimerBlockHeightPrefix(blockHeight string) string + func MakeTimerBlockHeightPrefixSeparator(blockHeight string) string + func MakeTimerBlockHeightTaskKey(blockHeight string, taskID string) string + func MakeTotalSupplyKey() string + func MakevoteCandidateKey(account string) string + func PrefixRange(prefix []byte) []byte + func UnParse(proposal *Proposal) ([]byte, error) + type AllCandidate struct + Candidate map[string]string + type CacheVoteCandidate struct + Ratio int64 + TotalVote *big.Int + VotingUser map[string]*big.Int + type CandidateRatio struct + IsNominate bool + MyVoting map[string]*big.Int + Ratio int64 + TotalVote *big.Int + VotingUser map[string]*big.Int + func NewCandidateRatio() *CandidateRatio + type GovernTokenBalance struct + LockedBalance map[string]*big.Int + TotalBalance *big.Int + func NewGovernTokenBalance() *GovernTokenBalance + type Proposal struct + Args map[string]interface{} + Proposer string + Status string + Trigger *TriggerDesc + VoteAmount *big.Int + func Parse(proposalStr string) (*Proposal, error) + type TriggerDesc struct + Args map[string]interface{} + Contract string + Height int64 + Method string + Module string