मुख्य सामग्री पर जाएं
Bridge Module एक Multichain Virtual Environment में networks को जोड़ता है। इसके सक्षम होने पर, एक source-chain transaction जो एक bridge event उत्सर्जित करता है, उसी Virtual Environment के अंदर destination chain पर संबंधित delivery को ट्रिगर करता है। Relay आपके द्वारा कॉन्फ़िगर किए गए mode (immediate या delayed) में चलता है और कोई real funds का उपयोग नहीं करता।
Bridge Module उन plans पर उपलब्ध है जिनमें multichain क्षमताएं शामिल हैं। इसे अपने account पर सक्षम करने के लिए हमसे संपर्क करें।

Bridge Module को सक्षम करना

अपने Virtual Environment के लिए Settings page खोलें और Advanced panel का विस्तार करें। Bridge (“Enable cross-network bridge”) जाँचें, फिर Save Changes करें। एक बार सक्षम होने के बाद, relay Virtual Environment से जुड़े networks पर प्रत्येक समर्थित protocol को कवर करता है। दो settings नियंत्रित करती हैं कि messages को कैसे relay किया जाता है:
  • Relay mode: Auto relay source event का पता चलते ही destination transaction देता है। Delayed relay एक निश्चित अंतराल के लिए delivery को रोकता है ताकि आप in-flight timing और destination-chain latency का test कर सकें।
  • Delayed relay seconds: Delayed relay mode में लागू delay (उदाहरण के लिए 3600)।
Bridge settings Advanced panel showing the Bridge enable checkbox, a Relay mode dropdown set to Delayed relay, a Delayed relay seconds field set to 3600, and the supported protocols Layer Zero, Chainlink, Across, and CCTP with descriptions

Bridge Settings → Advanced: Bridge enable checkbox, Relay mode (Auto relay / Delayed relay) with a delay-in-seconds field, और समर्थित protocols Layer Zero, Chainlink, Across, और CCTP।

Module केवल वहीं relay करता है जहाँ protocol contracts पहले से deployed हैं। यदि कोई protocol आपके Virtual Environment में किसी network पर मौजूद नहीं है, तो वह route उपलब्ध नहीं है। Bridge contracts panel दिखाता है कि कौन से protocol router contracts प्रति network deployed हैं।

समर्थित protocols

LayerZero relay मानक omnichain messages और composed messages दोनों को कवर करता है। LayerZero Read requests केवल Ethereum Mainnet पर relay किए जाते हैं। जब receiving OApp lzReceive के दौरान endpoint.sendCompose से कोई composed call queue करता है, तो module हर queued call को destination chain पर एक अलग lzCompose transaction के रूप में deliver करता है, और message के compose options में सेट gas और value आगे भेजता है। Bridge operation तभी पूरा होता है जब हर composed call चल चुकी हो। अगर कोई composed call revert होती है, तो module उस विफलता को destination endpoint पर lzComposeAlert से दर्ज करता है और operation को failed चिह्नित करता है, जिसमें उस composed call का index, OApp और composer लिखा होता है। Chainlink CCIP relay स्वचालित रूप से lane के version का अनुसरण करता है: module हर ramp version के send event का पता लगाता है और मिलते-जुलते OffRamp के माध्यम से delivery करता है, इसलिए v1.6 से v2.0 पर migrate होने वाले lanes बिना किसी configuration बदलाव के relay होते रहते हैं। v2.0 lanes पर module Cross-Chain Verifier (CCV) step को Virtual Environment के अंदर संभालता है, इसलिए किसी off-chain committee signatures की आवश्यकता नहीं होती। ऐसे token transfers जिन्हें off-chain attestation चाहिए (जैसे CCTP-आधारित token pools के माध्यम से USDC) किसी भी CCIP version पर relay नहीं किए जाते।

समर्थित networks

Bridge protocol उपलब्धता समग्र network समर्थन से संकीर्ण है क्योंकि Bridge Module एक दिए गए network पर real protocol contracts के मौजूद होने पर निर्भर करता है। प्रारंभिक कवरेज: प्रति-network protocol समर्थन protocol की अपनी deployments पर निर्भर करता है। Chainlink CCIP के लिए, CCIP Directory देखें और पुष्टि करें कि CCIP कौन से networks का समर्थन करता है। कवरेज ग्राहक की मांग के आधार पर विस्तारित होता है। यदि आपको एक bridge protocol के लिए एक विशिष्ट network सक्षम करने की आवश्यकता है, तो हमें support@tenderly.co पर लिखें।

Bridge dashboard

Overview tab आपको Virtual Environment में सभी bridge गतिविधि पर operational visibility देता है:
  • Top routes: प्रत्येक source-to-destination network jodi, इसका protocol, और relayed operations की संख्या।
  • Bridge contracts: प्रत्येक network पर deployed protocol router contracts, network, contract name, address, और protocol के साथ।
  • Bridge transactions: प्रत्येक relayed operation की एक सूची इसकी status, source network और transaction, destination network और transaction, protocol, और relative time के साथ। एक auto-refresh अंतराल control सूची को वर्तमान रखता है।
Bridge Overview tab showing a Top routes panel (route, protocol, relayed count), a Bridge contracts panel (network, name, address, protocol), and a transaction list with status, source and destination networks and transactions, protocol, and relative time

Bridge Overview: relayed-operations list के ऊपर Top routes और Bridge contracts panels, Ethereum, Arbitrum, Optimism, Base, और Polygon में Layer Zero, Across, Chainlink, और CCTP routes के साथ।

round-trip की पुष्टि करने के लिए, source transaction (उदाहरण के लिए एक LayerZero PacketSent) खोजें और matching destination transaction (lzReceive) पर उसकी row का पालन करें।

Bridge operation detail

एक row को select करने पर bridge operation खुलता है, जो protocol, समग्र status, और cross-chain message बनाने वाले transactions की श्रृंखला दिखाता है: प्रत्येक step का network, status, function (उदाहरण के लिए verify, lzReceive), block, transaction hash, sender, recipient, और उपयोग की गई gas। एक Input viewer decoded message payload (srcEid, dstEid, guid, options, sendLibrary) को Decoded/Raw toggle के साथ render करता है।
Bridge operation detail page showing protocol layerzero with completed status, a table of constituent transactions with functions verify and lzReceive and their gas used, and a decoded input payload with srcEid, dstEid, guid, options, and sendLibrary fields

एक single bridge operation: protocol और status, इसके constituent transactions उनके functions और उपयोग की गई gas के साथ, और decoded message payload।

Cursed CCIP lanes: CursedByRMN और BadARMSignal

CursedByRMN या BadARMSignal के साथ revert होने वाला CCIP message एक curse से टकराया है, जो CCIP के लिए Chainlink का onchain pause है। Chainlink का Risk Management Network (RMN) किसी lane को pause करने के लिए RMN contract के cursed subjects में एक chain selector जोड़ता है। Virtual Environment बाकी chain state के साथ उस contract को भी fork करता है, इसलिए जो lane fork block पर cursed है वह आपके Virtual Environment में भी cursed रहती है। Lane का उपयोग करने के लिए, Admin RPC के माध्यम से Virtual Environment में curse हटाएँ। हर network अपना RMN contract जाँचता है, इसलिए lane source network पर, destination network पर, या दोनों पर cursed हो सकती है: Subject 16 bytes तक pad किया गया chain selector होता है। Global subject, 0x01000000000000000000000000000001, उस network पर CCIP को pause करता है जहाँ वह सेट है।

Virtual Environment पर curse हटाना

जिस network को ठीक करना है, उस पर यह script चलाएँ। इसे उस network का Admin RPC URL, उसका CCIP Router address, और lane के दूसरे सिरे वाले network का chain selector चाहिए। CCIP Directory हर network का Router address और chain selector सूचीबद्ध करती है। उदाहरण के values Virtual Environment के Ethereum Mainnet network में OP Mainnet selector पर लगा curse हटाते हैं। केवल RMN owner ही uncurse call कर सकता है। Script tenderly_setStorageAt से owner slot में एक caller address लिखता है, उस address से uncurse call करता है, फिर मूल owner को वापस लिख देता है।
lift-curse.sh
Script RMN contract को Router से पढ़ता है। CCIP Directory में दिया गया RMN address एक proxy है, और उस पर uncurse call करना विफल होता है। जब subject getCursedSubjects() से हट जाए, तो message दोबारा भेजें। Lane के cursed रहने के दौरान भेजे गए messages curse हटने के बाद relay नहीं होते।

Paused bridge को test करने के लिए lane को curse करना

यह test करने के लिए कि आपका application paused lane को कैसे संभालता है, वही script uncurse(bytes16[]) की जगह curse(bytes16[]) के साथ चलाएँ। Source network पर destination chain selector को curse करने से ccipSend revert होता है। Destination network पर source chain selector को curse करने पर ccipSend सफल होता है और destination transaction revert होता है। Curse हटाने के लिए मूल script चलाएँ।

Bridging का उपयोग कब करें

यह भी देखें