WORK IN PROGRESS
Please read the comprehensive description of the system design.
This code so far is a proof-of-concept implementation of a part of the system. It runs an Oracle that monitors transactions on a Bitcoin vault address and sends every transaction's details to a smart contract on Solana.
-
Deploy the smart contract:
contracts/lib.rs
-
Run Redis:
docker run --name postgres -e POSTGRES_PASSWORD=your_db_password -p 5432:5432 -d postgres
-
Run a Hiro Ordinals API node (optional)
-
Create ".env" file from ".env.example":
cp .env.example .env
-
Edit ".env" and set your values, make sure to set DB_URL with your db password:
nano .env
-
Install dependencies
pip install -r requirements.txt
-
Run
python oracle_btc_monitor.py