@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 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
- pub use cw4::{AdminResponse, MemberListResponse, MemberResponse, TotalWeightResponse};
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://www.mintscan.io/juno/validators/junovaloper1pr5qgj4jg47lvsnejtfvk78090shvuctgdwdm5)
481
-
479
+ 🛠 Built by Cosmology — if you like our tools, please consider delegating to [our validator ⚛️](https://cosmology.tech/validator)
@@ -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.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.10.0"
97
+ "wasm-ast-types": "^0.11.0"
98
98
  },
99
- "gitHead": "94c5785d947e329df1cc9108cc33bb7a0c21af60"
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, 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 {};