@acala-network/chopsticks-executor 0.8.0-6 → 0.8.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,15 +1,26 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { TextEncoder, TextDecoder } = require(`util`);
4
+ const { TextDecoder, TextEncoder } = require(`util`);
5
5
 
6
6
  const heap = new Array(128).fill(undefined);
7
7
 
8
8
  heap.push(undefined, null, true, false);
9
9
 
10
- function getObject(idx) { return heap[idx]; }
10
+ let heap_next = heap.length;
11
11
 
12
- let WASM_VECTOR_LEN = 0;
12
+ function addHeapObject(obj) {
13
+ if (heap_next === heap.length) heap.push(heap.length + 1);
14
+ const idx = heap_next;
15
+ heap_next = heap[idx];
16
+
17
+ heap[idx] = obj;
18
+ return idx;
19
+ }
20
+
21
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
22
+
23
+ cachedTextDecoder.decode();
13
24
 
14
25
  let cachedUint8Memory0 = null;
15
26
 
@@ -20,6 +31,49 @@ function getUint8Memory0() {
20
31
  return cachedUint8Memory0;
21
32
  }
22
33
 
34
+ function getStringFromWasm0(ptr, len) {
35
+ ptr = ptr >>> 0;
36
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
37
+ }
38
+
39
+ function getObject(idx) { return heap[idx]; }
40
+
41
+ function dropObject(idx) {
42
+ if (idx < 132) return;
43
+ heap[idx] = heap_next;
44
+ heap_next = idx;
45
+ }
46
+
47
+ function takeObject(idx) {
48
+ const ret = getObject(idx);
49
+ dropObject(idx);
50
+ return ret;
51
+ }
52
+
53
+ function isLikeNone(x) {
54
+ return x === undefined || x === null;
55
+ }
56
+
57
+ let cachedFloat64Memory0 = null;
58
+
59
+ function getFloat64Memory0() {
60
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
61
+ cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
62
+ }
63
+ return cachedFloat64Memory0;
64
+ }
65
+
66
+ let cachedInt32Memory0 = null;
67
+
68
+ function getInt32Memory0() {
69
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
70
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
71
+ }
72
+ return cachedInt32Memory0;
73
+ }
74
+
75
+ let WASM_VECTOR_LEN = 0;
76
+
23
77
  let cachedTextEncoder = new TextEncoder('utf-8');
24
78
 
25
79
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -73,60 +127,6 @@ function passStringToWasm0(arg, malloc, realloc) {
73
127
  return ptr;
74
128
  }
75
129
 
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() {
@@ -226,7 +226,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
226
226
  return real;
227
227
  }
228
228
  function __wbg_adapter_46(arg0, arg1, arg2) {
229
- wasm.wasm_bindgen__convert__closures__invoke1_mut__h7043b82208c98903(arg0, arg1, addHeapObject(arg2));
229
+ wasm.wasm_bindgen__convert__closures__invoke1_mut__h00ad679102bae03c(arg0, arg1, addHeapObject(arg2));
230
230
  }
231
231
 
232
232
  /**
@@ -290,27 +290,32 @@ function handleError(f, args) {
290
290
  }
291
291
  }
292
292
  function __wbg_adapter_106(arg0, arg1, arg2, arg3) {
293
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h14b58699f4ec867c(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
293
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__hdf5d2405956c3de1(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
294
294
  }
295
295
 
296
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
297
- const obj = getObject(arg1);
298
- const ret = typeof(obj) === 'string' ? obj : undefined;
299
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
300
- var len1 = WASM_VECTOR_LEN;
301
- getInt32Memory0()[arg0 / 4 + 1] = len1;
302
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
296
+ module.exports.__wbg_new_b51585de1b234aff = function() {
297
+ const ret = new Object();
298
+ return addHeapObject(ret);
303
299
  };
304
300
 
305
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
306
- takeObject(arg0);
301
+ module.exports.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
302
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
307
303
  };
308
304
 
309
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
310
- const ret = new Error(getStringFromWasm0(arg0, arg1));
305
+ module.exports.__wbindgen_number_new = function(arg0) {
306
+ const ret = arg0;
307
+ return addHeapObject(ret);
308
+ };
309
+
310
+ module.exports.__wbg_new_898a68150f225f2e = function() {
311
+ const ret = new Array();
311
312
  return addHeapObject(ret);
312
313
  };
313
314
 
315
+ module.exports.__wbg_set_502d29070ea18557 = function(arg0, arg1, arg2) {
316
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
317
+ };
318
+
314
319
  module.exports.__wbindgen_string_new = function(arg0, arg1) {
315
320
  const ret = getStringFromWasm0(arg0, arg1);
316
321
  return addHeapObject(ret);
@@ -321,6 +326,31 @@ module.exports.__wbg_call_01734de55d61e11d = function() { return handleError(fun
321
326
  return addHeapObject(ret);
322
327
  }, arguments) };
323
328
 
329
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
330
+ takeObject(arg0);
331
+ };
332
+
333
+ module.exports.__wbindgen_is_object = function(arg0) {
334
+ const val = getObject(arg0);
335
+ const ret = typeof(val) === 'object' && val !== null;
336
+ return ret;
337
+ };
338
+
339
+ module.exports.__wbg_getwithrefkey_5e6d9547403deab8 = function(arg0, arg1) {
340
+ const ret = getObject(arg0)[getObject(arg1)];
341
+ return addHeapObject(ret);
342
+ };
343
+
344
+ module.exports.__wbindgen_is_undefined = function(arg0) {
345
+ const ret = getObject(arg0) === undefined;
346
+ return ret;
347
+ };
348
+
349
+ module.exports.__wbindgen_in = function(arg0, arg1) {
350
+ const ret = getObject(arg0) in getObject(arg1);
351
+ return ret;
352
+ };
353
+
324
354
  module.exports.__wbg_isArray_4c24b343cb13cfb1 = function(arg0) {
325
355
  const ret = Array.isArray(getObject(arg0));
326
356
  return ret;
@@ -351,6 +381,12 @@ module.exports.__wbg_value_1695675138684bd5 = function(arg0) {
351
381
  return addHeapObject(ret);
352
382
  };
353
383
 
384
+ module.exports.__wbindgen_boolean_get = function(arg0) {
385
+ const v = getObject(arg0);
386
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
387
+ return ret;
388
+ };
389
+
354
390
  module.exports.__wbindgen_number_get = function(arg0, arg1) {
355
391
  const obj = getObject(arg1);
356
392
  const ret = typeof(obj) === 'number' ? obj : undefined;
@@ -363,56 +399,20 @@ module.exports.__wbg_isSafeInteger_bb8e18dd21c97288 = function(arg0) {
363
399
  return ret;
364
400
  };
365
401
 
366
- module.exports.__wbg_new_b51585de1b234aff = function() {
367
- const ret = new Object();
368
- return addHeapObject(ret);
369
- };
370
-
371
- module.exports.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
372
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
373
- };
374
-
375
- module.exports.__wbindgen_number_new = function(arg0) {
376
- const ret = arg0;
377
- return addHeapObject(ret);
378
- };
379
-
380
- module.exports.__wbg_new_898a68150f225f2e = function() {
381
- const ret = new Array();
382
- return addHeapObject(ret);
383
- };
384
-
385
- module.exports.__wbg_set_502d29070ea18557 = function(arg0, arg1, arg2) {
386
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
387
- };
388
-
389
- module.exports.__wbindgen_is_object = function(arg0) {
390
- const val = getObject(arg0);
391
- const ret = typeof(val) === 'object' && val !== null;
392
- return ret;
402
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
403
+ const obj = getObject(arg1);
404
+ const ret = typeof(obj) === 'string' ? obj : undefined;
405
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
406
+ var len1 = WASM_VECTOR_LEN;
407
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
408
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
393
409
  };
394
410
 
395
- module.exports.__wbg_getwithrefkey_5e6d9547403deab8 = function(arg0, arg1) {
396
- const ret = getObject(arg0)[getObject(arg1)];
411
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
412
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
397
413
  return addHeapObject(ret);
398
414
  };
399
415
 
400
- module.exports.__wbindgen_is_undefined = function(arg0) {
401
- const ret = getObject(arg0) === undefined;
402
- return ret;
403
- };
404
-
405
- module.exports.__wbindgen_in = function(arg0, arg1) {
406
- const ret = getObject(arg0) in getObject(arg1);
407
- return ret;
408
- };
409
-
410
- module.exports.__wbindgen_boolean_get = function(arg0) {
411
- const v = getObject(arg0);
412
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
413
- return ret;
414
- };
415
-
416
416
  module.exports.__wbindgen_cb_drop = function(arg0) {
417
417
  const obj = takeObject(arg0).original;
418
418
  if (obj.cnt-- == 1) {
@@ -428,23 +428,26 @@ module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
428
428
  return ret;
429
429
  };
430
430
 
431
- module.exports.__wbg_offchainSubmitTransaction_63ba1665b4baf81d = function(arg0, arg1) {
432
- const ret = getObject(arg0).offchainSubmitTransaction(takeObject(arg1));
433
- return addHeapObject(ret);
431
+ module.exports.__wbindgen_is_string = function(arg0) {
432
+ const ret = typeof(getObject(arg0)) === 'string';
433
+ return ret;
434
434
  };
435
435
 
436
- module.exports.__wbg_offchainRandomSeed_e1ee69c9c37dafb8 = function(arg0) {
437
- const ret = getObject(arg0).offchainRandomSeed();
438
- return addHeapObject(ret);
436
+ module.exports.__wbg_String_88810dfeb4021902 = function(arg0, arg1) {
437
+ const ret = String(getObject(arg1));
438
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
439
+ const len1 = WASM_VECTOR_LEN;
440
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
441
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
439
442
  };
440
443
 
441
- module.exports.__wbg_offchainTimestamp_320e8e4c96c9e04c = function(arg0) {
442
- const ret = getObject(arg0).offchainTimestamp();
444
+ module.exports.__wbg_getStorage_83a32e2f6165ee0b = function(arg0, arg1) {
445
+ const ret = getObject(arg0).getStorage(takeObject(arg1));
443
446
  return addHeapObject(ret);
444
447
  };
445
448
 
446
- module.exports.__wbg_offchainGetStorage_953b5cc09e08e83d = function(arg0, arg1) {
447
- const ret = getObject(arg0).offchainGetStorage(takeObject(arg1));
449
+ module.exports.__wbg_getStateRoot_899ea4ca2b02d1f6 = function(arg0) {
450
+ const ret = getObject(arg0).getStateRoot();
448
451
  return addHeapObject(ret);
449
452
  };
450
453
 
@@ -453,22 +456,24 @@ module.exports.__wbg_getNextKey_5794bb6bbba2420d = function(arg0, arg1, arg2) {
453
456
  return addHeapObject(ret);
454
457
  };
455
458
 
456
- module.exports.__wbg_getStateRoot_899ea4ca2b02d1f6 = function(arg0) {
457
- const ret = getObject(arg0).getStateRoot();
459
+ module.exports.__wbg_offchainGetStorage_953b5cc09e08e83d = function(arg0, arg1) {
460
+ const ret = getObject(arg0).offchainGetStorage(takeObject(arg1));
458
461
  return addHeapObject(ret);
459
462
  };
460
463
 
461
- module.exports.__wbg_getStorage_83a32e2f6165ee0b = function(arg0, arg1) {
462
- const ret = getObject(arg0).getStorage(takeObject(arg1));
464
+ module.exports.__wbg_offchainTimestamp_320e8e4c96c9e04c = function(arg0) {
465
+ const ret = getObject(arg0).offchainTimestamp();
463
466
  return addHeapObject(ret);
464
467
  };
465
468
 
466
- module.exports.__wbg_String_88810dfeb4021902 = function(arg0, arg1) {
467
- const ret = String(getObject(arg1));
468
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
469
- const len1 = WASM_VECTOR_LEN;
470
- getInt32Memory0()[arg0 / 4 + 1] = len1;
471
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
469
+ module.exports.__wbg_offchainRandomSeed_e1ee69c9c37dafb8 = function(arg0) {
470
+ const ret = getObject(arg0).offchainRandomSeed();
471
+ return addHeapObject(ret);
472
+ };
473
+
474
+ module.exports.__wbg_offchainSubmitTransaction_63ba1665b4baf81d = function(arg0, arg1) {
475
+ const ret = getObject(arg0).offchainSubmitTransaction(takeObject(arg1));
476
+ return addHeapObject(ret);
472
477
  };
473
478
 
474
479
  module.exports.__wbindgen_is_bigint = function(arg0) {
@@ -493,11 +498,6 @@ module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
493
498
  return ret;
494
499
  };
495
500
 
496
- module.exports.__wbindgen_is_string = function(arg0) {
497
- const ret = typeof(getObject(arg0)) === 'string';
498
- return ret;
499
- };
500
-
501
501
  module.exports.__wbg_new_43f1b47c28813cbd = function(arg0, arg1) {
502
502
  try {
503
503
  var state0 = {a: arg0, b: arg1};
@@ -645,28 +645,28 @@ module.exports.__wbg_then_f7e06ee3c11698eb = function(arg0, arg1) {
645
645
  return addHeapObject(ret);
646
646
  };
647
647
 
648
- module.exports.__wbg_debug_f15cb542ea509609 = function(arg0) {
648
+ module.exports.__wbg_debug_9a6b3243fbbebb61 = function(arg0) {
649
649
  console.debug(getObject(arg0));
650
650
  };
651
651
 
652
- module.exports.__wbg_error_ef9a0be47931175f = function(arg0) {
652
+ module.exports.__wbg_error_788ae33f81d3b84b = function(arg0) {
653
653
  console.error(getObject(arg0));
654
654
  };
655
655
 
656
- module.exports.__wbg_info_2874fdd5393f35ce = function(arg0) {
656
+ module.exports.__wbg_info_2e30e8204b29d91d = function(arg0) {
657
657
  console.info(getObject(arg0));
658
658
  };
659
659
 
660
- module.exports.__wbg_log_4b5638ad60bdc54a = function(arg0) {
660
+ module.exports.__wbg_log_1d3ae0273d8f4f8a = function(arg0) {
661
661
  console.log(getObject(arg0));
662
662
  };
663
663
 
664
- module.exports.__wbg_warn_58110c4a199df084 = function(arg0) {
664
+ module.exports.__wbg_warn_d60e832f9882c1b2 = function(arg0) {
665
665
  console.warn(getObject(arg0));
666
666
  };
667
667
 
668
- module.exports.__wbindgen_closure_wrapper1327 = function(arg0, arg1, arg2) {
669
- const ret = makeMutClosure(arg0, arg1, 128, __wbg_adapter_46);
668
+ module.exports.__wbindgen_closure_wrapper1331 = function(arg0, arg1, arg2) {
669
+ const ret = makeMutClosure(arg0, arg1, 124, __wbg_adapter_46);
670
670
  return addHeapObject(ret);
671
671
  };
672
672
 
Binary file
@@ -9,7 +9,7 @@ export function run_task(a: number, b: number, c: number, d: number): number;
9
9
  export function __wbindgen_malloc(a: number, b: number): number;
10
10
  export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
11
11
  export const __wbindgen_export_2: WebAssembly.Table;
12
- export function wasm_bindgen__convert__closures__invoke1_mut__h7043b82208c98903(a: number, b: number, c: number): void;
12
+ export function wasm_bindgen__convert__closures__invoke1_mut__h00ad679102bae03c(a: number, b: number, c: number): void;
13
13
  export function __wbindgen_free(a: number, b: number, c: number): void;
14
14
  export function __wbindgen_exn_store(a: number): void;
15
- export function wasm_bindgen__convert__closures__invoke2_mut__h14b58699f4ec867c(a: number, b: number, c: number, d: number): void;
15
+ export function wasm_bindgen__convert__closures__invoke2_mut__hdf5d2405956c3de1(a: number, b: number, c: number, d: number): void;
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.8.0-6",
4
+ "version": "0.8.1",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -26,6 +26,5 @@
26
26
  ],
27
27
  "main": "node/chopsticks_executor.js",
28
28
  "types": "node/chopsticks_executor.d.ts",
29
- "browser": "browser/index.js",
30
- "stableVersion": "0.7.3"
29
+ "browser": "browser/index.js"
31
30
  }