Transporter

Git Source

Author: Tinotenda Joe

This contract manages the handling of packages in the supply chain

Functions

handlePackage

Function to handle picking of packages

function handlePackage(address _addr, uint256 transportertype, address cid) public;

Parameters

NameTypeDescription
_addraddressThe address of the package origin
transportertypeuint256The type of transporter (1- Supplier to Manufacturer, 2 - Manufacturer to Wholesaler, 3 - Wholesaler to Distributer, 4 - Distributer to finalConsumer)
cidaddressThe identifier for the commodity