🚩 Challenge 1: 🥩 Decentralized Staking App

Buka Speedrun Challenge 1

Open in GitPod

  • Pilih VS Code(Browser)

  • Allow installation di pojok kanan bawah (kalo ada)

Edit File

  • Buka packages/hardhat/hardhat.config.js
  • Ganti defaultNetwork = “localhost”;
  • Menjadi defaultNetwork = “goerli”;
  • Buka packages/react-app/src/App.jsx
  • Ganti targetNetwork = NETWORKS.localhost;
  • Menjadi targetNetwork = NETWORKS.goerli;

Copas Code

  • Buka packages/hardhat/contracts/Staker.sol
  • Isi menggunakan code dari console.sol di GitHub

  • Setelah itu jalankan

yarn run generate
  • Dan isi 0.02 ETH Goerli ke address itu
  • Lalu
yarn run deploy --reset
  • Salin contract Staker dan paste di goerli explorer
  • Selanjutnya ganti API KEY di packages/hardhat/package.json dengan API KEY mu yang dulu
  • Verify
yarn verify --network goerli
  • Kemudian build
yarn build
Be patient
Be patient
  • Jalankan surge
yarn surge

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

  • Tunggu

Testing

  • Coba gunakan DApp mu untung stake 0.5 Goerli
  • Bertambah

Submit

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

UDAH

Seenggaknya subscribe gitu

About me

Subscribe to megumii
Receive the latest updates directly to your inbox.
Mint this entry as an NFT to add it to your collection.
Verification
This entry has been permanently stored onchain and signed by its creator.