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
Cross Chain DAO Tutorial #542
Conversation
Here's a neat trick to improve the function selectors, so that you don't have to double wrap with abi.encode |
I tried slimming it down a little from its draft version, but it might have ended up longer due to the extra images. This is what I tried to focus on:
This is what I tried to omit:
The tutorial is likely still hard to follow, and some things might only make sense to me because I wrote the smart contracts, so feel free to leave critiques on structure and explanations. |
|
||
There are many ways to architecture a cross-chain DApp. You could make a more distributed system, where data and logic are distributed to multiple chains to maximize their use. On the other end of the spectrum, you could use a hub-and-spoke model: where the main logic and data are stored on a single chain, and cross-chain messages will interact with it. | ||
|
||
![Cross Chain DAO](/images/tutorials/interoperability/cross-chain-dao/cross-chain-dao-2.png) |
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.
wouldn't the snapshot be taken before it is sent to the spoke chain?
Co-authored-by: Erin Shaben <eshaben@icloud.com>
@albertov19 this is ready for you to review now if you wanna take a look 👀 |
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.
LGTM!
@eshaben do you feel we should organize the left hand side navigation to be alphabetical? If so, connected contracts should be above XCM
Also I did do a commit, please review :) |
Co-authored-by: Erin Shaben <eshaben@icloud.com>
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! Great job
Description
Added a tutorial on the smart contracts & design of a cross-chain DAO.
I tried slimming it down a little from its draft version, but it might have ended up longer due to the extra images. This is what I tried to focus on:
This is what I tried to omit:
The tutorial is likely still hard to follow, and some things might only make sense to me because I wrote the smart contracts, so feel free to leave critiques on structure and explanations.
Draft Description:
Checklist
moonbeam-docs-cn
repo, I have created a ticket for the translations in Jiracompress-images.py
script to compress the images.After Translation Requirements
moonbeam-docs
repo to remove imagesmoonbeam-docs
repo to remove variablesmoonbeam-mkdocs
repo to add redirects for Chinese siteItems to be Updated
Please list any of the items that will need to be added or deleted after the translations are done here.