Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added test framework with minimal deploy script #17

Merged
merged 3 commits into from
Oct 8, 2024

Conversation

jferas
Copy link
Collaborator

@jferas jferas commented Oct 4, 2024

Resolves #5

@coveralls
Copy link

coveralls commented Oct 4, 2024

Pull Request Test Coverage Report for Build 11221809554

Details

  • 0 of 2 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.2%) to 95.149%

Changes Missing Coverage Covered Lines Changed/Added Lines %
contracts/CompoundGovernor.sol 0 2 0.0%
Totals Coverage Status
Change from base Build 11167243724: -0.2%
Covered Lines: 318
Relevant Lines: 336

💛 - Coveralls

contract CompoundGovernorConstants {
// These constants are taken from the existing GovernorBravoDelegate contract.

uint48 INITIAL_VOTING_DELAY = 13_140; // The delay before voting takes place, in blocks
Copy link
Collaborator

Choose a reason for hiding this comment

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

hey @jferas how confident are we that these are the constants we're going live with? should we put a TODO here (or better, an issue to verify these initialization params)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added a TODO: 5c79b52

Also added an issue: #19


function setUp() public virtual {
// private key of the deployer (use the anvil default account #0 key, if no environment variable is set)
deployerPrivateKey = vm.envOr(
Copy link
Collaborator

Choose a reason for hiding this comment

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

is it possible to avoid setting a PK in the env? Would prefer to let foundry manage the wallet instead. We run across this often, and i remember there's a limitation with calling scripts in tests. maybe this is something we can create an issue for.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added an issue: #18

Copy link
Member

@garyghayrat garyghayrat left a comment

Choose a reason for hiding this comment

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

lgtm!

@jferas jferas merged commit cb14aa7 into main Oct 8, 2024
3 checks passed
wildmolasses pushed a commit that referenced this pull request Nov 1, 2024
* feat: proposal guardian

* remove `.only`

* create new `proposalGuardian` role

* add tests

* Update comments per recommendation

* feat: proposal guardian expires

* lint `GovernorBravoDelegate`

* feat: expose guardian expiration (#17)
wildmolasses pushed a commit that referenced this pull request Nov 1, 2024
* Added test framework with minimal deploy script

* forge fmt constant cleanup

* Added TODO about constants
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add starting test framework
4 participants