Substrate.NET.Metadata 0.1.4

dotnet add package Substrate.NET.Metadata --version 0.1.4
NuGet\Install-Package Substrate.NET.Metadata -Version 0.1.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Substrate.NET.Metadata" Version="0.1.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Substrate.NET.Metadata --version 0.1.4
#r "nuget: Substrate.NET.Metadata, 0.1.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Substrate.NET.Metadata as a Cake Addin
#addin nuget:?package=Substrate.NET.Metadata&version=0.1.4

// Install Substrate.NET.Metadata as a Cake Tool
#tool nuget:?package=Substrate.NET.Metadata&version=0.1.4

Substrate.NET.Metadata

Build & Analyse Reliability Rating GitHub issues license Nuget

Project to manage Substrate based blockchain Metadata from V9 to V14

How to use ?

Instanciate metadata classes

Please check the getMetadataAsync() method from the Substrate.NET.API library allows you to get the hexadecimal string representation of the metadata for a given Substrate blockchain. Once you have the hexadecimal string representation of the metadata, you can instantiate the corresponding Metadata class by instanciating the right Metadata class.

  string hexMetadataFromSubstrateNetApi = "0x...";
  var v11 = new MetadataV11(hexMetadataFromSubstrateNetApi);
  var v12 = new MetadataV12(hexMetadataFromSubstrateNetApi);
  var v13 = new MetadataV13(hexMetadataFromSubstrateNetApi);
  var v14 = new MetadataV14(hexMetadataFromSubstrateNetApi);

If you are not sure of your metadata version you can call :

  string hexMetadataFromSubstrateNetApi = "0x...";
  var metadataInfo = new CheckRuntimeMetadata(hexMetadataFromSubstrateNetApi);

  // metadataInfo.MetaDataInfo.Version.Value -> 11 / 12 / 13 / 14

Compare metadata

You can also compare metadata between each other, but it should be the same major version (compare V12 with V12 and V14 with V14)

The package also provides a MetadataService class that can be instantiated directly or used with dependency injection. Metadata comparison can provide a differential between two versions, including removed or added pallets, as well as more precise information such as function calls that have been renamed. The MetadataService class supports comparison from version 9 to 14.

Dependencies

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.4 116 4/21/2024
0.1.3 188 8/1/2023
0.1.2 127 7/31/2023
0.1.1 127 7/30/2023
0.1.0 136 7/30/2023