polkascan / py-substrate-interface

Python Substrate Interface
https://polkascan.github.io/py-substrate-interface/
Apache License 2.0
240 stars 111 forks source link

Autodetect Address and Signature types #316

Closed arjanz closed 1 year ago

arjanz commented 1 year ago

Some Substrate chains use alternative Address and ExtrinsicSignature types, for example Moonbeam, which now have to administered manually in a type registry preset. (example)

This can be autodetect to examine the sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic type in the PortableRegistry, which contains a reference to the used Address and ExtrinsicSignature types.