@clarigen/cli 1.0.0-next.19 → 1.0.0-next.20
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/commands/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/generate/single.ts +1 -1
package/dist/commands/index.js
CHANGED
|
@@ -447,7 +447,7 @@ function generateContractMeta(contract) {
|
|
|
447
447
|
const variableLines = contract.variables.map((v) => {
|
|
448
448
|
let varLine = `${(0, import_core3.toCamelCase)(v.name)}: `;
|
|
449
449
|
const type = jsTypeFromAbiType(v.type);
|
|
450
|
-
const varJSON = (
|
|
450
|
+
const varJSON = serialize(v);
|
|
451
451
|
varLine += `${varJSON} as TypedAbiVariable<${type}>`;
|
|
452
452
|
return varLine;
|
|
453
453
|
});
|
package/dist/index.js
CHANGED
|
@@ -503,7 +503,7 @@ function generateContractMeta(contract) {
|
|
|
503
503
|
const variableLines = contract.variables.map((v) => {
|
|
504
504
|
let varLine = `${(0, import_core3.toCamelCase)(v.name)}: `;
|
|
505
505
|
const type = jsTypeFromAbiType(v.type);
|
|
506
|
-
const varJSON = (
|
|
506
|
+
const varJSON = serialize(v);
|
|
507
507
|
varLine += `${varJSON} as TypedAbiVariable<${type}>`;
|
|
508
508
|
return varLine;
|
|
509
509
|
});
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@clarigen/cli",
|
|
3
3
|
"description": "A CLI for generating a Typescript interface for a Clarity contract.",
|
|
4
4
|
"author": "Hank Stoever",
|
|
5
|
-
"version": "1.0.0-next.
|
|
5
|
+
"version": "1.0.0-next.20",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"main": "./dist/index.js",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "dad58c8368bb8a539346ca43f5a0d6b6371d2378"
|
|
72
72
|
}
|
package/src/generate/single.ts
CHANGED
|
@@ -26,7 +26,7 @@ export function generateContractMeta(contract: ContractMeta) {
|
|
|
26
26
|
const variableLines = contract.variables.map((v) => {
|
|
27
27
|
let varLine = `${toCamelCase(v.name)}: `;
|
|
28
28
|
const type = jsTypeFromAbiType(v.type);
|
|
29
|
-
const varJSON =
|
|
29
|
+
const varJSON = serialize(v);
|
|
30
30
|
varLine += `${varJSON} as TypedAbiVariable<${type}>`;
|
|
31
31
|
return varLine;
|
|
32
32
|
});
|