Skip to content

Tooling

Add new rollup type

addNewRollupType
addNewRollupType

Tool to call addNewRollupType function.

This tool adds a new rollup type to PolygonRollupManager contract.

  1. Go to repository: agg-contracts-internal.
  2. You can use this tool to add new rollup type
    • Follow the steps found in this README.
    • Set parameters add_rollup_type.json.
    • Run tool npx hardhat run ./tools/addRollupType/addRollupType.ts --network <network>

Create new rollup (attachAggchainToAL)

attachAggchainToAL
attachAggchainToAL

Tool to call attachAggchainToAL function.

This tool adds a new aggchain to PolygonRollupManager contract.

  1. Go to repository: agg-contracts-internal.
  2. You can use this tool to add new chain
    • Follow the steps found in this README.
    • Set parameters create_new_rollup.json.
    • Copy genesis.json file
    • Run tool npx hardhat run ./tools/createNewRollup/createNewRollup.ts --network <network>

Upate rollup

updateRollup
updateRollup

Tool to call updateRollup function.

This tool update rollup to new rollup type in PolygonRollupManager contract.

  1. Go to repository: agg-contracts-internal.
  2. You can use this tool to update rollup to new type
    • Follow the steps found in this README.
    • Set parameters updateRollup.json
    • Run tool npx hardhat run ./tools/updateRollup/updateRollup.ts --network <network>