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 PRC20

type PRC20 struct {
}

PRC20 chainCode name

func (*PRC20) ChangeSupplyAddr

func (p *PRC20) ChangeSupplyAddr(stub shim.ChaincodeStubInterface, symbol string, newSupplyAddr string) error

ChangeSupplyAddr change supply address

func (*PRC20) CreateToken

func (p *PRC20) CreateToken(stub shim.ChaincodeStubInterface, name string, symbol string, decimals int,
	totalSupply uint64, supplyAddress string) ([]byte, error)

CreateToken create token implement

func (*PRC20) FrozenToken

func (p *PRC20) FrozenToken(stub shim.ChaincodeStubInterface, symbol string) error

FrozenToken frozen one token

func (*PRC20) GetAllTokenInfo

func (p *PRC20) GetAllTokenInfo(stub shim.ChaincodeStubInterface) []tokenIDInfo

GetAllTokenInfo get all token information

func (*PRC20) GetTokenInfo

func (p *PRC20) GetTokenInfo(stub shim.ChaincodeStubInterface, symbol string) (*tokenIDInfo, error)

GetTokenInfo get one token information

func (*PRC20) Init

Init chainCode when deploy a instance

func (*PRC20) Invoke

func (p *PRC20) Invoke(stub shim.ChaincodeStubInterface) pb.Response

Invoke functions of chainCode

func (*PRC20) SupplyToken

func (p *PRC20) SupplyToken(stub shim.ChaincodeStubInterface, symbol string, supplyDecimal decimal.Decimal) error

SupplyToken supply token implement

Jump to

Keyboard shortcuts

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