8000 GitHub - e00dan/blockchain-workshop at stage-5
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

e00dan/blockchain-workshop

 
 

Repository files navigation

Blockchain workshop

If you're looking for Nervos Layer 2 example application check #godwoken branch.

Requirements

  1. Docker - required for compilation of smart contracts
  2. Node.js version >= 14

Install and run

Install:

yarn

Build:

yarn build

// Contracts only
yarn compile

// TypeScript only
yarn build:ts

Start src/HeadTail.ts:

yarn start

Test:

yarn test

Make sure to start local blockchain first:

yarn start:ganache

Overview

Caution: Outdated diagram

Diagram

Stages

Stage Status Description
master Starting point
stage-1 Create a function that saves user one address and accepts deposit
stage-2 Allow two users to deposit 1 ETH and save their address
stage-3 Add ability to save boolean along with the address
stage-3.1 Move user one deposit function to constructor
stage-4 Add prize distribution function, sends ETH after a correct guess
stage-5 Encrypt user one choice with secret

Slides

About

Ethereum workshop

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  
0