Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

refactor: changed language to reflect governors rather than llama #36

Closed
wants to merge 2 commits into from

Conversation

dd0sxx
Copy link
Contributor

@dd0sxx dd0sxx commented Dec 9, 2023

Motivation:

closes #1

Modifications:

  • renamed approval to vote and disapproval to veto
  • renamed threshold and minPct to quorum
  • renamed tokenholder to tokenHolder

Result:

the languaged used will be more familiar to governor users

Copy link

github-actions bot commented Dec 9, 2023

Coverage after merging theo/governor-language into main will be

97.91%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src/token-voting
   ERC20TokenholderActionCreator.sol87.50%50%100%100%37–38
   ERC20TokenholderCaster.sol92.31%50%100%100%36
   ERC721TokenholderActionCreator.sol84.21%50%100%100%37, 39–40
   ERC721TokenholderCaster.sol91.67%50%100%100%36
   LlamaTokenVotingFactory.sol100%100%100%100%
   TokenholderActionCreator.sol90.91%83.33%83.33%97.56%117–118, 223–224
   TokenholderCaster.sol92.06%86.76%84.21%97.06%197–200, 279–280, 313–314, 357–358, 382–383

@@ -23,7 +23,7 @@ contract ERC20TokenholderActionCreator is TokenholderActionCreator {
/// The `initializer` modifier ensures that this function can be invoked at most once.
/// @param _token The ERC20 token to be used for voting.
/// @param _llamaCore The `LlamaCore` contract for this Llama instance.
/// @param _role The role used by this contract to cast approvals and disapprovals.
/// @param _role The role used by this contract to cast approvals and vetos.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is still approval here. I'm assuming that should be votes?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And I can see it's still approvals in a bunch of other places. Might want to do a quick search and replace and confirm if the changes look good.

@0xrajath 0xrajath closed this Dec 10, 2023
@AustinGreen AustinGreen deleted the theo/governor-language branch January 11, 2024 18:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix: remove Llama-specific language from token voting module mechanics
2 participants