This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests for extended cpaper example and improved docs (#16)
* Improve example comments * Fix some grammar and formatting issues * Better explained what List method does * Simplify cpaper example and add tests * cpaper example follows the basic logic from original example * remove proto schema data from basic example * cpaper tests provide usage and further explanation * Fix docs function names, add single identity load method * Implement revoke for cpaper extended example and add tests * cpaper extended contains additional features * minor formatting fixes in proto files * Fix lint error about SNAKE_CASE, correct BuyerName * Better variable names, add event checks in cpaper_extended tests * Add more info into READMEs for cpaper and cpaper_extended * Add new mapping test proto schema and regenerate proto files * Add test chaincode for proto mapping and uniq key * Add tests with proto mapping and uniq key
- Loading branch information
1 parent
c59a3ee
commit bed9949
Showing
27 changed files
with
1,099 additions
and
873 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
# Commercial paper Hyperledger Fabric chaincode example with protobuf based state schema | ||
# Commercial paper Hyperledger Fabric chaincode example | ||
|
||
https://hyperledger-fabric.readthedocs.io/en/release-1.4/developapps/scenario.html | ||
This is an faithful reimplementation of the official example [Commercial paper scenario](https://hyperledger-fabric.readthedocs.io/en/release-1.4/developapps/scenario.html) | ||
|
||
|
||
At the heart of a blockchain network is a smart contract. In PaperNet, the code in the commercial paper smart | ||
contract defines the valid states for commercial paper, and the transaction logic that transition | ||
a paper from one state to another. | ||
Original code written in JavaScript using the Fabric Chaincode Node SDK is available [here](https://github.com/hyperledger/fabric-samples/tree/release-1.4/commercial-paper/organization/digibank/contract) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.