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

feat: provide inclusion data as operator_da_input #2965

Merged
merged 8 commits into from
Sep 26, 2024

Commits on Sep 13, 2024

  1. feat: add da clients (#2743)

    This PR changes the approach to managing 3rd party DA clients. It was
    assumed before that they will be stored in a separate repository
    (hyperchain-da), but to simplify the processes and solve a recursive
    dependency problem, we decided to manage those within `zksync-era`.
    
    The config now defines which DA client will be used, for proto-based
    configuration it requires adding these lines to general.yaml:
    ```
    da_client:
      avail:
        api_node_url: wss://turing-rpc.avail.so/ws
        bridge_api_url: undefined
        seed: SEED_PHRASE
        app_id: 82
        timeout: 3
        max_retries: 5
    ```
    for env-based:
    ```
        DA_CLIENT="Avail"
        DA_API_NODE_URL="localhost:12345"
        DA_BRIDGE_API_URL="localhost:54321"
        DA_SEED="SEED_PHRASE"
        DA_APP_ID=1
        DA_TIMEOUT=2
        DA_MAX_RETRIES=3
    ```
    If no config is provided - the default behavior is to use NoDA client
    (same as now).
    
    The `da_client` config might be merged with `da_dispatcher` at some
    point as the second depends on the first one, so their separation does
    not make much sense (apart from simplification of the configs). But I'd
    prefer to do it as a separate PR in case we decide to merge them.
    
    The client was reimplemented using only lightweight libraries from
    crates.io, so it doesn't have any visible impact on build time.
    
    To enable seamless integration with 3rd party DA clients in
    `zksync-era`.
    
    <!-- Check your PR fulfills the following items. -->
    <!-- For draft PRs check the boxes as you complete them. -->
    
    - [ ] PR title corresponds to the body of PR (we generate changelog
    entries from PRs).
    - [ ] Tests for the changes have been added / updated.
    - [ ] Documentation comments have been added / updated.
    - [ ] Code has been formatted via `zk fmt` and `zk lint`.
    dimazhornyk committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    f142ddc View commit details
    Browse the repository at this point in the history
  2. fix inclusion data

    dimazhornyk committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    0c20a03 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2024

  1. pull sync-layer-stable

    dimazhornyk committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    329730d View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2024

  1. fix conflicts

    dimazhornyk committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    f04212b View commit details
    Browse the repository at this point in the history
  2. fix Cargo.lock

    dimazhornyk committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    9c831f1 View commit details
    Browse the repository at this point in the history
  3. fix Cargo.lock

    dimazhornyk committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    d41ff9f View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2024

  1. Configuration menu
    Copy the full SHA
    48b186b View commit details
    Browse the repository at this point in the history
  2. fix match condition

    dimazhornyk committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    4e6470b View commit details
    Browse the repository at this point in the history