v1

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: GPL-3.0, GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalTokenInfo

type GlobalTokenInfo struct {
	Symbol      string
	TokenType   uint8 //1:prc20 2:prc721 3:vote 4:SysVote
	Status      uint8
	CreateAddr  string
	TotalSupply uint64
	SupplyAddr  string
	AssetID     dm.AssetId
}

type Vote

type Vote struct {
}

Vote

func (*Vote) CreateToken

func (v *Vote) CreateToken(stub shim.ChaincodeStubInterface, name string, voteType string, totalSupply uint64,
	voteEndTime string, voteContentJSON string) pb.Response

func (*Vote) GetAllVoteInfo added in v1.0.8

func (v *Vote) GetAllVoteInfo(stub shim.ChaincodeStubInterface) []*voteInfo

GetAllVoteInfo

func (*Vote) GetVoteInfo

func (v *Vote) GetVoteInfo(stub shim.ChaincodeStubInterface, assetID string) (*voteInfo, error)

GetVoteInfo

func (*Vote) GetVoteResult

func (v *Vote) GetVoteResult(stub shim.ChaincodeStubInterface, assetID string) (*tokenIDInfo, error)

GetVoteResult

func (*Vote) Init

func (v *Vote) Init(stub shim.ChaincodeStubInterface) pb.Response

Init

func (*Vote) Invoke

func (v *Vote) Invoke(stub shim.ChaincodeStubInterface) pb.Response

Invoke

func (*Vote) Support

func (v *Vote) Support(stub shim.ChaincodeStubInterface, supportRequestJSON string) pb.Response

Jump to

Keyboard shortcuts

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