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

Mainnet spell 2025-02-21 #454

Merged
merged 17 commits into from
Feb 22, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/DssSpell.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1253,4 +1253,31 @@ contract DssSpellTest is DssSpellTestBase {
"testUnwindSurplusBuffer/insufficient-vow-dai-balance"
);
}

function testNewChainlogKeys() public {
string[6] memory addedKeys = [
"ARBITRUM_TOKEN_BRIDGE",
"ARBITRUM_TOKEN_BRIDGE_IMP",
"EMSP_CLIP_BREAKER_FAB",
"EMSP_LINE_WIPE_FAB",
"EMSP_LITE_PSM_HALT_FAB",
"EMSP_SPLITTER_STOP"
];

address[] memory newAddresses = new address[](6);
newAddresses[0] = 0x84b9700E28B23F873b82c1BEb23d86C091b6079E;
newAddresses[1] = 0x12eDe82637d5507026D4CDb3515B4b022Ed157b1;
newAddresses[2] = 0x867852D30bb3CB1411fB4e404FAE28EF742b1023;
newAddresses[3] = 0x8646F8778B58a0dF118FacEdf522181bA7277529;
newAddresses[4] = 0xB261b73698F6dBC03cB1E998A3176bdD81C3514A;
newAddresses[5] = 0x12531afC02aC18a9597Cfe8a889b7B948243a60b;

_vote(address(spell));
_scheduleWaitAndCast(address(spell));
assertTrue(spell.done(), "TestError/spell-not-done");

for(uint256 i = 0; i < addedKeys.length; i++) {
assertEq(chainLog.getAddress(_stringToBytes32(addedKeys[i])), newAddresses[i], string.concat(_concat("testNewChainlogKeys/chainlog-key-mismatch: ", addedKeys[i])));
}
}
}