-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: lukasz.rozmej <[email protected]>
- Loading branch information
Showing
18 changed files
with
922 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
203 changes: 203 additions & 0 deletions
203
src/Nethermind/Nethermind.Optimism.Test/CL/PayloadDecoderTests.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// SPDX-FileCopyrightText: 2024 Demerzel Solutions Limited | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
using Nethermind.Core; | ||
|
||
namespace Nethermind.Optimism.CL; | ||
|
||
public class CLConfig : ICLConfig | ||
{ | ||
public bool Enabled { get; set; } = false; | ||
public string P2PHost { get; set; } = "127.0.0.1"; | ||
public int P2PPort { get; set; } = 3030; | ||
public string? L1BeaconApiEndpoint { get; set; } | ||
public string? L1EthApiEndpoint { get; set; } | ||
} |
17 changes: 17 additions & 0 deletions
17
src/Nethermind/Nethermind.Optimism/CL/ICLChainSpecEngineParameters.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// SPDX-FileCopyrightText: 2024 Demerzel Solutions Limited | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
using Nethermind.Core; | ||
using Nethermind.Specs.ChainSpecStyle; | ||
|
||
namespace Nethermind.Optimism.CL; | ||
|
||
public class CLChainSpecEngineParameters : IChainSpecEngineParameters | ||
{ | ||
public Address? BatcherInboxAddress { get; set; } | ||
public Address? BatcherAddress { get; set; } | ||
public Address? SequencerP2PAddress { get; set; } | ||
public string[]? Nodes { get; set; } | ||
public string? EngineName => "OptimismCL"; | ||
public string? SealEngineType => null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// SPDX-FileCopyrightText: 2024 Demerzel Solutions Limited | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
using Nethermind.Config; | ||
using Nethermind.Core; | ||
|
||
namespace Nethermind.Optimism.CL; | ||
|
||
public interface ICLConfig : IConfig | ||
{ | ||
[ConfigItem(Description = "Use enshrined op cl.", DefaultValue = "false")] | ||
bool Enabled { get; set; } | ||
[ConfigItem(Description = "CL p2p communication host", DefaultValue = "127.0.0.1")] | ||
public string P2PHost { get; set; } | ||
[ConfigItem(Description = "CL p2p communication host", DefaultValue = "3030")] | ||
public int P2PPort { get; set; } | ||
[ConfigItem(Description = "URL to L1 beacon node", DefaultValue = "null")] | ||
string? L1BeaconApiEndpoint { get; set; } | ||
[ConfigItem(Description = "URL to L1 execution node.", DefaultValue = "null")] | ||
string? L1EthApiEndpoint { get; set; } | ||
} |
Oops, something went wrong.