-
Notifications
You must be signed in to change notification settings - Fork 2
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
Or 1397 titan canyon unify usdc.e usdc bridge into tokamak contracts bedrock src l2 tokamak #108
Conversation
xxeonge
commented
Mar 25, 2024
•
edited
Loading
edited
- Unifying USDC.e and L2UsdcBridge contracts.
- Add submodules used by the contracts and remapped their paths in foundry.toml
- Linked library for FiatTokenV2_2.sol to the predeploy address of SignatureCheck.sol
@xxeonge Thanks a lot. But the Slither CI test is not passing properly because of some error. Did you check it?
|
Let me check this out too! |
Correct me if I am wrong. I think we can extend OptimismMintableERC20 and use StandardBridge for this task. Actually, I don't know about the background. What is the benefit of this solution? |
Thank you, Brave. I'm sorry about it. So, Zena made this code. And we will include this code as predeploy! |
Sorry for late reply. I will check. Thank you!! |
++) The L1UsdcBridge contract was added to deploy the L1Usdcbridge.
|
@@ -24,6 +26,7 @@ bytecode_hash = 'none' | |||
build_info = true | |||
build_info_path = 'artifacts/build-info' | |||
|
|||
|
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.
Thank you!
I think we can remove this empty line!
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.
@rlgns98kr
Thank you! i removed empty lines : )
@AaronLee22 |
31c4111
to
f61ff9c
Compare
Sure, I attempted to resolve this error by following both recommendations from the Slither team, specifically by removing the 'ignore-compile: true' option, yet the issue persisted. The Slither team is currently addressing a known problem where certain libraries or aliases within smart contracts cannot be retrieved. Consequently, I was compelled to manually exclude the specific smart contract experiencing the 'Failed to generate IR' issue. |
@@ -0,0 +1,222 @@ | |||
// SPDX-License-Identifier: MIT |
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.
I'm sorry. I missed these files.
How about changing the directory structure? I'm sorry again my fault,,, 😢😢
src
--tokamak-contracts
----USDC
------L1
------L2
------libraries
------universal
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.
@rlgns98kr
In L2, is there no need to separate the usdc contract and usdcBridge contract files??
If we have to separate them, what name should we give them? 🤔
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.
Oh, I'm sorry for my late.
About sub directory, I think yours is greeat! So I think you can keep your seperate structure in the L2!
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.
Thank you very much, @xxeonge and @AaronLee22!
Congratulations for your first contribution! 👍👍
3cbb4c3
to
c0f9851
Compare
* validated in the constructor. | ||
*/ | ||
bytes32 | ||
private constant IMPLEMENTATION_SLOT = 0x7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c3; |
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.
@xxeonge It is the impl slot for usdc
* validated in the constructor. | ||
*/ | ||
bytes32 | ||
private constant ADMIN_SLOT = 0x10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b; |
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 is admin slot for usdc