IBridgeAdapterFactory
Functions
isBridgeAdapter
Address => Whether this is a BridgeAdapter instance deployed by this factory.
function isBridgeAdapter(address adapter) external view returns (bool);
createBridgeAdapter
Deploys a bridge adapter instance.
function createBridgeAdapter(uint16 bridgeId, bytes calldata initData) external returns (address adapter);
Parameters
Name | Type | Description |
---|---|---|
bridgeId | uint16 | The ID of the bridge for which the adapter is being created. |
initData | bytes | The optional initialization data for the bridge adapter. |
Returns
Name | Type | Description |
---|---|---|
adapter | address | The address of the deployed bridge adapter. |
Events
BridgeAdapterCreated
event BridgeAdapterCreated(address indexed controller, uint256 indexed bridgeId, address indexed adapter);