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

lightclient: Add support for multi-chain usecase #1238

Merged
merged 43 commits into from
Nov 16, 2023

Commits on Oct 31, 2023

  1. lightclient: Make smoldot::chainID part of the RPC requests

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    4cdfe7b View commit details
    Browse the repository at this point in the history
  2. lightclient: Make BackgroundTask generic over PlatformRef and chain

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    962aeff View commit details
    Browse the repository at this point in the history
  3. lightclient: Construct from raw smoldot and target different chains

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    3fd6929 View commit details
    Browse the repository at this point in the history
  4. testing: Update cargo lock for wasm tests

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    220bff3 View commit details
    Browse the repository at this point in the history
  5. lightclient: Reuse new_from_client method and removed unused imports

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    b50e53d View commit details
    Browse the repository at this point in the history
  6. lightclient: Reexport smoldot client and RPC objects used in pub

    interface
    
    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    4655a65 View commit details
    Browse the repository at this point in the history
  7. lightclient: Adjust new_from_client interface

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    f91b10e View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2023

  1. lightclient: Extend background to poll over multiple RPC objects

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 1, 2023
    Configuration menu
    Copy the full SHA
    0616aa9 View commit details
    Browse the repository at this point in the history
  2. subxt: Build light client from raw and target different chains

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 1, 2023
    Configuration menu
    Copy the full SHA
    c2dba83 View commit details
    Browse the repository at this point in the history
  3. artifacts: Add demo chain specs

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 1, 2023
    Configuration menu
    Copy the full SHA
    1876b42 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2023

  1. artifacts: Move artifacts to dedicated folder

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    6d945f5 View commit details
    Browse the repository at this point in the history
  2. lightclient: Use SelectAll to drive all streams

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    b16c5f3 View commit details
    Browse the repository at this point in the history
  3. lightclient: Fetch initial data from the target chain

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    7ef743d View commit details
    Browse the repository at this point in the history
  4. lightclient: Reexport other smoldot objects

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    659ea8b View commit details
    Browse the repository at this point in the history
  5. subxt: Target chain with potentially different config

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    8abe5aa View commit details
    Browse the repository at this point in the history
  6. subxt/rpc: Log chainID for debugging

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    d873f94 View commit details
    Browse the repository at this point in the history
  7. subxt/examples: Add smoldot client with parachain example

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    d095a51 View commit details
    Browse the repository at this point in the history
  8. lightclient: Propagate chain ID together with rpc responses object

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    c70f655 View commit details
    Browse the repository at this point in the history
  9. lightclient: Multiplex responses by request ID and chain ID

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    e2b9def View commit details
    Browse the repository at this point in the history
  10. subxt: Add raw light client builder

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    acaf279 View commit details
    Browse the repository at this point in the history
  11. subxt: Add cargo feature flag for parachains example

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    e164b85 View commit details
    Browse the repository at this point in the history
  12. lightclient: Derive default for internal structure

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    ce56fd4 View commit details
    Browse the repository at this point in the history
  13. lightclient: Guard reexports by std feature flag

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    7abaf88 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2023

  1. Configuration menu
    Copy the full SHA
    1bafe50 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2023

  1. Merge remote-tracking branch 'origin/master' into lexnv/light-client-…

    …multi-chain
    
    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 6, 2023
    Configuration menu
    Copy the full SHA
    93e1260 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2023

  1. Update subxt/src/client/light_client/mod.rs

    Co-authored-by: James Wilson <james@jsdw.me>
    lexnv and jsdw authored Nov 9, 2023
    Configuration menu
    Copy the full SHA
    0efba8f View commit details
    Browse the repository at this point in the history
  2. lightclient: Update the builder pattern and chain targetting

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    bcbde26 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d9bd705 View commit details
    Browse the repository at this point in the history
  4. lightclient: Fix documentation

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    c0be204 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2023

  1. Provide more insightful docs wrt native/wasm panics

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    79dfbd1 View commit details
    Browse the repository at this point in the history
  2. examples: Adjust comment location

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    43a1c77 View commit details
    Browse the repository at this point in the history
  3. lightclient: Refactor UniqueChainId into the background task

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    f7ef096 View commit details
    Browse the repository at this point in the history
  4. Update lightclient/src/background.rs

    Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
    lexnv and niklasad1 authored Nov 10, 2023
    Configuration menu
    Copy the full SHA
    2f8dd47 View commit details
    Browse the repository at this point in the history
  5. Update subxt/src/client/light_client/builder.rs

    Co-authored-by: James Wilson <james@jsdw.me>
    lexnv and jsdw authored Nov 10, 2023
    Configuration menu
    Copy the full SHA
    0ee52e6 View commit details
    Browse the repository at this point in the history
  6. lightclient: Update docs wrt panics

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    da4ee7e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    deb648e View commit details
    Browse the repository at this point in the history
  8. subxt: Update docs wrt to smoldot instance -> client

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    2f82e91 View commit details
    Browse the repository at this point in the history
  9. lightclient: Use IntoIter instead of Iterator

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    46a6adc View commit details
    Browse the repository at this point in the history
  10. subxt: Adjsut docs wrt [Self::new_from_client]

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    15811fc View commit details
    Browse the repository at this point in the history
  11. subxt: Remove RawRpc from LightClient in favor of chainID

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    56ca927 View commit details
    Browse the repository at this point in the history
  12. lightclient: Reexport everything under smoldot module

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    0cfe8d3 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2023

  1. Configuration menu
    Copy the full SHA
    25581e4 View commit details
    Browse the repository at this point in the history
  2. artifacts: Use stateRootHash instead of genesis.raw

    Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
    lexnv committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    84bf673 View commit details
    Browse the repository at this point in the history