Package Exports
- hyperledger-fabric-chaincode-helper
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hyperledger-fabric-chaincode-helper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
|| BLOCKOTUS || Chaincode Helper
for Hyperledger Fabric
Documentation
Built-in DID requests.
import { BlockotusContract } from 'hyperledger-fabric-chaincode-helper';
class MyContract extends BlockotusContract {
public anyfunction(ctx) {
const timestamp = this.getTimestamp(ctx);
const uniqueClientId = this.getUniqueClientId(ctx);
const params = this.getParams(ctx, { length: 2 });
}
/**
* Cross-contract invokeChaincode() does not support Parent Contract method as far as I know.
* This is why we duplicate the method here.
* Because the method is called from Did contract https://github.com/BLOCKOTUS/did
*/
public async did(ctx: Context, subject: string, method: string, data: string): Promise<string> {
return this.didRequest(ctx, subject, method, data);
}
}
Tool compatible with || BLOCKOTUS || Organism
Build complete decentralized applications with Blockotus Open and Decentralized Standard and Hyperledger Fabric.
The kit includes a Frontend (Svelte / React), a Backend (Nodejs / Express), a Network and Chaincode Contracts (Hyperledger Fabric) as specified by Blockotus Open and Decentralized Standard.