Solidity API
RelayBridgeFactory
Factory contract for deploying RelayBridge instances for different assets This factory deploys new RelayBridge contracts and maintains a registry of bridges by asset addressHYPERLANE_MAILBOX
bridgesByAsset
BridgeDeployed
Parameters
| Name | Type | Description |
|---|---|---|
| bridge | address | The address of the newly deployed RelayBridge contract |
| asset | address | The address of the asset that the bridge will handle |
| proxyBridge | contract BridgeProxy | The BridgeProxy contract associated with this bridge |
constructor
Parameters
| Name | Type | Description |
|---|---|---|
| hMailbox | address | The address of the Hyperlane mailbox contract |
deployBridge
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | The address of the asset (token) that the bridge will handle |
| proxyBridge | contract BridgeProxy | The BridgeProxy contract that will work with this bridge |
Return Values
| Name | Type | Description |
|---|---|---|
| [0] | address | The address of the newly deployed RelayBridge contract |