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

How can we validate that the subxt::Config aligns with the chain we're talking to? #1461

Open
jsdw opened this issue Mar 1, 2024 · 0 comments

Comments

@jsdw
Copy link
Collaborator

jsdw commented Mar 1, 2024

We can already validate that the generated subxt interface aligns with the chain we're communicating with. It would be great if there was also a way to validate that the Config implementation we use actually lines up with the chain too.

I think that this can be a part of the problem we're trying to solve in KR2:

Reduce the configuration needed for Subxt to connect to different chains (aim is to make all config discoverable through metadata, but we need to see how much this is possible).

I suspect that the two go hand in hand; if we expose in the metadata enough information to allow us to reduce the params in our config that need hard coding, we'll inevitably also gain some of the information eeded to validate it.

This was initially raised by @smiasojed, who would like to be able to run this check as a part of the cargo contract tool, so eg cargo-contract --config moonbeam can confirm that the moonbean config is appropriate for example.

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

No branches or pull requests

1 participant