sysconfigcc

package
v1.0.5-hotfix1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2020 License: GPL-3.0, GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpdateSysParamWithoutVote = "updateSysParamWithoutVote"
	CreateVotesTokens         = "createVotesTokens"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SysConfigChainCode

type SysConfigChainCode struct {
}

func (*SysConfigChainCode) CreateVotesTokens added in v1.0.3

func (s *SysConfigChainCode) CreateVotesTokens(stub shim.ChaincodeStubInterface, name string, totalSupply uint64,
	leastNum uint64, voteEndTime string, voteContentJSON string) ([]byte, error)

func (*SysConfigChainCode) GetVotesResult added in v1.0.3

func (*SysConfigChainCode) GetWithoutVoteResult added in v1.0.3

func (s *SysConfigChainCode) GetWithoutVoteResult(stub shim.ChaincodeStubInterface) ([]byte, error)

func (*SysConfigChainCode) Init

func (*SysConfigChainCode) Invoke

func (*SysConfigChainCode) NodesVote added in v1.0.3

func (s *SysConfigChainCode) NodesVote(stub shim.ChaincodeStubInterface, supportRequestJson string) ([]byte, error)

func (*SysConfigChainCode) UpdateSysParamWithoutVote added in v1.0.3

func (s *SysConfigChainCode) UpdateSysParamWithoutVote(stub shim.ChaincodeStubInterface, field, value string) ([]byte, error)

type SysSupportRequest

type SysSupportRequest struct {
	TopicIndex   uint64
	SelectIndexs []uint64
}

one user's support

type SysSupportResult added in v1.0.4

type SysSupportResult struct {
	TopicIndex  uint64
	TopicTitle  string
	VoteResults []*SysVoteResult
}

type SysTokenIDInfo added in v1.0.4

type SysTokenIDInfo struct {
	CreateAddr     string
	TotalSupply    uint64
	LeastNum       uint64
	AssetID        string
	CreateTime     int64
	IsVoteEnd      bool
	SupportResults []*SysSupportResult
}

type SysTokenInfo

type SysTokenInfo struct {
	Name        string
	Symbol      string
	CreateAddr  string
	LeastNum    uint64
	TotalSupply uint64
	VoteEndTime time.Time
	VoteContent []byte
	AssetID     modules.AssetId
}

vote token information

type SysTopicSupports

type SysTopicSupports struct {
	TopicTitle  string
	VoteResults []*SysVoteResult
	SelectMax   uint64
}

topic support result

type SysVoteResult added in v1.0.4

type SysVoteResult struct {
	SelectOption string
	Num          uint64
}

type SysVoteTopic

type SysVoteTopic struct {
	TopicTitle    string
	SelectOptions []string
	SelectMax     uint64
}

one topic

Jump to

Keyboard shortcuts

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