Versions in this module Expand all Collapse all v0 v0.0.1 May 4, 2024 Changes in this version + const ErrFuncNotImplemented + func BuildCreator(creatorMSP string, creatorCert []byte) ([]byte, error) + type StateRangeQueryIterator struct + Closed bool + Current *list.Element + EndKey string + StartKey string + Stub *Stub + func NewMockStateRangeQueryIterator(stub *Stub, startKey string, endKey string) *StateRangeQueryIterator + func (iter *StateRangeQueryIterator) Close() error + func (iter *StateRangeQueryIterator) HasNext() bool + func (iter *StateRangeQueryIterator) Next() (*queryresult.KV, error) + func (iter *StateRangeQueryIterator) Print() + type StateRangeQueryWithPaginationIterator struct + Closed bool + Elements []string + Stub *Stub + func NewMockStateRangeQueryWithPaginationIterator(stub *Stub, elements []string) *StateRangeQueryWithPaginationIterator + func (iter *StateRangeQueryWithPaginationIterator) Close() error + func (iter *StateRangeQueryWithPaginationIterator) HasNext() bool + func (iter *StateRangeQueryWithPaginationIterator) Next() (*queryresult.KV, error) + type Stub struct + ChaincodeEventsChannel chan *pb.ChaincodeEvent + ChannelID string + Decorations map[string][]byte + EndorsementPolicies map[string]map[string][]byte + Invokables map[string]*Stub + Keys *list.List + Name string + PvtState map[string]map[string][]byte + State map[string][]byte + TxID string + TxTimestamp *timestamp.Timestamp + func NewMockStub(name string, cc shim.Chaincode) *Stub + func (stub *Stub) CreateCompositeKey(objectType string, attributes []string) (string, error) + func (stub *Stub) DelPrivateData(_, _ string) error + func (stub *Stub) DelState(key string) error + func (stub *Stub) GetArgs() [][]byte + func (stub *Stub) GetArgsSlice() ([]byte, error) + func (stub *Stub) GetBinding() ([]byte, error) + func (stub *Stub) GetChannelID() string + func (stub *Stub) GetCreator() ([]byte, error) + func (stub *Stub) GetDecorations() map[string][]byte + func (stub *Stub) GetFunctionAndParameters() (function string, params []string) + func (stub *Stub) GetHistoryForKey(_ string) (shim.HistoryQueryIteratorInterface, error) + func (stub *Stub) GetPrivateData(collection string, key string) ([]byte, error) + func (stub *Stub) GetPrivateDataByPartialCompositeKey(_, _ string, _ []string) (shim.StateQueryIteratorInterface, error) + func (stub *Stub) GetPrivateDataByRange(_, _, _ string) (shim.StateQueryIteratorInterface, error) + func (stub *Stub) GetPrivateDataHash(_, _ string) ([]byte, error) + func (stub *Stub) GetPrivateDataQueryResult(_, _ string) (shim.StateQueryIteratorInterface, error) + func (stub *Stub) GetPrivateDataValidationParameter(collection, key string) ([]byte, error) + func (stub *Stub) GetQueryResult(_ string) (shim.StateQueryIteratorInterface, error) + func (stub *Stub) GetQueryResultWithPagination(_ string, _ int32, _ string) (shim.StateQueryIteratorInterface, *pb.QueryResponseMetadata, error) + func (stub *Stub) GetSignedProposal() (*pb.SignedProposal, error) + func (stub *Stub) GetState(key string) ([]byte, error) + func (stub *Stub) GetStateByPartialCompositeKey(objectType string, attributes []string) (shim.StateQueryIteratorInterface, error) + func (stub *Stub) GetStateByPartialCompositeKeyWithPagination(objectType string, keys []string, pageSize int32, bookmark string) (shim.StateQueryIteratorInterface, *pb.QueryResponseMetadata, error) + func (stub *Stub) GetStateByRange(startKey, endKey string) (shim.StateQueryIteratorInterface, error) + func (stub *Stub) GetStateByRangeWithPagination(startKey, endKey string, pageSize int32, bookmark string) (shim.StateQueryIteratorInterface, *pb.QueryResponseMetadata, error) + func (stub *Stub) GetStateValidationParameter(key string) ([]byte, error) + func (stub *Stub) GetStringArgs() []string + func (stub *Stub) GetTransient() (map[string][]byte, error) + func (stub *Stub) GetTxID() string + func (stub *Stub) GetTxTimestamp() (*timestamp.Timestamp, error) + func (stub *Stub) InvokeChaincode(chaincodeName string, args [][]byte, channel string) pb.Response + func (stub *Stub) MockInit(uuid string, args [][]byte) pb.Response + func (stub *Stub) MockInvoke(uuid string, args [][]byte) pb.Response + func (stub *Stub) MockInvokeWithSignedProposal(uuid string, args [][]byte, sp *pb.SignedProposal) pb.Response + func (stub *Stub) MockPeerChaincode(invokableChaincodeName string, otherStub *Stub) + func (stub *Stub) MockPeerChaincodeWithChannel(invokableChaincodeName string, otherStub *Stub, channel string) + func (stub *Stub) MockTransactionEnd(_ string) + func (stub *Stub) MockTransactionStart(txID string) + func (stub *Stub) PurgePrivateData(_, _ string) error + func (stub *Stub) PutBalanceToState(key string, balance *big.Int) error + func (stub *Stub) PutPrivateData(collection string, key string, value []byte) error + func (stub *Stub) PutState(key string, value []byte) error + func (stub *Stub) SetAdminCreatorCert(msp string) error + func (stub *Stub) SetCreator(creator []byte) + func (stub *Stub) SetCreatorCert(creatorMSP string, creatorCert []byte) error + func (stub *Stub) SetDefaultCreatorCert(msp string) error + func (stub *Stub) SetEvent(name string, payload []byte) error + func (stub *Stub) SetPrivateDataValidationParameter(collection, key string, ep []byte) error + func (stub *Stub) SetStateValidationParameter(key string, ep []byte) error + func (stub *Stub) SplitCompositeKey(compositeKey string) (string, []string, error)