Skip to content

bttcprotocol/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bttc CLI

🏗 A CLI to setup and manage Bttc validator nodes

Installation

npm install -g @bttcnetwork/bttc-cli

Please make sure you have installed following dependencies:

Usage

Create new directory for the setup:

$ mkdir localnet
$ cd localnet

Check commands

bttc-cli

To setup 1 node local network

This will setup Delivery and Bttc.

bttc-cli setup localnet

It will ask you several questions:

Please enter Bttc chain id - You can keep the default one (1029) or change it to any numeric id
Please enter Delivery chain id - You can keep the default one (delivery-1029) or change it to a regex (Delivery-<numeric id>)
Please enter Bttc branch or tag - master
Please enter Delivery branch or tag - master
Please enter Contracts branch or tag - Keep the default branch (stake)

After the setup is done, follow these steps:

Start delivery

bash delivery-start.sh

Start delivery bridge

bash delivery-bridge-start.sh

Start delivery rest server

bash delivery-server-start.sh

Setup Bttc

bash bttc-setup.sh

Start bttc

bash bttc-start.sh

To setup multi-node local network

bttc-cli setup devnet

It will ask you several questions:

Please enter Bttc chain id - You can keep the default one (1029) or change it to any numeric id
Please enter delivery chain id - You can keep the default one (delivery-1029) or change it to a regex (delivery-<numeric id>)
Please enter Bttc branch or tag - master
Please enter delivery branch or tag - master
Please enter Contracts branch or tag - Keep the default branch(stake)
Please enter number of validator nodes - Input the number of validator nodes you want to run
Please enter number of non-validator nodes - Input the number of sentry nodes you want to run
Please enter ETH url - https://goerli.infura.io/v3/<YOUR_INFURA_KEY>
Please select devnet type - remote (for remote setup)

After the setup is done, follow these steps:

Start delivery

bash delivery-start.sh

Start delivery bridge

bash delivery-bridge-start.sh

Start delivery rest server

bash delivery-server-start.sh

Setup Bttc

bash bttc-setup.sh

Start bttc

bash bttc-start.sh

Logs

Logs will be at logs/ folder

Clean Setup Remove the localnet folder and you can start the process once again

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published