Skip to content

Implement cross-chain bridge module with multi-chain asset bridging - #325

Merged
devIKargi merged 9 commits into
StellAIverse:mainfrom
ayshadogo:feature/cross-chain-bridge
Aug 30, 2026
Merged

devIKargi merged 9 commits into
StellAIverse:mainfrom
ayshadogo:feature/cross-chain-bridge

Conversation

@ayshadogo

Copy link
Copy Markdown
Contributor

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

ayshadogo and others added 9 commits August 29, 2026 22:32
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>
@devIKargi
devIKargi merged commit 4c0e03c into StellAIverse:main Aug 30, 2026
3 checks passed
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.

Module: Cross-Chain Bridge - Multi-Chain Asset Bridging Protocol

2 participants