-
Notifications
You must be signed in to change notification settings - Fork 377
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
docs(gno-js): Add provider instantiation docs #2427
docs(gno-js): Add provider instantiation docs #2427
Conversation
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.
Looks good! @zivkovicmilos, if you can give a quick look at this one
This PR is stale because it has been open 3 months with no activity. Remove stale label or comment or this will be closed in 3 months. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2427 +/- ##
==========================================
+ Coverage 54.68% 63.10% +8.42%
==========================================
Files 583 552 -31
Lines 78502 83853 +5351
==========================================
+ Hits 42927 52915 +9988
+ Misses 32367 27445 -4922
- Partials 3208 3493 +285
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
While using
gno-js
and reading the related docs, I saw the message saying that it's based ontm2-js-client
with related link.This is useful to understand how it works and see the available methods from the base Provider classes, but doesn't inform the developer about how he should instantiate a provider with
gno-js-client
, the name of the providers isn't mentioned anywhere and I had to guess it (or use my IDE autocomplete) and look at other projects using it to find out.This PR adds a small section to the documentation page with explicit instantiation examples to fix this (without repeating too much info, parameters for example are linked to
tm2-js-client
, but could be extended in the future and documented here).Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description