@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.
@@ -85,6 +85,7 @@ var _default = /*#__PURE__*/function () {
85
85
  }
86
86
 
87
87
  if (typeHash.hasOwnProperty('Coin')) {
88
+ // @ts-ignore
88
89
  delete context.utils.Coin;
89
90
  }
90
91
 
@@ -72,6 +72,7 @@ var _default = /*#__PURE__*/function () {
72
72
  }
73
73
 
74
74
  if (typeHash.hasOwnProperty('Coin')) {
75
+ // @ts-ignore
75
76
  delete context.utils.Coin;
76
77
  }
77
78
 
@@ -95,6 +95,7 @@ var _default = /*#__PURE__*/function () {
95
95
  }
96
96
 
97
97
  if (typeHash.hasOwnProperty('Coin')) {
98
+ // @ts-ignore
98
99
  delete context.utils.Coin;
99
100
  }
100
101
 
@@ -74,6 +74,7 @@ var _default = /*#__PURE__*/function () {
74
74
  }
75
75
 
76
76
  if (typeHash.hasOwnProperty('Coin')) {
77
+ // @ts-ignore
77
78
  delete context.utils.Coin;
78
79
  }
79
80
 
@@ -49,6 +49,7 @@ export default (async (name, contractInfo, outPath, tsClientOptions) => {
49
49
  }
50
50
 
51
51
  if (typeHash.hasOwnProperty('Coin')) {
52
+ // @ts-ignore
52
53
  delete context.utils.Coin;
53
54
  }
54
55
 
@@ -36,6 +36,7 @@ export default (async (name, contractInfo, outPath, messageComposerOptions) => {
36
36
  }
37
37
 
38
38
  if (typeHash.hasOwnProperty('Coin')) {
39
+ // @ts-ignore
39
40
  delete context.utils.Coin;
40
41
  }
41
42
 
@@ -59,6 +59,7 @@ export default (async (contractName, contractInfo, outPath, reactQueryOptions) =
59
59
  }
60
60
 
61
61
  if (typeHash.hasOwnProperty('Coin')) {
62
+ // @ts-ignore
62
63
  delete context.utils.Coin;
63
64
  }
64
65
 
@@ -37,6 +37,7 @@ export default (async (name, contractInfo, outPath, recoilOptions) => {
37
37
  }
38
38
 
39
39
  if (typeHash.hasOwnProperty('Coin')) {
40
+ // @ts-ignore
40
41
  delete context.utils.Coin;
41
42
  }
42
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmwasm/ts-codegen",
3
- "version": "0.15.1",
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.10.0"
97
+ "wasm-ast-types": "^0.11.1"
98
98
  },
99
- "gitHead": "1de67fe821e940e8f29927115b670f6b38c1c359"
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, schemas: any[], outPath: string, tsClientOptions?: TSClientOptions) => Promise<BuilderFile[]>;
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, schemas: any[], outPath: string, messageComposerOptions?: MessageComposerOptions) => Promise<BuilderFile[]>;
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, schemas: any[], outPath: string, reactQueryOptions?: ReactQueryOptions) => Promise<BuilderFile[]>;
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, schemas: any[], outPath: string, recoilOptions?: RecoilOptions) => Promise<BuilderFile[]>;
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, schemas: any[], outPath: string, tsTypesOptions?: TSTypesOptions) => Promise<BuilderFile[]>;
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 { JSONSchema } from 'wasm-ast-types';
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
- interface ReadSchemasValue {
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 {};