Skip to content
LogoLogo

MakinaXRegistry

Git Source

Inherits: AccessManagedUpgradeable, IMakinaXRegistry

State Variables

moduleFactory

Address of the MakinaXModule factory.

address public moduleFactory;

Returns

NameTypeDescription
<none>address

moduleImplementation

Address of the MakinaXModule implementation.

address public moduleImplementation;

Returns

NameTypeDescription
<none>address

feeCollector

Address of the fee collector.

address public feeCollector;

Returns

NameTypeDescription
<none>address

flashLoanModule

Address of the flash loan module.

address public flashLoanModule;

Returns

NameTypeDescription
<none>address

_bridgeEncoders

mapping(uint16 bridgeId => address encoder) private _bridgeEncoders;

Functions

constructor

constructor();

initialize

function initialize(address initialAuthority) external initializer;

Parameters

NameTypeDescription
initialAuthorityaddress

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 restricted;

Parameters

NameTypeDescription
newModuleFactoryaddressThe address of the new MakinaXModule factory.

setModuleImplementation

Sets the MakinaXModule implementation for future deployments.

function setModuleImplementation(address newImplementation) external restricted;

Parameters

NameTypeDescription
newImplementationaddressThe address of the new implementation contract.

setFeeCollector

Sets the address of the fee collector.

function setFeeCollector(address newFeeCollector) external restricted;

Parameters

NameTypeDescription
newFeeCollectoraddressThe address of the new fee collector.

setFlashLoanModule

Sets the address of the flash loan module.

function setFlashLoanModule(address newFlashLoanModule) external restricted;

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 restricted;

Parameters

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