The XolosArmy Network is excited to share the latest research from the Tonalli Wallet team. We have been actively exploring how eCash (XEC) could potentially interface with the THORChain ecosystem. To test these waters, our team has developed a wallet-side Proof of Concept (PoC) repository designed to map out the user experience, transaction flows, and architectural requirements for a future integration.
What Does the Wallet-Side PoC Accomplish?
Building a seamless cross-chain experience requires robust wallet architecture before the protocol-level bridge is even finalized. Our PoC tackles several crucial workstreams:
- Dynamic Vault Discovery: A critical wallet rule in THORChain integrations is that inbound vault addresses must never be static. The PoC includes a client that dynamically resolves inbound addresses from THORChain endpoints.
- Swap Quote Retrieval & Inspection: We've built a
QuoteInspectormodule that fetches live protocol data. It processes expected outputs, fee data, and slippage. - UTXO & Memo Compatibility: For UTXO chains like eCash, swap instructions must be securely carried in the transaction. This research explores constructing the necessary
OP_RETURNmemos required by THORChain nodes to observe and process swaps.
User Safety First: The QuoteInspector
Cross-chain swaps can be complex, and protecting users from failed transactions or network rejections is a top priority for Tonalli Wallet. The QuoteInspector normalizes THORChain's complex data into a digestible format and applies strict pre-sign validations.
Before a transaction is ever built, the wallet automatically checks for:
- Halted chains or paused global trading.
- Quote expirations to prevent stale swap execution.
- Input amounts falling below network dust thresholds or recommended minimums.
Conceptualizing the User Experience
Once protocol-level support is achieved, the user experience needs to be intuitive. The PoC outlines a conceptual UI mockup for Tonalli Wallet where users can easily select their source asset, view available balances, and see the estimated output and destination address before executing a swap.
Reaching Out to the THORChain Community
Open-source development thrives on collaboration. To ensure our architecture aligns with THORChain's best practices, the Tonalli Wallet team has officially reached out to core THORChain contributors.
Recently, we contacted Chad Barraford (@CBarraford) from the THORChain ecosystem to share our wallet-side PoC repository. We are seeking technical feedback on our initial UTXO/OP_RETURN gap analysis and routing paths as we prepare for the next step: exploring the chain-level requirements for a Bifrost client implementation.
Looking Ahead: Workstream B
While Workstream A (the wallet PoC) proves the UX and data flow is viable, Workstream B is where the heavy lifting happens. This involves chain-level research, including an eCash chain-client requirements analysis, UTXO compatibility verification, and a gap analysis for a future Bifrost integration.
Stay tuned to the XolosArmy Network as we continue to push the boundaries of what eCash can do in the decentralized finance space!
← Go to xolosArmy Network