Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
limebell committed Jul 17, 2023
1 parent 063cf5a commit 4213b00
Show file tree
Hide file tree
Showing 112 changed files with 99 additions and 107 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.Threading;
using Libplanet.Action.State;
using Libplanet.Common.Crypto;
using Libplanet.Common.Types.Tx;
using Libplanet.State;

namespace Libplanet.Action
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using Bencodex.Types;
using Libplanet.State;
using Libplanet.Action.State;

namespace Libplanet.Action
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Immutable;
using System.Linq;
using Bencodex.Types;
using Libplanet.State;
using Libplanet.Action.State;

namespace Libplanet.Action
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
using System.Security.Cryptography;
using Bencodex.Types;
using Libplanet.Action.Loader;
using Libplanet.Blockchain;
using Libplanet.Action.State;
using Libplanet.Common;
using Libplanet.Common.Crypto;
using Libplanet.Common.Types.Blocks;
using Libplanet.Common.Types.Tx;
using Libplanet.State;
using Serilog;

namespace Libplanet.Action
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions Libplanet.Action/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
using System.Runtime.CompilerServices;

[assembly: InternalsVisibleTo("Libplanet.Tests")]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Libplanet.Action.State;
using Libplanet.Common.Types.Assets;
using Libplanet.State;

namespace Libplanet.Action
{
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#nullable disable
using Bencodex.Types;
using Libplanet.State;
using Libplanet.Action.State;

namespace Libplanet.Action
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Diagnostics.Contracts;
using Libplanet.Action.State;
using Libplanet.Common.Crypto;
using Libplanet.Common.Types.Blocks;
using Libplanet.Common.Types.Tx;
using Libplanet.State;

namespace Libplanet.Action
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using Bencodex.Types;
using Libplanet.State;
using Libplanet.Action.State;

namespace Libplanet.Action
{
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Libplanet.State;
using Libplanet.Action.State;

namespace Libplanet.Action
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions Libplanet.Action/Libplanet.Action.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<TargetFramework>netstandard2.0</TargetFramework>
<Nullable>enable</Nullable>
<LangVersion>8.0</LangVersion>
<RootNamespace>Libplanet.Action</RootNamespace>
<AssemblyName>Libplanet.Action</AssemblyName>
</PropertyGroup>

<ItemGroup>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using Bencodex.Types;
using Libplanet.Action.Sys;
using Libplanet.Blockchain;

namespace Libplanet.Action.Loader
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Bencodex.Types;
using Libplanet.State;
using Libplanet.Action.State;

namespace Libplanet.Action
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Libplanet.Action/State/AccountDelta.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Libplanet.Common.Types.Assets;
using Libplanet.Common.Types.Consensus;

namespace Libplanet.State
namespace Libplanet.Action.State
{
internal class AccountDelta : IAccountDelta
{
Expand Down
4 changes: 2 additions & 2 deletions Libplanet.Action/State/AccountDeltaExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
using Libplanet.Common.Types.Assets;
using Libplanet.Common.Types.Consensus;
using Libplanet.Store;
using static Libplanet.State.KeyConverters;
using static Libplanet.Action.State.KeyConverters;

namespace Libplanet.State
namespace Libplanet.Action.State
{
public static class AccountDeltaExtensions
{
Expand Down
3 changes: 1 addition & 2 deletions Libplanet.Action/State/AccountStateDelta.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
using System.Linq;
using System.Numerics;
using Bencodex.Types;
using Libplanet.Action;
using Libplanet.Common.Crypto;
using Libplanet.Common.Types.Assets;
using Libplanet.Common.Types.Consensus;

namespace Libplanet.State
namespace Libplanet.Action.State
{
/// <summary>
/// An internal implementation of <see cref="IAccountStateDelta"/>.
Expand Down
4 changes: 2 additions & 2 deletions Libplanet.Action/State/AccountStateDeltaExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
using Bencodex.Types;
using Libplanet.Common.Crypto;
using Libplanet.Common.Types.Assets;
using static Libplanet.State.KeyConverters;
using static Libplanet.Action.State.KeyConverters;

namespace Libplanet.State
namespace Libplanet.Action.State
{
public static class AccountStateDeltaExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
using Libplanet.Common.Types.Assets;
using Libplanet.Common.Types.Blocks;
using Libplanet.Common.Types.Consensus;
using Libplanet.State;
using Libplanet.Store;
using Libplanet.Store.Trie;
using static Libplanet.State.KeyConverters;
using static Libplanet.Action.State.KeyConverters;

namespace Libplanet.Blocks
namespace Libplanet.Action.State
{
/// <summary>
/// A default implementation of <see cref="IBlockState"/> interface.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using LruCacheNet;
using Serilog;

namespace Libplanet.Blocks
namespace Libplanet.Action.State
{
internal class BlockStateCache
{
Expand Down
2 changes: 1 addition & 1 deletion Libplanet.Action/State/CurrencyPermissionException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Libplanet.Common.Crypto;
using Libplanet.Common.Types.Assets;

namespace Libplanet.State
namespace Libplanet.Action.State
{
/// <summary>
/// The exception that is thrown when a <see cref="TransactionSigner"/> has no rights
Expand Down
2 changes: 1 addition & 1 deletion Libplanet.Action/State/IAccountDelta.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Libplanet.Common.Types.Assets;
using Libplanet.Common.Types.Consensus;

namespace Libplanet.State
namespace Libplanet.Action.State
{
public interface IAccountDelta
{
Expand Down
2 changes: 1 addition & 1 deletion Libplanet.Action/State/IAccountState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Libplanet.Common.Types.Assets;
using Libplanet.Common.Types.Consensus;

namespace Libplanet.State
namespace Libplanet.Action.State
{
/// <summary>
/// An interface to fetch account states.
Expand Down
3 changes: 1 addition & 2 deletions Libplanet.Action/State/IAccountStateDelta.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
using System.Collections.Immutable;
using System.Diagnostics.Contracts;
using Bencodex.Types;
using Libplanet.Action;
using Libplanet.Common.Crypto;
using Libplanet.Common.Types.Assets;
using Libplanet.Common.Types.Blocks;
using Libplanet.Common.Types.Consensus;

namespace Libplanet.State
namespace Libplanet.Action.State
{
/// <summary>
/// An interface to manipulate an account state with
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
using System;
using System.Collections.Generic;
using Bencodex.Types;
using Libplanet.Blocks;
using Libplanet.Common.Crypto;
using Libplanet.Common.Types.Assets;
using Libplanet.Common.Types.Blocks;
using Libplanet.Common.Types.Consensus;
using Libplanet.State;
using Libplanet.Store;

namespace Libplanet.Blockchain
namespace Libplanet.Action.State
{
/// <summary>
/// A minimal interface to get states from a <see cref="BlockChain"/>.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using Libplanet.Common.Types.Blocks;
using Libplanet.State;

namespace Libplanet.Blocks
namespace Libplanet.Action.State
{
/// <summary>
/// A minimal interface to get states from the output state of a <see cref="Block"/>.
Expand Down
2 changes: 1 addition & 1 deletion Libplanet.Action/State/InsufficientBalanceException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Libplanet.Common.Serialization;
using Libplanet.Common.Types.Assets;

namespace Libplanet.State
namespace Libplanet.Action.State
{
/// <summary>
/// The exception that is thrown when a sender has less <see cref="Balance"/> than amount to
Expand Down
2 changes: 1 addition & 1 deletion Libplanet.Action/State/KeyConverters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Libplanet.Common.Crypto;
using Libplanet.Common.Types.Assets;

namespace Libplanet.State
namespace Libplanet.Action.State
{
internal static class KeyConverters
{
Expand Down
2 changes: 1 addition & 1 deletion Libplanet.Action/State/SupplyOverflowException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Libplanet.Common.Serialization;
using Libplanet.Common.Types.Assets;

namespace Libplanet.State
namespace Libplanet.Action.State
{
/// <summary>
/// The exception thrown when a minter tries to mint a currency such that the resulting total
Expand Down
2 changes: 1 addition & 1 deletion Libplanet.Action/State/TotalSupplyNotTrackableException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Libplanet.Common.Serialization;
using Libplanet.Common.Types.Assets;

namespace Libplanet.State
namespace Libplanet.Action.State
{
/// <summary>
/// The exception thrown when <see cref="IAccountState.GetTotalSupply"/> was called on a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
using System.Linq;
using System.Reflection;
using Bencodex.Types;
using Libplanet.Action.State;
using Libplanet.Common.Crypto;
using Libplanet.Common.Types.Consensus;
using Libplanet.State;

namespace Libplanet.Action.Sys
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Libplanet.Action.Sys
{
internal static class Registry
public static class Registry
{
public static readonly Dictionary<IValue, Type> Types;

Expand Down
5 changes: 2 additions & 3 deletions Libplanet.Explorer.Tests/Queries/StateQueryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
using Bencodex.Types;
using GraphQL;
using GraphQL.Execution;
using Libplanet.Blockchain;
using Libplanet.Action.State;
using Libplanet.Blockchain.Policies;
using Libplanet.Blocks;
using Libplanet.Common.Crypto;
using Libplanet.Common.Types.Assets;
using Libplanet.Common.Types.Blocks;
using Libplanet.Consensus;
using Libplanet.Common.Types.Consensus;
using Libplanet.Explorer.Queries;
using Xunit;
using static Libplanet.Explorer.Tests.GraphQLTestUtils;
Expand Down
1 change: 1 addition & 0 deletions Libplanet.Explorer.Tests/Queries/TransactionQueryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using Libplanet.Common;
using Libplanet.Common.Crypto;
using Libplanet.Common.Types.Assets;
using Libplanet.Common.Types.Consensus;
using Libplanet.Common.Types.Tx;
using Libplanet.Consensus;
using Libplanet.Explorer.Queries;
Expand Down
2 changes: 1 addition & 1 deletion Libplanet.Explorer.Tests/SimpleAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Reflection;
using Bencodex.Types;
using Libplanet.Action;
using Libplanet.State;
using Libplanet.Action.State;

namespace Libplanet.Explorer.Tests;

Expand Down
1 change: 1 addition & 0 deletions Libplanet.Explorer/GraphTypes/ValidatorType.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using GraphQL.Types;
using Libplanet.Common.Types.Consensus;
using Libplanet.Consensus;

namespace Libplanet.Explorer.GraphTypes;
Expand Down
1 change: 0 additions & 1 deletion Libplanet.Explorer/Queries/BlockQuery.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#nullable disable
using GraphQL;
using GraphQL.Types;
using Libplanet.Blocks;
using Libplanet.Common.Crypto;
using Libplanet.Common.Types.Blocks;
using Libplanet.Explorer.GraphTypes;
Expand Down
1 change: 1 addition & 0 deletions Libplanet.Explorer/Queries/ExplorerQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using GraphQL.Types;
using Libplanet.Action.State;
using Libplanet.Blockchain;
using Libplanet.Common.Crypto;
using Libplanet.Common.Types.Blocks;
Expand Down
3 changes: 1 addition & 2 deletions Libplanet.Explorer/Queries/StateQuery.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using System;
using GraphQL;
using GraphQL.Types;
using Libplanet.Blockchain;
using Libplanet.Action.State;
using Libplanet.Blockchain.Policies;
using Libplanet.Blocks;
using Libplanet.Common.Crypto;
using Libplanet.Common.Types.Assets;
using Libplanet.Common.Types.Blocks;
Expand Down
2 changes: 1 addition & 1 deletion Libplanet.Extensions.Cocona/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
using Bencodex.Types;
using global::Cocona;
using Libplanet.Action;
using Libplanet.Action.State;
using Libplanet.Common.JsonConverters;
using Libplanet.State;
using Libplanet.Store;

namespace Libplanet.Extensions.Cocona;
Expand Down
2 changes: 1 addition & 1 deletion Libplanet.Net.Tests/SwarmTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.Threading.Tasks;
using Bencodex.Types;
using Libplanet.Action;
using Libplanet.Action.State;
using Libplanet.Blockchain;
using Libplanet.Blockchain.Policies;
using Libplanet.Blockchain.Renderers.Debug;
Expand All @@ -21,7 +22,6 @@
using Libplanet.Net.Options;
using Libplanet.Net.Protocols;
using Libplanet.Net.Transports;
using Libplanet.State;
using Libplanet.Store;
using Libplanet.Store.Trie;
using Libplanet.Stun;
Expand Down
Loading

0 comments on commit 4213b00

Please sign in to comment.