Skip to content

feat: scaffold bridge datasource #2571

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open

feat: scaffold bridge datasource #2571

wants to merge 19 commits into from

Conversation

iamacook
Copy link
Member

@iamacook iamacook commented May 5, 2025

Summary

Partially resolves #2560

In order to decode bridge transactions, we need to get a quote and/or status for transactions. This adds the relevant datasource in order to do so.

Changes

  • Add LI.FI implemented IBridgeApi with relevant factory
  • Add IBridgeRepository with relevant schema inferred entities
  • Add appropriate test coverage

@iamacook iamacook self-assigned this May 5, 2025
@iamacook iamacook requested a review from a team as a code owner May 5, 2025 12:01
@iamacook iamacook marked this pull request as draft May 5, 2025 12:02
@iamacook iamacook marked this pull request as ready for review May 6, 2025 11:22
@iamacook iamacook marked this pull request as draft May 15, 2025 05:50
@iamacook iamacook force-pushed the feat/lifi-datasource branch from 519569a to d12b702 Compare May 20, 2025 13:10
@@ -0,0 +1,179 @@
import type { HttpErrorFactory } from '@/datasources/errors/http-error-factory';
Copy link
Member Author

Choose a reason for hiding this comment

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

This negates needing to use the SDK. We should remove the methods which are not needed and reduce complexity of those which are. On top of that, we should only validate the properties which are required for mapping.

@schmanu schmanu marked this pull request as ready for review June 10, 2025 14:06
@schmanu schmanu requested a review from PooyaRaki June 11, 2025 06:43
@iamacook iamacook removed their assignment Jun 11, 2025
@PooyaRaki PooyaRaki removed their assignment Jun 12, 2025
@schmanu schmanu self-assigned this Jun 12, 2025
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.

Scaffold LI.FI transaction decoding
3 participants