I’m trying to track all the gas paid by Starknet on Ethereum.
This Dune board tracks gas spent by SHARP Operator in transactions to Merkle Verifier, FRI Verifier, GPS Verifier and Memory Page Fact Registry.
Where can I find more information about each category? What part of the gas costs are assignable to Starknet vs StarkEx.
Do the above transactions cover all L1 gas costs by Starknet or should I also look at gas spent by the StarkNet Operator (0x2c169dfe5fbba12957bdd0ba47d9cedbfe260ca7)? Anything else I’m missing.
My current understanding based on docs is the following:
- Transactions from the SHARP Operator to Memory Page Fact Registry cover the cost of storing transaction data on L1. All of these transactions are assignable to Starknet
- Transactions from the SHARP Operator to SHARP GPS Verifier are for ttransaction verification. They are also mostly Starknet, but it's hard to identify what %
- I don't have much context to the Merkle or FRI Verifier I assume these also have to do with tx verification.
- Starknet Operator calls different functions on the Starknet Core Contract (0xc662c410c0ecf747543f5ba90660f6abebd9c8c4) on L1. Are these just for passing information or for verification as well?
- It seems to have sent transactions before Starknet mainnet launch.
SHARP sends STARK proofs for a large number of Cairo statements. These statements can come from StarkNet, StarkEx and sometimes directly from clients using SHARP for other apps. The mix is not visible on L1, though most of the traffic in recent days came from StarkNet.
The STARK proof is submitted in a series of transactions that together form the proof. These are:
If you are interested in the details of the verifier logic, the source code is public at the StarkWare git repo