hashgraph / hedera-sourcify

Tools for verifying Hedera smart contracts using standard open source libraries.
Apache License 2.0
6 stars 7 forks source link

Include support to enumerate verified contracts #138

Open acuarica opened 4 months ago

acuarica commented 4 months ago

It would be a good addition to add the possibility to enumerate verified contracts, both sorted and paginated. Currently the closest endpoint to do that is /files/contracts/{chain}. However this endpoint fetches all contracts, which is of no use without filtering, sorting and pagination.

After talking to @svienot, in order to support this feature we would need to add some sort of database that can be queried against.

Some verification specific information to include would be verification date/time and language. On-chain data would include TX creation.

As a reference, a couple of explorers support this feature, e.g.,