Skip to content

PolygonDataComittee.sol

Functions

constructor

  function constructor(
    contract IPolygonZkEVMGlobalExitRoot _globalExitRootManager,
    contract IERC20Upgradeable _pol,
    contract IPolygonZkEVMBridge _bridgeAddress,
    contract PolygonRollupManager _rollupManager
  ) public
Parameters
Name Type Description
_globalExitRootManager contract IPolygonZkEVMGlobalExitRoot Global exit root manager address
_pol contract IERC20Upgradeable POL token address
_bridgeAddress contract IPolygonZkEVMBridge Bridge address
_rollupManager contract PolygonRollupManager Global exit root manager address

sequenceBatches

  function sequenceBatches(
  ) public

sequenceBatchesDataCommittee

Allows a sequencer to send multiple batches.

  function sequenceBatchesDataCommittee(
    struct PolygonDataComittee.ValidiumBatchData[] batches,
    address l2Coinbase,
    bytes dataAvailabilityMessage
  ) external
Parameters
Name Type Description
batches struct PolygonDataComittee.ValidiumBatchData[] Struct array which holds the necessary data to append new batches to a sequence
l2Coinbase address Address that will receive the fees from L2
dataAvailabilityMessage bytes Byte array containing signatures and all addresses of the committee members in the ascending order
[signature 0, …, signature requiredAmountOfSignatures -1, address 0, … address N]
note that each ECDSA signatures are used, therefore each one must be 65 bytes

switchSequenceWithDataAvailability

Allows the admin to activate force batches.

This action is not reversible.

  function switchSequenceWithDataAvailability(
  ) external

Events

SwitchSequenceWithDataAvailability

  event SwitchSequenceWithDataAvailability(
  )

Emitted when switching the sequencing functionality.