Giter VIP home page Giter VIP logo

ryohr12 / fabric-chaincode-java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hyperledger/fabric-chaincode-java

0.0 0.0 0.0 4.98 MB

Hyperledger Fabric Contract and Chaincode implementation for Java https://wiki.hyperledger.org/display/fabric

Home Page: https://jira.hyperledger.org/issues/?jql=project+%3D+FAB+AND+component+%3D+fabric-chaincode-java

License: Apache License 2.0

Shell 3.32% Java 96.02% HTML 0.35% Dockerfile 0.31%

fabric-chaincode-java's Introduction

Hyperledger Fabric Chaincode Java

Build Status Maven Central Discord

This is a Java based implementation of Hyperledger Fabric chaincode shim APIs, which enables development of smart contracts using the Java language.

This project creates fabric-chaincode-shim jar files for developers' consumption and the hyperledger/fabric-javaenv docker image to run Java chaincode.

Getting Started

Application developers interested in developing Java smart contracts for Hyperledger Fabric should read the JavaDoc which includes download information, and links to documentation and samples.

Project structure

fabric-chaincode-shim

Contains the java shim classes that define Java chaincode API and way to communicate with Fabric peers.

fabric-chaincode-docker

Contains instructions to build the hyperledger/fabric-javaenv docker image.

fabric-chaincode-integration-test

Contains higher level tests for Java chaincode.

Note: in the future these should be replaced with a separate suite of Cucumber tests which run against all chaincode implementations.

examples

The following technical examples are in this repository. Please see the tutorials in the documentation

  • fabric-contract-example-gradle - Contains an example Java contract built using gradle
  • fabric-contract-example-maven - Contains an example Java contract built using maven
  • fabric-contract-example-gradle-kotlin - Contains an example Kotlin contract build using gradle (Kotlin gradle files)
  • fabric-chaincode-example-sacc - Contains an example java chaincode gradle project that includes sample chaincode and basic gradle build instructions.
  • fabric-chaincode-example-sbe - Contains an example java chaincode gradle project that includes state based endorsement

'dev' main branch builds

These 'dev' drivers are built from the main branch only, and have a version format including the date for example 2.3.1.dev.20210303. They are published to Artifactory. These can be accessed via the repository at

    maven {
        url "https://hyperledger.jfrog.io/hyperledger/fabric-maven"
    }

They can be accessed in a build file like this

dependencies {
    compile group: 'org.hyperledger.fabric-chaincode-java', name: 'fabric-chaincode-shim', version: '2.3.1.dev.+'
 }

Building and testing

Make sure you have the following prereqs installed:

Note: Java can be installed using sdkman.

Clone the repository if you haven't already.

git clone https://github.com/hyperledger/fabric-chaincode-java.git

Build java shim jars (proto and shim jars) and install them to local maven repository.

cd fabric-chaincode-java
./gradlew clean build install

Note: ./gradlew clean build classes can be used instead to reduce the binaries that are built. This should be sufficient for using the local repository.

Build javaenv docker image, to have it locally.

./gradlew buildImage

Compatibility

For details on what Java runtime and versions of Hyperledger Fabric can be used please see the compatibility document.


Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License

fabric-chaincode-java's People

Contributors

mbwhite avatar andreevym avatar jt-nti avatar gennadylaventman avatar oyamkovyi avatar denyeart avatar atoulme avatar ryjones avatar c0rwin avatar heatherlp avatar kemi04 avatar mastersingh24 avatar ftokarev avatar rameshthoomu avatar fravlaca avatar alacambra avatar lindluni avatar gqqnbig avatar jimthematrix avatar vijaypunugubati avatar medikent avatar dependabot[bot] avatar muralisrini avatar christo4ferris avatar lehors avatar millefoglie avatar lacinoire avatar easmith avatar jwagantall avatar bestbeforetoday avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.