Skip to content

threshold-network/tbtc-crosschain-relayer

 
 

Repository files navigation

Threshold Network | tBTC Arbitrum relayer

Based on L2 tBTC SDK Relayer Implementation

Table of Contents

Project Overview

This project is built with NodeJS and includes a variety of libraries to facilitate development. The project is configured to use Docker for easy setup and deployment.

Docker Setup

To run the project using Docker, follow these steps:

  1. Download the docker-compose.dev.yml file from this repository.

  2. Edit docker-compose.dev.yml with your customizations:

    • PRIVATE_KEY: The wallet private key you will use in your application.
    • EthereumRPC: URL for the Ethereum RPC
    • ArbitrumRPC: URL for the Arbitrum RPC
  3. Run the following command to start the project:

    docker compose -f docker-compose.dev.yml up

Libraries Used

Dependencies

  • @ethersproject/experimental: ^5.7.0
  • axios: ^1.7.2
  • bitcoinjs-lib: ^6.0.1
  • compression: ^1.7.4
  • cors: ^2.8.5
  • eth-crypto: ^2.6.0
  • ethers: ^5.7.2
  • express: ^4.18.2
  • helmet: ^6.1.4
  • node-cron: ^3.0.3
  • rimraf: ^6.0.1

DevDependencies

  • @types/axios: ^0.14.0
  • @types/compression: ^1.7.5
  • @types/express: ^4.17.21
  • @types/helmet: ^6.0.1
  • @types/node: ^20.1.4
  • @types/node-cron: ^3.0.11
  • ts-node: ^10.9.2
  • ts-node-dev: ^2.0.0
  • typescript: ^5.5.3

How to Start the Project (Local)

Development Mode

To start the application in development mode, run:

npm run dev

Project Scripts

The following npm scripts are avaliable:

-   `npm run dev`: Runs the application in development mode.
-   `npm start`: Runs the application in production mode

About

tBTC Crosschain Relayer Bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.5%
  • Dockerfile 0.5%