@acala-network/chopsticks-executor 0.8.0 → 0.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.
@@ -6,7 +6,23 @@ heap.push(undefined, null, true, false);
6
6
 
7
7
  function getObject(idx) { return heap[idx]; }
8
8
 
9
- let WASM_VECTOR_LEN = 0;
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
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
24
+
25
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
10
26
 
11
27
  let cachedUint8Memory0 = null;
12
28
 
@@ -17,6 +33,44 @@ function getUint8Memory0() {
17
33
  return cachedUint8Memory0;
18
34
  }
19
35
 
36
+ function getStringFromWasm0(ptr, len) {
37
+ ptr = ptr >>> 0;
38
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
39
+ }
40
+
41
+ function addHeapObject(obj) {
42
+ if (heap_next === heap.length) heap.push(heap.length + 1);
43
+ const idx = heap_next;
44
+ heap_next = heap[idx];
45
+
46
+ heap[idx] = obj;
47
+ return idx;
48
+ }
49
+
50
+ function isLikeNone(x) {
51
+ return x === undefined || x === null;
52
+ }
53
+
54
+ let cachedFloat64Memory0 = null;
55
+
56
+ function getFloat64Memory0() {
57
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
58
+ cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
59
+ }
60
+ return cachedFloat64Memory0;
61
+ }
62
+
63
+ let cachedInt32Memory0 = null;
64
+
65
+ function getInt32Memory0() {
66
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
67
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
68
+ }
69
+ return cachedInt32Memory0;
70
+ }
71
+
72
+ let WASM_VECTOR_LEN = 0;
73
+
20
74
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
21
75
 
22
76
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -70,60 +124,6 @@ function passStringToWasm0(arg, malloc, realloc) {
70
124
  return ptr;
71
125
  }
72
126
 
73
- function isLikeNone(x) {
74
- return x === undefined || x === null;
75
- }
76
-
77
- let cachedInt32Memory0 = null;
78
-
79
- function getInt32Memory0() {
80
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
81
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
82
- }
83
- return cachedInt32Memory0;
84
- }
85
-
86
- let heap_next = heap.length;
87
-
88
- function dropObject(idx) {
89
- if (idx < 132) return;
90
- heap[idx] = heap_next;
91
- heap_next = idx;
92
- }
93
-
94
- function takeObject(idx) {
95
- const ret = getObject(idx);
96
- dropObject(idx);
97
- return ret;
98
- }
99
-
100
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
101
-
102
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
103
-
104
- function getStringFromWasm0(ptr, len) {
105
- ptr = ptr >>> 0;
106
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
107
- }
108
-
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];
113
-
114
- heap[idx] = obj;
115
- return idx;
116
- }
117
-
118
- let cachedFloat64Memory0 = null;
119
-
120
- function getFloat64Memory0() {
121
- if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
122
- cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
123
- }
124
- return cachedFloat64Memory0;
125
- }
126
-
127
127
  let cachedBigInt64Memory0 = null;
128
128
 
129
129
  function getBigInt64Memory0() {
@@ -223,7 +223,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
223
223
  return real;
224
224
  }
225
225
  function __wbg_adapter_46(arg0, arg1, arg2) {
226
- wasm.wasm_bindgen__convert__closures__invoke1_mut__h7043b82208c98903(arg0, arg1, addHeapObject(arg2));
226
+ wasm.wasm_bindgen__convert__closures__invoke1_mut__hc4c3186ceda303d2(arg0, arg1, addHeapObject(arg2));
227
227
  }
228
228
 
229
229
  /**
@@ -287,7 +287,7 @@ function handleError(f, args) {
287
287
  }
288
288
  }
289
289
  function __wbg_adapter_106(arg0, arg1, arg2, arg3) {
290
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h14b58699f4ec867c(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
290
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h2cd630d2c4a26d29(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
291
291
  }
292
292
 
293
293
  async function __wbg_load(module, imports) {
@@ -324,29 +324,6 @@ async function __wbg_load(module, imports) {
324
324
  function __wbg_get_imports() {
325
325
  const imports = {};
326
326
  imports.wbg = {};
327
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
328
- const obj = getObject(arg1);
329
- const ret = typeof(obj) === 'string' ? obj : undefined;
330
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
331
- var len1 = WASM_VECTOR_LEN;
332
- getInt32Memory0()[arg0 / 4 + 1] = len1;
333
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
334
- };
335
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
336
- takeObject(arg0);
337
- };
338
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
339
- const ret = new Error(getStringFromWasm0(arg0, arg1));
340
- return addHeapObject(ret);
341
- };
342
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
343
- const ret = getStringFromWasm0(arg0, arg1);
344
- return addHeapObject(ret);
345
- };
346
- imports.wbg.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
347
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
348
- return addHeapObject(ret);
349
- }, arguments) };
350
327
  imports.wbg.__wbg_isArray_4c24b343cb13cfb1 = function(arg0) {
351
328
  const ret = Array.isArray(getObject(arg0));
352
329
  return ret;
@@ -371,16 +348,24 @@ function __wbg_get_imports() {
371
348
  const ret = getObject(arg0).value;
372
349
  return addHeapObject(ret);
373
350
  };
374
- imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
375
- const obj = getObject(arg1);
376
- const ret = typeof(obj) === 'number' ? obj : undefined;
377
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
378
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
351
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
352
+ takeObject(arg0);
379
353
  };
380
- imports.wbg.__wbg_isSafeInteger_bb8e18dd21c97288 = function(arg0) {
381
- const ret = Number.isSafeInteger(getObject(arg0));
382
- return ret;
354
+ imports.wbg.__wbg_new_898a68150f225f2e = function() {
355
+ const ret = new Array();
356
+ return addHeapObject(ret);
383
357
  };
358
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
359
+ const ret = getStringFromWasm0(arg0, arg1);
360
+ return addHeapObject(ret);
361
+ };
362
+ imports.wbg.__wbg_set_502d29070ea18557 = function(arg0, arg1, arg2) {
363
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
364
+ };
365
+ imports.wbg.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
366
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
367
+ return addHeapObject(ret);
368
+ }, arguments) };
384
369
  imports.wbg.__wbg_new_b51585de1b234aff = function() {
385
370
  const ret = new Object();
386
371
  return addHeapObject(ret);
@@ -392,13 +377,6 @@ function __wbg_get_imports() {
392
377
  const ret = arg0;
393
378
  return addHeapObject(ret);
394
379
  };
395
- imports.wbg.__wbg_new_898a68150f225f2e = function() {
396
- const ret = new Array();
397
- return addHeapObject(ret);
398
- };
399
- imports.wbg.__wbg_set_502d29070ea18557 = function(arg0, arg1, arg2) {
400
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
401
- };
402
380
  imports.wbg.__wbindgen_is_object = function(arg0) {
403
381
  const val = getObject(arg0);
404
382
  const ret = typeof(val) === 'object' && val !== null;
@@ -421,6 +399,28 @@ function __wbg_get_imports() {
421
399
  const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
422
400
  return ret;
423
401
  };
402
+ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
403
+ const obj = getObject(arg1);
404
+ const ret = typeof(obj) === 'number' ? obj : undefined;
405
+ getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
406
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
407
+ };
408
+ imports.wbg.__wbg_isSafeInteger_bb8e18dd21c97288 = function(arg0) {
409
+ const ret = Number.isSafeInteger(getObject(arg0));
410
+ return ret;
411
+ };
412
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
413
+ const obj = getObject(arg1);
414
+ const ret = typeof(obj) === 'string' ? obj : undefined;
415
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
416
+ var len1 = WASM_VECTOR_LEN;
417
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
418
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
419
+ };
420
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
421
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
422
+ return addHeapObject(ret);
423
+ };
424
424
  imports.wbg.__wbindgen_cb_drop = function(arg0) {
425
425
  const obj = takeObject(arg0).original;
426
426
  if (obj.cnt-- == 1) {
@@ -434,41 +434,45 @@ function __wbg_get_imports() {
434
434
  const ret = getObject(arg0) == getObject(arg1);
435
435
  return ret;
436
436
  };
437
- imports.wbg.__wbg_offchainSubmitTransaction_63ba1665b4baf81d = function(arg0, arg1) {
438
- const ret = getObject(arg0).offchainSubmitTransaction(takeObject(arg1));
437
+ imports.wbg.__wbindgen_is_string = function(arg0) {
438
+ const ret = typeof(getObject(arg0)) === 'string';
439
+ return ret;
440
+ };
441
+ imports.wbg.__wbg_String_88810dfeb4021902 = function(arg0, arg1) {
442
+ const ret = String(getObject(arg1));
443
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
444
+ const len1 = WASM_VECTOR_LEN;
445
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
446
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
447
+ };
448
+ imports.wbg.__wbg_getStorage_0caa9fff1ec93d2c = function(arg0, arg1) {
449
+ const ret = getObject(arg0).getStorage(takeObject(arg1));
439
450
  return addHeapObject(ret);
440
451
  };
441
- imports.wbg.__wbg_offchainRandomSeed_e1ee69c9c37dafb8 = function(arg0) {
442
- const ret = getObject(arg0).offchainRandomSeed();
452
+ imports.wbg.__wbg_getStateRoot_d883db6c9e7723c4 = function(arg0) {
453
+ const ret = getObject(arg0).getStateRoot();
443
454
  return addHeapObject(ret);
444
455
  };
445
- imports.wbg.__wbg_offchainTimestamp_320e8e4c96c9e04c = function(arg0) {
446
- const ret = getObject(arg0).offchainTimestamp();
456
+ imports.wbg.__wbg_getNextKey_b142e3a045ec19f7 = function(arg0, arg1, arg2) {
457
+ const ret = getObject(arg0).getNextKey(takeObject(arg1), takeObject(arg2));
447
458
  return addHeapObject(ret);
448
459
  };
449
- imports.wbg.__wbg_offchainGetStorage_953b5cc09e08e83d = function(arg0, arg1) {
460
+ imports.wbg.__wbg_offchainGetStorage_04d971d8d9be4555 = function(arg0, arg1) {
450
461
  const ret = getObject(arg0).offchainGetStorage(takeObject(arg1));
451
462
  return addHeapObject(ret);
452
463
  };
453
- imports.wbg.__wbg_getNextKey_5794bb6bbba2420d = function(arg0, arg1, arg2) {
454
- const ret = getObject(arg0).getNextKey(takeObject(arg1), takeObject(arg2));
464
+ imports.wbg.__wbg_offchainTimestamp_56adb994773c3d84 = function(arg0) {
465
+ const ret = getObject(arg0).offchainTimestamp();
455
466
  return addHeapObject(ret);
456
467
  };
457
- imports.wbg.__wbg_getStateRoot_899ea4ca2b02d1f6 = function(arg0) {
458
- const ret = getObject(arg0).getStateRoot();
468
+ imports.wbg.__wbg_offchainRandomSeed_00d96b9f7a7d6171 = function(arg0) {
469
+ const ret = getObject(arg0).offchainRandomSeed();
459
470
  return addHeapObject(ret);
460
471
  };
461
- imports.wbg.__wbg_getStorage_83a32e2f6165ee0b = function(arg0, arg1) {
462
- const ret = getObject(arg0).getStorage(takeObject(arg1));
472
+ imports.wbg.__wbg_offchainSubmitTransaction_0afd1bebc089ab44 = function(arg0, arg1) {
473
+ const ret = getObject(arg0).offchainSubmitTransaction(takeObject(arg1));
463
474
  return addHeapObject(ret);
464
475
  };
465
- imports.wbg.__wbg_String_88810dfeb4021902 = function(arg0, arg1) {
466
- const ret = String(getObject(arg1));
467
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
468
- const len1 = WASM_VECTOR_LEN;
469
- getInt32Memory0()[arg0 / 4 + 1] = len1;
470
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
471
- };
472
476
  imports.wbg.__wbindgen_is_bigint = function(arg0) {
473
477
  const ret = typeof(getObject(arg0)) === 'bigint';
474
478
  return ret;
@@ -487,10 +491,6 @@ function __wbg_get_imports() {
487
491
  const ret = getObject(arg0) === getObject(arg1);
488
492
  return ret;
489
493
  };
490
- imports.wbg.__wbindgen_is_string = function(arg0) {
491
- const ret = typeof(getObject(arg0)) === 'string';
492
- return ret;
493
- };
494
494
  imports.wbg.__wbg_new_43f1b47c28813cbd = function(arg0, arg1) {
495
495
  try {
496
496
  var state0 = {a: arg0, b: arg1};
@@ -616,23 +616,23 @@ function __wbg_get_imports() {
616
616
  const ret = getObject(arg0).then(getObject(arg1));
617
617
  return addHeapObject(ret);
618
618
  };
619
- imports.wbg.__wbg_debug_f15cb542ea509609 = function(arg0) {
619
+ imports.wbg.__wbg_debug_9a6b3243fbbebb61 = function(arg0) {
620
620
  console.debug(getObject(arg0));
621
621
  };
622
- imports.wbg.__wbg_error_ef9a0be47931175f = function(arg0) {
622
+ imports.wbg.__wbg_error_788ae33f81d3b84b = function(arg0) {
623
623
  console.error(getObject(arg0));
624
624
  };
625
- imports.wbg.__wbg_info_2874fdd5393f35ce = function(arg0) {
625
+ imports.wbg.__wbg_info_2e30e8204b29d91d = function(arg0) {
626
626
  console.info(getObject(arg0));
627
627
  };
628
- imports.wbg.__wbg_log_4b5638ad60bdc54a = function(arg0) {
628
+ imports.wbg.__wbg_log_1d3ae0273d8f4f8a = function(arg0) {
629
629
  console.log(getObject(arg0));
630
630
  };
631
- imports.wbg.__wbg_warn_58110c4a199df084 = function(arg0) {
631
+ imports.wbg.__wbg_warn_d60e832f9882c1b2 = function(arg0) {
632
632
  console.warn(getObject(arg0));
633
633
  };
634
- imports.wbg.__wbindgen_closure_wrapper1327 = function(arg0, arg1, arg2) {
635
- const ret = makeMutClosure(arg0, arg1, 128, __wbg_adapter_46);
634
+ imports.wbg.__wbindgen_closure_wrapper1332 = function(arg0, arg1, arg2) {
635
+ const ret = makeMutClosure(arg0, arg1, 124, __wbg_adapter_46);
636
636
  return addHeapObject(ret);
637
637
  };
638
638
 
Binary file