GithubHelp home page GithubHelp logo

eth1-shard-demo's Introduction

Eth1 Shard Demo

Prerequisites

Run Eth1 Shard Demo

git clone [email protected]:txrx-research/eth1-shard-demo.git
cd eth1-shard-demo

docker-compose up

Setup your local wallet

You may connect your wallet (e.g. Metamask) to the Demo Network.

When docker compose is up there is a gateway node mapped on the local host with JSON-RPC endpoint accessible at http://localhost:8545 as usual. To send transactions successfully you will have to set chainId = 20202 for the network configuration.

Once the network is set up, use the following private key to redeem an enormous amout of premined ETH dedicated for your needs:

0x0000000000000000000000000000000000000000000000000000000000000001

Demo genesis.json

Here is the full genesis.json file used to bootstrap Eth1 nodes:

{ 
	"config": { 
		"chainId": 20202, 
		"homesteadBlock": 0, 
		"eip150Block": 0, 
		"eip155Block": 0, 
		"eip158Block": 0, 
		"byzantiumBlock": 0, 
		"constantinopleBlock": 0, 
		"petersburgBlock": 0, 
		"istanbulBlock": 0
	}, 
	"alloc": {
  	"0x7E5F4552091A69125d5DfCb7b8C2659029395Bdf": {
    	"balance": "1000000000000000000000000000" 
  	}
	}, 
	"coinbase": "0x0000000000000000000000000000000000000000", 
	"difficulty": "0x20000", 
	"extraData": "", 
	"gasLimit": "0x2fefd8", 
	"nonce": "0x000000000020202", 
	"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000", 
	"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", 
	"timestamp": "0x00"
}

Demonstration of value transfer

Demo

References

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.