NetworkRegistry
Methods
entity
function entity(uint256 index) external view returns (address)
Get an entity given its index.
Parameters
Name | Type | Description |
---|---|---|
index | uint256 | index of the entity to get |
Returns
Name | Type | Description |
---|---|---|
address | address of the entity |
isEntity
function isEntity(address entity) external view returns (bool)
Get if a given address is an entity.
Parameters
Name | Type | Description |
---|---|---|
entity | address | address to check |
Returns
Name | Type | Description |
---|---|---|
bool | if the given address is an entity |
registerNetwork
function registerNetwork() external nonpayable
Register the caller as a network.
totalEntities
function totalEntities() external view returns (uint256)
Get a total number of entities.
Returns
Name | Type | Description |
---|---|---|
uint256 | total number of entities added |
Events
AddEntity
event AddEntity(address indexed entity)
Emitted when an entity is added.
Parameters
Name | Type | Description |
---|---|---|
entity indexed | address | address of the added entity |