fabric-java

A java client SDK for hyperledger fabric project

Лицензия

Лицензия

Категории

Категории

Java Языки программирования
Группа

Группа

me.grapebaba
Идентификатор

Идентификатор

fabric-java
Последняя версия

Последняя версия

0.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

fabric-java
A java client SDK for hyperledger fabric project
Ссылка на сайт

Ссылка на сайт

https://github.com/GrapeBaBa/fabric-java
Система контроля версий

Система контроля версий

https://github.com/GrapeBaBa/fabric-java.git

Скачать fabric-java

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/me.grapebaba/fabric-java/ -->
<dependency>
    <groupId>me.grapebaba</groupId>
    <artifactId>fabric-java</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/me.grapebaba/fabric-java/
implementation 'me.grapebaba:fabric-java:0.1.0'
// https://jarcasting.com/artifacts/me.grapebaba/fabric-java/
implementation ("me.grapebaba:fabric-java:0.1.0")
'me.grapebaba:fabric-java:jar:0.1.0'
<dependency org="me.grapebaba" name="fabric-java" rev="0.1.0">
  <artifact name="fabric-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='me.grapebaba', module='fabric-java', version='0.1.0')
)
libraryDependencies += "me.grapebaba" % "fabric-java" % "0.1.0"
[me.grapebaba/fabric-java "0.1.0"]

Зависимости

compile (8)

Идентификатор библиотеки Тип Версия
com.squareup.retrofit2 : retrofit jar 2.0.2
com.squareup.retrofit2 : converter-gson jar 2.0.2
com.squareup.retrofit2 : adapter-rxjava jar 2.0.2
com.squareup.okhttp3 : logging-interceptor jar 3.2.0
org.slf4j : slf4j-api jar 1.7.21
io.grpc : grpc-netty jar 1.0.0
io.grpc : grpc-protobuf jar 1.0.0
io.grpc : grpc-stub jar 1.0.0

Модули Проекта

Данный проект не имеет модулей.

fabric-java

Build Status

It is a java client SDK for the project Hyperledger.

Example

 
    Fabric FABRIC = Hyperledger.fabric("http://localhost:5000/")
    
    FABRIC.getNetworkPeers().subscribe(new Action1<PeersMessage>() {
        @Override
        public void call(PeersMessage peersMessage) {
            for (PeerEndpoint peerEndpoint : peersMessage.getPeers()) {
                System.out.printf("Peer message:%s\n", peerEndpoint);
            }
    
        }
    });
    
    FABRIC.getBlock(0)
          .subscribe(new Action1<Block>() {
              @Override
              public void call(Block block) {
                  System.out.printf("Get Block info:%s\n", block);
              }
          }, new Action1<Throwable>() {
              @Override
              public void call(Throwable throwable) {
                  Error error = ErrorResolver.resolve(throwable, Error.class);
                  System.out.printf("Error message:%s\n", error.getError());
              }
          });

Binaries

Binaries and dependency information for Maven, Ivy, Gradle and others can be found at http://search.maven.org.

Example for Maven:

<dependency>
    <groupId>me.grapebaba</groupId>
    <artifactId>fabric-java</artifactId>
    <version>0.1.0</version>
</dependency>

and for Ivy:

<dependency org="me.grapebaba" name="fabric-java" rev="0.1.0" />

and for Gradle:

compile 'me.grapebaba:fabric-java:0.1.0'

Build

To build:

$ git clone git@github.com:GrapeBaBa/fabric-java.git
$ cd fabric-java/
$ ./gradlew build

Bugs and Feedback

For bugs, questions and discussions please use the Github Issues.

LICENSE

Copyright 2016 281165273@qq.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Версии библиотеки

Версия
0.1.0