@acala-network/chopsticks-executor 1.1.0 → 1.2.0

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.
@@ -5,32 +5,32 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- calculate_state_root: function() {
12
+ get calculate_state_root () {
13
13
  return calculate_state_root;
14
14
  },
15
- create_proof: function() {
15
+ get create_proof () {
16
16
  return create_proof;
17
17
  },
18
- decode_proof: function() {
18
+ get decode_proof () {
19
19
  return decode_proof;
20
20
  },
21
- default: function() {
21
+ get default () {
22
22
  return _default;
23
23
  },
24
- get_runtime_version: function() {
24
+ get get_runtime_version () {
25
25
  return get_runtime_version;
26
26
  },
27
- initSync: function() {
27
+ get initSync () {
28
28
  return initSync;
29
29
  },
30
- run_task: function() {
30
+ get run_task () {
31
31
  return run_task;
32
32
  },
33
- testing: function() {
33
+ get testing () {
34
34
  return testing;
35
35
  }
36
36
  });
@@ -100,7 +100,7 @@ function _unsupported_iterable_to_array(o, minLen) {
100
100
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
101
101
  }
102
102
  function _ts_generator(thisArg, body) {
103
- var f, y, t, g, _ = {
103
+ var f, y, t, _ = {
104
104
  label: 0,
105
105
  sent: function() {
106
106
  if (t[0] & 1) throw t[1];
@@ -108,12 +108,8 @@ function _ts_generator(thisArg, body) {
108
108
  },
109
109
  trys: [],
110
110
  ops: []
111
- };
112
- return g = {
113
- next: verb(0),
114
- "throw": verb(1),
115
- "return": verb(2)
116
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
111
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
112
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
117
113
  return this;
118
114
  }), g;
119
115
  function verb(n) {
@@ -126,7 +122,7 @@ function _ts_generator(thisArg, body) {
126
122
  }
127
123
  function step(op) {
128
124
  if (f) throw new TypeError("Generator is already executing.");
129
- while(_)try {
125
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
130
126
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
131
127
  if (y = 0, t) op = [
132
128
  op[0] & 2,
@@ -453,10 +449,7 @@ function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
453
449
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h1ef0c852e055e71d(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
454
450
  }
455
451
  function __wbg_load(module, imports) {
456
- return ___wbg_load.apply(this, arguments);
457
- }
458
- function ___wbg_load() {
459
- ___wbg_load = _async_to_generator(function(module, imports) {
452
+ return _async_to_generator(function() {
460
453
  var e, bytes, instance;
461
454
  return _ts_generator(this, function(_state) {
462
455
  switch(_state.label){
@@ -541,8 +534,7 @@ function ___wbg_load() {
541
534
  ];
542
535
  }
543
536
  });
544
- });
545
- return ___wbg_load.apply(this, arguments);
537
+ })();
546
538
  }
547
539
  function __wbg_get_imports() {
548
540
  var imports = {};
@@ -939,10 +931,7 @@ function initSync(module) {
939
931
  return __wbg_finalize_init(instance, module);
940
932
  }
941
933
  function __wbg_init(input) {
942
- return ___wbg_init.apply(this, arguments);
943
- }
944
- function ___wbg_init() {
945
- ___wbg_init = _async_to_generator(function(input) {
934
+ return _async_to_generator(function() {
946
935
  var imports, _ref, instance, module;
947
936
  return _ts_generator(this, function(_state) {
948
937
  switch(_state.label){
@@ -979,7 +968,6 @@ function ___wbg_init() {
979
968
  ];
980
969
  }
981
970
  });
982
- });
983
- return ___wbg_init.apply(this, arguments);
971
+ })();
984
972
  }
985
973
  var _default = __wbg_init;
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- __wbindgen_export_2: function() {
12
+ get __wbindgen_export_2 () {
13
13
  return __wbindgen_export_2;
14
14
  },
15
- memory: function() {
15
+ get memory () {
16
16
  return memory;
17
17
  }
18
18
  });
@@ -64,7 +64,7 @@ function _unsupported_iterable_to_array(o, minLen) {
64
64
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
65
65
  }
66
66
  function _ts_generator(thisArg, body) {
67
- var f, y, t, g, _ = {
67
+ var f, y, t, _ = {
68
68
  label: 0,
69
69
  sent: function() {
70
70
  if (t[0] & 1) throw t[1];
@@ -72,12 +72,8 @@ function _ts_generator(thisArg, body) {
72
72
  },
73
73
  trys: [],
74
74
  ops: []
75
- };
76
- return g = {
77
- next: verb(0),
78
- "throw": verb(1),
79
- "return": verb(2)
80
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
75
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
76
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
81
77
  return this;
82
78
  }), g;
83
79
  function verb(n) {
@@ -90,7 +86,7 @@ function _ts_generator(thisArg, body) {
90
86
  }
91
87
  function step(op) {
92
88
  if (f) throw new TypeError("Generator is already executing.");
93
- while(_)try {
89
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
94
90
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
95
91
  if (y = 0, t) op = [
96
92
  op[0] & 2,
@@ -441,10 +437,7 @@ function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
441
437
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h1ef0c852e055e71d(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
442
438
  }
443
439
  function __wbg_load(module, imports) {
444
- return ___wbg_load.apply(this, arguments);
445
- }
446
- function ___wbg_load() {
447
- ___wbg_load = _async_to_generator(function(module, imports) {
440
+ return _async_to_generator(function() {
448
441
  var e, bytes, instance;
449
442
  return _ts_generator(this, function(_state) {
450
443
  switch(_state.label){
@@ -529,8 +522,7 @@ function ___wbg_load() {
529
522
  ];
530
523
  }
531
524
  });
532
- });
533
- return ___wbg_load.apply(this, arguments);
525
+ })();
534
526
  }
535
527
  function __wbg_get_imports() {
536
528
  var imports = {};
@@ -927,10 +919,7 @@ function initSync(module) {
927
919
  return __wbg_finalize_init(instance, module);
928
920
  }
929
921
  function __wbg_init(input) {
930
- return ___wbg_init.apply(this, arguments);
931
- }
932
- function ___wbg_init() {
933
- ___wbg_init = _async_to_generator(function(input) {
922
+ return _async_to_generator(function() {
934
923
  var imports, _ref, instance, module;
935
924
  return _ts_generator(this, function(_state) {
936
925
  switch(_state.label){
@@ -967,8 +956,7 @@ function ___wbg_init() {
967
956
  ];
968
957
  }
969
958
  });
970
- });
971
- return ___wbg_init.apply(this, arguments);
959
+ })();
972
960
  }
973
961
  export { initSync };
974
962
  export default __wbg_init;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@acala-network/chopsticks-executor",
3
3
  "description": "Chopsticks executor",
4
- "version": "1.1.0",
4
+ "version": "1.2.0",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "repository": {
@@ -14,12 +14,12 @@
14
14
  "build": "yarn wasm && ./package.sh"
15
15
  },
16
16
  "dependencies": {
17
- "@polkadot/util": "^13.4.3",
17
+ "@polkadot/util": "^13.5.3",
18
18
  "@polkadot/wasm-util": "^7.4.1"
19
19
  },
20
20
  "devDependencies": {
21
- "@swc/cli": "0.6.0",
22
- "@swc/core": "^1.11.1",
21
+ "@swc/cli": "0.7.8",
22
+ "@swc/core": "^1.12.11",
23
23
  "fflate": "^0.8.2"
24
24
  },
25
25
  "files": [