NetworkMiddlewareService
Methods
NETWORK_REGISTRY
function NETWORK_REGISTRY() external view returns (address)
Get the network registry’s address.
Returns
Name | Type | Description |
---|---|---|
address | address of the network registry |
middleware
function middleware(address network) external view returns (address value)
Get a given network’s middleware.
Parameters
Name | Type | Description |
---|---|---|
network | address | address of the network |
Returns
Name | Type | Description |
---|---|---|
value | address | middleware of the network |
setMiddleware
function setMiddleware(address middleware) external nonpayable
Set a new middleware for a calling network.
Parameters
Name | Type | Description |
---|---|---|
middleware | address | new middleware of the network |
Events
SetMiddleware
event SetMiddleware(address indexed network, address middleware)
Emitted when a middleware is set for a network.
Parameters
Name | Type | Description |
---|---|---|
network indexed | address | address of the network |
middleware | address | new middleware of the network |