@acala-network/chopsticks-executor 0.9.7 → 0.9.8-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.
@@ -164,53 +164,7 @@ heap.push(undefined, null, true, false);
164
164
  function getObject(idx) {
165
165
  return heap[idx];
166
166
  }
167
- var heap_next = heap.length;
168
- function dropObject(idx) {
169
- if (idx < 132) return;
170
- heap[idx] = heap_next;
171
- heap_next = idx;
172
- }
173
- function takeObject(idx) {
174
- var ret = getObject(idx);
175
- dropObject(idx);
176
- return ret;
177
- }
178
- function addHeapObject(obj) {
179
- if (heap_next === heap.length) heap.push(heap.length + 1);
180
- var idx = heap_next;
181
- heap_next = heap[idx];
182
- heap[idx] = obj;
183
- return idx;
184
- }
185
- function isLikeNone(x) {
186
- return x === undefined || x === null;
187
- }
188
- var cachedFloat64Memory0 = null;
189
- function getFloat64Memory0() {
190
- if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
191
- cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
192
- }
193
- return cachedFloat64Memory0;
194
- }
195
- var cachedInt32Memory0 = null;
196
- function getInt32Memory0() {
197
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
198
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
199
- }
200
- return cachedInt32Memory0;
201
- }
202
- var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", {
203
- ignoreBOM: true,
204
- fatal: true
205
- }) : {
206
- decode: function() {
207
- throw Error("TextDecoder not available");
208
- }
209
- };
210
- if (typeof TextDecoder !== "undefined") {
211
- cachedTextDecoder.decode();
212
- }
213
- ;
167
+ var WASM_VECTOR_LEN = 0;
214
168
  var cachedUint8Memory0 = null;
215
169
  function getUint8Memory0() {
216
170
  if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
@@ -218,11 +172,6 @@ function getUint8Memory0() {
218
172
  }
219
173
  return cachedUint8Memory0;
220
174
  }
221
- function getStringFromWasm0(ptr, len) {
222
- ptr = ptr >>> 0;
223
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
224
- }
225
- var WASM_VECTOR_LEN = 0;
226
175
  var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : {
227
176
  encode: function() {
228
177
  throw Error("TextEncoder not available");
@@ -267,6 +216,50 @@ function passStringToWasm0(arg, malloc, realloc) {
267
216
  WASM_VECTOR_LEN = offset;
268
217
  return ptr1;
269
218
  }
219
+ function isLikeNone(x) {
220
+ return x === undefined || x === null;
221
+ }
222
+ var cachedInt32Memory0 = null;
223
+ function getInt32Memory0() {
224
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
225
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
226
+ }
227
+ return cachedInt32Memory0;
228
+ }
229
+ var heap_next = heap.length;
230
+ function dropObject(idx) {
231
+ if (idx < 132) return;
232
+ heap[idx] = heap_next;
233
+ heap_next = idx;
234
+ }
235
+ function takeObject(idx) {
236
+ var ret = getObject(idx);
237
+ dropObject(idx);
238
+ return ret;
239
+ }
240
+ var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", {
241
+ ignoreBOM: true,
242
+ fatal: true
243
+ }) : {
244
+ decode: function() {
245
+ throw Error("TextDecoder not available");
246
+ }
247
+ };
248
+ if (typeof TextDecoder !== "undefined") {
249
+ cachedTextDecoder.decode();
250
+ }
251
+ ;
252
+ function getStringFromWasm0(ptr, len) {
253
+ ptr = ptr >>> 0;
254
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
255
+ }
256
+ function addHeapObject(obj) {
257
+ if (heap_next === heap.length) heap.push(heap.length + 1);
258
+ var idx = heap_next;
259
+ heap_next = heap[idx];
260
+ heap[idx] = obj;
261
+ return idx;
262
+ }
270
263
  var cachedBigInt64Memory0 = null;
271
264
  function getBigInt64Memory0() {
272
265
  if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
@@ -274,6 +267,13 @@ function getBigInt64Memory0() {
274
267
  }
275
268
  return cachedBigInt64Memory0;
276
269
  }
270
+ var cachedFloat64Memory0 = null;
271
+ function getFloat64Memory0() {
272
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
273
+ cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
274
+ }
275
+ return cachedFloat64Memory0;
276
+ }
277
277
  function debugString(val) {
278
278
  // primitive types
279
279
  var type = typeof val === "undefined" ? "undefined" : _type_of(val);
@@ -371,8 +371,8 @@ function makeMutClosure(arg0, arg1, dtor, f) {
371
371
  real.original = state;
372
372
  return real;
373
373
  }
374
- function __wbg_adapter_46(arg0, arg1, arg2) {
375
- wasm.wasm_bindgen__convert__closures__invoke1_mut__h84425a3baffea565(arg0, arg1, addHeapObject(arg2));
374
+ function __wbg_adapter_48(arg0, arg1, arg2) {
375
+ wasm.wasm_bindgen__convert__closures__invoke1_mut__h7a5e866c0a397d34(arg0, arg1, addHeapObject(arg2));
376
376
  }
377
377
  function handleError(f, args) {
378
378
  try {
@@ -431,8 +431,8 @@ function handleError(f, args) {
431
431
  var ret = wasm.testing(addHeapObject(js), addHeapObject(key));
432
432
  return takeObject(ret);
433
433
  }
434
- function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
435
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h59e4ab6c95dba127(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
434
+ function __wbg_adapter_111(arg0, arg1, arg2, arg3) {
435
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h26b9ddb6e7e04f97(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
436
436
  }
437
437
  function __wbg_load(module, imports) {
438
438
  return ___wbg_load.apply(this, arguments);
@@ -529,24 +529,19 @@ function ___wbg_load() {
529
529
  function __wbg_get_imports() {
530
530
  var imports = {};
531
531
  imports.wbg = {};
532
- imports.wbg.__wbg_call_53fc3abd42e24ec8 = function() {
533
- return handleError(function(arg0, arg1, arg2) {
534
- var ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
535
- return addHeapObject(ret);
536
- }, arguments);
532
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
533
+ var obj = getObject(arg1);
534
+ var ret = typeof obj === "string" ? obj : undefined;
535
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
536
+ var len1 = WASM_VECTOR_LEN;
537
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
538
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
537
539
  };
538
540
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
539
541
  takeObject(arg0);
540
542
  };
541
- imports.wbg.__wbg_new_c728d68b8b34487e = function() {
542
- var ret = new Object();
543
- return addHeapObject(ret);
544
- };
545
- imports.wbg.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
546
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
547
- };
548
- imports.wbg.__wbindgen_number_new = function(arg0) {
549
- var ret = arg0;
543
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
544
+ var ret = new Error(getStringFromWasm0(arg0, arg1));
550
545
  return addHeapObject(ret);
551
546
  };
552
547
  imports.wbg.__wbg_new_08236689f0afb357 = function() {
@@ -556,12 +551,18 @@ function __wbg_get_imports() {
556
551
  imports.wbg.__wbg_set_0ac78a2bc07da03c = function(arg0, arg1, arg2) {
557
552
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
558
553
  };
554
+ imports.wbg.__wbg_call_53fc3abd42e24ec8 = function() {
555
+ return handleError(function(arg0, arg1, arg2) {
556
+ var ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
557
+ return addHeapObject(ret);
558
+ }, arguments);
559
+ };
559
560
  imports.wbg.__wbindgen_is_object = function(arg0) {
560
561
  var val = getObject(arg0);
561
562
  var ret = typeof val === "object" && val !== null;
562
563
  return ret;
563
564
  };
564
- imports.wbg.__wbg_getwithrefkey_5e6d9547403deab8 = function(arg0, arg1) {
565
+ imports.wbg.__wbg_getwithrefkey_4a92a5eca60879b9 = function(arg0, arg1) {
565
566
  var ret = getObject(arg0)[getObject(arg1)];
566
567
  return addHeapObject(ret);
567
568
  };
@@ -604,22 +605,27 @@ function __wbg_get_imports() {
604
605
  var ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
605
606
  return ret;
606
607
  };
607
- imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
608
- var obj = getObject(arg1);
609
- var ret = typeof obj === "number" ? obj : undefined;
610
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
611
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
612
- };
613
608
  imports.wbg.__wbg_isSafeInteger_c38b0a16d0c7cef7 = function(arg0) {
614
609
  var ret = Number.isSafeInteger(getObject(arg0));
615
610
  return ret;
616
611
  };
612
+ imports.wbg.__wbindgen_as_number = function(arg0) {
613
+ var ret = +getObject(arg0);
614
+ return ret;
615
+ };
616
+ imports.wbg.__wbg_new_c728d68b8b34487e = function() {
617
+ var ret = new Object();
618
+ return addHeapObject(ret);
619
+ };
620
+ imports.wbg.__wbg_set_9182712abebf82ef = function(arg0, arg1, arg2) {
621
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
622
+ };
617
623
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
618
624
  var ret = getStringFromWasm0(arg0, arg1);
619
625
  return addHeapObject(ret);
620
626
  };
621
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
622
- var ret = new Error(getStringFromWasm0(arg0, arg1));
627
+ imports.wbg.__wbindgen_number_new = function(arg0) {
628
+ var ret = arg0;
623
629
  return addHeapObject(ret);
624
630
  };
625
631
  imports.wbg.__wbg_getStorage_22c97034e37920e0 = function() {
@@ -628,14 +634,6 @@ function __wbg_get_imports() {
628
634
  return addHeapObject(ret);
629
635
  }, arguments);
630
636
  };
631
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
632
- var obj = getObject(arg1);
633
- var ret = typeof obj === "string" ? obj : undefined;
634
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
635
- var len1 = WASM_VECTOR_LEN;
636
- getInt32Memory0()[arg0 / 4 + 1] = len1;
637
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
638
- };
639
637
  imports.wbg.__wbindgen_cb_drop = function(arg0) {
640
638
  var obj = takeObject(arg0).original;
641
639
  if (obj.cnt-- == 1) {
@@ -645,7 +643,7 @@ function __wbg_get_imports() {
645
643
  var ret = false;
646
644
  return ret;
647
645
  };
648
- imports.wbg.__wbg_String_88810dfeb4021902 = function(arg0, arg1) {
646
+ imports.wbg.__wbg_String_389b54bd9d25375f = function(arg0, arg1) {
649
647
  var ret = String(getObject(arg1));
650
648
  var ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
651
649
  var len1 = WASM_VECTOR_LEN;
@@ -724,7 +722,7 @@ function __wbg_get_imports() {
724
722
  var a = state0.a;
725
723
  state0.a = 0;
726
724
  try {
727
- return __wbg_adapter_109(a, state0.b, arg0, arg1);
725
+ return __wbg_adapter_111(a, state0.b, arg0, arg1);
728
726
  } finally{
729
727
  state0.a = a;
730
728
  }
@@ -800,6 +798,12 @@ function __wbg_get_imports() {
800
798
  imports.wbg.__wbg_set_dcfd613a3420f908 = function(arg0, arg1, arg2) {
801
799
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
802
800
  };
801
+ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
802
+ var obj = getObject(arg1);
803
+ var ret = typeof obj === "number" ? obj : undefined;
804
+ getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
805
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
806
+ };
803
807
  imports.wbg.__wbg_instanceof_Uint8Array_19e6f142a5e7e1e1 = function(arg0) {
804
808
  var result;
805
809
  try {
@@ -896,8 +900,8 @@ function __wbg_get_imports() {
896
900
  imports.wbg.__wbg_warn_4affe1093892a4ef = function(arg0) {
897
901
  console.warn(getObject(arg0));
898
902
  };
899
- imports.wbg.__wbindgen_closure_wrapper1345 = function(arg0, arg1, arg2) {
900
- var ret = makeMutClosure(arg0, arg1, 122, __wbg_adapter_46);
903
+ imports.wbg.__wbindgen_closure_wrapper1435 = function(arg0, arg1, arg2) {
904
+ var ret = makeMutClosure(arg0, arg1, 164, __wbg_adapter_48);
901
905
  return addHeapObject(ret);
902
906
  };
903
907
  return imports;
@@ -63,10 +63,10 @@ export interface InitOutput {
63
63
  readonly __wbindgen_malloc: (a: number, b: number) => number;
64
64
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
65
65
  readonly __wbindgen_export_2: WebAssembly.Table;
66
- readonly wasm_bindgen__convert__closures__invoke1_mut__h84425a3baffea565: (a: number, b: number, c: number) => void;
66
+ readonly wasm_bindgen__convert__closures__invoke1_mut__h7a5e866c0a397d34: (a: number, b: number, c: number) => void;
67
67
  readonly __wbindgen_exn_store: (a: number) => void;
68
68
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
69
- readonly wasm_bindgen__convert__closures__invoke2_mut__h59e4ab6c95dba127: (a: number, b: number, c: number, d: number) => void;
69
+ readonly wasm_bindgen__convert__closures__invoke2_mut__h26b9ddb6e7e04f97: (a: number, b: number, c: number, d: number) => void;
70
70
  }
71
71
 
72
72
  export type SyncInitInput = BufferSource | WebAssembly.Module;