Proxy Apps
Learn about TAC Proxy Apps - the connectors between TON and EVM applications
Proxy Apps handles all cross-chain complexities while providing a native experience for users.
Understanding Proxy Apps
A proxy app is a lightweight smart contract that processes calls between different parts of the TAC system. On EVM (TAC EVM Layer), it manages interactions between the execution layer and the target application.
When you want to interact with an EVM application through TAC, you don’t need to understand the underlying cross-chain mechanics. The proxy apps handle all the necessary translations and communications automatically.
How Proxy Apps Work
The proxy system operates on both chains:
TON Side Proxy
On the TON chain, the proxy app receives your TON transaction and prepares it for the TON Adapter (on EVM side). When you interact with an EVM application, the TON proxy:
- Accepts your transaction from your TON wallet
- Formats the call data appropriately
- Locks any required assets in the Adapter wallet
- Sends the formatted message to the sequencer network****
- Monitors transaction status and handles confirmations
EVM Side Proxy
The EVM proxy connects TAC and the target application:
- Receives verified messages from the sequencer network
- Handles asset unlocking or minting
- Interacts with the target EVM application
- Processes return data
- Sends results back through the TON Adapter
Message Flow
When you interact with an EVM application through TAC, here’s what happens:
Transaction Initiation
You send a transaction using your TON wallet to TON Adapter. The proxy formats your request and prepares any assets for transfer through the sequencer network.
Message Transfer
The TON proxy creates a message containing your transaction details and sends it through the sequencer network, where sequencers validate and process it.
EVM Execution
The EVM proxy receives the validated message, processes any required asset operations, and calls the target application with your requested action.
Return Trip
Results from the EVM application flow back through the same path in reverse, eventually reaching your TON wallet.
Asset Handling
Proxy apps manage asset transfers securely between chains:
Asset Locking
When sending assets from TON to EVM, the TON proxy locks them in the TON Adapter. This ensures assets can’t be double-spent and maintains the correct token supply across chains.
Asset Minting and Unlocking
The EVM proxy handles asset representation on the EVM side. It can mint new tokens representing locked TON assets or unlock previously transferred tokens, depending on the direction of transfer.
Security Considerations
Proxy apps incorporate several security measures:
Asset Validation
The TON proxy verifies that the actual assets transferred match the transaction parameters. This prevents potential exploits where someone might try to claim they’ve transferred more assets than they actually have.
Transaction Verification
Before executing any operations, the EVM proxy validates that the transaction has been properly approved by the sequencer network through TAC’s consensus mechanism.
Failure Handling
If a transaction fails at any point, proxy apps ensure assets are returned to their owners. The rollback process is automatic and secure, protecting users from losing funds due to failed transactions.
For Developers
Testing
Before deploying to mainnet, test your integration using our testnet:
- Deploy your application to TAC EVM testnet (Turin)
- Build the proxy app
- Test interactions using test tokens
- Verify both TON and EVM side behavior
Common Use Cases
Token Swaps
Users can swap tokens on EVM DEXes directly from their TON wallet. The proxy apps handle all the necessary asset locking, unlocking, and message routing automatically.
NFT Markets
TAC doesn’t support NFTs yet, but ut it is on roadmap, and we will support it soon.
Browse and purchase TON NFTs on EVM marketplaces using TON currency. Proxy apps manage the currency conversion and NFT transfer process seamlessly.
DeFi Integration
Access EVM DeFi protocols through your TON wallet. Proxy apps translate your actions into the appropriate protocol interactions on the EVM side.