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_tezlinkunderlib_dev/tezlink. - Moved
tezos_types.mlandtezos_types.mlifromlib_dev/encodings/tolib_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_typesinL2_TypeswithTezos_block(now internal toTezos_blockmodule) 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