f-o-a-m / kepler

A Haskell framework that facilitates writing ABCI applications
https://kepler.dev
Apache License 2.0
34 stars 9 forks source link

added gas metering and tests #125

Closed martyall closed 4 years ago

martyall commented 4 years ago

fixes #121

I'm reluctant to actually add gas metering to anything at all right now, but this at least gives a sketch on how to do it for basically any action

Even if we were only going to meter database operations, probably the cost of these things is taken from some config that we don't know and don't want to deal with for a while.

Maybe we can just merge this and keep it around for future discussions.