You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/zkEVM/architecture/high-level/unified-LxLy/lxly-bridge.md
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,14 +86,20 @@ The governance contract oversees consensus mechanisms and verifiers that can be
86
86
The [rollup manager contract](https://github.com/0xPolygonHermez/zkevm-contracts/blob/feature/v2ForkID5/contracts/v2/PolygonRollupManager.sol) has the relevant function for adding a new rollup:
87
87
88
88
```bash
89
-
functionaddNewRollupType(
90
-
address consensusImplementation,
91
-
IVerifierRollup verifier,
92
-
uint64 forkID,
93
-
bytes32 genesis,
94
-
uint8 rollupCompatibilityID,
95
-
string memory description
96
-
) ...
89
+
functioncreateNewRollup(
90
+
uint32 rollupTypeID,
91
+
uint64 chainID,
92
+
address admin,
93
+
address sequencer,
94
+
address gasTokenAddress,
95
+
uint32 gasTokenNetwork,
96
+
string memory sequencerURL,
97
+
string memory networkName
98
+
) external onlyRole(_CREATE_ROLLUP_ROLE) {
99
+
// Check that rollup type exists
100
+
if (rollupTypeID == 0 || rollupTypeID > rollupTypeCount) {
101
+
revert RollupTypeDoesNotExist();
102
+
}
97
103
```
98
104
99
105
- To create and connect a rollup to the LxLy bridge,
0 commit comments