@algorandfoundation/algokit-client-generator 2.6.0 → 3.0.0-beta.1
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/bin/cli.mjs +4 -0
- package/cli.d.ts +0 -1
- package/cli.js +47 -49
- package/cli.js.map +1 -1
- package/cli.mjs +56 -0
- package/cli.mjs.map +1 -0
- package/client/app-types.d.ts +0 -1
- package/client/app-types.js +92 -97
- package/client/app-types.js.map +1 -1
- package/client/app-types.mjs +135 -0
- package/client/app-types.mjs.map +1 -0
- package/client/call-client.d.ts +0 -1
- package/client/call-client.js +145 -143
- package/client/call-client.js.map +1 -1
- package/client/call-client.mjs +320 -0
- package/client/call-client.mjs.map +1 -0
- package/client/call-composer-types.d.ts +0 -1
- package/client/call-composer-types.js +60 -62
- package/client/call-composer-types.js.map +1 -1
- package/client/call-composer-types.mjs +122 -0
- package/client/call-composer-types.mjs.map +1 -0
- package/client/call-composer.d.ts +0 -1
- package/client/call-composer.js +76 -78
- package/client/call-composer.js.map +1 -1
- package/client/call-composer.mjs +128 -0
- package/client/call-composer.mjs.map +1 -0
- package/client/call-factory.d.ts +0 -1
- package/client/call-factory.js +62 -62
- package/client/call-factory.js.map +1 -1
- package/client/call-factory.mjs +121 -0
- package/client/call-factory.mjs.map +1 -0
- package/client/deploy-types.d.ts +1 -2
- package/client/deploy-types.js +42 -40
- package/client/deploy-types.js.map +1 -1
- package/client/deploy-types.mjs +94 -0
- package/client/deploy-types.mjs.map +1 -0
- package/client/generate.d.ts +2 -2
- package/client/generate.js +28 -27
- package/client/generate.js.map +1 -1
- package/client/generate.mjs +36 -0
- package/client/generate.mjs.map +1 -0
- package/client/generator-context.d.ts +7 -2
- package/client/generator-context.js +39 -38
- package/client/generator-context.js.map +1 -1
- package/client/generator-context.mjs +21 -0
- package/client/generator-context.mjs.map +1 -0
- package/client/helpers/get-call-config-summary.d.ts +1 -2
- package/client/helpers/get-call-config-summary.js +8 -25
- package/client/helpers/get-call-config-summary.js.map +1 -1
- package/client/helpers/get-call-config-summary.mjs +55 -0
- package/client/helpers/get-call-config-summary.mjs.map +1 -0
- package/client/helpers/get-equivalent-type.d.ts +0 -1
- package/client/helpers/get-equivalent-type.js +21 -20
- package/client/helpers/get-equivalent-type.js.map +1 -1
- package/client/helpers/get-equivalent-type.mjs +57 -0
- package/client/helpers/get-equivalent-type.mjs.map +1 -0
- package/client/imports.d.ts +0 -1
- package/client/imports.js +4 -4
- package/client/imports.js.map +1 -1
- package/client/imports.mjs +28 -0
- package/client/imports.mjs.map +1 -0
- package/client/utility-types.d.ts +0 -1
- package/client/utility-types.js +27 -25
- package/client/utility-types.js.map +1 -1
- package/client/utility-types.mjs +48 -0
- package/client/utility-types.mjs.map +1 -0
- package/dev.d.ts +0 -1
- package/index.d.ts +0 -1
- package/index.js +14 -12
- package/index.js.map +1 -1
- package/index.mjs +4 -0
- package/index.mjs.map +1 -0
- package/output/writer.d.ts +0 -1
- package/output/writer.js +45 -38
- package/output/writer.js.map +1 -1
- package/output/writer.mjs +140 -0
- package/output/writer.mjs.map +1 -0
- package/package.json +9 -4
- package/schema/application.schema.json.js +375 -0
- package/schema/application.schema.json.js.map +1 -0
- package/schema/application.schema.json.mjs +364 -0
- package/schema/application.schema.json.mjs.map +1 -0
- package/schema/contract.schema.json.js +160 -0
- package/schema/contract.schema.json.js.map +1 -0
- package/schema/contract.schema.json.mjs +149 -0
- package/schema/contract.schema.json.mjs.map +1 -0
- package/schema/load.d.ts +0 -1
- package/schema/load.js +16 -41
- package/schema/load.js.map +1 -1
- package/schema/load.mjs +23 -0
- package/schema/load.mjs.map +1 -0
- package/tests/approval-tests.spec.d.ts +0 -1
- package/tests/util.d.ts +1 -0
- package/util/boom.d.ts +0 -1
- package/util/boom.js +4 -4
- package/util/boom.js.map +1 -1
- package/util/boom.mjs +6 -0
- package/util/boom.mjs.map +1 -0
- package/util/color-console.d.ts +0 -1
- package/util/color-console.js +12 -13
- package/util/color-console.js.map +1 -1
- package/util/color-console.mjs +17 -0
- package/util/color-console.mjs.map +1 -0
- package/util/not-falsy.d.ts +0 -1
- package/util/sanitization.d.ts +12 -6
- package/util/sanitization.js +54 -15
- package/util/sanitization.js.map +1 -1
- package/util/sanitization.mjs +54 -0
- package/util/sanitization.mjs.map +1 -0
- package/bin/cli.js +0 -4
- package/cli.d.ts.map +0 -1
- package/client/app-types.d.ts.map +0 -1
- package/client/call-client.d.ts.map +0 -1
- package/client/call-composer-types.d.ts.map +0 -1
- package/client/call-composer.d.ts.map +0 -1
- package/client/call-factory.d.ts.map +0 -1
- package/client/deploy-types.d.ts.map +0 -1
- package/client/generate.d.ts.map +0 -1
- package/client/generator-context.d.ts.map +0 -1
- package/client/helpers/get-call-config-summary.d.ts.map +0 -1
- package/client/helpers/get-equivalent-type.d.ts.map +0 -1
- package/client/imports.d.ts.map +0 -1
- package/client/utility-types.d.ts.map +0 -1
- package/dev.d.ts.map +0 -1
- package/dev.js +0 -5
- package/dev.js.map +0 -1
- package/index.d.ts.map +0 -1
- package/output/writer.d.ts.map +0 -1
- package/schema/application.schema.json +0 -354
- package/schema/contract.schema.json +0 -139
- package/schema/load.d.ts.map +0 -1
- package/tests/approval-tests.spec.d.ts.map +0 -1
- package/tests/approval-tests.spec.js +0 -24
- package/tests/approval-tests.spec.js.map +0 -1
- package/util/boom.d.ts.map +0 -1
- package/util/color-console.d.ts.map +0 -1
- package/util/not-falsy.d.ts.map +0 -1
- package/util/not-falsy.js +0 -6
- package/util/not-falsy.js.map +0 -1
- package/util/sanitization.d.ts.map +0 -1
package/util/sanitization.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sanitization.js","
|
|
1
|
+
{"version":3,"file":"sanitization.js","sources":["../../src/util/sanitization.ts"],"sourcesContent":["import { camelCase, pascalCase } from 'change-case'\n\nconst replaceInvalidWithUnderscore = (value: string) => value.replace(/[^a-z0-9_$]+/gi, '_')\n\nconst escapeQuotes = (value: string) => value.replace(/['\"]/g, (val) => `\\\\${val}`)\n\nexport interface Sanitizer {\n makeSafeTypeIdentifier(value: string): string\n makeSafeMethodIdentifier(value: string): string\n makeSafeVariableIdentifier(value: string): string\n makeSafePropertyIdentifier(value: string): string\n makeSafeStringTypeLiteral(value: string): string\n getSafeMemberAccessor(value: string): string\n isSafeVariableIdentifier(value: string): boolean\n}\n\nconst defaultSanitiser: Sanitizer = {\n makeSafePropertyIdentifier(value: string) {\n return camelCase(replaceInvalidWithUnderscore(value))\n },\n makeSafeTypeIdentifier(value: string) {\n return pascalCase(replaceInvalidWithUnderscore(value))\n },\n makeSafeMethodIdentifier(value: string) {\n return camelCase(replaceInvalidWithUnderscore(value))\n },\n isSafeVariableIdentifier(value: string) {\n return /^[a-z$_][a-z0-9_$]*$/i.test(value)\n },\n makeSafeVariableIdentifier(value: string) {\n return camelCase(replaceInvalidWithUnderscore(value))\n },\n makeSafeStringTypeLiteral(value: string): string {\n return escapeQuotes(value)\n },\n getSafeMemberAccessor(value: string): string {\n return this.isSafeVariableIdentifier(value) ? `.${value}` : `[${value}]`\n },\n}\n\nconst preservingSanitiser: Sanitizer = {\n isSafeVariableIdentifier(value: string): boolean {\n return /^[a-z$_][a-z0-9_$]*$/i.test(value)\n },\n makeSafeMethodIdentifier(value: string): string {\n return this.isSafeVariableIdentifier(value) ? value : `\"${escapeQuotes(value)}\"`\n },\n makeSafePropertyIdentifier(value: string): string {\n return this.isSafeVariableIdentifier(value) ? value : `\"${escapeQuotes(value)}\"`\n },\n makeSafeTypeIdentifier(value: string): string {\n return replaceInvalidWithUnderscore(value)\n },\n makeSafeVariableIdentifier(value: string): string {\n return replaceInvalidWithUnderscore(value)\n },\n makeSafeStringTypeLiteral(value: string): string {\n return escapeQuotes(value)\n },\n getSafeMemberAccessor(value: string): string {\n return this.isSafeVariableIdentifier(value) ? `.${value}` : `[${value}]`\n },\n}\n\nexport const getSanitizer = ({ preserveNames }: { preserveNames: boolean }) => (preserveNames ? preservingSanitiser : defaultSanitiser)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OAAO,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;KAC3C;AACD,IAAA,wBAAwB,CAAC,KAAa,EAAA;AACpC,QAAA,OAAO,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,CAAI,CAAA,EAAA,YAAY,CAAC,KAAK,CAAC,GAAG,CAAA;KACjF;AACD,IAAA,0BAA0B,CAAC,KAAa,EAAA;AACtC,QAAA,OAAO,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,CAAI,CAAA,EAAA,YAAY,CAAC,KAAK,CAAC,GAAG,CAAA;KACjF;AACD,IAAA,sBAAsB,CAAC,KAAa,EAAA;AAClC,QAAA,OAAO,4BAA4B,CAAC,KAAK,CAAC,CAAA;KAC3C;AACD,IAAA,0BAA0B,CAAC,KAAa,EAAA;AACtC,QAAA,OAAO,4BAA4B,CAAC,KAAK,CAAC,CAAA;KAC3C;AACD,IAAA,yBAAyB,CAAC,KAAa,EAAA;AACrC,QAAA,OAAO,YAAY,CAAC,KAAK,CAAC,CAAA;KAC3B;AACD,IAAA,qBAAqB,CAAC,KAAa,EAAA;AACjC,QAAA,OAAO,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,GAAG,CAAI,CAAA,EAAA,KAAK,EAAE,GAAG,CAAI,CAAA,EAAA,KAAK,GAAG,CAAA;KACzE;CACF,CAAA;MAEY,YAAY,GAAG,CAAC,EAAE,aAAa,EAA8B,MAAM,aAAa,GAAG,mBAAmB,GAAG,gBAAgB;;;;"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { camelCase, pascalCase } from 'change-case';
|
|
2
|
+
|
|
3
|
+
const replaceInvalidWithUnderscore = (value) => value.replace(/[^a-z0-9_$]+/gi, '_');
|
|
4
|
+
const escapeQuotes = (value) => value.replace(/['"]/g, (val) => `\\${val}`);
|
|
5
|
+
const defaultSanitiser = {
|
|
6
|
+
makeSafePropertyIdentifier(value) {
|
|
7
|
+
return camelCase(replaceInvalidWithUnderscore(value));
|
|
8
|
+
},
|
|
9
|
+
makeSafeTypeIdentifier(value) {
|
|
10
|
+
return pascalCase(replaceInvalidWithUnderscore(value));
|
|
11
|
+
},
|
|
12
|
+
makeSafeMethodIdentifier(value) {
|
|
13
|
+
return camelCase(replaceInvalidWithUnderscore(value));
|
|
14
|
+
},
|
|
15
|
+
isSafeVariableIdentifier(value) {
|
|
16
|
+
return /^[a-z$_][a-z0-9_$]*$/i.test(value);
|
|
17
|
+
},
|
|
18
|
+
makeSafeVariableIdentifier(value) {
|
|
19
|
+
return camelCase(replaceInvalidWithUnderscore(value));
|
|
20
|
+
},
|
|
21
|
+
makeSafeStringTypeLiteral(value) {
|
|
22
|
+
return escapeQuotes(value);
|
|
23
|
+
},
|
|
24
|
+
getSafeMemberAccessor(value) {
|
|
25
|
+
return this.isSafeVariableIdentifier(value) ? `.${value}` : `[${value}]`;
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
const preservingSanitiser = {
|
|
29
|
+
isSafeVariableIdentifier(value) {
|
|
30
|
+
return /^[a-z$_][a-z0-9_$]*$/i.test(value);
|
|
31
|
+
},
|
|
32
|
+
makeSafeMethodIdentifier(value) {
|
|
33
|
+
return this.isSafeVariableIdentifier(value) ? value : `"${escapeQuotes(value)}"`;
|
|
34
|
+
},
|
|
35
|
+
makeSafePropertyIdentifier(value) {
|
|
36
|
+
return this.isSafeVariableIdentifier(value) ? value : `"${escapeQuotes(value)}"`;
|
|
37
|
+
},
|
|
38
|
+
makeSafeTypeIdentifier(value) {
|
|
39
|
+
return replaceInvalidWithUnderscore(value);
|
|
40
|
+
},
|
|
41
|
+
makeSafeVariableIdentifier(value) {
|
|
42
|
+
return replaceInvalidWithUnderscore(value);
|
|
43
|
+
},
|
|
44
|
+
makeSafeStringTypeLiteral(value) {
|
|
45
|
+
return escapeQuotes(value);
|
|
46
|
+
},
|
|
47
|
+
getSafeMemberAccessor(value) {
|
|
48
|
+
return this.isSafeVariableIdentifier(value) ? `.${value}` : `[${value}]`;
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
const getSanitizer = ({ preserveNames }) => (preserveNames ? preservingSanitiser : defaultSanitiser);
|
|
52
|
+
|
|
53
|
+
export { getSanitizer };
|
|
54
|
+
//# sourceMappingURL=sanitization.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sanitization.mjs","sources":["../../src/util/sanitization.ts"],"sourcesContent":["import { camelCase, pascalCase } from 'change-case'\n\nconst replaceInvalidWithUnderscore = (value: string) => value.replace(/[^a-z0-9_$]+/gi, '_')\n\nconst escapeQuotes = (value: string) => value.replace(/['\"]/g, (val) => `\\\\${val}`)\n\nexport interface Sanitizer {\n makeSafeTypeIdentifier(value: string): string\n makeSafeMethodIdentifier(value: string): string\n makeSafeVariableIdentifier(value: string): string\n makeSafePropertyIdentifier(value: string): string\n makeSafeStringTypeLiteral(value: string): string\n getSafeMemberAccessor(value: string): string\n isSafeVariableIdentifier(value: string): boolean\n}\n\nconst defaultSanitiser: Sanitizer = {\n makeSafePropertyIdentifier(value: string) {\n return camelCase(replaceInvalidWithUnderscore(value))\n },\n makeSafeTypeIdentifier(value: string) {\n return pascalCase(replaceInvalidWithUnderscore(value))\n },\n makeSafeMethodIdentifier(value: string) {\n return camelCase(replaceInvalidWithUnderscore(value))\n },\n isSafeVariableIdentifier(value: string) {\n return /^[a-z$_][a-z0-9_$]*$/i.test(value)\n },\n makeSafeVariableIdentifier(value: string) {\n return camelCase(replaceInvalidWithUnderscore(value))\n },\n makeSafeStringTypeLiteral(value: string): string {\n return escapeQuotes(value)\n },\n getSafeMemberAccessor(value: string): string {\n return this.isSafeVariableIdentifier(value) ? `.${value}` : `[${value}]`\n },\n}\n\nconst preservingSanitiser: Sanitizer = {\n isSafeVariableIdentifier(value: string): boolean {\n return /^[a-z$_][a-z0-9_$]*$/i.test(value)\n },\n makeSafeMethodIdentifier(value: string): string {\n return this.isSafeVariableIdentifier(value) ? value : `\"${escapeQuotes(value)}\"`\n },\n makeSafePropertyIdentifier(value: string): string {\n return this.isSafeVariableIdentifier(value) ? value : `\"${escapeQuotes(value)}\"`\n },\n makeSafeTypeIdentifier(value: string): string {\n return replaceInvalidWithUnderscore(value)\n },\n makeSafeVariableIdentifier(value: string): string {\n return replaceInvalidWithUnderscore(value)\n },\n makeSafeStringTypeLiteral(value: string): string {\n return escapeQuotes(value)\n },\n getSafeMemberAccessor(value: string): string {\n return this.isSafeVariableIdentifier(value) ? `.${value}` : `[${value}]`\n },\n}\n\nexport const getSanitizer = ({ preserveNames }: { preserveNames: boolean }) => (preserveNames ? preservingSanitiser : defaultSanitiser)\n"],"names":[],"mappings":";;AAEA,MAAM,4BAA4B,GAAG,CAAC,KAAa,KAAK,KAAK,CAAC,OAAO,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAA;AAE5F,MAAM,YAAY,GAAG,CAAC,KAAa,KAAK,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,GAAG,KAAK,CAAK,EAAA,EAAA,GAAG,CAAE,CAAA,CAAC,CAAA;AAYnF,MAAM,gBAAgB,GAAc;AAClC,IAAA,0BAA0B,CAAC,KAAa,EAAA;AACtC,QAAA,OAAO,SAAS,CAAC,4BAA4B,CAAC,KAAK,CAAC,CAAC,CAAA;KACtD;AACD,IAAA,sBAAsB,CAAC,KAAa,EAAA;AAClC,QAAA,OAAO,UAAU,CAAC,4BAA4B,CAAC,KAAK,CAAC,CAAC,CAAA;KACvD;AACD,IAAA,wBAAwB,CAAC,KAAa,EAAA;AACpC,QAAA,OAAO,SAAS,CAAC,4BAA4B,CAAC,KAAK,CAAC,CAAC,CAAA;KACtD;AACD,IAAA,wBAAwB,CAAC,KAAa,EAAA;AACpC,QAAA,OAAO,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;KAC3C;AACD,IAAA,0BAA0B,CAAC,KAAa,EAAA;AACtC,QAAA,OAAO,SAAS,CAAC,4BAA4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A,KAAK,GAAG,CAAA;KACzE;CACF,CAAA;MAEY,YAAY,GAAG,CAAC,EAAE,aAAa,EAA8B,MAAM,aAAa,GAAG,mBAAmB,GAAG,gBAAgB;;;;"}
|
package/bin/cli.js
DELETED
package/cli.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAOA,wBAAgB,GAAG,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QA0C3D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-types.d.ts","sourceRoot":"","sources":["../../src/client/app-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAqC,aAAa,EAAqC,MAAM,kBAAkB,CAAA;AAKtH,wBAAiB,QAAQ,CAAC,GAAG,EAAE,gBAAgB,GAAG,aAAa,CAyE9D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"call-client.d.ts","sourceRoot":"","sources":["../../src/client/call-client.ts"],"names":[],"mappings":"AACA,OAAO,EAAqC,aAAa,EAA6C,MAAM,kBAAkB,CAAA;AAG9H,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAItD,wBAAiB,UAAU,CAAC,GAAG,EAAE,gBAAgB,GAAG,aAAa,CA4EhE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"call-composer-types.d.ts","sourceRoot":"","sources":["../../src/client/call-composer-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,aAAa,EAA6B,MAAM,kBAAkB,CAAA;AACnG,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAMtD,wBAAiB,gBAAgB,CAAC,GAAG,EAAE,gBAAgB,GAAG,aAAa,CA6EtE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"call-composer.d.ts","sourceRoot":"","sources":["../../src/client/call-composer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,aAAa,EAAa,MAAM,kBAAkB,CAAA;AAC9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAMtD,wBAAiB,aAAa,CAAC,GAAG,EAAE,gBAAgB,GAAG,aAAa,CA4DnE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"call-factory.d.ts","sourceRoot":"","sources":["../../src/client/call-factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAqC,aAAa,EAA6B,MAAM,kBAAkB,CAAA;AAG9G,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAItD,wBAAiB,WAAW,CAAC,GAAG,EAAE,gBAAgB,GAAG,aAAa,CAcjE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-types.d.ts","sourceRoot":"","sources":["../../src/client/deploy-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,aAAa,EAA6B,MAAM,kBAAkB,CAAA;AAE9G,OAAO,EAAa,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,WAAW,EAAc,MAAM,uBAAuB,CAAA;AAG/D,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,gBAAgB,EAAE,GAAG,EAAE,WAAW;;;EAapF;AAED,wBAAiB,WAAW,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,gBAAgB,GAAG,aAAa,CAwEjF"}
|
package/client/generate.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/client/generate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAmB,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAUnD,wBAAiB,QAAQ,CAAC,GAAG,EAAE,WAAW,GAAG,aAAa,CA0BzD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generator-context.d.ts","sourceRoot":"","sources":["../../src/client/generator-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,iBAAiB,EAAwB,MAAM,mCAAmC,CAAA;AAI3F,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,EAAE,WAAW,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,iBAAiB,CAAA;IAC7B,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACpD,CAAA;AAED,eAAO,MAAM,sBAAsB,QAAS,WAAW;;;;;CAYrD,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-call-config-summary.d.ts","sourceRoot":"","sources":["../../../src/client/helpers/get-call-config-summary.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAA+B,MAAM,0BAA0B,CAAA;AAEnF,eAAO,MAAM,SAAS,eAAiB,CAAA;AAEvC,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,OAAO,SAAS,CAAA;AAExD,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAA;AAEhD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,aAAa,EAAE,UAAU,CAAA;IACzB,WAAW,EAAE,UAAU,CAAA;IACvB,aAAa,EAAE,UAAU,CAAA;IACzB,aAAa,EAAE,UAAU,CAAA;IACzB,YAAY,EAAE,UAAU,CAAA;IACxB,eAAe,EAAE,UAAU,CAAA;CAC5B,CAAA;AACD,eAAO,MAAM,oBAAoB,QAAS,WAAW,sBAoBpD,CAAA;AAED,eAAO,MAAM,mBAAmB,QAAS,WAAW,UAAU,gBAAgB,WAO7E,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-equivalent-type.d.ts","sourceRoot":"","sources":["../../../src/client/helpers/get-equivalent-type.ts"],"names":[],"mappings":"AAeA,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAmDxF"}
|
package/client/imports.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../../src/client/imports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,wBAAiB,OAAO,IAAI,aAAa,CAwBxC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utility-types.d.ts","sourceRoot":"","sources":["../../src/client/utility-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,aAAa,EAAqC,MAAM,kBAAkB,CAAA;AAE3G,wBAAiB,YAAY,IAAI,aAAa,CAwC7C;AAED,eAAO,MAAM,iBAAiB;;;;;;CAM7B,CAAA"}
|
package/dev.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../src/dev.ts"],"names":[],"mappings":""}
|
package/dev.js
DELETED
package/dev.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../src/dev.ts"],"names":[],"mappings":";;AAAA,+BAA2B;AAC3B,IAAA,SAAG,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA"}
|
package/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,uB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UAiB7F;AAED,wBAAiB,MAAM,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC,IAAI,GAAG,aAAa,CAAC,kCAO5D;AAED,wBAAiB,MAAM,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC,IAAI,GAAG,aAAa,CAAC,kCAO5D;AAED,wBAAiB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,oCAmBxI"}
|
|
@@ -1,354 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
-
"title": "AlgoAppSpec",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"required": [
|
|
6
|
-
"contract",
|
|
7
|
-
"schema",
|
|
8
|
-
"source",
|
|
9
|
-
"state"
|
|
10
|
-
],
|
|
11
|
-
"additionalProperties": true,
|
|
12
|
-
"properties": {
|
|
13
|
-
"hints": {
|
|
14
|
-
"type": "object",
|
|
15
|
-
"additionalProperties": {
|
|
16
|
-
"$ref": "#/definitions/Hint"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"source": {
|
|
20
|
-
"$ref": "#/definitions/AppSources"
|
|
21
|
-
},
|
|
22
|
-
"contract": {
|
|
23
|
-
"$ref": "contract.schema.json"
|
|
24
|
-
},
|
|
25
|
-
"schema": {
|
|
26
|
-
"$ref": "#/definitions/SchemaSpec"
|
|
27
|
-
},
|
|
28
|
-
"state": {
|
|
29
|
-
"$ref": "#/definitions/StateSchemaSpec"
|
|
30
|
-
},
|
|
31
|
-
"bare_call_config": {
|
|
32
|
-
"$ref": "#/definitions/CallConfig"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"definitions": {
|
|
36
|
-
"AVMType": {
|
|
37
|
-
"description": "AVM data type",
|
|
38
|
-
"enum": [
|
|
39
|
-
"uint64",
|
|
40
|
-
"bytes"
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
"DeclaredSchemaValueSpec": {
|
|
44
|
-
"type": "object",
|
|
45
|
-
"required": [
|
|
46
|
-
"type",
|
|
47
|
-
"key"
|
|
48
|
-
],
|
|
49
|
-
"additionalProperties": true,
|
|
50
|
-
"properties": {
|
|
51
|
-
"type": {
|
|
52
|
-
"description": "The type of the value",
|
|
53
|
-
"$ref": "#/definitions/AVMType"
|
|
54
|
-
},
|
|
55
|
-
"key": {
|
|
56
|
-
"description": "The name of the key",
|
|
57
|
-
"type": "string"
|
|
58
|
-
},
|
|
59
|
-
"descr": {
|
|
60
|
-
"description": "A description of the variable",
|
|
61
|
-
"type": "string"
|
|
62
|
-
},
|
|
63
|
-
"static": {
|
|
64
|
-
"description": "Whether the value is set statically (at create time only) or dynamically",
|
|
65
|
-
"type": "boolean"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"ReservedSchemaValueSpec": {
|
|
70
|
-
"type": "object",
|
|
71
|
-
"required": [
|
|
72
|
-
"type"
|
|
73
|
-
],
|
|
74
|
-
"properties": {
|
|
75
|
-
"type": {
|
|
76
|
-
"description": "The type of the value",
|
|
77
|
-
"$ref": "#/definitions/AVMType"
|
|
78
|
-
},
|
|
79
|
-
"descr": {
|
|
80
|
-
"description": "A description of the variable",
|
|
81
|
-
"type": "string"
|
|
82
|
-
},
|
|
83
|
-
"max_keys": {
|
|
84
|
-
"description": "The maximum number of slots to reserve",
|
|
85
|
-
"type": "integer"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
"StateSchemaSpec": {
|
|
90
|
-
"type": "object",
|
|
91
|
-
"additionalProperties": true,
|
|
92
|
-
"required": [
|
|
93
|
-
"global",
|
|
94
|
-
"local"
|
|
95
|
-
],
|
|
96
|
-
"properties": {
|
|
97
|
-
"global": {
|
|
98
|
-
"$ref": "#/definitions/StateSchema"
|
|
99
|
-
},
|
|
100
|
-
"local": {
|
|
101
|
-
"$ref": "#/definitions/StateSchema"
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
"StateSchema": {
|
|
106
|
-
"type": "object",
|
|
107
|
-
"additionalProperties": true,
|
|
108
|
-
"required": [
|
|
109
|
-
"num_byte_slices",
|
|
110
|
-
"num_uints"
|
|
111
|
-
],
|
|
112
|
-
"properties": {
|
|
113
|
-
"num_uints": {
|
|
114
|
-
"type": "integer"
|
|
115
|
-
},
|
|
116
|
-
"num_byte_slices": {
|
|
117
|
-
"type": "integer"
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
"SchemaSpec": {
|
|
122
|
-
"description": "The schema for global and local storage",
|
|
123
|
-
"type": "object",
|
|
124
|
-
"additionalProperties": true,
|
|
125
|
-
"properties": {
|
|
126
|
-
"global": {
|
|
127
|
-
"$ref": "#/definitions/Schema"
|
|
128
|
-
},
|
|
129
|
-
"local": {
|
|
130
|
-
"$ref": "#/definitions/Schema"
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
"Schema": {
|
|
135
|
-
"type": "object",
|
|
136
|
-
"additionalProperties": true,
|
|
137
|
-
"properties": {
|
|
138
|
-
"declared": {
|
|
139
|
-
"type": "object",
|
|
140
|
-
"additionalProperties": {
|
|
141
|
-
"$ref": "#/definitions/DeclaredSchemaValueSpec"
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
"reserved": {
|
|
145
|
-
"type": "object",
|
|
146
|
-
"additionalProperties": {
|
|
147
|
-
"$ref": "#/definitions/ReservedSchemaValueSpec"
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
"AppSources": {
|
|
153
|
-
"type": "object",
|
|
154
|
-
"additionalProperties": true,
|
|
155
|
-
"properties": {
|
|
156
|
-
"approval": {
|
|
157
|
-
"type": "string"
|
|
158
|
-
},
|
|
159
|
-
"clear": {
|
|
160
|
-
"type": "string"
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
"Hint": {
|
|
165
|
-
"type": "object",
|
|
166
|
-
"additionalProperties": true,
|
|
167
|
-
"properties": {
|
|
168
|
-
"read_only": {
|
|
169
|
-
"type": "boolean"
|
|
170
|
-
},
|
|
171
|
-
"structs": {
|
|
172
|
-
"type": "object",
|
|
173
|
-
"properties": {
|
|
174
|
-
"output": {
|
|
175
|
-
"$ref": "#/definitions/Struct"
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
"additionalProperties": {
|
|
179
|
-
"$ref": "#/definitions/Struct"
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
"default_arguments": {
|
|
183
|
-
"additionalProperties": {
|
|
184
|
-
"$ref": "#/definitions/DefaultArgument"
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
"call_config": {
|
|
188
|
-
"$ref": "#/definitions/CallConfig"
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
"CallConfig": {
|
|
193
|
-
"type": "object",
|
|
194
|
-
"additionalProperties": false,
|
|
195
|
-
"properties": {
|
|
196
|
-
"no_op": {
|
|
197
|
-
"$ref": "#/definitions/CallConfigValue"
|
|
198
|
-
},
|
|
199
|
-
"opt_in": {
|
|
200
|
-
"$ref": "#/definitions/CallConfigValue"
|
|
201
|
-
},
|
|
202
|
-
"close_out": {
|
|
203
|
-
"$ref": "#/definitions/CallConfigValue"
|
|
204
|
-
},
|
|
205
|
-
"update_application": {
|
|
206
|
-
"$ref": "#/definitions/CallConfigValue"
|
|
207
|
-
},
|
|
208
|
-
"delete_application": {
|
|
209
|
-
"$ref": "#/definitions/CallConfigValue"
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
|
-
"CallConfigValue": {
|
|
214
|
-
"enum": [
|
|
215
|
-
"NEVER",
|
|
216
|
-
"CALL",
|
|
217
|
-
"CREATE",
|
|
218
|
-
"ALL"
|
|
219
|
-
]
|
|
220
|
-
},
|
|
221
|
-
"Struct": {
|
|
222
|
-
"type": "object",
|
|
223
|
-
"additionalProperties": true,
|
|
224
|
-
"required": [
|
|
225
|
-
"name",
|
|
226
|
-
"elements"
|
|
227
|
-
],
|
|
228
|
-
"properties": {
|
|
229
|
-
"name": {
|
|
230
|
-
"type": "string"
|
|
231
|
-
},
|
|
232
|
-
"elements": {
|
|
233
|
-
"type": "array",
|
|
234
|
-
"items": {
|
|
235
|
-
"$ref": "#/definitions/StructElement"
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
"FieldName": {
|
|
241
|
-
"type": "string"
|
|
242
|
-
},
|
|
243
|
-
"ABIType": {
|
|
244
|
-
"type": "string"
|
|
245
|
-
},
|
|
246
|
-
"StructElement": {
|
|
247
|
-
"type": "array",
|
|
248
|
-
"minItems": 2,
|
|
249
|
-
"items": [
|
|
250
|
-
{
|
|
251
|
-
"$ref": "#/definitions/FieldName"
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
"$ref": "#/definitions/ABIType"
|
|
255
|
-
}
|
|
256
|
-
]
|
|
257
|
-
},
|
|
258
|
-
"DefaultArgument": {
|
|
259
|
-
"description": "Defines a strategy for obtaining a default value for a given ABI arg.",
|
|
260
|
-
"oneOf": [
|
|
261
|
-
{
|
|
262
|
-
"type": "object",
|
|
263
|
-
"required": [
|
|
264
|
-
"source",
|
|
265
|
-
"data"
|
|
266
|
-
],
|
|
267
|
-
"additionalProperties": true,
|
|
268
|
-
"properties": {
|
|
269
|
-
"source": {
|
|
270
|
-
"description": "The default value should be fetched by invoking an ABI method",
|
|
271
|
-
"enum": [
|
|
272
|
-
"abi-method"
|
|
273
|
-
]
|
|
274
|
-
},
|
|
275
|
-
"data": {
|
|
276
|
-
"description": "The contract of the ABI method to invoke.",
|
|
277
|
-
"$ref": "contract.schema.json#/definitions/ContractMethod"
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
"type": "object",
|
|
283
|
-
"required": [
|
|
284
|
-
"source",
|
|
285
|
-
"data"
|
|
286
|
-
],
|
|
287
|
-
"additionalProperties": true,
|
|
288
|
-
"properties": {
|
|
289
|
-
"source": {
|
|
290
|
-
"description": "The default value should be fetched from global state",
|
|
291
|
-
"enum": [
|
|
292
|
-
"global-state"
|
|
293
|
-
]
|
|
294
|
-
},
|
|
295
|
-
"data": {
|
|
296
|
-
"description": "The key of the state variable",
|
|
297
|
-
"type": "string"
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
"type": "object",
|
|
303
|
-
"required": [
|
|
304
|
-
"source",
|
|
305
|
-
"data"
|
|
306
|
-
],
|
|
307
|
-
"additionalProperties": true,
|
|
308
|
-
"properties": {
|
|
309
|
-
"source": {
|
|
310
|
-
"description": "The default value should be fetched from the local state of the sender user",
|
|
311
|
-
"enum": [
|
|
312
|
-
"local-state"
|
|
313
|
-
]
|
|
314
|
-
},
|
|
315
|
-
"data": {
|
|
316
|
-
"description": "The key of the state variable",
|
|
317
|
-
"type": "string"
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
"type": "object",
|
|
323
|
-
"required": [
|
|
324
|
-
"source",
|
|
325
|
-
"data"
|
|
326
|
-
],
|
|
327
|
-
"additionalProperties": true,
|
|
328
|
-
"properties": {
|
|
329
|
-
"source": {
|
|
330
|
-
"description": "The default value is a constant.",
|
|
331
|
-
"enum": [
|
|
332
|
-
"constant"
|
|
333
|
-
]
|
|
334
|
-
},
|
|
335
|
-
"data": {
|
|
336
|
-
"description": "The static default value to use.",
|
|
337
|
-
"anyOf": [
|
|
338
|
-
{
|
|
339
|
-
"type": "string"
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
"type": "number"
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
"type": "integer"
|
|
346
|
-
}
|
|
347
|
-
]
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
]
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
-
"title": "AbiContract",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"required": [
|
|
6
|
-
"name",
|
|
7
|
-
"methods"
|
|
8
|
-
],
|
|
9
|
-
"additionalProperties": true,
|
|
10
|
-
"properties": {
|
|
11
|
-
"name": {
|
|
12
|
-
"type": "string"
|
|
13
|
-
},
|
|
14
|
-
"desc": {
|
|
15
|
-
"type": "string"
|
|
16
|
-
},
|
|
17
|
-
"methods": {
|
|
18
|
-
"type": "array",
|
|
19
|
-
"items": {
|
|
20
|
-
"$ref": "#/definitions/ContractMethod"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"events": {
|
|
24
|
-
"type": "array",
|
|
25
|
-
"items": {
|
|
26
|
-
"$ref": "#/definitions/Event"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"networks": {
|
|
30
|
-
"type": "object",
|
|
31
|
-
"additionalProperties": {
|
|
32
|
-
"type": "object",
|
|
33
|
-
"required": [
|
|
34
|
-
"appID"
|
|
35
|
-
],
|
|
36
|
-
"additionalProperties": true,
|
|
37
|
-
"properties": {
|
|
38
|
-
"appID": {
|
|
39
|
-
"type": "number"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"definitions": {
|
|
46
|
-
"ContractMethod": {
|
|
47
|
-
"type": "object",
|
|
48
|
-
"additionalProperties": true,
|
|
49
|
-
"required": [
|
|
50
|
-
"name",
|
|
51
|
-
"args",
|
|
52
|
-
"returns"
|
|
53
|
-
],
|
|
54
|
-
"properties": {
|
|
55
|
-
"name": {
|
|
56
|
-
"type": "string"
|
|
57
|
-
},
|
|
58
|
-
"args": {
|
|
59
|
-
"type": "array",
|
|
60
|
-
"items": {
|
|
61
|
-
"$ref": "#/definitions/ContractMethodArg"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"desc": {
|
|
65
|
-
"type": "string"
|
|
66
|
-
},
|
|
67
|
-
"returns": {
|
|
68
|
-
"type": "object",
|
|
69
|
-
"additionalProperties": true,
|
|
70
|
-
"required": [
|
|
71
|
-
"type"
|
|
72
|
-
],
|
|
73
|
-
"properties": {
|
|
74
|
-
"desc": {
|
|
75
|
-
"type": "string"
|
|
76
|
-
},
|
|
77
|
-
"type": {
|
|
78
|
-
"$ref": "#/definitions/ABIType"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"readonly": {
|
|
83
|
-
"type": "boolean"
|
|
84
|
-
},
|
|
85
|
-
"events": {
|
|
86
|
-
"type": "array",
|
|
87
|
-
"items": {
|
|
88
|
-
"$ref": "#/definitions/Event"
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
"Event": {
|
|
94
|
-
"type": "object",
|
|
95
|
-
"additionalProperties": true,
|
|
96
|
-
"required": [
|
|
97
|
-
"name",
|
|
98
|
-
"args"
|
|
99
|
-
],
|
|
100
|
-
"properties": {
|
|
101
|
-
"name": {
|
|
102
|
-
"type": "string"
|
|
103
|
-
},
|
|
104
|
-
"args": {
|
|
105
|
-
"type": "array",
|
|
106
|
-
"items": {
|
|
107
|
-
"$ref": "#/definitions/ContractMethodArg"
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
"desc": {
|
|
111
|
-
"type": "string"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
"ContractMethodArg": {
|
|
116
|
-
"type": "object",
|
|
117
|
-
"additionalProperties": true,
|
|
118
|
-
"required": [
|
|
119
|
-
"name",
|
|
120
|
-
"type"
|
|
121
|
-
],
|
|
122
|
-
"properties": {
|
|
123
|
-
"desc": {
|
|
124
|
-
"type": "string"
|
|
125
|
-
},
|
|
126
|
-
"type": {
|
|
127
|
-
"$ref": "#/definitions/ABIType"
|
|
128
|
-
},
|
|
129
|
-
"name": {
|
|
130
|
-
"type": "string"
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
"ABIType": {
|
|
135
|
-
"description": "Catch all for fixed length arrays and tuples",
|
|
136
|
-
"type": "string"
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
package/schema/load.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../src/schema/load.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAI3C,wBAAsB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAMnF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,OAAO,GAAG,WAAW,CASlE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"approval-tests.spec.d.ts","sourceRoot":"","sources":["../../src/tests/approval-tests.spec.ts"],"names":[],"mappings":""}
|