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

[react] context generation for contract client instances #77

Open
2 tasks
pyramation opened this issue Nov 2, 2022 · 0 comments
Open
2 tasks

[react] context generation for contract client instances #77

pyramation opened this issue Nov 2, 2022 · 0 comments

Comments

@pyramation
Copy link
Collaborator

pyramation commented Nov 2, 2022

We need some helpers to create contexts/providers for the client instances.

A good example of the client here:
https://github.com/EquilibriumEtf/frontend/blob/53e24aa7992bdaad85ec2a7c02a2e604a2d40897/client/core/index.ts#L27
https://gist.github.com/pyramation/05cebb95208accbcc76fbbe273211167

example of provider here:
https://github.com/EquilibriumEtf/frontend/blob/53e24aa7992bdaad85ec2a7c02a2e604a2d40897/client/react/client/EquilibriumProvider.tsx#L8
https://gist.github.com/pyramation/9db71d59e66694160d1194d291355c04

With a few changes:

  • instead of all instances in one massive context, potentially have context for each client
  • instead of wallet data, potentially just use address: string or whatever data is required
@pyramation pyramation changed the title context generation for contract client instances [react] context generation for contract client instances Dec 16, 2022
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