ICA Controller
The Contract Handler is a critical component in managing data transport between different blockchain types, such as from one Cosmos chain to another or from a Cosmos chain to an EVM chain. Nomos relies on IBC for this data transport, but because IBC is not natively supported by EVM and not all Cosmos chains support some required IBC modules like the ICA Host and ICQ Host modules, we have developed smart contracts for both Cosmos and EVM.
Smart Contracts Developed by Nomos:
COSMOS:
ICA Controller Cosmos Contract
ICQ Controller Cosmos Contract
EVM:
ICA Controller EVM Contract
ICA Host EVM Contract
Functionality of Contract Handlers
Contract Handler Overview: The contract handler is responsible for managing the transmission and reception of packets to and from target accounts on both EVM and Cosmos networks. It ensures seamless communication and data integrity between different blockchain ecosystems.
Cosmos:
Controller Chain: On Cosmos, the contract handler operates mainly on the controller chain. It includes the ICA controller and the ICQ controller, along with middle contracts necessary for specific operations (e.g., a swapping contract for Osmosis). Typically, the host chain does not require these handlers.
Components:
ICA Controller: Manages interchain accounts and facilitates cross-chain writes.
ICQ Controller: Handles interchain queries, enabling cross-chain reads.
Middle Contracts: Specific contracts required for certain operations, such as asset swaps.
EVM:
Packet Management: On EVM, the contract handler is responsible for receiving packets from other chains and managing their distribution within the EVM network. It determines how to send packets, including decoding and encoding messages.
Cross-Chain Operations: The handler also facilitates communication from EVM to Cosmos, ensuring that all necessary contracts are in place to build the Nomos connections.
Components:
ICA Controller: Manages cross-chain queries and ensures accurate data retrieval and verification when EVM is the "controller/main" chain
ICA Host: Manages cross-chain queries and ensures accurate data retrieval and verification when EVM is the "target/host" chain
Message Handling: Manages the encoding and decoding of messages to ensure compatibility and integrity across different blockchain platforms.
Last updated