@cosmwasm/ts-codegen 0.15.1 → 0.16.1
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/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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cosmwasm/ts-codegen",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.16.1",
|
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.1"
|
98
98
|
},
|
99
|
-
"gitHead": "
|
99
|
+
"gitHead": "4d6287ab9d17ea8cef91b183c00e9bae6e8529e1"
|
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 {};
|