Documentation ¶
Index ¶
- Constants
- type SysConfigChainCode
- func (s *SysConfigChainCode) CreateVotesTokens(stub shim.ChaincodeStubInterface, name string, totalSupply uint64, ...) ([]byte, error)
- func (s *SysConfigChainCode) GetVotesResult(stub shim.ChaincodeStubInterface) (*SysTokenIDInfo, error)
- func (s *SysConfigChainCode) GetWithoutVoteResult(stub shim.ChaincodeStubInterface) ([]byte, error)
- func (s *SysConfigChainCode) Init(stub shim.ChaincodeStubInterface) peer.Response
- func (s *SysConfigChainCode) Invoke(stub shim.ChaincodeStubInterface) peer.Response
- func (s *SysConfigChainCode) NodesVote(stub shim.ChaincodeStubInterface, supportRequestJson string) ([]byte, error)
- func (s *SysConfigChainCode) UpdateSysParamWithoutVote(stub shim.ChaincodeStubInterface, field, value string) ([]byte, error)
- type SysSupportRequest
- type SysSupportResult
- type SysTokenIDInfo
- type SysTokenInfo
- type SysTopicSupports
- type SysVoteResult
- type SysVoteTopic
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 (s *SysConfigChainCode) GetVotesResult(stub shim.ChaincodeStubInterface) (*SysTokenIDInfo, error)
func (*SysConfigChainCode) GetWithoutVoteResult ¶ added in v1.0.3
func (s *SysConfigChainCode) GetWithoutVoteResult(stub shim.ChaincodeStubInterface) ([]byte, error)
func (*SysConfigChainCode) Init ¶
func (s *SysConfigChainCode) Init(stub shim.ChaincodeStubInterface) peer.Response
func (*SysConfigChainCode) Invoke ¶
func (s *SysConfigChainCode) Invoke(stub shim.ChaincodeStubInterface) peer.Response
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 ¶
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 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 SysVoteTopic ¶
one topic
Click to show internal directories.
Click to hide internal directories.