# README
Gas estimation procedure
After every upgrade of Cosmos SDK (or whenever we decide) we should verify that our deterministic gas estimations for messages are correct.
To do it:
- Modify crust to deploy
explorer
andmonitoring
profiles when integration tests are started - Run integration tests
- Go to our Grafana dashboard in
znet
- Take values for deterministic gas factors reported there
- Recalculate the deterministic gas by multiplying it by the minimum value taken from the metric.
If there is huge divergence between min and max values reported, reason should be identified.
For Bank Send message we have integration test TestBankSendEstimation
used to estimate the gas required by each additional coin present in the message.
# Functions
DefaultConfig returns default config for deterministic gas.
MsgToMsgURL returns TypeURL of a msg in cosmos SDK style.
# Constants
These constants define gas for messages which have custom calculation logic.
These constants define gas for messages which have custom calculation logic.
These constants define gas for messages which have custom calculation logic.
These constants define gas for messages which have custom calculation logic.
These constants define gas for messages which have custom calculation logic.
# Structs
Config specifies gas required by all transaction types Crisis module is intentionally skipped here because it is already deterministic by design and fee is specified using `consume_fee` param in genesis.
# Type aliases
No description provided by the author