-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'pectra' into feature/eip-7702
- Loading branch information
Showing
178 changed files
with
4,495 additions
and
602 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
src/Nethermind/Ethereum.Blockchain.Pyspec.Test/PragueBlockChainTests.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,25 @@ | ||
// SPDX-FileCopyrightText: 2024 Demerzel Solutions Limited | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Ethereum.Test.Base; | ||
using NUnit.Framework; | ||
|
||
namespace Ethereum.Blockchain.Pyspec.Test; | ||
|
||
[TestFixture] | ||
[Parallelizable(ParallelScope.All)] | ||
[Explicit("These tests are not ready yet")] | ||
public class PragueBlockChainTests : BlockchainTestBase | ||
{ | ||
[TestCaseSource(nameof(LoadTests))] | ||
public async Task Test(BlockchainTest test) => await RunTest(test); | ||
|
||
private static IEnumerable<BlockchainTest> LoadTests() | ||
{ | ||
TestsSourceLoader loader = new(new LoadPyspecTestsStrategy(), $"fixtures/blockchain_tests/prague"); | ||
return loader.LoadTests().OfType<BlockchainTest>(); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/Nethermind/Ethereum.Blockchain.Pyspec.Test/PragueStateTests.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,22 @@ | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Ethereum.Test.Base; | ||
using FluentAssertions; | ||
using NUnit.Framework; | ||
|
||
namespace Ethereum.Blockchain.Pyspec.Test; | ||
|
||
[TestFixture] | ||
[Parallelizable(ParallelScope.All)] | ||
[Explicit("These tests are not ready yet")] | ||
public class PragueStateTests : GeneralStateTestBase | ||
{ | ||
[TestCaseSource(nameof(LoadTests))] | ||
public void Test(GeneralStateTest test) => RunTest(test).Pass.Should().BeTrue(); | ||
|
||
private static IEnumerable<GeneralStateTest> LoadTests() | ||
{ | ||
TestsSourceLoader loader = new(new LoadPyspecTestsStrategy(), $"fixtures/state_tests/prague"); | ||
return loader.LoadTests().Cast<GeneralStateTest>(); | ||
} | ||
} |
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,26 @@ | ||
// SPDX-FileCopyrightText: 2022 Demerzel Solutions Limited | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
using System.Collections.Generic; | ||
using Ethereum.Test.Base; | ||
using NUnit.Framework; | ||
|
||
namespace Ethereum.Blockchain.Test | ||
{ | ||
[TestFixture] | ||
[Parallelizable(ParallelScope.All)] | ||
public class Eip6110Tests : GeneralStateTestBase | ||
{ | ||
[TestCaseSource(nameof(LoadTests))] | ||
public void Test(GeneralStateTest test) | ||
{ | ||
Assert.True(RunTest(test).Pass); | ||
} | ||
|
||
public static IEnumerable<GeneralStateTest> LoadTests() | ||
{ | ||
var loader = new TestsSourceLoader(new LoadGeneralStateTestsStrategy(), "stEIP6110"); | ||
return (IEnumerable<GeneralStateTest>)loader.LoadTests(); | ||
} | ||
} | ||
} |
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
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
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
Oops, something went wrong.