-
Notifications
You must be signed in to change notification settings - Fork 19
test: bridge l2 erc20 token #229
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
508926e to
223ee49
Compare
2e6fcaf to
c2dcc08
Compare
cbed1d0 to
29201c1
Compare
2be753e to
fecf3ff
Compare
a001d76 to
0c1cc07
Compare
f5fc029 to
3d72cfa
Compare
9720cf0 to
899324e
Compare
899324e to
f02f070
Compare
|
goran-ethernal
left a comment
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.
LGTM 💯
a017e9a to
519f04a
Compare
temaniarpit27
left a comment
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.
@Stefan-Ethernal i think we need to migrate this PR to e2e repo and close this one
|
Superseded by #459 and agglayer/e2e#53. |



Description
Implement bridging of custom ERC20 token from L2 to L1 and vice versa.
Steps
sequenceDiagram participant User participant L2_Network participant L2_Bridge participant L1_Network participant L1_Bridge User->>L2_Network: Deploy mock ERC20 token User->>L2_Network: Mint 10 ETH worth of mock ERC20 to sender User->>L2_Network: Approve L2_Bridge as spender (10 ETH) User->>L2_Bridge: Bridge 1 ETH worth of mock ERC20 (L2 -> L1) L2_Bridge->>L1_Bridge: Transfer proof & assets User->>L1_Bridge: Claim bridge@L1 L1_Bridge->>L1_Network: Deploy wrapped token on L1 User->>L1_Network: Approve L1_Bridge as spender (1 ETH wrapped token) User->>L1_Bridge: Bridge 1 ETH wrapped token (L1 -> L2) L1_Bridge->>L2_Bridge: Transfer proof & assets User->>L2_Bridge: Claim bridge@L2 User->>L2_Bridge: Bridge 1 ETH mock ERC20 (L2 -> L1) L2_Bridge->>L1_Bridge: Transfer proof & assets User->>L1_Bridge: Claim bridge@L1Fixes #206