Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.17 KB

PolygonZkEVMGlobalExitRoot.md

File metadata and controls

51 lines (38 loc) · 1.17 KB

Contract responsible for managing the exit roots across multiple networks

Functions

constructor

  function constructor(
    address _rollupAddress,
    address _bridgeAddress
  ) public

Parameters:

Name Type Description
_rollupAddress address Rollup contract address
_bridgeAddress address PolygonZkEVMBridge contract address

updateExitRoot

  function updateExitRoot(
    bytes32 newRoot
  ) external

Update the exit root of one of the networks and the global exit root

Parameters:

Name Type Description
newRoot bytes32 new exit tree root

getLastGlobalExitRoot

  function getLastGlobalExitRoot(
  ) public returns (bytes32)

Return last global exit root

Events

UpdateGlobalExitRoot

  event UpdateGlobalExitRoot(
  )

Emitted when the global exit root is updated