Name of the mockstub
Your chaincode
DelState removes the specified key
and its value from the ledger.
DelState removes the specified key
and its value from the ledger.
Get the current arguments
Get the stored payload for an event name in the local event map
GetHistory for key
Get a stored value for this key in the local state
Get state by range of keys, empty keys will return everything
GetQueryResult function can be invoked by a chaincode to perform a rich query against state database. Only supported by state database implementations that support rich query. The query string is in the syntax of the underlying state database. An iterator is returned which can be used to iterate (next) over the query result set.
Blog post on writing rich queries - https://medium.com/wearetheledger/hyperledger-fabric-couchdb-fantastic-queries-and-where-to-find-them-f8a3aecef767
GetQueryResult function can be invoked by a chaincode to perform a rich query against state database. Only supported by state database implementations that support rich query. The query string is in the syntax of the underlying state database. An iterator is returned which can be used to iterate (next) over the query result set.
Blog post on writing rich queries - https://medium.com/wearetheledger/hyperledger-fabric-couchdb-fantastic-queries-and-where-to-find-them-f8a3aecef767
Get a stored value for this key in the local state
Retrieve state by partial keys
Get state by range of keys, empty keys will return everything
Same as getArgs()
Returns mocked transient values. These need to be set using the mockInvoke or mockTransactionStart
InvokeChaincode calls a peered chaincode.
Initialise this chaincode, also starts and ends a transaction.
Invoke this chaincode, also starts and ends a transaction.
Invoke this chaincode, also starts and ends a transaction.
Register a peer chaincode with this MockStub invokableChaincodeName is the name or hash of the peer otherStub is a MockStub of the peer, already intialised
End a mocked transaction, clearing the UUID.
Used to indicate to a chaincode that it is part of a transaction. This is important when chaincodes invoke each other. MockStub doesn't support concurrent transactions at present.
Store a value for this key in the local state
Store a value for this key in the local state
Store a mspId of the transaction's creator
Store the payload corresponding to an event name to the local event map
Generated using TypeDoc