feat: add Stellar bridge provider adapter interface - #1052
Merged
Conversation
Contributor
There was a problem hiding this comment.
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
StellarBridgeProviderAdapterinterface 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.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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
Adds a provider-agnostic adapter contract for Stellar bridge integrations.
StellarBridgeProviderAdapterinterface for bridge providers.Testing
normalization.
Notes
in this change.