Crate sui_bridge

Source

Modules§

  • BridgeActionExecutor receives BridgeActions (from BridgeOrchestrator), collects bridge authority signatures and submit signatures on chain.
  • The EthSyncer module is responsible for synchronizing Events emitted on Ethereum blockchain from concerned contracts. Each contract is associated with a start block number, and the syncer will only query from that block number onwards. The syncer also keeps track of the last finalized block on Ethereum and will only query for events up to that block number.
  • This file contains the definition of the SuiBridgeEvent enum, of which each variant is an emitted Event struct defind in the Move Bridge module. We rely on structures in this file to decode the bcs content of the emitted events.
  • BridgeMonitor receives all SuiBridgeEvent and EthBridgeEvent and handles them accordingly.
  • BridgeOrchestrator is the component that:
  • The BridgeWatchDog module is responsible for monitoring the health of the bridge by periodically running various observables and reporting the results.
  • The SuiSyncer module is responsible for synchronizing Events emitted on Sui blockchain from concerned modules of bridge package 0x9.

Macros§

Constants§