Subnetworks
Subnetworks
Contract for managing subnetworks that can be registered and controlled
Extends BaseMiddleware to provide access control for subnetwork management functions
Methods
registerSubnetwork
function registerSubnetwork(
uint96 subnetwork
) public checkAccess
Registers a new subnetwork
Parameters
Name | Type | Description |
---|---|---|
subnetwork | uint96 | The ID of the subnetwork to register |
pauseSubnetwork
function pauseSubnetwork(
uint96 subnetwork
) public checkAccess
Pauses a subnetwork
Parameters
Name | Type | Description |
---|---|---|
subnetwork | uint96 | The ID of the subnetwork to pause |
unpauseSubnetwork
function unpauseSubnetwork(
uint96 subnetwork
) public checkAccess
Unpauses a subnetwork
Parameters
Name | Type | Description |
---|---|---|
subnetwork | uint96 | The ID of the subnetwork to unpause |
unregisterSubnetwork
function unregisterSubnetwork(
uint96 subnetwork
) public checkAccess
Unregisters a subnetwork
Parameters
Name | Type | Description |
---|---|---|
subnetwork | uint96 | The ID of the subnetwork to unregister |
_beforeRegisterSubnetwork
function _beforeRegisterSubnetwork(
uint96 subnetwork
) internal virtual
Hook called before registering a subnetwork
Parameters
Name | Type | Description |
---|---|---|
subnetwork | uint96 | The subnetwork ID |
_beforePauseSubnetwork
function _beforePauseSubnetwork(
uint96 subnetwork
) internal virtual
Hook called before pausing a subnetwork
Parameters
Name | Type | Description |
---|---|---|
subnetwork | uint96 | The subnetwork ID |
_beforeUnpauseSubnetwork
function _beforeUnpauseSubnetwork(
uint96 subnetwork
) internal virtual
Hook called before unpausing a subnetwork
Parameters
Name | Type | Description |
---|---|---|
subnetwork | uint96 | The subnetwork ID |
_beforeUnregisterSubnetwork
function _beforeUnregisterSubnetwork(
uint96 subnetwork
) internal virtual
Hook called before unregistering a subnetwork
Parameters
Name | Type | Description |
---|---|---|
subnetwork | uint96 | The subnetwork ID |