Skip to main content

Functions

constructor

  function constructor(
    contract IPolygonZkEVMGlobalExitRoot _globalExitRootManager,
    contract IERC20Upgradeable _pol,
    contract IPolygonZkEVMBridge _bridgeAddress,
    contract PolygonRollupManager _rollupManager
  ) public
Parameters
NameTypeDescription
_globalExitRootManagercontract IPolygonZkEVMGlobalExitRootGlobal exit root manager address
_polcontract IERC20UpgradeablePOL token address
_bridgeAddresscontract IPolygonZkEVMBridgeBridge address
_rollupManagercontract PolygonRollupManagerGlobal 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
NameTypeDescription
batchesstruct PolygonDataComittee.ValidiumBatchData[]Struct array which holds the necessary data to append new batches to a sequence
l2CoinbaseaddressAddress that will receive the fees from L2
dataAvailabilityMessagebytesByte 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.