@aztec-foundation/noir-types 0.0.1-commit.b66364b
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/lib/cjs/types.d.ts +158 -0
- package/lib/cjs/types.js +2 -0
- package/lib/esm/types.d.ts +158 -0
- package/lib/esm/types.js +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
export type Field = string | number | boolean;
|
|
2
|
+
export type InputValue = Field | InputMap | InputValue[];
|
|
3
|
+
export type InputMap = {
|
|
4
|
+
[key: string]: InputValue;
|
|
5
|
+
};
|
|
6
|
+
export type Visibility = 'public' | 'private' | 'databus';
|
|
7
|
+
export type Sign = 'unsigned' | 'signed';
|
|
8
|
+
export type AbiType = {
|
|
9
|
+
kind: 'field';
|
|
10
|
+
} | {
|
|
11
|
+
kind: 'boolean';
|
|
12
|
+
} | {
|
|
13
|
+
kind: 'string';
|
|
14
|
+
length: number;
|
|
15
|
+
} | {
|
|
16
|
+
kind: 'integer';
|
|
17
|
+
sign: Sign;
|
|
18
|
+
width: number;
|
|
19
|
+
} | {
|
|
20
|
+
kind: 'array';
|
|
21
|
+
length: number;
|
|
22
|
+
type: AbiType;
|
|
23
|
+
} | {
|
|
24
|
+
kind: 'tuple';
|
|
25
|
+
fields: AbiType[];
|
|
26
|
+
} | {
|
|
27
|
+
kind: 'struct';
|
|
28
|
+
path: string;
|
|
29
|
+
fields: {
|
|
30
|
+
name: string;
|
|
31
|
+
type: AbiType;
|
|
32
|
+
}[];
|
|
33
|
+
};
|
|
34
|
+
export type AbiParameter = {
|
|
35
|
+
name: string;
|
|
36
|
+
type: AbiType;
|
|
37
|
+
visibility: Visibility;
|
|
38
|
+
};
|
|
39
|
+
export type AbiErrorType = {
|
|
40
|
+
error_kind: 'string';
|
|
41
|
+
string: string;
|
|
42
|
+
} | {
|
|
43
|
+
error_kind: 'fmtstring';
|
|
44
|
+
length: number;
|
|
45
|
+
item_types: AbiType[];
|
|
46
|
+
} | ({
|
|
47
|
+
error_kind: 'custom';
|
|
48
|
+
} & AbiType);
|
|
49
|
+
export type RawAssertionPayload = {
|
|
50
|
+
selector: string;
|
|
51
|
+
data: string[];
|
|
52
|
+
};
|
|
53
|
+
/** An id for a file. It's assigned during compilation. */
|
|
54
|
+
export type FileId = number;
|
|
55
|
+
/** Maps a file ID to its source code for debugging purposes. */
|
|
56
|
+
export type DebugFileMap = Record<FileId, {
|
|
57
|
+
/** The source code of the file. */
|
|
58
|
+
source: string;
|
|
59
|
+
/** The path of the file. */
|
|
60
|
+
path: string;
|
|
61
|
+
/** The range each function occupies in the file. */
|
|
62
|
+
function_locations: FunctionLocation[];
|
|
63
|
+
}>;
|
|
64
|
+
/** The range a function occupies in a file. */
|
|
65
|
+
export type FunctionLocation = {
|
|
66
|
+
/** The byte where the function starts. */
|
|
67
|
+
start: number;
|
|
68
|
+
/** The name of the function. */
|
|
69
|
+
name: string;
|
|
70
|
+
};
|
|
71
|
+
export type OpcodeLocation = string;
|
|
72
|
+
export type BrilligFunctionId = number;
|
|
73
|
+
/** A pointer to a specific section of the source code. */
|
|
74
|
+
export interface SourceCodeLocation {
|
|
75
|
+
/** The section of the source code. */
|
|
76
|
+
span: {
|
|
77
|
+
/** The byte where the section starts. */
|
|
78
|
+
start: number;
|
|
79
|
+
/** The byte where the section ends. */
|
|
80
|
+
end: number;
|
|
81
|
+
};
|
|
82
|
+
/** The source code file pointed to. */
|
|
83
|
+
file: FileId;
|
|
84
|
+
}
|
|
85
|
+
export type OpcodeToLocationsMap = Record<OpcodeLocation, number>;
|
|
86
|
+
export type LocationNodeDebugInfo = {
|
|
87
|
+
parent: number | null;
|
|
88
|
+
value: SourceCodeLocation;
|
|
89
|
+
};
|
|
90
|
+
export type LocationTree = {
|
|
91
|
+
locations: LocationNodeDebugInfo[];
|
|
92
|
+
};
|
|
93
|
+
/** The debug information for a given function. */
|
|
94
|
+
export interface DebugInfo {
|
|
95
|
+
/** A map of the opcode location to the source code location. */
|
|
96
|
+
location_tree: LocationTree;
|
|
97
|
+
acir_locations: OpcodeToLocationsMap;
|
|
98
|
+
/** For each Brillig function, we have a map of the opcode location to the source code location. */
|
|
99
|
+
brillig_locations: Record<BrilligFunctionId, OpcodeToLocationsMap>;
|
|
100
|
+
}
|
|
101
|
+
export type WitnessMap = Map<number, string>;
|
|
102
|
+
export type Abi = {
|
|
103
|
+
parameters: AbiParameter[];
|
|
104
|
+
return_type: {
|
|
105
|
+
abi_type: AbiType;
|
|
106
|
+
visibility: Visibility;
|
|
107
|
+
} | null;
|
|
108
|
+
error_types: Partial<Record<string, AbiErrorType>>;
|
|
109
|
+
};
|
|
110
|
+
export interface VerifierBackend {
|
|
111
|
+
/**
|
|
112
|
+
* @description Verifies a proof */
|
|
113
|
+
verifyProof(proofData: ProofData): Promise<boolean>;
|
|
114
|
+
/**
|
|
115
|
+
* @description Destroys the backend */
|
|
116
|
+
destroy(): Promise<void>;
|
|
117
|
+
}
|
|
118
|
+
export interface Backend extends VerifierBackend {
|
|
119
|
+
/**
|
|
120
|
+
* @description Generates a proof */
|
|
121
|
+
generateProof(decompressedWitness: Uint8Array): Promise<ProofData>;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @description Retrieves the artifacts from a proof in the Field format
|
|
125
|
+
*/
|
|
126
|
+
generateRecursiveProofArtifacts(proofData: ProofData, numOfPublicInputs: number): Promise<{
|
|
127
|
+
/** @description An array of Fields containing the proof */
|
|
128
|
+
proofAsFields: string[];
|
|
129
|
+
/** @description An array of Fields containing the verification key */
|
|
130
|
+
vkAsFields: string[];
|
|
131
|
+
/** @description A Field containing the verification key hash */
|
|
132
|
+
vkHash: string;
|
|
133
|
+
}>;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* @description
|
|
137
|
+
* The representation of a proof
|
|
138
|
+
* */
|
|
139
|
+
export type ProofData = {
|
|
140
|
+
/** @description Public inputs of a proof */
|
|
141
|
+
publicInputs: string[];
|
|
142
|
+
/** @description An byte array representing the proof */
|
|
143
|
+
proof: Uint8Array;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* @description
|
|
147
|
+
* The representation of a compiled circuit
|
|
148
|
+
* */
|
|
149
|
+
export type CompiledCircuit = {
|
|
150
|
+
/** @description The bytecode of the circuit */
|
|
151
|
+
bytecode: string;
|
|
152
|
+
/** @description ABI representation of the circuit */
|
|
153
|
+
abi: Abi;
|
|
154
|
+
/** @description The debug information, compressed and base64 encoded. */
|
|
155
|
+
debug_symbols: string;
|
|
156
|
+
/** @description The map of file ID to the source code and path of the file. */
|
|
157
|
+
file_map: DebugFileMap;
|
|
158
|
+
};
|
package/lib/cjs/types.js
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
export type Field = string | number | boolean;
|
|
2
|
+
export type InputValue = Field | InputMap | InputValue[];
|
|
3
|
+
export type InputMap = {
|
|
4
|
+
[key: string]: InputValue;
|
|
5
|
+
};
|
|
6
|
+
export type Visibility = 'public' | 'private' | 'databus';
|
|
7
|
+
export type Sign = 'unsigned' | 'signed';
|
|
8
|
+
export type AbiType = {
|
|
9
|
+
kind: 'field';
|
|
10
|
+
} | {
|
|
11
|
+
kind: 'boolean';
|
|
12
|
+
} | {
|
|
13
|
+
kind: 'string';
|
|
14
|
+
length: number;
|
|
15
|
+
} | {
|
|
16
|
+
kind: 'integer';
|
|
17
|
+
sign: Sign;
|
|
18
|
+
width: number;
|
|
19
|
+
} | {
|
|
20
|
+
kind: 'array';
|
|
21
|
+
length: number;
|
|
22
|
+
type: AbiType;
|
|
23
|
+
} | {
|
|
24
|
+
kind: 'tuple';
|
|
25
|
+
fields: AbiType[];
|
|
26
|
+
} | {
|
|
27
|
+
kind: 'struct';
|
|
28
|
+
path: string;
|
|
29
|
+
fields: {
|
|
30
|
+
name: string;
|
|
31
|
+
type: AbiType;
|
|
32
|
+
}[];
|
|
33
|
+
};
|
|
34
|
+
export type AbiParameter = {
|
|
35
|
+
name: string;
|
|
36
|
+
type: AbiType;
|
|
37
|
+
visibility: Visibility;
|
|
38
|
+
};
|
|
39
|
+
export type AbiErrorType = {
|
|
40
|
+
error_kind: 'string';
|
|
41
|
+
string: string;
|
|
42
|
+
} | {
|
|
43
|
+
error_kind: 'fmtstring';
|
|
44
|
+
length: number;
|
|
45
|
+
item_types: AbiType[];
|
|
46
|
+
} | ({
|
|
47
|
+
error_kind: 'custom';
|
|
48
|
+
} & AbiType);
|
|
49
|
+
export type RawAssertionPayload = {
|
|
50
|
+
selector: string;
|
|
51
|
+
data: string[];
|
|
52
|
+
};
|
|
53
|
+
/** An id for a file. It's assigned during compilation. */
|
|
54
|
+
export type FileId = number;
|
|
55
|
+
/** Maps a file ID to its source code for debugging purposes. */
|
|
56
|
+
export type DebugFileMap = Record<FileId, {
|
|
57
|
+
/** The source code of the file. */
|
|
58
|
+
source: string;
|
|
59
|
+
/** The path of the file. */
|
|
60
|
+
path: string;
|
|
61
|
+
/** The range each function occupies in the file. */
|
|
62
|
+
function_locations: FunctionLocation[];
|
|
63
|
+
}>;
|
|
64
|
+
/** The range a function occupies in a file. */
|
|
65
|
+
export type FunctionLocation = {
|
|
66
|
+
/** The byte where the function starts. */
|
|
67
|
+
start: number;
|
|
68
|
+
/** The name of the function. */
|
|
69
|
+
name: string;
|
|
70
|
+
};
|
|
71
|
+
export type OpcodeLocation = string;
|
|
72
|
+
export type BrilligFunctionId = number;
|
|
73
|
+
/** A pointer to a specific section of the source code. */
|
|
74
|
+
export interface SourceCodeLocation {
|
|
75
|
+
/** The section of the source code. */
|
|
76
|
+
span: {
|
|
77
|
+
/** The byte where the section starts. */
|
|
78
|
+
start: number;
|
|
79
|
+
/** The byte where the section ends. */
|
|
80
|
+
end: number;
|
|
81
|
+
};
|
|
82
|
+
/** The source code file pointed to. */
|
|
83
|
+
file: FileId;
|
|
84
|
+
}
|
|
85
|
+
export type OpcodeToLocationsMap = Record<OpcodeLocation, number>;
|
|
86
|
+
export type LocationNodeDebugInfo = {
|
|
87
|
+
parent: number | null;
|
|
88
|
+
value: SourceCodeLocation;
|
|
89
|
+
};
|
|
90
|
+
export type LocationTree = {
|
|
91
|
+
locations: LocationNodeDebugInfo[];
|
|
92
|
+
};
|
|
93
|
+
/** The debug information for a given function. */
|
|
94
|
+
export interface DebugInfo {
|
|
95
|
+
/** A map of the opcode location to the source code location. */
|
|
96
|
+
location_tree: LocationTree;
|
|
97
|
+
acir_locations: OpcodeToLocationsMap;
|
|
98
|
+
/** For each Brillig function, we have a map of the opcode location to the source code location. */
|
|
99
|
+
brillig_locations: Record<BrilligFunctionId, OpcodeToLocationsMap>;
|
|
100
|
+
}
|
|
101
|
+
export type WitnessMap = Map<number, string>;
|
|
102
|
+
export type Abi = {
|
|
103
|
+
parameters: AbiParameter[];
|
|
104
|
+
return_type: {
|
|
105
|
+
abi_type: AbiType;
|
|
106
|
+
visibility: Visibility;
|
|
107
|
+
} | null;
|
|
108
|
+
error_types: Partial<Record<string, AbiErrorType>>;
|
|
109
|
+
};
|
|
110
|
+
export interface VerifierBackend {
|
|
111
|
+
/**
|
|
112
|
+
* @description Verifies a proof */
|
|
113
|
+
verifyProof(proofData: ProofData): Promise<boolean>;
|
|
114
|
+
/**
|
|
115
|
+
* @description Destroys the backend */
|
|
116
|
+
destroy(): Promise<void>;
|
|
117
|
+
}
|
|
118
|
+
export interface Backend extends VerifierBackend {
|
|
119
|
+
/**
|
|
120
|
+
* @description Generates a proof */
|
|
121
|
+
generateProof(decompressedWitness: Uint8Array): Promise<ProofData>;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @description Retrieves the artifacts from a proof in the Field format
|
|
125
|
+
*/
|
|
126
|
+
generateRecursiveProofArtifacts(proofData: ProofData, numOfPublicInputs: number): Promise<{
|
|
127
|
+
/** @description An array of Fields containing the proof */
|
|
128
|
+
proofAsFields: string[];
|
|
129
|
+
/** @description An array of Fields containing the verification key */
|
|
130
|
+
vkAsFields: string[];
|
|
131
|
+
/** @description A Field containing the verification key hash */
|
|
132
|
+
vkHash: string;
|
|
133
|
+
}>;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* @description
|
|
137
|
+
* The representation of a proof
|
|
138
|
+
* */
|
|
139
|
+
export type ProofData = {
|
|
140
|
+
/** @description Public inputs of a proof */
|
|
141
|
+
publicInputs: string[];
|
|
142
|
+
/** @description An byte array representing the proof */
|
|
143
|
+
proof: Uint8Array;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* @description
|
|
147
|
+
* The representation of a compiled circuit
|
|
148
|
+
* */
|
|
149
|
+
export type CompiledCircuit = {
|
|
150
|
+
/** @description The bytecode of the circuit */
|
|
151
|
+
bytecode: string;
|
|
152
|
+
/** @description ABI representation of the circuit */
|
|
153
|
+
abi: Abi;
|
|
154
|
+
/** @description The debug information, compressed and base64 encoded. */
|
|
155
|
+
debug_symbols: string;
|
|
156
|
+
/** @description The map of file ID to the source code and path of the file. */
|
|
157
|
+
file_map: DebugFileMap;
|
|
158
|
+
};
|
package/lib/esm/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/typescript/lib/lib.es2020.full.d.ts","../src/types.ts"],"fileInfos":[{"version":"bcd24271a113971ba9eb71ff8cb01bc6b0f872a85c23fdbe5d93065b375933cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f88bedbeb09c6f5a6645cb24c7c55f1aa22d19ae96c8e6959cbd8b85a707bc6","impliedFormat":1},{"version":"7fe93b39b810eadd916be8db880dd7f0f7012a5cc6ffb62de8f62a2117fa6f1f","impliedFormat":1},{"version":"bb0074cc08b84a2374af33d8bf044b80851ccc9e719a5e202eacf40db2c31600","impliedFormat":1},{"version":"1a7daebe4f45fb03d9ec53d60008fbf9ac45a697fdc89e4ce218bc94b94f94d6","impliedFormat":1},{"version":"f94b133a3cb14a288803be545ac2683e0d0ff6661bcd37e31aaaec54fc382aed","impliedFormat":1},{"version":"f59d0650799f8782fd74cf73c19223730c6d1b9198671b1c5b3a38e1188b5953","impliedFormat":1},{"version":"d6b1eba8496bdd0eed6fc8a685768fe01b2da4a0388b5fe7df558290bffcf32f","affectsGlobalScope":true,"impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"2a2de5b9459b3fc44decd9ce6100b72f1b002ef523126c1d3d8b2a4a63d74d78","affectsGlobalScope":true,"impliedFormat":1},{"version":"f13f4b465c99041e912db5c44129a94588e1aafee35a50eab51044833f50b4ee","affectsGlobalScope":true,"impliedFormat":1},{"version":"eadcffda2aa84802c73938e589b9e58248d74c59cb7fcbca6474e3435ac15504","affectsGlobalScope":true,"impliedFormat":1},{"version":"105ba8ff7ba746404fe1a2e189d1d3d2e0eb29a08c18dded791af02f29fb4711","affectsGlobalScope":true,"impliedFormat":1},{"version":"00343ca5b2e3d48fa5df1db6e32ea2a59afab09590274a6cccb1dbae82e60c7c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ebd9f816d4002697cb2864bea1f0b70a103124e18a8cd9645eeccc09bdf80ab4","affectsGlobalScope":true,"impliedFormat":1},{"version":"2c1afac30a01772cd2a9a298a7ce7706b5892e447bb46bdbeef720f7b5da77ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"7b0225f483e4fa685625ebe43dd584bb7973bbd84e66a6ba7bbe175ee1048b4f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c0a4b8ac6ce74679c1da2b3795296f5896e31c38e888469a8e0f99dc3305de60","affectsGlobalScope":true,"impliedFormat":1},{"version":"3084a7b5f569088e0146533a00830e206565de65cae2239509168b11434cd84f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5079c53f0f141a0698faa903e76cb41cd664e3efb01cc17a5c46ec2eb0bef42","affectsGlobalScope":true,"impliedFormat":1},{"version":"32cafbc484dea6b0ab62cf8473182bbcb23020d70845b406f80b7526f38ae862","affectsGlobalScope":true,"impliedFormat":1},{"version":"fca4cdcb6d6c5ef18a869003d02c9f0fd95df8cfaf6eb431cd3376bc034cad36","affectsGlobalScope":true,"impliedFormat":1},{"version":"b93ec88115de9a9dc1b602291b85baf825c85666bf25985cc5f698073892b467","affectsGlobalScope":true,"impliedFormat":1},{"version":"f5c06dcc3fe849fcb297c247865a161f995cc29de7aa823afdd75aaaddc1419b","affectsGlobalScope":true,"impliedFormat":1},{"version":"b77e16112127a4b169ef0b8c3a4d730edf459c5f25fe52d5e436a6919206c4d7","affectsGlobalScope":true,"impliedFormat":1},{"version":"fbffd9337146eff822c7c00acbb78b01ea7ea23987f6c961eba689349e744f8c","affectsGlobalScope":true,"impliedFormat":1},{"version":"a995c0e49b721312f74fdfb89e4ba29bd9824c770bbb4021d74d2bf560e4c6bd","affectsGlobalScope":true,"impliedFormat":1},{"version":"c7b3542146734342e440a84b213384bfa188835537ddbda50d30766f0593aff9","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce6180fa19b1cccd07ee7f7dbb9a367ac19c0ed160573e4686425060b6df7f57","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f02e2476bccb9dbe21280d6090f0df17d2f66b74711489415a8aa4df73c9675","affectsGlobalScope":true,"impliedFormat":1},{"version":"45e3ab34c1c013c8ab2dc1ba4c80c780744b13b5676800ae2e3be27ae862c40c","affectsGlobalScope":true,"impliedFormat":1},{"version":"805c86f6cca8d7702a62a844856dbaa2a3fd2abef0536e65d48732441dde5b5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e42e397f1a5a77994f0185fd1466520691456c772d06bf843e5084ceb879a0ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"f4c2b41f90c95b1c532ecc874bd3c111865793b23aebcc1c3cbbabcd5d76ffb0","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab26191cfad5b66afa11b8bf935ef1cd88fabfcb28d30b2dfa6fad877d050332","affectsGlobalScope":true,"impliedFormat":1},{"version":"2088bc26531e38fb05eedac2951480db5309f6be3fa4a08d2221abb0f5b4200d","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb9d366c425fea79716a8fb3af0d78e6b22ebbab3bd64d25063b42dc9f531c1e","affectsGlobalScope":true,"impliedFormat":1},{"version":"500934a8089c26d57ebdb688fc9757389bb6207a3c8f0674d68efa900d2abb34","affectsGlobalScope":true,"impliedFormat":1},{"version":"689da16f46e647cef0d64b0def88910e818a5877ca5379ede156ca3afb780ac3","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc21cc8b6fee4f4c2440d08035b7ea3c06b3511314c8bab6bef7a92de58a2593","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ca53d13d2957003abb47922a71866ba7cb2068f8d154877c596d63c359fed25","affectsGlobalScope":true,"impliedFormat":1},{"version":"54725f8c4df3d900cb4dac84b64689ce29548da0b4e9b7c2de61d41c79293611","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5594bc3076ac29e6c1ebda77939bc4c8833de72f654b6e376862c0473199323","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f3eb332c2d73e729f3364fcc0c2b375e72a121e8157d25a82d67a138c83a95c","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f4427f9642ce8d500970e4e69d1397f64072ab73b97e476b4002a646ac743b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"48915f327cd1dea4d7bd358d9dc7732f58f9e1626a29cc0c05c8c692419d9bb7","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7bf9377723203b5a6a4b920164df22d56a43f593269ba6ae1fdc97774b68855","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ce14b81c5cc821994aa8ec1d42b220dd41b27fcc06373bce3958af7421b77d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3a048b3e9302ef9a34ef4ebb9aecfb28b66abb3bce577206a79fee559c230da","affectsGlobalScope":true,"impliedFormat":1},{"version":"577cc49be1979782a5a695b46049566d123e2a75382f10bb82f2e5c87e29059a","impliedFormat":1},{"version":"931bcfdf1423a4f08606b8f6cf9ab85e29fd083beb6313d99798a8ada5665c17","signature":"f860bdf4f73d02205360e9ecffa122662e1b1ca4ec1feb71c9fe928dbc31dcaa"}],"root":[52],"options":{"composite":true,"declaration":true,"module":99,"outDir":"./esm","rootDir":"../src","skipLibCheck":true,"target":7},"latestChangedDtsFile":"./esm/types.d.ts","version":"6.0.3"}
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aztec-foundation/noir-types",
|
|
3
|
+
"contributors": [
|
|
4
|
+
"The Noir Team <team@noir-lang.org>"
|
|
5
|
+
],
|
|
6
|
+
"packageManager": "yarn@4.5.2",
|
|
7
|
+
"version": "0.0.1-commit.b66364b",
|
|
8
|
+
"license": "(MIT OR Apache-2.0)",
|
|
9
|
+
"homepage": "https://noir-lang.org/",
|
|
10
|
+
"repository": {
|
|
11
|
+
"url": "https://github.com/noir-lang/noir.git",
|
|
12
|
+
"directory": "tooling/noir_js_types",
|
|
13
|
+
"type": "git"
|
|
14
|
+
},
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/noir-lang/noir/issues"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"lib",
|
|
20
|
+
"package.json"
|
|
21
|
+
],
|
|
22
|
+
"main": "lib/cjs/types.js",
|
|
23
|
+
"module": "lib/esm/types.js",
|
|
24
|
+
"types": "lib/esm/types.d.ts",
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build:esm": "tsc",
|
|
27
|
+
"build:cjs": "tsc --module CommonJS --outDir lib/cjs",
|
|
28
|
+
"build": "yarn run build:cjs && yarn run build:esm",
|
|
29
|
+
"nightly:version": "jq --arg new_version \"-$(git rev-parse --short HEAD)$1\" '.version = .version + $new_version' package.json > package-tmp.json && mv package-tmp.json package.json",
|
|
30
|
+
"publish": "echo 📡 publishing `$npm_package_name` && yarn npm publish",
|
|
31
|
+
"lint": "NODE_NO_WARNINGS=1 eslint . --max-warnings 0",
|
|
32
|
+
"clean": "rm -rf ./lib"
|
|
33
|
+
},
|
|
34
|
+
"exports": {
|
|
35
|
+
".": {
|
|
36
|
+
"import": "./lib/esm/types.js",
|
|
37
|
+
"require": "./lib/cjs/types.js",
|
|
38
|
+
"types": "./lib/esm/types.d.ts"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@types/prettier": "^3.0.0",
|
|
43
|
+
"eslint": "^10.7.0",
|
|
44
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
45
|
+
"prettier": "3.9.5",
|
|
46
|
+
"typescript": "^6.0.3"
|
|
47
|
+
}
|
|
48
|
+
}
|