Cover photo

🚩 Challenge 1: 🥩 Decentralized Staking App

Buka Speedrun Challenge 1

https://speedrunethereum.com/challenge/decentralized-staking

Open in GitPod

post image
  • Pilih VS Code(Browser)

  • Allow installation di pojok kanan bawah (kalo ada)

Edit File

  • Buka packages/hardhat/hardhat.config.js

post image
  • Ganti defaultNetwork = “localhost”;

post image
  • Menjadi defaultNetwork = “goerli”;

post image
  • Buka packages/react-app/src/App.jsx

post image
  • Ganti targetNetwork = NETWORKS.localhost;

post image
  • Menjadi targetNetwork = NETWORKS.goerli;

post image

Copas Code

  • Buka packages/hardhat/contracts/Staker.sol

post image
post image
post image
  • Isi menggunakan code dari console.sol di GitHub

  • Setelah itu jalankan

yarn run generate
  • Dan isi 0.02 ETH Goerli ke address itu

post image
  • Lalu

yarn run deploy --reset
  • Salin contract Staker dan paste di goerli explorer

post image
  • Selanjutnya ganti API KEY di packages/hardhat/package.json dengan API KEY mu yang dulu

post image
  • Verify

yarn verify --network goerli
  • Kemudian build

Be patient
Be patient
  • Jalankan surge

ganti nama website sesuka hati, yang penting surge.sh jangan dihapus

post image
  • Tunggu

post image

Testing

  • Coba gunakan DApp mu untung stake 0.5 Goerli

post image
  • Bertambah

post image

Submit

  • Jika sudah yakin, langsung submit di speedrun menggunakan link DApp & link SC yang tadi di cek di explorer

post image
post image

UDAH

Seenggaknya subscribe gitu

About me

https://megumii.eth.link

Subscribe