@cosmwasm/ts-codegen 0.29.0 → 0.30.1
Sign up to get free protection for your applications and to get access to all the features.
- package/main/utils/schemas.js +1 -2
- package/module/utils/schemas.js +1 -2
- package/package.json +4 -4
- package/src/utils/schemas.ts +1 -3
package/main/utils/schemas.js
CHANGED
@@ -127,8 +127,7 @@ exports.findQueryMsg = findQueryMsg;
|
|
127
127
|
|
128
128
|
var findExecuteMsg = function findExecuteMsg(schemas) {
|
129
129
|
var ExecuteMsg = schemas.find(function (schema) {
|
130
|
-
return schema.title
|
131
|
-
schema.title === 'ExecuteMsgForEmpty';
|
130
|
+
return schema.title.startsWith('ExecuteMsg');
|
132
131
|
});
|
133
132
|
return ExecuteMsg;
|
134
133
|
};
|
package/module/utils/schemas.js
CHANGED
@@ -72,8 +72,7 @@ export const findQueryMsg = schemas => {
|
|
72
72
|
return QueryMsg;
|
73
73
|
};
|
74
74
|
export const findExecuteMsg = schemas => {
|
75
|
-
const ExecuteMsg = schemas.find(schema => schema.title
|
76
|
-
schema.title === 'ExecuteMsgForEmpty');
|
75
|
+
const ExecuteMsg = schemas.find(schema => schema.title.startsWith('ExecuteMsg'));
|
77
76
|
return ExecuteMsg;
|
78
77
|
};
|
79
78
|
export const findAndParseTypes = async schemas => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cosmwasm/ts-codegen",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.30.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",
|
@@ -52,12 +52,12 @@
|
|
52
52
|
"@babel/cli": "7.18.10",
|
53
53
|
"@babel/eslint-parser": "^7.18.9",
|
54
54
|
"@babel/node": "^7.18.10",
|
55
|
+
"@cosmjs/cosmwasm-stargate": "0.30.1",
|
55
56
|
"@types/jest": "^28.1.6",
|
56
57
|
"ast-stringify": "0.1.0",
|
57
58
|
"babel-core": "7.0.0-bridge.0",
|
58
59
|
"babel-jest": "28.1.3",
|
59
60
|
"babel-watch": "^7.0.0",
|
60
|
-
"cosmwasm": "1.1.1",
|
61
61
|
"cross-env": "^7.0.2",
|
62
62
|
"eslint": "8.21.0",
|
63
63
|
"eslint-config-prettier": "^8.5.0",
|
@@ -96,7 +96,7 @@
|
|
96
96
|
"parse-package-name": "1.0.0",
|
97
97
|
"rimraf": "3.0.2",
|
98
98
|
"shelljs": "0.8.5",
|
99
|
-
"wasm-ast-types": "^0.
|
99
|
+
"wasm-ast-types": "^0.23.1"
|
100
100
|
},
|
101
|
-
"gitHead": "
|
101
|
+
"gitHead": "14dc44173f67be9b0b64dd642697c62a1a3d0211"
|
102
102
|
}
|
package/src/utils/schemas.ts
CHANGED
@@ -79,9 +79,7 @@ export const findQueryMsg = (schemas) => {
|
|
79
79
|
|
80
80
|
export const findExecuteMsg = (schemas) => {
|
81
81
|
const ExecuteMsg = schemas.find(schema =>
|
82
|
-
|
83
|
-
schema.title === 'ExecuteMsg_for_Empty' || // if cleanse is used, this is never
|
84
|
-
schema.title === 'ExecuteMsgForEmpty'
|
82
|
+
schema.title.startsWith('ExecuteMsg')
|
85
83
|
);
|
86
84
|
return ExecuteMsg;
|
87
85
|
};
|