Skip to content

Add optional recipient field for intent outputs#41

Open
Asem-Abdelhady wants to merge 3 commits intoasem/V2-109/accommodate-intent.ts-solana-changesfrom
feature/v2-116-add-recipient-field-on-lintentorg
Open

Add optional recipient field for intent outputs#41
Asem-Abdelhady wants to merge 3 commits intoasem/V2-109/accommodate-intent.ts-solana-changesfrom
feature/v2-116-add-recipient-field-on-lintentorg

Conversation

@Asem-Abdelhady
Copy link
Copy Markdown

Linear: https://linear.app/lifi-linear/issue/V2-116/add-recipient-field-on-lintentorg

Summary

  • Adds an optional recipient field to global store (state.svelte.ts)
  • Surfaces a Recipient address input in the IssueIntent screen (accepts any EVM address, validates on-the-fly)
  • Threads outputRecipient through intentFactory.ts to toCoreCreateIntentOptions for both compact and escrow paths

Notes

  • Stacked on asem/V2-109/accommodate-intent.ts-solana-changes
  • Field is optional — leaving it blank uses the default recipient behaviour from the intent library

Test plan

  • Open IssueIntent screen, verify Recipient input appears under the Verifier controls
  • Enter an invalid string — confirm the field turns red (error state)
  • Enter a valid EVM address — confirm error state clears
  • Submit an intent with a custom recipient and verify the order's output recipient reflects the input address

Expected output

Screen.Recording.2026-04-07.at.1.15.16.PM.mov

Allows users to specify a custom EVM output recipient address, independent
of the connected wallet. Defaults to the connected wallet when left blank.
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 7, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 986510fe-5e1d-46a0-9077-05be63d26ad5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/v2-116-add-recipient-field-on-lintentorg

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@reednaa
Copy link
Copy Markdown
Member

reednaa commented Apr 7, 2026

Closes: V2-116

@Asem-Abdelhady Asem-Abdelhady requested a review from reednaa April 7, 2026 12:32
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.

2 participants