fabric-node-cc-utils
Utils for fabric nodejs chaincode.
const shim Chaincode parseCreator CouchDbQueryResult = ; /* Extends your class from Chaincode. Override Init if you want do something in Init. Every function in the class can be called by queryByChaincode/sendTransactionProposal. Return value of function will be sent to client by shim.success, string/Buffer/Object type is acceptable. Exceptions will be sent to client by shim.error.*/ static async { return subjectId; } async { return issuerId; } async { const q = args0; const res = await stub; return await res; } shimstart;