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: Remove generic bounds on L1GasPriceProvider #792

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

popzxc
Copy link
Member

@popzxc popzxc commented Jan 2, 2024

What ❔

  • Replaces uses of G: L1GasPriceProvider with dyn L1GasPriceProvider.
  • ...as a result, StateKeeper and TxSender (and thus all the API structures) are now generic-free.

Why ❔

  • Prerequisite for modular system (generic types are hard for dynamically-configured setup).
  • Invoking L1GasPriceProvider is not related to any hot loops where dynamic dispatch would be noticeable, so having it as a generic is kinda meaningless anyways.

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.

@popzxc popzxc added this pull request to the merge queue Jan 2, 2024
Merged via the queue into main with commit edf071d Jan 2, 2024
25 checks passed
@popzxc popzxc deleted the popzxc-reduce-generics-usage branch January 2, 2024 09:33
github-merge-queue bot pushed a commit that referenced this pull request Jan 2, 2024
🤖 I have created a release *beep* *boop*
---


##
[18.13.0](core-v18.12.0...core-v18.13.0)
(2024-01-02)


### Features

* **contract-verifier:** add zksolc v1.3.19
([#797](#797))
([2635570](2635570))
* Remove generic bounds on L1GasPriceProvider
([#792](#792))
([edf071d](edf071d))
* Remove TPS limiter from TX Sender
([#793](#793))
([d0e9296](d0e9296))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
github-merge-queue bot pushed a commit that referenced this pull request Jan 3, 2024
…ender (#799)

## What ❔

Follow-up to #792 

## Why ❔

Same reasons

## 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`.
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

3 participants