@noir-lang/noirc_abi 0.32.0 → 0.33.0-e349f30.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
- 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";
28
+ export type ABIError = Error;
30
29
 
31
30
 
32
31
 
33
- export type ABIError = Error;
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";
34
34
 
35
35
 
@@ -9,20 +9,6 @@ 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
-
26
12
  function isLikeNone(x) {
27
13
  return x === undefined || x === null;
28
14
  }
@@ -45,6 +31,20 @@ function getInt32Memory0() {
45
31
  return cachedInt32Memory0;
46
32
  }
47
33
 
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,10 +229,6 @@ function handleError(f, args) {
229
229
  }
230
230
  }
231
231
 
232
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
233
- takeObject(arg0);
234
- };
235
-
236
232
  module.exports.__wbindgen_number_get = function(arg0, arg1) {
237
233
  const obj = getObject(arg1);
238
234
  const ret = typeof(obj) === 'number' ? obj : undefined;
@@ -240,6 +236,15 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
240
236
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
241
237
  };
242
238
 
239
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
240
+ takeObject(arg0);
241
+ };
242
+
243
+ module.exports.__wbg_constructor_8145c6d5c6f96c2a = function(arg0) {
244
+ const ret = new Error(takeObject(arg0));
245
+ return addHeapObject(ret);
246
+ };
247
+
243
248
  module.exports.__wbindgen_string_get = function(arg0, arg1) {
244
249
  const obj = getObject(arg1);
245
250
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -249,12 +254,7 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
249
254
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
250
255
  };
251
256
 
252
- module.exports.__wbg_constructor_608b2200692fea49 = function(arg0) {
253
- const ret = new Error(takeObject(arg0));
254
- return addHeapObject(ret);
255
- };
256
-
257
- module.exports.__wbg_new_6c8f9f6ac412293e = function() {
257
+ module.exports.__wbg_new_a5bc6f59ccd12cf4 = function() {
258
258
  const ret = new Map();
259
259
  return addHeapObject(ret);
260
260
  };
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.32.0",
6
+ "version": "0.33.0-e349f30.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.32.0"
39
+ "@noir-lang/types": "0.33.0-e349f30.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
- 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";
28
+ export type ABIError = Error;
30
29
 
31
30
 
32
31
 
33
- export type ABIError = Error;
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";
34
34
 
35
35
 
36
36
 
@@ -6,20 +6,6 @@ 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
-
23
9
  function isLikeNone(x) {
24
10
  return x === undefined || x === null;
25
11
  }
@@ -42,6 +28,20 @@ function getInt32Memory0() {
42
28
  return cachedInt32Memory0;
43
29
  }
44
30
 
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,15 +260,19 @@ 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
- };
266
263
  imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
267
264
  const obj = getObject(arg1);
268
265
  const ret = typeof(obj) === 'number' ? obj : undefined;
269
266
  getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
270
267
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
271
268
  };
269
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
270
+ takeObject(arg0);
271
+ };
272
+ imports.wbg.__wbg_constructor_8145c6d5c6f96c2a = function(arg0) {
273
+ const ret = new Error(takeObject(arg0));
274
+ return addHeapObject(ret);
275
+ };
272
276
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
273
277
  const obj = getObject(arg1);
274
278
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -277,11 +281,7 @@ function __wbg_get_imports() {
277
281
  getInt32Memory0()[arg0 / 4 + 1] = len1;
278
282
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
279
283
  };
280
- imports.wbg.__wbg_constructor_608b2200692fea49 = function(arg0) {
281
- const ret = new Error(takeObject(arg0));
282
- return addHeapObject(ret);
283
- };
284
- imports.wbg.__wbg_new_6c8f9f6ac412293e = function() {
284
+ imports.wbg.__wbg_new_a5bc6f59ccd12cf4 = function() {
285
285
  const ret = new Map();
286
286
  return addHeapObject(ret);
287
287
  };
Binary file