This repository contains the smart contracts for the TeleSwap protocol. The repository uses Hardhat as a development environment for compilation, testing, and deployment tasks.
TeleSwap is a fully decentralized protocol for bridging and exchanging BTC between Bitcoin and EVM chains securely.
See the links below:
- Quantstamp report (Feb 2023)
- 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 (mumbai and polygon) 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