Skip to content

Commit

Permalink
adapt to caliper v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vita-dounai committed Sep 12, 2019
1 parent 3097460 commit 2e49b4c
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 13 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Each `caliper-<adapter>` is a separate package that contains a distinct adaptor
- caliper-fabric
- caliper-iroha
- caliper-sawtooth
- caliper-fisco-bcos

Each adaptor implements the `BlockchainInterface` from the core package, as well as a `ClientFactory` and `ClientWorker` that are bespoke to the adaptor.

Expand Down
1 change: 1 addition & 0 deletions packages/caliper-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@hyperledger/caliper-fabric": "^0.1.0",
"@hyperledger/caliper-iroha": "^0.1.0",
"@hyperledger/caliper-sawtooth": "^0.1.0",
"@hyperledger/caliper-fisco-bcos": "^0.0.1",
"chalk": "1.1.3",
"yargs": "10.0.3"
},
Expand Down
7 changes: 2 additions & 5 deletions packages/caliper-fisco-bcos/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"name": "caliper-fisco-bcos",
"name": "@hyperledger/caliper-fisco-bcos",
"version": "0.0.1",
"description": "Caliper adapter of FISCO BCOS blockchain backend",
"scripts": {
"test": "echo test"
},
"repository": {
"type": "git",
"url": "https://github.com/vita-dounai/caliper.git"
Expand Down Expand Up @@ -55,4 +52,4 @@
"url": "https://github.com/hyperledger/caliper/blob/master/LICENSE"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
}
],
"authentication": {
"key": "packages/caliper-samples/network/fisco-bcos/4nodes1group/sdk/node.key",
"cert": "packages/caliper-samples/network/fisco-bcos/4nodes1group/sdk/node.crt",
"ca": "packages/caliper-samples/network/fisco-bcos/4nodes1group/sdk/ca.crt"
"key": "../caliper-samples/network/fisco-bcos/4nodes1group/sdk/node.key",
"cert": "../caliper-samples/network/fisco-bcos/4nodes1group/sdk/node.crt",
"ca": "../caliper-samples/network/fisco-bcos/4nodes1group/sdk/ca.crt"
},
"groupID": 1,
"timeout": 100000
Expand Down Expand Up @@ -68,4 +68,4 @@
"Size": "4 Nodes",
"Distribution": "Single Host"
}
}
}
4 changes: 3 additions & 1 deletion packages/caliper-samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
"src/contract/sawtooth/simple/simple_python/simple-tp-python",
"src/contract/sawtooth/simple/simple_python/packaging/systemd/sawtooth-simple-tp-python",
"src/contract/sawtooth/docker/sawtooth-int-simple-tp-python",
"network/fisco-bcos/4nodes1group"
"network/fisco-bcos/4nodes1group",
"src/contract/fisco-bcos/helloworld/HelloWorld.address",
"src/contract/fisco-bcos/transfer/ParallelOk.address"
],
"file_type_method": "EXCLUDE",
"file_types": [
Expand Down
12 changes: 10 additions & 2 deletions packages/caliper-tests-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@
"verdaccio": "3.12.0",
"license-check-and-add": "2.3.6"
},
"dependencies": {},
"dependencies": {
"@hyperledger/caliper-cli": "^0.1.0",
"fabric-ca-client": "^1.4.0",
"fabric-client": "^1.4.0",
"fabric-network": "^1.4.0",
"fabric-protos": "^2.0.0-snapshot.1",
"grpc": "^1.14.2"
},
"license-check-and-add-config": {
"folder": ".",
"license": "../../LICENSE.txt",
Expand All @@ -46,7 +53,8 @@
".pm2/touch",
"storage",
"scripts/storage",
"log"
"log",
".DS_Store"
],
"file_type_method": "EXCLUDE",
"file_types": [
Expand Down
2 changes: 1 addition & 1 deletion packages/caliper-tests-integration/scripts/npm_publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ const packages = [
'caliper-burrow',
'caliper-composer',
'caliper-fabric',
'caliper-fisco-bcos',
'caliper-iroha',
'caliper-sawtooth',
'caliper-fisco-bcos',
'caliper-cli'];

(async function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const packages = [
'caliper-fabric',
'caliper-iroha',
'caliper-sawtooth',
'caliper-fisco-bcos',
'caliper-cli'
];

Expand Down

0 comments on commit 2e49b4c

Please sign in to comment.