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

digitalproperty-network

0.2.5 • Public • Published

Digital Property Network

This Defines a business network where house sellers can list their properties for sale.

This business network defines:

Participant Person

Assets LandTitle SalesAgreement

Transaction RegisterPropertyForSale

A Person is responsible for a LandTitle. By creating a SalesAgreement between two Person participants you are then able to submit a RegisterPropertyForSale transaction.

To test this Business Network Definition in the Test tab:

Create two Person participants:

{
  "$class": "net.biz.digitalPropertyNetwork.Person",
  "personId": "personId:Billy",
  "firstName": "Billy",
  "lastName": "Thompson"
}
{
  "$class": "net.biz.digitalPropertyNetwork.Person",
  "personId": "personId:Jenny",
  "firstName": "Jenny",
  "lastName": "Jones"
}

Create a LandTitle asset:

{
  "$class": "net.biz.digitalPropertyNetwork.LandTitle",
  "titleId": "titleId:ABCD",
  "owner": "resource:net.biz.digitalPropertyNetwork.Person#personId:Billy",
  "information": "Detached House"
}

Create a SalesAgreement asset:

{
  "$class": "net.biz.digitalPropertyNetwork.SalesAgreement",
  "salesId": "salesId:1234",
  "buyer": "resource:net.biz.digitalPropertyNetwork.Person#personId:Jenny",
  "seller": "resource:net.biz.digitalPropertyNetwork.Person#personId:Billy",
  "title": "resource:net.biz.digitalPropertyNetwork.LandTitle#titleId:ABCD"
}

Submit a RegisterPropertyForSale transaction:

{
  "$class": "net.biz.digitalPropertyNetwork.RegisterPropertyForSale",
  "seller": "resource:net.biz.digitalPropertyNetwork.Person#personId:Billy",
  "title": "resource:net.biz.digitalPropertyNetwork.LandTitle#titleId:ABCD"
}

This RegisterPropertyForSale transaction will update titleId:ABCD LandTitle asset to forSale.

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 digitalproperty-network

Weekly Downloads

4

Version

0.2.5

License

Apache-2.0

Unpacked Size

34.7 kB

Total Files

14

Last publish

Collaborators

  • hyperledger-ci
  • fabric-composer-admin