This repository contains all the necessary artifacts and instructions to set up and run Babylon's Phase-1 BTC Staking system locally.
More details about the system can be found here.
-
Install Docker Desktop
All components are executed as Docker containers on the local machine, so a local Docker installation is required. Depending on your operating system, you can find relevant instructions here.
-
Install
make
Required to build the service binaries. One tutorial that can be followed is this.
-
Clone the repository and initialize git submodules
The aforementioned components are included in the repo as git submodules, so they need to be initialized accordingly.
git clone [email protected]:babylonchain/babylon-timestamping-demo.git git submodule init && git submodule update
The repository follows the below structure:
├── artifacts
│ ├── docker-compose.yml
│ ├── ...
├── Makefile
├── post-deployment.sh
└── pre-deployment.sh
To start the system along with executing an additional post-deployment script that will showcase the lifecycle of Staking requests inside the Phase-1 system, execute the following:
make start-deployment-btcstaking-phase1-bitcoind-demo
Alternatively, to just start the system:
make start-deployment-btcstaking-phase1-bitcoind
To stop the system:
make stop-deployment-btcstaking-phase1-bitcoind