mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
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>
41 lines
1.8 KiB
JSON
Executable file
41 lines
1.8 KiB
JSON
Executable file
{
|
|
"name": "asset-transfer-private-data",
|
|
"version": "1.0.0",
|
|
"description": "Asset Transfer(Private Data Tutorial) contract implemented in TypeScript.",
|
|
"main": "dist/index.js",
|
|
"typings": "dist/index.d.ts",
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"scripts": {
|
|
"lint": "eslint src",
|
|
"pretest": "npm run lint",
|
|
"test": "",
|
|
"start": "set -x && fabric-chaincode-node start",
|
|
"build": "tsc",
|
|
"build:watch": "tsc -w",
|
|
"prepublishOnly": "npm run build",
|
|
"docker": "docker build -f ./Dockerfile -t asset-transfer-private-data .",
|
|
"package": "npm run build && npm shrinkwrap",
|
|
"start:server-nontls": "set -x && fabric-chaincode-node server --chaincode-address=$CHAINCODE_SERVER_ADDRESS --chaincode-id=$CHAINCODE_ID",
|
|
"start:server-debug": "set -x && NODE_OPTIONS='--inspect=0.0.0.0:9229' fabric-chaincode-node server --chaincode-address=$CHAINCODE_SERVER_ADDRESS --chaincode-id=$CHAINCODE_ID",
|
|
"start:server": "set -x && fabric-chaincode-node server --chaincode-address=$CHAINCODE_SERVER_ADDRESS --chaincode-id=$CHAINCODE_ID --chaincode-tls-key-file=/hyperledger/privatekey.pem --chaincode-tls-client-cacert-file=/hyperledger/rootcert.pem --chaincode-tls-cert-file=/hyperledger/cert.pem"
|
|
},
|
|
"engineStrict": true,
|
|
"author": "Hyperledger",
|
|
"license": "Apache-2.0",
|
|
"dependencies": {
|
|
"fabric-contract-api": "~2.5",
|
|
"fabric-shim": "~2.5",
|
|
"json-stringify-deterministic": "^1.0.0",
|
|
"sort-keys-recursive": "^2.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^18.19.33",
|
|
"@eslint/js": "^9.3.0",
|
|
"@tsconfig/node18": "^18.2.4",
|
|
"eslint": "^8.57.0",
|
|
"typescript": "~5.4.5",
|
|
"typescript-eslint": "^7.11.0"
|
|
}
|
|
}
|