chaingo

module
v0.0.0-...-b4d7d9c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2019 License: GPL-3.0

README

chaingo

Hyperledger fabric chaincode development framework

CircleCI

Description

Chaingo provides helpful utilities and modules for developing Go chaincode on hyperledger fabric.

Quickstart

Install library and binaries

# NOTE: you should have `$GOPATH/bin" in your path`

mkdir -p $GOPATH/src/github.com/dimkouv && cd $_
git clone https://github.com/dimkouv/chaingo
go install ./cmd/...

Generating a new chaincode

mkdir chaincodes
chaingo -o startapp -n MyCoolChaincode

The command above produces the following files

mycoolchaincode/
  - app.go       # chaincode definition
  - app_test.go  # test cases
  - functions.go # smart contract logic
  - models.go    # definitions of models
  - routes.go    # definitions of available invocations

Check examples/votingapp for a working example.

Directories

Path Synopsis
cmd
chaingo command
examples
votingapp command
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL