MultiChainDotNet.Core
2.23.99-alpha-gb225fb0735
See the version list below for details.
dotnet add package MultiChainDotNet.Core --version 2.23.99-alpha-gb225fb0735
NuGet\Install-Package MultiChainDotNet.Core -Version 2.23.99-alpha-gb225fb0735
<PackageReference Include="MultiChainDotNet.Core" Version="2.23.99-alpha-gb225fb0735" />
paket add MultiChainDotNet.Core --version 2.23.99-alpha-gb225fb0735
#r "nuget: MultiChainDotNet.Core, 2.23.99-alpha-gb225fb0735"
// Install MultiChainDotNet.Core as a Cake Addin #addin nuget:?package=MultiChainDotNet.Core&version=2.23.99-alpha-gb225fb0735&prerelease // Install MultiChainDotNet.Core as a Cake Tool #tool nuget:?package=MultiChainDotNet.Core&version=2.23.99-alpha-gb225fb0735&prerelease
MultiChainDotNet
Features
- The build directory contains docker-compose script used to launch a 4-node multichain network on the development machine running WSL(Ubuntu).
- The Core library contains the wrapper of MultiChain RPC API and included relevant strongly typed class for request and response.
- The Fluent library is a fluent framework for constructing multichain raw transactions and signing transactions externally.
- The Managers library is a high-level abstraction of the underlying classes designed for dependency injection.
- The Console app is a command-line tool used for issuing calls via the MultiChainDotNet interface.
- The libraries incorporated some enhancements using HttpClientFactory and Polly to manage the resiliency of calls.
Setup the blockchain network
1. Install Docker for Windows Desktop with WSL2
https://docs.docker.com/docker-for-windows/wsl/
2. Clone this repo
https://github.com/RoyLai-InfoCorp/MultiChainDotNet
3. Startup 1 seednode and 3 test nodes
Go to /build/multichain directory
sh$ ./multichain/create-base-image.sh
sh$ docker-compose up
The output should show Node ready.
for all 4 nodes.
If nodes doesn't start up, press CTRL-C, enter docker-compose down
and try again.
4. Test the connection
Each node should be connected to 3 other nodes.
sh$ docker exec -it multichain-node1 multichain-cli sennet getpeerinfo
sh$ docker exec -it multichain-node2 multichain-cli sennet getpeerinfo
sh$ docker exec -it multichain-node3 multichain-cli sennet getpeerinfo
Compile and Test
Install dotnet sdk
https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu
For ubuntu 20.04
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb rm packages-microsoft-prod.deb sudo apt-get update; \ sudo apt-get install -y apt-transport-https && \ sudo apt-get update && \ sudo apt-get install -y dotnet-sdk-5.0
Go to /src directory
sh$ dotnet build
Go to /test directory
sh$ dotnet test
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net5.0
- BouncyCastle (>= 1.8.9)
- Humanizer.Core (>= 2.11.10)
- Microsoft.Extensions.Configuration (>= 5.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 5.0.0)
- Microsoft.Extensions.Configuration.Json (>= 5.0.0)
- Microsoft.Extensions.Http (>= 5.0.0)
- Microsoft.Extensions.Http.Polly (>= 5.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 5.0.0)
- Newtonsoft.Json (>= 12.0.3)
- NLog.Extensions.Logging (>= 1.7.3)
- Polly (>= 7.2.1)
- SimpleBase (>= 3.1.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on MultiChainDotNet.Core:
Package | Downloads |
---|---|
MultiChainDotNet.Fluent
See README.md for more details |
|
MultiChainDotNet.Managers
See README.md for more details |
|
Chron.Ethereum
See README.md for more details |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.32.24-alpha | 221 | 7/22/2022 |
2.32.23-alpha | 177 | 7/21/2022 |
2.32.22-alpha | 211 | 7/19/2022 |
2.32.21-alpha | 240 | 5/5/2022 |
2.32.20 | 852 | 5/5/2022 |
2.32.20-alpha | 191 | 4/24/2022 |
2.32.19 | 856 | 4/24/2022 |
2.32.19-alpha | 378 | 3/17/2022 |
2.32.18 | 1,160 | 3/17/2022 |
2.32.18-alpha | 227 | 3/17/2022 |
2.32.17-alpha | 208 | 3/17/2022 |
2.32.16-alpha | 205 | 3/11/2022 |
2.32.15-alpha | 197 | 3/11/2022 |
2.32.14-alpha | 192 | 3/6/2022 |
2.32.11-alpha | 149 | 3/6/2022 |
2.32.10-alpha | 140 | 3/6/2022 |
2.32.9 | 1,186 | 2/5/2022 |
2.32.8 | 820 | 1/29/2022 |
2.32.1 | 791 | 1/29/2022 |
2.32.0 | 729 | 1/29/2022 |
2.31.0 | 784 | 1/28/2022 |
2.30.0 | 739 | 1/16/2022 |
2.29.0 | 442 | 12/16/2021 |
2.28.0 | 438 | 12/16/2021 |
2.27.0 | 550 | 12/13/2021 |
2.26.0 | 438 | 12/7/2021 |
2.25.9 | 429 | 12/5/2021 |
2.25.8 | 432 | 12/5/2021 |
2.25.4 | 446 | 12/5/2021 |
2.25.3 | 429 | 12/5/2021 |
2.25.2 | 422 | 12/4/2021 |
2.25.0-g8447d8d263 | 263 | 8/20/2021 |
2.24.0-gaca33099d2 | 247 | 8/4/2021 |
2.23.99-alpha-gb225fb0735 | 251 | 8/3/2021 |
2.23.99-alpha-g80c40d2b5f | 199 | 8/3/2021 |