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

Metadata V16: Simplify Config and make it work across more chains by default #1974

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jsdw
Copy link
Collaborator

@jsdw jsdw commented Mar 26, 2025

This PR takes a small step toward using the associated type information present in V16 metadata (still unstable) to simplify the Subxt config. It:

  • Sets the default Hasher type to be DyanmicHasher256, which will hash things using BlakeTwo256 or Keccak256 (falling back to the former if no information available) depending on what the chain is configured with.
  • Removes the Hash associated type (since it's defined in Hasher anyway), just to simplify Config a little.

@jsdw jsdw force-pushed the jsdw-metadata-v16-config branch 3 times, most recently from f94c473 to ca5e380 Compare March 28, 2025 14:41
@jsdw jsdw force-pushed the jsdw-metadata-v16-config branch from ca5e380 to baaac56 Compare March 28, 2025 15:39
@jsdw jsdw changed the title [DNM] Building on Metadata V16 PR: Simplify Config and make it work across more chains by default Metadata V16: Simplify Config and make it work across more chains by default Mar 28, 2025
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 this pull request may close these issues.

1 participant