This PR introduces gasless swaps to SOL from selected tokens using Whirlpools!
It works through two actions/endpoints:
buildWhirlpoolsSwap
sendGeneratedTransaction (or, if you use octane as a library, signGeneratedTransaction)
The first endpoint builds a transaction for user to sign with pre-filled Whirlpools instructions. The second endpoint signs it from fee payer's side and submits the transaction to network.
The implementation leverages MessageTokens that provide anti-tampering capabilities, while keeping Octane stateless. More context is available here: packages/core/src/actions/signGeneratedTransaction.ts
This PR introduces gasless swaps to SOL from selected tokens using Whirlpools!
It works through two actions/endpoints:
buildWhirlpoolsSwap
sendGeneratedTransaction
(or, if you use octane as a library,signGeneratedTransaction
)The first endpoint builds a transaction for user to sign with pre-filled Whirlpools instructions. The second endpoint signs it from fee payer's side and submits the transaction to network.
The implementation leverages
MessageToken
s that provide anti-tampering capabilities, while keeping Octane stateless. More context is available here: packages/core/src/actions/signGeneratedTransaction.ts