Transaction Type
Three transation types are supported:TON->TAC->TON
Swaps, adding and removing liquidity,
withdrawing from dApp
TON->TAC
Depositing to dApp, bridging assets
TAC->TON
Bridging assets
Stage Progression
Cross-chain transactions progress through specific stages that can be monitored and tracked for status updates. Below is an example for TON->TAC transaction type:Collected in TAC
- Detection: Sequencers detect the cross-chain event and store transaction details in their local databases for validation.
- Validation: Each sequencer independently validates the transaction parameters, asset transfers, and user authorization.
Included in TAC consensus
- Merkle Tree Formation: Sequencers compile validated transactions into Merkle trees at the end of each epoch period.
- Consensus: Sequencer groups work to achieve 3/5 internal agreement on their Merkle tree root hashes and executor selection.
- Network Submission: Successfully agreed-upon tree is submitted to TAC EVM.
Executed in TAC
- Detection: Selected executor detects the submitted on-chain Merkle Tree root.
- Verification: Selected executor verifies the root against the transaction info from its internal database.
- Asset Operations: Required token minting or unlocking operations are performed.
- Proxy Call: The EVM proxy contract is called with properly formatted parameters and bridged assets.
- Execution: Proxy forwards formatted parameters and bridged assets to the target EVM dApp contract.
Collected in TON
- Return Message Creation: dApp on EVM side creates return messages containing results or assets to send back to TON and sends them back to Proxy.
- Proxy Call: Proxy forwards the message and assets to the EVM Cross-Chain Layer contract.
- Detection: The same sequencer network detects return messages and begins validation for the reverse journey.
Included in TON consensus
- Consensus: Return messages go through the same consensus process as initial messages.
- Network Submission: Successfully agreed-upon tree is submitted to TON.
Executed in TON
- Detection: Selected executor detects the submitted on-chain Merkle Tree root.
- Verification: Selected executor verifies the root against the transaction info from its internal database.
- Asset Operations: Required token minting or unlocking operations are performed.
- Execution: Return messages are executed on TON, delivering results or assets back to the original user.
Simplified Operation Status
You don’t need to know the exact flow an operation goes through. If you only want to know whether it is already executed or still being processed, use the simplified statuses from the TAC SDK.- Operation ID Not Found
- Pending
- Successful
- Failed
- Rollback
- Insufficient Fee
The transaction has been sent and is being processed by the TON Adapter (sequencer network).
Monitoring and Debugging
Real-Time Monitoring
Applications can implement real-time monitoring features from TAC SDK to provide users with live updates viastartTracking feature:
Debugging Transactions
- Status: Status info and error message if any. Learn more in SDK’s docs related section.
- Stage Profiling: Detailed info about every stage. Learn more in SDK’s docs related section.