IMakinaXRegistry
Functions
moduleFactory
Address of the MakinaXModule factory.
function moduleFactory() external view returns (address);Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
moduleImplementation
Address of the MakinaXModule implementation.
function moduleImplementation() external view returns (address);Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
feeCollector
Address of the fee collector.
function feeCollector() external view returns (address);Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
flashLoanModule
Address of the flash loan module.
function flashLoanModule() external view returns (address);Returns
| Name | Type | Description |
|---|---|---|
| <none> | 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;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;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;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;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;Parameters
| Name | Type | Description |
|---|---|---|
| bridgeId | uint16 | The ID of the bridge. |
| bridgeEncoder | address | The address of the new bridge encoder instance. |
Events
BridgeEncoderChanged
event BridgeEncoderChanged(
uint16 indexed bridgeId, address indexed oldBridgeEncoder, address indexed newBridgeEncoder
);Parameters
| Name | Type | Description |
|---|---|---|
| bridgeId | uint16 | |
| oldBridgeEncoder | address | |
| newBridgeEncoder | address |
FeeCollectorChanged
event FeeCollectorChanged(address indexed oldFeeCollector, address indexed newFeeCollector);Parameters
| Name | Type | Description |
|---|---|---|
| oldFeeCollector | address | |
| newFeeCollector | address |
FlashLoanModuleChanged
event FlashLoanModuleChanged(address indexed oldFlashLoanModule, address indexed newFlashLoanModule);Parameters
| Name | Type | Description |
|---|---|---|
| oldFlashLoanModule | address | |
| newFlashLoanModule | address |
ModuleFactoryChanged
event ModuleFactoryChanged(address indexed oldModuleFactory, address indexed newModuleFactory);Parameters
| Name | Type | Description |
|---|---|---|
| oldModuleFactory | address | |
| newModuleFactory | address |
ModuleImplementationChanged
event ModuleImplementationChanged(address indexed oldModuleImplementation, address indexed newModuleImplementation);Parameters
| Name | Type | Description |
|---|---|---|
| oldModuleImplementation | address | |
| newModuleImplementation | address |