|
| 1 | +This document describes how to register with Polygon, and configure your CDK chain to use the Polygon uXLXY bridge. |
| 2 | + |
| 3 | +!!! tip "Prerequisites" |
| 4 | + - You should have already deployed a CDK chain stack which has integrated the bridge service. |
| 5 | + - Please check our [get started](../get-started/quickstart-validium.md) section for guidance, quickstarts, and deployment tutorials for more information. |
| 6 | + |
| 7 | +## Step 1: Attach a chain to the uLXLY bridge |
| 8 | + |
| 9 | +1. If your CDK chain is not yet registered with Polygon, [make a request to register your chain](https://discord.gg/XvpHAxZ). |
| 10 | + |
| 11 | + We will ask you for the following data: |
| 12 | + |
| 13 | + ```json |
| 14 | + "rollupTypeID": 0, |
| 15 | + "chainID": 0000, |
| 16 | + "admin": "0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", |
| 17 | + "sequencer": "0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", |
| 18 | + "gasTokenAddress": "0x0000000000000000000000000000000000000000", |
| 19 | + "sequencerURL": "https://rpc.chain.name", |
| 20 | + "networkName": "chain name" |
| 21 | + ``` |
| 22 | + |
| 23 | + !!! note |
| 24 | + - If you are using a wrapped-token on the bridge, we use the original token address. |
| 25 | + - You can use any token on any network that is attached to the LxLy bridge, including those from the Ethereum mainnet. |
| 26 | + |
| 27 | +2. Once registered, we provide you with the following network parameters: |
| 28 | + |
| 29 | + - `rollupID` |
| 30 | + - `rollupAddress` |
| 31 | + |
| 32 | +3. We also give you a pre-configured `genesis.json` file to use. |
| 33 | + |
| 34 | +4. You will need the Polygon bridge configuration details. |
| 35 | + |
| 36 | + ```sh |
| 37 | + [NetworkConfig] |
| 38 | + GenBlockNumber = 1 |
| 39 | + PolygonBridgeAddress = "0xCca6ECD73932e49633B9307e1aa0fC174525F424" |
| 40 | + PolygonZkEVMGlobalExitRootAddress = "0x8A791620dd6260079BF849Dc5567aDC3F2FdC318" |
| 41 | + PolygonRollupManagerAddress = "0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e" |
| 42 | + PolygonZkEvmAddress = "0x8dAF17A20c9DBA35f005b6324F493785D239719d" |
| 43 | + L2PolygonBridgeAddresses = ["0xCca6ECD73932e49633B9307e1aa0fC174525F424"] |
| 44 | + ``` |
| 45 | + |
| 46 | +5. Configure your nodes with the data. |
| 47 | + |
| 48 | + !!! info "Configure your nodes" |
| 49 | + - Add the `rollupID` and `rollupAddress` parameters to the `L1config` section of the `genesis.json` file of the CDK node. For example: |
| 50 | + |
| 51 | + ```sh |
| 52 | + { |
| 53 | + "rollupTypeID": 1, |
| 54 | + "chainID": 3776, |
| 55 | + "admin": "0xxxxx", |
| 56 | + "sequencer": "0xxxxx", |
| 57 | + "gasTokenAddress": "0x0000000000000000000000000000000000000000", |
| 58 | + "sequencerURL": "https://rpc.xxx", |
| 59 | + "networkName": "xxx zkEVM", |
| 60 | + } |
| 61 | + ``` |
| 62 | + |
| 63 | +6. Polygon registers the CDK chain on the uLxLy bridge. |
| 64 | + |
| 65 | +7. Chain owners then need to add POL and ETH tokens to the sequencer on the CDK chain. |
| 66 | + |
| 67 | +## Step 2: Polygon configuration |
| 68 | + |
| 69 | +!!! important |
| 70 | + - These steps are done by Polygon. |
| 71 | + |
| 72 | +Once registered, Polygon creates a permissionless node that points to the corresponding L2 full node. |
| 73 | + |
| 74 | +We then add your details to our AggLayer configuration file [`../agglayer/docker/data/agglayer.toml`](https://github.com/0xPolygon/agglayer/blob/main/docker/data/agglayer/agglayer.toml); specifically these configurations: |
| 75 | + |
| 76 | +* `[FullNodeRPCs]` points to the corresponding L2 full node. |
| 77 | +* `[L1]` points to the corresponding L1 chain. |
| 78 | +* The `[DB]` section has the managed database details. |
| 79 | + |
| 80 | +Your chain is now set up on the Polygon uXLXY bridge. |
| 81 | + |
| 82 | +<br/> |
0 commit comments