Substrate.DotNet.Template

April 2, 2024 ยท View on GitHub

darkfriend77_substrate_gaming

What is Substrate.DotNet.Template ?

license

Substrate.DotNet.Template implements the dotnet new substrate template.

Getting Started

Install our .NET new template with:

dotnet new --install Substrate.DotNet.Template

which makes dotnet new substrate available.

Usage

Please refer to the root README.md for general usage guides.

Command Line Options

This template comes with some arguments to specify template parameters.

To list all available template parameters, simply run the command dotnet new substrate --help, which prints all the available parameters.

ParameterDescription
--sdk_versionThis parameter specifies the used Substrate .NET Toolchain version. Defaults to the latest version.
--api_versionThis parameter specifies the used Substrate .NET API version. Defaults to the latest version.
--metadata_websocketThis parameter tells the generator where to pull the substrate metadata from. Default is localhost ws://127.0.0.1:9944.
--net_apiThis parameter controls the generated type extension librarys name. Default is Substrate.NetApiExt.
--net_integrationThis parameter controls the integration boiler plate. Default is Substrate.Integration.
--rest_serviceThis parameter controls the generated rest service name. Default is Substrate.RestService.
--rest_clientThis parameter controls generated rest client name, tests and mockup project. Default is Substrate.RestClient.
--generate_openapi_documentationThis parameter Activates or deactivates the OpenApi Document Generation in the generated rest service. Default is true.