chore(configs): Update Prague1 chain config for Berachain mainnet (#61)

This commit is contained in:
Cal Bera 2025-08-12 14:46:18 -07:00 committed by GitHub
parent 06c32cc89b
commit 74b165a362
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 11 deletions

View file

@ -185,7 +185,7 @@ var (
ShanghaiTime: newUint64(0), ShanghaiTime: newUint64(0),
CancunTime: newUint64(0), CancunTime: newUint64(0),
PragueTime: newUint64(1749056400), PragueTime: newUint64(1749056400),
DepositContractAddress: common.HexToAddress("0x4242424242424242424242424242424242424242"), DepositContractAddress: BerachainDepositContractAddress,
Ethash: new(EthashConfig), Ethash: new(EthashConfig),
BlobScheduleConfig: &BlobScheduleConfig{ BlobScheduleConfig: &BlobScheduleConfig{
Cancun: DefaultCancunBlobConfig, Cancun: DefaultCancunBlobConfig,
@ -193,10 +193,10 @@ var (
}, },
Berachain: BerachainConfig{ Berachain: BerachainConfig{
Prague1: Prague1Config{ Prague1: Prague1Config{
Time: newUint64(17446744073709551614), // TODO: set mainnet timestamp. Time: newUint64(1756310400), // Aug 27th 2025 16:00:00 UTC
MinimumBaseFeeWei: 10000000000, // 10 gwei MinimumBaseFeeWei: 1 * GWei,
BaseFeeChangeDenominator: 48, // 6x increase from the default BaseFeeChangeDenominator: BerachainBaseFeeChangeDenominator,
PoLDistributorAddress: common.HexToAddress("0xD2f19a79b026Fb636A7c300bF5947df113940761"), PoLDistributorAddress: PoLDistributorAddress,
}, },
}, },
} }
@ -223,7 +223,7 @@ var (
ShanghaiTime: newUint64(0), ShanghaiTime: newUint64(0),
CancunTime: newUint64(0), CancunTime: newUint64(0),
PragueTime: newUint64(1746633600), PragueTime: newUint64(1746633600),
DepositContractAddress: common.HexToAddress("0x4242424242424242424242424242424242424242"), DepositContractAddress: BerachainDepositContractAddress,
Ethash: new(EthashConfig), Ethash: new(EthashConfig),
BlobScheduleConfig: &BlobScheduleConfig{ BlobScheduleConfig: &BlobScheduleConfig{
Cancun: DefaultCancunBlobConfig, Cancun: DefaultCancunBlobConfig,
@ -231,10 +231,10 @@ var (
}, },
Berachain: BerachainConfig{ Berachain: BerachainConfig{
Prague1: Prague1Config{ Prague1: Prague1Config{
Time: newUint64(1754496000), Time: newUint64(1754496000), // Aug 6th 2025 16:00:00 UTC
MinimumBaseFeeWei: 10000000000, // 10 gwei MinimumBaseFeeWei: 10 * GWei,
BaseFeeChangeDenominator: 48, // 6x increase from the default BaseFeeChangeDenominator: BerachainBaseFeeChangeDenominator,
PoLDistributorAddress: common.HexToAddress("0xD2f19a79b026Fb636A7c300bF5947df113940761"), PoLDistributorAddress: PoLDistributorAddress,
}, },
}, },
} }

View file

@ -134,6 +134,9 @@ const (
DefaultElasticityMultiplier = 2 // Bounds the maximum gas limit an EIP-1559 block may have. DefaultElasticityMultiplier = 2 // Bounds the maximum gas limit an EIP-1559 block may have.
InitialBaseFee = 1000000000 // Initial base fee for EIP-1559 blocks. InitialBaseFee = 1000000000 // Initial base fee for EIP-1559 blocks.
// BRIP-0002 - Base Fee Change Denominator
BerachainBaseFeeChangeDenominator = 48 // 6x increase from the default
MaxCodeSize = 24576 // Maximum bytecode to permit for a contract MaxCodeSize = 24576 // Maximum bytecode to permit for a contract
MaxInitCodeSize = 2 * MaxCodeSize // Maximum initcode to permit in a creation transaction and create instructions MaxInitCodeSize = 2 * MaxCodeSize // Maximum initcode to permit in a creation transaction and create instructions
@ -220,6 +223,10 @@ var (
ConsolidationQueueAddress = common.HexToAddress("0x0000BBdDc7CE488642fb579F8B00f3a590007251") ConsolidationQueueAddress = common.HexToAddress("0x0000BBdDc7CE488642fb579F8B00f3a590007251")
ConsolidationQueueCode = common.FromHex("3373fffffffffffffffffffffffffffffffffffffffe1460d35760115f54807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1461019a57600182026001905f5b5f82111560685781019083028483029004916001019190604d565b9093900492505050366060146088573661019a573461019a575f5260205ff35b341061019a57600154600101600155600354806004026004013381556001015f358155600101602035815560010160403590553360601b5f5260605f60143760745fa0600101600355005b6003546002548082038060021160e7575060025b5f5b8181146101295782810160040260040181607402815460601b815260140181600101548152602001816002015481526020019060030154905260010160e9565b910180921461013b5790600255610146565b90505f6002555f6003555b5f54807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff141561017357505f5b6001546001828201116101885750505f61018e565b01600190035b5f555f6001556074025ff35b5f5ffd") ConsolidationQueueCode = common.FromHex("3373fffffffffffffffffffffffffffffffffffffffe1460d35760115f54807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1461019a57600182026001905f5b5f82111560685781019083028483029004916001019190604d565b9093900492505050366060146088573661019a573461019a575f5260205ff35b341061019a57600154600101600155600354806004026004013381556001015f358155600101602035815560010160403590553360601b5f5260605f60143760745fa0600101600355005b6003546002548082038060021160e7575060025b5f5b8181146101295782810160040260040181607402815460601b815260140181600101548152602001816002015481526020019060030154905260010160e9565b910180921461013b5790600255610146565b90505f6002555f6003555b5f54807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff141561017357505f5b6001546001828201116101885750505f61018e565b01600190035b5f555f6001556074025ff35b5f5ffd")
// Berachain - Deposit Contract
BerachainDepositContractAddress = common.HexToAddress("0x4242424242424242424242424242424242424242")
// BRIP-0004 - PoL Distributor // BRIP-0004 - PoL Distributor
PoLTxGasLimit uint64 = 30_000_000 PoLTxGasLimit = uint64(30_000_000)
PoLDistributorAddress = common.HexToAddress("0xD2f19a79b026Fb636A7c300bF5947df113940761")
) )