@acala-network/chopsticks-executor 0.2.2 → 0.3.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.
- package/LICENSE +201 -0
- package/README.md +1 -0
- package/chopsticks_executor.d.ts +6 -11
- package/chopsticks_executor.js +191 -333
- package/chopsticks_executor_bg.wasm +0 -0
- package/package.json +7 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Chopsticks Executor
|
package/chopsticks_executor.d.ts
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @param {
|
|
4
|
+
* @param {any} code
|
|
5
5
|
* @returns {Promise<any>}
|
|
6
6
|
*/
|
|
7
|
-
export function
|
|
8
|
-
/**
|
|
9
|
-
* @param {string} code
|
|
10
|
-
* @returns {Promise<any>}
|
|
11
|
-
*/
|
|
12
|
-
export function get_runtime_version(code: string): Promise<any>;
|
|
7
|
+
export function get_runtime_version(code: any): Promise<any>;
|
|
13
8
|
/**
|
|
14
9
|
* @param {any} entries
|
|
15
10
|
* @returns {Promise<any>}
|
|
@@ -30,8 +25,8 @@ export function decode_proof(root_trie_hash: any, keys: any, nodes: any): Promis
|
|
|
30
25
|
*/
|
|
31
26
|
export function create_proof(root_trie_hash: any, nodes: any, entries: any): Promise<any>;
|
|
32
27
|
/**
|
|
33
|
-
* @param {
|
|
34
|
-
* @param {
|
|
35
|
-
* @returns {Promise<
|
|
28
|
+
* @param {any} task
|
|
29
|
+
* @param {any} js
|
|
30
|
+
* @returns {Promise<any>}
|
|
36
31
|
*/
|
|
37
|
-
export function run_task(
|
|
32
|
+
export function run_task(task: any, js: any): Promise<any>;
|
package/chopsticks_executor.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const {
|
|
4
|
+
const { TextEncoder, TextDecoder } = require(`util`);
|
|
5
5
|
|
|
6
6
|
const heap = new Array(32).fill(undefined);
|
|
7
7
|
|
|
@@ -9,23 +9,7 @@ heap.push(undefined, null, true, false);
|
|
|
9
9
|
|
|
10
10
|
function getObject(idx) { return heap[idx]; }
|
|
11
11
|
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
function dropObject(idx) {
|
|
15
|
-
if (idx < 36) 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
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
27
|
-
|
|
28
|
-
cachedTextDecoder.decode();
|
|
12
|
+
let WASM_VECTOR_LEN = 0;
|
|
29
13
|
|
|
30
14
|
let cachedUint8Memory0 = new Uint8Array();
|
|
31
15
|
|
|
@@ -36,21 +20,6 @@ function getUint8Memory0() {
|
|
|
36
20
|
return cachedUint8Memory0;
|
|
37
21
|
}
|
|
38
22
|
|
|
39
|
-
function getStringFromWasm0(ptr, len) {
|
|
40
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function addHeapObject(obj) {
|
|
44
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
45
|
-
const idx = heap_next;
|
|
46
|
-
heap_next = heap[idx];
|
|
47
|
-
|
|
48
|
-
heap[idx] = obj;
|
|
49
|
-
return idx;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
let WASM_VECTOR_LEN = 0;
|
|
53
|
-
|
|
54
23
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
55
24
|
|
|
56
25
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -117,6 +86,37 @@ function getInt32Memory0() {
|
|
|
117
86
|
return cachedInt32Memory0;
|
|
118
87
|
}
|
|
119
88
|
|
|
89
|
+
let heap_next = heap.length;
|
|
90
|
+
|
|
91
|
+
function dropObject(idx) {
|
|
92
|
+
if (idx < 36) 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
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function addHeapObject(obj) {
|
|
112
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
113
|
+
const idx = heap_next;
|
|
114
|
+
heap_next = heap[idx];
|
|
115
|
+
|
|
116
|
+
heap[idx] = obj;
|
|
117
|
+
return idx;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
120
|
let cachedFloat64Memory0 = new Float64Array();
|
|
121
121
|
|
|
122
122
|
function getFloat64Memory0() {
|
|
@@ -215,45 +215,16 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
215
215
|
|
|
216
216
|
return real;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
wasm.
|
|
218
|
+
function __wbg_adapter_38(arg0, arg1, arg2) {
|
|
219
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4302d2a14f6ac103(arg0, arg1, addHeapObject(arg2));
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
function __wbg_adapter_37(arg0, arg1, arg2) {
|
|
223
|
-
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7283a49030747712(arg0, arg1, addHeapObject(arg2));
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
function __wbg_adapter_42(arg0, arg1) {
|
|
227
|
-
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4934162a4b354484(arg0, arg1);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
function __wbg_adapter_47(arg0, arg1, arg2) {
|
|
231
|
-
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h02de66892f7d307a(arg0, arg1, addHeapObject(arg2));
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
function __wbg_adapter_50(arg0, arg1) {
|
|
235
|
-
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he68b9fa6e29ec1bd(arg0, arg1);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* @param {string} code
|
|
240
|
-
* @returns {Promise<any>}
|
|
241
|
-
*/
|
|
242
|
-
module.exports.get_metadata = function(code) {
|
|
243
|
-
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
244
|
-
const len0 = WASM_VECTOR_LEN;
|
|
245
|
-
const ret = wasm.get_metadata(ptr0, len0);
|
|
246
|
-
return takeObject(ret);
|
|
247
|
-
};
|
|
248
|
-
|
|
249
222
|
/**
|
|
250
|
-
* @param {
|
|
223
|
+
* @param {any} code
|
|
251
224
|
* @returns {Promise<any>}
|
|
252
225
|
*/
|
|
253
226
|
module.exports.get_runtime_version = function(code) {
|
|
254
|
-
const
|
|
255
|
-
const len0 = WASM_VECTOR_LEN;
|
|
256
|
-
const ret = wasm.get_runtime_version(ptr0, len0);
|
|
227
|
+
const ret = wasm.get_runtime_version(addHeapObject(code));
|
|
257
228
|
return takeObject(ret);
|
|
258
229
|
};
|
|
259
230
|
|
|
@@ -289,14 +260,12 @@ module.exports.create_proof = function(root_trie_hash, nodes, entries) {
|
|
|
289
260
|
};
|
|
290
261
|
|
|
291
262
|
/**
|
|
292
|
-
* @param {
|
|
293
|
-
* @param {
|
|
294
|
-
* @returns {Promise<
|
|
263
|
+
* @param {any} task
|
|
264
|
+
* @param {any} js
|
|
265
|
+
* @returns {Promise<any>}
|
|
295
266
|
*/
|
|
296
|
-
module.exports.run_task = function(
|
|
297
|
-
const
|
|
298
|
-
const len0 = WASM_VECTOR_LEN;
|
|
299
|
-
const ret = wasm.run_task(task_id, ptr0, len0);
|
|
267
|
+
module.exports.run_task = function(task, js) {
|
|
268
|
+
const ret = wasm.run_task(addHeapObject(task), addHeapObject(js));
|
|
300
269
|
return takeObject(ret);
|
|
301
270
|
};
|
|
302
271
|
|
|
@@ -307,25 +276,10 @@ function handleError(f, args) {
|
|
|
307
276
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
308
277
|
}
|
|
309
278
|
}
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
279
|
+
function __wbg_adapter_88(arg0, arg1, arg2, arg3) {
|
|
280
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h0ff20d32b5299564(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
313
281
|
}
|
|
314
282
|
|
|
315
|
-
function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; }
|
|
316
|
-
function __wbg_adapter_137(arg0, arg1, arg2, arg3) {
|
|
317
|
-
wasm.wasm_bindgen__convert__closures__invoke2_mut__h118ebac2f2d8ba77(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
321
|
-
takeObject(arg0);
|
|
322
|
-
};
|
|
323
|
-
|
|
324
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
325
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
326
|
-
return addHeapObject(ret);
|
|
327
|
-
};
|
|
328
|
-
|
|
329
283
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
330
284
|
const obj = getObject(arg1);
|
|
331
285
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -335,14 +289,8 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
335
289
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
336
290
|
};
|
|
337
291
|
|
|
338
|
-
module.exports.
|
|
339
|
-
|
|
340
|
-
if (obj.cnt-- == 1) {
|
|
341
|
-
obj.a = 0;
|
|
342
|
-
return true;
|
|
343
|
-
}
|
|
344
|
-
const ret = false;
|
|
345
|
-
return ret;
|
|
292
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
293
|
+
takeObject(arg0);
|
|
346
294
|
};
|
|
347
295
|
|
|
348
296
|
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
@@ -350,148 +298,43 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
|
350
298
|
return addHeapObject(ret);
|
|
351
299
|
};
|
|
352
300
|
|
|
353
|
-
module.exports.
|
|
354
|
-
const ret = arg0;
|
|
355
|
-
return addHeapObject(ret);
|
|
356
|
-
};
|
|
357
|
-
|
|
358
|
-
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
359
|
-
const ret = getObject(arg0);
|
|
360
|
-
return addHeapObject(ret);
|
|
361
|
-
};
|
|
362
|
-
|
|
363
|
-
module.exports.__wbindgen_is_object = function(arg0) {
|
|
364
|
-
const val = getObject(arg0);
|
|
365
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
366
|
-
return ret;
|
|
367
|
-
};
|
|
368
|
-
|
|
369
|
-
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
370
|
-
const ret = getObject(arg0) == getObject(arg1);
|
|
371
|
-
return ret;
|
|
372
|
-
};
|
|
373
|
-
|
|
374
|
-
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
375
|
-
const v = getObject(arg0);
|
|
376
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
301
|
+
module.exports.__wbg_isArray_27c46c67f498e15d = function(arg0) {
|
|
302
|
+
const ret = Array.isArray(getObject(arg0));
|
|
377
303
|
return ret;
|
|
378
304
|
};
|
|
379
305
|
|
|
380
|
-
module.exports.
|
|
381
|
-
const
|
|
382
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
383
|
-
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
384
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
385
|
-
};
|
|
386
|
-
|
|
387
|
-
module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
388
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
389
|
-
};
|
|
390
|
-
|
|
391
|
-
module.exports.__wbindgen_is_string = function(arg0) {
|
|
392
|
-
const ret = typeof(getObject(arg0)) === 'string';
|
|
306
|
+
module.exports.__wbg_length_6e3bbe7c8bd4dbd8 = function(arg0) {
|
|
307
|
+
const ret = getObject(arg0).length;
|
|
393
308
|
return ret;
|
|
394
309
|
};
|
|
395
310
|
|
|
396
|
-
module.exports.
|
|
397
|
-
const ret = getObject(arg0)
|
|
311
|
+
module.exports.__wbg_get_57245cc7d7c7619d = function(arg0, arg1) {
|
|
312
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
398
313
|
return addHeapObject(ret);
|
|
399
314
|
};
|
|
400
315
|
|
|
401
|
-
module.exports.
|
|
402
|
-
const ret = getObject(arg0).
|
|
403
|
-
return ret;
|
|
404
|
-
};
|
|
405
|
-
|
|
406
|
-
module.exports.__wbg_code_24e161f043adce8a = function(arg0) {
|
|
407
|
-
const ret = getObject(arg0).code;
|
|
408
|
-
return ret;
|
|
409
|
-
};
|
|
410
|
-
|
|
411
|
-
module.exports.__wbg_reason_40159cc3d2fc655d = function(arg0, arg1) {
|
|
412
|
-
const ret = getObject(arg1).reason;
|
|
413
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
414
|
-
const len0 = WASM_VECTOR_LEN;
|
|
415
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
416
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
417
|
-
};
|
|
418
|
-
|
|
419
|
-
module.exports.__wbg_debug_f15cb542ea509609 = function(arg0) {
|
|
420
|
-
console.debug(getObject(arg0));
|
|
421
|
-
};
|
|
422
|
-
|
|
423
|
-
module.exports.__wbg_error_ef9a0be47931175f = function(arg0) {
|
|
424
|
-
console.error(getObject(arg0));
|
|
425
|
-
};
|
|
426
|
-
|
|
427
|
-
module.exports.__wbg_info_2874fdd5393f35ce = function(arg0) {
|
|
428
|
-
console.info(getObject(arg0));
|
|
429
|
-
};
|
|
430
|
-
|
|
431
|
-
module.exports.__wbg_log_4b5638ad60bdc54a = function(arg0) {
|
|
432
|
-
console.log(getObject(arg0));
|
|
433
|
-
};
|
|
434
|
-
|
|
435
|
-
module.exports.__wbg_warn_58110c4a199df084 = function(arg0) {
|
|
436
|
-
console.warn(getObject(arg0));
|
|
437
|
-
};
|
|
438
|
-
|
|
439
|
-
module.exports.__wbg_readyState_9c0f66433e329c9e = function(arg0) {
|
|
440
|
-
const ret = getObject(arg0).readyState;
|
|
441
|
-
return ret;
|
|
442
|
-
};
|
|
443
|
-
|
|
444
|
-
module.exports.__wbg_setonopen_9ce48dce57e549b5 = function(arg0, arg1) {
|
|
445
|
-
getObject(arg0).onopen = getObject(arg1);
|
|
446
|
-
};
|
|
447
|
-
|
|
448
|
-
module.exports.__wbg_setonerror_02393260b3e29972 = function(arg0, arg1) {
|
|
449
|
-
getObject(arg0).onerror = getObject(arg1);
|
|
450
|
-
};
|
|
451
|
-
|
|
452
|
-
module.exports.__wbg_setonclose_4ce49fd8fd7783fb = function(arg0, arg1) {
|
|
453
|
-
getObject(arg0).onclose = getObject(arg1);
|
|
454
|
-
};
|
|
455
|
-
|
|
456
|
-
module.exports.__wbg_setonmessage_c5a806b62a0c5607 = function(arg0, arg1) {
|
|
457
|
-
getObject(arg0).onmessage = getObject(arg1);
|
|
458
|
-
};
|
|
459
|
-
|
|
460
|
-
module.exports.__wbg_setbinaryType_ee55743ddf4beb37 = function(arg0, arg1) {
|
|
461
|
-
getObject(arg0).binaryType = takeObject(arg1);
|
|
462
|
-
};
|
|
463
|
-
|
|
464
|
-
module.exports.__wbg_new_d29e507f6606de91 = function() { return handleError(function (arg0, arg1) {
|
|
465
|
-
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
316
|
+
module.exports.__wbg_next_aaef7c8aa5e212ac = function() { return handleError(function (arg0) {
|
|
317
|
+
const ret = getObject(arg0).next();
|
|
466
318
|
return addHeapObject(ret);
|
|
467
319
|
}, arguments) };
|
|
468
320
|
|
|
469
|
-
module.exports.
|
|
470
|
-
getObject(arg0).
|
|
471
|
-
}, arguments) };
|
|
472
|
-
|
|
473
|
-
module.exports.__wbg_send_80b256d87a6779e5 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
474
|
-
getObject(arg0).send(getStringFromWasm0(arg1, arg2));
|
|
475
|
-
}, arguments) };
|
|
476
|
-
|
|
477
|
-
module.exports.__wbg_send_640853f8eb0f0385 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
478
|
-
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
|
|
479
|
-
}, arguments) };
|
|
480
|
-
|
|
481
|
-
module.exports.__wbg_clearTimeout_5b4145302d77e5f3 = typeof clearTimeout == 'function' ? clearTimeout : notDefined('clearTimeout');
|
|
482
|
-
|
|
483
|
-
module.exports.__wbg_setTimeout_02c3975efb677088 = function() { return handleError(function (arg0, arg1) {
|
|
484
|
-
const ret = setTimeout(getObject(arg0), arg1);
|
|
321
|
+
module.exports.__wbg_done_1b73b0672e15f234 = function(arg0) {
|
|
322
|
+
const ret = getObject(arg0).done;
|
|
485
323
|
return ret;
|
|
486
|
-
}
|
|
324
|
+
};
|
|
487
325
|
|
|
488
|
-
module.exports.
|
|
489
|
-
const ret = getObject(arg0)
|
|
326
|
+
module.exports.__wbg_value_1ccc36bc03462d71 = function(arg0) {
|
|
327
|
+
const ret = getObject(arg0).value;
|
|
490
328
|
return addHeapObject(ret);
|
|
491
329
|
};
|
|
492
330
|
|
|
493
|
-
module.exports.
|
|
494
|
-
const
|
|
331
|
+
module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
332
|
+
const obj = takeObject(arg0).original;
|
|
333
|
+
if (obj.cnt-- == 1) {
|
|
334
|
+
obj.a = 0;
|
|
335
|
+
return true;
|
|
336
|
+
}
|
|
337
|
+
const ret = false;
|
|
495
338
|
return ret;
|
|
496
339
|
};
|
|
497
340
|
|
|
@@ -500,101 +343,93 @@ module.exports.__wbg_new_1d9a920c6bfc44a8 = function() {
|
|
|
500
343
|
return addHeapObject(ret);
|
|
501
344
|
};
|
|
502
345
|
|
|
503
|
-
module.exports.
|
|
504
|
-
|
|
505
|
-
return ret;
|
|
346
|
+
module.exports.__wbg_set_a68214f35c417fa9 = function(arg0, arg1, arg2) {
|
|
347
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
506
348
|
};
|
|
507
349
|
|
|
508
|
-
module.exports.
|
|
509
|
-
const ret =
|
|
350
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
351
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
510
352
|
return addHeapObject(ret);
|
|
511
353
|
};
|
|
512
354
|
|
|
513
|
-
module.exports.
|
|
514
|
-
const ret = getObject(arg0)
|
|
515
|
-
return addHeapObject(ret);
|
|
516
|
-
}, arguments) };
|
|
517
|
-
|
|
518
|
-
module.exports.__wbg_done_1b73b0672e15f234 = function(arg0) {
|
|
519
|
-
const ret = getObject(arg0).done;
|
|
355
|
+
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
356
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
520
357
|
return ret;
|
|
521
358
|
};
|
|
522
359
|
|
|
523
|
-
module.exports.
|
|
524
|
-
const ret = getObject(arg0).
|
|
360
|
+
module.exports.__wbg_call_168da88779e35f61 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
361
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
525
362
|
return addHeapObject(ret);
|
|
526
|
-
};
|
|
363
|
+
}, arguments) };
|
|
527
364
|
|
|
528
|
-
module.exports.
|
|
529
|
-
const ret =
|
|
365
|
+
module.exports.__wbg_new_0b9bfdd97583284e = function() {
|
|
366
|
+
const ret = new Object();
|
|
530
367
|
return addHeapObject(ret);
|
|
531
368
|
};
|
|
532
369
|
|
|
533
|
-
module.exports.
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
}, arguments) };
|
|
370
|
+
module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
371
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
372
|
+
};
|
|
537
373
|
|
|
538
|
-
module.exports.
|
|
539
|
-
const ret =
|
|
374
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
375
|
+
const ret = arg0;
|
|
540
376
|
return addHeapObject(ret);
|
|
541
|
-
}
|
|
377
|
+
};
|
|
542
378
|
|
|
543
|
-
module.exports.
|
|
544
|
-
const
|
|
545
|
-
|
|
379
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
380
|
+
const val = getObject(arg0);
|
|
381
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
382
|
+
return ret;
|
|
546
383
|
};
|
|
547
384
|
|
|
548
|
-
module.exports.
|
|
549
|
-
getObject(arg0)[arg1
|
|
385
|
+
module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
|
|
386
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
387
|
+
return addHeapObject(ret);
|
|
550
388
|
};
|
|
551
389
|
|
|
552
|
-
module.exports.
|
|
553
|
-
const ret =
|
|
390
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
391
|
+
const ret = getObject(arg0) === undefined;
|
|
554
392
|
return ret;
|
|
555
393
|
};
|
|
556
394
|
|
|
557
|
-
module.exports.
|
|
558
|
-
|
|
559
|
-
try {
|
|
560
|
-
result = getObject(arg0) instanceof ArrayBuffer;
|
|
561
|
-
} catch {
|
|
562
|
-
result = false;
|
|
563
|
-
}
|
|
564
|
-
const ret = result;
|
|
395
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
396
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
565
397
|
return ret;
|
|
566
398
|
};
|
|
567
399
|
|
|
568
|
-
module.exports.
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
result = getObject(arg0) instanceof Error;
|
|
572
|
-
} catch {
|
|
573
|
-
result = false;
|
|
574
|
-
}
|
|
575
|
-
const ret = result;
|
|
400
|
+
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
401
|
+
const v = getObject(arg0);
|
|
402
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
576
403
|
return ret;
|
|
577
404
|
};
|
|
578
405
|
|
|
579
|
-
module.exports.
|
|
580
|
-
const ret = getObject(arg0).
|
|
406
|
+
module.exports.__wbg_getNextKey_a5825839e674c793 = function(arg0, arg1) {
|
|
407
|
+
const ret = getObject(arg0).getNextKey(takeObject(arg1));
|
|
581
408
|
return addHeapObject(ret);
|
|
582
409
|
};
|
|
583
410
|
|
|
584
|
-
module.exports.
|
|
585
|
-
const ret = getObject(arg0).
|
|
411
|
+
module.exports.__wbg_getPrefixKeys_3f5b604d16063bb9 = function(arg0, arg1) {
|
|
412
|
+
const ret = getObject(arg0).getPrefixKeys(takeObject(arg1));
|
|
586
413
|
return addHeapObject(ret);
|
|
587
414
|
};
|
|
588
415
|
|
|
589
|
-
module.exports.
|
|
590
|
-
const ret = getObject(arg0).
|
|
416
|
+
module.exports.__wbg_getStorage_b169f4e621ba07c4 = function(arg0, arg1) {
|
|
417
|
+
const ret = getObject(arg0).getStorage(takeObject(arg1));
|
|
591
418
|
return addHeapObject(ret);
|
|
592
419
|
};
|
|
593
420
|
|
|
594
|
-
module.exports.
|
|
595
|
-
const ret = getObject(arg0)
|
|
596
|
-
return
|
|
597
|
-
}
|
|
421
|
+
module.exports.__wbindgen_is_string = function(arg0) {
|
|
422
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
423
|
+
return ret;
|
|
424
|
+
};
|
|
425
|
+
|
|
426
|
+
module.exports.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
|
|
427
|
+
const ret = String(getObject(arg1));
|
|
428
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
429
|
+
const len0 = WASM_VECTOR_LEN;
|
|
430
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
431
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
432
|
+
};
|
|
598
433
|
|
|
599
434
|
module.exports.__wbg_new_9962f939219f1820 = function(arg0, arg1) {
|
|
600
435
|
try {
|
|
@@ -603,7 +438,7 @@ module.exports.__wbg_new_9962f939219f1820 = function(arg0, arg1) {
|
|
|
603
438
|
const a = state0.a;
|
|
604
439
|
state0.a = 0;
|
|
605
440
|
try {
|
|
606
|
-
return
|
|
441
|
+
return __wbg_adapter_88(a, state0.b, arg0, arg1);
|
|
607
442
|
} finally {
|
|
608
443
|
state0.a = a;
|
|
609
444
|
}
|
|
@@ -615,13 +450,59 @@ module.exports.__wbg_new_9962f939219f1820 = function(arg0, arg1) {
|
|
|
615
450
|
}
|
|
616
451
|
};
|
|
617
452
|
|
|
618
|
-
module.exports.
|
|
619
|
-
const ret =
|
|
453
|
+
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
454
|
+
const ret = new Error();
|
|
620
455
|
return addHeapObject(ret);
|
|
621
456
|
};
|
|
622
457
|
|
|
623
|
-
module.exports.
|
|
624
|
-
const ret = getObject(
|
|
458
|
+
module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
|
|
459
|
+
const ret = getObject(arg1).stack;
|
|
460
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
461
|
+
const len0 = WASM_VECTOR_LEN;
|
|
462
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
463
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
464
|
+
};
|
|
465
|
+
|
|
466
|
+
module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
467
|
+
try {
|
|
468
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
469
|
+
} finally {
|
|
470
|
+
wasm.__wbindgen_free(arg0, arg1);
|
|
471
|
+
}
|
|
472
|
+
};
|
|
473
|
+
|
|
474
|
+
module.exports.__wbg_iterator_6f9d4f28845f426c = function() {
|
|
475
|
+
const ret = Symbol.iterator;
|
|
476
|
+
return addHeapObject(ret);
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
module.exports.__wbg_get_765201544a2b6869 = function() { return handleError(function (arg0, arg1) {
|
|
480
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
481
|
+
return addHeapObject(ret);
|
|
482
|
+
}, arguments) };
|
|
483
|
+
|
|
484
|
+
module.exports.__wbindgen_is_function = function(arg0) {
|
|
485
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
486
|
+
return ret;
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
module.exports.__wbg_call_97ae9d8645dc388b = function() { return handleError(function (arg0, arg1) {
|
|
490
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
491
|
+
return addHeapObject(ret);
|
|
492
|
+
}, arguments) };
|
|
493
|
+
|
|
494
|
+
module.exports.__wbg_next_579e583d33566a86 = function(arg0) {
|
|
495
|
+
const ret = getObject(arg0).next;
|
|
496
|
+
return addHeapObject(ret);
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
module.exports.__wbg_length_9e1ae1900cb0fbd5 = function(arg0) {
|
|
500
|
+
const ret = getObject(arg0).length;
|
|
501
|
+
return ret;
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
module.exports.__wbindgen_memory = function() {
|
|
505
|
+
const ret = wasm.memory;
|
|
625
506
|
return addHeapObject(ret);
|
|
626
507
|
};
|
|
627
508
|
|
|
@@ -639,9 +520,11 @@ module.exports.__wbg_set_83db9690f9353e79 = function(arg0, arg1, arg2) {
|
|
|
639
520
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
640
521
|
};
|
|
641
522
|
|
|
642
|
-
module.exports.
|
|
643
|
-
const
|
|
644
|
-
|
|
523
|
+
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
524
|
+
const obj = getObject(arg1);
|
|
525
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
526
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
527
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
645
528
|
};
|
|
646
529
|
|
|
647
530
|
module.exports.__wbg_instanceof_Uint8Array_971eeda69eb75003 = function(arg0) {
|
|
@@ -655,25 +538,20 @@ module.exports.__wbg_instanceof_Uint8Array_971eeda69eb75003 = function(arg0) {
|
|
|
655
538
|
return ret;
|
|
656
539
|
};
|
|
657
540
|
|
|
658
|
-
module.exports.
|
|
659
|
-
|
|
660
|
-
return addHeapObject(ret);
|
|
661
|
-
};
|
|
662
|
-
|
|
663
|
-
module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
|
|
664
|
-
const ret = getObject(arg1).stack;
|
|
665
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
666
|
-
const len0 = WASM_VECTOR_LEN;
|
|
667
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
668
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
669
|
-
};
|
|
670
|
-
|
|
671
|
-
module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
541
|
+
module.exports.__wbg_instanceof_ArrayBuffer_e5e48f4762c5610b = function(arg0) {
|
|
542
|
+
let result;
|
|
672
543
|
try {
|
|
673
|
-
|
|
674
|
-
}
|
|
675
|
-
|
|
544
|
+
result = getObject(arg0) instanceof ArrayBuffer;
|
|
545
|
+
} catch {
|
|
546
|
+
result = false;
|
|
676
547
|
}
|
|
548
|
+
const ret = result;
|
|
549
|
+
return ret;
|
|
550
|
+
};
|
|
551
|
+
|
|
552
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
553
|
+
const ret = getObject(arg0);
|
|
554
|
+
return addHeapObject(ret);
|
|
677
555
|
};
|
|
678
556
|
|
|
679
557
|
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
@@ -688,43 +566,23 @@ module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
|
688
566
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
689
567
|
};
|
|
690
568
|
|
|
691
|
-
module.exports.
|
|
692
|
-
const ret =
|
|
693
|
-
return addHeapObject(ret);
|
|
694
|
-
};
|
|
695
|
-
|
|
696
|
-
module.exports.__wbindgen_closure_wrapper493 = function(arg0, arg1, arg2) {
|
|
697
|
-
const ret = makeMutClosure(arg0, arg1, 99, __wbg_adapter_34);
|
|
569
|
+
module.exports.__wbg_then_cedad20fbbd9418a = function(arg0, arg1, arg2) {
|
|
570
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
698
571
|
return addHeapObject(ret);
|
|
699
572
|
};
|
|
700
573
|
|
|
701
|
-
module.exports.
|
|
702
|
-
const ret =
|
|
703
|
-
return addHeapObject(ret);
|
|
704
|
-
};
|
|
705
|
-
|
|
706
|
-
module.exports.__wbindgen_closure_wrapper1956 = function(arg0, arg1, arg2) {
|
|
707
|
-
const ret = makeMutClosure(arg0, arg1, 457, __wbg_adapter_37);
|
|
708
|
-
return addHeapObject(ret);
|
|
709
|
-
};
|
|
710
|
-
|
|
711
|
-
module.exports.__wbindgen_closure_wrapper1958 = function(arg0, arg1, arg2) {
|
|
712
|
-
const ret = makeMutClosure(arg0, arg1, 457, __wbg_adapter_42);
|
|
713
|
-
return addHeapObject(ret);
|
|
714
|
-
};
|
|
715
|
-
|
|
716
|
-
module.exports.__wbindgen_closure_wrapper1960 = function(arg0, arg1, arg2) {
|
|
717
|
-
const ret = makeMutClosure(arg0, arg1, 457, __wbg_adapter_37);
|
|
574
|
+
module.exports.__wbg_resolve_99fe17964f31ffc0 = function(arg0) {
|
|
575
|
+
const ret = Promise.resolve(getObject(arg0));
|
|
718
576
|
return addHeapObject(ret);
|
|
719
577
|
};
|
|
720
578
|
|
|
721
|
-
module.exports.
|
|
722
|
-
const ret =
|
|
579
|
+
module.exports.__wbg_then_11f7a54d67b4bfad = function(arg0, arg1) {
|
|
580
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
723
581
|
return addHeapObject(ret);
|
|
724
582
|
};
|
|
725
583
|
|
|
726
|
-
module.exports.
|
|
727
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
584
|
+
module.exports.__wbindgen_closure_wrapper1230 = function(arg0, arg1, arg2) {
|
|
585
|
+
const ret = makeMutClosure(arg0, arg1, 75, __wbg_adapter_38);
|
|
728
586
|
return addHeapObject(ret);
|
|
729
587
|
};
|
|
730
588
|
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acala-network/chopsticks-executor",
|
|
3
|
-
"
|
|
3
|
+
"description": "Chopsticks executor",
|
|
4
|
+
"version": "0.3.0",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/AcalaNetwork/chopsticks"
|
|
9
|
+
},
|
|
4
10
|
"files": [
|
|
5
11
|
"chopsticks_executor_bg.wasm",
|
|
6
12
|
"chopsticks_executor.js",
|