The farmer goes to the DAPP and enter the farm and product information in the Farm and Product Details section, like product price and notes so he can harvest, process, pack and put a product ForSale. The product UPC will match the UPC from the Product Overview section.
During the process we can get and track any item related information, like the state of the item in the Blockchain, by going to the Product Overview section to fetch information about a specific UPC.
Diagrams at diagrams folder
Chai Expect - To assert the right properties were returned from the fetchItemBuffer functions call.
Truffle Assert - To assert for the emmited events.
Bootstrap Library Toast - To show the captured events on the frontend.
Bootstrap Library Modal - To show the fetch product result.
node v10.15.2
truffle v5.1.25
web3 ^1.2.9
solidity ^0.5.16
truffle(develop)> migrate --reset --network development
0x4c6aa58497b20d999d9dc1c700f18917ceaf32825b545b970ee7ae96d473120b
0xaA3790005e7B52b17f2Cf65bAB1A11617ab9F984
https://ropsten.etherscan.io/address/0xaa3790005e7b52b17f2cf65bab1a11617ab9f984