@midnightntwrk/zkir-v2 2.1.0 → 2.2.0-rc.2

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.
@@ -175,6 +175,25 @@ export function check(ser_preimage, provider) {
175
175
  return ret;
176
176
  }
177
177
 
178
+ function takeFromExternrefTable0(idx) {
179
+ const value = wasm.__wbindgen_export_1.get(idx);
180
+ wasm.__externref_table_dealloc(idx);
181
+ return value;
182
+ }
183
+ /**
184
+ * @param {string} json
185
+ * @returns {Uint8Array}
186
+ */
187
+ export function jsonIrToBinary(json) {
188
+ const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
189
+ const len0 = WASM_VECTOR_LEN;
190
+ const ret = wasm.jsonIrToBinary(ptr0, len0);
191
+ if (ret[2]) {
192
+ throw takeFromExternrefTable0(ret[1]);
193
+ }
194
+ return takeFromExternrefTable0(ret[0]);
195
+ }
196
+
178
197
  /**
179
198
  * @param {any} km_provider
180
199
  * @returns {WrappedProvingProvider}
@@ -195,27 +214,8 @@ export function prove(ser_preimage, provider, overwrite_binding_input) {
195
214
  return ret;
196
215
  }
197
216
 
198
- function takeFromExternrefTable0(idx) {
199
- const value = wasm.__wbindgen_export_1.get(idx);
200
- wasm.__externref_table_dealloc(idx);
201
- return value;
202
- }
203
- /**
204
- * @param {string} json
205
- * @returns {Uint8Array}
206
- */
207
- export function jsonIrToBinary(json) {
208
- const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
209
- const len0 = WASM_VECTOR_LEN;
210
- const ret = wasm.jsonIrToBinary(ptr0, len0);
211
- if (ret[2]) {
212
- throw takeFromExternrefTable0(ret[1]);
213
- }
214
- return takeFromExternrefTable0(ret[0]);
215
- }
216
-
217
- function __wbg_adapter_12(arg0, arg1, arg2) {
218
- wasm.closure1572_externref_shim(arg0, arg1, arg2);
217
+ function __wbg_adapter_14(arg0, arg1, arg2) {
218
+ wasm.closure1573_externref_shim(arg0, arg1, arg2);
219
219
  }
220
220
 
221
221
  function __wbg_adapter_104(arg0, arg1, arg2, arg3) {
@@ -779,9 +779,9 @@ export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
779
779
  return ret;
780
780
  };
781
781
 
782
- export function __wbindgen_cast_64046a632493e65c(arg0, arg1) {
783
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1571, function: Function { arguments: [Externref], shim_idx: 1572, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
784
- const ret = makeMutClosure(arg0, arg1, 1571, __wbg_adapter_12);
782
+ export function __wbindgen_cast_5ecc66848984a93c(arg0, arg1) {
783
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1572, function: Function { arguments: [Externref], shim_idx: 1573, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
784
+ const ret = makeMutClosure(arg0, arg1, 1572, __wbg_adapter_14);
785
785
  return ret;
786
786
  };
787
787
 
Binary file
package/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@midnightntwrk/zkir-v2",
3
- "version": "2.1.0",
3
+ "version": "2.2.0-rc.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@midnightntwrk/zkir-v2",
9
- "version": "2.1.0"
9
+ "version": "2.2.0-rc.2"
10
10
  }
11
11
  }
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midnightntwrk/zkir-v2",
3
- "version": "2.1.0",
3
+ "version": "2.2.0-rc.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "midnight_zkir_wasm.js",