Skip to content

Commit 6fd5507

Browse files
mbwhitejt-nti
authored andcommitted
[FABCJ-257] Rationalize examples
- moved the examples to an `examples` dir -kept the two chaincode examples that are used in the tests, but removed the other chaincode based interfaces. these where effectively duplication of each other - Added in the Contract examples from 1.4 that were missing - Provided both gradle and maven based examples - Provided kotlin example. Kotlin for both the contract source and the gradle build file Signed-off-by: Matthew B White <[email protected]>
1 parent 5d3cd53 commit 6fd5507

File tree

61 files changed

+1142
-1331
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1142
-1331
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,19 @@ Contains higher level tests for Java chaincode.
3434

3535
> **Note:** in the future these should be replaced with a separate suite of [Cucumber](https://cucumber.io) tests which run against all chaincode implementations.
3636
37-
### fabric-chaincode-example-gradle
37+
### examples
38+
39+
The following technical examples are in this repository. Please see the tutorials in the [documentation](https://hyperledger-fabric.readthedocs.io/en/latest/tutorial/commercial_paper.html)
40+
41+
42+
- **fabric-contract-example-gradle** - Contains an example Java contract built using gradle
43+
- **fabric-contract-example-maven** - Contains an example Java contract built using maven
44+
- **fabric-contract-example-gradle-kotlin** - Contains an example Kotlin contract build using gradle (Kotlin gradle files)
45+
- **fabric-chaincode-example-sacc** - Contains an example java chaincode gradle project that includes sample chaincode and basic gradle build instructions.
46+
- **fabric-chaincode-example-sbe** - Contains an example java chaincode gradle project that includes state based endorsement
47+
48+
3849

39-
Contains an example java chaincode gradle project that includes sample chaincode and basic gradle build instructions.
4050

4151
## Building and testing
4252

File renamed without changes.

fabric-chaincode-example-gradle/gradle/wrapper/gradle-wrapper.jar renamed to examples/fabric-chaincode-example-sacc/gradle/wrapper/gradle-wrapper.jar

File renamed without changes.

fabric-chaincode-example-gradle/gradle/wrapper/gradle-wrapper.properties renamed to examples/fabric-chaincode-example-sacc/gradle/wrapper/gradle-wrapper.properties

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

fabric-chaincode-example-sacc/src/main/java/org/hyperledger/fabric/example/SimpleAsset.java renamed to examples/fabric-chaincode-example-sacc/src/main/java/org/hyperledger/fabric/example/SimpleAsset.java

File renamed without changes.
File renamed without changes.

fabric-chaincode-example-sacc-jars/gradle/wrapper/gradle-wrapper.jar renamed to examples/fabric-chaincode-example-sbe/gradle/wrapper/gradle-wrapper.jar

File renamed without changes.

0 commit comments

Comments
 (0)