Skip to main content

Router Registry

ThingsIX router registry

Functions

routers

function routers(bytes32 id) external view returns (struct IRouterRegistry.Router)

returns router details for the router identified by the given id.

Parameters

NameTypeDescription
idbytes32router identifier

routerCount

function routerCount() external view returns (uint256)

Number of registered reouters.

Return Values

NameTypeDescription
[0]uint256number of registered routers

routersPaged

function routersPaged(uint256 start, uint256 end) external view returns (struct IRouterRegistry.Router[])

Batch of routers.

Parameters

NameTypeDescription
startuint256start index (inclusive)
enduint256last index (exclusive)

Return Values

NameTypeDescription
[0]struct IRouterRegistry.Router[]batch of routers in the given range

Events

RouterRegistered

event RouterRegistered(bytes32 id)

raised when a new router is registered

RouterUpdated

event RouterUpdated(bytes32 id)

raised when router details are updated

RouterRemoved

event RouterRemoved(bytes32 id)

raised when a router is removed

Structs

Router

struct Router {
bytes32 id;
address owner;
uint24 netid;
uint32 prefix;
uint8 mask;
uint8 frequencyPlan;
string endpoint;
}