@cosmwasm/ts-codegen 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +15 -11
- package/package.json +2 -2
package/README.md
CHANGED
@@ -125,7 +125,7 @@ main().then(() => {
|
|
125
125
|
|
126
126
|
Typescript types and interfaces are generated in separate files so they can be imported into various generated plugins.
|
127
127
|
|
128
|
-
[see example output code](https://gist.github.com/pyramation/
|
128
|
+
[see example output code](https://gist.github.com/pyramation/107d4e8e30dc5eb3ffc07bc3000f4dd0)
|
129
129
|
|
130
130
|
#### Types Options
|
131
131
|
|
@@ -138,7 +138,7 @@ Typescript types and interfaces are generated in separate files so they can be i
|
|
138
138
|
|
139
139
|
The `client` plugin will generate TS client classes for your contracts. This option generates a `QueryClient` for queries as well as a `Client` for queries and mutations.
|
140
140
|
|
141
|
-
[see example output code](https://gist.github.com/pyramation/
|
141
|
+
[see example output code](https://gist.github.com/pyramation/30508678b7563e286f06ccc5ac384817)
|
142
142
|
|
143
143
|
#### Client Options
|
144
144
|
|
@@ -159,7 +159,7 @@ cosmwasm-ts-codegen generate \
|
|
159
159
|
|
160
160
|
Generate [react-query v3](https://react-query-v3.tanstack.com/) or [react-query v4](https://tanstack.com/query/v4/) bindings for your contracts with the `react-query` command.
|
161
161
|
|
162
|
-
[see example output code](https://gist.github.com/pyramation/
|
162
|
+
[see example output code](https://gist.github.com/pyramation/70aef28fd3af0ee164f7711704d3dfc0)
|
163
163
|
|
164
164
|
#### React Query Options
|
165
165
|
|
@@ -205,7 +205,7 @@ cosmwasm-ts-codegen generate \
|
|
205
205
|
|
206
206
|
Generate [recoil](https://recoiljs.org/) bindings for your contracts with the `recoil` command.
|
207
207
|
|
208
|
-
[see example output code](https://gist.github.com/pyramation/
|
208
|
+
[see example output code](https://gist.github.com/pyramation/a9520ccf131177b1841e02a97d7d3731)
|
209
209
|
|
210
210
|
#### Recoil via CLI
|
211
211
|
|
@@ -227,7 +227,7 @@ cosmwasm-ts-codegen generate \
|
|
227
227
|
|
228
228
|
Generate pure message objects with the proper `utf8` encoding and `typeUrl` configured that you can broadcast yourself via `cosmjs` with the `message-composer` command.
|
229
229
|
|
230
|
-
[see example output code](https://gist.github.com/pyramation/
|
230
|
+
[see example output code](https://gist.github.com/pyramation/43320e8b952751a0bd5a77dbc5b601f4)
|
231
231
|
|
232
232
|
#### Message Composer via CLI
|
233
233
|
|
@@ -361,21 +361,25 @@ import {
|
|
361
361
|
```
|
362
362
|
### Example Output
|
363
363
|
|
364
|
-
- `cosmwasm-ts-codegen generate --
|
364
|
+
- `cosmwasm-ts-codegen generate --typesOnly`
|
365
365
|
|
366
|
-
https://gist.github.com/pyramation/
|
366
|
+
https://gist.github.com/pyramation/107d4e8e30dc5eb3ffc07bc3000f4dd0
|
367
367
|
|
368
|
-
- `cosmwasm-ts-codegen generate --plugin
|
368
|
+
- `cosmwasm-ts-codegen generate --plugin client`
|
369
369
|
|
370
|
-
https://gist.github.com/pyramation/
|
370
|
+
https://gist.github.com/pyramation/30508678b7563e286f06ccc5ac384817
|
371
371
|
|
372
372
|
- `cosmwasm-ts-codegen generate --plugin react-query`
|
373
373
|
|
374
|
-
https://gist.github.com/pyramation/
|
374
|
+
https://gist.github.com/pyramation/70aef28fd3af0ee164f7711704d3dfc0
|
375
375
|
|
376
376
|
- `cosmwasm-ts-codegen generate --plugin recoil`
|
377
377
|
|
378
|
-
https://gist.github.com/pyramation/
|
378
|
+
https://gist.github.com/pyramation/a9520ccf131177b1841e02a97d7d3731
|
379
|
+
|
380
|
+
- `cosmwasm-ts-codegen generate --plugin message-composer`
|
381
|
+
|
382
|
+
https://gist.github.com/pyramation/43320e8b952751a0bd5a77dbc5b601f4
|
379
383
|
|
380
384
|
|
381
385
|
### JSON Schema
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cosmwasm/ts-codegen",
|
3
|
-
"version": "0.8.
|
3
|
+
"version": "0.8.4",
|
4
4
|
"description": "@cosmwasm/ts-codegen converts your CosmWasm smart contracts into dev-friendly TypeScript classes so you can focus on shipping code.",
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
6
6
|
"homepage": "https://github.com/cosmwasm/ts-codegen",
|
@@ -94,5 +94,5 @@
|
|
94
94
|
"shelljs": "0.8.5",
|
95
95
|
"wasm-ast-types": "^0.7.0"
|
96
96
|
},
|
97
|
-
"gitHead": "
|
97
|
+
"gitHead": "342eff95ce0b4f1aab43b3cf3f40870372dfba83"
|
98
98
|
}
|