🟩TIF Relayers Network
Last updated
Last updated
The TIF Relayers Network stands as a peer-to-peer (P2P) infrastructure meticulously designed to facilitate the swift, precise, and secure transmission of data essential for cross-chain operations. Serving as the off-chain component of the TIF protocol, this network assumes a pivotal role in ensuring the seamless and secure flow of information among different blockchain networks.
The primary purpose of the Relayers Network revolves around the transmission of messages containing instructions for cross-chain operations across various blockchains. To streamline this process, each blockchain that the TIF protocol supports hosts a collection of smart contracts. When a cross-chain operation is initiated, these contracts trigger an event, which the relayers within the network actively monitor and process.
The relayers ecosystem encompasses the following components:
TIF Relayers Network: This is a peer-to-peer (P2P) network where each peer operates as a node running specialized software. Node information is recorded in the Staking contract, and relayers receive rewards for their participation based on specific conditions. The primary objective of the TIF Relayers Network is to ensure the rapid, precise, and secure transmission of data related to cross-chain operations among the blockchains supported by the TIF protocol.
On-chain Configuration Contract: This contract contains essential information for coordinating the actions of relayers. It includes details such as the number of nodes in the MPC group and the actual address of the Staking contract. Relayers regularly check this contract for updates, especially when an epoch changes.
Staking Contract: The Staking contract stores comprehensive information about relayers, including their addresses, status, staked amounts, reward calculations, and more. It also includes data related to epochs, MPC addresses, and other crucial aspects. The Staking contract plays a pivotal role in the operation of the Relayers Network.
BridgeV2 Contract: The BridgeV2 contract serves as the link between the off-chain and on-chain components of the TIF protocol, bridging the Relayers Network and TIF contracts. An instance of the BridgeV2 contract is deployed on each blockchain supported by TIF.
Microservice Advisor: This microservice provides gas price estimations for the blockchains supported by TIF, assisting users in making informed decisions.
Microservice Broadcaster: The Broadcaster microservice is responsible for transmitting transactions with calldata that has been signed by relayers to various blockchains.
WebApp for Node Runners: TIF offers a web-based application designed for node runners. It simplifies interactions with the Staking contract, allowing them to register their relayers, manage stakes, and track rewards.