Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

animaltracking-network

Package Overview
Dependencies
Maintainers
3
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

animaltracking-network

Animal Tracking network based on UK DEFRA regulations

  • 0.2.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by14.29%
Maintainers
3
Weekly downloads
 
Created
Source

Animal Tracking Network

This is an Animal Tracking Business Network based on UK DEFRA government regulations (https://www.gov.uk/animal-movement-england). Farmers can move animals between farms/fields and the UK government farming regulator has visibility into the locations of all animals and all animal movements between farms.

This business network defines:

Participants Farmer Regulator

Assets Animal Business Field

Transactions AnimalMovementDeparture AnimalMovementArrival SetupDemo

Each Farmer owns a Business that is identified by a Single Business Identifier (SBI). A Farmer owns a set of Animals. A Business owns a set of Fields. A Field contains a set of Animals owned by the Farmer. Animals can be transferred between Farmers or between Fields.

To test this Business Network Definition in the Test tab:

Submit a SetupDemo transaction:

{
  "$class": "com.biz.SetupDemo"
}

This transaction populates the Participant Registries with two Farmer participants and a Regulator participant. The Asset Registries will have eight Animal assets, two Business assets and four Field assets.

Submit a AnimalMovementDeparture transaction:

{
  "$class": "com.biz.AnimalMovementDeparture",
  "fromField": "resource:com.biz.Field#FIELD_1",
  "animal": "resource:com.biz.Animal#ANIMAL_1",
  "from": "resource:com.biz.Business#BUSINESS_1",
  "to": "resource:com.biz.Business#BUSINESS_2"
}

This transaction moves ANIMAL_1 from FIELD_1 at BUSINESS_1 to BUSINESS_2.

Submit a AnimalMovementArrival transaction:

{
  "$class": "com.biz.AnimalMovementArrival",
  "arrivalField": "resource:com.biz.Field#FIELD_2",
  "animal": "resource:com.biz.Animal#ANIMAL_1",
  "from": "resource:com.biz.Business#BUSINESS_1",
  "to": "resource:com.biz.Business#BUSINESS_2"
}

This transaction confirms the receipt of ANIMAL_1 from BUSINESS_1 to FIELD_2 at BUSINESS_2.

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/.

Keywords

FAQs

Package last updated on 30 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc