- truffle@5.4.1
- Solidity compiler version '0.8.2'
- Solidity version >=0.6.8
-
@truffle/hdwallet-provider: "^1.4.3"
libraries for connecting to rinkeby & infura -
"dotenv": "^10.0.0"
libraries for the env -
"truffle-assertions": "^0.9.2"
libraries testing smart contract with latest best practices
- change
.env.example
into.env
and fill it with your environments
ganache-cli -m "spirit supply whale amount human item harsh scare congress discover talent hamster"
put your ganache port into .env
rm -rf build
truffle compile
truffle migrate --reset
truffle migrate --network rinkeby
truffle test
-
FarmerRole
-
DistributorRole
-
RetailerRole
-
ConsumerRole
-
SupplyChain
-
Ownable