Skip to content

Commit

Permalink
feat(validator, tools): validators including execSyncFunction and tes…
Browse files Browse the repository at this point in the history
…t-tools for sample app

Signed-off-by: Takuma TAKEUCHI <takeuchi.takuma@fujitsu.com>
  • Loading branch information
takeutak committed Dec 13, 2020
1 parent 494a383 commit 42f9cb5
Show file tree
Hide file tree
Showing 46 changed files with 448 additions and 147 deletions.
10 changes: 6 additions & 4 deletions examples/cartrade/BusinessLogicCartrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,14 @@ export class BusinessLogicCartrade extends BusinessLogicBase {
const transactionData: TransactionData = new TransactionData("transfer", "ledger002", result.txId);
this.transactionInfoManagement.setTransactionData(tradeInfo, transactionData);

// Set LedgerOperation
// logger.debug('secondTransaction data : ' + JSON.stringify(result.data));
const ledgerOperation: LedgerOperation = new LedgerOperation("sendSignedProposal", "", result.data);
// Set Parameter
//logger.debug('secondTransaction data : ' + JSON.stringify(result.data));
const contract = {"channelName": "mychannel"};
const method = {"method": "sendSignedProposal"};
const args = {"args": [result.data]};

// Run Verifier (Fabric)
verifierFabric.requestLedgerOperation(ledgerOperation);
verifierFabric.requestLedgerOperationNeo(contract, method, args);
})
.catch(err => {
logger.error(err);
Expand Down
55 changes: 16 additions & 39 deletions examples/cartrade/README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,23 @@
# example-cartrade

## Premise
- Launch two Validators (For Ethereum and Fabric)
- for Ethereum:
- `/packages/ledger-plugin/go-ethereum-ts/validator`
- "validatorUrl": `https://localhost:5050`,
1. cd `/packages/ledger-plugin/go-ethereum-ts/validator/src`
1. npm install
1. npm run build
1. npm run start
- for Fabric:
- `/packages/ledger-plugin/fabric/validator`
- "validatorUrl": `https://localhost:5040`,

- The following drivers are operating normally (* It is also necessary to check the operation.).
- for Ethereum:
- `/packages/ledger-plugin/go-ethereum/validator/unit-test/validatorDriver_getNumericBalance.js`
- for Fabric:
- `/packages/ledger-plugin/fabric/validator/unit-test/queryCar.js`
- `/packages/ledger-plugin/fabric/validator/unit-test/validatorDriver_signTransactionOffline.js`

## Boot method
1. cd `/packages`
1. npm install
1. Modify the following information for your environment

1. Before booting, please modify the following information for your environment
- applicationHostInfo.hostName (URL of the host on the Location header) on `/packages/config/default.json`
- applicationHostInfo.hostPort (The port number of Routing-interface http server) on `/packages/config/default.json`
1. npm run package-build
1. cd BIF-trial/examples/cartrade
1. npm install
1. Modify the following information for your environment
- corrected escrow account information, etc. on `/examples/cartrade/config/default.json`
- cartradeInfo.fabric.submitter.certificate (certificate for admin)
- cartradeInfo.fabric.submitter.pkey (admin private key)
- carriadeInfo.ethereum.fromAddressPkey (private key of fromAddress)
- cartradeInfo.ethereum.escrowAddress (Address of the escrow account)
- carriadeInfo.ethereum.escrowAddressPkey (secret key of the escrow account)
- **NOTE**: The parameters which do not modified on `/examples/cartrade/config/usersetting.json` are specified by the parameters on `/packages/config/default.json`
1. npm run cartrade-build
- **NOTE**: The above operation `npm run cartrade-build` is operated for building a symbolic link of node_modules. So this operation only needs to be done once, and there is no need to do it a second time or later.
1. npm run start
- cartrade application boots on port 5034.

1. Start ledgers:
- `./script-start-ledgers.sh`
1. Build validators, packages, and the cartrade app:
- `./script-build-all.sh`
1. Start validators and the cartrade app
- Please open three consoles and execute the following:.
- Start the validator for Fabric:
`./script-start-validator-fabric.sh`
- Start the validator for Ethereum:
`./script-start-validator-ethereum.sh`
- Start the cartrade app:
`./script-start-cartrade.sh`

## How to use this application
- Run with curl, etc. Currently only POST is available.
Expand Down Expand Up @@ -80,7 +57,7 @@
- Example output
```
##queryCar Params: CAR1
Transaction has been evaluated, result is: {"colour":"red","make":"Ford","model":"Mustang","owner":"fuser02"}
Transaction has been evaluated, result is: {"colour":"red","make":"Ford","model":"Mustang","owner":"user02"}
```
- How to change the ownership of the car by hand
- ``/packages/ledger-plugin/fabric/validator/unit-test/validatorDriver_signTransactionOffline.js``
5 changes: 4 additions & 1 deletion examples/cartrade/TransactionEthereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ export function makeRawTransaction(txParam: { fromAddress: string, fromAddressPk
// const gasPrice: string = web3.eth.getGasPrice();

const latestNonce = getLatestNonce(txParam.fromAddress);
logger.debug(`#####(A) _nonce: ${_nonce}, latestNonce: ${latestNonce}`);
logger.debug(`####makeRawTransaction(): fromAddress: ${txParam.fromAddress}, txnCount: ${web3.utils.toHex(txnCount)}, latestNonce: ${web3.utils.toHex(latestNonce)}`);
if (txnCount <= latestNonce) {
txnCount = latestNonce + 1;
logger.debug(`####makeRawTransaction(): Adjust txnCount, fromAddress: ${txParam.fromAddress}, txnCount: ${web3.utils.toHex(txnCount)}, latestNonce: ${web3.utils.toHex(latestNonce)}`);
}
logger.debug(`#####(B) _nonce: ${_nonce}, latestNonce: ${latestNonce}, txnCount: ${txnCount}`);
setLatestNonce(txParam.fromAddress, txnCount);

const privKey: Buffer = Buffer.from(txParam.fromAddressPkey, 'hex');
Expand Down Expand Up @@ -97,7 +99,8 @@ function getLatestNonce(fromAddress: string): number {
if (mapFromAddressNonce.has(fromAddress)) {
return mapFromAddressNonce.get(fromAddress);
}
return 0;
//return 0;
return -1;
}

function setLatestNonce(fromAddress: string, nonce: number): void {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-----BEGIN PRIVATE KEY-----
MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgpPt9pQjjYIPHH28L
xAwI0ZAv5gVp0FlpVXuAeHfkstWhRANCAAQ2Q0fFCgt+iVPeXF25tvbi+CoMIImg
QL/WXFrUH3BXYTHtm1F4nw7E303lKuMYWH2ZPujqiceNqgeea0kZLNGP
-----END PRIVATE KEY-----
1 change: 1 addition & 0 deletions examples/cartrade/build/wallet/admin/admin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"admin","mspid":"Org1MSP","roles":null,"affiliation":"","enrollmentSecret":"","enrollment":{"signingIdentity":"fde5542b37efe547102f4fe8d0f8e1df521c6ba8b78e43a2eedc7fe152c3d407","identity":{"certificate":"-----BEGIN CERTIFICATE-----\nMIICAjCCAaigAwIBAgIUYcAcX63XaN2Omym6hEXF+Kxzx2QwCgYIKoZIzj0EAwIw\nczELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh\nbiBGcmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhhbXBsZS5jb20xHDAaBgNVBAMT\nE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMjAwNzI3MTAzNDAwWhcNMjEwNzI3MTAz\nOTAwWjAhMQ8wDQYDVQQLEwZjbGllbnQxDjAMBgNVBAMTBWFkbWluMFkwEwYHKoZI\nzj0CAQYIKoZIzj0DAQcDQgAE0TjOYDQfDbAOU3wYNvxgeaTE/r88BieO5V4yu/6E\nJk4yBHscyaRCnrLZ9eqyFa5+3G5V0mA7hbTw48mdeMArsKNsMGowDgYDVR0PAQH/\nBAQDAgeAMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFBMOvw1wPpaBeZIpqc3AFbGs\nY0KMMCsGA1UdIwQkMCKAIEI5qg3NdtruuLoM2nAYUdFFBNMarRst3dusalc2Xkl8\nMAoGCCqGSM49BAMCA0gAMEUCIQDXvckX5bZ5mGPHpQ49aKSFsGJkwrX1BnW7DwA+\n4suQPQIgVGKIiQBQDGlOQHkt9lqno/yFiFZSjzZSS24LFIJNKU4=\n-----END CERTIFICATE-----\n"}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-----BEGIN PRIVATE KEY-----
MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgQ3pbxM94ZzHPEHW7
5TQ1N/WfCLSgqY97dfyF34WiJz2hRANCAATROM5gNB8NsA5TfBg2/GB5pMT+vzwG
J47lXjK7/oQmTjIEexzJpEKestn16rIVrn7cblXSYDuFtPDjyZ14wCuw
-----END PRIVATE KEY-----
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE0TjOYDQfDbAOU3wYNvxgeaTE/r88
BieO5V4yu/6EJk4yBHscyaRCnrLZ9eqyFa5+3G5V0mA7hbTw48mdeMArsA==
-----END PUBLIC KEY-----
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-----BEGIN PRIVATE KEY-----
MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgpPt9pQjjYIPHH28L
xAwI0ZAv5gVp0FlpVXuAeHfkstWhRANCAAQ2Q0fFCgt+iVPeXF25tvbi+CoMIImg
QL/WXFrUH3BXYTHtm1F4nw7E303lKuMYWH2ZPujqiceNqgeea0kZLNGP
-----END PRIVATE KEY-----
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAENkNHxQoLfolT3lxdubb24vgqDCCJ
oEC/1lxa1B9wV2Ex7ZtReJ8OxN9N5SrjGFh9mT7o6onHjaoHnmtJGSzRjw==
-----END PUBLIC KEY-----
1 change: 1 addition & 0 deletions examples/cartrade/build/wallet/user1/user1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"user1","mspid":"Org1MSP","roles":null,"affiliation":"","enrollmentSecret":"","enrollment":{"signingIdentity":"86ed77857b77523010fa77e3ae2ba34711c73899d182951ec634fcc918855738","identity":{"certificate":"-----BEGIN CERTIFICATE-----\nMIICjzCCAjWgAwIBAgIUZ7tZrUc30ljAj/wqwn6YQdicE2owCgYIKoZIzj0EAwIw\nczELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh\nbiBGcmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhhbXBsZS5jb20xHDAaBgNVBAMT\nE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMjAwNzI3MTAzNDAwWhcNMjEwNzI3MTAz\nOTAwWjBCMTAwDQYDVQQLEwZjbGllbnQwCwYDVQQLEwRvcmcxMBIGA1UECxMLZGVw\nYXJ0bWVudDExDjAMBgNVBAMTBXVzZXIxMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcD\nQgAENkNHxQoLfolT3lxdubb24vgqDCCJoEC/1lxa1B9wV2Ex7ZtReJ8OxN9N5Srj\nGFh9mT7o6onHjaoHnmtJGSzRj6OB1zCB1DAOBgNVHQ8BAf8EBAMCB4AwDAYDVR0T\nAQH/BAIwADAdBgNVHQ4EFgQUCuQpahuX4zI/56Yuz0SzraMNSxswKwYDVR0jBCQw\nIoAgQjmqDc122u64ugzacBhR0UUE0xqtGy3d26xqVzZeSXwwaAYIKgMEBQYHCAEE\nXHsiYXR0cnMiOnsiaGYuQWZmaWxpYXRpb24iOiJvcmcxLmRlcGFydG1lbnQxIiwi\naGYuRW5yb2xsbWVudElEIjoidXNlcjEiLCJoZi5UeXBlIjoiY2xpZW50In19MAoG\nCCqGSM49BAMCA0gAMEUCIQC1sqCa6OPKOugucF0BLPaXJe/YdA2FVa73gClqL3Yc\nxQIgfQHuZvgeQHol51W3HNIQ1OaqSOqJdtrRZ1rFOdDmvJs=\n-----END CERTIFICATE-----\n"}}}
118 changes: 15 additions & 103 deletions examples/cartrade/package.json
Original file line number Diff line number Diff line change
@@ -1,98 +1,18 @@
{
"name": "@hyperledger-labs/cactus",
"name": "cartrade",
"private": true,
"scripts": {
"run-ci": "./tools/ci.sh",
"configure": "lerna clean --yes && lerna bootstrap && npm-run-all build generate-api-server-config",
"generate-api-server-config": "node ./tools/generate-api-server-config.js",
"start:api-server": "node ./packages/cactus-cmd-api-server/dist/lib/main/typescript/cmd/cactus-api.js --config-file=.config.json",
"start:cockpit": "lerna run --scope '*/cactus-cockpit' --stream serve:proxy",
"export-open-api-spec": "ts-node -e 'import(\"./packages/cactus-cmd-api-server/src/main/typescript/openapi-spec\").then((x) => x.exportToFileSystemAsJson());'",
"pregenerate-sdk": "npm-run-all export-open-api-spec",
"generate-sdk": "openapi-generator generate --input-spec cactus-openapi-spec.json -g typescript-axios -o packages/cactus-sdk/src/main/typescript/generated/openapi/typescript-axios/",
"clean": "lerna exec --stream --ignore '*/*cockpit' -- del-cli dist/** && del-cli packages/cactus-sdk/src/main/typescript/generated/openapi/typescript-axios/*",
"lint": "lerna exec --stream --ignore '*/*cockpit' -- cross-env DEBUG= tslint --project tsconfig.json",
"tsc": "lerna run tsc",
"build": "npm-run-all build:dev build:prod",
"build:prod": "npm-run-all build:prod:backend webpack:prod:web build:prod:frontend",
"build:prod:backend": "npm-run-all webpack:prod:node",
"build:prod:frontend": "lerna run build:prod:frontend",
"build:dev": "npm-run-all build:dev:backend webpack:dev:web build:dev:frontend",
"build:dev:backend": "npm-run-all lint clean generate-sdk tsc webpack:dev:node",
"build:dev:frontend": "lerna run build:dev:frontend",
"build:dev:cmd-api-server": "lerna exec --stream --scope '*/*api-server' -- 'del-cli dist/** && tsc --project ./tsconfig.json && webpack --env=dev --target=node --config ../../webpack.config.js'",
"build:dev:common": "lerna exec --stream --scope '*/*common' -- 'del-cli dist/** && tsc --project ./tsconfig.json && webpack --env=dev --target=node --config ../../webpack.config.js'",
"build:dev:core-api": "lerna exec --stream --scope '*/*core-api' -- 'del-cli dist/** && tsc --project ./tsconfig.json && webpack --env=dev --target=node --config ../../webpack.config.js'",
"build:dev:test-tooling": "lerna exec --stream --scope '*/*test-tooling' -- 'del-cli dist/** && tsc --project ./tsconfig.json && webpack --env=dev --target=node --config ../../webpack.config.js'",
"build:dev:plugin-ledger-connector-quorum": "lerna exec --stream --scope '*/*connector-quorum' -- 'del-cli dist/** && tsc --project ./tsconfig.json && webpack --env=dev --target=node --config ../../webpack.config.js'",
"build:dev:plugin-consortium-manual": "lerna exec --stream --scope '*/*manual-consortium' -- 'del-cli dist/** && tsc --project ./tsconfig.json && webpack --env=dev --target=node --config ../../webpack.config.js'",
"build:dev:sdk": "lerna exec --stream --scope '*/*sdk' -- 'del-cli dist/** && tsc --project ./tsconfig.json && webpack --env=dev --target=node --config ../../webpack.config.js'",
"webpack": "npm-run-all webpack:dev webpack:prod",
"webpack:dev": "lerna run webpack:dev",
"webpack:dev:web": "lerna run webpack:dev:web",
"webpack:dev:node": "lerna run webpack:dev:node",
"webpack:prod": "lerna run webpack:prod",
"webpack:prod:web": "lerna run webpack:prod:web",
"webpack:prod:node": "lerna run webpack:prod:node",
"test:all": "tap --jobs=1 --timeout=600 \"packages/cactus-*/src/test/typescript/{unit,integration}/\"",
"test:unit": "tap --timeout=600 \"packages/cactus-*/src/test/typescript/unit/\"",
"test:browser": "karma start karma.conf.js",
"test:integration": "tap --jobs=1 --timeout=600 \"packages/cactus-*/src/test/typescript/integration/\"",
"changelog": "conventional-changelog --infile CHANGELOG.md --outfile CHANGELOG.md && git add CHANGELOG.md",
"commit": "git-cz --signoff",
"prettier": "prettier --write --config .prettierrc.json \"./**/*.{ts,js}\"",
"version": "lerna version --no-push --conventional-commits --sign-git-commit --sign-git-tag",
"cartrade-start": "node ../../dist/packages/routing-interface/www.js",
"cartrade-debug": "nodemon --inspect ../../dist/packages/routing-interface/www.js",
"cartrade-build": "npm run cartrade-build-ts && npm run cartrade-copy-static-assets && npm run cartrade-copy-blp-config && npm run cartrade-replace-blp-config-path",
"cartrade-build-ts": "tsc -p ./tsconfig.json",
"cartrade-tslint": "tslint -c tslint.json -p tsconfig.json './*.ts'",
"cartrade-copy-static-assets": "ts-node copyStaticAssets.ts",
"cartrade-copy-blp-config": "ts-node copyBLPConfig.ts",
"cartrade-replace-blp-config-path": "ts-node replaceBLPConfigPath.ts",
"cartrade-init-cartrade": "ln -s ../examples/cartrade/node_modules ../../dist/node_modules"
"start": "node ../../dist/packages/routing-interface/www.js",
"debug": "nodemon --inspect ../../dist/packages/routing-interface/www.js",
"build": "npm run build-ts && npm run copy-static-assets && npm run copy-blp-config && npm run replace-blp-config-path",
"build-ts": "tsc -p ./tsconfig.json",
"tslint": "tslint -c tslint.json -p tsconfig.json './*.ts'",
"copy-static-assets": "ts-node copyStaticAssets.ts",
"copy-blp-config": "ts-node copyBLPConfig.ts",
"replace-blp-config-path": "ts-node replaceBLPConfigPath.ts",
"init-cartrade": "ln -s ../examples/cartrade/node_modules ../../dist/node_modules"
},
"devDependencies": {
"@commitlint/cli": "8.1.0",
"@commitlint/config-conventional": "8.0.0",
"@openapitools/openapi-generator-cli": "1.0.10-4.2.3",
"@types/node-fetch": "2.5.4",
"@types/tape": "4.13.0",
"@types/uuid": "3.4.6",
"cache-loader": "4.1.0",
"commitizen": "4.0.3",
"conventional-changelog-cli": "2.0.28",
"cross-env": "5.2.0",
"cz-conventional-changelog": "3.0.2",
"del-cli": "3.0.0",
"electron": "9.1.1",
"eslint-config-standard": "12.0.0",
"eslint-plugin-import": "2.17.3",
"eslint-plugin-node": "9.1.0",
"eslint-plugin-promise": "4.1.1",
"eslint-plugin-standard": "4.0.0",
"husky": "4.2.5",
"inquirer": "7.1.0",
"karma": "5.1.0",
"karma-chrome-launcher": "3.1.0",
"karma-electron": "6.3.1",
"karma-tap": "4.2.0",
"karma-webpack": "4.0.2",
"lerna": "3.20.2",
"lint-staged": "10.2.2",
"npm-run-all": "4.1.5",
"prettier": "2.0.5",
"secp256k1": "4.0.0",
"source-map-loader": "0.2.4",
"tap": "14.10.6",
"tape": "5.0.1",
"ts-loader": "6.2.1",
"ts-node": "8.9.1",
"tslint": "6.0.0",
"typescript": "3.9.3",
"webpack": "4.41.6",
"webpack-bundle-analyzer": "3.6.0",
"webpack-cli": "3.3.11",
"dependencies": {
"@types/node": "^14.0.24",
"body-parser": "^1.19.0",
"cookie-parser": "~1.4.4",
Expand All @@ -108,19 +28,11 @@
"morgan": "~1.9.1",
"shelljs": "^0.8.4",
"socket.io": "^2.0.4",
"ts-node": "8.9.1",
"web3": "^1.2.9"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"./**/*.{ts,js}": "prettier --write --config .prettierrc.json"
"devDependencies": {
"tslint": "6.0.0",
"typescript": "3.9.3"
}
}
19 changes: 19 additions & 0 deletions examples/cartrade/script-build-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Build validator for Fabric
cd ../../packages/ledger-plugin/fabric/validator/src/
./script-build-validator.sh
cp -a ../../../../../examples/cartrade/build/wallet/ .
cd ../../../../../

## build validator for Ethereum
cd ./packages/ledger-plugin/go-ethereum/validator/src/
./script-build-validator.sh
cd ../../../../../

## build packages
cd ./packages/
./script-build-packages.sh
cd ..

## build cartrade apps
cd ./examples/cartrade
./script-build-cartrade.sh
4 changes: 4 additions & 0 deletions examples/cartrade/script-build-cartrade.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Build a cartrade app
echo "[process] Build a cartrade app"
npm install
npm run build
1 change: 1 addition & 0 deletions examples/cartrade/script-post-cartrade-sample.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
curl localhost:5034/api/v1/bl/trades/ -XPOST -H "Content-Type: application/json" -d '{"businessLogicID":"guks32pf","tradeParams":["0xec709e1774f0ce4aba47b52a499f9abaaa159f71", "0x9d624f7995e8bd70251f8265f2f9f2b49f169c55", "user01", "user02", 50, "CAR1"],"authParams":["param"]}'
7 changes: 7 additions & 0 deletions examples/cartrade/script-start-cartrade.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cd ../../

## Start cartrade app
echo "[process] Start the routing interface and the cartrade app"
cd ./examples/cartrade
npm run init-cartrade # for making a symbolic link for node_modules. This command only needs to be run once.
npm run start
8 changes: 8 additions & 0 deletions examples/cartrade/script-start-ledgers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Start docker environment for Fabric testnet
cd ../../tools/docker/fabric14-fabcar-testnet
./script-start-docker.sh
cd ../../..

## Start docker environment for Go-Ethereum testnet
cd ../../tools/docker/geth-testnet
./script-start-docker.sh
5 changes: 5 additions & 0 deletions examples/cartrade/script-start-validator-ethereum.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cd ..

echo "[process] Start the validator for Go-Ethereum"
cd ./packages/ledger-plugin/go-ethereum/validator/src
npm run start
5 changes: 5 additions & 0 deletions examples/cartrade/script-start-validator-fabric.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cd ..

echo "[process] Start the validator for Fabric"
cd ./packages/ledger-plugin/fabric/validator/src
npm run start
4 changes: 4 additions & 0 deletions packages/script-build-packages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Build packages
echo "[process] Build packages"
npm install
num run build
4 changes: 4 additions & 0 deletions tools/docker/fabric14-fabcar-testnet/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
chaincode/hyperledger
fabcar/javascript/wallet
fabcar/javascript/node_modules

Loading

0 comments on commit 42f9cb5

Please sign in to comment.