This repository contains the smart contracts for the TeleSwap protocol. The repository uses Hardhat as development environment for compilation, testing and deployment tasks.
TeleSwap is a fully decentralized cross-chain settlement protocol that facilitates the transfer or exchange of assets between Bitcoin and EVM chains quickly and securely.
See the link 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
If you want to compile the codes enter the below command:
yarn clean
& yarn build
You can run the full test suite with the following command:
yarn test
You can deploy the contracts on networks specified in package.json with the following command:
yarn deploy:network
After deployment, certain variables need to be set using the following commands:
yarn settlement:network
& yarn collateral_pool_scripts:network
Run the below command with a different private key:
yarn lockers_settlement:network
If a contract address has been changed, update the address in other contracts by the following command:
yarn global_variables_settlement:network