MisterTicot It's my implementation, I designed it 7 months ago, when CosmicLink was not announced yet, and SEP-0007 was not defined. As I mentioned earlier, the application will support CosmicLink format. I spent last month fixing StellarExpert, so I had no time to properly clean up the code and implement the latest specs. If you are going to create your own implementation based on my open-source project and it will be better in terms of usability, I will gradually switch to your project, ditching my codebase.
I'm going to update GET params mapping to match your notation (for example,
xdr instead of
txXdr). I do like the format you proposed, the only thing which seems completely wrong to me is a callback logic. If the browser follows redirects, the initiator application will lose its current state. For example, you prepared a transaction on, say,
super-cool-trading-bot.io, then you are redirecting the user to
cosmic.link?xdr=...&url=super-cool-trading-bot.io. In this case, a developer of
super-cool-trading-bot.io has to save current application state either in URL or in
localStorage in order to restore it once the transaction is signed.
My implementation works transparently. You just invoke the intent which returns a standard promise. Once the promise is resolved, the application receives the result, and it does not lose the current state.