Skip to content

feat: add Stellar bridge provider adapter interface - #1052

Merged
mijinummi merged 2 commits into
MDTechLabs:mainfrom
Gyanee01:main
Aug 28, 2026
Merged

feat: add Stellar bridge provider adapter interface#1052
mijinummi merged 2 commits into
MDTechLabs:mainfrom
Gyanee01:main

Conversation

@Gyanee01

Copy link
Copy Markdown
Contributor

Summary

Adds a provider-agnostic adapter contract for Stellar bridge integrations.

  • Introduces normalized quote, route, execution, status, and error types.
  • Defines the StellarBridgeProviderAdapter interface for bridge providers.
  • Adds public exports for the Stellar adapter and quote type modules.
  • Adds contract tests using a stub provider implementation.

Testing

  • Added adapter contract test coverage for quotes, routes, execution, status checks, and error
    normalization.

Notes

  • This establishes the integration boundary only; no concrete external bridge provider is implemented
    in this change.

Copilot AI lite review requested due to automatic review settings August 27, 2026 05:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a provider-agnostic Stellar bridge adapter contract to establish a stable integration boundary for future bridge providers, along with canonical quote types and contract-level tests.

Changes:

  • Introduces canonical StellarBridgeQuote (route/fees/execution/output) type definitions.
  • Defines StellarBridgeProviderAdapter interface with normalized quote/route/execution/status/error contracts and exports it via adapter/interface barrels.
  • Adds contract tests using a stub adapter implementation to validate the adapter surface and normalization expectations.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/providers/stellar/stellar-bridge-provider-adapter.interface.spec.ts Adds adapter contract tests using a stub provider implementation.
src/quotes/types/index.ts Exports canonical quote types from the quotes/types barrel.
src/quotes/types/canonical-quote.ts Defines canonical, provider-normalized Stellar bridge quote types.
src/providers/stellar/interfaces/stellar-bridge-provider-adapter.interface.ts Introduces the Stellar bridge provider adapter contract types and interface.
src/providers/stellar/interfaces/index.ts Re-exports the Stellar provider adapter interface from the interfaces barrel.
src/providers/stellar/index.ts Updates Stellar provider barrel exports (currently contains merge-conflict markers).
src/providers/stellar/adapters/index.ts Adds a public entry point for the adapter contract exports.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/providers/stellar/index.ts Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@mijinummi
mijinummi merged commit a7a7197 into MDTechLabs:main Aug 28, 2026
1 check 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.

3 participants