Skip to main content

ICoreRegistry

Git Source

Functions

coreFactory

Address of the core factory.

function coreFactory() external view returns (address);

oracleRegistry

Address of the oracle registry.

function oracleRegistry() external view returns (address);

tokenRegistry

Address of the token registry.

function tokenRegistry() external view returns (address);

swapModule

Address of the swapModule module.

function swapModule() external view returns (address);

flashLoanModule

Address of the flashLoan module.

function flashLoanModule() external view returns (address);

caliberBeacon

Address of the caliber beacon contract.

function caliberBeacon() external view returns (address);

bridgeAdapterBeacon

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

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

setFlashLoanModule

Sets the flashLoan module address.

function setFlashLoanModule(address _flashLoanModule) external;

Parameters

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

Parameters

NameTypeDescription
bridgeIduint16The bridge ID.
_bridgeAdapteraddressThe bridge adapter beacon address.

Events

BridgeAdapterBeaconChanged

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

CaliberBeaconChanged

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

CoreFactoryChanged

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

FlashLoanModuleChanged

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

OracleRegistryChanged

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

SwapModuleChanged

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

TokenRegistryChanged

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