Skip to content

Refactor: Separate unsigned transaction building from initiate method#58

Open
Alex99y wants to merge 4 commits intomayan-finance:mainfrom
XLabs:main
Open

Refactor: Separate unsigned transaction building from initiate method#58
Alex99y wants to merge 4 commits intomayan-finance:mainfrom
XLabs:main

Conversation

@Alex99y
Copy link

@Alex99y Alex99y commented Feb 11, 2025

This change aims to provide a way to obtain unsigned transactions without passing a signer as an argument. Providing the unsigned transactions from a different function allows us to create the transactions in the backend to be sent to the frontend and be signed by the user.

Following the NTT Route interface, this function is named transfer and returns the unsigned transaction for an NTT transfer.
https://github.com/wormhole-foundation/native-token-transfers/blob/main/sdk/definitions/src/ntt.ts#L224

@Alex99y Alex99y marked this pull request as ready for review February 12, 2025 19:27
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