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:
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.
Thanos employs Cross-Domain Messengers to facilitate messages passing between L1 and L2:
L1CrossDomainMessenger. The message is sent to the portal contract and stored on itL2CrossDomainMessengerb. Send messages from L2 to L1
L2CrossDomainMessenger. The message from L2 to L1 is initially stored in the L2 state.