@cosmwasm/ts-codegen 0.20.0 → 0.21.0
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 +9 -6
- package/package.json +3 -3
package/README.md
CHANGED
@@ -16,6 +16,7 @@ Generate TypeScript SDKs for your CosmWasm smart contracts
|
|
16
16
|
<a href="https://www.npmjs.com/package/@cosmwasm/ts-codegen"><img height="20" src="https://img.shields.io/github/package-json/v/CosmWasm/ts-codegen?filename=packages%2Fts-codegen%2Fpackage.json"></a>
|
17
17
|
</p>
|
18
18
|
|
19
|
+
|
19
20
|
```
|
20
21
|
npm install -g @cosmwasm/ts-codegen
|
21
22
|
```
|
@@ -145,10 +146,11 @@ The `client` plugin will generate TS client classes for your contracts. This opt
|
|
145
146
|
|
146
147
|
#### Client Options
|
147
148
|
|
148
|
-
| option
|
149
|
-
|
|
150
|
-
| `client.enabled`
|
151
|
-
| `client.execExtendsQuery`
|
149
|
+
| option | description |
|
150
|
+
| --------------------------------------- | --------------------------------------------------- |
|
151
|
+
| `client.enabled` | generate TS client classes for your contracts |
|
152
|
+
| `client.execExtendsQuery` | execute should extend query message clients |
|
153
|
+
| `client.noImplicit.noImplicitOverride` | should match your tsconfig noImplicitOverride option |
|
152
154
|
|
153
155
|
#### Client via CLI
|
154
156
|
|
@@ -168,7 +170,7 @@ Generate [react-query v3](https://react-query-v3.tanstack.com/) or [react-query
|
|
168
170
|
#### React Query Options
|
169
171
|
|
170
172
|
| option | description |
|
171
|
-
|
173
|
+
-----------------------------| ----------------------------| ---------------------------------------------------------------------------- |
|
172
174
|
| `reactQuery.enabled` | enable the react-query plugin |
|
173
175
|
| `reactQuery.optionalClient` | allows contract client to be undefined as the component renders |
|
174
176
|
| `reactQuery.queryKeys` | generates a const queryKeys object for use with invalidations and set values |
|
@@ -478,7 +480,8 @@ See the [docs](https://github.com/CosmWasm/ts-codegen/blob/main/packages/wasm-as
|
|
478
480
|
Checkout these related projects:
|
479
481
|
|
480
482
|
* [@osmonauts/telescope](https://github.com/osmosis-labs/telescope) a "babel for the Cosmos", Telescope is a TypeScript Transpiler for Cosmos Protobufs.
|
481
|
-
|
483
|
+
* [chain-registry](https://github.com/cosmology-tech/chain-registry) Cosmos chain registry and chain info.
|
484
|
+
* [cosmos-kit](https://github.com/cosmology-tech/cosmos-kit) A wallet connector for the Cosmos.
|
482
485
|
## Credits
|
483
486
|
|
484
487
|
🛠 Built by Cosmology — if you like our tools, please consider delegating to [our validator ⚛️](https://cosmology.tech/validator)
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cosmwasm/ts-codegen",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.21.0",
|
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,7 +96,7 @@
|
|
96
96
|
"parse-package-name": "1.0.0",
|
97
97
|
"rimraf": "3.0.2",
|
98
98
|
"shelljs": "0.8.5",
|
99
|
-
"wasm-ast-types": "^0.
|
99
|
+
"wasm-ast-types": "^0.15.0"
|
100
100
|
},
|
101
|
-
"gitHead": "
|
101
|
+
"gitHead": "ef4b39134cf220c860469ae3cae49aeab91ee80d"
|
102
102
|
}
|