Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

feat: add light-client example #80

Closed
wants to merge 1 commit into from
Closed

Conversation

DoubleOTheven
Copy link
Contributor

DON'T MERGE. Just an example...

@DoubleOTheven DoubleOTheven changed the title DONT MERGE: feat: add light-client example feat: add light-client example Jun 5, 2023
@DoubleOTheven DoubleOTheven added the don't merge Don't merge the PR label Jun 5, 2023
const [apis, dispatch] = useReducer(apiProvidersReducer, {})

useEffect(() => {
chains.forEach((chain) => {
const provider = new WsProvider(chainRpcs[chain.id] || chain.rpcs[0])
const connection: ProviderConnection = isTrusted(chain.id, c.api) ? ({
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we only create one type of provider per chain. I'm not sure if this will work for light clients if they take time to init, but this is what I was thinking originally

@peetzweg
Copy link
Collaborator

peetzweg commented Feb 7, 2024

Project is deprecated and is getting archived.

@peetzweg peetzweg closed this Feb 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
don't merge Don't merge the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants