File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,11 @@ To create a `CircuitTypesGenerator` object, it is necessary to pass a config:
31
31
ZKTypeConfig = {
32
32
basePath: " circuits" ,
33
33
projectRoot: process .cwd (),
34
- circuitsArtifactsPaths: [
35
- " circuits/auth/Matrix_artifacts.json" ,
34
+ circuitsArtifacts: [
35
+ {
36
+ artifactPath: " circuits/auth/Matrix_artifacts.json" ,
37
+ circuitProtocolType: [" groth16" ],
38
+ },
36
39
],
37
40
outputTypesDir: " generated-types/circuits" ,
38
41
}
@@ -42,7 +45,7 @@ This config contains all the information required to generate TypeScript binding
42
45
43
46
- ` basePath ` - Path to the root directory of the project where circuits are stored.
44
47
- ` projectRoot ` - Absolute path to the root directory of the project.
45
- - ` circuitsArtifactsPaths ` - Array of paths to the circuits' artifact files .
48
+ - ` circuitsArtifacts ` - Array of object containing the path to the circuit artifact and the protocol type of the circuit .
46
49
- ` outputTypesDir ` - Path to the directory where the generated types will be stored.
47
50
- Optional. Default: ` generated-types/circuits ` .
48
51
You can’t perform that action at this time.
0 commit comments