Revokable contract with Revoker Role #2037
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request corresponds to issue #2036
This issue has yet to be discussed, but as I had already written the code before opening it, I chose to create the PR for reference while discussing the issue.
Please, do read #2036 and join the discussion.
Fixes #
Changes for this PR are in the lifecycle and the access folders
Added RevokerRole contract in access
This is a new role that corresponds to the Revokeble contract described below.
Added Revokable contract in lifecycle
This contract allows any account with the Revoker role to call a revoke method, which permanently revokes the current contract. This adds a whenNotRevoked modifier that reverts if the contract is revoked. Revoking cannot be undone, similarly to Pausing, but permanent. (View Revokable contract with RevokerRole #2036)