CaliberFactory
Inherits: Create3Factory, MakinaContext, ICaliberFactory
Constants
CaliberSaltDomain
bytes32 private constant CaliberSaltDomain = 0x53f0f8ad4fe517b9d8040b0fb31dfde7b5d276d4ebc6abb801ed7f52ea0563a8;CaliberFactoryStorageLocation
bytes32 private constant CaliberFactoryStorageLocation =
0x092f83b0a9c245bf0116fc4aaf5564ab048ff47d6596f1c61801f18d9dfbea00;Functions
_getCaliberFactoryStorage
function _getCaliberFactoryStorage() internal pure returns (CaliberFactoryStorage storage $);Returns
| Name | Type | Description |
|---|---|---|
| $ | CaliberFactoryStorage |
isCaliber
Address => Whether this is a Caliber instance deployed by this factory.
function isCaliber(address caliber) external view override returns (bool);Parameters
| Name | Type | Description |
|---|---|---|
| caliber | address |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | bool |
_createCaliber
Internal logic for caliber deployment via create3.
function _createCaliber(
ICaliber.CaliberInitParams calldata cParams,
address accountingToken,
address machineEndpoint,
bytes32 salt
) internal returns (address);Parameters
| Name | Type | Description |
|---|---|---|
| cParams | ICaliber.CaliberInitParams | |
| accountingToken | address | |
| machineEndpoint | address | |
| salt | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
_setupCaliberAMFunctionRoles
Sets function roles in associated access manager for a deployed caliber instance.
function _setupCaliberAMFunctionRoles(address _authority, address _caliber) internal;Parameters
| Name | Type | Description |
|---|---|---|
| _authority | address | |
| _caliber | address |
Structs
CaliberFactoryStorage
Note:
- storage-location: erc7201:makina.storage.CaliberFactory
struct CaliberFactoryStorage {
mapping(address caliber => bool isCaliber) _isCaliber;
}Properties
| Name | Type | Description |
|---|---|---|
| _isCaliber | mapping(address caliber => bool isCaliber) |