mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 07:25:10 +00:00
The build is only testing the Go chaincode for the asset-transfer-private-data sample. The behavior of the TypeScript chaincode implementation is not consistent with the Go and Java versions, which prevents it from working correctly. This change fixes the TypeScript chaincode implementation for the asset-transfer-private-data sample so that it works correctly. Additionally, some JSON property names are explicitly set in the Go client application sample, which prevented it from working with the Java and TypeScript chaincode implementations. 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": ">=20"
|
|
},
|
|
"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.12",
|
|
"sort-keys-recursive": "^2.1.10"
|
|
},
|
|
"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"
|
|
}
|
|
}
|