walnuthq / starkflare

This tool monitors the resource usage of the StarkNet Mainnet rollup in real time, such as calldata, storage, and gas consumption. Its aim is to help take steps to further optimize the rollup.
https://starkflare.pages.dev
Apache License 2.0
5 stars 11 forks source link

add entrypoints burning most steps #28

Closed saimeunt closed 4 months ago

saimeunt commented 4 months ago

This PR introduces a new API endpoint at /api/entrypoints?contract_address=0x0000...0000 which leverages the get_entrypoints endpoint from starkflare-indexer and adds the correct entrypoint human-readable name by fetching the Starknet contract ABI and performing the appropriate lookup.

Caching logic has been replicated from get_common_data but has not been tested.