ICoreRegistry
Functions
coreFactory
Address of the core factory.
function coreFactory() external view returns (address);Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
oracleRegistry
Address of the oracle registry.
function oracleRegistry() external view returns (address);Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
tokenRegistry
Address of the token registry.
function tokenRegistry() external view returns (address);Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
swapModule
Address of the swap module.
function swapModule() external view returns (address);Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
flashLoanModule
Address of the flash loan module.
function flashLoanModule() external view returns (address);Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
caliberBeacon
Address of the caliber beacon contract.
function caliberBeacon() external view returns (address);Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
bridgeAdapterBeacon
Bridge ID => Address of the bridge adapter beacon contract.
function bridgeAdapterBeacon(uint16 bridgeId) external view returns (address);Parameters
| Name | Type | Description |
|---|---|---|
| bridgeId | uint16 |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
bridgeConfig
Bridge ID => Address of the bridge config contract.
function bridgeConfig(uint16 bridgeId) external view returns (address);Parameters
| Name | Type | Description |
|---|---|---|
| bridgeId | uint16 |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
setCoreFactory
Sets the core factory address.
function setCoreFactory(address _coreFactory) external;Parameters
| Name | Type | Description |
|---|---|---|
| _coreFactory | address | The core factory address. |
setOracleRegistry
Sets the oracle registry address.
function setOracleRegistry(address _oracleRegistry) external;Parameters
| Name | Type | Description |
|---|---|---|
| _oracleRegistry | address | The oracle registry address. |
setTokenRegistry
Sets the token registry address.
function setTokenRegistry(address _tokenRegistry) external;Parameters
| Name | Type | Description |
|---|---|---|
| _tokenRegistry | address | The token registry address. |
setSwapModule
Sets the swap module address.
function setSwapModule(address _swapModule) external;Parameters
| Name | Type | Description |
|---|---|---|
| _swapModule | address | The swap module address. |
setFlashLoanModule
Sets the flash loan module address.
function setFlashLoanModule(address _flashLoanModule) external;Parameters
| Name | Type | Description |
|---|---|---|
| _flashLoanModule | address | The flash loan module address. |
setCaliberBeacon
Sets the caliber beacon address.
function setCaliberBeacon(address _caliberBeacon) external;Parameters
| Name | Type | Description |
|---|---|---|
| _caliberBeacon | address | The caliber beacon address. |
setBridgeAdapterBeacon
Sets the bridge adapter beacon address.
function setBridgeAdapterBeacon(uint16 bridgeId, address _bridgeAdapterBeacon) external;Parameters
| Name | Type | Description |
|---|---|---|
| bridgeId | uint16 | The bridge ID. |
| _bridgeAdapterBeacon | address | The bridge adapter beacon address. |
setBridgeConfig
Sets the bridge config address.
function setBridgeConfig(uint16 bridgeId, address _bridgeConfig) external;Parameters
| Name | Type | Description |
|---|---|---|
| bridgeId | uint16 | The bridge ID. |
| _bridgeConfig | address | The bridge config address. |
Events
BridgeAdapterBeaconChanged
event BridgeAdapterBeaconChanged(
uint256 indexed bridgeId, address indexed oldBridgeAdapterBeacon, address indexed newBridgeAdapterBeacon
);Parameters
| Name | Type | Description |
|---|---|---|
| bridgeId | uint256 | |
| oldBridgeAdapterBeacon | address | |
| newBridgeAdapterBeacon | address |
BridgeConfigChanged
event BridgeConfigChanged(
uint256 indexed bridgeId, address indexed oldBridgeConfig, address indexed newBridgeConfig
);Parameters
| Name | Type | Description |
|---|---|---|
| bridgeId | uint256 | |
| oldBridgeConfig | address | |
| newBridgeConfig | address |
CaliberBeaconChanged
event CaliberBeaconChanged(address indexed oldCaliberBeacon, address indexed newCaliberBeacon);Parameters
| Name | Type | Description |
|---|---|---|
| oldCaliberBeacon | address | |
| newCaliberBeacon | address |
CoreFactoryChanged
event CoreFactoryChanged(address indexed oldCoreFactory, address indexed newCoreFactory);Parameters
| Name | Type | Description |
|---|---|---|
| oldCoreFactory | address | |
| newCoreFactory | address |
FlashLoanModuleChanged
event FlashLoanModuleChanged(address indexed oldFlashLoanModule, address indexed newFlashLoanModule);Parameters
| Name | Type | Description |
|---|---|---|
| oldFlashLoanModule | address | |
| newFlashLoanModule | address |
OracleRegistryChanged
event OracleRegistryChanged(address indexed oldOracleRegistry, address indexed newOracleRegistry);Parameters
| Name | Type | Description |
|---|---|---|
| oldOracleRegistry | address | |
| newOracleRegistry | address |
SwapModuleChanged
event SwapModuleChanged(address indexed oldSwapModule, address indexed newSwapModule);Parameters
| Name | Type | Description |
|---|---|---|
| oldSwapModule | address | |
| newSwapModule | address |
TokenRegistryChanged
event TokenRegistryChanged(address indexed oldTokenRegistry, address indexed newTokenRegistry);Parameters
| Name | Type | Description |
|---|---|---|
| oldTokenRegistry | address | |
| newTokenRegistry | address |