-
Notifications
You must be signed in to change notification settings - Fork 42
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(genesis): mainnet values in gen alloc and testing #443
Conversation
ccd4b8e
to
0d3f31e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
address[] memory proposers = new address[](1); | ||
proposers[0] = protocolAdmin; | ||
address[] memory executors = new address[](1); | ||
executors[0] = timelockExecutor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it setting it to anyone can execute?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It allows having address(0) in env files so it's public
story/contracts/script/GenerateAlloc.s.sol
Line 132 in 0ac4627
if (timelockExecutor == address(0)) { |
0ac4627
to
3eb131a
Compare
3eb131a
to
1e68dd2
Compare
// Optionally allocate 10k test accounts for devnets/testnets | ||
bool private constant ALLOCATE_10K_TEST_ACCOUNTS = false; | ||
// Optionally keep the timelock admin role for testnets | ||
bool private constant KEEP_TIMELOCK_ADMIN_ROLE = true; | ||
|
||
/// @notice this call should only be available from Test.sol, for speed | ||
function disableStateDump() external { | ||
require(block.chainid == 31337, "Only for local tests"); | ||
require(block.chainid == ChainIds.FOUNDRY, "Only for local tests"); | ||
saveState = false; | ||
} | ||
|
||
/// @dev this call should only be available from Test.sol | ||
function setAdminAddresses(address protocol, address executor, address guardian) external { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, we could write to internal storage slots directly in tests (but having setAdminAddresses
in script doesn't impact performance or anything).
Binary uploaded successfully 🎉📦 Version Name: 0.14.1-unstable-e9da1b4 |
KEEP_TIMELOCK_ADMIN_ROLE = true
)issue: none