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

fix: Retrieving public endpoints with createWsEndpoints function #829

Merged
merged 3 commits into from
Feb 1, 2022

Conversation

Imod7
Copy link
Contributor

@Imod7 Imod7 commented Jan 31, 2022

Related Issue

This PR is an attempt to solve the #782 issue.

Suggested Solution

I used createWsEndpoints function to get the endpoints from @polkadot/apps-config/endpoints and then generated the new publicWsUrls array.

Note : I have not used the specName as suggested in #782

@Imod7 Imod7 requested a review from a team as a code owner January 31, 2022 19:17
@Imod7 Imod7 changed the title Retrieving public endpoints with createWsEndpoints function Retrieving public endpoints with createWsEndpoints function Jan 31, 2022
src/main.ts Outdated Show resolved Hide resolved
- Replaced while with map and filter.
- Fixed lint errors.
src/main.ts Outdated Show resolved Hide resolved
src/main.ts Outdated Show resolved Hide resolved
Copy link
Member

@niklasad1 niklasad1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, LGTM

@TarikGul TarikGul changed the title Retrieving public endpoints with createWsEndpoints function fix: Retrieving public endpoints with createWsEndpoints function Feb 1, 2022
@TarikGul
Copy link
Member

TarikGul commented Feb 1, 2022

LGTM, great job, and thank you for the PR.

@Imod7 Imod7 merged commit a019c8b into master Feb 1, 2022
@Imod7 Imod7 deleted the domi-endpoints-from-apps-config branch February 1, 2022 15:44
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sidecar should parse all the public endpoints from apps-config, and replace our hardcoded values
3 participants