Add Relay support tooling and off-curve workaround validation - #133
Draft
tracy-codes wants to merge 1 commit into
Draft
Add Relay support tooling and off-curve workaround validation#133tracy-codes wants to merge 1 commit into
tracy-codes wants to merge 1 commit into
Conversation
Add reusable quote parsing and account rewrite helpers plus Surfpool validation scripts to test Relay routes with Swig signing. This documents and automates the current workaround for Relay token routes until off-curve user support is available.
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
getSignInstructionsbatchesProblem
Relay token routes currently fail quote construction when the Solana
useris an off-curve address (for example a PDA wallet), returningNO_SWAP_ROUTES_FOUND. That prevents directly requesting token-route instructions for Swig wallet PDAs.Current workaround in this PR
getSignInstructions)This preserves execution for supported routes while Relay off-curve user support is pending.
Validation
Follow-up
Once Relay supports off-curve Solana users for token-route quoting, this rewrite workaround can be removed in favor of direct quote generation for the Swig wallet address.