@cosmwasm/ts-codegen 0.13.1 → 0.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
@@ -106,7 +106,8 @@ codegen({
|
|
106
106
|
enabled: true,
|
107
107
|
optionalClient: true,
|
108
108
|
version: 'v4',
|
109
|
-
mutations: true
|
109
|
+
mutations: true,
|
110
|
+
queryKeys: true,
|
110
111
|
},
|
111
112
|
recoil: {
|
112
113
|
enabled: false
|
@@ -161,13 +162,14 @@ Generate [react-query v3](https://react-query-v3.tanstack.com/) or [react-query
|
|
161
162
|
|
162
163
|
#### React Query Options
|
163
164
|
|
164
|
-
| option
|
165
|
-
|
|
166
|
-
| `reactQuery.enabled`
|
167
|
-
| `reactQuery.optionalClient`
|
168
|
-
| `reactQuery.
|
169
|
-
| `reactQuery.
|
170
|
-
| `reactQuery.
|
165
|
+
| option | description |
|
166
|
+
| ----------------------------| ---------------------------------------------------------------------------- |
|
167
|
+
| `reactQuery.enabled` | enable the react-query plugin |
|
168
|
+
| `reactQuery.optionalClient` | allows contract client to be undefined as the component renders |
|
169
|
+
| `reactQuery.queryKeys` | generates a const queryKeys object for use with invalidations and set values |
|
170
|
+
| `reactQuery.version` | `v4` uses `@tanstack/react-query` and `v3` uses `react-query` |
|
171
|
+
| `reactQuery.mutations` | also generate mutations |
|
172
|
+
| `reactQuery.camelize` | use camelCase style for property names |
|
171
173
|
|
172
174
|
|
173
175
|
#### React Query via CLI
|
package/main/commands/install.js
CHANGED
@@ -92,7 +92,7 @@ var _default = /*#__PURE__*/function () {
|
|
92
92
|
type: 'checkbox',
|
93
93
|
name: 'pkg',
|
94
94
|
message: 'which chain contracts do you want to support?',
|
95
|
-
choices: ['stargaze-claim', 'stargaze-ics721', 'stargaze-minter', 'stargaze-royalty-group', 'stargaze-sg721', 'stargaze-whitelist'].map(function (name) {
|
95
|
+
choices: ['stargaze-claim', 'stargaze-ics721', 'stargaze-minter', 'stargaze-royalty-group', 'stargaze-sg721', 'stargaze-whitelist', 'wasmswap'].map(function (name) {
|
96
96
|
return {
|
97
97
|
name: name,
|
98
98
|
value: "@cosmjson/".concat(name)
|
@@ -50,7 +50,7 @@ export default (async argv => {
|
|
50
50
|
type: 'checkbox',
|
51
51
|
name: 'pkg',
|
52
52
|
message: 'which chain contracts do you want to support?',
|
53
|
-
choices: ['stargaze-claim', 'stargaze-ics721', 'stargaze-minter', 'stargaze-royalty-group', 'stargaze-sg721', 'stargaze-whitelist'].map(name => {
|
53
|
+
choices: ['stargaze-claim', 'stargaze-ics721', 'stargaze-minter', 'stargaze-royalty-group', 'stargaze-sg721', 'stargaze-whitelist', 'wasmswap'].map(name => {
|
54
54
|
return {
|
55
55
|
name,
|
56
56
|
value: `@cosmjson/${name}`
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cosmwasm/ts-codegen",
|
3
|
-
"version": "0.13.
|
3
|
+
"version": "0.13.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",
|
@@ -96,5 +96,5 @@
|
|
96
96
|
"shelljs": "0.8.5",
|
97
97
|
"wasm-ast-types": "^0.9.0"
|
98
98
|
},
|
99
|
-
"gitHead": "
|
99
|
+
"gitHead": "cce2e2903084d313d7a3a148a41c3f6b6c6c60e1"
|
100
100
|
}
|