feat: multi-sig escrow release + Stellar HTLC bridge + relayer (#564, #565) - #650
Merged
Smartdevs17 merged 1 commit intoJul 28, 2026
Conversation
Smartdevs17#564: Multi-sig escrow release with configurable threshold policies - Added MultisigEscrowPolicy type with configurable threshold per project - Implemented createReleaseRequest, approveReleaseRequest, rejectReleaseRequest - Time-locked release with challenge periods (challengeEndsAt) - Event emission for all signature submissions via EventEmitter - Blocking threshold: rejects block when count >= (signers - threshold + 1) - executeReadyReleases() sweeps all eligible requests - 9 unit tests covering full lifecycle Smartdevs17#565: Cross-chain HTLC bridge for Stellar-EVM transfers - Added HtlcLock, HtlcStatus, BridgeConfigData types to Soroban contract - Implemented create_htlc_lock, claim_htlc (SHA-256 secret verification), refund_htlc on Stellar side - Bridge config with fee_bps, fee_collector, pause controls - BridgeRelayerService: monitors cross-chain swaps, manages lifecycle (initiated -> locked -> redeemed/expired), emits events - Relayer REST API: POST/GET /swaps, POST /reveal, /config, /analytics - 8 unit tests for relayer service Closes Smartdevs17#564 Closes Smartdevs17#565
|
@dimka90 is attempting to deploy a commit to the smartdevs17's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@dimka90 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Summary
Implements cross-chain HTLC bridge and multi-sig escrow release features.
#564 - Multi-signature escrow release with configurable threshold policies
The escrow release mechanism was single-signature, posing trust issues for high-value transactions. Now supports configurable M-of-N threshold policies per project.
Changes:
backend/src/services/escrow.ts: AddedMultisigEscrowPolicy,MultisigReleaseRequesttypes. New methods:createReleaseRequest(),approveReleaseRequest(),rejectReleaseRequest(),executeReadyReleases(). Event emission viaEventEmitterfor all signature submissions.backend/src/routes/escrow.ts: New endpoints for/release-request,/release-request/approve,/release-request/reject,/execute-ready-releases.#565 - Cross-chain bridge with HTLC atomic swap for Stellar-EVM transfers
The EVM
BridgeHTLC.solalready existed. This adds the Stellar Soroban HTLC contract and a relayer service for coordinating swaps.Changes:
contracts/src/lib.rs: AddedHtlcLock,HtlcStatus,BridgeConfigDatatypes. New contract functions:init_bridge_config,update_bridge_config,create_htlc_lock,claim_htlc(SHA-256 verification),refund_htlc,get_htlc_lock,get_bridge_config. 4 contract tests.backend/src/services/bridge-relayer.ts:BridgeRelayerService- monitors cross-chain swaps through their lifecycle (initiated -> locked -> redeemed/expired).backend/src/routes/relayer.ts: REST API for swap management, secret reveal, config, and analytics.Closes #564
Closes #565