-
Notifications
You must be signed in to change notification settings - Fork 75
feat: Added constants & address generation scripts to pre-commit hook #1110
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
Conversation
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
| echo "" | ||
| echo "Generated files:" | ||
| echo " - $PROJECT_ROOT/broadcast/deployed-addresses.md (Markdown format)" | ||
| echo " - $PROJECT_ROOT/broadcast/deployed-addresses.json (JSON format)" | ||
| echo " - $PROJECT_ROOT/script/DeployedAddresses.sol (Foundry smart contract with all addresses)" | ||
| echo "" | ||
| echo "You can now import DeployedAddresses.sol in your other Foundry scripts to use the deployed addresses." No newline at end of file |
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.
Removed these looks to make it less noisy
| // Log the sorting priority for visibility | ||
| console.log("\nChain sorting priority:"); | ||
| const mainnetChains = sortedChainIds.filter((id) => Object.values(MAINNET_CHAIN_IDs).includes(id)); | ||
| const testnetChains = sortedChainIds.filter((id) => Object.values(TESTNET_CHAIN_IDs).includes(id)); | ||
| const otherChains = sortedChainIds.filter( | ||
| (id) => !Object.values(MAINNET_CHAIN_IDs).includes(id) && !Object.values(TESTNET_CHAIN_IDs).includes(id) | ||
| ); | ||
|
|
||
| console.log( | ||
| ` Mainnet chains (${mainnetChains.length}): ${mainnetChains.map((id) => `${getChainName(id)}(${id})`).join(", ")}` | ||
| ); | ||
| console.log( | ||
| ` Testnet chains (${testnetChains.length}): ${testnetChains.map((id) => `${getChainName(id)}(${id})`).join(", ")}` | ||
| ); | ||
| console.log( | ||
| ` Other chains (${otherChains.length}): ${otherChains.map((id) => `${getChainName(id)}(${id})`).join(", ")}` | ||
| ); | ||
| console.log(""); | ||
|
|
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.
same here, all the changes in this file are removing logs
| }, | ||
| "MulticallHandler": { | ||
| "address": "0x924a9f036260DdD5808007E1AA95f08eD08aA569", | ||
| "address": "0x0F7Ae28dE1C8532170AD4ee566B5801485c13a0E", |
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 this right? This contract isn't verified
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.
nice catch, looks like non of the 0x0F7Ae28dE1C8532170AD4ee566B5801485c13a0E are verified, will confirm if its the right address
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.
The addresses are correct but looks like they were never verified. I verified all of the unverified contracts
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.
The MUlticallHandler from this PR doesn't seem to be verified on Mainnet at least
It also contains changes from #1058, but I can move to another pr if its easier to review like that