@acala-network/chopsticks-executor 0.9.1-4 → 0.9.1-5

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.
@@ -4,10 +4,37 @@ const heap = new Array(128).fill(undefined);
4
4
 
5
5
  heap.push(undefined, null, true, false);
6
6
 
7
- function getObject(idx) { return heap[idx]; }
8
-
9
7
  let heap_next = heap.length;
10
8
 
9
+ function addHeapObject(obj) {
10
+ if (heap_next === heap.length) heap.push(heap.length + 1);
11
+ const idx = heap_next;
12
+ heap_next = heap[idx];
13
+
14
+ heap[idx] = obj;
15
+ return idx;
16
+ }
17
+
18
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
19
+
20
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
21
+
22
+ let cachedUint8Memory0 = null;
23
+
24
+ function getUint8Memory0() {
25
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
26
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
27
+ }
28
+ return cachedUint8Memory0;
29
+ }
30
+
31
+ function getStringFromWasm0(ptr, len) {
32
+ ptr = ptr >>> 0;
33
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
34
+ }
35
+
36
+ function getObject(idx) { return heap[idx]; }
37
+
11
38
  function dropObject(idx) {
12
39
  if (idx < 132) return;
13
40
  heap[idx] = heap_next;
@@ -42,33 +69,6 @@ function getInt32Memory0() {
42
69
  return cachedInt32Memory0;
43
70
  }
44
71
 
45
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
46
-
47
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
48
-
49
- let cachedUint8Memory0 = null;
50
-
51
- function getUint8Memory0() {
52
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
53
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
54
- }
55
- return cachedUint8Memory0;
56
- }
57
-
58
- function getStringFromWasm0(ptr, len) {
59
- ptr = ptr >>> 0;
60
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
61
- }
62
-
63
- function addHeapObject(obj) {
64
- if (heap_next === heap.length) heap.push(heap.length + 1);
65
- const idx = heap_next;
66
- heap_next = heap[idx];
67
-
68
- heap[idx] = obj;
69
- return idx;
70
- }
71
-
72
72
  let WASM_VECTOR_LEN = 0;
73
73
 
74
74
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
@@ -324,6 +324,52 @@ async function __wbg_load(module, imports) {
324
324
  function __wbg_get_imports() {
325
325
  const imports = {};
326
326
  imports.wbg = {};
327
+ imports.wbg.__wbg_new_c728d68b8b34487e = function() {
328
+ const ret = new Object();
329
+ return addHeapObject(ret);
330
+ };
331
+ imports.wbg.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
332
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
333
+ };
334
+ imports.wbg.__wbindgen_number_new = function(arg0) {
335
+ const ret = arg0;
336
+ return addHeapObject(ret);
337
+ };
338
+ imports.wbg.__wbg_new_08236689f0afb357 = function() {
339
+ const ret = new Array();
340
+ return addHeapObject(ret);
341
+ };
342
+ imports.wbg.__wbg_set_0ac78a2bc07da03c = function(arg0, arg1, arg2) {
343
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
344
+ };
345
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
346
+ const ret = getStringFromWasm0(arg0, arg1);
347
+ return addHeapObject(ret);
348
+ };
349
+ imports.wbg.__wbg_call_53fc3abd42e24ec8 = function() { return handleError(function (arg0, arg1, arg2) {
350
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
351
+ return addHeapObject(ret);
352
+ }, arguments) };
353
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
354
+ takeObject(arg0);
355
+ };
356
+ imports.wbg.__wbindgen_is_object = function(arg0) {
357
+ const val = getObject(arg0);
358
+ const ret = typeof(val) === 'object' && val !== null;
359
+ return ret;
360
+ };
361
+ imports.wbg.__wbg_getwithrefkey_5e6d9547403deab8 = function(arg0, arg1) {
362
+ const ret = getObject(arg0)[getObject(arg1)];
363
+ return addHeapObject(ret);
364
+ };
365
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
366
+ const ret = getObject(arg0) === undefined;
367
+ return ret;
368
+ };
369
+ imports.wbg.__wbindgen_in = function(arg0, arg1) {
370
+ const ret = getObject(arg0) in getObject(arg1);
371
+ return ret;
372
+ };
327
373
  imports.wbg.__wbg_isArray_38525be7442aa21e = function(arg0) {
328
374
  const ret = Array.isArray(getObject(arg0));
329
375
  return ret;
@@ -348,8 +394,10 @@ function __wbg_get_imports() {
348
394
  const ret = getObject(arg0).value;
349
395
  return addHeapObject(ret);
350
396
  };
351
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
352
- takeObject(arg0);
397
+ imports.wbg.__wbindgen_boolean_get = function(arg0) {
398
+ const v = getObject(arg0);
399
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
400
+ return ret;
353
401
  };
354
402
  imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
355
403
  const obj = getObject(arg1);
@@ -361,14 +409,6 @@ function __wbg_get_imports() {
361
409
  const ret = Number.isSafeInteger(getObject(arg0));
362
410
  return ret;
363
411
  };
364
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
365
- const ret = getStringFromWasm0(arg0, arg1);
366
- return addHeapObject(ret);
367
- };
368
- imports.wbg.__wbg_call_53fc3abd42e24ec8 = function() { return handleError(function (arg0, arg1, arg2) {
369
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
370
- return addHeapObject(ret);
371
- }, arguments) };
372
412
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
373
413
  const obj = getObject(arg1);
374
414
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -381,46 +421,6 @@ function __wbg_get_imports() {
381
421
  const ret = new Error(getStringFromWasm0(arg0, arg1));
382
422
  return addHeapObject(ret);
383
423
  };
384
- imports.wbg.__wbg_new_08236689f0afb357 = function() {
385
- const ret = new Array();
386
- return addHeapObject(ret);
387
- };
388
- imports.wbg.__wbg_set_0ac78a2bc07da03c = function(arg0, arg1, arg2) {
389
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
390
- };
391
- imports.wbg.__wbindgen_is_object = function(arg0) {
392
- const val = getObject(arg0);
393
- const ret = typeof(val) === 'object' && val !== null;
394
- return ret;
395
- };
396
- imports.wbg.__wbg_getwithrefkey_5e6d9547403deab8 = function(arg0, arg1) {
397
- const ret = getObject(arg0)[getObject(arg1)];
398
- return addHeapObject(ret);
399
- };
400
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
401
- const ret = getObject(arg0) === undefined;
402
- return ret;
403
- };
404
- imports.wbg.__wbindgen_in = function(arg0, arg1) {
405
- const ret = getObject(arg0) in getObject(arg1);
406
- return ret;
407
- };
408
- imports.wbg.__wbindgen_boolean_get = function(arg0) {
409
- const v = getObject(arg0);
410
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
411
- return ret;
412
- };
413
- imports.wbg.__wbg_new_c728d68b8b34487e = function() {
414
- const ret = new Object();
415
- return addHeapObject(ret);
416
- };
417
- imports.wbg.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
418
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
419
- };
420
- imports.wbg.__wbindgen_number_new = function(arg0) {
421
- const ret = arg0;
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) {
@@ -445,31 +445,31 @@ function __wbg_get_imports() {
445
445
  getInt32Memory0()[arg0 / 4 + 1] = len1;
446
446
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
447
447
  };
448
- imports.wbg.__wbg_getStorage_38f461cd4d96f7d1 = function(arg0, arg1) {
448
+ imports.wbg.__wbg_getStorage_96697e11c56b79c4 = function(arg0, arg1) {
449
449
  const ret = getObject(arg0).getStorage(takeObject(arg1));
450
450
  return addHeapObject(ret);
451
451
  };
452
- imports.wbg.__wbg_getStateRoot_fc671ff707491162 = function(arg0) {
452
+ imports.wbg.__wbg_getStateRoot_d9cce7707839676f = function(arg0) {
453
453
  const ret = getObject(arg0).getStateRoot();
454
454
  return addHeapObject(ret);
455
455
  };
456
- imports.wbg.__wbg_getNextKey_f352f504a9c8782f = function(arg0, arg1, arg2) {
456
+ imports.wbg.__wbg_getNextKey_ebb14ba19e806c29 = function(arg0, arg1, arg2) {
457
457
  const ret = getObject(arg0).getNextKey(takeObject(arg1), takeObject(arg2));
458
458
  return addHeapObject(ret);
459
459
  };
460
- imports.wbg.__wbg_offchainGetStorage_4b8766ede1cae211 = function(arg0, arg1) {
460
+ imports.wbg.__wbg_offchainGetStorage_9008dade145767af = function(arg0, arg1) {
461
461
  const ret = getObject(arg0).offchainGetStorage(takeObject(arg1));
462
462
  return addHeapObject(ret);
463
463
  };
464
- imports.wbg.__wbg_offchainTimestamp_45ee8b247786d9ab = function(arg0) {
464
+ imports.wbg.__wbg_offchainTimestamp_5ee9ae90800cd2f7 = function(arg0) {
465
465
  const ret = getObject(arg0).offchainTimestamp();
466
466
  return addHeapObject(ret);
467
467
  };
468
- imports.wbg.__wbg_offchainRandomSeed_676554dcb697cf70 = function(arg0) {
468
+ imports.wbg.__wbg_offchainRandomSeed_be8daaa3095ab839 = function(arg0) {
469
469
  const ret = getObject(arg0).offchainRandomSeed();
470
470
  return addHeapObject(ret);
471
471
  };
472
- imports.wbg.__wbg_offchainSubmitTransaction_a82409c564dd9903 = function(arg0, arg1) {
472
+ imports.wbg.__wbg_offchainSubmitTransaction_c50602f39032740b = function(arg0, arg1) {
473
473
  const ret = getObject(arg0).offchainSubmitTransaction(takeObject(arg1));
474
474
  return addHeapObject(ret);
475
475
  };