Skip to content
LogoLogo

IMakinaXRegistry

Git Source

Functions

moduleFactory

Address of the MakinaXModule factory.

function moduleFactory() external view returns (address);

Returns

NameTypeDescription
<none>address

moduleImplementation

Address of the MakinaXModule implementation.

function moduleImplementation() external view returns (address);

Returns

NameTypeDescription
<none>address

feeCollector

Address of the fee collector.

function feeCollector() external view returns (address);

Returns

NameTypeDescription
<none>address

flashLoanModule

Address of the flash loan module.

function flashLoanModule() external view returns (address);

Returns

NameTypeDescription
<none>address

getBridgeEncoder

Bridge ID => Address of the corresponding bridge encoder.

function getBridgeEncoder(uint16 bridgeId) external view returns (address);

Parameters

NameTypeDescription
bridgeIduint16

Returns

NameTypeDescription
<none>address

setModuleFactory

Sets the address of the MakinaXModule factory.

function setModuleFactory(address newModuleFactory) external;

Parameters

NameTypeDescription
newModuleFactoryaddressThe address of the new MakinaXModule factory.

setModuleImplementation

Sets the MakinaXModule implementation for future deployments.

function setModuleImplementation(address newImplementation) external;

Parameters

NameTypeDescription
newImplementationaddressThe address of the new implementation contract.

setFeeCollector

Sets the address of the fee collector.

function setFeeCollector(address newFeeCollector) external;

Parameters

NameTypeDescription
newFeeCollectoraddressThe address of the new fee collector.

setFlashLoanModule

Sets the address of the flash loan module.

function setFlashLoanModule(address newFlashLoanModule) external;

Parameters

NameTypeDescription
newFlashLoanModuleaddressThe 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

NameTypeDescription
bridgeIduint16The ID of the bridge.
bridgeEncoderaddressThe address of the new bridge encoder instance.

Events

BridgeEncoderChanged

event BridgeEncoderChanged(
        uint16 indexed bridgeId, address indexed oldBridgeEncoder, address indexed newBridgeEncoder
    );

Parameters

NameTypeDescription
bridgeIduint16
oldBridgeEncoderaddress
newBridgeEncoderaddress

FeeCollectorChanged

event FeeCollectorChanged(address indexed oldFeeCollector, address indexed newFeeCollector);

Parameters

NameTypeDescription
oldFeeCollectoraddress
newFeeCollectoraddress

FlashLoanModuleChanged

event FlashLoanModuleChanged(address indexed oldFlashLoanModule, address indexed newFlashLoanModule);

Parameters

NameTypeDescription
oldFlashLoanModuleaddress
newFlashLoanModuleaddress

ModuleFactoryChanged

event ModuleFactoryChanged(address indexed oldModuleFactory, address indexed newModuleFactory);

Parameters

NameTypeDescription
oldModuleFactoryaddress
newModuleFactoryaddress

ModuleImplementationChanged

event ModuleImplementationChanged(address indexed oldModuleImplementation, address indexed newModuleImplementation);

Parameters

NameTypeDescription
oldModuleImplementationaddress
newModuleImplementationaddress