12/03/2019
SSTORE
opcodeSLOAD
reads state20000 gas * (10 * 10^-9 ETH/gas) * (188 SGD/1 ETH)
= 0.0376 SGD Get the git repo
git clone git@github.com:dapps-dev-club/blockchain-demo.gitcd blockchain-demogit fetch origin feat/codestate:feat/codestategit checkout feat/codestate
Install and start
npm installnpm run start# open http://localhost:3000/
const x = (state.x || 0) + args[0];return { ...state, x };
Arguments:
[1]
ws://...
web3
ethereum
global from which you have to obtain the web3
variable asynchronouslyweb3
variableChainstack, Spartan, NBC'19, StartupToken, Blockchain&DApps
12/03/2019
Keyboard shortcuts
↑, ←, Pg Up, k | Go to previous slide |
↓, →, Pg Dn, Space, j | Go to next slide |
Home | Go to first slide |
End | Go to last slide |
Number + Return | Go to specific slide |
b / m / f | Toggle blackout / mirrored / fullscreen mode |
c | Clone slideshow |
p | Toggle presenter mode |
t | Restart the presentation timer |
?, h | Toggle this help |
Esc | Back to slideshow |