- Node.js
(https://nodejs.org/)
- Ganache
(https://www.trufflesuite.com/ganache)
- Truffle
$ npm install -g [email protected])
- Metamask
(https://metamask.io/)
##Project Setup
$ git clone https://github.com/svermen/eth_wallet
$ cd eth_wallet
$ npm install
$ npm install @openzeppelin/contracts
Set vars in "migrations/1_initial_migration.js"
await tokenMock.mint(
'Replace Ganache Address Here',
'1000000000000000000000'
)
$ truffle migrate --reset
Set vars in "App.js"
const daiTokenAddress = "0x8Be547B38c080fc8Eb9BbbcBb77A15AB7a8C686D" // Replace DAI Address Here
This value can be obtained from "abis/DaiTokenMock.json"
$ npm run start
##Tutorial done: https://www.youtube.com/watch?v=wSTbBIK8qrY&list=PUY0xL8V6NzzFcwzHCgB8orQ&index=86