- 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
- install truffle,Ganache (https://trufflesuite.com/ganache/)
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
andchain 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