Transfer to multiple accounts

Video recording of the session

Participants

  • @Medha Parlikar

  • @Ashok Ranadive (Unlicensed)

  • @Tom Vasile (Deactivated)

  • @Maciej Zielinski (Deactivated)

  • @Former user (Deleted)

  • Thomas (LedgerLeap)

Goals

  • Use the Docker ‘hack’ to create a local network

  • Enable Highway Option and set Node parameters. Start CLarity.

  • Start nodes. Stop nodes. Deploy ‘Counter_Define’ contract.

  • .Demonstrate passing of complex arguments to sessions code (a collection of tuples consisting of PublicKey and U512

  • Query the state using CLI

  • Shutdown the network.

  • We will record the session.

Pre-Requisites

  1. Clone the repository on your machine or ‘Pull’ the latest dev

git clone https://github.com/CasperLabs/CasperLabs.git git pull

2. Install docker and docker compose if required

docker: https://docs.docker.com/v17.09/engine/installation/
docker-compose: https://docs.docker.com/compose/install/

3. Pull the dev images from docker

docker pull casperlabs/node:dev docker pull casperlabs/execution-engine:dev docker pull casperlabs/client:dev // Remove any old network running docker network rm casperlabs // Install the client curl -O https://repo.casperlabs.io/casperlabs/repo/dev/casperlabs-client_0.14.0_all.deb

4. Export CL_VERSION to dev

export CL_VERSION=dev

5. Set up your Casperlabs network and Set Highway Environment variable

11. Build example contracts

12. Deploy Transfer to Multiple Accounts contract

 

 

 

To cleanup the network stopping and removing all containers run the command make clean.

Software Version (GitHash)

Docker tag: dev

What you need to know:

  • To simplify the process, we are deploying from the faucet account (we can skip funding an account to pay for the deployment)

 

Step by Step Plan

Title

Description

Notes

Title

Description

Notes

Verify pre-requisites

Check that everyone has managed to get through the setup.

See above

Set up a local 3 node network with ROUND_EXPONENT=14

Using the Docker hack, set up a local network

Start CLarity and Grafana

  • Verify that the network comes up for everyone.

To remove old networks use:

 

 

 

 

 

 

Outcome:

  • Highway network of 3 nodes with CL_HIGHWAY_INIT_ROUND_EXPONENT=14 was successfully set up and run.

Action items

For Help - go to Discord: https://discord.gg/mpZ9AYD

Decisions

  • File a bug for the orphaned block behavior observed on node restarting.