Skip to content

Commit

Permalink
[#3] Fabric extension module with protos (#4)
Browse files Browse the repository at this point in the history
- Created Fabric extension module with protos
- Added Makefile
- Updated CI file to invoke make target

Signed-off-by: Rolson Quadras <[email protected]>
  • Loading branch information
rolsonquadras authored May 6, 2019
1 parent 87f96db commit 8d75f70
Show file tree
Hide file tree
Showing 35 changed files with 12,702 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ language: go
go:
- 1.11.x

script: date
script: make all
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright SecureKey Technologies Inc.
#
# SPDX-License-Identifier: Apache-2.0

# Supported Targets:
# all : build
# build: builds the modules

GO_CMD ?= go
GO111MODULE=on

all: build

build: build-fabric-module

build-fabric-module:
$(MAKE) -C fabric/ all

.PHONY: all build build-fabric-module
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
# fabric-sdk-go-ext [![Build Status](https://travis-ci.com/trustbloc/fabric-sdk-go-ext.svg?branch=master)](https://travis-ci.com/trustbloc/fabric-sdk-go-ext)
# fabric-sdk-go-ext [![Build Status](https://travis-ci.com/trustbloc/fabric-sdk-go-ext.svg?branch=master)](https://travis-ci.com/trustbloc/fabric-sdk-go-ext)

The project contains the set of extensions that can be used as module substitution with Hyperledger Fabric SDK Go
([fabric-sdk-go](https://github.com/hyperledger/fabric-sdk-go)).

The project contains following modules:
1. **fabric** : [Hyperledger Fabric](https://github.com/hyperledger/fabric) related extensions including protos used by Hyperledger Fabric SDK Go.


##### Build

To compile the project, please run the following command from root directory
```
$ make build
```
17 changes: 17 additions & 0 deletions fabric/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright SecureKey Technologies Inc.
#
# SPDX-License-Identifier: Apache-2.0

# Supported Targets:
# all : build
# build: builds the module

GO_CMD ?= go
GO111MODULE=on

all: build

build:
$(GO_CMD) build ./...

.PHONY: all build
12 changes: 12 additions & 0 deletions fabric/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright SecureKey Technologies Inc. All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0

module github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric

require (
github.com/golang/protobuf v1.2.0
github.com/pkg/errors v0.8.1
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd
google.golang.org/grpc v1.19.0
)
28 changes: 28 additions & 0 deletions fabric/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd h1:HuTn7WObtcDo9uEEU7rEqL0jYthdXAmZ6PP+meazmaU=
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f h1:wMNYb4v58l5UBM7MYRLPG6ZhfOqbKu7X5eyFl8ZhKvA=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522 h1:Ve1ORMCxvRmSXBwJK+t3Oy+V2vRW2OetUQBq4rJIkZE=
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8 h1:Nw54tB0rB7hY/N0NQvRW8DG4Yk3Q6T9cu9RcFQDu1tc=
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
google.golang.org/grpc v1.19.0 h1:cfg4PD8YEdSFnm7qLV4++93WcmhH2nIUhMjhdCvl3j8=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
Loading

0 comments on commit 8d75f70

Please sign in to comment.