Versions in this module Expand all Collapse all v0 v0.1.0 Sep 21, 2019 Changes in this version + const Method_Add + const Method_Query + var NonceKeyFromString = pb.NonceKeyFromString + func GeneralTemplate(ccname string, cfg NonceConfig) (ret tx.CollectiveTxs) + func GeneralTokenNonceKey(txnonce []byte, from []byte, to []byte) pb.NonceKey + func NonceAddHandler(cfg NonceConfig) nonceAddHandler + func NonceQueryHandler(cfg NonceConfig) nonceQueryHandler + type GeneralCall struct + func (i *GeneralCall) Add(key []byte, amount *big.Int, from *pb.FuncRecord, to *pb.FuncRecord) error + func (i *GeneralCall) Nonce(key []byte) (error, *pb.NonceData_s) + type InnerConfig struct + func (c InnerConfig) NewTx(stub shim.ChaincodeStubInterface, nc []byte) TokenNonceTx + type NonceConfig interface + NewTx func(shim.ChaincodeStubInterface, []byte) TokenNonceTx + type StandardNonceConfig struct + Root string + func NewConfig(tag string) *StandardNonceConfig + func (cfg *StandardNonceConfig) NewTx(stub shim.ChaincodeStubInterface, _ []byte) TokenNonceTx + type TokenDuplicatedError []byte + func (TokenDuplicatedError) Error() string + type TokenNonceTx interface + Add func([]byte, *big.Int, *pb.FuncRecord, *pb.FuncRecord) error + Nonce func(key []byte) (error, *pb.NonceData_s)