Skip to content

DApp coffee supply chain solution to prove the authenticity of coffee using an Ethereum smart contract

Notifications You must be signed in to change notification settings

PQCSig/Coffee-Supply-Chain

Repository files navigation

Coffee-Supply-Chain

This is a DApp coffee supply chain solution to prove the authenticity of coffee using an Ethereum smart contract. This project demonstrates solid blockchain architecture with role based permissions in a supply chain flow between sellers and buyers at various stages- see code in /contracts folder.

activity

sequence

State

class

Fairtradecoffee

Program Versions:

Truffle v5.1.51 (core: 5.1.51)

Solidity - 0.5.16 (solc-js)

Node v16.15.1

Web3.js v1.2.9

Below are the dependencies in my packages.json file:

"dependencies": {
    "@truffle/hdwallet-provider": "^2.0.10",
    "truffle-assertions": "^0.9.2",
    "web3": "^0.20.7"
  } 

Why I used each library:

truffle: truffle is development environment, testing framework and asset pipeline for blockchains using the Ethereum Virtual Machine (EVM), aiming to make life as a developer easier. For example, I used truffle to deploy my smart contracts to the Rinkeby test network.

truffle-assertions: used to test Ethereum smart contracts inside Truffle tests. I used assertion to test if contracts correctly emitted different events as expected.

truffle-hdwallet-provider: HD Wallet-enabled Web3 provider. Use it to sign transactions for addresses derived from a 12-word mnemonic. It allowed me to connect with my Metamask wallet on the Rinkeby network to authentic my contracts to Rinkeby.

web3: a collection of libraries that allow you to interact with a local or remote ethereum node using HTTP, IPC or WebSocket. It allows you to interact with the blockchain using the JavaScript API.

IPFS Write-up

I did not use IPFS for this project.

The Rinkeby contract address for this project is: 0x018C2daBef4904ECbd7118350A0c54DbeaE3549A

About

DApp coffee supply chain solution to prove the authenticity of coffee using an Ethereum smart contract

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published