Skip to content

Add optional recipient field for intent outputs#40

Closed
Asem-Abdelhady wants to merge 3 commits intoasem/V2-109/accommodate-intent.ts-solana-changesfrom
asem/V2-116/add-recipient-field
Closed

Add optional recipient field for intent outputs#40
Asem-Abdelhady wants to merge 3 commits intoasem/V2-109/accommodate-intent.ts-solana-changesfrom
asem/V2-116/add-recipient-field

Conversation

@Asem-Abdelhady
Copy link
Copy Markdown

@Asem-Abdelhady Asem-Abdelhady commented Apr 7, 2026

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.
@Asem-Abdelhady Asem-Abdelhady force-pushed the asem/V2-116/add-recipient-field branch from 6f088e4 to 9bdec3c Compare April 7, 2026 10:27
@Asem-Abdelhady Asem-Abdelhady force-pushed the asem/V2-109/accommodate-intent.ts-solana-changes branch from 590ef83 to 0e50986 Compare April 7, 2026 10:27
@Asem-Abdelhady Asem-Abdelhady requested a review from reednaa April 7, 2026 11:50
@Asem-Abdelhady Asem-Abdelhady deleted the asem/V2-116/add-recipient-field branch April 7, 2026 11:57
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