Skip to content

KLYN74R/AntiVenom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

🚩Your own local testnet🚩

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published