-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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: Allow tracking l2 fees for L2-based chains #2563
Conversation
…ename-sl-chain-id
core/node/node_framework/src/implementations/layers/query_eth_client.rs
Outdated
Show resolved
Hide resolved
core/node/node_framework/src/implementations/resources/eth_interface.rs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left a few small comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks pretty decent, although I'd still prefer refactoring GasAdjusterClient
to use Box<dyn EthFeeInterface>
for more high-level / consistent DI (can be done separately). Please remove unused EthInterface
imports as pointed by clippy.
🤖 I have created a release *beep* *boop* --- ## [24.17.0](core-v24.16.0...core-v24.17.0) (2024-08-13) ### Features * Allow tracking l2 fees for L2-based chains ([#2563](#2563)) ([e3f7804](e3f7804)) * Remove old EN code ([#2595](#2595)) ([8d31ebc](8d31ebc)) * **tee:** introduce get_tee_proofs RPC method for TEE proofs ([#2474](#2474)) ([d40ff5f](d40ff5f)) * **vm:** Fast VM integration ([#1949](#1949)) ([b752a54](b752a54)) ### Bug Fixes * query for prover API ([#2628](#2628)) ([b8609eb](b8609eb)) * **vm:** Fix missing experimental VM config ([#2629](#2629)) ([e07a39d](e07a39d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: zksync-era-bot <[email protected]>
What ❔
In this PR we add changes to the GasAdjuster needed to track the fees on L2-based chains. The PR aims to preserve type-safety for places that should work when L1 interface is available only, so
DynClient<L1>
is left in a lot of places and generallyL1
is the default network to be used. However, some methods were extended to work with any network.Overall what was added:
fee_history
. Clients should not rely on this field. However, we added it so we could test things.RelayedL2Calldata
pubdata type, which would symbolize that the calldata is being relayed to L1 through another L2. I am pretty confident that this type will be needed anyway.Why ❔
Checklist
zk fmt
andzk lint
.