@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.
@@ -1,7 +1,7 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { TextDecoder, TextEncoder } = require(`util`);
4
+ const { TextEncoder, TextDecoder } = require(`util`);
5
5
 
6
6
  const heap = new Array(128).fill(undefined);
7
7
 
@@ -9,45 +9,7 @@ heap.push(undefined, null, true, false);
9
9
 
10
10
  function getObject(idx) { return heap[idx]; }
11
11
 
12
- let heap_next = heap.length;
13
-
14
- function dropObject(idx) {
15
- if (idx < 132) return;
16
- heap[idx] = heap_next;
17
- heap_next = idx;
18
- }
19
-
20
- function takeObject(idx) {
21
- const ret = getObject(idx);
22
- dropObject(idx);
23
- return ret;
24
- }
25
-
26
- function isLikeNone(x) {
27
- return x === undefined || x === null;
28
- }
29
-
30
- let cachedFloat64Memory0 = null;
31
-
32
- function getFloat64Memory0() {
33
- if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
34
- cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
35
- }
36
- return cachedFloat64Memory0;
37
- }
38
-
39
- let cachedInt32Memory0 = null;
40
-
41
- function getInt32Memory0() {
42
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
43
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
44
- }
45
- return cachedInt32Memory0;
46
- }
47
-
48
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
49
-
50
- cachedTextDecoder.decode();
12
+ let WASM_VECTOR_LEN = 0;
51
13
 
52
14
  let cachedUint8Memory0 = null;
53
15
 
@@ -58,22 +20,6 @@ function getUint8Memory0() {
58
20
  return cachedUint8Memory0;
59
21
  }
60
22
 
61
- function getStringFromWasm0(ptr, len) {
62
- ptr = ptr >>> 0;
63
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
64
- }
65
-
66
- function addHeapObject(obj) {
67
- if (heap_next === heap.length) heap.push(heap.length + 1);
68
- const idx = heap_next;
69
- heap_next = heap[idx];
70
-
71
- heap[idx] = obj;
72
- return idx;
73
- }
74
-
75
- let WASM_VECTOR_LEN = 0;
76
-
77
23
  let cachedTextEncoder = new TextEncoder('utf-8');
78
24
 
79
25
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -127,6 +73,60 @@ function passStringToWasm0(arg, malloc, realloc) {
127
73
  return ptr;
128
74
  }
129
75
 
76
+ function isLikeNone(x) {
77
+ return x === undefined || x === null;
78
+ }
79
+
80
+ let cachedInt32Memory0 = null;
81
+
82
+ function getInt32Memory0() {
83
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
84
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
85
+ }
86
+ return cachedInt32Memory0;
87
+ }
88
+
89
+ let heap_next = heap.length;
90
+
91
+ function dropObject(idx) {
92
+ if (idx < 132) return;
93
+ heap[idx] = heap_next;
94
+ heap_next = idx;
95
+ }
96
+
97
+ function takeObject(idx) {
98
+ const ret = getObject(idx);
99
+ dropObject(idx);
100
+ return ret;
101
+ }
102
+
103
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
104
+
105
+ cachedTextDecoder.decode();
106
+
107
+ function getStringFromWasm0(ptr, len) {
108
+ ptr = ptr >>> 0;
109
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
110
+ }
111
+
112
+ function addHeapObject(obj) {
113
+ if (heap_next === heap.length) heap.push(heap.length + 1);
114
+ const idx = heap_next;
115
+ heap_next = heap[idx];
116
+
117
+ heap[idx] = obj;
118
+ return idx;
119
+ }
120
+
121
+ let cachedFloat64Memory0 = null;
122
+
123
+ function getFloat64Memory0() {
124
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
125
+ cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
126
+ }
127
+ return cachedFloat64Memory0;
128
+ }
129
+
130
130
  let cachedBigInt64Memory0 = null;
131
131
 
132
132
  function getBigInt64Memory0() {
@@ -293,62 +293,6 @@ function __wbg_adapter_108(arg0, arg1, arg2, arg3) {
293
293
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h59e4ab6c95dba127(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
294
294
  }
295
295
 
296
- module.exports.__wbg_isArray_38525be7442aa21e = function(arg0) {
297
- const ret = Array.isArray(getObject(arg0));
298
- return ret;
299
- };
300
-
301
- module.exports.__wbg_length_cace2e0b3ddc0502 = function(arg0) {
302
- const ret = getObject(arg0).length;
303
- return ret;
304
- };
305
-
306
- module.exports.__wbg_get_4a9aa5157afeb382 = function(arg0, arg1) {
307
- const ret = getObject(arg0)[arg1 >>> 0];
308
- return addHeapObject(ret);
309
- };
310
-
311
- module.exports.__wbg_next_1989a20442400aaa = function() { return handleError(function (arg0) {
312
- const ret = getObject(arg0).next();
313
- return addHeapObject(ret);
314
- }, arguments) };
315
-
316
- module.exports.__wbg_done_bc26bf4ada718266 = function(arg0) {
317
- const ret = getObject(arg0).done;
318
- return ret;
319
- };
320
-
321
- module.exports.__wbg_value_0570714ff7d75f35 = function(arg0) {
322
- const ret = getObject(arg0).value;
323
- return addHeapObject(ret);
324
- };
325
-
326
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
327
- takeObject(arg0);
328
- };
329
-
330
- module.exports.__wbindgen_number_get = function(arg0, arg1) {
331
- const obj = getObject(arg1);
332
- const ret = typeof(obj) === 'number' ? obj : undefined;
333
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
334
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
335
- };
336
-
337
- module.exports.__wbg_isSafeInteger_c38b0a16d0c7cef7 = function(arg0) {
338
- const ret = Number.isSafeInteger(getObject(arg0));
339
- return ret;
340
- };
341
-
342
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
343
- const ret = getStringFromWasm0(arg0, arg1);
344
- return addHeapObject(ret);
345
- };
346
-
347
- module.exports.__wbg_call_53fc3abd42e24ec8 = function() { return handleError(function (arg0, arg1, arg2) {
348
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
349
- return addHeapObject(ret);
350
- }, arguments) };
351
-
352
296
  module.exports.__wbindgen_string_get = function(arg0, arg1) {
353
297
  const obj = getObject(arg1);
354
298
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -358,19 +302,24 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
358
302
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
359
303
  };
360
304
 
305
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
306
+ takeObject(arg0);
307
+ };
308
+
361
309
  module.exports.__wbindgen_error_new = function(arg0, arg1) {
362
310
  const ret = new Error(getStringFromWasm0(arg0, arg1));
363
311
  return addHeapObject(ret);
364
312
  };
365
313
 
366
- module.exports.__wbg_new_08236689f0afb357 = function() {
367
- const ret = new Array();
314
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
315
+ const ret = getStringFromWasm0(arg0, arg1);
368
316
  return addHeapObject(ret);
369
317
  };
370
318
 
371
- module.exports.__wbg_set_0ac78a2bc07da03c = function(arg0, arg1, arg2) {
372
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
373
- };
319
+ module.exports.__wbg_call_53fc3abd42e24ec8 = function() { return handleError(function (arg0, arg1, arg2) {
320
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
321
+ return addHeapObject(ret);
322
+ }, arguments) };
374
323
 
375
324
  module.exports.__wbindgen_is_object = function(arg0) {
376
325
  const val = getObject(arg0);
@@ -393,12 +342,54 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
393
342
  return ret;
394
343
  };
395
344
 
345
+ module.exports.__wbg_isArray_38525be7442aa21e = function(arg0) {
346
+ const ret = Array.isArray(getObject(arg0));
347
+ return ret;
348
+ };
349
+
350
+ module.exports.__wbg_length_cace2e0b3ddc0502 = function(arg0) {
351
+ const ret = getObject(arg0).length;
352
+ return ret;
353
+ };
354
+
355
+ module.exports.__wbg_get_4a9aa5157afeb382 = function(arg0, arg1) {
356
+ const ret = getObject(arg0)[arg1 >>> 0];
357
+ return addHeapObject(ret);
358
+ };
359
+
360
+ module.exports.__wbg_next_1989a20442400aaa = function() { return handleError(function (arg0) {
361
+ const ret = getObject(arg0).next();
362
+ return addHeapObject(ret);
363
+ }, arguments) };
364
+
365
+ module.exports.__wbg_done_bc26bf4ada718266 = function(arg0) {
366
+ const ret = getObject(arg0).done;
367
+ return ret;
368
+ };
369
+
370
+ module.exports.__wbg_value_0570714ff7d75f35 = function(arg0) {
371
+ const ret = getObject(arg0).value;
372
+ return addHeapObject(ret);
373
+ };
374
+
396
375
  module.exports.__wbindgen_boolean_get = function(arg0) {
397
376
  const v = getObject(arg0);
398
377
  const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
399
378
  return ret;
400
379
  };
401
380
 
381
+ module.exports.__wbindgen_number_get = function(arg0, arg1) {
382
+ const obj = getObject(arg1);
383
+ const ret = typeof(obj) === 'number' ? obj : undefined;
384
+ getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
385
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
386
+ };
387
+
388
+ module.exports.__wbg_isSafeInteger_c38b0a16d0c7cef7 = function(arg0) {
389
+ const ret = Number.isSafeInteger(getObject(arg0));
390
+ return ret;
391
+ };
392
+
402
393
  module.exports.__wbg_new_c728d68b8b34487e = function() {
403
394
  const ret = new Object();
404
395
  return addHeapObject(ret);
@@ -408,11 +399,20 @@ module.exports.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
408
399
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
409
400
  };
410
401
 
402
+ module.exports.__wbg_new_08236689f0afb357 = function() {
403
+ const ret = new Array();
404
+ return addHeapObject(ret);
405
+ };
406
+
411
407
  module.exports.__wbindgen_number_new = function(arg0) {
412
408
  const ret = arg0;
413
409
  return addHeapObject(ret);
414
410
  };
415
411
 
412
+ module.exports.__wbg_set_0ac78a2bc07da03c = function(arg0, arg1, arg2) {
413
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
414
+ };
415
+
416
416
  module.exports.__wbindgen_cb_drop = function(arg0) {
417
417
  const obj = takeObject(arg0).original;
418
418
  if (obj.cnt-- == 1) {
@@ -441,37 +441,37 @@ module.exports.__wbg_String_88810dfeb4021902 = function(arg0, arg1) {
441
441
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
442
442
  };
443
443
 
444
- module.exports.__wbg_getStorage_38f461cd4d96f7d1 = function(arg0, arg1) {
444
+ module.exports.__wbg_getStorage_57a3a32f26c87bc5 = function(arg0, arg1) {
445
445
  const ret = getObject(arg0).getStorage(takeObject(arg1));
446
446
  return addHeapObject(ret);
447
447
  };
448
448
 
449
- module.exports.__wbg_getStateRoot_fc671ff707491162 = function(arg0) {
449
+ module.exports.__wbg_getStateRoot_6a06e8f16e7c4f2b = function(arg0) {
450
450
  const ret = getObject(arg0).getStateRoot();
451
451
  return addHeapObject(ret);
452
452
  };
453
453
 
454
- module.exports.__wbg_getNextKey_f352f504a9c8782f = function(arg0, arg1, arg2) {
454
+ module.exports.__wbg_getNextKey_e1fc4b2edae2a226 = function(arg0, arg1, arg2) {
455
455
  const ret = getObject(arg0).getNextKey(takeObject(arg1), takeObject(arg2));
456
456
  return addHeapObject(ret);
457
457
  };
458
458
 
459
- module.exports.__wbg_offchainGetStorage_4b8766ede1cae211 = function(arg0, arg1) {
459
+ module.exports.__wbg_offchainGetStorage_276b9780f60bc21a = function(arg0, arg1) {
460
460
  const ret = getObject(arg0).offchainGetStorage(takeObject(arg1));
461
461
  return addHeapObject(ret);
462
462
  };
463
463
 
464
- module.exports.__wbg_offchainTimestamp_45ee8b247786d9ab = function(arg0) {
464
+ module.exports.__wbg_offchainTimestamp_15f9c00e4e45428a = function(arg0) {
465
465
  const ret = getObject(arg0).offchainTimestamp();
466
466
  return addHeapObject(ret);
467
467
  };
468
468
 
469
- module.exports.__wbg_offchainRandomSeed_676554dcb697cf70 = function(arg0) {
469
+ module.exports.__wbg_offchainRandomSeed_85c56ec723f3f201 = function(arg0) {
470
470
  const ret = getObject(arg0).offchainRandomSeed();
471
471
  return addHeapObject(ret);
472
472
  };
473
473
 
474
- module.exports.__wbg_offchainSubmitTransaction_a82409c564dd9903 = function(arg0, arg1) {
474
+ module.exports.__wbg_offchainSubmitTransaction_e54d24256c5f2a7a = function(arg0, arg1) {
475
475
  const ret = getObject(arg0).offchainSubmitTransaction(takeObject(arg1));
476
476
  return addHeapObject(ret);
477
477
  };
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@acala-network/chopsticks-executor",
3
3
  "description": "Chopsticks executor",
4
- "version": "0.9.1-4",
4
+ "version": "0.9.1",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -16,7 +16,7 @@
16
16
  "@polkadot/wasm-util": "^7.2.2"
17
17
  },
18
18
  "devDependencies": {
19
- "fflate": "^0.8.0"
19
+ "fflate": "^0.8.1"
20
20
  },
21
21
  "files": [
22
22
  "browser/index.js",