HubPeripheryRegistry
Inherits: AccessManagedUpgradeable, IHubPeripheryRegistry
Constants
HubPeripheryRegistryStorageLocation
bytes32 private constant HubPeripheryRegistryStorageLocation =
0x60c7a8b9d2c96eeaf12a26c5fbe46f192e4cb2019fd3c31562f5d2011364b000;Functions
_getHubPeripheryRegistryStorage
function _getHubPeripheryRegistryStorage() internal pure returns (HubPeripheryRegistryStorage storage $);Returns
| Name | Type | Description |
|---|---|---|
| $ | HubPeripheryRegistryStorage |
constructor
constructor();initialize
function initialize(address _initialAuthority) external initializer;Parameters
| Name | Type | Description |
|---|---|---|
| _initialAuthority | address |
peripheryFactory
Address of the periphery factory.
function peripheryFactory() external view override returns (address);Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
depositorBeacon
Implementation ID => Address of the depositor beacon
function depositorBeacon(uint16 implemId) external view override returns (address);Parameters
| Name | Type | Description |
|---|---|---|
| implemId | uint16 |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
redeemerBeacon
Implementation ID => Address of the redeemer beacon
function redeemerBeacon(uint16 implemId) external view override returns (address);Parameters
| Name | Type | Description |
|---|---|---|
| implemId | uint16 |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
feeManagerBeacon
Implementation ID => Address of the fee manager beacon
function feeManagerBeacon(uint16 implemId) external view override returns (address);Parameters
| Name | Type | Description |
|---|---|---|
| implemId | uint16 |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
securityModuleBeacon
Address of the security module beacon.
function securityModuleBeacon() external view override returns (address);Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
setPeripheryFactory
Sets the address of the periphery factory.
function setPeripheryFactory(address _peripheryFactory) external override restricted;Parameters
| Name | Type | Description |
|---|---|---|
| _peripheryFactory | address | The periphery factory address. |
setDepositorBeacon
Sets the beacon address for the depositor implementation.
function setDepositorBeacon(uint16 implemId, address _depositorBeacon) external override restricted;Parameters
| Name | Type | Description |
|---|---|---|
| implemId | uint16 | The ID of the machine depositor implementation. |
| _depositorBeacon | address | The machine depositor beacon address. |
setRedeemerBeacon
Sets the beacon address for the redeemer implementation.
function setRedeemerBeacon(uint16 implemId, address _redeemerBeacon) external override restricted;Parameters
| Name | Type | Description |
|---|---|---|
| implemId | uint16 | The ID of the redeemer implementation. |
| _redeemerBeacon | address | The machine redeemer beacon address. |
setFeeManagerBeacon
Sets the beacon address for the fee manager implementation.
function setFeeManagerBeacon(uint16 implemId, address _feeManagerBeacon) external override restricted;Parameters
| Name | Type | Description |
|---|---|---|
| implemId | uint16 | The ID of the fee manager implementation. |
| _feeManagerBeacon | address | The fee manager beacon address. |
setSecurityModuleBeacon
Sets the security module beacon address.
function setSecurityModuleBeacon(address _securityModuleBeacon) external override restricted;Parameters
| Name | Type | Description |
|---|---|---|
| _securityModuleBeacon | address | The security module beacon address. |
Structs
HubPeripheryRegistryStorage
Note:
- storage-location: erc7201:makina.storage.HubPeripheryRegistry
struct HubPeripheryRegistryStorage {
address _peripheryFactory;
mapping(uint16 implemId => address depositor) _depositors;
mapping(uint16 implemId => address redeemer) _redeemers;
mapping(uint16 implemId => address feeManager) _feeManagers;
address _securityModuleBeacon;
}Properties
| Name | Type | Description |
|---|---|---|
| _peripheryFactory | address | |
| _depositors | mapping(uint16 implemId => address depositor) | |
| _redeemers | mapping(uint16 implemId => address redeemer) | |
| _feeManagers | mapping(uint16 implemId => address feeManager) | |
| _securityModuleBeacon | address |