{"id":20398998,"url":"https://github.com/linux08/supply_chain","last_synced_at":"2025-03-05T01:20:50.976Z","repository":{"id":113310940,"uuid":"559317798","full_name":"linux08/supply_chain","owner":"linux08","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-20T22:13:01.000Z","size":7973,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T11:15:14.960Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linux08.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-29T18:31:43.000Z","updated_at":"2024-06-13T19:00:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"261a17a7-6312-485d-9c92-ddbec7287ea6","html_url":"https://github.com/linux08/supply_chain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux08%2Fsupply_chain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux08%2Fsupply_chain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux08%2Fsupply_chain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux08%2Fsupply_chain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linux08","download_url":"https://codeload.github.com/linux08/supply_chain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241946332,"owners_count":20046987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T04:26:08.806Z","updated_at":"2025-03-05T01:20:50.958Z","avatar_url":"https://github.com/linux08.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Supply chain \u0026 data auditing\n\nThis repository containts an Ethereum DApp that demonstrates a Supply Chain flow between a Seller and Buyer. The user story is similar to any commonly used supply chain process. A Seller can add items to the inventory system stored in the blockchain. A Buyer can purchase such items from the inventory system. Additionally a Seller can mark an item as Shipped, and similarly a Buyer can mark an item as Received.\n\n\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.\n\n### Prerequisites\n\nPlease make sure you've already installed ganache-cli, Truffle and enabled MetaMask extension in your browser.\n\n```\nGive examples (to be clarified)\n```\n\n### Installing\n\n\u003e The starter code is written for **Solidity v0.4.24**. At the time of writing, the current Truffle v5 comes with Solidity v0.5 that requires function *mutability* and *visibility* to be specified (please refer to Solidity [documentation](https://docs.soliditylang.org/en/v0.5.0/050-breaking-changes.html) for more details). To use this starter code, please run `npm i -g truffle@4.1.14` to install Truffle v4 with Solidity v0.4.24. \n\nA step by step series of examples that tell you have to get a development env running\n\nClone this repository:\n\n```\ngit clone https://github.com/udacity/nd1309/tree/master/course-5/project-6\n```\n\nChange directory to ```project-6``` folder and install all requisite npm packages (as listed in ```package.json```):\n\n```\ncd project-6\nnpm install\n```\n\nLaunch Ganache:\n\n```\nganache-cli -m \"spirit supply whale amount human item harsh scare congress discover talent hamster\"\n```\n\nYour terminal should look something like this:\n\n![truffle test](images/ganache-cli.png)\n\nIn a separate terminal window, Compile smart contracts:\n\n```\ntruffle compile\n```\n\n\nThis will create the smart contract artifacts in folder ```build\\contracts```.\n\nMigrate smart contracts to the locally running blockchain, ganache-cli:\n\n```\ntruffle migrate\n```\n\nYour terminal should look something like this:\n\n![truffle test](images/deployment.png)\n\nTest smart contracts:\n\n```\ntruffle test\n```\n\nAll 10 tests should pass.\n\n![truffle test](images/test.png)\n\nIn a separate terminal window, launch the DApp:\n\n```\nnpm run dev\n```\n\n## Built With\n\n* [Ethereum](https://www.ethereum.org/) - Ethereum is a decentralized platform that runs smart contracts\n* [IPFS](https://ipfs.io/) - IPFS is the Distributed Web | A peer-to-peer hypermedia protocol\nto make the web faster, safer, and more open.\n* [Truffle Framework](http://truffleframework.com/) - Truffle is the most popular development framework for Ethereum with a mission to make your life a whole lot easier.\n\n\n## Authors\n\nSee also the list of [contributors](https://github.com/your/project/contributors.md) who participated in this project.\n\n## Acknowledgments\n\n* Solidity\n* Ganache-cli\n* Truffle\n\n* Draw.io\n\n\n## Project summary\n\nThe goal of the project is to build a supply chain management system with right access control  which are found in contracts/coffeeaccesscontrol to move goods right from when the farmer is harvesting is item upp until when the consumer gets it which operations are present in coffeebase/SupplyCahin.sol\n\nThe UML for this project can be found in the UML folder\n![Activity](./UML/activity.png)\n![Data](./UML/data.png)\n![Sequence](./UML/sequence.png)\n![State](./UML/state.png)\n\n\n## Versions\n\n| Package   | Version |\n|:-------:|:-------------|\n|Truffle| v5.5.29 (core: 5.5.29) |\n|Solidity| 0.8.1 (solc-js) |\n|Node| v18 |\n|Web3.js| v1.8.0 |\n\n\n\n### Contract Address\n\ncontract address:    0x23A2426fF33E2E044D18e1457a85d49E0E140357\n\n### Token Address\n\nhttps://goerli.etherscan.io/token/0x23A2426fF33E2E044D18e1457a85d49E0E140357\n\n\n### Transaction hash\n\nhttps://goerli.etherscan.io/tx/0xd4f32a9a2c5a74a074897a620dbe227cf441aefca665ec1bfef2e10824c0635d","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinux08%2Fsupply_chain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinux08%2Fsupply_chain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinux08%2Fsupply_chain/lists"}