MakinaXRegistry
Inherits: AccessManagedUpgradeable, IMakinaXRegistry
State Variables
moduleFactory
Address of the MakinaXModule factory.
address public moduleFactory;Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
moduleImplementation
Address of the MakinaXModule implementation.
address public moduleImplementation;Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
feeCollector
Address of the fee collector.
address public feeCollector;Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
flashLoanModule
Address of the flash loan module.
address public flashLoanModule;Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
_bridgeEncoders
mapping(uint16 bridgeId => address encoder) private _bridgeEncoders;Functions
constructor
constructor();initialize
function initialize(address initialAuthority) external initializer;Parameters
| Name | Type | Description |
|---|---|---|
| initialAuthority | address |
getBridgeEncoder
Bridge ID => Address of the corresponding bridge encoder.
function getBridgeEncoder(uint16 bridgeId) external view returns (address);Parameters
| Name | Type | Description |
|---|---|---|
| bridgeId | uint16 |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
setModuleFactory
Sets the address of the MakinaXModule factory.
function setModuleFactory(address newModuleFactory) external restricted;Parameters
| Name | Type | Description |
|---|---|---|
| newModuleFactory | address | The address of the new MakinaXModule factory. |
setModuleImplementation
Sets the MakinaXModule implementation for future deployments.
function setModuleImplementation(address newImplementation) external restricted;Parameters
| Name | Type | Description |
|---|---|---|
| newImplementation | address | The address of the new implementation contract. |
setFeeCollector
Sets the address of the fee collector.
function setFeeCollector(address newFeeCollector) external restricted;Parameters
| Name | Type | Description |
|---|---|---|
| newFeeCollector | address | The address of the new fee collector. |
setFlashLoanModule
Sets the address of the flash loan module.
function setFlashLoanModule(address newFlashLoanModule) external restricted;Parameters
| Name | Type | Description |
|---|---|---|
| newFlashLoanModule | address | The address of the new flash loan module. |
setBridgeEncoder
Sets a bridge encoder instance for a given bridge ID.
function setBridgeEncoder(uint16 bridgeId, address bridgeEncoder) external restricted;Parameters
| Name | Type | Description |
|---|---|---|
| bridgeId | uint16 | The ID of the bridge. |
| bridgeEncoder | address | The address of the new bridge encoder instance. |