MarketHubRegistrarUpgradeable
This abstract contract provides the functionality to register and unregister to the MarketHub. Contracts that inherit from this contract can be registered and unregistered from the MarketHub.
marketHub
contract IMarketHub marketHub
__MarketHubRegistrar_init
function __MarketHubRegistrar_init() internal
Initializes the contract, sets the initializing state and initial roles.
onlyMarketHub
modifier onlyMarketHub()
Modifier to allow only the MarketHub contract to perform certain actions.
register
function register() public virtual
Registers the calling contract to the MarketHub. Reverts if the contract is already registered.
unregister
function unregister() public virtual
Unregisters the calling contract from the MarketHub. Reverts if the contract is not registered.
Last updated