wasm-ast-types 0.22.0 → 0.23.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,7 +43,7 @@ var makeReactQuerySwitch = function makeReactQuerySwitch(varName) {
43
43
  var UTILS = {
44
44
  selectorFamily: 'recoil',
45
45
  MsgExecuteContract: 'cosmjs-types/cosmwasm/wasm/v1/tx',
46
- MsgExecuteContractEncodeObject: 'cosmwasm',
46
+ MsgExecuteContractEncodeObject: '@cosmjs/cosmwasm-stargate',
47
47
  Coin: '@cosmjs/amino',
48
48
  toUtf8: '@cosmjs/encoding',
49
49
  StdFee: '@cosmjs/amino',
@@ -25,7 +25,7 @@ const makeReactQuerySwitch = varName => {
25
25
  export const UTILS = {
26
26
  selectorFamily: 'recoil',
27
27
  MsgExecuteContract: 'cosmjs-types/cosmwasm/wasm/v1/tx',
28
- MsgExecuteContractEncodeObject: 'cosmwasm',
28
+ MsgExecuteContractEncodeObject: '@cosmjs/cosmwasm-stargate',
29
29
  Coin: '@cosmjs/amino',
30
30
  toUtf8: '@cosmjs/encoding',
31
31
  StdFee: '@cosmjs/amino',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wasm-ast-types",
3
- "version": "0.22.0",
3
+ "version": "0.23.1",
4
4
  "description": "CosmWasm TypeScript AST generation",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/pyramation/cosmwasm-typescript-gen/tree/master/packages/wasm-ast-types#readme",
@@ -88,5 +88,5 @@
88
88
  "case": "1.6.3",
89
89
  "deepmerge": "4.2.2"
90
90
  },
91
- "gitHead": "45ac1ece2da95df09f949d692c95c66de0205408"
91
+ "gitHead": "14dc44173f67be9b0b64dd642697c62a1a3d0211"
92
92
  }
@@ -41,7 +41,7 @@ const makeReactQuerySwitch = (varName) => {
41
41
  export const UTILS = {
42
42
  selectorFamily: 'recoil',
43
43
  MsgExecuteContract: 'cosmjs-types/cosmwasm/wasm/v1/tx',
44
- MsgExecuteContractEncodeObject: 'cosmwasm',
44
+ MsgExecuteContractEncodeObject: '@cosmjs/cosmwasm-stargate',
45
45
  Coin: '@cosmjs/amino',
46
46
  toUtf8: '@cosmjs/encoding',
47
47
  StdFee: '@cosmjs/amino',
@@ -1,9 +1,7 @@
1
1
  import * as t from '@babel/types';
2
- import { QueryMsg, ExecuteMsg } from '../types';
2
+ import { ExecuteMsg, JSONSchema, QueryMsg } from '../types';
3
3
  import { RenderContext } from '../context';
4
- import { JSONSchema } from '../types';
5
4
  export declare const CONSTANT_EXEC_PARAMS: (t.AssignmentPattern | t.Identifier)[];
6
- export declare const FIXED_EXECUTE_PARAMS: t.Identifier[];
7
5
  export declare const createWasmQueryMethod: (context: RenderContext, jsonschema: any) => t.ClassProperty;
8
6
  export declare const createQueryClass: (context: RenderContext, className: string, implementsClassName: string, queryMsg: QueryMsg) => t.ExportNamedDeclaration;
9
7
  export declare const getWasmMethodArgs: (context: RenderContext, jsonschema: JSONSchema) => t.ObjectProperty[];
@@ -25,7 +25,6 @@ export interface RecoilOptions {
25
25
  }
26
26
  export interface TSTypesOptions {
27
27
  enabled?: boolean;
28
- // deprecated
29
28
  aliasExecuteMsg?: boolean;
30
29
  aliasEntryPoints?: boolean;
31
30
  }
@@ -1,4 +1,4 @@
1
- import * as t from "@babel/types";
2
- import { ExecuteMsg, QueryMsg } from "../types";
3
- import { RenderContext } from "../context";
1
+ import * as t from '@babel/types';
2
+ import { ExecuteMsg, QueryMsg } from '../types';
3
+ import { RenderContext } from '../context';
4
4
  export declare const createMsgBuilderClass: (context: RenderContext, className: string, msg: ExecuteMsg | QueryMsg) => t.ExportNamedDeclaration;
@@ -1,12 +1,7 @@
1
1
  import * as t from '@babel/types';
2
2
  import { Field } from '../types';
3
3
  import { TSTypeAnnotation, TSExpressionWithTypeArguments } from '@babel/types';
4
- export declare const propertySignature: (name: string, typeAnnotation: t.TSTypeAnnotation, optional?: boolean) => {
5
- type: string;
6
- key: t.Identifier;
7
- typeAnnotation: t.TSTypeAnnotation;
8
- optional: boolean;
9
- };
4
+ export declare const propertySignature: (name: string, typeAnnotation: TSTypeAnnotation, optional?: boolean) => t.TSPropertySignature;
10
5
  export declare const identifier: (name: string, typeAnnotation: t.TSTypeAnnotation, optional?: boolean) => t.Identifier;
11
6
  export declare const tsTypeOperator: (typeAnnotation: t.TSType, operator: string) => t.TSTypeOperator;
12
7
  export declare const getMessageProperties: (msg: any) => any[];
@@ -0,0 +1,5 @@
1
+ import * as t from '@babel/types';
2
+ export declare const OPTIONAL_FUNDS_PARAM: t.Identifier;
3
+ export declare const OPTIONAL_FEE_PARAM: t.Identifier;
4
+ export declare const OPTIONAL_MEMO_PARAM: t.Identifier;
5
+ export declare const FIXED_EXECUTE_PARAMS: t.Identifier[];
@@ -1,3 +1,5 @@
1
1
  export * from './babel';
2
2
  export * from './types';
3
3
  export * from './ref';
4
+ export { OPTIONAL_FUNDS_PARAM } from './constants';
5
+ export { FIXED_EXECUTE_PARAMS } from './constants';
@@ -17,11 +17,6 @@ export declare const getPropertyType: (context: RenderContext, schema: JSONSchem
17
17
  type: any;
18
18
  optional: boolean;
19
19
  };
20
- export declare function getPropertySignatureFromProp(context: RenderContext, jsonschema: JSONSchema, prop: string, camelize: boolean): {
21
- type: string;
22
- key: t.Identifier;
23
- typeAnnotation: t.TSTypeAnnotation;
24
- optional: boolean;
25
- };
20
+ export declare function getPropertySignatureFromProp(context: RenderContext, jsonschema: JSONSchema, prop: string, camelize: boolean): t.TSPropertySignature;
26
21
  export declare const getParamsTypeAnnotation: (context: RenderContext, jsonschema: any, camelize?: boolean) => t.TSTypeAnnotation;
27
- export declare const createTypedObjectParams: (context: RenderContext, jsonschema: JSONSchema, camelize?: boolean) => t.ObjectPattern;
22
+ export declare const createTypedObjectParams: (context: RenderContext, jsonschema: JSONSchema, camelize?: boolean) => (t.Identifier | t.Pattern | t.RestElement);