Skip to main content

IBridgeAdapterFactory

Git Source

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

NameTypeDescription
bridgeIduint16The ID of the bridge for which the adapter is being created.
initDatabytesThe optional initialization data for the bridge adapter.

Returns

NameTypeDescription
adapteraddressThe address of the deployed bridge adapter.

Events

BridgeAdapterCreated

event BridgeAdapterCreated(address indexed controller, uint256 indexed bridgeId, address indexed adapter);