@@ -22,59 +22,13 @@ package spec
2222
2323import (
2424 "github.com/berachain/beacon-kit/chain"
25- "github.com/berachain/beacon-kit/primitives/common"
26- "github.com/ethereum/go-ethereum/params"
2725)
2826
29- const (
30- // devnetEVMInflationAddress is the address of the EVM inflation contract.
31- devnetEVMInflationAddress = "0x6942069420694206942069420694206942069420"
32-
33- // devnetEVMInflationPerBlock is the amount of native EVM balance (in units
34- // of Gwei) to be minted per EL block.
35- devnetEVMInflationPerBlock = 10 * params .GWei
36-
37- // devnetMaxStakeAmount is the maximum amount of native EVM balance (in units
38- // of Gwei) that can be staked.
39- devnetMaxStakeAmount = 4000 * params .GWei
40-
41- // devnetDeneb1ForkEpoch is the epoch at which the Deneb1 fork occurs.
42- devnetDeneb1ForkEpoch = 1
43-
44- // devnetEVMInflationAddressDeneb1 is the address of the EVM inflation contract
45- // after the Deneb1 fork.
46- devnetEVMInflationAddressDeneb1 = "0x4206942069420694206942069420694206942069"
47-
48- // devnetEVMInflationPerBlockDeneb1 is the amount of native EVM balance (in units
49- // of Gwei) to be minted per EL block after the Deneb1 fork.
50- devnetEVMInflationPerBlockDeneb1 = 11 * params .GWei
51- )
52-
53- // DevnetChainSpecData is the chain.SpecData for a devnet. It is similar to mainnet but
54- // has different values for testing EVM inflation and staking.
55- //
56- // TODO: remove modifications from mainnet spec to align with mainnet behavior.
27+ // DevnetChainSpecData is the chain.SpecData for a devnet.
5728func DevnetChainSpecData () * chain.SpecData {
5829 specData := MainnetChainSpecData ()
5930 specData .DepositEth1ChainID = DevnetEth1ChainID
60-
61- // Deneb1 fork takes place at epoch 1.
62- specData .Deneb1ForkEpoch = devnetDeneb1ForkEpoch
63-
64- // EVM inflation is different from mainnet to test.
65- specData .EVMInflationAddressGenesis = common .NewExecutionAddressFromHex (devnetEVMInflationAddress )
66- specData .EVMInflationPerBlockGenesis = devnetEVMInflationPerBlock
67-
68- // EVM inflation is different from mainnet for now, after the Deneb1 fork.
69- specData .EVMInflationAddressDeneb1 = common .NewExecutionAddressFromHex (devnetEVMInflationAddressDeneb1 )
70- specData .EVMInflationPerBlockDeneb1 = devnetEVMInflationPerBlockDeneb1
71-
72- // Staking is different from mainnet for now.
73- specData .MaxEffectiveBalance = devnetMaxStakeAmount
74- specData .EjectionBalance = defaultEjectionBalance
75- specData .EffectiveBalanceIncrement = defaultEffectiveBalanceIncrement
76- specData .SlotsPerEpoch = defaultSlotsPerEpoch
77-
31+ specData .Deneb1ForkEpoch = 1
7832 return specData
7933}
8034
0 commit comments