@noir-lang/noirc_abi 0.30.0 → 0.31.0
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/nodejs/noirc_abi_wasm.d.ts +3 -3
- package/nodejs/noirc_abi_wasm.js +54 -54
- package/nodejs/noirc_abi_wasm_bg.wasm +0 -0
- package/nodejs/noirc_abi_wasm_bg.wasm.d.ts +1 -1
- package/package.json +2 -2
- package/web/noirc_abi_wasm.d.ts +4 -4
- package/web/noirc_abi_wasm.js +50 -50
- package/web/noirc_abi_wasm_bg.wasm +0 -0
- package/web/noirc_abi_wasm_bg.wasm.d.ts +1 -1
|
@@ -25,11 +25,11 @@ export function serializeWitness(witness_map: WitnessMap): Uint8Array;
|
|
|
25
25
|
*/
|
|
26
26
|
export function abiDecodeError(abi: Abi, raw_error: RawAssertionPayload): any;
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
import { Field, InputValue, InputMap, Visibility, Sign, AbiType, AbiParameter, Abi, WitnessMap, RawAssertionPayload } from "@noir-lang/types";
|
|
29
|
+
export { Field, InputValue, InputMap, Visibility, Sign, AbiType, AbiParameter, Abi, WitnessMap, RawAssertionPayload } from "@noir-lang/types";
|
|
29
30
|
|
|
30
31
|
|
|
31
32
|
|
|
32
|
-
|
|
33
|
-
export { Field, InputValue, InputMap, Visibility, Sign, AbiType, AbiParameter, Abi, WitnessMap, RawAssertionPayload } from "@noir-lang/types";
|
|
33
|
+
export type ABIError = Error;
|
|
34
34
|
|
|
35
35
|
|
package/nodejs/noirc_abi_wasm.js
CHANGED
|
@@ -11,15 +11,6 @@ function getObject(idx) { return heap[idx]; }
|
|
|
11
11
|
|
|
12
12
|
let heap_next = heap.length;
|
|
13
13
|
|
|
14
|
-
function addHeapObject(obj) {
|
|
15
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
16
|
-
const idx = heap_next;
|
|
17
|
-
heap_next = heap[idx];
|
|
18
|
-
|
|
19
|
-
heap[idx] = obj;
|
|
20
|
-
return idx;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
14
|
function dropObject(idx) {
|
|
24
15
|
if (idx < 132) return;
|
|
25
16
|
heap[idx] = heap_next;
|
|
@@ -32,6 +23,28 @@ function takeObject(idx) {
|
|
|
32
23
|
return ret;
|
|
33
24
|
}
|
|
34
25
|
|
|
26
|
+
function isLikeNone(x) {
|
|
27
|
+
return x === undefined || x === null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
let cachedFloat64Memory0 = null;
|
|
31
|
+
|
|
32
|
+
function getFloat64Memory0() {
|
|
33
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
34
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
35
|
+
}
|
|
36
|
+
return cachedFloat64Memory0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
let cachedInt32Memory0 = null;
|
|
40
|
+
|
|
41
|
+
function getInt32Memory0() {
|
|
42
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
43
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
44
|
+
}
|
|
45
|
+
return cachedInt32Memory0;
|
|
46
|
+
}
|
|
47
|
+
|
|
35
48
|
let WASM_VECTOR_LEN = 0;
|
|
36
49
|
|
|
37
50
|
let cachedUint8Memory0 = null;
|
|
@@ -96,26 +109,13 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
96
109
|
return ptr;
|
|
97
110
|
}
|
|
98
111
|
|
|
99
|
-
function
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
let cachedInt32Memory0 = null;
|
|
104
|
-
|
|
105
|
-
function getInt32Memory0() {
|
|
106
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
107
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
108
|
-
}
|
|
109
|
-
return cachedInt32Memory0;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
let cachedFloat64Memory0 = null;
|
|
112
|
+
function addHeapObject(obj) {
|
|
113
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
114
|
+
const idx = heap_next;
|
|
115
|
+
heap_next = heap[idx];
|
|
113
116
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
117
|
-
}
|
|
118
|
-
return cachedFloat64Memory0;
|
|
117
|
+
heap[idx] = obj;
|
|
118
|
+
return idx;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
@@ -218,7 +218,7 @@ module.exports.abiDecodeError = function(abi, raw_error) {
|
|
|
218
218
|
};
|
|
219
219
|
|
|
220
220
|
function __wbg_adapter_28(arg0, arg1, arg2, arg3) {
|
|
221
|
-
wasm.
|
|
221
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h65946477307e3ac7(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
function handleError(f, args) {
|
|
@@ -229,30 +229,17 @@ function handleError(f, args) {
|
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
233
|
-
const ret = getObject(arg0) === undefined;
|
|
234
|
-
return ret;
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
module.exports.__wbg_constructor_f316a911c89e6ad1 = function(arg0) {
|
|
238
|
-
const ret = new Error(takeObject(arg0));
|
|
239
|
-
return addHeapObject(ret);
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
module.exports.__wbg_new_c532f61074fa67e0 = function() {
|
|
243
|
-
const ret = new Map();
|
|
244
|
-
return addHeapObject(ret);
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
module.exports.__wbindgen_number_new = function(arg0) {
|
|
248
|
-
const ret = arg0;
|
|
249
|
-
return addHeapObject(ret);
|
|
250
|
-
};
|
|
251
|
-
|
|
252
232
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
253
233
|
takeObject(arg0);
|
|
254
234
|
};
|
|
255
235
|
|
|
236
|
+
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
237
|
+
const obj = getObject(arg1);
|
|
238
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
239
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
240
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
241
|
+
};
|
|
242
|
+
|
|
256
243
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
257
244
|
const obj = getObject(arg1);
|
|
258
245
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -262,11 +249,19 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
262
249
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
263
250
|
};
|
|
264
251
|
|
|
265
|
-
module.exports.
|
|
266
|
-
const
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
252
|
+
module.exports.__wbg_constructor_e95b233040fb3176 = function(arg0) {
|
|
253
|
+
const ret = new Error(takeObject(arg0));
|
|
254
|
+
return addHeapObject(ret);
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
module.exports.__wbg_new_498a274debb3d8d8 = function() {
|
|
258
|
+
const ret = new Map();
|
|
259
|
+
return addHeapObject(ret);
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
263
|
+
const ret = arg0;
|
|
264
|
+
return addHeapObject(ret);
|
|
270
265
|
};
|
|
271
266
|
|
|
272
267
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
@@ -274,6 +269,11 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
|
274
269
|
return addHeapObject(ret);
|
|
275
270
|
};
|
|
276
271
|
|
|
272
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
273
|
+
const ret = getObject(arg0) === undefined;
|
|
274
|
+
return ret;
|
|
275
|
+
};
|
|
276
|
+
|
|
277
277
|
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
278
278
|
const ret = new Error();
|
|
279
279
|
return addHeapObject(ret);
|
|
Binary file
|
|
@@ -9,5 +9,5 @@ export function __wbindgen_malloc(a: number): number;
|
|
|
9
9
|
export function __wbindgen_realloc(a: number, b: number, c: number): number;
|
|
10
10
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
|
11
11
|
export function __wbindgen_free(a: number, b: number): void;
|
|
12
|
-
export function
|
|
12
|
+
export function wasm_bindgen__convert__closures__invoke2_mut__h65946477307e3ac7(a: number, b: number, c: number, d: number): void;
|
|
13
13
|
export function __wbindgen_exn_store(a: number): void;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"contributors": [
|
|
4
4
|
"The Noir Team <team@noir-lang.org>"
|
|
5
5
|
],
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.31.0",
|
|
7
7
|
"license": "(MIT OR Apache-2.0)",
|
|
8
8
|
"homepage": "https://noir-lang.org/",
|
|
9
9
|
"repository": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"lint": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@noir-lang/types": "0.
|
|
39
|
+
"@noir-lang/types": "0.31.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@esm-bundle/chai": "^4.3.4-fix.0",
|
package/web/noirc_abi_wasm.d.ts
CHANGED
|
@@ -25,12 +25,12 @@ export function serializeWitness(witness_map: WitnessMap): Uint8Array;
|
|
|
25
25
|
*/
|
|
26
26
|
export function abiDecodeError(abi: Abi, raw_error: RawAssertionPayload): any;
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
import { Field, InputValue, InputMap, Visibility, Sign, AbiType, AbiParameter, Abi, WitnessMap, RawAssertionPayload } from "@noir-lang/types";
|
|
29
|
+
export { Field, InputValue, InputMap, Visibility, Sign, AbiType, AbiParameter, Abi, WitnessMap, RawAssertionPayload } from "@noir-lang/types";
|
|
29
30
|
|
|
30
31
|
|
|
31
32
|
|
|
32
|
-
|
|
33
|
-
export { Field, InputValue, InputMap, Visibility, Sign, AbiType, AbiParameter, Abi, WitnessMap, RawAssertionPayload } from "@noir-lang/types";
|
|
33
|
+
export type ABIError = Error;
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
@@ -46,7 +46,7 @@ export interface InitOutput {
|
|
|
46
46
|
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
|
|
47
47
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
48
48
|
readonly __wbindgen_free: (a: number, b: number) => void;
|
|
49
|
-
readonly
|
|
49
|
+
readonly wasm_bindgen__convert__closures__invoke2_mut__h65946477307e3ac7: (a: number, b: number, c: number, d: number) => void;
|
|
50
50
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
51
51
|
}
|
|
52
52
|
|
package/web/noirc_abi_wasm.js
CHANGED
|
@@ -8,15 +8,6 @@ function getObject(idx) { return heap[idx]; }
|
|
|
8
8
|
|
|
9
9
|
let heap_next = heap.length;
|
|
10
10
|
|
|
11
|
-
function addHeapObject(obj) {
|
|
12
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
13
|
-
const idx = heap_next;
|
|
14
|
-
heap_next = heap[idx];
|
|
15
|
-
|
|
16
|
-
heap[idx] = obj;
|
|
17
|
-
return idx;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
11
|
function dropObject(idx) {
|
|
21
12
|
if (idx < 132) return;
|
|
22
13
|
heap[idx] = heap_next;
|
|
@@ -29,6 +20,28 @@ function takeObject(idx) {
|
|
|
29
20
|
return ret;
|
|
30
21
|
}
|
|
31
22
|
|
|
23
|
+
function isLikeNone(x) {
|
|
24
|
+
return x === undefined || x === null;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
let cachedFloat64Memory0 = null;
|
|
28
|
+
|
|
29
|
+
function getFloat64Memory0() {
|
|
30
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
31
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
32
|
+
}
|
|
33
|
+
return cachedFloat64Memory0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
let cachedInt32Memory0 = null;
|
|
37
|
+
|
|
38
|
+
function getInt32Memory0() {
|
|
39
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
40
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
41
|
+
}
|
|
42
|
+
return cachedInt32Memory0;
|
|
43
|
+
}
|
|
44
|
+
|
|
32
45
|
let WASM_VECTOR_LEN = 0;
|
|
33
46
|
|
|
34
47
|
let cachedUint8Memory0 = null;
|
|
@@ -93,26 +106,13 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
93
106
|
return ptr;
|
|
94
107
|
}
|
|
95
108
|
|
|
96
|
-
function
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
let cachedInt32Memory0 = null;
|
|
101
|
-
|
|
102
|
-
function getInt32Memory0() {
|
|
103
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
104
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
105
|
-
}
|
|
106
|
-
return cachedInt32Memory0;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
let cachedFloat64Memory0 = null;
|
|
109
|
+
function addHeapObject(obj) {
|
|
110
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
111
|
+
const idx = heap_next;
|
|
112
|
+
heap_next = heap[idx];
|
|
110
113
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
114
|
-
}
|
|
115
|
-
return cachedFloat64Memory0;
|
|
114
|
+
heap[idx] = obj;
|
|
115
|
+
return idx;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
@@ -215,7 +215,7 @@ export function abiDecodeError(abi, raw_error) {
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
function __wbg_adapter_28(arg0, arg1, arg2, arg3) {
|
|
218
|
-
wasm.
|
|
218
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h65946477307e3ac7(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
function handleError(f, args) {
|
|
@@ -260,25 +260,15 @@ async function __wbg_load(module, imports) {
|
|
|
260
260
|
function __wbg_get_imports() {
|
|
261
261
|
const imports = {};
|
|
262
262
|
imports.wbg = {};
|
|
263
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
264
|
-
const ret = getObject(arg0) === undefined;
|
|
265
|
-
return ret;
|
|
266
|
-
};
|
|
267
|
-
imports.wbg.__wbg_constructor_f316a911c89e6ad1 = function(arg0) {
|
|
268
|
-
const ret = new Error(takeObject(arg0));
|
|
269
|
-
return addHeapObject(ret);
|
|
270
|
-
};
|
|
271
|
-
imports.wbg.__wbg_new_c532f61074fa67e0 = function() {
|
|
272
|
-
const ret = new Map();
|
|
273
|
-
return addHeapObject(ret);
|
|
274
|
-
};
|
|
275
|
-
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
276
|
-
const ret = arg0;
|
|
277
|
-
return addHeapObject(ret);
|
|
278
|
-
};
|
|
279
263
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
280
264
|
takeObject(arg0);
|
|
281
265
|
};
|
|
266
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
267
|
+
const obj = getObject(arg1);
|
|
268
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
269
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
270
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
271
|
+
};
|
|
282
272
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
283
273
|
const obj = getObject(arg1);
|
|
284
274
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -287,16 +277,26 @@ function __wbg_get_imports() {
|
|
|
287
277
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
288
278
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
289
279
|
};
|
|
290
|
-
imports.wbg.
|
|
291
|
-
const
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
280
|
+
imports.wbg.__wbg_constructor_e95b233040fb3176 = function(arg0) {
|
|
281
|
+
const ret = new Error(takeObject(arg0));
|
|
282
|
+
return addHeapObject(ret);
|
|
283
|
+
};
|
|
284
|
+
imports.wbg.__wbg_new_498a274debb3d8d8 = function() {
|
|
285
|
+
const ret = new Map();
|
|
286
|
+
return addHeapObject(ret);
|
|
287
|
+
};
|
|
288
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
289
|
+
const ret = arg0;
|
|
290
|
+
return addHeapObject(ret);
|
|
295
291
|
};
|
|
296
292
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
297
293
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
298
294
|
return addHeapObject(ret);
|
|
299
295
|
};
|
|
296
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
297
|
+
const ret = getObject(arg0) === undefined;
|
|
298
|
+
return ret;
|
|
299
|
+
};
|
|
300
300
|
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
301
301
|
const ret = new Error();
|
|
302
302
|
return addHeapObject(ret);
|
|
Binary file
|
|
@@ -9,5 +9,5 @@ export function __wbindgen_malloc(a: number): number;
|
|
|
9
9
|
export function __wbindgen_realloc(a: number, b: number, c: number): number;
|
|
10
10
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
|
11
11
|
export function __wbindgen_free(a: number, b: number): void;
|
|
12
|
-
export function
|
|
12
|
+
export function wasm_bindgen__convert__closures__invoke2_mut__h65946477307e3ac7(a: number, b: number, c: number, d: number): void;
|
|
13
13
|
export function __wbindgen_exn_store(a: number): void;
|