Skip to content

CRUN is a simple command line tool to spin up blockchain node. It is designed to be simple and easy to use.

Notifications You must be signed in to change notification settings

MELLIFERA-Labs/crun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRUN

CRUN is a simple command line tool to spin up blockchain node. It is designed to be simple and easy to use.

Python 3.8 or python3.10 is required to run this tool.

Installation

To install simply download the latest release from the releases page

You can use command for download

wget https://github.com/mellifera-labs/crun/releases/latest/download/crun 
chmod +x crun  

Usage

Install with default settings

crun install lava_testnet

Check crun list for available networks for install

Example of usage

You can override any setting from crun show <network> output by passing -e flag with key=value pairs.

For example, let's check the settings for lava_testnet

crun show lava_testnet
hain_id: lava-testnet-2
netname: lava_testnet
repo: https://github.com/lavanet/lava.git
version: v2.1.1
binary: lavad
genesis: https://storage.mellifera.network/lava_testnet/genesis.json
addressbook: https://storage.mellifera.network/lava_testnet/addrbook.json
snapshot: https://storage.mellifera.network/lava_testnet/snapshot_latest.tar.lz4
go_version: go1.20.14
cosmos_folder: '.lava'
...etc

Any of these settings can be overridden with -e flag.

Here is few examples of usage:

  1. Install lava_testnet from state_sync
# Check modified settings 
crun show lava_testnet -e "install_from=state_sync"
# Run crun to Install lava_testnet from state_sync
crun install lava_testnet -e "install_from=state_sync"
  1. Install lava_testnet with custom port prefix and custom cosmos folder
crun install lava_testnet -e "custom_port_prefix=137;cosmos_folder=.lavatestnet"

This command will install lava_testnet with custom port prefix 137 and cosmos HOME folder .lavatestnet

RPC port will be 13757, P2P port will be 13756, GRPC port will be 13790, REST port will be 13717; instead of default 26657, 26656, 9090, 1317

Install crun from source

  1. Clone the repository

  2. Create venv and install dependencies

python3 -m venv venv
source venv/bin/activate
pip install .
  1. Run crun
python crun.py

Supported networks

  • Lava testnet
  • Lava mainnet
  • Warden testnet
  • Kyve mainnet

Check more how it works with our services

About

CRUN is a simple command line tool to spin up blockchain node. It is designed to be simple and easy to use.

Resources

Stars

Watchers

Forks

Packages

No packages published