Skip to content
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

Merged

Conversation

RezaRahemtola
Copy link
Member

@RezaRahemtola RezaRahemtola commented Jun 24, 2024

While using gno-js and reading the related docs, I saw the message saying that it's based on tm2-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...
  • Added new tests, or not needed, or not feasible
  • Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory
  • Updated the official documentation or not needed
  • No breaking changes were made, or a BREAKING CHANGE: xxx message was included in the description
  • Added references to related issues and PRs
  • Provided any useful hints for running manual tests
  • Added new benchmarks to generated graphs, if any. More info here.

Copy link
Member

@gfanton gfanton left a 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

Copy link

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.

@github-actions github-actions bot added the Stale label Nov 10, 2024
@thehowl thehowl requested a review from leohhhn November 14, 2024 09:42
@github-actions github-actions bot removed the Stale label Nov 15, 2024
docs/reference/gno-js-client/gno-provider.md Outdated Show resolved Hide resolved
docs/reference/gno-js-client/gno-provider.md Outdated Show resolved Hide resolved
docs/reference/gno-js-client/gno-provider.md Outdated Show resolved Hide resolved
docs/reference/gno-js-client/gno-provider.md Outdated Show resolved Hide resolved
@leohhhn leohhhn merged commit 6c5329d into gnolang:master Nov 15, 2024
28 of 30 checks passed
Copy link

codecov bot commented Nov 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.10%. Comparing base (28c3b1a) to head (8e724fd).
Report is 285 commits behind head on master.

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     
Flag Coverage Δ
contribs/gnodev 61.16% <ø> (+37.35%) ⬆️
contribs/gnofaucet 14.82% <ø> (+0.35%) ⬆️
gno.land 73.70% <ø> (+11.15%) ⬆️
gnovm 67.74% <ø> (+7.79%) ⬆️
misc/genstd 79.72% <ø> (+5.82%) ⬆️
tm2 62.36% <ø> (+8.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@RezaRahemtola RezaRahemtola deleted the reza/add-gno-js-provider-instantiation branch November 15, 2024 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants