Code Monkey home page Code Monkey logo

antivenom's Introduction

How to run local testnet

Single-node testnet

The single-node testnet is the must have for developers who want to run local testnet with the minimum requirements. Having full functionality you can test your plugins, SDKs, services and so on.


So, to run it follow the step below

NOTE: this setup is related to run testnet with dev_tachyon workflow. dev0 pack used to interact with hostchain


  1. Make sure you have appropriate Docker image for pre-build envirounment with installed Node.js, Go, Python, Git and so on. If you don't have - clone the image and create the container.
docker pull klyntar/all_in_one:v3.0.0

docker run -dtp 7331:7331 --name klyntar_node klyntar/all_in_one:v3.0.0

# Go into container

docker exec -ti klyntar_node bash

# Chose the directory

cd ~
  1. Clone this repository
git clone https://github.com/KLYN74R/AntiVenom.git

cd AntiVenom
  1. Make build script executable
chmod 700 build_single_node_testnet.sh
  1. Run the build script and take a rest
./build_single_node_testnet.sh
  1. Set the env variables
export KLY_MODE=test

export SYMBIOTE_DIR=~/kly_testnet
  1. Finally, you can run the node
klyntar

What you have on this step

  1. Local testnet(symbiote) with a single validator
  2. Validator keypair is
{
    prv:"af837c459929895651315e878f4917c7622daeb522086ec95cfe64fed2496867",
    pub:"7GPupbq1vtKUgaqVeHiDbEJcxS7sSjwPnbht4eRaDBAEJv8ZKHNCSu2Am3CuWnHjta"
}

and the password to decrypt private key is qwerty

  1. Hostchain defined as kly-evm - it was local runned ETH node(Geth client), but we can avoid using it in this setup
  2. Enabled KLY-EVM. The web3 EVM-compatible API available via http://localhost:7331/kly_evm_rpc

NOTE: Insofar as we avoid moment interaction with hostchain - you should reset your node each day. For this - delete the kly_testnet directory and run build script again

rm -rf ~/kly_testnet

cd ~/AntiVenom

./build_single_node_testnet.sh

Multi-node testnet

Coming soon

antivenom's People

Contributors

vladchernenko avatar

Stargazers

Ivan Ushkov avatar  avatar KlyntarTeam avatar

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.