Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add eigenda to arbitrum config #1

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions params/config_arbitrum.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type ArbitrumChainParams struct {
EnableArbOS bool
AllowDebugPrecompiles bool
DataAvailabilityCommittee bool
EigenDA bool
InitialArbOSVersion uint64
InitialChainOwner common.Address
GenesisBlockNum uint64
Expand Down Expand Up @@ -83,6 +84,7 @@ func ArbitrumOneParams() ArbitrumChainParams {
EnableArbOS: true,
AllowDebugPrecompiles: false,
DataAvailabilityCommittee: false,
EigenDA: false,
InitialArbOSVersion: 6,
InitialChainOwner: common.HexToAddress("0xd345e41ae2cb00311956aa7109fc801ae8c81a52"),
}
Expand All @@ -93,6 +95,7 @@ func ArbitrumNovaParams() ArbitrumChainParams {
EnableArbOS: true,
AllowDebugPrecompiles: false,
DataAvailabilityCommittee: true,
EigenDA: false,
InitialArbOSVersion: 1,
InitialChainOwner: common.HexToAddress("0x9C040726F2A657226Ed95712245DeE84b650A1b5"),
}
Expand All @@ -103,6 +106,7 @@ func ArbitrumRollupGoerliTestnetParams() ArbitrumChainParams {
EnableArbOS: true,
AllowDebugPrecompiles: false,
DataAvailabilityCommittee: false,
EigenDA: false,
InitialArbOSVersion: 2,
InitialChainOwner: common.HexToAddress("0x186B56023d42B2B4E7616589a5C62EEf5FCa21DD"),
}
Expand All @@ -114,6 +118,7 @@ func ArbitrumDevTestParams() ArbitrumChainParams {
AllowDebugPrecompiles: true,
DataAvailabilityCommittee: false,
InitialArbOSVersion: 30,
EigenDA: false,
InitialChainOwner: common.Address{},
}
}
Expand All @@ -123,16 +128,29 @@ func ArbitrumDevTestDASParams() ArbitrumChainParams {
EnableArbOS: true,
AllowDebugPrecompiles: true,
DataAvailabilityCommittee: true,
EigenDA: false,
InitialArbOSVersion: 30,
InitialChainOwner: common.Address{},
}
}

func ArbitrumDevTestEigenDAParams() ArbitrumChainParams {
return ArbitrumChainParams{
EnableArbOS: true,
AllowDebugPrecompiles: true,
DataAvailabilityCommittee: true,
EigenDA: true,
InitialArbOSVersion: 20,
InitialChainOwner: common.Address{},
}
}

func ArbitrumAnytrustGoerliTestnetParams() ArbitrumChainParams {
return ArbitrumChainParams{
EnableArbOS: true,
AllowDebugPrecompiles: false,
DataAvailabilityCommittee: true,
EigenDA: false,
InitialArbOSVersion: 2,
InitialChainOwner: common.HexToAddress("0x186B56023d42B2B4E7616589a5C62EEf5FCa21DD"),
}
Expand Down Expand Up @@ -268,6 +286,30 @@ func ArbitrumDevTestDASChainConfig() *ChainConfig {
}
}

func ArbitrumDevTestEigenDAConfig() *ChainConfig {
return &ChainConfig{
ChainID: big.NewInt(412347),
HomesteadBlock: big.NewInt(0),
DAOForkBlock: nil,
DAOForkSupport: true,
EIP150Block: big.NewInt(0),
EIP155Block: big.NewInt(0),
EIP158Block: big.NewInt(0),
ByzantiumBlock: big.NewInt(0),
ConstantinopleBlock: big.NewInt(0),
PetersburgBlock: big.NewInt(0),
IstanbulBlock: big.NewInt(0),
MuirGlacierBlock: big.NewInt(0),
BerlinBlock: big.NewInt(0),
LondonBlock: big.NewInt(0),
ArbitrumChainParams: ArbitrumDevTestEigenDAParams(),
Clique: &CliqueConfig{
Period: 0,
Epoch: 0,
},
}
}

func ArbitrumAnytrustGoerliTestnetChainConfig() *ChainConfig {
return &ChainConfig{
ChainID: big.NewInt(421703),
Expand Down Expand Up @@ -299,4 +341,5 @@ var ArbitrumSupportedChainConfigs = []*ChainConfig{
ArbitrumDevTestChainConfig(),
ArbitrumDevTestDASChainConfig(),
ArbitrumAnytrustGoerliTestnetChainConfig(),
ArbitrumDevTestEigenDAConfig(),
}
Loading