github.com/ava-labs/avalanchego@v1.11.11/vms/components/gas/config.go (about)

     1  // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved.
     2  // See the file LICENSE for licensing terms.
     3  
     4  // The gas package implements dynamic gas pricing specified in ACP-103:
     5  // https://github.com/avalanche-foundation/ACPs/tree/main/ACPs/103-dynamic-fees
     6  package gas
     7  
     8  type Config struct {
     9  	// Weights to merge fee dimensions into a single gas value.
    10  	Weights Dimensions `json:"weights"`
    11  	// Maximum amount of gas the chain is allowed to store for future use.
    12  	MaxCapacity Gas `json:"maxCapacity"`
    13  	// Maximum amount of gas the chain is allowed to consume per second.
    14  	MaxPerSecond Gas `json:"maxPerSecond"`
    15  	// Target amount of gas the chain should consume per second to keep the fees
    16  	// stable.
    17  	TargetPerSecond Gas `json:"targetPerSecond"`
    18  	// Minimum price per unit of gas.
    19  	MinPrice Price `json:"minPrice"`
    20  	// Constant used to convert excess gas to a gas price.
    21  	ExcessConversionConstant Gas `json:"excessConversionConstant"`
    22  }