WeiGold ensures fair, transparent vending for physical gold, silver and oil
based on Chainlink's commodities pricefeed aggregators.
WeiGold Youtube presentation with demo [https://www.youtube.com/watch?v=nxwqg_YGh0c]:
Hardware used:
-Raspberry Pi 4 [Quantity: 1]
-S90 Servo Motors [Quantity: 3]
-A cardboard box [Quantity: 1]
Instructions:
1a.Install web3.js and pi-blaster.js with Node.js on wired Raspberry Pi 4
1b.web3.js: npm install web3
1c.pi-blaster.js: Build and install directly from source: https://github.com/sarfata/pi-blaster
2.Have the "HardwareServoControl.js" script running on the wired Raspberry Pi 4
3.Connect to site with Metamask on Sepolia [make sure you have some free Sepolia Ethereum to modify contract states]
(you can create your own custom contract by redeploying on Remix and changing address and ABI for FrontEnd and Servo scripts)
4.Interact with the contract and watch the servos move based on contract State!
Contract source code published at deployed Sepolia address with Etherscan:
https://sepolia.etherscan.io/address/0xf72ad88c2db9e89738773db2388770572ad3d628#code
Website live on GitHub pages:
https://marcuswentz.github.io/WeiGold/index.html?
or run locally with
npx http-server
Solo project by Marcus Wentz.
Chainlink Hackathon Fall 2021.
Contract deployed and verified in Foundry with command
forge create --rpc-url $sepoliaInfuraHttps --etherscan-api-key $etherscanApiKey --verify --private-key $devTestnetPrivateKey src/WeiGold.sol:WeiGold