This guide walks through the setup for a bridge between a running Polygon PoS (Mumbai testnet) and a local Polygon Edge network.
In this guide, you will run Polygon Edge nodes, ChainBridge relayer, and cb-sol-cli tool which is a CLI tool to deploy contracts locally. The following environments are required before starting setup.
- Go: >= 1.16
- Node.js >= 16.13.0
In addition, you need to clone the following repositories with the versions to run some applications.
- Polygon Edge: on the
- ChainBridge: v1.1.5
- ChainBridge Deploy Tools:
In this guide, you will use three types of Ethereum accounts in both blockchain networks. Please make sure the accounts have enough native tokens to create transactions before starting. An account can act in several roles at the same time.
|admin||The account that deploys Bridge contract. This account will be given |
|relayer||The account used in the relayer to create transactions to vote or execute a proposal. The relayer accounts pay gas fees when sending transactions for voting and execution in the destination chain.|
|user||The sender/recipient account that sends/receives assets. The sender account pays the gas fees when approving token transfers and calling |
Please make sure the accounts have enough native tokens to create transactions before starting. In Polygon Edge, you can assign accounts premined balances when generating the genesis block.