Sovereign Chain Contract Roles
Roles in the L2 contracts deployed on sovereign chains.
Source: agglayer-contracts v12.2.2
1. AgglayerBridgeL2
Inherits from AgglayerBridge. Defines custom address-based roles with two-step transfer.
| Role | Description |
|---|---|
bridgeManager |
Manages custom token remapping and has the ability to clear/set claims |
emergencyBridgePauser |
Can pause the bridge in case of emergency |
emergencyBridgeUnpauser |
Can unpause the bridge |
proxiedTokensManager |
Admin of wrapped token proxies, can upgrade wrapped token implementations |
globalExitRootRemover |
(from AgglayerGERL2) Emergency operations on the bridge |
bridgeManager
- Functionality:
- Set custom sovereign token addresses (
setMultipleSovereignTokenAddress,setSovereignWETHAddress) - Remove legacy sovereign token addresses (
removeLegacySovereignTokenAddress) - Deploy wrapped tokens and remap them (
deployWrappedTokenAndRemap) - Transfer the bridgeManager role (
setBridgeManager)
- Set custom sovereign token addresses (
- Security Assumptions: Very high. Setting custom token mappings could redirect funds if misconfigured — worst case scenario, steal all users funds of that network. Should be carefully managed.
- Recommended Account Type: Timelock (specified by the chain itself after bootstrapping phase)
- Note:
setSovereignWETHAddressacceptsaddress(0). On a gas token chain that disables WETH: L1 ETH claims are then paid in the chain's native gas token 1:1 from the bridge balance, andbridgeMessageacceptsmsg.value. Never use it to "reset" WETH. - Note:
setBridgeManageris a one-step transfer (unlike the other bridge roles): double-check the new address. A zerobridgeManagerat initialization disables the role for good. - Note: Users can still call
migrateLegacyTokenduring the emergency state. If a wrong or compromised legacy mapping is the reason for a pause, remove it withremoveLegacySovereignTokenAddress: the pause does not stop migrations.
emergencyBridgePauser
- Functionality:
- Activate emergency state on the bridge (
activateEmergencyState) - Transfer the emergencyBridgePauser role (
transferEmergencyBridgePauserRole)
- Activate emergency state on the bridge (
- Security Assumptions: Medium-High. Can halt all bridge operations but cannot steal funds directly.
- Recommended Account Type: Multisig (needs to act fast in emergencies)
- Note: Initializing it to
address(0)disables the emergency state for good: the role can only be transferred by its current holder, so it can not be set later. The LET/LBT recovery functions (backwardLET,forwardLET,setLocalBalanceTree) require the emergency state, so on such a chain a LET divergence can only be fixed with a contract upgrade. Set it whenever aglobalExitRootRemoveris set.
emergencyBridgeUnpauser
- Functionality:
- Deactivate emergency state on the bridge (
deactivateEmergencyState) - Transfer the emergencyBridgeUnpauser role (
transferEmergencyBridgeUnpauserRole)
- Deactivate emergency state on the bridge (
- Security Assumptions: Medium. Can resume bridge operations after emergency.
- Recommended Account Type: Multisig or Timelock (depending on security requirements)
- Note: Set it whenever
emergencyBridgePauseris set. With a zero unpauser, a pause (including the one used for a LET recovery) can never be lifted without a contract upgrade.
proxiedTokensManager
- Functionality:
- Admin of all
TokenWrappedTransparentProxycontracts deployed by the bridge - Can upgrade wrapped token implementations (
upgradeTo,upgradeToAndCall) - Can change admin of wrapped token proxies (
changeAdmin) - Transfer the proxiedTokensManager role (
transferProxiedTokensManagerRole)
- Admin of all
- Role transfer: each wrapped token proxy copies the bridge's
proxiedTokensManagerinto its own admin slot when it is deployed. Transferring the role only affects wrapped tokens deployed afterwards. Already deployed wrapped tokens keep the previous holder as admin until it callschangeAdminon each of them. - Security Assumptions: Very high. Can upgrade token logic which could affect user funds — worst case scenario, steal all users funds of that network. Should be carefully managed.
- Recommended Account Type: Timelock (same as bridge proxy admin, typically PolygonTimelock)
globalExitRootRemover
Read from AgglayerGERL2.globalExitRootRemover(). On AgglayerBridgeL2:
- Functionality:
- Unset/set multiple claims (
unsetMultipleClaims,setMultipleClaims) - Move LET backward/forward (
backwardLET,forwardLET) — only during emergency state - Set local balance tree (
setLocalBalanceTree) — only during emergency state - Force emit detailed claim events (
forceEmitDetailedClaimEvent)
- Unset/set multiple claims (
- Security Assumptions: Very high security risk. Controller could steal funds — worst case scenario, steal all users funds of that network. Should be carefully managed. Has powerful emergency recovery capabilities.
- Recommended Account Type: Multisig (needs to act fast to unblock the chain in emergencies)
- Note:
unsetMultipleClaims/setMultipleClaimsare not gated by the emergency state. An unset claim can be claimed again right away while the bridge is open (a local double mint on L2, which the pessimistic proof still counts once).
2. AgglayerGERL2
| Role | Description |
|---|---|
globalExitRootUpdater |
Injects GER into the bridge SC |
globalExitRootRemover |
Removes GER from the Bridge SC and manages emergency operations on the bridge |
bridgeAddress |
(immutable) Can update exit root from bridge deposits |
globalExitRootUpdater
- Functionality:
- Insert new global exit roots (
insertGlobalExitRoot) - Transfer the globalExitRootUpdater role (
transferGlobalExitRootUpdater) - If set to zero address,
block.coinbase(sequencer) can insert GERs
- Insert new global exit roots (
- Security Assumptions: Very High. This address can insert invalid GERs. Claims against an invalid GER mint unbacked wrapped assets on L2 and release tokens native to this chain (including the gas token) held in the bridge escrow. These can be swapped for other users' assets on the chain. For foreign-origin tokens the pessimistic proof caps the loss at the chain's own balance, so it cannot steal agglayer funds of other chains. It does not track tokens native to this chain, so holders of their wrapped versions on other chains can also be affected. If a certificate includes the invalid import, settlement stalls; the L2 keeps producing blocks. On FEP chains the aggchain proof rejects settlement of these claims only while
globalExitRootRemoverisaddress(0), and L2-local losses happen either way. With a zero remover the invalid GER cannot be removed, so settlement stays stuck until a contract upgrade. - Recommended Account Type: EOA with a KMS/HSM-backed key (must send lots of transactions), with GER insertions monitored against L1
globalExitRootRemover
- Functionality:
- Remove global exit roots (
removeGlobalExitRoots) - Transfer the globalExitRootRemover role (
transferGlobalExitRootRemover)
- Remove global exit roots (
- Security Assumptions: Very high security risk. Also gates many emergency functions on
AgglayerBridgeL2(see above). Setting toaddress(0)disables all emergency exit root removal and bridge manipulation — recommended for FEP chains. - Recommended Account Type: Multisig (needs to act fast to unblock the chain in emergencies)
3. AggOracleCommittee
Oracle committee contract that manages the insertion of GERs into AgglayerGERL2 via quorum-based voting. Inherits from OwnableUpgradeable.
| Role | Description |
|---|---|
owner |
Manages oracle membership, quorum configuration, and GER updater role transfer |
| Oracle Member | Can propose global exit roots; quorum of proposals triggers consolidation into AgglayerGERL2 |
owner
- Functionality:
- Add oracle members (
addOracleMember) - Remove oracle members (
removeOracleMember) - Update the quorum required for GER consolidation (
updateQuorum) - Transfer the
globalExitRootUpdaterrole onAgglayerGERL2(transferGlobalExitRootUpdater) - Accept the
globalExitRootUpdaterrole onAgglayerGERL2(acceptGlobalExitRootUpdater) - Transfer ownership (
transferOwnership, inherited fromOwnableUpgradeable)
- Add oracle members (
- Security Assumptions: Very high. Controls who can propose GERs and the threshold needed for consolidation. A compromised owner could add malicious oracle members or lower the quorum to 1, enabling insertion of invalid GERs — which could mint unbacked wrapped assets on L2 (see
globalExitRootUpdater). - Recommended Account Type: Timelock (specified by the chain itself after bootstrapping phase)
Oracle Member
Membership-based role. Members are tracked via the addressToLastProposedGER mapping (non-zero value indicates active membership). Not a named Solidity role — managed by the owner through addOracleMember / removeOracleMember. Note: once quorum is reached, consolidateGlobalExitRoot is a public function callable by any address to finalize consolidation.
- Functionality:
- Propose a global exit root (
proposeGlobalExitRoot); if quorum is reached, the GER is automatically consolidated intoAgglayerGERL2
- Propose a global exit root (
- Security Assumptions: Very High. A quorum of compromised oracle members can insert invalid GERs, with the same impact as the
globalExitRootUpdater(unbacked wrapped assets minted on L2). Individual members cannot consolidate alone (quorum required). - Recommended Account Type: EOA with a KMS/HSM-backed key (must send frequent transactions to propose GERs), each member held by an independent operator
Summary Table
| Contract | Role | Security Risk | Recommended Account Type |
|---|---|---|---|
| AgglayerBridgeL2 | bridgeManager |
Very High | Timelock |
| AgglayerBridgeL2 | emergencyBridgePauser |
Medium | Multisig |
| AgglayerBridgeL2 | emergencyBridgeUnpauser |
Medium | Multisig/Timelock |
| AgglayerBridgeL2 | proxiedTokensManager |
Very High | Timelock |
| AgglayerGERL2 | globalExitRootUpdater |
Very High | EOA (KMS/HSM-backed, monitored) |
| AgglayerGERL2 | globalExitRootRemover |
Very High | Multisig |
| AggOracleCommittee | owner |
Very High | Timelock |
| AggOracleCommittee | Oracle Member | Very High | EOA (KMS/HSM-backed, independent operators) |