refactor(x/gov)!: migrate to use env var (#19481)
Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
co-authored by
Julien Robert
parent
3e63309220
commit
afcb62bd9f
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user