-
Notifications
You must be signed in to change notification settings - Fork 75
feat: Update constants.json usage #1096
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
98dcbfa to
e78b1e9
Compare
| } | ||
|
|
||
| // Helper function to extract USDC addresses | ||
| function extractUsdcAddresses(): { [key: string]: string } { |
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.
Two questions for this entire file:
- Why are we setting the keys as the chain name? I would think it's a lot easier for foundry to know the network's chainId over the name of the network itself?
- Maybe a stupid question, but these functions seem really complex for what they are doing. Why can't we just call
JSON.stringify(USDC)and similar things for all of these other functions? I think adding this much code to just extract values from a map makes the script itself pretty rigid/hard to maintain.
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.
Good idea, I updated the scripts to fetch by chainid instead 4677066
make every a lot cleaner
56f1e0f to
ae04d5f
Compare
|
No dependency changes detected. Learn more about Socket for GitHub. 👍 No dependency changes detected in pull request |
db95804 to
517c64b
Compare
a689cd4 to
61301b7
Compare
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
61301b7 to
7343ab1
Compare
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
1558e42 to
1e7ae2b
Compare
|
This pr is very messy now, I will close this and recreate it |
Using the generated constants.json in foundry scripts
Resolves https://linear.app/uma/issue/ACX-4371/fully-generate-contract-configs-constants-from-constants-exports
See #1102 first which has the script
and then #1105 which generates the
constants.jsonfile