Skip to content

Commit 74b165a

Browse files
authored
chore(configs): Update Prague1 chain config for Berachain mainnet (#61)
1 parent 06c32cc commit 74b165a

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

params/config.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -185,18 +185,18 @@ var (
185185
ShanghaiTime: newUint64(0),
186186
CancunTime: newUint64(0),
187187
PragueTime: newUint64(1749056400),
188-
DepositContractAddress: common.HexToAddress("0x4242424242424242424242424242424242424242"),
188+
DepositContractAddress: BerachainDepositContractAddress,
189189
Ethash: new(EthashConfig),
190190
BlobScheduleConfig: &BlobScheduleConfig{
191191
Cancun: DefaultCancunBlobConfig,
192192
Prague: DefaultBerachainPragueBlobConfig,
193193
},
194194
Berachain: BerachainConfig{
195195
Prague1: Prague1Config{
196-
Time: newUint64(17446744073709551614), // TODO: set mainnet timestamp.
197-
MinimumBaseFeeWei: 10000000000, // 10 gwei
198-
BaseFeeChangeDenominator: 48, // 6x increase from the default
199-
PoLDistributorAddress: common.HexToAddress("0xD2f19a79b026Fb636A7c300bF5947df113940761"),
196+
Time: newUint64(1756310400), // Aug 27th 2025 16:00:00 UTC
197+
MinimumBaseFeeWei: 1 * GWei,
198+
BaseFeeChangeDenominator: BerachainBaseFeeChangeDenominator,
199+
PoLDistributorAddress: PoLDistributorAddress,
200200
},
201201
},
202202
}
@@ -223,18 +223,18 @@ var (
223223
ShanghaiTime: newUint64(0),
224224
CancunTime: newUint64(0),
225225
PragueTime: newUint64(1746633600),
226-
DepositContractAddress: common.HexToAddress("0x4242424242424242424242424242424242424242"),
226+
DepositContractAddress: BerachainDepositContractAddress,
227227
Ethash: new(EthashConfig),
228228
BlobScheduleConfig: &BlobScheduleConfig{
229229
Cancun: DefaultCancunBlobConfig,
230230
Prague: DefaultBerachainPragueBlobConfig,
231231
},
232232
Berachain: BerachainConfig{
233233
Prague1: Prague1Config{
234-
Time: newUint64(1754496000),
235-
MinimumBaseFeeWei: 10000000000, // 10 gwei
236-
BaseFeeChangeDenominator: 48, // 6x increase from the default
237-
PoLDistributorAddress: common.HexToAddress("0xD2f19a79b026Fb636A7c300bF5947df113940761"),
234+
Time: newUint64(1754496000), // Aug 6th 2025 16:00:00 UTC
235+
MinimumBaseFeeWei: 10 * GWei,
236+
BaseFeeChangeDenominator: BerachainBaseFeeChangeDenominator,
237+
PoLDistributorAddress: PoLDistributorAddress,
238238
},
239239
},
240240
}

params/protocol_params.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ const (
134134
DefaultElasticityMultiplier = 2 // Bounds the maximum gas limit an EIP-1559 block may have.
135135
InitialBaseFee = 1000000000 // Initial base fee for EIP-1559 blocks.
136136

137+
// BRIP-0002 - Base Fee Change Denominator
138+
BerachainBaseFeeChangeDenominator = 48 // 6x increase from the default
139+
137140
MaxCodeSize = 24576 // Maximum bytecode to permit for a contract
138141
MaxInitCodeSize = 2 * MaxCodeSize // Maximum initcode to permit in a creation transaction and create instructions
139142

@@ -220,6 +223,10 @@ var (
220223
ConsolidationQueueAddress = common.HexToAddress("0x0000BBdDc7CE488642fb579F8B00f3a590007251")
221224
ConsolidationQueueCode = common.FromHex("3373fffffffffffffffffffffffffffffffffffffffe1460d35760115f54807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1461019a57600182026001905f5b5f82111560685781019083028483029004916001019190604d565b9093900492505050366060146088573661019a573461019a575f5260205ff35b341061019a57600154600101600155600354806004026004013381556001015f358155600101602035815560010160403590553360601b5f5260605f60143760745fa0600101600355005b6003546002548082038060021160e7575060025b5f5b8181146101295782810160040260040181607402815460601b815260140181600101548152602001816002015481526020019060030154905260010160e9565b910180921461013b5790600255610146565b90505f6002555f6003555b5f54807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff141561017357505f5b6001546001828201116101885750505f61018e565b01600190035b5f555f6001556074025ff35b5f5ffd")
222225

226+
// Berachain - Deposit Contract
227+
BerachainDepositContractAddress = common.HexToAddress("0x4242424242424242424242424242424242424242")
228+
223229
// BRIP-0004 - PoL Distributor
224-
PoLTxGasLimit uint64 = 30_000_000
230+
PoLTxGasLimit = uint64(30_000_000)
231+
PoLDistributorAddress = common.HexToAddress("0xD2f19a79b026Fb636A7c300bF5947df113940761")
225232
)

0 commit comments

Comments
 (0)