@noir-lang/noirc_abi 0.30.0-e73cdbb.nightly → 0.30.0-ff7bb72.nightly

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.
@@ -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
- export type ABIError = Error;
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
- import { Field, InputValue, InputMap, Visibility, Sign, AbiType, AbiParameter, Abi, WitnessMap, RawAssertionPayload } from "@noir-lang/types";
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
 
@@ -9,6 +9,20 @@ heap.push(undefined, null, true, false);
9
9
 
10
10
  function getObject(idx) { return heap[idx]; }
11
11
 
12
+ let heap_next = heap.length;
13
+
14
+ function dropObject(idx) {
15
+ if (idx < 132) return;
16
+ heap[idx] = heap_next;
17
+ heap_next = idx;
18
+ }
19
+
20
+ function takeObject(idx) {
21
+ const ret = getObject(idx);
22
+ dropObject(idx);
23
+ return ret;
24
+ }
25
+
12
26
  function isLikeNone(x) {
13
27
  return x === undefined || x === null;
14
28
  }
@@ -31,20 +45,6 @@ function getInt32Memory0() {
31
45
  return cachedInt32Memory0;
32
46
  }
33
47
 
34
- let heap_next = heap.length;
35
-
36
- function dropObject(idx) {
37
- if (idx < 132) return;
38
- heap[idx] = heap_next;
39
- heap_next = idx;
40
- }
41
-
42
- function takeObject(idx) {
43
- const ret = getObject(idx);
44
- dropObject(idx);
45
- return ret;
46
- }
47
-
48
48
  let WASM_VECTOR_LEN = 0;
49
49
 
50
50
  let cachedUint8Memory0 = null;
@@ -229,6 +229,10 @@ function handleError(f, args) {
229
229
  }
230
230
  }
231
231
 
232
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
233
+ takeObject(arg0);
234
+ };
235
+
232
236
  module.exports.__wbindgen_number_get = function(arg0, arg1) {
233
237
  const obj = getObject(arg1);
234
238
  const ret = typeof(obj) === 'number' ? obj : undefined;
@@ -236,20 +240,6 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
236
240
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
237
241
  };
238
242
 
239
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
240
- takeObject(arg0);
241
- };
242
-
243
- module.exports.__wbindgen_is_undefined = function(arg0) {
244
- const ret = getObject(arg0) === undefined;
245
- return ret;
246
- };
247
-
248
- module.exports.__wbg_constructor_f316a911c89e6ad1 = function(arg0) {
249
- const ret = new Error(takeObject(arg0));
250
- return addHeapObject(ret);
251
- };
252
-
253
243
  module.exports.__wbindgen_string_get = function(arg0, arg1) {
254
244
  const obj = getObject(arg1);
255
245
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -259,6 +249,11 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
259
249
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
260
250
  };
261
251
 
252
+ module.exports.__wbg_constructor_f316a911c89e6ad1 = function(arg0) {
253
+ const ret = new Error(takeObject(arg0));
254
+ return addHeapObject(ret);
255
+ };
256
+
262
257
  module.exports.__wbg_new_c532f61074fa67e0 = function() {
263
258
  const ret = new Map();
264
259
  return addHeapObject(ret);
@@ -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
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.30.0-e73cdbb.nightly",
6
+ "version": "0.30.0-ff7bb72.nightly",
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.30.0-e73cdbb.nightly"
39
+ "@noir-lang/types": "0.30.0-ff7bb72.nightly"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@esm-bundle/chai": "^4.3.4-fix.0",
@@ -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
- export type ABIError = Error;
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
- import { Field, InputValue, InputMap, Visibility, Sign, AbiType, AbiParameter, Abi, WitnessMap, RawAssertionPayload } from "@noir-lang/types";
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
 
@@ -6,6 +6,20 @@ heap.push(undefined, null, true, false);
6
6
 
7
7
  function getObject(idx) { return heap[idx]; }
8
8
 
9
+ let heap_next = heap.length;
10
+
11
+ function dropObject(idx) {
12
+ if (idx < 132) return;
13
+ heap[idx] = heap_next;
14
+ heap_next = idx;
15
+ }
16
+
17
+ function takeObject(idx) {
18
+ const ret = getObject(idx);
19
+ dropObject(idx);
20
+ return ret;
21
+ }
22
+
9
23
  function isLikeNone(x) {
10
24
  return x === undefined || x === null;
11
25
  }
@@ -28,20 +42,6 @@ function getInt32Memory0() {
28
42
  return cachedInt32Memory0;
29
43
  }
30
44
 
31
- let heap_next = heap.length;
32
-
33
- function dropObject(idx) {
34
- if (idx < 132) return;
35
- heap[idx] = heap_next;
36
- heap_next = idx;
37
- }
38
-
39
- function takeObject(idx) {
40
- const ret = getObject(idx);
41
- dropObject(idx);
42
- return ret;
43
- }
44
-
45
45
  let WASM_VECTOR_LEN = 0;
46
46
 
47
47
  let cachedUint8Memory0 = null;
@@ -260,23 +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_object_drop_ref = function(arg0) {
264
+ takeObject(arg0);
265
+ };
263
266
  imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
264
267
  const obj = getObject(arg1);
265
268
  const ret = typeof(obj) === 'number' ? obj : undefined;
266
269
  getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
267
270
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
268
271
  };
269
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
270
- takeObject(arg0);
271
- };
272
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
273
- const ret = getObject(arg0) === undefined;
274
- return ret;
275
- };
276
- imports.wbg.__wbg_constructor_f316a911c89e6ad1 = function(arg0) {
277
- const ret = new Error(takeObject(arg0));
278
- return addHeapObject(ret);
279
- };
280
272
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
281
273
  const obj = getObject(arg1);
282
274
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -285,6 +277,10 @@ function __wbg_get_imports() {
285
277
  getInt32Memory0()[arg0 / 4 + 1] = len1;
286
278
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
287
279
  };
280
+ imports.wbg.__wbg_constructor_f316a911c89e6ad1 = function(arg0) {
281
+ const ret = new Error(takeObject(arg0));
282
+ return addHeapObject(ret);
283
+ };
288
284
  imports.wbg.__wbg_new_c532f61074fa67e0 = function() {
289
285
  const ret = new Map();
290
286
  return addHeapObject(ret);
@@ -297,6 +293,10 @@ function __wbg_get_imports() {
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