This ticket describes a webapp based version of the offramping prototype that uses Spacewalk and a SEP-24 based offramp on Stellar in order to offramp EURC.s on Pendulum.
Goal
The goal of this phase is remove the stellar secret key input field too and allow the user to offramp just by connecting their Pendulum wallet
Todo
This is a follow-up ticket to #19
- Remove the stellar secret key input field
- Build a backend server that:
- has access to the secret of the Stellar funding account (supplied via env variable)
- exposes a POST endpoint that receives the to-be-cosigned transactions (offramp and merge-account) of the ephemeral account. The server then checks the content/operations contained in the transactions, signs the transactions and sends them back to the client. The client will then try to submit them as before.
- Note that we could also make it two different POST endpoints, one for the offramping transaction and one for the merge-account transaction, but I'm not sure if it's worth distinguishing.
- Make the client send the pre-signed Stellar transactions to the backend before calling the
submitOfframpTransaction() and cleanupStellarEphemeral() functions
- The app should make sure the stellar part of the transaction is also signed
- The UI should only have the Begin offramp button
This ticket describes a webapp based version of the offramping prototype that uses Spacewalk and a SEP-24 based offramp on Stellar in order to offramp EURC.s on Pendulum.
Goal
The goal of this phase is remove the stellar secret key input field too and allow the user to offramp just by connecting their Pendulum wallet
Todo
This is a follow-up ticket to #19
submitOfframpTransaction()andcleanupStellarEphemeral()functions