Skip to content

Remove destination() method and use /addresses endpoint exclusively#84

Merged
robdimarco-atxp merged 1 commit intomainfrom
robdimarco/atxp-339-modify-the-sdk-to-no-longer-call-the-destination-route
Oct 1, 2025
Merged

Remove destination() method and use /addresses endpoint exclusively#84
robdimarco-atxp merged 1 commit intomainfrom
robdimarco/atxp-339-modify-the-sdk-to-no-longer-call-the-destination-route

Conversation

@robdimarco-atxp
Copy link
Copy Markdown
Contributor

Summary

Removes the destination() method from the PaymentDestination interface and implementations, making the SDK use only the /addresses endpoint for all payment destination lookups.

Changes

  • PaymentDestination Interface: Removed destination() method, now only has destinations()
  • ChainPaymentDestination: Removed destination() implementation, simplified destinations() to return array directly
  • ATXPPaymentDestination: Removed destination() implementation that was calling /destination endpoint
  • requirePayment: Removed fallback logic, now always calls destinations()
  • Tests: Updated all 14 tests to use destinations() and expect arrays

Test Results

✅ All 126 tests in atxp-server package pass

Related

Closes ATXP-339

🤖 Generated with Claude Code

- Remove destination() from PaymentDestination interface
- Remove destination() from ChainPaymentDestination and ATXPPaymentDestination
- Update requirePayment to only call destinations()
- Update all tests to use destinations() instead of destination()

All SDK calls now use /addresses endpoint exclusively

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@robdimarco-atxp robdimarco-atxp merged commit c828488 into main Oct 1, 2025
1 check passed
@robdimarco-atxp robdimarco-atxp deleted the robdimarco/atxp-339-modify-the-sdk-to-no-longer-call-the-destination-route branch October 1, 2025 22:41
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.

1 participant