fabric-payment-sample-chaincode

command module
v0.0.0-...-fa6a194 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

README

fabric-payment-sample-chaincode

Description

A sample chaincode for Hyperledger/fabric version 1.1. This chaincode implements some features like below:

  • list accounts.
  • retrieve, create, update, delete an account.
  • deposit to an account.
  • remit from an account to another account.
  • withdraw from an account.
  • show the histories of an account.

See also

fabric-payment-sample-api
fabric-payment-sample-docker

Requirement

version
go 1.10
Hyperledger/fabric 1.1.0-rc1

How to build

get the development libraries of Hyperledger/fabric 1.1
$ go get -d github.com/hyperledger/fabric/protos/peer
$ go get -u --tags nopkcs11 github.com/hyperledger/fabric/core/chaincode/shim

To avoid build failure, you have to get fabric/core/chaincode/shim from nopkcs11 tag.

get source code to your $GOPATH
$ go get -u github.com/nmatsui/fabric-payment-sample-chaincode
build this chaincode
$ go build --tags nopkcs11 fabric-payment.go

Contribution

  1. Fork this project ( https://github.com/nmatsui/fabric-payment-sample-chaincode )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

Apache License, Version 2.0

Copyright (c) 2018 Nobuyuki Matsui nobuyuki.matsui@gmail.com

Documentation

Overview

Package main provides the entrypoint of this chaincode.

Copyright Nobuyuki Matsui<nobuyuki.matsui>.

SPDX-License-Identifier: Apache-2.0

Directories

Path Synopsis
Package contracts provides the smart contracts for Hyperledger/fabric 1.1.
Package contracts provides the smart contracts for Hyperledger/fabric 1.1.
Package models provides the model of state objects.
Package models provides the model of state objects.
Package types provides the enum like type.
Package types provides the enum like type.
Package utils provides some utility functions.
Package utils provides some utility functions.

Jump to

Keyboard shortcuts

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