† This software is experimental, and not intended for production use yet. Use at your own risk.
Encompassing decoder for substrate/polkadot/kusama types.
Gets type definitions from polkadot-js via JSON and decodes them into components that outline types and make decoding byte-strings possible, as long as the module/generic type name are known.
Supports Metadata versions from v8, which means all of Kusama (from CC1). Older networks are not supported (E.G Alexander).
TypeDetective
and Decoder
in order to work for arbitrary chains.
However, if the JSON follows the same format as PolkadotJS definitions
(look at definitions.json
and overrides.json
) it would be possible to
simply deserialize into Polkadot structs and utilize those. The decoding
itself is generic enough to allow it.Currently Supported Metadata Versions (From Kusama CC1):
desub/
, desub-current/
, desub-legacy/
, desub-common/
, desub-json-resolver/
upgrade-blocks
present here and modify the hard-coded upgrade blocks as necessary in the desub runtimes.rs
file.Unreleased
section.Unreleased
section to a new section corresponding to the version being released, making sure to keep the Unreleased
header.vX.X.X
(E.G v0.1.0
)
git tag v0.1.0
git push --tags origin master
Actions
in the github repository.
publish
.crates.io
. Refer to
this for how to publish to crates.io.