Full stack Dapp that allows users to stake their tokens and earn points for doing so. They can use these points to redeem crop themed ERC-1155 NFTs.
- Solidity (Writing Smart Contract)
- Javascript (React & Testing)
- Ethers (Blockchain Interaction)
- Truffle (Development Framework)
- Ganache (For Local Blockchain)
- Open Zeppelin (smart contract libraries)
- Install NodeJS, should work with any node version below 16.5.0
- Install Truffle, In your terminal, you can check to see if you have truffle by running
truffle version
. To install truffle runnpm i -g truffle
. Ideal to have truffle version 5.4 to avoid dependency issues. - Install Ganache.
$ cd nft_farm
$ npm install
- Copy private key of the addresses in ganache and import to Metamask
- Connect you metamask to ganache, network 127.0.0.1:7545.
- If you have not added ganache to the list of networks on your metamask, open up a browser, click the fox icon, then click the top center dropdown button that lists all the available networks then click add networks. A form should pop up. For the "Network Name" field enter "ganache". For the "New RPC URL" field enter "http://127.0.0.1:8545". For the chain ID enter "1337". Then click save.
truffle migrate --reset
$ truffle test
$ npm run start
MIT