Appearance
Solidity API
PropsRelayersInternal
Internal contract for managing approved relayers in the Props system
This contract provides internal functions for setting and checking approved relayers
PropsRelayersInternal__AddressIsNotApprovedRelay
solidity
error PropsRelayersInternal__AddressIsNotApprovedRelay()Custom error thrown when an address is not an approved relay
_setApprovedRelayers
solidity
function _setApprovedRelayers(address[] _addresses) internalSets the list of approved relayers
This function overwrites the entire list of approved relayers
Parameters
| Name | Type | Description |
|---|---|---|
| _addresses | address[] | An array of addresses to be set as approved relayers |
_isApprovedRelay
solidity
function _isApprovedRelay(address _operatorAddress) internal view returns (bool)Checks if a given address is an approved relay
This function iterates through the list of approved relayers to find a match
Parameters
| Name | Type | Description |
|---|---|---|
| _operatorAddress | address | The address to check |
Return Values
| Name | Type | Description |
|---|---|---|
| [0] | bool | bool True if the address is an approved relay, false otherwise |