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

.NET SDK Release 2.2.0 #54

Merged
merged 4 commits into from
Feb 16, 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
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@ All notable changes to this project will be documented in this file. The format
[comment]: <> (Fixed: any bug fixes)
[comment]: <> (Security: in case of vulnerabilities)

## [2.2.0]

### Added
* Changes to QueryGlobalState and GetAccountInfo methods to support changes in Casper node v1.5.5 [PR#50](https://github.com/make-software/casper-net-sdk/pull/50).

### Fixed
* We use `ToLowerInvariant()` instead of `ToLower()` to avoid problems with some CultureInfos [PR#52](https://github.com/make-software/casper-net-sdk/pull/52).
* XML Documentation included into the nuget packages [PR#53](https://github.com/make-software/casper-net-sdk/pull/53).
* `isSystem` property in the Block Proposer class marked obsolete and replaced with `IsSystem` [PR#51](https://github.com/make-software/casper-net-sdk/pull/51).

### Changed
* The SDK now links with `BouncyCastle.Cryptography` package instead of `BouncyCastle.NetCore` which was based on a
mirror of the official package.
* Testnet node in the examples updated to a working URL.

## [2.1.0]

### Fixed
Expand Down Expand Up @@ -62,6 +77,7 @@ This new type permits to parse correctly the value `"00"` used for system blocks
### Added
* Initial release of Casper .NET SDK.

[2.2.0]: https://github.com/make-software/casper-net-sdk/releases/tag/v2.2.0
[2.1.0]: https://github.com/make-software/casper-net-sdk/releases/tag/v2.1.0
[2.0.0]: https://github.com/make-software/casper-net-sdk/releases/tag/v2.0.0
[1.1.2]: https://github.com/make-software/casper-net-sdk/releases/tag/v1.1.2
Expand Down
8 changes: 4 additions & 4 deletions Casper.Network.SDK/Casper.Network.SDK.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
<FileVersion>2.1.0</FileVersion>
<PackageVersion>2.1.0</PackageVersion>
<AssemblyVersion>2.2.0.0</AssemblyVersion>
<FileVersion>2.2.0</FileVersion>
<PackageVersion>2.2.0</PackageVersion>
<Title>Casper.Network.SDK</Title>
<Authors>make-software</Authors>
<PackageProjectUrl>https://github.com/make-software/casper-net-sdk</PackageProjectUrl>
Expand All @@ -20,7 +20,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BouncyCastle.NetCore" Version="1.9.0" />
<PackageReference Include="BouncyCastle.Cryptography" Version="2.3.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Docs/Examples/AwaitEvents/AwaitEvents.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Docs/Examples/AwaitEvents/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Casper.NET.SDK.Examples
public static class AwaitEvents
{
// Testnet node and port
private static string localNetHost = "testnet-node.make.services";
private static string localNetHost = "52.35.59.254";
private static int localNetPort = 9999; // use 18101 with NCTL

static NetCasperClient casperSdk;
Expand Down
2 changes: 1 addition & 1 deletion Docs/Examples/DelegateStake/DelegateStake.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Docs/Examples/DelegateStake/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class DelegateStake
{
public static async Task Main(string[] args)
{
string nodeAddress = "http://testnet-node.make.services:7777/rpc";
string nodeAddress = "http://52.35.59.254:7777/rpc";

try
{
Expand Down
2 changes: 1 addition & 1 deletion Docs/Examples/ExecTransfer/ExecTransfer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Docs/Examples/ExecTransfer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class ExecAccountTransfer
{
public static async Task Main(string[] args)
{
string nodeAddress = "http://testnet-node.make.services:7777/rpc";
string nodeAddress = "http://52.35.59.254:7777/rpc";

try
{
Expand Down
2 changes: 1 addition & 1 deletion Docs/Examples/GetAccountBalance/GetAccountBalance.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Docs/Examples/GetAccountBalance/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class GetAccountBalance
{
public static async Task Main(string[] args)
{
string nodeAddress = "http://testnet-node.make.services:7777/rpc";
string nodeAddress = "http://52.35.59.254:7777/rpc";

var hex = "0203914289b334f57366541099a52156b149436fdb0422b3c48fe4115d0578abf690";
var publicKey = PublicKey.FromHexString(hex);
Expand Down
2 changes: 1 addition & 1 deletion Docs/Examples/GetBlockTransfers/GetBlockTransfers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Docs/Examples/GetBlockTransfers/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class GetBlockTransfers
{
public static async Task Main(string[] args)
{
string nodeAddress = "http://testnet-node.make.services:7777/rpc";
string nodeAddress = "http://52.35.59.254:7777/rpc";
string blockHash = "c7148e1e2e115d8fba357e04be2073d721847c982dc70d5c36b5f6d3cf66331c";
int blockHeight = 20652;

Expand Down
2 changes: 1 addition & 1 deletion Docs/Examples/GetNodeMetrics/GetNodeMetrics.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Docs/Examples/GetNodeMetrics/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class GetNodeMetrics
{
public static async Task Main(string[] args)
{
string nodeAddress = "http://testnet-node.make.services:8888/metrics";
string nodeAddress = "http://52.35.59.254:8888/metrics";

try
{
Expand Down
2 changes: 1 addition & 1 deletion Docs/Examples/GetNodeStatus/GetNodeStatus.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
5 changes: 3 additions & 2 deletions Docs/Examples/GetNodeStatus/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Net.Http;
using System.Threading.Tasks;
using Casper.Network.SDK;
using Casper.Network.SDK.JsonRpc;
Expand All @@ -10,8 +11,8 @@ public class GetNodeStatus
{
public static async Task Main(string[] args)
{
string nodeAddress = "http://testnet-node.make.services:7777/rpc";

string nodeAddress = "http://52.35.59.254:7777/rpc";
try
{
var casperSdk = new NetCasperClient(nodeAddress);
Expand Down
2 changes: 1 addition & 1 deletion Docs/Examples/ListRewards/ListRewards.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Docs/Examples/ListRewards/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace ListRewards
{
public static class ListRewards
{
static string nodeAddress = "http://testnet-node.make.services:7777/rpc";
static string nodeAddress = "http://52.35.59.254:7777/rpc";
static NetCasperClient casperSdk;

public async static Task GetEraSummary()
Expand Down
2 changes: 1 addition & 1 deletion Docs/Tutorials/counter-contract/CounterContract.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Docs/Tutorials/erc20-contract/erc20Contract.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Docs/Tutorials/kvstorage-contract/KVStorageContract.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
Loading