protostar
protostar copied to clipboard
Cairo1 gas estimations
As right now default test runtime won't be on-chain we may reconsider how do we want to report gas used by tests. Maybe we want to collect and sum up cost of all of the on-chain operations executed? Or we want to keep reporting explicit and add estimate
cheatcode?
@MaksymilianDemitraszek actually i think we should reconsider since all functions will be consuming a set amount of gas in cairo 1.0, so i don't know if reporting this would be either much easier or just unnecessary.
I think we still need it, but I would keep it out of MVP
I'd say it's blocked by cairo 1.0 integration, since we'll need execution resources (gas) returned by the VM
cc @MaksymilianDemitraszek
Yup, I would keep it out of protostar 1.0 release
Though i don't think it is blocked by cairo 1 integration, resources estimation is a pure-starknet thing. We may restrain until starknet 0.11 and initial protostar 1 release
So still - it's blocked. If starknet 0.11 exposes this functionality, we might consider including it, if we have spare time.
So still - it's blocked.
You can say that, blocked means we cannot work on that because of technical coinstraints, not that we decided to make it lower priority. better to be precise, it may mislead somebody
@MaksymilianDemitraszek isn't gas consumption something that's supposed to be on the cairo-vm side (from what we've heard at the conf?)
Yes it does, calculating the total gas consumption is roughly equivaltent to executing