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

feat: Launch tests and prod proposals #14

Merged
merged 4 commits into from
May 17, 2024
Merged

feat: Launch tests and prod proposals #14

merged 4 commits into from
May 17, 2024

Conversation

deluca-mike
Copy link
Collaborator

No description provided.

@deluca-mike deluca-mike added the enhancement New feature or request label May 7, 2024
@deluca-mike deluca-mike self-assigned this May 7, 2024
@deluca-mike deluca-mike force-pushed the feat/launch-tests branch 2 times, most recently from 09e55bb to b354695 Compare May 7, 2024 08:15
.env.example Outdated Show resolved Hide resolved
foundry.toml Outdated Show resolved Hide resolved
script/DeployProduction.s.sol Show resolved Hide resolved
test/Integration.t.sol Outdated Show resolved Hide resolved
uint256[] internal _minterKeys;
uint256[] internal _validatorKeys;

uint256[][2] internal _initialBalances;
address[][2] internal _initialAccounts = [
Copy link
Member

Choose a reason for hiding this comment

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

Should live in a TestUtils file if we want to reuse it across tests.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For now, there are only 3 tests. But if we made more off mainnet, then this file would become an IntergrationtestBase, and tests would be moved elsewhere. These are fixtures, not utils.


function _encodeSetMintDelay(uint256 mintDelay_) internal pure returns (bytes memory) {
return abi.encodeWithSelector(IStandardGovernor.setKey.selector, _MINT_DELAY, mintDelay_);
function _encodeAdd(bytes32 list_, address account_) internal pure returns (bytes memory) {
Copy link
Member

Choose a reason for hiding this comment

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

These helper functions should live in a TestUtils file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed, but there is no TestUtils file yet, and this file itself might become a TestBase as the tests are moved elsewhere.

@deluca-mike deluca-mike force-pushed the feat/launch-tests branch 2 times, most recently from bb88b1d to 9a2efb4 Compare May 10, 2024 20:07
@PierrickGT PierrickGT force-pushed the feat/launch-tests branch 2 times, most recently from 05dbb87 to 1631dd7 Compare May 17, 2024 18:50
@PierrickGT PierrickGT merged commit a4b5241 into main May 17, 2024
2 checks passed
@PierrickGT PierrickGT deleted the feat/launch-tests branch May 17, 2024 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants