Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add constants to metadata #205

Closed
emostov opened this issue Dec 16, 2020 · 0 comments · Fixed by #207
Closed

Add constants to metadata #205

emostov opened this issue Dec 16, 2020 · 0 comments · Fixed by #207
Assignees

Comments

@emostov
Copy link
Contributor

emostov commented Dec 16, 2020

While storage, events, and errors are present in subxt Metadata, constants are missing.

While subxt users may likely find numerous use cases for constants, a couple use case within subxt itself come to mind:

  • System::Constants::TransactionByteFee and TransactionPayment::Constants::ExtrinsicBaseWeight could be used to do offchain fee calculations
  • System::Constants::BlockHashCount could be used for creating a better default mortality period for an extrinsic

It looks like constants are defined as a field of ModuleMetadata

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant