The @tokamak-network/thanos-contracts package provides the smart contracts for the Thanos network, focusing on Ethereum scalability and cross-chain communication. It includes contracts for:


1. Cross-Domain Messaging

Cross-domain messaging is a core feature of Thanos, enabling communication between Ethereum(L1) and Thanos(L2). This mechanism is crucial for various use cases, such as transferring data, triggering actions across chains, and enabling interoperability between contracts on different layers.

How Cross-Domain Messaging works

Thanos employs Cross-Domain Messengers to facilitate messages passing between L1 and L2:

Process flow:

  1. Send messages from L1 to L2

b. Send messages from L2 to L1