Consensys / linea-attestation-registry

Verax is a shared registry for storing attestations of public interest on EVM chains, designed to enhance data discoverability and consumption for dApps across the network.
https://ver.ax
MIT License
132 stars 69 forks source link

[TASK] Stop supporting deprecated Portal functions #789

Open alainncls opened 2 days ago

alainncls commented 2 days ago

When we introduced the "Modules V2" feature, some new functions were added to the Portal contract, to make sure we didn't break previous behaviours of already deployed Portals.

One way to ensure that newly deployed Portal contracts don’t support the deprecated functions anymore is the introduction of a new contract, AbstractPortalV2, that only supports the new set of functions; that approach would be similar to the introduction of AbstractModuleV2.

The original AbstractPortal contract should then be kept unaltered. Similar steps should be taken for concrete portals such as DefaultPortal, i.e., a new DefaultPortalV2 should inherit from AbstractPortalV2 and so on.