Overview
Last updated
Last updated
PheasantNetworkBridgeChild.sol is the CoreContract of Pheasant Network which oversees bridges, assets and bonds and verifies transactions.
This contract verifies the proof of transactions.
CheckpointManager, which consists of RootCheckpointManager and ChildCheckpointManager, is responsible for communications between Layer 1 and Layer 2. RootCheckpointManager deployed on Layer 1 sends blockhash to Layer 2 while ChildCheckpointManager run on Layer 2 receives and stores the blockhash sent from Layer 1.
For communications between Layer 1 and Layer 2, we utilise contracts that already exist on the networks (e.g. Fx-Portal for Polygon, CrossDomainMessage for Optimism and Inbox for Arbitrum)
BondManager.sol handles and manages deposits in ETH and ERC20, only pre-registered contract can execute slash the bond and the logic of slash depends on the pre-registered contract.