@mtnts/contract-client 0.0.10 → 0.0.11
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/dist/cli.cjs +4 -3
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -31,7 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
// src/cli/index.ts
|
|
32
32
|
var cli_exports = {};
|
|
33
33
|
__export(cli_exports, {
|
|
34
|
-
|
|
34
|
+
main: () => main
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(cli_exports);
|
|
37
37
|
var import_globby = require("globby");
|
|
@@ -181,7 +181,7 @@ ${name}: ${createMethodsName(name)}`;
|
|
|
181
181
|
const allMehodsString = `type ContractMethods = RegistryHandlers<{${content}}, ContractOptions>`;
|
|
182
182
|
return createGlobalDeclaration(contractsTemplate + allMehodsString);
|
|
183
183
|
}
|
|
184
|
-
async function
|
|
184
|
+
async function main() {
|
|
185
185
|
const rootPath = process.cwd();
|
|
186
186
|
const _input = await ask("type relative path: ");
|
|
187
187
|
const input = _input ? _input + "/" : "";
|
|
@@ -205,7 +205,8 @@ async function generateBlockchainTypes() {
|
|
|
205
205
|
writePrettyFile(`structs.d.ts`, structsString, outDir);
|
|
206
206
|
writePrettyFile(`contracts.d.ts`, defineAllContracts(abis), outDir);
|
|
207
207
|
}
|
|
208
|
+
main();
|
|
208
209
|
// Annotate the CommonJS export names for ESM import in node:
|
|
209
210
|
0 && (module.exports = {
|
|
210
|
-
|
|
211
|
+
main
|
|
211
212
|
});
|
package/package.json
CHANGED