Testing Hyperledger Fabric Chain Code

Good References

https://godoc.org/github.com/hyperledger/fabric-sdk-go

package fabricsdk

import "github.com/hyperledger/fabric-sdk-go"

Package fabricsdk enables Go developers to build solutions that interact with Hyperledger Fabric.

Packages for end developer usage

pkg/fabsdk: The main package of the Fabric SDK. This package enables creation of contexts based on configuration. These contexts are used by the client packages listed below. Reference: https://godoc.org/github.com/hyperledger/fabric-sdk-go/pkg/fabsdk

pkg/client/channel: Provides channel transaction capabilities. Reference: https://godoc.org/github.com/hyperledger/fabric-sdk-go/pkg/client/channel

pkg/client/event: Provides channel event capabilities. Reference: https://godoc.org/github.com/hyperledger/fabric-sdk-go/pkg/client/event

pkg/client/ledger: Enables queries to a channel’s underlying ledger. Reference: https://godoc.org/github.com/hyperledger/fabric-sdk-go/pkg/client/ledger

pkg/client/resmgmt: Provides resource management capabilities such as installing chaincode. Reference: https://godoc.org/github.com/hyperledger/fabric-sdk-go/pkg/client/resmgmt

pkg/client/msp: Enables identity management capability. Reference: https://godoc.org/github.com/hyperledger/fabric-sdk-go/pkg/client/msp

References while reaching the point on Testing Hyperledger Fabric Chain Code

Its like each peer can identified by an end point, and then that end point can be called for stuff: CORE_VM_ENDPOINT
https://openblockchain.readthedocs.io/en/latest/Setup/Network-setup/

CORE_PEER_ADDRESS
https://github.com/americanexpress/hyperledger-fabric-sdk-php/blob/master/test/fixture/sdkintegration/docker-compose.yaml

HL_PEER_URL=${HL_PEER_URL:-grpc://peer0.org1.example.com:7051}

Example :

https://github.com/sriyanshcse/Medichain

This is calling URLs from here : https://github.com/sriyanshcse/Medichain/blob/1ac64885e7d2c7f5b0a0f384f4c0772bffbbbb38/Medichain/app/network-config-aws.json

View story at Medium.com

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s