ISpokeCoreFactory
Inherits: IBridgeAdapterFactory
Functions
isCaliberMailbox
Address => Whether this is a CaliberMailbox instance deployed by this factory.
function isCaliberMailbox(address caliberMailbox) external view returns (bool);Parameters
| Name | Type | Description |
|---|---|---|
| caliberMailbox | address |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | bool |
createCaliber
Deploys a new Caliber instance with an associated CaliberMailbox.
function createCaliber(
ICaliber.CaliberInitParams calldata cParams,
IMakinaGovernable.MakinaGovernableInitParams calldata mgParams,
BridgeAdapterInitParams[] calldata baParams,
address accountingToken,
bytes32 salt,
bool setupAMFunctionRoles
) external returns (address caliber);Parameters
| Name | Type | Description |
|---|---|---|
| cParams | ICaliber.CaliberInitParams | The caliber initialization parameters. |
| mgParams | IMakinaGovernable.MakinaGovernableInitParams | The makina governable initialization parameters. |
| baParams | BridgeAdapterInitParams[] | The list of bridge adapter initialization parameters and controller configuration. |
| accountingToken | address | The address of the accounting token. |
| salt | bytes32 | The salt used to deploy the Caliber deterministically. |
| setupAMFunctionRoles | bool | Whether to set roles for restricted functions on the deployed instance. |
Returns
| Name | Type | Description |
|---|---|---|
| caliber | address | The address of the deployed Caliber instance. |
Events
CaliberMailboxCreated
event CaliberMailboxCreated(address indexed mailbox);Parameters
| Name | Type | Description |
|---|---|---|
| mailbox | address |