refactor(x/gov)!: migrate to use env var (#19481)

Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
samricotta
2024-03-05 06:01:37 +00:00
committed by GitHub
co-authored by Julien Robert
parent 3e63309220
commit afcb62bd9f
26 changed files with 347 additions and 291 deletions
+12
View File
@@ -39,6 +39,8 @@ type Service interface {
// WithBlockGasMeter returns a new context with the provided block-level gas meter.
WithBlockGasMeter(ctx context.Context, meter Meter) context.Context
GetGasConfig(ctx context.Context) GasConfig
}
// Meter represents a gas meter for modules consumption
@@ -48,3 +50,13 @@ type Meter interface {
Remaining() Gas
Limit() Gas
}
type GasConfig struct {
HasCost Gas
DeleteCost Gas
ReadCostFlat Gas
ReadCostPerByte Gas
WriteCostFlat Gas
WriteCostPerByte Gas
IterNextCostFlat Gas
}