This package has been deprecated

Author message:

Hyperledger Composer has been deprecated. Please see the README for more details: https://github.com/hyperledger/composer/blob/master/README.md

sample-network

0.0.6 • Public • Published

Welcome to Fabric Composer!

This is the "Hello World" of Composer samples.

This sample defines a business network composed of a single asset type (SampleAsset), a single participant type (SampleParticipant), and a single transaction type (SampleTransaction).

SampleAssets are owned by a SampleParticipant, and the value property on a SampleAsset can be modified by submitting a SampleTransaction.

To get started inside the Composer Playground you can click the Test tab and create instances of SampleAsset and SampleParticipant. Make sure that the owner property on the SampleAsset refers to a SampleParticipant that you have created.

You can then submit a SampleTransaction, making sure that the asset property refers to an asset that you created earlier. After the transaction has been processed you should see that the value property on the asset has been modified.

The logic for updating the asset when a SampleTransaction is processed is written in logic.js.

Don't forget you can import more advanced samples into the Composer Playground using the Import/Replace button.

Have fun learning Fabric Composer!

Readme

Keywords

Package Sidebar

Install

npm i sample-network

Weekly Downloads

0

Version

0.0.6

License

Apache-2.0

Last publish

Collaborators

  • hlfdev-azp
  • hyperledger-lf