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

bond-network

0.2.5 • Public • Published

Bond Network

The Bond Network allows the issuer of a bond to update the bond information whilst other members of the business network can only read the bond data.

This business network defines:

Participants Issuer Member

Assets BondAsset

Transactions PublishBond

The PublishBond transaction submitted by an Issuer participant will create a new BondAsset.

To test this Business Network Definition in the Test tab:

Create a Issuer participant:

{
  "$class": "org.acme.bond.Issuer",
  "memberId": "memberId:1",
  "name": "Billy Thompson"
}

Create a Member participant:

{
  "$class": "org.acme.bond.Member",
  "memberId": "memberId:1",
  "name": "Jenny Jones"
}

Submit a PublishBond transaction:

{
  "$class": "org.acme.bond.PublishBond",
  "ISINCode": "ISINCode:1234",
  "bond": {
    "$class": "org.acme.bond.Bond",
    "instrumentId": [],
    "exchangeId": [],
    "maturity": "2017-07-13T09:39:05.369Z",
    "parValue": 1000,
    "faceAmount": 1000,
    "paymentFrequency": {
      "$class": "org.acme.bond.PaymentFrequency",
      "periodMultiplier": 0,
      "period": "DAY"
    },
    "dayCountFraction": "",
    "issuer": "resource:org.acme.bond.Issuer#memberId:1"
  }
}

The PublishBond transaction will create a new BondAsset in the Asset Registry.

Congratulations!

License

Hyperledger Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file. Hyperledger Project documentation files are made available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0), available at http://creativecommons.org/licenses/by/4.0/.

Package Sidebar

Install

npm i bond-network

Weekly Downloads

1

Version

0.2.5

License

Apache-2.0

Unpacked Size

31.5 kB

Total Files

15

Last publish

Collaborators

  • hlfdev-azp
  • hyperledger-lf