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

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,45 +6,7 @@ heap.push(undefined, null, true, false);
6
6
 
7
7
  function getObject(idx) { return heap[idx]; }
8
8
 
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
- 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
-
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(); };
9
+ let WASM_VECTOR_LEN = 0;
48
10
 
49
11
  let cachedUint8Memory0 = null;
50
12
 
@@ -55,22 +17,6 @@ function getUint8Memory0() {
55
17
  return cachedUint8Memory0;
56
18
  }
57
19
 
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
- let WASM_VECTOR_LEN = 0;
73
-
74
20
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
75
21
 
76
22
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -124,6 +70,60 @@ function passStringToWasm0(arg, malloc, realloc) {
124
70
  return ptr;
125
71
  }
126
72
 
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() {
@@ -324,51 +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.__wbg_isArray_38525be7442aa21e = function(arg0) {
328
- const ret = Array.isArray(getObject(arg0));
329
- return ret;
330
- };
331
- imports.wbg.__wbg_length_cace2e0b3ddc0502 = function(arg0) {
332
- const ret = getObject(arg0).length;
333
- return ret;
334
- };
335
- imports.wbg.__wbg_get_4a9aa5157afeb382 = function(arg0, arg1) {
336
- const ret = getObject(arg0)[arg1 >>> 0];
337
- return addHeapObject(ret);
338
- };
339
- imports.wbg.__wbg_next_1989a20442400aaa = function() { return handleError(function (arg0) {
340
- const ret = getObject(arg0).next();
341
- return addHeapObject(ret);
342
- }, arguments) };
343
- imports.wbg.__wbg_done_bc26bf4ada718266 = function(arg0) {
344
- const ret = getObject(arg0).done;
345
- return ret;
346
- };
347
- imports.wbg.__wbg_value_0570714ff7d75f35 = function(arg0) {
348
- const ret = getObject(arg0).value;
349
- return addHeapObject(ret);
350
- };
351
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
352
- takeObject(arg0);
353
- };
354
- imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
355
- const obj = getObject(arg1);
356
- const ret = typeof(obj) === 'number' ? obj : undefined;
357
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
358
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
359
- };
360
- imports.wbg.__wbg_isSafeInteger_c38b0a16d0c7cef7 = function(arg0) {
361
- const ret = Number.isSafeInteger(getObject(arg0));
362
- return ret;
363
- };
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
327
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
373
328
  const obj = getObject(arg1);
374
329
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -377,17 +332,21 @@ function __wbg_get_imports() {
377
332
  getInt32Memory0()[arg0 / 4 + 1] = len1;
378
333
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
379
334
  };
335
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
336
+ takeObject(arg0);
337
+ };
380
338
  imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
381
339
  const ret = new Error(getStringFromWasm0(arg0, arg1));
382
340
  return addHeapObject(ret);
383
341
  };
384
- imports.wbg.__wbg_new_08236689f0afb357 = function() {
385
- const ret = new Array();
342
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
343
+ const ret = getStringFromWasm0(arg0, arg1);
386
344
  return addHeapObject(ret);
387
345
  };
388
- imports.wbg.__wbg_set_0ac78a2bc07da03c = function(arg0, arg1, arg2) {
389
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
390
- };
346
+ imports.wbg.__wbg_call_53fc3abd42e24ec8 = function() { return handleError(function (arg0, arg1, arg2) {
347
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
348
+ return addHeapObject(ret);
349
+ }, arguments) };
391
350
  imports.wbg.__wbindgen_is_object = function(arg0) {
392
351
  const val = getObject(arg0);
393
352
  const ret = typeof(val) === 'object' && val !== null;
@@ -405,11 +364,45 @@ function __wbg_get_imports() {
405
364
  const ret = getObject(arg0) in getObject(arg1);
406
365
  return ret;
407
366
  };
367
+ imports.wbg.__wbg_isArray_38525be7442aa21e = function(arg0) {
368
+ const ret = Array.isArray(getObject(arg0));
369
+ return ret;
370
+ };
371
+ imports.wbg.__wbg_length_cace2e0b3ddc0502 = function(arg0) {
372
+ const ret = getObject(arg0).length;
373
+ return ret;
374
+ };
375
+ imports.wbg.__wbg_get_4a9aa5157afeb382 = function(arg0, arg1) {
376
+ const ret = getObject(arg0)[arg1 >>> 0];
377
+ return addHeapObject(ret);
378
+ };
379
+ imports.wbg.__wbg_next_1989a20442400aaa = function() { return handleError(function (arg0) {
380
+ const ret = getObject(arg0).next();
381
+ return addHeapObject(ret);
382
+ }, arguments) };
383
+ imports.wbg.__wbg_done_bc26bf4ada718266 = function(arg0) {
384
+ const ret = getObject(arg0).done;
385
+ return ret;
386
+ };
387
+ imports.wbg.__wbg_value_0570714ff7d75f35 = function(arg0) {
388
+ const ret = getObject(arg0).value;
389
+ return addHeapObject(ret);
390
+ };
408
391
  imports.wbg.__wbindgen_boolean_get = function(arg0) {
409
392
  const v = getObject(arg0);
410
393
  const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
411
394
  return ret;
412
395
  };
396
+ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
397
+ const obj = getObject(arg1);
398
+ const ret = typeof(obj) === 'number' ? obj : undefined;
399
+ getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
400
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
401
+ };
402
+ imports.wbg.__wbg_isSafeInteger_c38b0a16d0c7cef7 = function(arg0) {
403
+ const ret = Number.isSafeInteger(getObject(arg0));
404
+ return ret;
405
+ };
413
406
  imports.wbg.__wbg_new_c728d68b8b34487e = function() {
414
407
  const ret = new Object();
415
408
  return addHeapObject(ret);
@@ -417,10 +410,17 @@ function __wbg_get_imports() {
417
410
  imports.wbg.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
418
411
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
419
412
  };
413
+ imports.wbg.__wbg_new_08236689f0afb357 = function() {
414
+ const ret = new Array();
415
+ return addHeapObject(ret);
416
+ };
420
417
  imports.wbg.__wbindgen_number_new = function(arg0) {
421
418
  const ret = arg0;
422
419
  return addHeapObject(ret);
423
420
  };
421
+ imports.wbg.__wbg_set_0ac78a2bc07da03c = function(arg0, arg1, arg2) {
422
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
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_57a3a32f26c87bc5 = 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_6a06e8f16e7c4f2b = 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_e1fc4b2edae2a226 = 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_276b9780f60bc21a = 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_15f9c00e4e45428a = 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_85c56ec723f3f201 = 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_e54d24256c5f2a7a = function(arg0, arg1) {
473
473
  const ret = getObject(arg0).offchainSubmitTransaction(takeObject(arg1));
474
474
  return addHeapObject(ret);
475
475
  };