Repository navigation
Implement cross-chain bridge module with multi-chain asset bridging - #325
Merged
devIKargi merged 9 commits intoAug 30, 2026
Merged
Conversation
Add BridgeGateway contract supporting lock-and-mint architecture for secure asset transfers between Stellar and other blockchains. Includes M-of-N validator consensus, wrapped asset management, liquidity pools, governance-controlled fee tiers, emergency pause with timelock, and dispute resolution. Comprehensive unit tests covering all acceptance criteria including double-spend prevention and 1:1 peg maintenance. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
…remove missing faucet - Update bridge contract to use workspace soroban-sdk dependency - Regenerate Cargo.lock to include bridge package - Remove missing faucet crate from workspace members 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
- Pin ed25519-dalek to 2.2.0 in Cargo.lock to fix soroban-env-host compilation error (3.0.0 tightened CryptoRng trait, breaking ChaCha20Rng in testutils) - Add missing RoleEscalationAttempt, RoleConflict, MetadataTooLong, and CapabilitiesExceeded variants to ContractError enum 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
… limit Remove 33 unused bridge error variants that exceeded the soroban contracterror macro's variant limit (LengthExceedsMax). Keep only the 4 new variants referenced by existing code (rbac/validation). The bridge contract uses panic!/assert! for its own errors. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
- Rename BridgeTransaction.asset_address to asset_code (matches contract usage) - Add missing Address import in bridge storage.rs - Replace reason.to_string() with reason.len() (Soroban String has len()) - Use String::from_str for Soroban String comparison instead of &str 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
- Cast MAX_DISPUTE_REASON_LENGTH to u32 for Soroban String::len() comparison - Add Debug derive to BridgeStatus and BridgeDirection for assert_eq! - Import Env from soroban_sdk root (private in testutils in v22) - Add extern crate alloc + use alloc::format for format! macro in no_std 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
…odule inception - Prefix unused validators with _ in test_add_validator and test_mint_assets - Remove clone() on Copy type SupportedChain in storage - Remove absurd MIN_FEE_BPS comparison (always true since MIN=0) - Add Debug derive to BridgeStatus/BridgeDirection for assert_eq - Rename inner mod tests to mod bridge_tests to avoid module inception 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add BridgeGateway contract supporting lock-and-mint architecture for secure asset transfers between Stellar and other blockchains. Includes M-of-N validator consensus, wrapped asset management, liquidity pools, governance-controlled fee tiers, emergency pause with timelock, and dispute resolution. Comprehensive unit tests covering all acceptance criteria including double-spend prevention and 1:1 peg maintenance.
Closes #306