fabric-samples/asset-transfer-private-data/chaincode-typescript
Mark S. Lewis e05ba0880d
Use more specific chaincode package versions
This demonstrates good practice in restricting the chaincode package
versions to those applicable for the specific Fabric (major/minor)
version targeted for deployment.

Also some corrections to the repository README. Particularly referring
to other branches for samples targeted at earlier Fabric versions, since
samples in the main branch may exploit features not available in older
Fabric releases, which can cause confusion for end users.

Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
2024-06-13 23:41:03 +01:00
..
docker chaincode-typescript 2023-05-17 13:40:30 -04:00
src Update Node chaincode for v2.5.5 release 2024-06-03 15:27:51 -04:00
.dockerignore chaincode-typescript 2023-05-17 13:40:30 -04:00
.gitignore chaincode-typescript 2023-05-17 13:40:30 -04:00
collections_config.json chaincode-typescript 2023-05-17 13:40:30 -04:00
Dockerfile chaincode-typescript 2023-05-17 13:40:30 -04:00
eslint.config.mjs Update Node chaincode for v2.5.5 release 2024-06-03 15:27:51 -04:00
npm-shrinkwrap.json Use more specific chaincode package versions 2024-06-13 23:41:03 +01:00
package.json Use more specific chaincode package versions 2024-06-13 23:41:03 +01:00
Readme.md chaincode-typescript 2023-05-17 13:40:30 -04:00
tsconfig.json Update Node chaincode for v2.5.5 release 2024-06-03 15:27:51 -04:00

Usage

This chaincode written for Hyperledger Fabric private data tutorial(https://hyperledger-fabric.readthedocs.io/en/latest/private_data_tutorial.html).

Deploy chaincode with:

  1. cd fabric-samples/asset-transfer-private-data/chaincode-typescript/
  2. npm install
  3. npm run build
  4. cd fabric-samples/test-network/
  5. ./network.sh deployCC -ccn private -ccp ../asset-transfer-private-data/chaincode-typescript/ -ccl typescript -ccep "OR('Org1MSP.peer','Org2MSP.peer')" -cccg ../asset-transfer-private-data/chaincode-typescript/collections_config.json