Participants
C.Saito@broadleaf.co.jp
Goals
Using the Docker ‘hack’ - create a local network.
Install the client on their local machine
Compile the contracts - we will deploy counter-define and then counter-call
Deploy to your local network
Observe effects
We will record the session.
Pre-Requisites
Clone the repository on your machine
...
7. Run CLarity locally so you can observe your local blockchain! From the /hack/docker folder run:
Code Block |
---|
make up |
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 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Verify pre-requisites | Check that everyone has managed to get through the setup. | See above | ||||||||||
Set up a local 3 node network | Using the Docker hack, set up a local network |
Wait and let the system generate keys. Start the bootstrap:
Start the other nodes
Verify that the network is working by looking at the logs
To remove old networks use:
| ||||||||||
Deploy counter-define Propose a block Deploy counter-call Propose a block | Here we will deploy a contract to the local network to install it. Then we will call the contract using a separate transaction. | Counter Define deployment & Proposal
Counter Call deployment
| ||||||||||
Propose a block | Call the client to propose a block | Same as above. | ||||||||||
Obtain the block hash | Obtain the block hash for use in the state query | Call the client to get the block hash (can also tail the logs and see the block in the network)
| ||||||||||
Perform a state query | Using the gRPC |
|
Outcome:
The export needs to happen again if a new terminal is opened.
Make sure that you don’t have any old Docker containers floating around from old nodes.
Do not make a mistake when creating node-0 (Medha did node-o and it was problematic)
To add CLarity and GraphQL to the Docker network run:
Code Block make up
...
Code Block |
---|
https://repo.casperlabs.io/casperlabs/repo/dev/casperlabs-client-0.10.0.tgz tar -xvzf casperlabs-client-0.10.0.tgz alias casperlabs-client=$PWD/casperlabs-client-0.10.0/bin/casperlabs-client |
Action items
For Help - go to Discord: https://discord.gg/mpZ9AYD