Refactor `method` in `GlobalConstraintInterface` to be an enum.
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 50
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
Reading the code, I saw that the `_method` parameter in [here](https://github.com/daostack/arc/blob/master/contracts/globalConstraints/GlobalConstraintInterface.sol#L6) is always called with one of the following:
* `mintReputation`
* `mintTokens`
* `registerScheme`
* `unregisterScheme`
* `sendEther`
* `externalTokenTransfer`
* `externalTokenTransferFrom`
* `externalTokenIncreaseApproval`
* `externalTokenDecreaseApproval`
* `genericAction` - all other actions.
Can we refactor it to use an `enum` instead?
Contributor guide
Assessment
This issue has not been assessed yet.