Releases: polkascan/py-scale-codec
Releases Β· polkascan/py-scale-codec
v2.0.0a2 release
What's Changed
Full Changelog: v2.0.0a1...v2.0.0a2
v2.0.0a1 release
New from the ground up object based implementation in stead of parsing of type strings, which improves performance, flexibility and readability.
Benchmark of a MetadataV14 SCALE blob of 246kB
metadata_obj = MetadataVersioned.new()
metadata_obj.decode(ScaleBytes(metadata_fixture_dict['V14']))
# Execution time: 0.11408376693725586 seconds
Version 1 equivalent:
metadata_obj = runtime_config.create_scale_object("MetadataVersioned")
metadata_obj.decode(ScaleBytes(metadata_fixture_dict['V14']))
# Execution time: 0.40303683280944824 seconds
Other type examples
obj = Tuple(Compact(U32), Compact(U32)).new()
obj.decode(ScaleBytes("0x0c00"))
SlotNumber = U64
VrfOutput = Array(U8, 32)
VrfProof = Array(U8, 64)
RawAuraPreDigest = Struct(slot_number=U64)
RawBabePreDigestPrimary = Struct(authority_index=U32, slot_number=SlotNumber, vrf_output=VrfOutput, vrf_proof=VrfProof)
RawBabePreDigestSecondaryPlain = Struct(authority_index=U32, slot_number=SlotNumber)
RawBabePreDigestSecondaryVRF = Struct(authority_index=U32, slot_number=SlotNumber, vrf_output=VrfOutput, vrf_proof=VrfProof)
RawBabePreDigest = Enum(Phantom=None, Primary=RawBabePreDigestPrimary, SecondaryPlain=RawBabePreDigestSecondaryPlain, SecondaryVRF=RawBabePreDigestSecondaryVRF)
v1.2.11 release
What's Changed
Full Changelog: v1.2.10...v1.2.11
v1.2.10 release
What's Changed
Full Changelog: v1.2.9...v1.2.10
v1.2.9 release
What's Changed
- Removed library vulnerability from dependencies by @arjanz in #119
- Cache get decoder class from string by @thewhaleking in #117
New Contributors
- @thewhaleking made their first contribution in #117
Full Changelog: v1.2.8...v1.2.9
v1.2.8 release
What's Changed
Full Changelog: v1.2.7...v1.2.8
v1.3.0a5 release
Merge branch 'master' into az-metadata-v15
v1.3.0a4 release
Process Address
and ExtrinsicSignature
types from metadata
v1.3.0a2 release
Process Address and ExtrinsicSignature types from metadata
Full Changelog: v1.3.0a...v1.3.0a2
v1.3.0a release
Alpha release with MetadataV15
support
Full Changelog: v1.2.7...v1.3.0a