@cosmwasm/ts-codegen 0.3.9 → 0.4.2

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.
Files changed (2) hide show
  1. package/README.md +15 -14
  2. package/package.json +5 -4
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # cosmwasm-typescript-gen
1
+ # @cosmwasm/ts-codegen
2
2
 
3
3
  A Transpiler for CosmWasm Smart Contracts
4
4
 
@@ -7,23 +7,24 @@ A Transpiler for CosmWasm Smart Contracts
7
7
  </p>
8
8
 
9
9
  <p align="center" width="100%">
10
- <a href="https://github.com/CosmWasm/cosmwasm-typescript-gen/actions/workflows/run-tests.yaml">
11
- <img height="20" src="https://github.com/CosmWasm/cosmwasm-typescript-gen/actions/workflows/run-tests.yaml/badge.svg" />
10
+ <a href="https://github.com/CosmWasm/ts-codegen/actions/workflows/run-tests.yaml">
11
+ <img height="20" src="https://github.com/CosmWasm/ts-codegen/actions/workflows/run-tests.yaml/badge.svg" />
12
12
  </a>
13
- <a href="https://github.com/CosmWasm/cosmwasm-typescript-gen/blob/main/LICENSE-MIT"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
14
- <a href="https://github.com/CosmWasm/cosmwasm-typescript-gen/blob/main/LICENSE-Apache"><img height="20" src="https://img.shields.io/badge/license-Apache-blue.svg"></a>
15
- <a href="https://www.npmjs.com/package/cosmwasm-typescript-gen"><img height="20" src="https://img.shields.io/github/package-json/v/CosmWasm/cosmwasm-typescript-gen?filename=packages%2Fcosmwasm-typescript-gen%2Fpackage.json"></a>
13
+ <a href="https://github.com/CosmWasm/ts-codegen/blob/main/LICENSE-MIT"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
14
+ <a href="https://github.com/CosmWasm/ts-codegen/blob/main/LICENSE-Apache"><img height="20" src="https://img.shields.io/badge/license-Apache-blue.svg"></a>
15
+ <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%2Fcosmwasm-typescript-gen%2Fpackage.json"></a>
16
16
  </p>
17
17
 
18
-
19
18
  ```
20
- npm install -g cosmwasm-typescript-gen
19
+ npm install -g @cosmwasm/ts-codegen
21
20
  ```
22
21
 
22
+ CosmWasm Typescript codegen tooling to convert your CosmWasm smart contracts into clean es6 classes.
23
+
23
24
  ## usage
24
25
 
25
26
  ```
26
- cosmwasm-typescript-gen generate \
27
+ cosmwasm-ts-codegen generate \
27
28
  --schema ./schema \
28
29
  --out ./src \
29
30
  --name MyContractName
@@ -34,7 +35,7 @@ npm install -g cosmwasm-typescript-gen
34
35
  ```
35
36
  git clone git@github.com:public-awesome/stargaze-contracts.git
36
37
  cd stargaze-contracts/contracts/sg721/
37
- cosmwasm-typescript-gen generate --schema ./schema --out ./ts --name SG721
38
+ cosmwasm-ts-codegen generate --schema ./schema --out ./ts --name SG721
38
39
  ```
39
40
 
40
41
  ### JSON Schema Generation
@@ -54,19 +55,19 @@ cargo schema
54
55
 
55
56
  ### Example Output
56
57
 
57
- - `cosmwasm-typescript-gen generate`
58
+ - `cosmwasm-ts-codegen generate`
58
59
 
59
60
  https://gist.github.com/pyramation/ba67ec56e4e2a39cadea55430f9993e5
60
61
 
61
- - `cosmwasm-typescript-gen from-partial`
62
+ - `cosmwasm-ts-codegen from-partial`
62
63
 
63
64
  https://gist.github.com/pyramation/f50869d1ecdb6d6ced2bc0a44c6ff492
64
65
 
65
- - `cosmwasm-typescript-gen react-query`
66
+ - `cosmwasm-ts-codegen react-query`
66
67
 
67
68
  https://gist.github.com/pyramation/a3bf4aa7b60a31287d0720ca1bb5473b
68
69
 
69
- - `cosmwasm-typescript-gen recoil`
70
+ - `cosmwasm-ts-codegen recoil`
70
71
 
71
72
  https://gist.github.com/pyramation/48b28a75def1a16b233b369297f05f0e
72
73
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmwasm/ts-codegen",
3
- "version": "0.3.9",
3
+ "version": "0.4.2",
4
4
  "description": "A TypeScript Transpiler for CosmWasm Smart Contracts",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/pyramation/cosmwasm-typescript-gen",
@@ -9,7 +9,7 @@
9
9
  "module": "module/index.js",
10
10
  "typings": "types/index.d.ts",
11
11
  "bin": {
12
- "cosmwasm-typescript-gen": "main/cosmwasm-typescript-gen.js"
12
+ "cosmwasm-ts-codegen": "main/cosmwasm-typescript-gen.js"
13
13
  },
14
14
  "directories": {
15
15
  "lib": "src",
@@ -91,5 +91,6 @@
91
91
  "mkdirp": "1.0.4",
92
92
  "shelljs": "0.8.5",
93
93
  "wasm-ast-types": "^0.3.7"
94
- }
95
- }
94
+ },
95
+ "gitHead": "045b74d7deeec06351cc0410c9168b207fee1f08"
96
+ }