github.com/dim4egster/coreth@v0.10.2/params/avalanche_params.go (about)

     1  // (c) 2019-2020, Ava Labs, Inc. All rights reserved.
     2  // See the file LICENSE for licensing terms.
     3  
     4  package params
     5  
     6  import (
     7  	"math/big"
     8  
     9  	"github.com/dim4egster/qmallgo/utils/units"
    10  )
    11  
    12  // Minimum Gas Price
    13  const (
    14  	// MinGasPrice is the number of nAVAX required per gas unit for a
    15  	// transaction to be valid, measured in wei
    16  	LaunchMinGasPrice        int64 = 470_000_000_000
    17  	ApricotPhase1MinGasPrice int64 = 225_000_000_000
    18  
    19  	AvalancheAtomicTxFee = units.MilliAvax
    20  
    21  	ApricotPhase1GasLimit uint64 = 8_000_000
    22  
    23  	ApricotPhase3ExtraDataSize            uint64 = 80
    24  	ApricotPhase3MinBaseFee               int64  = 75_000_000_000
    25  	ApricotPhase3MaxBaseFee               int64  = 225_000_000_000
    26  	ApricotPhase3InitialBaseFee           int64  = 225_000_000_000
    27  	ApricotPhase3TargetGas                uint64 = 10_000_000
    28  	ApricotPhase4MinBaseFee               int64  = 25_000_000_000
    29  	ApricotPhase4MaxBaseFee               int64  = 1_000_000_000_000
    30  	ApricotPhase4BaseFeeChangeDenominator uint64 = 12
    31  	ApricotPhase5TargetGas                uint64 = 15_000_000
    32  	ApricotPhase5BaseFeeChangeDenominator uint64 = 36
    33  
    34  	// The base cost to charge per atomic transaction. Added in Apricot Phase 5.
    35  	AtomicTxBaseCost uint64 = 10_000
    36  )
    37  
    38  // Constants for message sizes
    39  const (
    40  	MaxCodeHashesPerRequest = 5
    41  )
    42  
    43  var (
    44  	// The atomic gas limit specifies the maximum amount of gas that can be consumed by the atomic
    45  	// transactions included in a block and is enforced as of ApricotPhase5. Prior to ApricotPhase5,
    46  	// a block included a single atomic transaction. As of ApricotPhase5, each block can include a set
    47  	// of atomic transactions where the cumulative atomic gas consumed is capped by the atomic gas limit,
    48  	// similar to the block gas limit.
    49  	//
    50  	// This value must always remain <= MaxUint64.
    51  	AtomicGasLimit *big.Int = big.NewInt(100_000)
    52  )