# ETHIndia Fellowship - Weeks 1 & 2

By [Apoorva Madhusudan](https://paragraph.com/@apoorva-madhusudan) · 2023-03-10

---

The first half of ETHIndia was all about speed-running through Ethereum development! LFG!

The 1st week was all about learning the basics of the web3 tech stack. Learnt all about scaffold-eth, using hardhat to compile & deploy smart contracts, sub-graphs, ethereum components & hooks on react, including using the etherscan & infura apis and more! After learning where all the pieces go, the challenge was to build an app that allows users to mint, purchase & transfer NFTs.

[Demo](http://future-features.surge.sh/) [Contract](https://goerli.etherscan.io/address/0x058095A07892Eaf90f49Db9c8E0Ca47f18a3c1Ae)

Once we understood our way around, we dived next into staking. The challenge was to build a decentralised staking app, where users can coordinate a group funding effort. After failing test cases & struggles with the Goerli network which was acting up at the time, I finally managed to deploying my Staker contract.

[Demo](http://rhetorical-polish.surge.sh/) [Contract](https://goerli.etherscan.io/address/0x5c74156859D975143fDA0e3b957B82153fd2B95f)

The 2nd week also had 2 challenges!

Creating a token vendor - basically a contract to buy & sell ERC20 tokens using the approve pattern & involving a lot of contract to contract interactions. Passed all the test cases at the first try & went straight onto the next one!

[Demo](https://thoughtful-attention.surge.sh/) [Contract](https://goerli.etherscan.io/address/0xde5cbd635767c7d70db6e38e7b5d25a14fcbabc4)

The next one was quite an interesting challenge - we had to exploit a contracts that used the block-hash as a weak form of randomness. The goal was to play a dice game, where you could predict the result of the dice beforehand & only roll when you knew you’d definitely get a win.

[Demo](http://longing-motion.surge.sh/) [Contract](https://goerli.etherscan.io/address/0xa108f9CaC0AC1acd0eb60e4E782e02536d98a141)

---

*Originally published on [Apoorva Madhusudan](https://paragraph.com/@apoorva-madhusudan/ethindia-fellowship-weeks-1-2)*
