Skip to content

Commit 6a27883

Browse files
Merge branch 'master' into cache-poster-info
2 parents 3ff79a7 + 9f2a49b commit 6a27883

File tree

1 file changed

+48
-3
lines changed

1 file changed

+48
-3
lines changed

params/config_arbitrum.go

+48-3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ type ArbitrumChainParams struct {
2626
EnableArbOS bool
2727
AllowDebugPrecompiles bool
2828
DataAvailabilityCommittee bool
29+
InitialChainOwner common.Address
2930
}
3031

3132
func (c *ChainConfig) IsArbitrum() bool {
@@ -41,14 +42,26 @@ func ArbitrumOneParams() ArbitrumChainParams {
4142
EnableArbOS: true,
4243
AllowDebugPrecompiles: false,
4344
DataAvailabilityCommittee: false,
45+
// Not used as arbitrum one has init data
46+
InitialChainOwner: common.Address{},
4447
}
4548
}
4649

47-
func ArbitrumTestParams() ArbitrumChainParams {
50+
func ArbitrumTestnetParams() ArbitrumChainParams {
51+
return ArbitrumChainParams{
52+
EnableArbOS: true,
53+
AllowDebugPrecompiles: false,
54+
DataAvailabilityCommittee: false,
55+
InitialChainOwner: common.Address{}, // TODO
56+
}
57+
}
58+
59+
func ArbitrumDevTestParams() ArbitrumChainParams {
4860
return ArbitrumChainParams{
4961
EnableArbOS: true,
5062
AllowDebugPrecompiles: true,
5163
DataAvailabilityCommittee: false,
64+
InitialChainOwner: common.Address{},
5265
}
5366
}
5467

@@ -57,6 +70,7 @@ func DisableArbitrumParams() ArbitrumChainParams {
5770
EnableArbOS: false,
5871
AllowDebugPrecompiles: false,
5972
DataAvailabilityCommittee: false,
73+
InitialChainOwner: common.Address{},
6074
}
6175
}
6276

@@ -85,7 +99,32 @@ func ArbitrumOneChainConfig() *ChainConfig {
8599
}
86100
}
87101

88-
func ArbitrumTestChainConfig() *ChainConfig {
102+
func ArbitrumTestnetChainConfig() *ChainConfig {
103+
return &ChainConfig{
104+
ChainID: big.NewInt(421612),
105+
HomesteadBlock: big.NewInt(0),
106+
DAOForkBlock: nil,
107+
DAOForkSupport: true,
108+
EIP150Block: big.NewInt(0),
109+
EIP150Hash: common.Hash{},
110+
EIP155Block: big.NewInt(0),
111+
EIP158Block: big.NewInt(0),
112+
ByzantiumBlock: big.NewInt(0),
113+
ConstantinopleBlock: big.NewInt(0),
114+
PetersburgBlock: big.NewInt(0),
115+
IstanbulBlock: big.NewInt(0),
116+
MuirGlacierBlock: big.NewInt(0),
117+
BerlinBlock: big.NewInt(0),
118+
LondonBlock: big.NewInt(0),
119+
ArbitrumChainParams: ArbitrumTestnetParams(),
120+
Clique: &CliqueConfig{
121+
Period: 0,
122+
Epoch: 0,
123+
},
124+
}
125+
}
126+
127+
func ArbitrumDevTestChainConfig() *ChainConfig {
89128
return &ChainConfig{
90129
ChainID: big.NewInt(412345),
91130
HomesteadBlock: big.NewInt(0),
@@ -102,10 +141,16 @@ func ArbitrumTestChainConfig() *ChainConfig {
102141
MuirGlacierBlock: big.NewInt(0),
103142
BerlinBlock: big.NewInt(0),
104143
LondonBlock: big.NewInt(0),
105-
ArbitrumChainParams: ArbitrumTestParams(),
144+
ArbitrumChainParams: ArbitrumDevTestParams(),
106145
Clique: &CliqueConfig{
107146
Period: 0,
108147
Epoch: 0,
109148
},
110149
}
111150
}
151+
152+
var ArbitrumSupportedChainConfigs = []*ChainConfig{
153+
ArbitrumOneChainConfig(),
154+
ArbitrumTestnetChainConfig(),
155+
ArbitrumDevTestChainConfig(),
156+
}

0 commit comments

Comments
 (0)