[go: up one dir, main page]

EVM/Node/Lib_dev : Centralize Tezlink dependencies

What

This MR introduces a new library evm_node_lib_dev_tezlink that encapsulates Tezos protocol dependencies required by the EVM node. It also moves the existing Tezos_types module into this new library.

Why

Previously, Tezos protocol-related definitions were part of the encodings module, making it tightly coupled with encoding logic. This made dependencies harder to manage. Extracting the Tezos-specific logic into its own library improves separation of concerns and prepares for future usages.

How

  • Created a new library evm_node_lib_dev_tezlink under lib_dev/tezlink.
  • Moved tezos_types.ml and tezos_types.mli from lib_dev/encodings/ to lib_dev/tezlink/.
  • Updated the product_etherlink.ml,to register the new library and declare its dependencies (Tezos protocol plugin and parameters).
  • Replaced previous uses of Tezos_types in L2_Types with Tezos_block (now internal to Tezos_block module) as a temporary mesure.
  • Removed direct dependencies on the Tezos protocol plugin and parameters from evm_node_lib_dev, as they are now encapsulated in the new library.

Manually testing the MR

  • Build the project and ensure the new library compiles successfully.
Edited by Brahima Dibassi

Merge request reports

Loading