Skip to content

Releases: polkascan/py-substrate-interface

Added ExtrinsicResult interface object

07 Dec 14:28
Compare
Choose a tag to compare

ExtrinsicResult objects can be created with all existing extrinsics on-chain:

result = ExtrinsicResult(
    substrate=substrate,
    extrinsic_hash="0x56fea3010910bd8c0c97253ffe308dc13d1613b7e952e7e2028257d2b83c027a",
    block_hash="0x04fb003f8bc999eeb284aa8e74f2c6f63cf5bd5c00d0d0da4cd4d253a643e4c9"
)

print(result.is_success) # False
print(result.weight) # 359262000
print(result.total_fee_amount) # 2483332406
print(result.error_message['docs']) # [' Sender is not a sub-account.']

substrate.query() usage:

result = substrate.query(
    module='System',
    storage_function='Account',
    params=['F4xQKRUagnSGjFqafyhajLs94e7Vvzvr8ebwYJceKpr8R7T']
)

print(result.value['nonce']) #  7695
print(result.value['data']['free']) # 635278638077956496

Added possibility to provide existing runtime configuration

26 Nov 11:35
Compare
Choose a tag to compare
v0.10.3

Merge remote-tracking branch 'origin/master'

Added support for multiple runtime configurations

26 Nov 11:06
Compare
Choose a tag to compare

Separate runtime configuration per SubstrateInterface instance, dropped singleton use

Fixed missing websocket class property init

24 Nov 18:17
Compare
Choose a tag to compare
v0.10.1

Missing class property init

Reimplemented websocket support

19 Nov 12:42
Compare
Choose a tag to compare
  • Reimplemented websocket support
  • Auto discovery of needed configuration like ss58Format and type registry

Fixed incorrect signature payload for extrinsics > 256 bytes

16 Nov 14:52
Compare
Choose a tag to compare
v0.9.35

Fixed incorrect signature payload for extrinsics > 256 bytes; signatu…

Added Python 3.6 support

16 Nov 12:42
Compare
Choose a tag to compare
  • Added Python 3.6 support
  • Type registry update
  • Updated examples in README.md

Fixed incorrect decoding of blocks containing runtime upgrade

13 Nov 13:38
Compare
Choose a tag to compare
  • Fixed incorrect decoding of blocks containing runtime upgrade, metadata and type registry is now fetched from parent block
  • Type registry update
  • Dependency version bump
  • Updated README.md

Added payment info function for fee estimation

10 Nov 13:44
Compare
Choose a tag to compare
v0.9.32

Added payment info function for fee estimation #45

Type registry update

06 Nov 10:52
Compare
Choose a tag to compare

Type registry update to latest Substrate and versioning correction for Kusama, Polkadot and Westend