@@ -12,7 +12,7 @@ import (
1212 "github.com/ethereum-optimism/optimism/op-service/eth"
1313)
1414
15- var Mainnet , Sepolia * rollup.Config
15+ var Mainnet , Goerli , Sepolia * rollup.Config
1616
1717func init () {
1818 mustCfg := func (name string ) * rollup.Config {
@@ -23,6 +23,7 @@ func init() {
2323 return cfg
2424 }
2525 Mainnet = mustCfg ("op-mainnet" )
26+ Goerli = mustCfg ("op-goerli" )
2627 Sepolia = mustCfg ("op-sepolia" )
2728}
2829
@@ -45,6 +46,8 @@ func AvailableNetworks() []string {
4546
4647func handleLegacyName (name string ) string {
4748 switch name {
49+ case "goerli" :
50+ return "op-goerli"
4851 case "mainnet" :
4952 return "op-mainnet"
5053 case "sepolia" :
@@ -83,12 +86,16 @@ var NetworksByName = map[string]rollup.Config{
8386 "opBNBMainnet" : OPBNBMainnet ,
8487 "opBNBTestnet" : OPBNBTestnet ,
8588 "opBNBQANet" : OPBNBQANet ,
89+ "comboMainnet" : ComboMainnet ,
90+ "comboTestnet" : ComboTestnet ,
8691}
8792
8893var NetworksByChainId = map [string ]rollup.Config {
8994 "204" : OPBNBMainnet ,
9095 "5611" : OPBNBTestnet ,
91- "1081" : OPBNBQANet ,
96+ "2484" : OPBNBQANet ,
97+ "9980" : ComboMainnet ,
98+ "1715" : ComboTestnet ,
9299}
93100
94101func GetRollupConfigByNetwork (name string ) (rollup.Config , error ) {
@@ -217,6 +224,76 @@ var OPBNBQANet = rollup.Config{
217224 FjordTime : u64Ptr (1724392800 ), // AUG-23-2024 06:00 AM +UTC
218225}
219226
227+ var ComboMainnet = rollup.Config {
228+ Genesis : rollup.Genesis {
229+ L1 : eth.BlockID {
230+ Hash : common .HexToHash ("0x7743484e78e047654f5a92c5d66a25828f1c259b2c9a780a39936c001fdcbcf7" ),
231+ Number : 33768568 ,
232+ },
233+ L2 : eth.BlockID {
234+ Hash : common .HexToHash ("0x92fcf9e91a4cdd7ffc7e67207e77dfba049bacf1ede5c5917a40f9537e05f4bc" ),
235+ Number : 0 ,
236+ },
237+ L2Time : 1700817067 ,
238+ SystemConfig : eth.SystemConfig {
239+ BatcherAddr : common .HexToAddress ("0x6df30535bbe94a533d9f1600e69a642abb3e063f" ),
240+ Overhead : eth .Bytes32 (common .HexToHash ("0x0000000000000000000000000000000000000000000000000000000000000834" )),
241+ Scalar : eth .Bytes32 (common .HexToHash ("0x00000000000000000000000000000000000000000000000000000000000f4240" )),
242+ GasLimit : 100000000 ,
243+ },
244+ },
245+ BlockTime : 1 ,
246+ MaxSequencerDrift : 600 ,
247+ SeqWindowSize : 14400 ,
248+ ChannelTimeout : 1200 ,
249+ L1ChainID : big .NewInt (56 ),
250+ L2ChainID : big .NewInt (9980 ),
251+ BatchInboxAddress : common .HexToAddress ("0xff00000000000000000000000000000000009980" ),
252+ DepositContractAddress : common .HexToAddress ("0x419df125e0a712db4b10209ac3055b58b840f1f4" ),
253+ L1SystemConfigAddress : common .HexToAddress ("0x19d9791f6f5df45fb4ced2ea0904e48a6f9e545c" ),
254+ RegolithTime : u64Ptr (0 ),
255+ Fermat : big .NewInt (0 ),
256+ SnowTime : u64Ptr (1719813600 ), // July-01-2024 06:00 AM +UTC
257+ CanyonTime : u64Ptr (1719814200 ), // July-01-2024 06:10 AM +UTC
258+ DeltaTime : u64Ptr (1719814800 ), // July-01-2024 06:20 AM +UTC
259+ EcotoneTime : u64Ptr (1719815400 ), // July-01-2024 06:30 AM +UTC
260+ }
261+
262+ var ComboTestnet = rollup.Config {
263+ Genesis : rollup.Genesis {
264+ L1 : eth.BlockID {
265+ Hash : common .HexToHash ("0x5c42e35d2cf086cdbf6ad194701a48688f3c1e8d2eecf57168a248e63a33be86" ),
266+ Number : 39570635 ,
267+ },
268+ L2 : eth.BlockID {
269+ Hash : common .HexToHash ("0x51d565869cb1c6d7e577848ccd1f93918b99427c1cc3fed9dca628d0cffcefbb" ),
270+ Number : 0 ,
271+ },
272+ L2Time : 1713424951 ,
273+ SystemConfig : eth.SystemConfig {
274+ BatcherAddr : common .HexToAddress ("0x013fce36695321d32251e58bff33292c685da696" ),
275+ Overhead : eth .Bytes32 (common .HexToHash ("0x0000000000000000000000000000000000000000000000000000000000000834" )),
276+ Scalar : eth .Bytes32 (common .HexToHash ("0x00000000000000000000000000000000000000000000000000000000000f4240" )),
277+ GasLimit : 100000000 ,
278+ },
279+ },
280+ BlockTime : 1 ,
281+ MaxSequencerDrift : 600 ,
282+ SeqWindowSize : 14400 ,
283+ ChannelTimeout : 1200 ,
284+ L1ChainID : big .NewInt (97 ),
285+ L2ChainID : big .NewInt (1715 ),
286+ BatchInboxAddress : common .HexToAddress ("0xff00000000000000000000000000000000001715" ),
287+ DepositContractAddress : common .HexToAddress ("0x6357aeea63f9bea16a9264fad26fdfddbec559e6" ),
288+ L1SystemConfigAddress : common .HexToAddress ("0x3a472819b60885f1f11ee173f56e43961460c391" ),
289+ RegolithTime : u64Ptr (0 ),
290+ Fermat : big .NewInt (0 ),
291+ SnowTime : u64Ptr (1719208800 ), // June-24-2024 06:00 AM +UTC
292+ CanyonTime : u64Ptr (1719209400 ), // June-24-2024 06:10 AM +UTC
293+ DeltaTime : u64Ptr (1719210000 ), // June-24-2024 06:20 AM +UTC
294+ EcotoneTime : u64Ptr (1719210600 ), // June-24-2024 06:30 AM +UTC
295+ }
296+
220297func u64Ptr (v uint64 ) * uint64 {
221298 return & v
222299}
0 commit comments