polkascan / py-substrate-interface

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

Implemented well-known storage keys in query() #193

Closed arjanz closed 2 years ago

arjanz commented 2 years ago

Implement 'well-known' storage keys described in Substrate:

https://github.com/paritytech/substrate/blob/ded44948e2d5a398abcb4e342b0513cb690961bb/primitives/storage/src/lib.rs#L192-L238

And make expose them in the same manner PolkadotJS does: https://github.com/polkadot-js/api/blob/8ba4ed53776a7a71478e229547c7af3d4dc57d63/packages/types/src/metadata/decorate/storage/substrate.ts

Closes #190