@acala-network/chopsticks-executor 0.2.1 → 0.2.3
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 +5 -11
- package/chopsticks_executor.js +172 -315
- 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,7 @@ 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
|
-
* @
|
|
35
|
-
* @returns {Promise<void>}
|
|
28
|
+
* @param {any} task
|
|
29
|
+
* @returns {Promise<any>}
|
|
36
30
|
*/
|
|
37
|
-
export function run_task(
|
|
31
|
+
export function run_task(task: 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
|
|
|
@@ -23,9 +23,7 @@ function takeObject(idx) {
|
|
|
23
23
|
return ret;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
let
|
|
27
|
-
|
|
28
|
-
cachedTextDecoder.decode();
|
|
26
|
+
let WASM_VECTOR_LEN = 0;
|
|
29
27
|
|
|
30
28
|
let cachedUint8Memory0 = new Uint8Array();
|
|
31
29
|
|
|
@@ -36,21 +34,6 @@ function getUint8Memory0() {
|
|
|
36
34
|
return cachedUint8Memory0;
|
|
37
35
|
}
|
|
38
36
|
|
|
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
37
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
55
38
|
|
|
56
39
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -117,6 +100,23 @@ function getInt32Memory0() {
|
|
|
117
100
|
return cachedInt32Memory0;
|
|
118
101
|
}
|
|
119
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.
|
|
220
|
-
}
|
|
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);
|
|
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));
|
|
228
220
|
}
|
|
229
221
|
|
|
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,11 @@ module.exports.create_proof = function(root_trie_hash, nodes, entries) {
|
|
|
289
260
|
};
|
|
290
261
|
|
|
291
262
|
/**
|
|
292
|
-
* @param {
|
|
293
|
-
* @
|
|
294
|
-
* @returns {Promise<void>}
|
|
263
|
+
* @param {any} task
|
|
264
|
+
* @returns {Promise<any>}
|
|
295
265
|
*/
|
|
296
|
-
module.exports.run_task = function(
|
|
297
|
-
const
|
|
298
|
-
const len0 = WASM_VECTOR_LEN;
|
|
299
|
-
const ret = wasm.run_task(task_id, ptr0, len0);
|
|
266
|
+
module.exports.run_task = function(task) {
|
|
267
|
+
const ret = wasm.run_task(addHeapObject(task));
|
|
300
268
|
return takeObject(ret);
|
|
301
269
|
};
|
|
302
270
|
|
|
@@ -307,25 +275,44 @@ function handleError(f, args) {
|
|
|
307
275
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
308
276
|
}
|
|
309
277
|
}
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
278
|
+
function __wbg_adapter_88(arg0, arg1, arg2, arg3) {
|
|
279
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h0ff20d32b5299564(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
313
280
|
}
|
|
314
281
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
}
|
|
282
|
+
module.exports.__wbg_isArray_27c46c67f498e15d = function(arg0) {
|
|
283
|
+
const ret = Array.isArray(getObject(arg0));
|
|
284
|
+
return ret;
|
|
285
|
+
};
|
|
319
286
|
|
|
320
|
-
module.exports.
|
|
321
|
-
|
|
287
|
+
module.exports.__wbg_length_6e3bbe7c8bd4dbd8 = function(arg0) {
|
|
288
|
+
const ret = getObject(arg0).length;
|
|
289
|
+
return ret;
|
|
322
290
|
};
|
|
323
291
|
|
|
324
|
-
module.exports.
|
|
325
|
-
const ret =
|
|
292
|
+
module.exports.__wbg_get_57245cc7d7c7619d = function(arg0, arg1) {
|
|
293
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
326
294
|
return addHeapObject(ret);
|
|
327
295
|
};
|
|
328
296
|
|
|
297
|
+
module.exports.__wbg_next_aaef7c8aa5e212ac = function() { return handleError(function (arg0) {
|
|
298
|
+
const ret = getObject(arg0).next();
|
|
299
|
+
return addHeapObject(ret);
|
|
300
|
+
}, arguments) };
|
|
301
|
+
|
|
302
|
+
module.exports.__wbg_done_1b73b0672e15f234 = function(arg0) {
|
|
303
|
+
const ret = getObject(arg0).done;
|
|
304
|
+
return ret;
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
module.exports.__wbg_value_1ccc36bc03462d71 = function(arg0) {
|
|
308
|
+
const ret = getObject(arg0).value;
|
|
309
|
+
return addHeapObject(ret);
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
313
|
+
takeObject(arg0);
|
|
314
|
+
};
|
|
315
|
+
|
|
329
316
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
330
317
|
const obj = getObject(arg1);
|
|
331
318
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -335,6 +322,11 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
335
322
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
336
323
|
};
|
|
337
324
|
|
|
325
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
326
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
327
|
+
return addHeapObject(ret);
|
|
328
|
+
};
|
|
329
|
+
|
|
338
330
|
module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
339
331
|
const obj = takeObject(arg0).original;
|
|
340
332
|
if (obj.cnt-- == 1) {
|
|
@@ -345,184 +337,142 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
345
337
|
return ret;
|
|
346
338
|
};
|
|
347
339
|
|
|
348
|
-
module.exports.
|
|
349
|
-
const ret = new
|
|
340
|
+
module.exports.__wbg_new_1d9a920c6bfc44a8 = function() {
|
|
341
|
+
const ret = new Array();
|
|
350
342
|
return addHeapObject(ret);
|
|
351
343
|
};
|
|
352
344
|
|
|
353
|
-
module.exports.
|
|
354
|
-
|
|
355
|
-
return addHeapObject(ret);
|
|
345
|
+
module.exports.__wbg_set_a68214f35c417fa9 = function(arg0, arg1, arg2) {
|
|
346
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
356
347
|
};
|
|
357
348
|
|
|
358
|
-
module.exports.
|
|
359
|
-
const ret =
|
|
349
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
350
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
360
351
|
return addHeapObject(ret);
|
|
361
352
|
};
|
|
362
353
|
|
|
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
354
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
370
355
|
const ret = getObject(arg0) == getObject(arg1);
|
|
371
356
|
return ret;
|
|
372
357
|
};
|
|
373
358
|
|
|
374
|
-
module.exports.
|
|
375
|
-
const
|
|
376
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
377
|
-
return ret;
|
|
378
|
-
};
|
|
379
|
-
|
|
380
|
-
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
381
|
-
const obj = getObject(arg1);
|
|
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';
|
|
393
|
-
return ret;
|
|
394
|
-
};
|
|
395
|
-
|
|
396
|
-
module.exports.__wbg_data_7b1f01f4e6a64fbe = function(arg0) {
|
|
397
|
-
const ret = getObject(arg0).data;
|
|
398
|
-
return addHeapObject(ret);
|
|
399
|
-
};
|
|
400
|
-
|
|
401
|
-
module.exports.__wbg_wasClean_2af04e6cf2076497 = function(arg0) {
|
|
402
|
-
const ret = getObject(arg0).wasClean;
|
|
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;
|
|
359
|
+
module.exports.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
|
|
360
|
+
const ret = String(getObject(arg1));
|
|
413
361
|
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
414
362
|
const len0 = WASM_VECTOR_LEN;
|
|
415
363
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
416
364
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
417
365
|
};
|
|
418
366
|
|
|
419
|
-
module.exports.
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
module.exports.__wbg_error_ef9a0be47931175f = function(arg0) {
|
|
424
|
-
console.error(getObject(arg0));
|
|
425
|
-
};
|
|
367
|
+
module.exports.__wbg_call_168da88779e35f61 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
368
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
369
|
+
return addHeapObject(ret);
|
|
370
|
+
}, arguments) };
|
|
426
371
|
|
|
427
|
-
module.exports.
|
|
428
|
-
|
|
372
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
373
|
+
const val = getObject(arg0);
|
|
374
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
375
|
+
return ret;
|
|
429
376
|
};
|
|
430
377
|
|
|
431
|
-
module.exports.
|
|
432
|
-
|
|
378
|
+
module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
|
|
379
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
380
|
+
return addHeapObject(ret);
|
|
433
381
|
};
|
|
434
382
|
|
|
435
|
-
module.exports.
|
|
436
|
-
|
|
383
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
384
|
+
const ret = getObject(arg0) === undefined;
|
|
385
|
+
return ret;
|
|
437
386
|
};
|
|
438
387
|
|
|
439
|
-
module.exports.
|
|
440
|
-
const ret = getObject(arg0)
|
|
388
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
389
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
441
390
|
return ret;
|
|
442
391
|
};
|
|
443
392
|
|
|
444
|
-
module.exports.
|
|
445
|
-
|
|
393
|
+
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
394
|
+
const v = getObject(arg0);
|
|
395
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
396
|
+
return ret;
|
|
446
397
|
};
|
|
447
398
|
|
|
448
|
-
module.exports.
|
|
449
|
-
|
|
399
|
+
module.exports.__wbg_new_0b9bfdd97583284e = function() {
|
|
400
|
+
const ret = new Object();
|
|
401
|
+
return addHeapObject(ret);
|
|
450
402
|
};
|
|
451
403
|
|
|
452
|
-
module.exports.
|
|
453
|
-
getObject(arg0)
|
|
404
|
+
module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
405
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
454
406
|
};
|
|
455
407
|
|
|
456
|
-
module.exports.
|
|
457
|
-
|
|
408
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
409
|
+
const ret = arg0;
|
|
410
|
+
return addHeapObject(ret);
|
|
458
411
|
};
|
|
459
412
|
|
|
460
|
-
module.exports.
|
|
461
|
-
|
|
413
|
+
module.exports.__wbg_getNextKey_f7f031e8c33aa560 = function(arg0, arg1) {
|
|
414
|
+
const ret = _chopsticks_binding_.getNextKey(takeObject(arg0), takeObject(arg1));
|
|
415
|
+
return addHeapObject(ret);
|
|
462
416
|
};
|
|
463
417
|
|
|
464
|
-
module.exports.
|
|
465
|
-
const ret =
|
|
418
|
+
module.exports.__wbg_getPrefixKeys_03afe954243a179b = function(arg0, arg1) {
|
|
419
|
+
const ret = _chopsticks_binding_.getPrefixKeys(takeObject(arg0), takeObject(arg1));
|
|
466
420
|
return addHeapObject(ret);
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
module.exports.__wbg_close_45d053bea59e7746 = function() { return handleError(function (arg0) {
|
|
470
|
-
getObject(arg0).close();
|
|
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);
|
|
485
|
-
return ret;
|
|
486
|
-
}, arguments) };
|
|
421
|
+
};
|
|
487
422
|
|
|
488
|
-
module.exports.
|
|
489
|
-
const ret =
|
|
423
|
+
module.exports.__wbg_getStorage_bb388aed65975550 = function(arg0, arg1) {
|
|
424
|
+
const ret = _chopsticks_binding_.getStorage(takeObject(arg0), takeObject(arg1));
|
|
490
425
|
return addHeapObject(ret);
|
|
491
426
|
};
|
|
492
427
|
|
|
493
|
-
module.exports.
|
|
494
|
-
const ret = getObject(arg0)
|
|
428
|
+
module.exports.__wbindgen_is_string = function(arg0) {
|
|
429
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
495
430
|
return ret;
|
|
496
431
|
};
|
|
497
432
|
|
|
498
|
-
module.exports.
|
|
499
|
-
const ret =
|
|
433
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
434
|
+
const ret = getObject(arg0);
|
|
500
435
|
return addHeapObject(ret);
|
|
501
436
|
};
|
|
502
437
|
|
|
503
|
-
module.exports.
|
|
504
|
-
|
|
505
|
-
|
|
438
|
+
module.exports.__wbg_new_9962f939219f1820 = function(arg0, arg1) {
|
|
439
|
+
try {
|
|
440
|
+
var state0 = {a: arg0, b: arg1};
|
|
441
|
+
var cb0 = (arg0, arg1) => {
|
|
442
|
+
const a = state0.a;
|
|
443
|
+
state0.a = 0;
|
|
444
|
+
try {
|
|
445
|
+
return __wbg_adapter_88(a, state0.b, arg0, arg1);
|
|
446
|
+
} finally {
|
|
447
|
+
state0.a = a;
|
|
448
|
+
}
|
|
449
|
+
};
|
|
450
|
+
const ret = new Promise(cb0);
|
|
451
|
+
return addHeapObject(ret);
|
|
452
|
+
} finally {
|
|
453
|
+
state0.a = state0.b = 0;
|
|
454
|
+
}
|
|
506
455
|
};
|
|
507
456
|
|
|
508
|
-
module.exports.
|
|
509
|
-
const ret =
|
|
457
|
+
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
458
|
+
const ret = new Error();
|
|
510
459
|
return addHeapObject(ret);
|
|
511
460
|
};
|
|
512
461
|
|
|
513
|
-
module.exports.
|
|
514
|
-
const ret = getObject(
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
const ret = getObject(arg0).done;
|
|
520
|
-
return ret;
|
|
462
|
+
module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
|
|
463
|
+
const ret = getObject(arg1).stack;
|
|
464
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
465
|
+
const len0 = WASM_VECTOR_LEN;
|
|
466
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
467
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
521
468
|
};
|
|
522
469
|
|
|
523
|
-
module.exports.
|
|
524
|
-
|
|
525
|
-
|
|
470
|
+
module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
471
|
+
try {
|
|
472
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
473
|
+
} finally {
|
|
474
|
+
wasm.__wbindgen_free(arg0, arg1);
|
|
475
|
+
}
|
|
526
476
|
};
|
|
527
477
|
|
|
528
478
|
module.exports.__wbg_iterator_6f9d4f28845f426c = function() {
|
|
@@ -535,93 +485,28 @@ module.exports.__wbg_get_765201544a2b6869 = function() { return handleError(func
|
|
|
535
485
|
return addHeapObject(ret);
|
|
536
486
|
}, arguments) };
|
|
537
487
|
|
|
488
|
+
module.exports.__wbindgen_is_function = function(arg0) {
|
|
489
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
490
|
+
return ret;
|
|
491
|
+
};
|
|
492
|
+
|
|
538
493
|
module.exports.__wbg_call_97ae9d8645dc388b = function() { return handleError(function (arg0, arg1) {
|
|
539
494
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
540
495
|
return addHeapObject(ret);
|
|
541
496
|
}, arguments) };
|
|
542
497
|
|
|
543
|
-
module.exports.
|
|
544
|
-
const ret =
|
|
498
|
+
module.exports.__wbg_next_579e583d33566a86 = function(arg0) {
|
|
499
|
+
const ret = getObject(arg0).next;
|
|
545
500
|
return addHeapObject(ret);
|
|
546
501
|
};
|
|
547
502
|
|
|
548
|
-
module.exports.
|
|
549
|
-
|
|
550
|
-
};
|
|
551
|
-
|
|
552
|
-
module.exports.__wbg_isArray_27c46c67f498e15d = function(arg0) {
|
|
553
|
-
const ret = Array.isArray(getObject(arg0));
|
|
554
|
-
return ret;
|
|
555
|
-
};
|
|
556
|
-
|
|
557
|
-
module.exports.__wbg_instanceof_ArrayBuffer_e5e48f4762c5610b = function(arg0) {
|
|
558
|
-
let result;
|
|
559
|
-
try {
|
|
560
|
-
result = getObject(arg0) instanceof ArrayBuffer;
|
|
561
|
-
} catch {
|
|
562
|
-
result = false;
|
|
563
|
-
}
|
|
564
|
-
const ret = result;
|
|
565
|
-
return ret;
|
|
566
|
-
};
|
|
567
|
-
|
|
568
|
-
module.exports.__wbg_instanceof_Error_56b496a10a56de66 = function(arg0) {
|
|
569
|
-
let result;
|
|
570
|
-
try {
|
|
571
|
-
result = getObject(arg0) instanceof Error;
|
|
572
|
-
} catch {
|
|
573
|
-
result = false;
|
|
574
|
-
}
|
|
575
|
-
const ret = result;
|
|
503
|
+
module.exports.__wbg_length_9e1ae1900cb0fbd5 = function(arg0) {
|
|
504
|
+
const ret = getObject(arg0).length;
|
|
576
505
|
return ret;
|
|
577
506
|
};
|
|
578
507
|
|
|
579
|
-
module.exports.
|
|
580
|
-
const ret =
|
|
581
|
-
return addHeapObject(ret);
|
|
582
|
-
};
|
|
583
|
-
|
|
584
|
-
module.exports.__wbg_name_48eda3ae6aa697ca = function(arg0) {
|
|
585
|
-
const ret = getObject(arg0).name;
|
|
586
|
-
return addHeapObject(ret);
|
|
587
|
-
};
|
|
588
|
-
|
|
589
|
-
module.exports.__wbg_toString_73c9b562dccf34bd = function(arg0) {
|
|
590
|
-
const ret = getObject(arg0).toString();
|
|
591
|
-
return addHeapObject(ret);
|
|
592
|
-
};
|
|
593
|
-
|
|
594
|
-
module.exports.__wbg_call_168da88779e35f61 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
595
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
596
|
-
return addHeapObject(ret);
|
|
597
|
-
}, arguments) };
|
|
598
|
-
|
|
599
|
-
module.exports.__wbg_new_9962f939219f1820 = function(arg0, arg1) {
|
|
600
|
-
try {
|
|
601
|
-
var state0 = {a: arg0, b: arg1};
|
|
602
|
-
var cb0 = (arg0, arg1) => {
|
|
603
|
-
const a = state0.a;
|
|
604
|
-
state0.a = 0;
|
|
605
|
-
try {
|
|
606
|
-
return __wbg_adapter_137(a, state0.b, arg0, arg1);
|
|
607
|
-
} finally {
|
|
608
|
-
state0.a = a;
|
|
609
|
-
}
|
|
610
|
-
};
|
|
611
|
-
const ret = new Promise(cb0);
|
|
612
|
-
return addHeapObject(ret);
|
|
613
|
-
} finally {
|
|
614
|
-
state0.a = state0.b = 0;
|
|
615
|
-
}
|
|
616
|
-
};
|
|
617
|
-
|
|
618
|
-
module.exports.__wbg_resolve_99fe17964f31ffc0 = function(arg0) {
|
|
619
|
-
const ret = Promise.resolve(getObject(arg0));
|
|
620
|
-
return addHeapObject(ret);
|
|
621
|
-
};
|
|
622
|
-
|
|
623
|
-
module.exports.__wbg_then_11f7a54d67b4bfad = function(arg0, arg1) {
|
|
624
|
-
const ret = getObject(arg0).then(getObject(arg1));
|
|
508
|
+
module.exports.__wbindgen_memory = function() {
|
|
509
|
+
const ret = wasm.memory;
|
|
625
510
|
return addHeapObject(ret);
|
|
626
511
|
};
|
|
627
512
|
|
|
@@ -639,9 +524,11 @@ module.exports.__wbg_set_83db9690f9353e79 = function(arg0, arg1, arg2) {
|
|
|
639
524
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
640
525
|
};
|
|
641
526
|
|
|
642
|
-
module.exports.
|
|
643
|
-
const
|
|
644
|
-
|
|
527
|
+
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
528
|
+
const obj = getObject(arg1);
|
|
529
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
530
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
531
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
645
532
|
};
|
|
646
533
|
|
|
647
534
|
module.exports.__wbg_instanceof_Uint8Array_971eeda69eb75003 = function(arg0) {
|
|
@@ -655,25 +542,15 @@ module.exports.__wbg_instanceof_Uint8Array_971eeda69eb75003 = function(arg0) {
|
|
|
655
542
|
return ret;
|
|
656
543
|
};
|
|
657
544
|
|
|
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) {
|
|
545
|
+
module.exports.__wbg_instanceof_ArrayBuffer_e5e48f4762c5610b = function(arg0) {
|
|
546
|
+
let result;
|
|
672
547
|
try {
|
|
673
|
-
|
|
674
|
-
}
|
|
675
|
-
|
|
548
|
+
result = getObject(arg0) instanceof ArrayBuffer;
|
|
549
|
+
} catch {
|
|
550
|
+
result = false;
|
|
676
551
|
}
|
|
552
|
+
const ret = result;
|
|
553
|
+
return ret;
|
|
677
554
|
};
|
|
678
555
|
|
|
679
556
|
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
@@ -688,43 +565,23 @@ module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
|
688
565
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
689
566
|
};
|
|
690
567
|
|
|
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);
|
|
698
|
-
return addHeapObject(ret);
|
|
699
|
-
};
|
|
700
|
-
|
|
701
|
-
module.exports.__wbindgen_closure_wrapper1954 = function(arg0, arg1, arg2) {
|
|
702
|
-
const ret = makeMutClosure(arg0, arg1, 457, __wbg_adapter_37);
|
|
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);
|
|
568
|
+
module.exports.__wbg_then_cedad20fbbd9418a = function(arg0, arg1, arg2) {
|
|
569
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
708
570
|
return addHeapObject(ret);
|
|
709
571
|
};
|
|
710
572
|
|
|
711
|
-
module.exports.
|
|
712
|
-
const ret =
|
|
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);
|
|
573
|
+
module.exports.__wbg_resolve_99fe17964f31ffc0 = function(arg0) {
|
|
574
|
+
const ret = Promise.resolve(getObject(arg0));
|
|
718
575
|
return addHeapObject(ret);
|
|
719
576
|
};
|
|
720
577
|
|
|
721
|
-
module.exports.
|
|
722
|
-
const ret =
|
|
578
|
+
module.exports.__wbg_then_11f7a54d67b4bfad = function(arg0, arg1) {
|
|
579
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
723
580
|
return addHeapObject(ret);
|
|
724
581
|
};
|
|
725
582
|
|
|
726
|
-
module.exports.
|
|
727
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
583
|
+
module.exports.__wbindgen_closure_wrapper1229 = function(arg0, arg1, arg2) {
|
|
584
|
+
const ret = makeMutClosure(arg0, arg1, 75, __wbg_adapter_38);
|
|
728
585
|
return addHeapObject(ret);
|
|
729
586
|
};
|
|
730
587
|
|
|
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.2.3",
|
|
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",
|