SirawichDev / smart-contracts-zone-for-web

Home Page:smart-contracts-zone-for-web.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to plain smart contract with React 😘

  • account connection
  • fetch account
  • transfer (both transfer manually within truffle console command and click transfer button)
  • withdraw
  • testing

before play this project you need to

to run the project

  • npm install
  • run Ganache and crate workspace (just follow this link https://trufflesuite.com/docs/ganache/workspaces/creating-workspaces.html)
  • connect between your wallet and browser via Metamask extension
  • in Metamask click add a new network tab and follow these setting new rpc url: http://127.0.0.1:7545 and chain id: 1337 another fields is up to you ;)
  • at root project run truffle migrate --reset
  • run truffle console
  • paste const instance = await SCZ.deployed();
  • transfer eth from another accounts to yours to increase your current balance by instance.addFunds({from: accounts[1], value: "3000000000000000000"}) 3000000000000000000 is Wei format it's equal 3 Ether you can try to play the Wei -> Ether converter it in this
  • all of 3 steps above you need to do within truffle console

for the rest features,I will try to finish as soon as i can ;) if there is anything you want for this project i will create article how to set up for this project at Medium

here is document might be useful

enjoy kub :3 Sirawich Voungchuy

About

smart-contracts-zone-for-web.vercel.app


Languages

Language:TypeScript 43.6%Language:Solidity 25.5%Language:CSS 12.8%Language:HTML 11.7%Language:JavaScript 6.3%