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

ApiHandler / ChainData refactoring #2951

Merged
merged 4 commits into from
May 30, 2024
Merged

Commits on May 29, 2024

  1. ApiHandler / ChainData refactoring

    Removed a lot of retry/reconnect logic from ApiHandler and ChainData, as
    it was spawning a lot of PJS instances, which also handling reconnects
    on its own.
    This change also properly adpots the idea of talking both to relay chain
    and to parachains, depending on queried data.
    
    With new logic, each ApiHandler instance governs an interface to a
    single chain, where it can switch endpoints and do reconnects on its
    own.
    `ApiHandler.getApi()` returns a PJS instance that should work, and will
    block in case we're reconnecting.
    
    PeopleApi endpoints now live in configs, instead of being hardcoded.
    
    Instead of passing around ApiHandlers, passing a ChainData instance now, as
    it contains both ApiHandlers instance now, and as it is an intended
    abstraction for it
    mutantcornholio committed May 29, 2024
    Configuration menu
    Copy the full SHA
    5ad0ab4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c18b9b1 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #2953 from w3f/yuri/websocket-disconnect-config

    apiPeopleEndpoints in kusama configs
    mutantcornholio authored May 29, 2024
    Configuration menu
    Copy the full SHA
    2c202b1 View commit details
    Browse the repository at this point in the history
  4. Fixing parameters

    mutantcornholio committed May 29, 2024
    Configuration menu
    Copy the full SHA
    8c2ae30 View commit details
    Browse the repository at this point in the history