github.com/neatlab/neatio@v1.7.3-0.20220425043230-d903e92fcc75/params/protocol_params.go (about)

     1  package params
     2  
     3  import "math/big"
     4  
     5  const (
     6  	GasLimitBoundDivisor uint64 = 1024
     7  	MinGasLimit          uint64 = 5000
     8  	GenesisGasLimit      uint64 = 4712388
     9  
    10  	MaximumExtraDataSize  uint64 = 32
    11  	ExpByteGas            uint64 = 10
    12  	SloadGas              uint64 = 50
    13  	CallValueTransferGas  uint64 = 9000
    14  	CallNewAccountGas     uint64 = 25000
    15  	TxGas                 uint64 = 21000
    16  	TxGasContractCreation uint64 = 53000
    17  	TxDataZeroGas         uint64 = 4
    18  	QuadCoeffDiv          uint64 = 512
    19  	LogDataGas            uint64 = 8
    20  	CallStipend           uint64 = 2300
    21  
    22  	Sha3Gas     uint64 = 30
    23  	Sha3WordGas uint64 = 6
    24  
    25  	SstoreSetGas    uint64 = 20000
    26  	SstoreResetGas  uint64 = 5000
    27  	SstoreClearGas  uint64 = 5000
    28  	SstoreRefundGas uint64 = 15000
    29  
    30  	NetSstoreNoopGas  uint64 = 200
    31  	NetSstoreInitGas  uint64 = 20000
    32  	NetSstoreCleanGas uint64 = 5000
    33  	NetSstoreDirtyGas uint64 = 200
    34  
    35  	NetSstoreClearRefund      uint64 = 15000
    36  	NetSstoreResetRefund      uint64 = 4800
    37  	NetSstoreResetClearRefund uint64 = 19800
    38  
    39  	SstoreSentryGasEIP2200   uint64 = 2300
    40  	SstoreNoopGasEIP2200     uint64 = 800
    41  	SstoreDirtyGasEIP2200    uint64 = 800
    42  	SstoreInitGasEIP2200     uint64 = 20000
    43  	SstoreInitRefundEIP2200  uint64 = 19200
    44  	SstoreCleanGasEIP2200    uint64 = 5000
    45  	SstoreCleanRefundEIP2200 uint64 = 4200
    46  	SstoreClearRefundEIP2200 uint64 = 15000
    47  
    48  	JumpdestGas   uint64 = 1
    49  	EpochDuration uint64 = 30000
    50  
    51  	CreateDataGas            uint64 = 200
    52  	CallCreateDepth          uint64 = 1024
    53  	ExpGas                   uint64 = 10
    54  	LogGas                   uint64 = 375
    55  	CopyGas                  uint64 = 3
    56  	StackLimit               uint64 = 1024
    57  	TierStepGas              uint64 = 0
    58  	LogTopicGas              uint64 = 375
    59  	CreateGas                uint64 = 32000
    60  	Create2Gas               uint64 = 32000
    61  	SelfdestructRefundGas    uint64 = 24000
    62  	SuicideRefundGas         uint64 = 24000
    63  	MemoryGas                uint64 = 3
    64  	TxDataNonZeroGasFrontier uint64 = 68
    65  	TxDataNonZeroGasEIP2028  uint64 = 16
    66  
    67  	CallGasFrontier              uint64 = 40
    68  	CallGasEIP150                uint64 = 700
    69  	BalanceGasFrontier           uint64 = 20
    70  	BalanceGasEIP150             uint64 = 400
    71  	BalanceGasEIP1884            uint64 = 700
    72  	ExtcodeSizeGasFrontier       uint64 = 20
    73  	ExtcodeSizeGasEIP150         uint64 = 700
    74  	SloadGasFrontier             uint64 = 50
    75  	SloadGasEIP150               uint64 = 200
    76  	SloadGasEIP1884              uint64 = 800
    77  	ExtcodeHashGasConstantinople uint64 = 400
    78  	ExtcodeHashGasEIP1884        uint64 = 700
    79  	SelfdestructGasEIP150        uint64 = 5000
    80  
    81  	ExpByteFrontier uint64 = 10
    82  	ExpByteEIP158   uint64 = 50
    83  
    84  	ExtcodeCopyBaseFrontier uint64 = 20
    85  	ExtcodeCopyBaseEIP150   uint64 = 700
    86  
    87  	CreateBySelfdestructGas uint64 = 25000
    88  
    89  	MaxCodeSize = 24576
    90  
    91  	EcrecoverGas            uint64 = 3000
    92  	Sha256BaseGas           uint64 = 60
    93  	Sha256PerWordGas        uint64 = 12
    94  	Ripemd160BaseGas        uint64 = 600
    95  	Ripemd160PerWordGas     uint64 = 120
    96  	IdentityBaseGas         uint64 = 15
    97  	IdentityPerWordGas      uint64 = 3
    98  	ModExpQuadCoeffDiv      uint64 = 20
    99  	Bn256AddGas             uint64 = 500
   100  	Bn256ScalarMulGas       uint64 = 40000
   101  	Bn256PairingBaseGas     uint64 = 100000
   102  	Bn256PairingPerPointGas uint64 = 80000
   103  
   104  	Bn256AddGasByzantium             uint64 = 500
   105  	Bn256AddGasIstanbul              uint64 = 150
   106  	Bn256ScalarMulGasByzantium       uint64 = 40000
   107  	Bn256ScalarMulGasIstanbul        uint64 = 6000
   108  	Bn256PairingBaseGasByzantium     uint64 = 100000
   109  	Bn256PairingBaseGasIstanbul      uint64 = 45000
   110  	Bn256PairingPerPointGasByzantium uint64 = 80000
   111  	Bn256PairingPerPointGasIstanbul  uint64 = 34000
   112  )
   113  
   114  var (
   115  	DifficultyBoundDivisor = big.NewInt(2048)
   116  	GenesisDifficulty      = big.NewInt(131072)
   117  	MinimumDifficulty      = big.NewInt(131072)
   118  	DurationLimit          = big.NewInt(13)
   119  )