@cosmwasm/ts-codegen 0.15.0 → 0.16.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 +2 -4
- package/main/generators/client.js +1 -0
- package/main/generators/message-composer.js +1 -0
- package/main/generators/react-query.js +1 -0
- package/main/generators/recoil.js +1 -0
- package/module/generators/client.js +1 -0
- package/module/generators/message-composer.js +1 -0
- package/module/generators/react-query.js +1 -0
- package/module/generators/recoil.js +1 -0
- package/package.json +3 -3
- package/types/src/generators/client.d.ts +2 -1
- package/types/src/generators/message-composer.d.ts +2 -1
- package/types/src/generators/react-query.d.ts +2 -2
- package/types/src/generators/recoil.d.ts +2 -2
- package/types/src/generators/types.d.ts +2 -2
- package/types/src/utils/schemas.d.ts +2 -8
package/README.md
CHANGED
@@ -412,8 +412,7 @@ Using the new `write_api` method, you can export schemas:
|
|
412
412
|
```rs
|
413
413
|
use cosmwasm_schema::write_api;
|
414
414
|
|
415
|
-
|
416
|
-
pub use cw4_group::msg::{ExecuteMsg, InstantiateMsg, QueryMsg};
|
415
|
+
use cw4_group::msg::{ExecuteMsg, InstantiateMsg, QueryMsg};
|
417
416
|
|
418
417
|
fn main() {
|
419
418
|
write_api! {
|
@@ -477,5 +476,4 @@ Checkout these related projects:
|
|
477
476
|
|
478
477
|
## Credits
|
479
478
|
|
480
|
-
Built by Cosmology — if you like our tools, please consider delegating to [our validator](https://
|
481
|
-
|
479
|
+
🛠 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.16.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",
|
@@ -94,7 +94,7 @@
|
|
94
94
|
"parse-package-name": "1.0.0",
|
95
95
|
"rimraf": "3.0.2",
|
96
96
|
"shelljs": "0.8.5",
|
97
|
-
"wasm-ast-types": "^0.
|
97
|
+
"wasm-ast-types": "^0.11.0"
|
98
98
|
},
|
99
|
-
"gitHead": "
|
99
|
+
"gitHead": "d7f8c715f76edac8c5c2762e58fe8c73351d2af5"
|
100
100
|
}
|
@@ -1,4 +1,5 @@
|
|
1
|
+
import { ContractInfo } from "wasm-ast-types";
|
1
2
|
import { TSClientOptions } from "wasm-ast-types";
|
2
3
|
import { BuilderFile } from "../builder";
|
3
|
-
declare const _default: (name: string,
|
4
|
+
declare const _default: (name: string, contractInfo: ContractInfo, outPath: string, tsClientOptions?: TSClientOptions) => Promise<BuilderFile[]>;
|
4
5
|
export default _default;
|
@@ -1,4 +1,5 @@
|
|
1
|
+
import { ContractInfo } from "wasm-ast-types";
|
1
2
|
import { MessageComposerOptions } from "wasm-ast-types";
|
2
3
|
import { BuilderFile } from "../builder";
|
3
|
-
declare const _default: (name: string,
|
4
|
+
declare const _default: (name: string, contractInfo: ContractInfo, outPath: string, messageComposerOptions?: MessageComposerOptions) => Promise<BuilderFile[]>;
|
4
5
|
export default _default;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ReactQueryOptions } from "wasm-ast-types";
|
1
|
+
import { ReactQueryOptions, ContractInfo } from "wasm-ast-types";
|
2
2
|
import { BuilderFile } from "../builder";
|
3
|
-
declare const _default: (contractName: string,
|
3
|
+
declare const _default: (contractName: string, contractInfo: ContractInfo, outPath: string, reactQueryOptions?: ReactQueryOptions) => Promise<BuilderFile[]>;
|
4
4
|
export default _default;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { RecoilOptions } from "wasm-ast-types";
|
1
|
+
import { ContractInfo, RecoilOptions } from "wasm-ast-types";
|
2
2
|
import { BuilderFile } from "../builder";
|
3
|
-
declare const _default: (name: string,
|
3
|
+
declare const _default: (name: string, contractInfo: ContractInfo, outPath: string, recoilOptions?: RecoilOptions) => Promise<BuilderFile[]>;
|
4
4
|
export default _default;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { TSTypesOptions } from "wasm-ast-types";
|
1
|
+
import { ContractInfo, TSTypesOptions } from "wasm-ast-types";
|
2
2
|
import { BuilderFile } from "../builder";
|
3
|
-
declare const _default: (name: string,
|
3
|
+
declare const _default: (name: string, contractInfo: ContractInfo, outPath: string, tsTypesOptions?: TSTypesOptions) => Promise<BuilderFile[]>;
|
4
4
|
export default _default;
|
@@ -1,16 +1,10 @@
|
|
1
|
-
import {
|
2
|
-
import { IDLObject } from '../types';
|
1
|
+
import { ContractInfo } from 'wasm-ast-types';
|
3
2
|
interface ReadSchemaOpts {
|
4
3
|
schemaDir: string;
|
5
4
|
clean?: boolean;
|
6
5
|
}
|
7
|
-
|
8
|
-
schemas: JSONSchema[];
|
9
|
-
idlObject?: IDLObject;
|
10
|
-
}
|
11
|
-
export declare const readSchemas: ({ schemaDir, clean }: ReadSchemaOpts) => Promise<ReadSchemasValue>;
|
6
|
+
export declare const readSchemas: ({ schemaDir, clean }: ReadSchemaOpts) => Promise<ContractInfo>;
|
12
7
|
export declare const findQueryMsg: (schemas: any) => any;
|
13
8
|
export declare const findExecuteMsg: (schemas: any) => any;
|
14
9
|
export declare const findAndParseTypes: (schemas: any) => Promise<{}>;
|
15
|
-
export declare const getDefinitionSchema: (schemas: JSONSchema[]) => JSONSchema;
|
16
10
|
export {};
|