@cosmwasm/ts-codegen 0.9.2 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/main/generators/client.js +2 -2
  2. package/main/generators/types.js +1 -1
  3. package/module/generators/client.js +2 -2
  4. package/module/generators/types.js +1 -1
  5. package/package.json +3 -3
  6. package/types/{builder → src/builder}/builder.d.ts +0 -0
  7. package/types/{builder → src/builder}/index.d.ts +0 -0
  8. package/types/{bundler → src/bundler}/bundler.d.ts +0 -0
  9. package/types/{bundler → src/bundler}/index.d.ts +0 -0
  10. package/types/{cli.d.ts → src/cli.d.ts} +0 -0
  11. package/types/{cmds.d.ts → src/cmds.d.ts} +0 -0
  12. package/types/src/commands/create-boilerplate.d.ts +2 -0
  13. package/types/{commands → src/commands}/generate.d.ts +0 -0
  14. package/types/{commands/client.d.ts → src/commands/install.d.ts} +0 -0
  15. package/types/{file.d.ts → src/file.d.ts} +0 -0
  16. package/types/{generators → src/generators}/client.d.ts +2 -1
  17. package/types/{generators → src/generators}/message-composer.d.ts +1 -0
  18. package/types/{generators → src/generators}/react-query.d.ts +1 -0
  19. package/types/{generators → src/generators}/recoil.d.ts +1 -0
  20. package/types/{generators → src/generators}/types.d.ts +1 -0
  21. package/types/{index.d.ts → src/index.d.ts} +0 -0
  22. package/types/{ts-codegen.d.ts → src/ts-codegen.d.ts} +0 -0
  23. package/types/{types.d.ts → src/types.d.ts} +0 -0
  24. package/types/{utils → src/utils}/clean.d.ts +0 -0
  25. package/types/{utils → src/utils}/cleanse.d.ts +0 -0
  26. package/types/{utils → src/utils}/header.d.ts +0 -0
  27. package/types/{utils → src/utils}/index.d.ts +0 -0
  28. package/types/{utils → src/utils}/parse.d.ts +0 -0
  29. package/types/{utils → src/utils}/prompt.d.ts +0 -0
  30. package/types/{utils → src/utils}/schemas.d.ts +0 -0
  31. package/types/commands/message-composer.d.ts +0 -2
  32. package/types/commands/react-query.d.ts +0 -2
  33. package/types/commands/recoil.d.ts +0 -2
  34. package/types/commands/types.d.ts +0 -2
@@ -45,9 +45,9 @@ var _default = /*#__PURE__*/function () {
45
45
  switch (_context.prev = _context.next) {
46
46
  case 0:
47
47
  context = new w.RenderContext((0, _utils.getDefinitionSchema)(schemas), {
48
- tsClient: tsClientOptions !== null && tsClientOptions !== void 0 ? tsClientOptions : {}
48
+ client: tsClientOptions !== null && tsClientOptions !== void 0 ? tsClientOptions : {}
49
49
  });
50
- options = context.options.tsClient;
50
+ options = context.options.client;
51
51
  localname = (0, _case.pascal)(name) + '.client.ts';
52
52
  TypesFile = (0, _case.pascal)(name) + '.types';
53
53
  QueryMsg = (0, _utils.findQueryMsg)(schemas);
@@ -47,7 +47,7 @@ var _default = /*#__PURE__*/function () {
47
47
  switch (_context.prev = _context.next) {
48
48
  case 0:
49
49
  context = new _wasmAstTypes.RenderContext((0, _utils.getDefinitionSchema)(schemas), {
50
- tsClient: tsTypesOptions !== null && tsTypesOptions !== void 0 ? tsTypesOptions : {}
50
+ types: tsTypesOptions !== null && tsTypesOptions !== void 0 ? tsTypesOptions : {}
51
51
  });
52
52
  options = context.options.types;
53
53
  localname = (0, _case.pascal)(name) + '.types.ts';
@@ -11,9 +11,9 @@ import { findAndParseTypes, findExecuteMsg, findQueryMsg, getDefinitionSchema }
11
11
  import { RenderContext } from "wasm-ast-types";
12
12
  export default (async (name, schemas, outPath, tsClientOptions) => {
13
13
  const context = new RenderContext(getDefinitionSchema(schemas), {
14
- tsClient: tsClientOptions ?? {}
14
+ client: tsClientOptions ?? {}
15
15
  });
16
- const options = context.options.tsClient;
16
+ const options = context.options.client;
17
17
  const localname = pascal(name) + '.client.ts';
18
18
  const TypesFile = pascal(name) + '.types';
19
19
  const QueryMsg = findQueryMsg(schemas);
@@ -10,7 +10,7 @@ import { findAndParseTypes, findExecuteMsg, getDefinitionSchema } from '../utils
10
10
  import { RenderContext } from "wasm-ast-types";
11
11
  export default (async (name, schemas, outPath, tsTypesOptions) => {
12
12
  const context = new RenderContext(getDefinitionSchema(schemas), {
13
- tsClient: tsTypesOptions ?? {}
13
+ types: tsTypesOptions ?? {}
14
14
  });
15
15
  const options = context.options.types;
16
16
  const localname = pascal(name) + '.types.ts';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmwasm/ts-codegen",
3
- "version": "0.9.2",
3
+ "version": "0.10.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",
@@ -93,7 +93,7 @@
93
93
  "parse-package-name": "1.0.0",
94
94
  "rimraf": "3.0.2",
95
95
  "shelljs": "0.8.5",
96
- "wasm-ast-types": "^0.7.0"
96
+ "wasm-ast-types": "^0.8.0"
97
97
  },
98
- "gitHead": "d8fee5e217d2cecf5e2e7534245b6f3fb2d883c4"
98
+ "gitHead": "93256e4c8579d792ca727ef8f1e9ac47a5231726"
99
99
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ declare const _default: (argv: any) => Promise<any>;
2
+ export default _default;
File without changes
File without changes
@@ -1,3 +1,4 @@
1
+ import { TSClientOptions } from "wasm-ast-types";
1
2
  import { BuilderFile } from "../builder";
2
- declare const _default: (name: string, schemas: any[], outPath: string, tsClientOptions?: TsClientOptions) => Promise<BuilderFile[]>;
3
+ declare const _default: (name: string, schemas: any[], outPath: string, tsClientOptions?: TSClientOptions) => Promise<BuilderFile[]>;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ import { MessageComposerOptions } from "wasm-ast-types";
1
2
  import { BuilderFile } from "../builder";
2
3
  declare const _default: (name: string, schemas: any[], outPath: string, messageComposerOptions?: MessageComposerOptions) => Promise<BuilderFile[]>;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ import { ReactQueryOptions } from "wasm-ast-types";
1
2
  import { BuilderFile } from "../builder";
2
3
  declare const _default: (contractName: string, schemas: any[], outPath: string, reactQueryOptions?: ReactQueryOptions) => Promise<BuilderFile[]>;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ import { RecoilOptions } from "wasm-ast-types";
1
2
  import { BuilderFile } from "../builder";
2
3
  declare const _default: (name: string, schemas: any[], outPath: string, recoilOptions?: RecoilOptions) => Promise<BuilderFile[]>;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ import { TSTypesOptions } from "wasm-ast-types";
1
2
  import { BuilderFile } from "../builder";
2
3
  declare const _default: (name: string, schemas: any[], outPath: string, tsTypesOptions?: TSTypesOptions) => Promise<BuilderFile[]>;
3
4
  export default _default;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- declare const _default: (argv: any) => Promise<void>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: (argv: any) => Promise<void>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: (argv: any) => Promise<void>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: (argv: any) => Promise<void>;
2
- export default _default;