Menu

1 / 2

A .NET Dinosaur in Web3 — Day 5: First dApp.

DEV Community·Alena·6 months ago
#PHCElLIO
#web3#dotnet#contract#something#real
Reading 0:00
15s threshold

⚠️ Honest disclaimer: Yes, this one is late. The dinosaur went travelling, then came back and started building something. Both count.

Day 5 was about wiring the WishList contract to a real frontend — React, TypeScript, ethers.js, MetaMask. But somewhere between the travel and the code, a project idea formed. Two-week sprint, MVP target. It stays under wraps for now — but the daily insights don't stop.

Today: the dApp. Soon: something real.

The Goal

Take the WishList contract from Day 4 and make it usable in the real world. (If someone feels like fulfilling one of my wishes — I'm not stopping you.)

Solidity: github.com/alena-dev-soft/solidity-learn/contracts/05day/

UI: github.com/alena-dev-soft/wishlist-dapp

What I Built

WishlistV2 — an upgraded contract plus a React dApp on top of it.

Contract additions:

createdAt: block.timestamp — creation timestamp. Like DateTime.UtcNow in C# but in Unix seconds, written permanently on-chain.

deleteWish(uint _index) — removes a wish.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.