Skip to content

Releases: polkascan/py-scale-codec

v2.0.0a2 release

27 Aug 14:58
5542655
Compare
Choose a tag to compare
v2.0.0a2 release Pre-release
Pre-release

What's Changed

Full Changelog: v2.0.0a1...v2.0.0a2

v2.0.0a1 release

17 Jul 09:23
Compare
Choose a tag to compare
v2.0.0a1 release Pre-release
Pre-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

05 Jul 11:47
f676638
Compare
Choose a tag to compare

What's Changed

  • Fixed missing value_object with Tuple containing 1 element by @arjanz in #123

Full Changelog: v1.2.10...v1.2.11

v1.2.10 release

11 Jun 14:44
3130eef
Compare
Choose a tag to compare

What's Changed

  • CheckMetadataHash signed extension support by @arjanz in #120

Full Changelog: v1.2.9...v1.2.10

v1.2.9 release

30 May 14:00
f57f65b
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.2.8...v1.2.9

v1.2.8 release

07 Feb 15:30
226eb42
Compare
Choose a tag to compare

What's Changed

  • Check if pallet has call functions by @arjanz in #116

Full Changelog: v1.2.7...v1.2.8

v1.3.0a5 release

20 Nov 10:24
Compare
Choose a tag to compare
v1.3.0a5 release Pre-release
Pre-release
Merge branch 'master' into az-metadata-v15

v1.3.0a4 release

15 Nov 09:47
Compare
Choose a tag to compare
v1.3.0a4 release Pre-release
Pre-release

Process Address and ExtrinsicSignature types from metadata

v1.3.0a2 release

14 Nov 13:04
Compare
Choose a tag to compare
v1.3.0a2 release Pre-release
Pre-release

Process Address and ExtrinsicSignature types from metadata

Full Changelog: v1.3.0a...v1.3.0a2

v1.3.0a release

06 Oct 15:02
Compare
Choose a tag to compare
v1.3.0a release Pre-release
Pre-release

Alpha release with MetadataV15 support

Full Changelog: v1.2.7...v1.3.0a