Skip to content

Update README.md #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 35 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This was a difficult project for us to build in 72 hours. We did the best we can
The potential for this project is much bigger than the demo we are able to technically implement in this short time.


#### Please refer to our landing page: https://womeninblockchain2018.github.io/petfolio_lp/
#### Please refer to our landing page: https://petfolio.org

<ul>

Expand All @@ -36,3 +36,37 @@ _UX Designer_ - Kristin
_Business Development_ - Pam

_Full Stack / Blockchain Dev_ - Kai

<hr>

# Blockchain Model:

The basic demo on Hyperledger Composer consists of 2 participants, 2 assets, and 2 transactions.

`
asset Pet identified by id {
o String id
o String name
--> Record[] records
--> Vet vet
--> Owner owner
}

/**
* Track the appointment of a pet with a new health record
* @param {org.petfolio.Appointment} appointment - the appointment to be processed
* @transaction
*/
function Appointment(appointment) {

// set the new owner of the commodity
appointment.pet.records.push(appointment.record);
return getAssetRegistry('org.petfolio.Pet')
.then(function(assetRegistry) {

// persist the state of the commodity
return assetRegistry.update(appointment.pet);
});
}

`