Versions in this module Expand all Collapse all v0 v0.1.0 Sep 21, 2019 Changes in this version + const Method_Assign + const Method_Init + const Method_QueryGlobal + const Method_QueryToken + const Method_TouchAddr + const Method_Transfer + const Method_Transfer2 + func AssignHandler(cfg TokenConfig) txh.TxHandler + func ExtendInvokingTemplate(cts tx.CollectiveTxs, verifier tx.AddrVerifier) tx.CollectiveTxs + func ExtendedQueryTemplate(ccname string, cfg LocalConfig) (ret tx.CollectiveTxs) + func GeneralAdminTemplate(ccname string, cfg TokenConfig) (ret tx.CollectiveTxs) + func GeneralInvokingTemplate(ccname string, cfg TokenConfig) (ret tx.CollectiveTxs) + func GeneralQueryTemplate(ccname string, cfg TokenConfig) (ret tx.CollectiveTxs) + func GlobalQueryHandler(cfg TokenConfig) txh.TxHandler + func InitHandler(cfg TokenConfig) txh.TxHandler + func NewTokenTxImpl(rt *runtime.ChaincodeRuntime, nc []byte, ncTx nonce.TokenNonceTx) *baseTokenTx + func TokenQueryHandler(cfg TokenConfig) txh.TxHandler + func TouchHandler(TokenConfig) txh.TxHandler + func TransferHandler(cfg TokenConfig) txh.TxHandler + func TransferHandler2(cfg TokenConfig) txh.TxHandler + type GeneralCall struct + func (i *GeneralCall) Account(addr []byte) (error, *pb.AccountData_s) + func (i *GeneralCall) Assign(to []byte, amount *big.Int) (pb.NonceKey, error) + func (i *GeneralCall) Global() (error, *pb.TokenGlobalData_s) + func (i *GeneralCall) Init(amount *big.Int) error + func (i *GeneralCall) TouchAddr(to []byte) error + func (i *GeneralCall) Transfer(from []byte, to []byte, amount *big.Int) (pb.NonceKey, error) + func (i *GeneralCall) Transfer2(from []byte, to []byte, amount *big.Int) (pb.NonceKey, error) + type InnerInvokeConfig struct + func (c InnerInvokeConfig) NewTx(stub shim.ChaincodeStubInterface, nc []byte) TokenTx + type LocalConfig interface + Nonce func() nonce.NonceConfig + type StandardTokenConfig struct + NonceCfg nonce.NonceConfig + Root string + func NewConfig(tag string) *StandardTokenConfig + func (cfg *StandardTokenConfig) NewTx(stub shim.ChaincodeStubInterface, nc []byte) TokenTx + type TokenConfig interface + NewTx func(shim.ChaincodeStubInterface, []byte) TokenTx + type TokenTx interface + Account func(addr []byte) (error, *pb.AccountData_s) + Assign func(to []byte, amount *big.Int) (pb.NonceKey, error) + Global func() (error, *pb.TokenGlobalData_s) + Init func(amount *big.Int) error + TouchAddr func([]byte) error + Transfer func(from []byte, to []byte, amount *big.Int) (pb.NonceKey, error) + Transfer2 func(from []byte, to []byte, amount *big.Int) (pb.NonceKey, error) + type TokenTxExt interface