-
Notifications
You must be signed in to change notification settings - Fork 285
add substrate-connect tutorial #1122
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 substrate-connect tutorial #1122
Conversation
✅ Deploy Preview for substrate-docs-md ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
|
Its good to mention here that these tutorials are using the For more advanced implementations (e.g. for library authors) |
Co-authored-by: Nikos Kontakis <[email protected]>
Co-authored-by: Nikos Kontakis <[email protected]>
Co-authored-by: Nikos Kontakis <[email protected]>
@wirednkod added a few words via 8c5c691 |
|
@sacha-l https://github.com/paritytech/devops/issues/1724 is closed, PR is ready for review/merging. |
content/md/en/docs/tutorials/light-clients/browser-extension.md
Outdated
Show resolved
Hide resolved
spelling links corrected
✅ Deploy Preview for substrate-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
nuke-web3
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 now, pending Lisa's OK
| - title: Run a Light Client in your browser | ||
| url: /tutorials/light-clients/ | ||
| pages: | ||
| - title: Download the browser extension | ||
| url: /tutorials/light-clients/substrate-connect/ | ||
| - title: Connect with a well-known relay-chain | ||
| url: /tutorials/light-clients/production-relays/ | ||
| - title: Connect with a parachain | ||
| url: /tutorials/light-clients/production-parachains/ |
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.
@lisa-parity you approve of the structure here? We can refactor if you think it is needed, and/or move to the "right place" in nav
|
@bernardoaraujor , I just have a couple of questions:
I'll try to run through the tutorial(s) myself this week and then maybe I'll have a clear idea about what it is divided up like this. |
In regards to section, it doesn't have to be a standalone tutorial section. Either
Just for conceptual organization, but we could merge it all into a single file if you prefer. |
|
This is a webpack config issue. In details you will need:
Have a look at this config that I have used in a minimal demo, using substrate connect. |
|
okay one more ?, I have gotten everything working, but when I connect to the statemint.json, the console displays: then messages like this: not the output from this line: |
Long story short - in order to connect to any relay/para chain the bootnodes need to be listening for WebSocket connections (see this request towards devops that explain bit more). I am not sure if for EDIT: Actually wss is active for bootnodes of statemint (as can be seen here). I replicated what I think you try to do, by altering the demo linked above, and I managed to connect to statemint. |
|
Thanks for all of you help, @wirednkod ! I got it all working (though your demos are much cooler 😉). |

Submitting for preliminary review.The tutorial shouldn't be published until https://github.com/paritytech/devops/issues/1724 is closed, because currently the bootnodes on Statemint chainspec don't provide WebSockets yet.Ready.