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

feat: Make Fruzhin configurable for different chains. #23

Merged
merged 2 commits into from
Sep 24, 2024

Conversation

Zurcusa
Copy link
Collaborator

@Zurcusa Zurcusa commented Sep 20, 2024

Description

This PR allows Fruzhin web to connect to polkadot, kusama or westend chains via providing a chain name or a chain spec string as a parameter for the main method.

  • What does this PR do?
    Enables configuration for chains different from polkadot.
  • Why are these changes needed?
    To cover light client requirements.
  • How were these changes implemented and what do they affect?
    The main method now requires a single parameter. It can be one of two:

1: Name of a well known chain (polkadot, kusama, westend).
2: A chain spec string of a well known chain.

Based on the provided a ChainService with the chain context is built and provided to the host to use.

Fixes LimeChain#531

Checklist:

  • I have read the contributing guidelines.
  • My PR title matches the Conventional Commits spec.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

…ins via providing a chain name or a chain spec string.
@Zurcusa Zurcusa self-assigned this Sep 20, 2024
@Zurcusa Zurcusa merged commit 102d398 into dev Sep 24, 2024
1 check passed
@Zurcusa Zurcusa deleted the 531-fruzhin-web-chain-config branch September 24, 2024 15:17
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.

Make Fruzhin-web configurable for different well known chains.
2 participants