PolygonZkEVMGlobalExitRootV2.sol
Contract responsible for managing the exit roots across multiple networks. ## Functions ### ##### Parameters | Name | Type | Description | | :--- | :--- | :----
Contract responsible for managing the exit roots across multiple networks.
Functions
constructor
function constructor(
address _rollupManager,
address _bridgeAddress
) publicParameters
| Name | Type | Description |
|---|---|---|
_rollupManager | address | Rollup manager contract address |
_bridgeAddress | address | PolygonZkEVMBridge contract address |
updateExitRoot
Updates the exit root of any of the networks and the global exit root.
function updateExitRoot(
bytes32 newRoot
) externalParameters
| Name | Type | Description |
|---|---|---|
newRoot | bytes32 | new exit tree root |
getLastGlobalExitRoot
Returns last global exit root.
function getLastGlobalExitRoot(
) public returns (bytes32)getRoot
Computes and returns the Merkle root of the L1InfoTree.
function getRoot(
) public returns (bytes32)getLeafValue
Given leaf data, it returns the leaf hash.
function getLeafValue(
bytes32 newGlobalExitRoot,
uint256 lastBlockHash,
uint64 timestamp
) public returns (bytes32)Parameters
| Name | Type | Description |
|---|---|---|
newGlobalExitRoot | bytes32 | Last global exit root |
lastBlockHash | uint256 | Last accesible block hash |
timestamp | uint64 | Ethereum timestamp in seconds |
Events
UpdateL1InfoTree
Emitted when the global exit root is updated.
event UpdateL1InfoTree(
)Last updated on
PolygonZkEVMBridgeV2.sol
Bridge contract deployed on Ethereum and all Polygon rollups. Responsible for managing the token interactions with other networks. ## Functions ### Disable init
CDKDataCommittee.sol
## Functions ### ### Allows the admin to setup members of the committee. - The system requires N/M signatures where N => and M => . - The number of urls must be