Skip to main content

NetworkMiddlewareService

Git Source

Methods

NETWORK_REGISTRY

function NETWORK_REGISTRY() external view returns (address)

Get the network registry’s address.

Returns

NameTypeDescription
addressaddress of the network registry

middleware

function middleware(address network) external view returns (address value)

Get a given network’s middleware.

Parameters

NameTypeDescription
networkaddressaddress of the network

Returns

NameTypeDescription
valueaddressmiddleware of the network

setMiddleware

function setMiddleware(address middleware) external nonpayable

Set a new middleware for a calling network.

Parameters

NameTypeDescription
middlewareaddressnew middleware of the network

Events

SetMiddleware

event SetMiddleware(address indexed network, address middleware)

Emitted when a middleware is set for a network.

Parameters

NameTypeDescription
network indexedaddressaddress of the network
middlewareaddressnew middleware of the network