-
Notifications
You must be signed in to change notification settings - Fork 530
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
Add docs/sequences.md with deposit, withdraw, and exit sequences #1354
Add docs/sequences.md with deposit, withdraw, and exit sequences #1354
Conversation
@Stefan-Ethernal please consider whether you would contribute to this PR to help myself and others understand the system better. Link to rendered diagrams: |
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 one and pretty useful. Thanks for your contribution 🙌
Leaving a couple of comments to consider.
Btw, maybe move the file itself to docs/bridge/sequences.md
.
Co-authored-by: Stefan Negovanović <93934272+Stefan-Ethernal@users.noreply.github.com>
Co-authored-by: Stefan Negovanović <93934272+Stefan-Ethernal@users.noreply.github.com>
Co-authored-by: Stefan Negovanović <93934272+Stefan-Ethernal@users.noreply.github.com>
Co-authored-by: Stefan Negovanović <93934272+Stefan-Ethernal@users.noreply.github.com>
Thanks @Stefan-Ethernal, appreciate it. Have made the changes you suggested. One thing I am still confused about is at what point in the
# deposit 1000 wei
polygon-edge bridge deposit-erc20 ...
# withdraw 1000 wei
polygon-edge bridge withdraw-erc20 ...
polygon-edge bridge 'exit' ...
This is for native token. Am I missing something with the ChlidERC20Predicate.sol burn() etc? Thanks! |
As soon as Are you sure that you are querying the correct account address (the private key which is provided when sending the |
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 🚀
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.
Apart from the small comment, this is great. Hats down to you good sir 🎩
Co-authored-by: Goran Rojovic <100121253+goran-ethernal@users.noreply.github.com>
Thanks, this clarified things for me |
Description
Suggesting to add sequence diagrams under
docs/
section.The diagrams render on github so they could be very helpful. See https://github.com/0xPolygon/polygon-edge/blob/424ae7fb723365c0ef245fd731f76645e2920d92/docs/sequences.md
I have been using these when I am debugging deployments as the flows are quite complicated.
Limitations
The sequences there are based on my understanding and likely contain errors and lack some important information.
If Polygon team thinks these would be helpful to others, please contribute to this PR.