Versions in this module Expand all Collapse all v0 v0.1.0 Sep 21, 2019 Changes in this version + func DecodeRPCResult(msg proto.Message, r []byte) error + func EncodeRPCResult(msg proto.Message) ([]byte, error) + type Caller interface + Deploy func(method string, arg [][]byte) (string, error) + Invoke func(method string, arg [][]byte) (string, error) + Query func(method string, arg [][]byte) ([]byte, error) + type ChaincodeAdapter struct + TxIDGen func() string + func NewLocalChaincode(cc shim.Chaincode) *ChaincodeAdapter + func (c *ChaincodeAdapter) DefaultTxID() + func (c *ChaincodeAdapter) Deploy(method string, arg [][]byte) (string, error) + func (c *ChaincodeAdapter) Invoke(method string, arg [][]byte) (string, error) + func (c *ChaincodeAdapter) Query(method string, arg [][]byte) ([]byte, error) + func (c *ChaincodeAdapter) SpecifyTxID(txid string) + type DummyCallerBuilder struct + CCName string + func (c DummyCallerBuilder) Invoke(stub shim.ChaincodeStubInterface, function string, args [][]byte, _ bool) ([]byte, error) + func (d *DummyCallerBuilder) AppendPreHandler(h tx.TxPreHandler) error + func (d *DummyCallerBuilder) GetCaller(txid string, h tx.TxHandler) Caller + func (d *DummyCallerBuilder) GetQueryer(h tx.TxHandler) Caller + func (d *DummyCallerBuilder) NewTxID(txid string) + func (d *DummyCallerBuilder) Reset() + func (d *DummyCallerBuilder) Stub() *shim.MockStub