Skip to content

Commit 94ad24a

Browse files
authored
Add role functions to ICollector
1 parent 4602f2b commit 94ad24a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/contracts/treasury/ICollector.sol

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,29 @@ interface ICollector {
130130
**/
131131
function isFundsAdmin(address admin) external view returns (bool);
132132

133+
/**
134+
* @dev Grants `role` to `account`.
135+
*
136+
* If `account` had not been already granted `role`, emits a {RoleGranted}
137+
* event.
138+
*
139+
* Requirements:
140+
*
141+
* - the caller must have ``role``'s admin role.
142+
*/
143+
function grantRole(bytes32 role, address account) external;
144+
145+
/**
146+
* @dev Revokes `role` from `account`.
147+
*
148+
* If `account` had been granted `role`, emits a {RoleRevoked} event.
149+
*
150+
* Requirements:
151+
*
152+
* - the caller must have ``role``'s admin role.
153+
*/
154+
function revokeRole(bytes32 role, address account) external;
155+
133156
/**
134157
* @notice Returns the available funds for the given stream id and address.
135158
* @param streamId The id of the stream for which to query the balance.

0 commit comments

Comments
 (0)