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: cleaner chain migration, native token vault, general bridging via L1SharedBridge #463
base: sb-sync-layer-migration
Are you sure you want to change the base?
Conversation
l1-contracts/contracts/state-transition/chain-deps/facets/Mailbox.sol
Outdated
Show resolved
Hide resolved
…s/era-contracts into kl/sync-layer-reorg
@@ -230,6 +230,7 @@ contract DefaultAccount is IAccount { | |||
assert(msg.sender != BOOTLOADER_FORMAL_ADDRESS); | |||
|
|||
// If the contract is called directly, behave like an EOA | |||
|
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.
nit: probably line added by mistake or linting
/// @custom:security-contact security@matterlabs.dev | ||
/// @dev Vault holding L1 native ETH and ERC20 tokens bridged into the hyperchains. | ||
/// @dev Designed for use with a proxy for upgradability. | ||
contract L1NativeTokenVault is |
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 can see that this essentially separates from the shared bridge, but in the diagram we have a separation between native token vault & the standard scenario.
Does this mean we're only considering here the tokens native to L1?
As I understand the vault for L2 native tokens has yet to be added
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.
Yes, we cannot handle l2 native token yet. ( You could implement it if you want )
started filling out bridge migration functions
…cts into kl/sync-layer-reorg
…s/era-contracts into kl/sync-layer-reorg
Co-authored-by: Raid Ateir <ra@matterlabs.dev> Co-authored-by: kelemeno <34402761+kelemeno@users.noreply.github.com>
Co-authored-by: kelemeno <kl@matterlabs.dev>
…cts into kl/sync-layer-reorg
…s/era-contracts into kl/sync-layer-reorg
Co-authored-by: Raid Ateir <ra@matterlabs.dev> Co-authored-by: kelemeno <kl@matterlabs.dev>
What ❔
Why ❔
Checklist