CosmWasm / ts-codegen

Convert your CosmWasm smart contracts into dev-friendly TypeScript classes so you can focus on shipping code.
https://cosmology.zone/products/ts-codegen
Apache License 2.0
116 stars 28 forks source link

React Query: Add query factory option #74

Closed adairrr closed 2 years ago

adairrr commented 2 years ago

This change gives the user the ability to request the use of a "Query Factory" that can be used for (examples using cw20):

queryClient.prefetchQuery( cw20Queries.balance({ client: cw20Client, args: { address: 'terra1' }, }) )

pyramation commented 2 years ago

woah this is amazing!

Quick Q: is there any new options we should add to the READMEs?

adairrr commented 2 years ago

Yeah you're right! Just added the new queryFactory to the readme.

pyramation commented 2 years ago

merged!!!! @adairrr your work is amazing thank you ⚛️