Versions in this module Expand all Collapse all v0 v0.1.0 Sep 21, 2019 Changes in this version + type Chaincode interface + Invoke func(stub ChaincodeStubInterface, function string, args [][]byte, readonly bool) ([]byte, error) + type ChaincodeStubInterface interface + DelState func(key string) error + GetArgs func() [][]byte + GetBinding func() ([]byte, error) + GetRawStub func() interface{} + GetState func(key string) ([]byte, error) + GetStringArgs func() []string + GetTxID func() string + GetTxTime func() (time.Time, error) + PutState func(key string, value []byte) error + RangeQueryState func(startKey, endKey string) (StateRangeQueryIteratorInterface, error) + SetEvent func(name string, payload []byte) error + type MockStateRangeQueryIterator struct + Closed bool + Current *list.Element + EndKey string + StartKey string + Stub *MockStub + func NewMockStateRangeQueryIterator(stub *MockStub, startKey string, endKey string) *MockStateRangeQueryIterator + func (iter *MockStateRangeQueryIterator) Close() error + func (iter *MockStateRangeQueryIterator) HasNext() bool + func (iter *MockStateRangeQueryIterator) Next() (string, []byte, error) + func (iter *MockStateRangeQueryIterator) Print() + type MockStub struct + EventHandler func(string, []byte) error + Invokables map[string]*MockStub + InvokedCCName string + Keys *list.List + Name string + State map[string][]byte + TxID string + func NewMockStub(name string, cc Chaincode) *MockStub + func (stub *MockStub) DelState(key string) error + func (stub *MockStub) GetArgs() [][]byte + func (stub *MockStub) GetBinding() ([]byte, error) + func (stub *MockStub) GetCallerAttribute(attributeName string) ([]byte, error) + func (stub *MockStub) GetCallerCertificate() ([]byte, error) + func (stub *MockStub) GetCallingChaincodeName() string + func (stub *MockStub) GetOriginalChaincodeName() string + func (stub *MockStub) GetRawStub() interface{} + func (stub *MockStub) GetState(key string) ([]byte, error) + func (stub *MockStub) GetStringArgs() []string + func (stub *MockStub) GetTxID() string + func (stub *MockStub) GetTxTime() (time.Time, error) + func (stub *MockStub) InvokeChaincode(chaincodeName string, function string, args [][]byte) ([]byte, error) + func (stub *MockStub) MockInit(uuid string, function string, args [][]byte) ([]byte, error) + func (stub *MockStub) MockInvoke(uuid string, function string, args [][]byte) ([]byte, error) + func (stub *MockStub) MockPeerChaincode(invokableChaincodeName string, otherStub *MockStub) + func (stub *MockStub) MockQuery(function string, args [][]byte) ([]byte, error) + func (stub *MockStub) MockTransactionEnd(uuid string, e error) + func (stub *MockStub) MockTransactionStart(txid string) + func (stub *MockStub) PutState(key string, value []byte) error + func (stub *MockStub) QueryChaincode(chaincodeName string, function string, args [][]byte) ([]byte, error) + func (stub *MockStub) RangeQueryState(startKey, endKey string) (StateRangeQueryIteratorInterface, error) + func (stub *MockStub) SetEvent(name string, payload []byte) error + type StateRangeQueryIteratorInterface interface + Close func() error + HasNext func() bool + Next func() (string, []byte, error)