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

Introduce ASP.NET #76

Merged
merged 18 commits into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ dotnet_diagnostic.MEN007.severity = none
# MEN016: Avoid top-level statements
dotnet_diagnostic.MEN016.severity = none

[**/obj/**/*.cs]
# SA1200: Using directives should be placed correctly
dotnet_diagnostic.SA1200.severity = none

# CS8981: The type name only contains lower-cased ascii characters
dotnet_diagnostic.CS8981.severity = none

[*.csproj]
quote_type = double

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ bin/
obj/
.data
.node
.client
.store
.log
.DS_Store
Expand Down
1 change: 0 additions & 1 deletion .submodules/lib9c
Submodule lib9c deleted from 178eaf
33 changes: 28 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,30 @@
"program": "${workspaceFolder}/src/node/LibplanetConsole.Node.Executable/bin/Debug/net8.0/libplanet-node.dll",
"console": "integratedTerminal",
"args": [
"run"
"run",
"--single-node"
]
},
{
"name": "C#: Libplanet Client - Initialize",
"type": "coreclr",
"request": "launch",
"program": "${workspaceFolder}/src/client/LibplanetConsole.Client.Executable/bin/Debug/net8.0/libplanet-client.dll",
"console": "integratedTerminal",
"args": [
"init",
".client"
]
},
{
"name": "C#: Libplanet Client - Start",
"type": "coreclr",
"request": "launch",
"program": "${workspaceFolder}/src/client/LibplanetConsole.Client.Executable/bin/Debug/net8.0/libplanet-client.dll",
"console": "integratedTerminal",
"args": [
"start",
".client"
]
},
{
Expand Down Expand Up @@ -112,11 +135,11 @@
],
"compounds": [
{
"name": "Node and Client",
"name": "Node and Client - Start",
"configurations": [
"C#: Libplanet Node - Run",
"C#: Libplanet Client"
"C#: Libplanet Node - Start",
"C#: Libplanet Client - Start"
]
}
]
}
}
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<CommandsDirectory>$(MSBuildThisFileDirectory).submodules\commands\</CommandsDirectory>
<CommunicationDirectory>$(MSBuildThisFileDirectory).submodules\communication\</CommunicationDirectory>
<LibplanetDirectory>$(MSBuildThisFileDirectory).submodules\libplanet\</LibplanetDirectory>
<SharedDirectory>$(MSBuildThisFileDirectory)src\shared\</SharedDirectory>
<NoWarn>$(NoWarn);NU1902;NU1903</NoWarn>
</PropertyGroup>

Expand Down Expand Up @@ -36,7 +36,7 @@
<RootPath Condition="'$(SolutionDir)' != ''">$(SolutionDir)</RootPath>
<RootPath Condition="'$(SolutionDir)' == ''">$(MSBuildThisFileDirectory)\</RootPath>
<LibplanetVersion>5.2.0</LibplanetVersion>
<JSSoftCommandsVersion>7.0.0-pr.40</JSSoftCommandsVersion>
<JSSoftCommandsVersion>7.0.0-pr.42</JSSoftCommandsVersion>
<JSSoftCommunicationVersion>2.0.6</JSSoftCommunicationVersion>
<JSSoftConfigurationsVersion>1.0.0</JSSoftConfigurationsVersion>
<UseRidGraph>true</UseRidGraph>
Expand Down
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Libplanet Console

This repository provides a `REPL` environment that enables easy testing of
This repository provides a `REPL` environment that enables easy testing of
libplanet features.

## Requirements
Expand All @@ -27,7 +27,7 @@ dotnet publish

# Creating Repository

Run the following command to create a repository for starting 4 nodes
Run the following command to create a repository for starting 4 nodes
and 2 clients at the specified path.

```sh
Expand Down Expand Up @@ -55,21 +55,20 @@ Create and run a repository for a single node.

## Settings data

Once the repository is created, the specified path will contain
`node-settings.json` and `client-settings.json` files as shown below.
Users can configure various values to run nodes and clients
Once the repository is created, the specified path will contain
`node-settings.json` and `client-settings.json` files as shown below.
Users can configure various values to run nodes and clients
in different environments.

```json
{
"$schema": "node-settings-schema.json",
"application": {
"endPoint": "localhost:55314",
"port": "55314",
"privateKey": "5a3df2ce7fc8b8f7c984f867a34e7d343e974f7b661c83536c0a66685bdbf04a",
"storePath": "store",
"logPath": "log",
"genesisPath": "genesis",
"logPath": "app.log",
"libraryLogPath": "library.log"
}
}
```
Expand Down
28 changes: 0 additions & 28 deletions libplanet-console.sln
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LibplanetConsole.Node.Execu
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LibplanetConsole.Node", "src\node\LibplanetConsole.Node\LibplanetConsole.Node.csproj", "{217938CF-B2B8-41BB-A193-475430421265}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LibplanetConsole.Node.Example", "src\node\LibplanetConsole.Node.Example\LibplanetConsole.Node.Example.csproj", "{6ECDC75B-1B38-4480-AD15-CE0F330CD70B}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LibplanetConsole.Client.Example", "src\client\LibplanetConsole.Client.Example\LibplanetConsole.Client.Example.csproj", "{2CA203CA-1980-4B11-82E1-0E5812D86C63}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LibplanetConsole.Console.Example", "src\console\LibplanetConsole.Console.Example\LibplanetConsole.Console.Example.csproj", "{ACE75CD7-E4FD-4B9E-943E-EF3BB11DECDF}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LibplanetConsole.Node.Explorer", "src\node\LibplanetConsole.Node.Explorer\LibplanetConsole.Node.Explorer.csproj", "{FEF8E9D4-CBB7-4EFC-A5C2-2C9E91498D79}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LibplanetConsole.Console.Explorer", "src\console\LibplanetConsole.Console.Explorer\LibplanetConsole.Console.Explorer.csproj", "{AF1A0011-2795-42FD-B67B-7F1956268577}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LibplanetConsole.Common.Tests", "test\LibplanetConsole.Common.Tests\LibplanetConsole.Common.Tests.csproj", "{65341396-A058-4577-9B70-C1DD3D146501}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibplanetConsole.Node.Evidence", "src\node\LibplanetConsole.Node.Evidence\LibplanetConsole.Node.Evidence.csproj", "{4C151EAE-2105-4DA1-B645-C09513EA8532}"
Expand Down Expand Up @@ -103,26 +95,10 @@ Global
{217938CF-B2B8-41BB-A193-475430421265}.Debug|Any CPU.Build.0 = Debug|Any CPU
{217938CF-B2B8-41BB-A193-475430421265}.Release|Any CPU.ActiveCfg = Release|Any CPU
{217938CF-B2B8-41BB-A193-475430421265}.Release|Any CPU.Build.0 = Release|Any CPU
{6ECDC75B-1B38-4480-AD15-CE0F330CD70B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6ECDC75B-1B38-4480-AD15-CE0F330CD70B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6ECDC75B-1B38-4480-AD15-CE0F330CD70B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6ECDC75B-1B38-4480-AD15-CE0F330CD70B}.Release|Any CPU.Build.0 = Release|Any CPU
{2CA203CA-1980-4B11-82E1-0E5812D86C63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2CA203CA-1980-4B11-82E1-0E5812D86C63}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2CA203CA-1980-4B11-82E1-0E5812D86C63}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2CA203CA-1980-4B11-82E1-0E5812D86C63}.Release|Any CPU.Build.0 = Release|Any CPU
{ACE75CD7-E4FD-4B9E-943E-EF3BB11DECDF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ACE75CD7-E4FD-4B9E-943E-EF3BB11DECDF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ACE75CD7-E4FD-4B9E-943E-EF3BB11DECDF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ACE75CD7-E4FD-4B9E-943E-EF3BB11DECDF}.Release|Any CPU.Build.0 = Release|Any CPU
{FEF8E9D4-CBB7-4EFC-A5C2-2C9E91498D79}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FEF8E9D4-CBB7-4EFC-A5C2-2C9E91498D79}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FEF8E9D4-CBB7-4EFC-A5C2-2C9E91498D79}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FEF8E9D4-CBB7-4EFC-A5C2-2C9E91498D79}.Release|Any CPU.Build.0 = Release|Any CPU
{AF1A0011-2795-42FD-B67B-7F1956268577}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AF1A0011-2795-42FD-B67B-7F1956268577}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AF1A0011-2795-42FD-B67B-7F1956268577}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AF1A0011-2795-42FD-B67B-7F1956268577}.Release|Any CPU.Build.0 = Release|Any CPU
{65341396-A058-4577-9B70-C1DD3D146501}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{65341396-A058-4577-9B70-C1DD3D146501}.Debug|Any CPU.Build.0 = Debug|Any CPU
{65341396-A058-4577-9B70-C1DD3D146501}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down Expand Up @@ -166,11 +142,7 @@ Global
{8749087F-5DE0-46AB-82D6-5009B3D9E2AF} = {1DEAA4CE-E29B-4379-BAF6-20B79A5946CB}
{F5DCB11A-EA32-441A-AF34-B66359C3EA50} = {4A8F8EE9-769C-4C97-89BC-19D038E69998}
{217938CF-B2B8-41BB-A193-475430421265} = {4A8F8EE9-769C-4C97-89BC-19D038E69998}
{6ECDC75B-1B38-4480-AD15-CE0F330CD70B} = {4A8F8EE9-769C-4C97-89BC-19D038E69998}
{2CA203CA-1980-4B11-82E1-0E5812D86C63} = {1DEAA4CE-E29B-4379-BAF6-20B79A5946CB}
{ACE75CD7-E4FD-4B9E-943E-EF3BB11DECDF} = {CAB76DA9-6E57-4422-98C6-DD2D6299F675}
{FEF8E9D4-CBB7-4EFC-A5C2-2C9E91498D79} = {4A8F8EE9-769C-4C97-89BC-19D038E69998}
{AF1A0011-2795-42FD-B67B-7F1956268577} = {CAB76DA9-6E57-4422-98C6-DD2D6299F675}
{65341396-A058-4577-9B70-C1DD3D146501} = {56942891-CFBD-41E4-8881-47F455D7BEFD}
{4C151EAE-2105-4DA1-B645-C09513EA8532} = {4A8F8EE9-769C-4C97-89BC-19D038E69998}
{965DF40E-F3BA-45F2-A177-A3DE550C824E} = {CAB76DA9-6E57-4422-98C6-DD2D6299F675}
Expand Down
22 changes: 0 additions & 22 deletions src/client/LibplanetConsole.Client.Example/Example.cs

This file was deleted.

14 changes: 0 additions & 14 deletions src/client/LibplanetConsole.Client.Example/ExampleCommand.cs

This file was deleted.

15 changes: 0 additions & 15 deletions src/client/LibplanetConsole.Client.Example/ExampleInfoProvider.cs

This file was deleted.

16 changes: 0 additions & 16 deletions src/client/LibplanetConsole.Client.Example/ExampleRemoteService.cs

This file was deleted.

12 changes: 0 additions & 12 deletions src/client/LibplanetConsole.Client.Example/ExampleService.cs

This file was deleted.

12 changes: 0 additions & 12 deletions src/client/LibplanetConsole.Client.Example/ExampleSettings.cs

This file was deleted.

8 changes: 0 additions & 8 deletions src/client/LibplanetConsole.Client.Example/IExample.cs

This file was deleted.

This file was deleted.

This file was deleted.

Loading