Skip to content
LogoLogo

ICoreRegistry

Git Source

Functions

coreFactory

Address of the core factory.

function coreFactory() external view returns (address);

Returns

NameTypeDescription
<none>address

oracleRegistry

Address of the oracle registry.

function oracleRegistry() external view returns (address);

Returns

NameTypeDescription
<none>address

tokenRegistry

Address of the token registry.

function tokenRegistry() external view returns (address);

Returns

NameTypeDescription
<none>address

swapModule

Address of the swap module.

function swapModule() 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

caliberBeacon

Address of the caliber beacon contract.

function caliberBeacon() external view returns (address);

Returns

NameTypeDescription
<none>address

bridgeAdapterBeacon

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

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

Parameters

NameTypeDescription
bridgeIduint16

Returns

NameTypeDescription
<none>address

bridgeConfig

Bridge ID => Address of the bridge config contract.

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

Parameters

NameTypeDescription
bridgeIduint16

Returns

NameTypeDescription
<none>address

setCoreFactory

Sets the core factory address.

function setCoreFactory(address _coreFactory) external;

Parameters

NameTypeDescription
_coreFactoryaddressThe core factory address.

setOracleRegistry

Sets the oracle registry address.

function setOracleRegistry(address _oracleRegistry) external;

Parameters

NameTypeDescription
_oracleRegistryaddressThe oracle registry address.

setTokenRegistry

Sets the token registry address.

function setTokenRegistry(address _tokenRegistry) external;

Parameters

NameTypeDescription
_tokenRegistryaddressThe token registry address.

setSwapModule

Sets the swap module address.

function setSwapModule(address _swapModule) external;

Parameters

NameTypeDescription
_swapModuleaddressThe swap module address.

setFlashLoanModule

Sets the flash loan module address.

function setFlashLoanModule(address _flashLoanModule) external;

Parameters

NameTypeDescription
_flashLoanModuleaddressThe flash loan module address.

setCaliberBeacon

Sets the caliber beacon address.

function setCaliberBeacon(address _caliberBeacon) external;

Parameters

NameTypeDescription
_caliberBeaconaddressThe caliber beacon address.

setBridgeAdapterBeacon

Sets the bridge adapter beacon address.

function setBridgeAdapterBeacon(uint16 bridgeId, address _bridgeAdapterBeacon) external;

Parameters

NameTypeDescription
bridgeIduint16The bridge ID.
_bridgeAdapterBeaconaddressThe bridge adapter beacon address.

setBridgeConfig

Sets the bridge config address.

function setBridgeConfig(uint16 bridgeId, address _bridgeConfig) external;

Parameters

NameTypeDescription
bridgeIduint16The bridge ID.
_bridgeConfigaddressThe bridge config address.

Events

BridgeAdapterBeaconChanged

event BridgeAdapterBeaconChanged(
        uint256 indexed bridgeId, address indexed oldBridgeAdapterBeacon, address indexed newBridgeAdapterBeacon
    );

Parameters

NameTypeDescription
bridgeIduint256
oldBridgeAdapterBeaconaddress
newBridgeAdapterBeaconaddress

BridgeConfigChanged

event BridgeConfigChanged(
        uint256 indexed bridgeId, address indexed oldBridgeConfig, address indexed newBridgeConfig
    );

Parameters

NameTypeDescription
bridgeIduint256
oldBridgeConfigaddress
newBridgeConfigaddress

CaliberBeaconChanged

event CaliberBeaconChanged(address indexed oldCaliberBeacon, address indexed newCaliberBeacon);

Parameters

NameTypeDescription
oldCaliberBeaconaddress
newCaliberBeaconaddress

CoreFactoryChanged

event CoreFactoryChanged(address indexed oldCoreFactory, address indexed newCoreFactory);

Parameters

NameTypeDescription
oldCoreFactoryaddress
newCoreFactoryaddress

FlashLoanModuleChanged

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

Parameters

NameTypeDescription
oldFlashLoanModuleaddress
newFlashLoanModuleaddress

OracleRegistryChanged

event OracleRegistryChanged(address indexed oldOracleRegistry, address indexed newOracleRegistry);

Parameters

NameTypeDescription
oldOracleRegistryaddress
newOracleRegistryaddress

SwapModuleChanged

event SwapModuleChanged(address indexed oldSwapModule, address indexed newSwapModule);

Parameters

NameTypeDescription
oldSwapModuleaddress
newSwapModuleaddress

TokenRegistryChanged

event TokenRegistryChanged(address indexed oldTokenRegistry, address indexed newTokenRegistry);

Parameters

NameTypeDescription
oldTokenRegistryaddress
newTokenRegistryaddress