DefaultStakerRewardsFactory
Methods
create
function create(InitParams params) external nonpayable returns (address)
Parameters
Name | Type | Description |
---|---|---|
params | InitParams | initial parameters needed for a staker rewards contract deployment |
Returns
Name | Type | Description |
---|---|---|
address | address of the created staker rewards contract |
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 |
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 |