-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Currently, script details are recorded in multiple places, but each source has a different focus and structure. No single source contains complete and well-organized script data.
The blockchain explorer's database holds full data. We can filter the output_data table by looking for entries where the data field starts with 7F454C46 (the ELF file header). Then, we can retrieve related information such as datahash, typehash, and the block height at creation.
This method gives a full historical record of all scripts. By checking whether the output is still live, we can tell if a script is currently active or historical. For historical scripts, we can also find the block height at which it was destroyed.
Using this approach, we can gather complete script information except for manually added details like the script name.
We can regularly export this data to the repository, allowing contributors to claim scripts, submit PRs, and add extra information such as names, code repositories, and maintainers etc.
The finalized script list including these additional details can be released periodically for community applications like blockchain explorers.