Samples are a collection of small and simple apps that demonstrate how to use the library.
To run the samples, we recommend to use go 1.16 or later. You will also need docker when using Fabric.
To make sure you have all the required docker images, you can run make docker-images
in the
folder $GOPATH/src/github.com/hyperledger-labs/fabric-token-sdk
.
Fungible Tokens, The Basics. On Fabric
: How to handlefungible tokens
.Non-Fungible Tokens, The Basics. On Fabric
: How to handlenon-fungible tokens
.
Integration tests are useful to show how multiple components work together. The Fabric Smart Client comes equipped with some of them to show the main features. To run the integration tests, you need to have Docker installed and ready to be used.
Each integration test bootstraps the FSC and Fabric networks as needed, and initiate the
business processes by invoking the initiator view
on the specific FSC nodes.
All integration tests can be executed by executing make integration-tests
from the folder $GOPATH/github.com/hyperledger-labs/fabric-token-sdk
.
Each test can be executed either using your preferred IDE or by executing go test
from
the folder that contains the test you want to try.
Here is a list of available examples:
DvP
: In this example, we see how to orchestrate a Delivery vs Payment use-case