basecoin-rs
basecoin-rs copied to clipboard
Implement basic gas metering
- [ ] Define a new wrapper store type
MeteredStore<S>
that intercepts store ops and calculates gas costs. - [ ] Copy Cosmos SDK's meter values -> https://github.com/cosmos/cosmos-sdk/blob/master/store/types/gas.go#L219
should be aware of this issue in the sdk if you haven't come across it yet https://github.com/cosmos/cosmos-sdk/issues/4938
Thanks for sharing the issue @hxrts! 🙏 I wasn't aware of it. Just started looking at it, will make sure to keep this in mind before I start implementing gas estimation in basecoin-rs.