Skip to content
LogoLogo

CoreRegistry

Git Source

Inherits: AccessManagedUpgradeable, ICoreRegistry

Constants

CoreRegistryStorageLocation

bytes32 private constant CoreRegistryStorageLocation =
        0x12dc8e8f7173ac8c2e47b3781b91f41f03f310bb59e154cde6d484a5b5f20300;

Functions

_getCoreRegistryStorage

function _getCoreRegistryStorage() private pure returns (CoreRegistryStorage storage $);

Returns

NameTypeDescription
$CoreRegistryStorage

__CoreRegistry_init

function __CoreRegistry_init(address _oracleRegistry, address _tokenRegistry, address initialAuthority)
        internal
        onlyInitializing;

Parameters

NameTypeDescription
_oracleRegistryaddress
_tokenRegistryaddress
initialAuthorityaddress

coreFactory

Address of the core factory.

function coreFactory() external view override returns (address);

Returns

NameTypeDescription
<none>address

oracleRegistry

Address of the oracle registry.

function oracleRegistry() external view override returns (address);

Returns

NameTypeDescription
<none>address

tokenRegistry

Address of the token registry.

function tokenRegistry() external view override returns (address);

Returns

NameTypeDescription
<none>address

swapModule

Address of the swap module.

function swapModule() external view override returns (address);

Returns

NameTypeDescription
<none>address

flashLoanModule

Address of the flash loan module.

function flashLoanModule() external view override returns (address);

Returns

NameTypeDescription
<none>address

caliberBeacon

Address of the caliber beacon contract.

function caliberBeacon() external view override returns (address);

Returns

NameTypeDescription
<none>address

bridgeAdapterBeacon

Bridge ID => Address of the bridge adapter beacon contract.

function bridgeAdapterBeacon(uint16 bridgeId) external view override returns (address);

Parameters

NameTypeDescription
bridgeIduint16

Returns

NameTypeDescription
<none>address

bridgeConfig

Bridge ID => Address of the bridge config contract.

function bridgeConfig(uint16 bridgeId) external view override returns (address);

Parameters

NameTypeDescription
bridgeIduint16

Returns

NameTypeDescription
<none>address

setCoreFactory

Sets the core factory address.

function setCoreFactory(address _coreFactory) external override restricted;

Parameters

NameTypeDescription
_coreFactoryaddressThe core factory address.

setOracleRegistry

Sets the oracle registry address.

function setOracleRegistry(address _oracleRegistry) external override restricted;

Parameters

NameTypeDescription
_oracleRegistryaddressThe oracle registry address.

setTokenRegistry

Sets the token registry address.

function setTokenRegistry(address _tokenRegistry) external override restricted;

Parameters

NameTypeDescription
_tokenRegistryaddressThe token registry address.

setSwapModule

Sets the swap module address.

function setSwapModule(address _swapModule) external override restricted;

Parameters

NameTypeDescription
_swapModuleaddressThe swap module address.

setFlashLoanModule

Sets the flash loan module address.

function setFlashLoanModule(address _flashLoanModule) external override restricted;

Parameters

NameTypeDescription
_flashLoanModuleaddressThe flash loan module address.

setCaliberBeacon

Sets the caliber beacon address.

function setCaliberBeacon(address _caliberBeacon) external override restricted;

Parameters

NameTypeDescription
_caliberBeaconaddressThe caliber beacon address.

setBridgeAdapterBeacon

Sets the bridge adapter beacon address.

function setBridgeAdapterBeacon(uint16 bridgeId, address _bridgeAdapterBeacon) external override restricted;

Parameters

NameTypeDescription
bridgeIduint16The bridge ID.
_bridgeAdapterBeaconaddressThe bridge adapter beacon address.

setBridgeConfig

Sets the bridge config address.

function setBridgeConfig(uint16 bridgeId, address _bridgeConfig) external override restricted;

Parameters

NameTypeDescription
bridgeIduint16The bridge ID.
_bridgeConfigaddressThe bridge config address.

Structs

CoreRegistryStorage

Note:

  • storage-location: erc7201:makina.storage.CoreRegistry
struct CoreRegistryStorage {
        address _coreFactory;
        address _oracleRegistry;
        address _tokenRegistry;
        address _swapModule;
        address _flashLoanModule;
        address _caliberBeacon;
        mapping(uint16 => address) _bridgeAdapterBeacons;
        mapping(uint16 => address) _bridgeConfigs;
    }

Properties

NameTypeDescription
_coreFactoryaddress
_oracleRegistryaddress
_tokenRegistryaddress
_swapModuleaddress
_flashLoanModuleaddress
_caliberBeaconaddress
_bridgeAdapterBeaconsmapping(uint16 => address)
_bridgeConfigsmapping(uint16 => address)