Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.59 KB

README.md

File metadata and controls

52 lines (33 loc) · 1.59 KB

DLC.Link - iBTC Bridge

iBTC Website is an interface for interacting with DLC.Link smart contracts and the Bitcoin blockchain. This platform provides a secure and efficient self-custodial way to lock Bitcoin as collateral and mint iBTC tokens based on the amount of Bitcoin locked.

Installation

To install all the dependencies, run the following command:

yarn install

Setup Environment Variables

This application uses environment variables for configuration. These are stored in .env files. There are different .env files for different environments:

  • .env.localhost: For locally run attestors / regtest bitcoin.
  • .env.devnet: For deployed devnet attestors / regtest bitcoin.
  • .env.testnet: For deployed testnet attestors / testnet bitcoin.
  • .env.mainnet: For deployed mainnet attestors / mainnet bitcoin.

Copy the contents of the .env template file into the appropriate .env file for your environment and fill in the values. The template for the environment variables can be found in the .env.template file in the root directory of this project.

Please ensure that you replace the placeholders with your actual values.

Running the Application

According to the environment you want to run the application in, you can run the following commands:

  • For locally ran attestors / regtest bitcoin:
  yarn localhost
  • For deployed devnet attestors / regtest bitcoin:
   yarn devnet
  • For deployed testnet attestors / testnet bitcoin:
  yarn testnet
  • For deployed mainnet attestors / mainnet bitcoin:
   yarn mainnet