Documentation
¶
Index ¶
- type PRC20
- func (p *PRC20) ChangeSupplyAddr(stub shim.ChaincodeStubInterface, symbol string, newSupplyAddr string) error
- func (p *PRC20) CreateToken(stub shim.ChaincodeStubInterface, name string, symbol string, decimals int, ...) ([]byte, error)
- func (p *PRC20) FrozenToken(stub shim.ChaincodeStubInterface, symbol string) error
- func (p *PRC20) GetAllTokenInfo(stub shim.ChaincodeStubInterface) []tokenIDInfo
- func (p *PRC20) GetTokenInfo(stub shim.ChaincodeStubInterface, symbol string) (*tokenIDInfo, error)
- func (p *PRC20) Init(stub shim.ChaincodeStubInterface) pb.Response
- func (p *PRC20) Invoke(stub shim.ChaincodeStubInterface) pb.Response
- func (p *PRC20) SupplyToken(stub shim.ChaincodeStubInterface, symbol string, supplyDecimal decimal.Decimal) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
func (p *PRC20) Init(stub shim.ChaincodeStubInterface) pb.Response
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
Click to show internal directories.
Click to hide internal directories.