FusionPlusTON

Extension for 1inch Fusion+ supporting TVM - TON Virtual Machine.

FusionPlusTON

Created At

ETHGlobal Prague

Project Description

Extension for 1inch Fusion+ supporting TON

The project consists of two main repositories:

  1. Smart Contracts: This repository contains the following contracts rewritten in Tact for compatibility with the TON Virtual Machine (TVM):
  • EscrowSrc;
  • EscrowDst;
  • EscrowFactory;
  • LimitOrderProtocol (mock);
  1. Backend (relayer and resolver simulation): This repository simulates the resolver and relayer processes to demonstrate a complete cross-chain swap flow.

Backend Simulation Flow:

  1. Order creation: User creates an order along with a secret, which is securely retained on the client side until needed.
  2. Resolver contract deployment: The resolver deploys EscrowSrc and EscrowDst smart contracts and securely locks deposits.
  3. Order status monitoring: An endpoint is available to check the order's status. Once the order status is updated to "filled," the user reveals the secret, enabling the resolver to withdraw funds from both escrow contracts.
  4. Completion confirmation: The final step involves waiting for the order status to reach "completed," after which transaction details become available for review.

Notes:

Due to the complexity of the Fusion+ flow and limited time constraints, the backend simulation was not fully finalized for the demo. However, endpoints demonstrating the implemented functionality can be accessed here:

API Documentation and Endpoints

All source code developed for this project has been added to the repository for transparency and further development.

How it's Made

I used tact smart contract programming language for the TON Virtual Machine compatibility and ts for the backend demo. All the details I added to the description.

All source code developed for this project has been added to the repository for transparency and further development.

Repositories:

Smart contracts: https://github.com/RostyslavBortman/fusion-plus-ton Backend: https://github.com/RostyslavBortman/fusion-plus-ton-backend

background image mobile

Join the mailing list

Get the latest news and updates