Skip to main content

ISpokeCoreFactory

Git Source

Inherits: IBridgeAdapterFactory

Functions

isCaliberMailbox

Address => Whether this is a CaliberMailbox instance deployed by this factory.

function isCaliberMailbox(address mailbox) external view returns (bool);

createCaliber

Deploys a new Caliber instance.

function createCaliber(
ICaliber.CaliberInitParams calldata cParams,
IMakinaGovernable.MakinaGovernableInitParams calldata mgParams,
address accountingToken,
address hubMachine,
bytes32 salt
) external returns (address caliber);

Parameters

NameTypeDescription
cParamsICaliber.CaliberInitParamsThe caliber initialization parameters.
mgParamsIMakinaGovernable.MakinaGovernableInitParamsThe makina governable initialization parameters.
accountingTokenaddressThe address of the accounting token.
hubMachineaddressThe address of the hub machine.
saltbytes32The salt used to deploy the Caliber deterministically.

Returns

NameTypeDescription
caliberaddressThe address of the deployed Caliber instance.

Events

CaliberMailboxCreated

event CaliberMailboxCreated(address indexed mailbox, address indexed caliber, address indexed hubMachine);