Skip to content

Conversation

@datactor
Copy link
Contributor

@datactor datactor commented Dec 15, 2025

Why is this change necessary?

Migrate bridge-related items to the main repo

Description

This PR migrates the bridge into the Mojave monorepo:

Solidity Contracts
Rust Shared Types
UTXO Indexer
Testing & Scripts
Documentation

Closes #issue_number

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe):

Checklist

  • I have tested my changes
  • I have updated documentation if needed
  • I have reviewed my code for best practices

Copilot AI review requested due to automatic review settings December 15, 2025 08:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the Bitcoin bridge infrastructure into the Mojave monorepo, including Solidity contracts, Rust shared types, TypeScript UTXO indexer, testing scripts, and documentation. The migration consolidates bridge-related components from separate repositories into a unified structure under contracts/bridge/, crates/bridge-types/, and scripts/bridge/.

Key changes:

  • Added bridge contract implementations (BridgeGateway, BtcRelay, WBTC token)
  • Integrated UTXO indexer as TypeScript service with REST API
  • Created Rust shared types crate for bridge operations
  • Added comprehensive test suite and E2E testing scripts

Reviewed changes

Copilot reviewed 56 out of 58 changed files in this pull request and generated no comments.

Show a summary per file
File Description
scripts/bridge/*.sh Wrapper scripts for build, test, deploy, and indexer management
scripts/bridge/README.md Documentation for bridge script usage and workflows
crates/bridge-types/src/*.rs Rust type definitions for UTXO, events, and Bitcoin types
contracts/bridge/tools/indexer/src/*.ts TypeScript UTXO indexer with REST API
contracts/bridge/test/*.t.sol Comprehensive test suite for contracts
contracts/bridge/src/token/WBTC.sol ERC20 token implementation with mint/burn
contracts/bridge/src/relay/BtcRelay.sol Bitcoin SPV light client implementation
contracts/bridge/script/withdrawal/*.s.sol Withdrawal finalization scripts
contracts/bridge/script/utils/*.sh Utility scripts for Bitcoin operations
contracts/bridge/foundry.toml Foundry configuration for Solidity compilation
Cargo.toml Added bridge-types crate to workspace
Files not reviewed (1)
  • contracts/bridge/tools/indexer/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants