ToolszkEVMArchitectureHigh levelSmart contractsApiConsensusZkEVM

PolygonZkEVMExistentEtrog.sol

## Functions ### ##### Parameters | Name | Type | Description | | :--- | :--- | :------------------------------------------------------------------- | | | contr

Functions

constructor

  function constructor(
    contract IPolygonZkEVMGlobalExitRootV2 _globalExitRootManager,
    contract IERC20Upgradeable _pol,
    contract IPolygonZkEVMBridgeV2 _bridgeAddress,
    contract PolygonRollupManager _rollupManager
  ) public
Parameters
NameTypeDescription
_globalExitRootManagercontract IPolygonZkEVMGlobalExitRootV2Global exit root manager address.
_polcontract IERC20UpgradeablePOL token address.
_bridgeAddresscontract IPolygonZkEVMBridgeV2Bridge address.
_rollupManagercontract PolygonRollupManagerGlobal exit root manager address.

initializeUpgrade

  function initializeUpgrade(
    address _admin,
    address _trustedSequencer,
    string _trustedSequencerURL,
    string _networkName,
    bytes32 _lastAccInputHash
  ) external
  • This initializer is called instead of the PolygonRollupBase.
  • This is a special initializer since the zkEVM network has already been created.
Parameters
NameTypeDescription
_adminaddressAdmin address.
_trustedSequenceraddressTrusted sequencer address.
_trustedSequencerURLstringTrusted sequencer URL.
_networkNamestringL2 network name.
_lastAccInputHashbytes32Acc input hash.

Events

UpdateEtrogSequence

Emitted when the system is updated to Etrog upgrade using this contract, and contains the etrog setup transaction.

  event UpdateEtrogSequence(
  )
Edit on GitHub

Last updated on