hyperweb-io / hyperweb-io/ts-codegen

[react] context generation for contract client instances

Abierto
#77 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
126
Forks
31
Merge medio
19 min
PR fusionados (30 d)
2

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Start by reviewing the linked client example at client/core/index.ts and the provider example at client/react/client/EquilibriumProvider.tsx, along with the two gists. Determine the intended context and provider API for each client instance, then confirm that the implementation supports the requested client-specific contexts and required address or wallet data.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
react, typescript
Área
frontend
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
28/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.