Skip to content

Commit

Permalink
refactor(config): refactor some chainConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
HAOYUatHZ committed May 15, 2024
1 parent 6038ac8 commit 6dee42f
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,12 @@ var (
FeeVaultAddress: nil,
MaxTxPerBlock: nil,
MaxTxPayloadBytesPerBlock: nil,
L1Config: &L1Config{5, common.HexToAddress("0x0000000000000000000000000000000000000000"), 0, common.HexToAddress("0x0000000000000000000000000000000000000000")},
L1Config: &L1Config{
L1ChainId: 5,
L1MessageQueueAddress: common.HexToAddress("0x0000000000000000000000000000000000000000"),
NumL1MessagesPerBlock: 0,
ScrollChainAddress: common.HexToAddress("0x0000000000000000000000000000000000000000"),
},
}}

// AllCliqueProtocolChanges contains every protocol change (EIPs) introduced
Expand All @@ -403,7 +408,12 @@ var (
FeeVaultAddress: nil,
MaxTxPerBlock: nil,
MaxTxPayloadBytesPerBlock: nil,
L1Config: &L1Config{5, common.HexToAddress("0x0000000000000000000000000000000000000000"), 0, common.HexToAddress("0x0000000000000000000000000000000000000000")},
L1Config: &L1Config{
L1ChainId: 5,
L1MessageQueueAddress: common.HexToAddress("0x0000000000000000000000000000000000000000"),
NumL1MessagesPerBlock: 0,
ScrollChainAddress: common.HexToAddress("0x0000000000000000000000000000000000000000"),
},
}}

TestChainConfig = &ChainConfig{big.NewInt(1), big.NewInt(0), nil, false, big.NewInt(0), common.Hash{}, big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), nil, new(EthashConfig), nil,
Expand All @@ -412,7 +422,12 @@ var (
FeeVaultAddress: &common.Address{123},
MaxTxPerBlock: nil,
MaxTxPayloadBytesPerBlock: nil,
L1Config: &L1Config{5, common.HexToAddress("0x0000000000000000000000000000000000000000"), 0, common.HexToAddress("0x0000000000000000000000000000000000000000")},
L1Config: &L1Config{
L1ChainId: 5,
L1MessageQueueAddress: common.HexToAddress("0x0000000000000000000000000000000000000000"),
NumL1MessagesPerBlock: 0,
ScrollChainAddress: common.HexToAddress("0x0000000000000000000000000000000000000000"),
},
}}
TestRules = TestChainConfig.Rules(new(big.Int))

Expand All @@ -422,7 +437,12 @@ var (
FeeVaultAddress: nil,
MaxTxPerBlock: nil,
MaxTxPayloadBytesPerBlock: nil,
L1Config: &L1Config{5, common.HexToAddress("0x0000000000000000000000000000000000000000"), 0, common.HexToAddress("0x0000000000000000000000000000000000000000")},
L1Config: &L1Config{
L1ChainId: 5,
L1MessageQueueAddress: common.HexToAddress("0x0000000000000000000000000000000000000000"),
NumL1MessagesPerBlock: 0,
ScrollChainAddress: common.HexToAddress("0x0000000000000000000000000000000000000000"),
},
}}
)

Expand Down

0 comments on commit 6dee42f

Please sign in to comment.