Skip to main content

CoreRegistry

Git Source

Inherits: AccessManagedUpgradeable, ICoreRegistry

State Variables

CoreRegistryStorageLocation

bytes32 private constant CoreRegistryStorageLocation =
0x12dc8e8f7173ac8c2e47b3781b91f41f03f310bb59e154cde6d484a5b5f20300;

Functions

_getCoreRegistryStorage

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

__CoreRegistry_init

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

coreFactory

Address of the core factory.

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

oracleRegistry

Address of the oracle registry.

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

tokenRegistry

Address of the token registry.

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

swapModule

Address of the swapModule module.

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

flashLoanModule

Address of the flashLoan module.

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

caliberBeacon

Address of the caliber beacon contract.

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

bridgeAdapterBeacon

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

function bridgeAdapterBeacon(uint16 bridgeId) external view override returns (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 swapModule address.

setFlashLoanModule

Sets the flashLoan module address.

function setFlashLoanModule(address _flashLoanModule) external restricted;

Parameters

NameTypeDescription
_flashLoanModuleaddressThe flashLoan 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 _bridgeAdapter) external override restricted;

Parameters

NameTypeDescription
bridgeIduint16The bridge ID.
_bridgeAdapteraddressThe bridge adapter beacon 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) _bridgeAdapters;
}