provenance-io / explorer-service

The server side of the blockchain Explorer app. Allows for UI browsing of the blockchain.
Apache License 2.0
6 stars 3 forks source link

Automate the registration of Provenance protobuf module descriptors #514

Closed nullpointer0x00 closed 7 months ago

nullpointer0x00 commented 7 months ago

Summary

Automate the registration of Provenance protobuf module descriptors in RestConfig.kt by dynamically loading them, focusing on io.provenance.* packages.

Problem Definition

Currently, Provenance protobuf module descriptors are manually listed in RestConfig.kt, which is not scalable or maintainable with the frequent addition and updating of Protobuf definitions. This manual process is prone to errors and omissions, requiring constant updates.

Benefits of including this feature:

Proposal

Implement dynamic loading of Protobuf descriptors using the Reflections library, specifically targeting io.provenance.* packages within RestConfig.kt. This approach will eliminate the need for manually listing Protobuf descriptors, thus simplifying the configuration process. The implementation will involve:



For Admin Use