Skip to content
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
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bt_decode"
version = "0.5.0"
version = "0.6.0"
edition = "2021"

[lib]
Expand Down
16 changes: 16 additions & 0 deletions bt_decode.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,22 @@ def decode(
) -> Any:
pass

def decode_list(
list_type_strings: list[str],
portable_registry: PortableRegistry,
list_encoded: list[bytes],
) -> list[Any]:
"""
Decode a list of SCALE-encoded types using a list of their type-strings.

Note: the type-strings are potentially all different.
Note: the order of `list_type_strings` and `list_encoded` must match.

Returns a list of the decoded values as python objects, in the order they were
provided to the function.
"""
pass

def encode(
type_string: str, portable_registry: PortableRegistry, to_encode: Any
) -> list[int]:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "bt-decode"
version = "0.5.0"
version = "0.6.0"
description = "A wrapper around the scale-codec crate for fast scale-decoding of Bittensor data structures."
readme = "README.md"
license = {file = "LICENSE"}
Expand Down
Loading
Loading