This repository contains the smart contracts for the coreBTC protocol. The repository uses Hardhat as a development environment for compilation, testing, and deployment tasks. The project is forked from the https://github.com/TeleportDAO/teleswap-contracts project.
coreBTC is a fully decentralized protocol for bridging BTC between Bitcoin and Core chain securely.
- Halborn report (Mar 2024)
- Follow us on Twitter.
- Join our discord channel.
To start, clone the codes and install the required packages using:
yarn
To compile the codes, use the below command:
yarn clean
& yarn build
You can run the entire test suite with the following command:
yarn test
You can deploy contracts on supported networks (testnet or mainnet) with the following command:
NETWORK= yarn deploy
After deployment, some variables need to be set using the following commands:
NETWORK= yarn init_config
Run the below command with a different private key to config upgradable contracts:
NETWORK= yarn config_upgradables