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(api): remove jsonrpc backend #693

Merged
merged 39 commits into from
Dec 21, 2023

Conversation

montekki
Copy link
Member

@montekki montekki commented Dec 15, 2023

What ❔

The new release of jsonrpsee removes all known blockers for removing jsonrpc backend.

Checklist

  • 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.
  • Spellcheck has been run via cargo spellcheck --cfg=./spellcheck/era.cfg --code 1.

@montekki montekki changed the title initial commit, jsonrpc removed chore(api): remove jsonrpc backend Dec 15, 2023
@montekki montekki marked this pull request as ready for review December 16, 2023 17:12
Copy link
Contributor

@slowli slowli left a comment

Choose a reason for hiding this comment

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

Overall, looks quite nice 👍

@montekki montekki requested a review from slowli December 18, 2023 13:41
@popzxc
Copy link
Member

popzxc commented Dec 20, 2023

which is in no way exposed to the user, but I am happy to change to whatever fits

@montekki people start to hack around the code too (and will do that more with zkStack), so we should start to treat the API our code provides too; I'd propose it to be a feat so that this thing will appear in changelog.

@montekki montekki changed the title chore(api): remove jsonrpc backend feat(api): remove jsonrpc backend Dec 20, 2023
slowli
slowli previously approved these changes Dec 20, 2023
Copy link
Contributor

@slowli slowli left a comment

Choose a reason for hiding this comment

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

I wonder how well the new approach behave under load, but the code looks nice.

core/lib/zksync_core/src/api_server/web3/mod.rs Outdated Show resolved Hide resolved
core/lib/zksync_core/src/api_server/web3/mod.rs Outdated Show resolved Hide resolved
core/lib/zksync_core/src/api_server/web3/pubsub.rs Outdated Show resolved Hide resolved
core/lib/zksync_core/src/api_server/web3/pubsub.rs Outdated Show resolved Hide resolved
core/lib/zksync_core/src/api_server/web3/pubsub.rs Outdated Show resolved Hide resolved
core/lib/zksync_core/src/api_server/web3/tests/ws.rs Outdated Show resolved Hide resolved
@montekki montekki requested a review from slowli December 20, 2023 15:39
Copy link
Member

@popzxc popzxc left a comment

Choose a reason for hiding this comment

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

Nice, well done.

@montekki montekki added this pull request to the merge queue Dec 21, 2023
Merged via the queue into main with commit b3f0417 Dec 21, 2023
24 checks passed
@montekki montekki deleted the fvs-pla-673-implement-subscriptions-using-jsonrpsee branch December 21, 2023 07:44
montekki added a commit that referenced this pull request Dec 21, 2023
github-merge-queue bot pushed a commit that referenced this pull request Dec 21, 2023
## What ❔
Removes leftover files.

## Checklist

<!-- 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`.
- [ ] Spellcheck has been run via `cargo spellcheck
--cfg=./spellcheck/era.cfg --code 1`.
github-merge-queue bot pushed a commit that referenced this pull request Dec 22, 2023
## What ❔

A small follow-up PR for #693 that introduces some metrics allowing to
track the health of the new approach. Also, does minor refactoring for
the API server builder so it's more typesafe.

## Why ❔

Observability and maintainability.

## Checklist

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.
- [x] Code has been formatted via `zk fmt` and `zk lint`.
- [x] Spellcheck has been run via `cargo spellcheck
--cfg=./spellcheck/era.cfg --code 1`.
RomanBrodetski pushed a commit that referenced this pull request Dec 25, 2023
🤖 I have created a release *beep* *boop*
---


##
[18.10.0](core-v18.9.0...core-v18.10.0)
(2023-12-25)


### Features

* **api:** Add metrics for `jsonrpsee` subscriptions
([#733](#733))
([39fd71c](39fd71c))
* **api:** remove jsonrpc backend
([#693](#693))
([b3f0417](b3f0417))
* applied status snapshots dal
([#679](#679))
([2e9f23b](2e9f23b))
* **en:** Make reorg detector work with pruned data
([#712](#712))
([c4185d5](c4185d5))
* Remove data fetchers
([#694](#694))
([f48d677](f48d677))
* Remove zks_getConfirmedTokens method
([#719](#719))
([9298b1b](9298b1b))


### Bug Fixes

* added waiting for prometheus to finish
([#745](#745))
([eed330d](eed330d))
* **EN:** temporary produce a warning on pubdata mismatch with L1
([#758](#758))
([0a7a4da](0a7a4da))
* **prover:** Add logging for prover + WVGs
([#723](#723))
([d7ce14c](d7ce14c))
* remove leftovers after
[#693](#693)
([#720](#720))
([e93aa35](e93aa35))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

None yet

4 participants