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

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.
@@ -20,6 +20,28 @@ function takeObject(idx) {
20
20
  return ret;
21
21
  }
22
22
 
23
+ function isLikeNone(x) {
24
+ return x === undefined || x === null;
25
+ }
26
+
27
+ let cachedFloat64Memory0 = null;
28
+
29
+ function getFloat64Memory0() {
30
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
31
+ cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
32
+ }
33
+ return cachedFloat64Memory0;
34
+ }
35
+
36
+ let cachedInt32Memory0 = null;
37
+
38
+ function getInt32Memory0() {
39
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
40
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
41
+ }
42
+ return cachedInt32Memory0;
43
+ }
44
+
23
45
  const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
24
46
 
25
47
  if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
@@ -47,28 +69,6 @@ function addHeapObject(obj) {
47
69
  return idx;
48
70
  }
49
71
 
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
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') } } );
@@ -351,21 +351,6 @@ function __wbg_get_imports() {
351
351
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
352
352
  takeObject(arg0);
353
353
  };
354
- imports.wbg.__wbg_new_08236689f0afb357 = function() {
355
- const ret = new Array();
356
- return addHeapObject(ret);
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_0ac78a2bc07da03c = function(arg0, arg1, arg2) {
363
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
364
- };
365
- imports.wbg.__wbg_call_53fc3abd42e24ec8 = function() { return handleError(function (arg0, arg1, arg2) {
366
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
367
- return addHeapObject(ret);
368
- }, arguments) };
369
354
  imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
370
355
  const obj = getObject(arg1);
371
356
  const ret = typeof(obj) === 'number' ? obj : undefined;
@@ -376,17 +361,14 @@ function __wbg_get_imports() {
376
361
  const ret = Number.isSafeInteger(getObject(arg0));
377
362
  return ret;
378
363
  };
379
- imports.wbg.__wbg_new_c728d68b8b34487e = function() {
380
- const ret = new Object();
364
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
365
+ const ret = getStringFromWasm0(arg0, arg1);
381
366
  return addHeapObject(ret);
382
367
  };
383
- imports.wbg.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
384
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
385
- };
386
- imports.wbg.__wbindgen_number_new = function(arg0) {
387
- const ret = arg0;
368
+ imports.wbg.__wbg_call_53fc3abd42e24ec8 = function() { return handleError(function (arg0, arg1, arg2) {
369
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
388
370
  return addHeapObject(ret);
389
- };
371
+ }, arguments) };
390
372
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
391
373
  const obj = getObject(arg1);
392
374
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -399,6 +381,13 @@ function __wbg_get_imports() {
399
381
  const ret = new Error(getStringFromWasm0(arg0, arg1));
400
382
  return addHeapObject(ret);
401
383
  };
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
+ };
402
391
  imports.wbg.__wbindgen_is_object = function(arg0) {
403
392
  const val = getObject(arg0);
404
393
  const ret = typeof(val) === 'object' && val !== null;
@@ -421,6 +410,17 @@ function __wbg_get_imports() {
421
410
  const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
422
411
  return ret;
423
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_e93aec15781aae67 = function(arg0, arg1) {
448
+ imports.wbg.__wbg_getStorage_38f461cd4d96f7d1 = function(arg0, arg1) {
449
449
  const ret = getObject(arg0).getStorage(takeObject(arg1));
450
450
  return addHeapObject(ret);
451
451
  };
452
- imports.wbg.__wbg_getStateRoot_906065f4887b553b = function(arg0) {
452
+ imports.wbg.__wbg_getStateRoot_fc671ff707491162 = function(arg0) {
453
453
  const ret = getObject(arg0).getStateRoot();
454
454
  return addHeapObject(ret);
455
455
  };
456
- imports.wbg.__wbg_getNextKey_7702ad41d1e6d93d = function(arg0, arg1, arg2) {
456
+ imports.wbg.__wbg_getNextKey_f352f504a9c8782f = 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_3a008237e87386b5 = function(arg0, arg1) {
460
+ imports.wbg.__wbg_offchainGetStorage_4b8766ede1cae211 = function(arg0, arg1) {
461
461
  const ret = getObject(arg0).offchainGetStorage(takeObject(arg1));
462
462
  return addHeapObject(ret);
463
463
  };
464
- imports.wbg.__wbg_offchainTimestamp_ab157c9521924fa8 = function(arg0) {
464
+ imports.wbg.__wbg_offchainTimestamp_45ee8b247786d9ab = function(arg0) {
465
465
  const ret = getObject(arg0).offchainTimestamp();
466
466
  return addHeapObject(ret);
467
467
  };
468
- imports.wbg.__wbg_offchainRandomSeed_b4a48d46480348aa = function(arg0) {
468
+ imports.wbg.__wbg_offchainRandomSeed_676554dcb697cf70 = function(arg0) {
469
469
  const ret = getObject(arg0).offchainRandomSeed();
470
470
  return addHeapObject(ret);
471
471
  };
472
- imports.wbg.__wbg_offchainSubmitTransaction_2e85d9c73a3f6d2e = function(arg0, arg1) {
472
+ imports.wbg.__wbg_offchainSubmitTransaction_a82409c564dd9903 = function(arg0, arg1) {
473
473
  const ret = getObject(arg0).offchainSubmitTransaction(takeObject(arg1));
474
474
  return addHeapObject(ret);
475
475
  };