@aztec/noir-noirc_abi 0.0.0-test.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/README.md +3 -0
- package/nodejs/noirc_abi_wasm.d.ts +15 -0
- package/nodejs/noirc_abi_wasm.js +299 -0
- package/nodejs/noirc_abi_wasm_bg.wasm +0 -0
- package/nodejs/noirc_abi_wasm_bg.wasm.d.ts +16 -0
- package/package.json +49 -0
- package/web/noirc_abi_wasm.d.ts +55 -0
- package/web/noirc_abi_wasm.js +377 -0
- package/web/noirc_abi_wasm_bg.wasm +0 -0
- package/web/noirc_abi_wasm_bg.wasm.d.ts +16 -0
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export function abiEncode(abi: Abi, inputs: InputMap, return_value?: InputValue | null): WitnessMap;
|
|
4
|
+
export function abiDecode(abi: Abi, witness_map: WitnessMap): any;
|
|
5
|
+
export function serializeWitness(witness_map: WitnessMap): Uint8Array;
|
|
6
|
+
export function abiDecodeError(abi: Abi, raw_error: RawAssertionPayload): any;
|
|
7
|
+
|
|
8
|
+
export type ABIError = Error;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
import { Field, InputValue, InputMap, Visibility, Sign, AbiType, AbiParameter, Abi, WitnessMap, RawAssertionPayload } from "@noir-lang/types";
|
|
13
|
+
export { Field, InputValue, InputMap, Visibility, Sign, AbiType, AbiParameter, Abi, WitnessMap, RawAssertionPayload } from "@noir-lang/types";
|
|
14
|
+
|
|
15
|
+
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
|
|
2
|
+
let imports = {};
|
|
3
|
+
imports['__wbindgen_placeholder__'] = module.exports;
|
|
4
|
+
let wasm;
|
|
5
|
+
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
|
+
|
|
7
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
8
|
+
|
|
9
|
+
cachedTextDecoder.decode();
|
|
10
|
+
|
|
11
|
+
let cachedUint8ArrayMemory0 = null;
|
|
12
|
+
|
|
13
|
+
function getUint8ArrayMemory0() {
|
|
14
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
15
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
16
|
+
}
|
|
17
|
+
return cachedUint8ArrayMemory0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function getStringFromWasm0(ptr, len) {
|
|
21
|
+
ptr = ptr >>> 0;
|
|
22
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function addToExternrefTable0(obj) {
|
|
26
|
+
const idx = wasm.__externref_table_alloc();
|
|
27
|
+
wasm.__wbindgen_export_3.set(idx, obj);
|
|
28
|
+
return idx;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function handleError(f, args) {
|
|
32
|
+
try {
|
|
33
|
+
return f.apply(this, args);
|
|
34
|
+
} catch (e) {
|
|
35
|
+
const idx = addToExternrefTable0(e);
|
|
36
|
+
wasm.__wbindgen_exn_store(idx);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
let WASM_VECTOR_LEN = 0;
|
|
41
|
+
|
|
42
|
+
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
43
|
+
|
|
44
|
+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
45
|
+
? function (arg, view) {
|
|
46
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
47
|
+
}
|
|
48
|
+
: function (arg, view) {
|
|
49
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
50
|
+
view.set(buf);
|
|
51
|
+
return {
|
|
52
|
+
read: arg.length,
|
|
53
|
+
written: buf.length
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
58
|
+
|
|
59
|
+
if (realloc === undefined) {
|
|
60
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
61
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
62
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
63
|
+
WASM_VECTOR_LEN = buf.length;
|
|
64
|
+
return ptr;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
let len = arg.length;
|
|
68
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
69
|
+
|
|
70
|
+
const mem = getUint8ArrayMemory0();
|
|
71
|
+
|
|
72
|
+
let offset = 0;
|
|
73
|
+
|
|
74
|
+
for (; offset < len; offset++) {
|
|
75
|
+
const code = arg.charCodeAt(offset);
|
|
76
|
+
if (code > 0x7F) break;
|
|
77
|
+
mem[ptr + offset] = code;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (offset !== len) {
|
|
81
|
+
if (offset !== 0) {
|
|
82
|
+
arg = arg.slice(offset);
|
|
83
|
+
}
|
|
84
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
85
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
86
|
+
const ret = encodeString(arg, view);
|
|
87
|
+
|
|
88
|
+
offset += ret.written;
|
|
89
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
WASM_VECTOR_LEN = offset;
|
|
93
|
+
return ptr;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
let cachedDataViewMemory0 = null;
|
|
97
|
+
|
|
98
|
+
function getDataViewMemory0() {
|
|
99
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
100
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
101
|
+
}
|
|
102
|
+
return cachedDataViewMemory0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function isLikeNone(x) {
|
|
106
|
+
return x === undefined || x === null;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function takeFromExternrefTable0(idx) {
|
|
110
|
+
const value = wasm.__wbindgen_export_3.get(idx);
|
|
111
|
+
wasm.__externref_table_dealloc(idx);
|
|
112
|
+
return value;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* @param {Abi} abi
|
|
116
|
+
* @param {InputMap} inputs
|
|
117
|
+
* @param {InputValue | null} [return_value]
|
|
118
|
+
* @returns {WitnessMap}
|
|
119
|
+
*/
|
|
120
|
+
module.exports.abiEncode = function(abi, inputs, return_value) {
|
|
121
|
+
const ret = wasm.abiEncode(abi, inputs, isLikeNone(return_value) ? 0 : addToExternrefTable0(return_value));
|
|
122
|
+
if (ret[2]) {
|
|
123
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
124
|
+
}
|
|
125
|
+
return takeFromExternrefTable0(ret[0]);
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @param {Abi} abi
|
|
130
|
+
* @param {WitnessMap} witness_map
|
|
131
|
+
* @returns {any}
|
|
132
|
+
*/
|
|
133
|
+
module.exports.abiDecode = function(abi, witness_map) {
|
|
134
|
+
const ret = wasm.abiDecode(abi, witness_map);
|
|
135
|
+
if (ret[2]) {
|
|
136
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
137
|
+
}
|
|
138
|
+
return takeFromExternrefTable0(ret[0]);
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
142
|
+
ptr = ptr >>> 0;
|
|
143
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* @param {WitnessMap} witness_map
|
|
147
|
+
* @returns {Uint8Array}
|
|
148
|
+
*/
|
|
149
|
+
module.exports.serializeWitness = function(witness_map) {
|
|
150
|
+
const ret = wasm.serializeWitness(witness_map);
|
|
151
|
+
if (ret[3]) {
|
|
152
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
153
|
+
}
|
|
154
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
155
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
156
|
+
return v1;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @param {Abi} abi
|
|
161
|
+
* @param {RawAssertionPayload} raw_error
|
|
162
|
+
* @returns {any}
|
|
163
|
+
*/
|
|
164
|
+
module.exports.abiDecodeError = function(abi, raw_error) {
|
|
165
|
+
const ret = wasm.abiDecodeError(abi, raw_error);
|
|
166
|
+
if (ret[2]) {
|
|
167
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
168
|
+
}
|
|
169
|
+
return takeFromExternrefTable0(ret[0]);
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
function __wbg_adapter_30(arg0, arg1, arg2, arg3) {
|
|
173
|
+
wasm.closure155_externref_shim(arg0, arg1, arg2, arg3);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
module.exports.__wbg_constructor_bc5e3569b1bc20f1 = function(arg0) {
|
|
177
|
+
const ret = new Error(arg0);
|
|
178
|
+
return ret;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
182
|
+
let deferred0_0;
|
|
183
|
+
let deferred0_1;
|
|
184
|
+
try {
|
|
185
|
+
deferred0_0 = arg0;
|
|
186
|
+
deferred0_1 = arg1;
|
|
187
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
188
|
+
} finally {
|
|
189
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
module.exports.__wbg_forEach_e1cf6f7c8ecb7dae = function(arg0, arg1, arg2) {
|
|
194
|
+
try {
|
|
195
|
+
var state0 = {a: arg1, b: arg2};
|
|
196
|
+
var cb0 = (arg0, arg1) => {
|
|
197
|
+
const a = state0.a;
|
|
198
|
+
state0.a = 0;
|
|
199
|
+
try {
|
|
200
|
+
return __wbg_adapter_30(a, state0.b, arg0, arg1);
|
|
201
|
+
} finally {
|
|
202
|
+
state0.a = a;
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
arg0.forEach(cb0);
|
|
206
|
+
} finally {
|
|
207
|
+
state0.a = state0.b = 0;
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
module.exports.__wbg_new_0b7dab710d4e469e = function() {
|
|
212
|
+
const ret = new Map();
|
|
213
|
+
return ret;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
module.exports.__wbg_new_8a6f238a6ece86ea = function() {
|
|
217
|
+
const ret = new Error();
|
|
218
|
+
return ret;
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
module.exports.__wbg_parse_def2e24ef1252aff = function() { return handleError(function (arg0, arg1) {
|
|
222
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
223
|
+
return ret;
|
|
224
|
+
}, arguments) };
|
|
225
|
+
|
|
226
|
+
module.exports.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
|
|
227
|
+
const ret = arg0.set(arg1, arg2);
|
|
228
|
+
return ret;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
232
|
+
const ret = arg1.stack;
|
|
233
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
234
|
+
const len1 = WASM_VECTOR_LEN;
|
|
235
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
236
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
module.exports.__wbg_stringify_f7ed6987935b4a24 = function() { return handleError(function (arg0) {
|
|
240
|
+
const ret = JSON.stringify(arg0);
|
|
241
|
+
return ret;
|
|
242
|
+
}, arguments) };
|
|
243
|
+
|
|
244
|
+
module.exports.__wbindgen_init_externref_table = function() {
|
|
245
|
+
const table = wasm.__wbindgen_export_3;
|
|
246
|
+
const offset = table.grow(4);
|
|
247
|
+
table.set(0, undefined);
|
|
248
|
+
table.set(offset + 0, undefined);
|
|
249
|
+
table.set(offset + 1, null);
|
|
250
|
+
table.set(offset + 2, true);
|
|
251
|
+
table.set(offset + 3, false);
|
|
252
|
+
;
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
256
|
+
const ret = arg0 === undefined;
|
|
257
|
+
return ret;
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
261
|
+
const obj = arg1;
|
|
262
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
263
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
264
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
268
|
+
const ret = arg0;
|
|
269
|
+
return ret;
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
273
|
+
const obj = arg1;
|
|
274
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
275
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
276
|
+
var len1 = WASM_VECTOR_LEN;
|
|
277
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
278
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
282
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
283
|
+
return ret;
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
287
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
const path = require('path').join(__dirname, 'noirc_abi_wasm_bg.wasm');
|
|
291
|
+
const bytes = require('fs').readFileSync(path);
|
|
292
|
+
|
|
293
|
+
const wasmModule = new WebAssembly.Module(bytes);
|
|
294
|
+
const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
|
|
295
|
+
wasm = wasmInstance.exports;
|
|
296
|
+
module.exports.__wasm = wasm;
|
|
297
|
+
|
|
298
|
+
wasm.__wbindgen_start();
|
|
299
|
+
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const abiEncode: (a: any, b: any, c: number) => [number, number, number];
|
|
5
|
+
export const abiDecode: (a: any, b: any) => [number, number, number];
|
|
6
|
+
export const serializeWitness: (a: any) => [number, number, number, number];
|
|
7
|
+
export const abiDecodeError: (a: any, b: any) => [number, number, number];
|
|
8
|
+
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
9
|
+
export const __wbindgen_exn_store: (a: number) => void;
|
|
10
|
+
export const __externref_table_alloc: () => number;
|
|
11
|
+
export const __wbindgen_export_3: WebAssembly.Table;
|
|
12
|
+
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
13
|
+
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
14
|
+
export const __externref_table_dealloc: (a: number) => void;
|
|
15
|
+
export const closure155_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
16
|
+
export const __wbindgen_start: () => void;
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aztec/noir-noirc_abi",
|
|
3
|
+
"contributors": [
|
|
4
|
+
"The Noir Team <team@noir-lang.org>"
|
|
5
|
+
],
|
|
6
|
+
"version": "0.0.0-test.0",
|
|
7
|
+
"license": "(MIT OR Apache-2.0)",
|
|
8
|
+
"homepage": "https://noir-lang.org/",
|
|
9
|
+
"repository": {
|
|
10
|
+
"url": "https://github.com/noir-lang/noir.git",
|
|
11
|
+
"directory": "tooling/noirc_abi_wasm",
|
|
12
|
+
"type": "git"
|
|
13
|
+
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/noir-lang/noir/issues"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"nodejs",
|
|
19
|
+
"web",
|
|
20
|
+
"package.json"
|
|
21
|
+
],
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
},
|
|
25
|
+
"main": "./nodejs/noirc_abi_wasm.js",
|
|
26
|
+
"types": "./web/noirc_abi_wasm.d.ts",
|
|
27
|
+
"module": "./web/noirc_abi_wasm.js",
|
|
28
|
+
"sideEffects": false,
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "bash ./build.sh",
|
|
31
|
+
"test": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha",
|
|
32
|
+
"test:browser": "web-test-runner",
|
|
33
|
+
"clean": "chmod u+w web nodejs || true && rm -rf ./nodejs ./web ./target ./result",
|
|
34
|
+
"nightly:version": "jq --arg new_version \"-$(git rev-parse --short HEAD)$1\" '.version = .version + $new_version' package.json > package-tmp.json && mv package-tmp.json package.json",
|
|
35
|
+
"publish": "echo 📡 publishing `$npm_package_name` && yarn npm publish",
|
|
36
|
+
"lint": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@aztec/noir-types": "0.0.0-test.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@esm-bundle/chai": "^4.3.4-fix.0",
|
|
43
|
+
"@web/dev-server-esbuild": "^0.3.6",
|
|
44
|
+
"@web/test-runner": "^0.18.1",
|
|
45
|
+
"@web/test-runner-playwright": "^0.11.0",
|
|
46
|
+
"eslint": "^8.57.0",
|
|
47
|
+
"mocha": "^10.2.0"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export function abiEncode(abi: Abi, inputs: InputMap, return_value?: InputValue | null): WitnessMap;
|
|
4
|
+
export function abiDecode(abi: Abi, witness_map: WitnessMap): any;
|
|
5
|
+
export function serializeWitness(witness_map: WitnessMap): Uint8Array;
|
|
6
|
+
export function abiDecodeError(abi: Abi, raw_error: RawAssertionPayload): any;
|
|
7
|
+
|
|
8
|
+
export type ABIError = Error;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
import { Field, InputValue, InputMap, Visibility, Sign, AbiType, AbiParameter, Abi, WitnessMap, RawAssertionPayload } from "@noir-lang/types";
|
|
13
|
+
export { Field, InputValue, InputMap, Visibility, Sign, AbiType, AbiParameter, Abi, WitnessMap, RawAssertionPayload } from "@noir-lang/types";
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
18
|
+
|
|
19
|
+
export interface InitOutput {
|
|
20
|
+
readonly memory: WebAssembly.Memory;
|
|
21
|
+
readonly abiEncode: (a: any, b: any, c: number) => [number, number, number];
|
|
22
|
+
readonly abiDecode: (a: any, b: any) => [number, number, number];
|
|
23
|
+
readonly serializeWitness: (a: any) => [number, number, number, number];
|
|
24
|
+
readonly abiDecodeError: (a: any, b: any) => [number, number, number];
|
|
25
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
26
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
27
|
+
readonly __externref_table_alloc: () => number;
|
|
28
|
+
readonly __wbindgen_export_3: WebAssembly.Table;
|
|
29
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
30
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
31
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
32
|
+
readonly closure155_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
33
|
+
readonly __wbindgen_start: () => void;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
37
|
+
/**
|
|
38
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
39
|
+
* a precompiled `WebAssembly.Module`.
|
|
40
|
+
*
|
|
41
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
42
|
+
*
|
|
43
|
+
* @returns {InitOutput}
|
|
44
|
+
*/
|
|
45
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
49
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
50
|
+
*
|
|
51
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
52
|
+
*
|
|
53
|
+
* @returns {Promise<InitOutput>}
|
|
54
|
+
*/
|
|
55
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
let wasm;
|
|
2
|
+
|
|
3
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
4
|
+
|
|
5
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
6
|
+
|
|
7
|
+
let cachedUint8ArrayMemory0 = null;
|
|
8
|
+
|
|
9
|
+
function getUint8ArrayMemory0() {
|
|
10
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
11
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
12
|
+
}
|
|
13
|
+
return cachedUint8ArrayMemory0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function getStringFromWasm0(ptr, len) {
|
|
17
|
+
ptr = ptr >>> 0;
|
|
18
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function addToExternrefTable0(obj) {
|
|
22
|
+
const idx = wasm.__externref_table_alloc();
|
|
23
|
+
wasm.__wbindgen_export_3.set(idx, obj);
|
|
24
|
+
return idx;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function handleError(f, args) {
|
|
28
|
+
try {
|
|
29
|
+
return f.apply(this, args);
|
|
30
|
+
} catch (e) {
|
|
31
|
+
const idx = addToExternrefTable0(e);
|
|
32
|
+
wasm.__wbindgen_exn_store(idx);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
let WASM_VECTOR_LEN = 0;
|
|
37
|
+
|
|
38
|
+
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
39
|
+
|
|
40
|
+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
41
|
+
? function (arg, view) {
|
|
42
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
43
|
+
}
|
|
44
|
+
: function (arg, view) {
|
|
45
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
46
|
+
view.set(buf);
|
|
47
|
+
return {
|
|
48
|
+
read: arg.length,
|
|
49
|
+
written: buf.length
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
54
|
+
|
|
55
|
+
if (realloc === undefined) {
|
|
56
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
57
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
58
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
59
|
+
WASM_VECTOR_LEN = buf.length;
|
|
60
|
+
return ptr;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
let len = arg.length;
|
|
64
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
65
|
+
|
|
66
|
+
const mem = getUint8ArrayMemory0();
|
|
67
|
+
|
|
68
|
+
let offset = 0;
|
|
69
|
+
|
|
70
|
+
for (; offset < len; offset++) {
|
|
71
|
+
const code = arg.charCodeAt(offset);
|
|
72
|
+
if (code > 0x7F) break;
|
|
73
|
+
mem[ptr + offset] = code;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (offset !== len) {
|
|
77
|
+
if (offset !== 0) {
|
|
78
|
+
arg = arg.slice(offset);
|
|
79
|
+
}
|
|
80
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
81
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
82
|
+
const ret = encodeString(arg, view);
|
|
83
|
+
|
|
84
|
+
offset += ret.written;
|
|
85
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
WASM_VECTOR_LEN = offset;
|
|
89
|
+
return ptr;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
let cachedDataViewMemory0 = null;
|
|
93
|
+
|
|
94
|
+
function getDataViewMemory0() {
|
|
95
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
96
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
97
|
+
}
|
|
98
|
+
return cachedDataViewMemory0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function isLikeNone(x) {
|
|
102
|
+
return x === undefined || x === null;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function takeFromExternrefTable0(idx) {
|
|
106
|
+
const value = wasm.__wbindgen_export_3.get(idx);
|
|
107
|
+
wasm.__externref_table_dealloc(idx);
|
|
108
|
+
return value;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* @param {Abi} abi
|
|
112
|
+
* @param {InputMap} inputs
|
|
113
|
+
* @param {InputValue | null} [return_value]
|
|
114
|
+
* @returns {WitnessMap}
|
|
115
|
+
*/
|
|
116
|
+
export function abiEncode(abi, inputs, return_value) {
|
|
117
|
+
const ret = wasm.abiEncode(abi, inputs, isLikeNone(return_value) ? 0 : addToExternrefTable0(return_value));
|
|
118
|
+
if (ret[2]) {
|
|
119
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
120
|
+
}
|
|
121
|
+
return takeFromExternrefTable0(ret[0]);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @param {Abi} abi
|
|
126
|
+
* @param {WitnessMap} witness_map
|
|
127
|
+
* @returns {any}
|
|
128
|
+
*/
|
|
129
|
+
export function abiDecode(abi, witness_map) {
|
|
130
|
+
const ret = wasm.abiDecode(abi, witness_map);
|
|
131
|
+
if (ret[2]) {
|
|
132
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
133
|
+
}
|
|
134
|
+
return takeFromExternrefTable0(ret[0]);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
138
|
+
ptr = ptr >>> 0;
|
|
139
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* @param {WitnessMap} witness_map
|
|
143
|
+
* @returns {Uint8Array}
|
|
144
|
+
*/
|
|
145
|
+
export function serializeWitness(witness_map) {
|
|
146
|
+
const ret = wasm.serializeWitness(witness_map);
|
|
147
|
+
if (ret[3]) {
|
|
148
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
149
|
+
}
|
|
150
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
151
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
152
|
+
return v1;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @param {Abi} abi
|
|
157
|
+
* @param {RawAssertionPayload} raw_error
|
|
158
|
+
* @returns {any}
|
|
159
|
+
*/
|
|
160
|
+
export function abiDecodeError(abi, raw_error) {
|
|
161
|
+
const ret = wasm.abiDecodeError(abi, raw_error);
|
|
162
|
+
if (ret[2]) {
|
|
163
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
164
|
+
}
|
|
165
|
+
return takeFromExternrefTable0(ret[0]);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function __wbg_adapter_30(arg0, arg1, arg2, arg3) {
|
|
169
|
+
wasm.closure155_externref_shim(arg0, arg1, arg2, arg3);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
async function __wbg_load(module, imports) {
|
|
173
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
174
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
175
|
+
try {
|
|
176
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
177
|
+
|
|
178
|
+
} catch (e) {
|
|
179
|
+
if (module.headers.get('Content-Type') != 'application/wasm') {
|
|
180
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
181
|
+
|
|
182
|
+
} else {
|
|
183
|
+
throw e;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
const bytes = await module.arrayBuffer();
|
|
189
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
190
|
+
|
|
191
|
+
} else {
|
|
192
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
193
|
+
|
|
194
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
195
|
+
return { instance, module };
|
|
196
|
+
|
|
197
|
+
} else {
|
|
198
|
+
return instance;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
function __wbg_get_imports() {
|
|
204
|
+
const imports = {};
|
|
205
|
+
imports.wbg = {};
|
|
206
|
+
imports.wbg.__wbg_constructor_bc5e3569b1bc20f1 = function(arg0) {
|
|
207
|
+
const ret = new Error(arg0);
|
|
208
|
+
return ret;
|
|
209
|
+
};
|
|
210
|
+
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
211
|
+
let deferred0_0;
|
|
212
|
+
let deferred0_1;
|
|
213
|
+
try {
|
|
214
|
+
deferred0_0 = arg0;
|
|
215
|
+
deferred0_1 = arg1;
|
|
216
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
217
|
+
} finally {
|
|
218
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
imports.wbg.__wbg_forEach_e1cf6f7c8ecb7dae = function(arg0, arg1, arg2) {
|
|
222
|
+
try {
|
|
223
|
+
var state0 = {a: arg1, b: arg2};
|
|
224
|
+
var cb0 = (arg0, arg1) => {
|
|
225
|
+
const a = state0.a;
|
|
226
|
+
state0.a = 0;
|
|
227
|
+
try {
|
|
228
|
+
return __wbg_adapter_30(a, state0.b, arg0, arg1);
|
|
229
|
+
} finally {
|
|
230
|
+
state0.a = a;
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
arg0.forEach(cb0);
|
|
234
|
+
} finally {
|
|
235
|
+
state0.a = state0.b = 0;
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
imports.wbg.__wbg_new_0b7dab710d4e469e = function() {
|
|
239
|
+
const ret = new Map();
|
|
240
|
+
return ret;
|
|
241
|
+
};
|
|
242
|
+
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
243
|
+
const ret = new Error();
|
|
244
|
+
return ret;
|
|
245
|
+
};
|
|
246
|
+
imports.wbg.__wbg_parse_def2e24ef1252aff = function() { return handleError(function (arg0, arg1) {
|
|
247
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
248
|
+
return ret;
|
|
249
|
+
}, arguments) };
|
|
250
|
+
imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
|
|
251
|
+
const ret = arg0.set(arg1, arg2);
|
|
252
|
+
return ret;
|
|
253
|
+
};
|
|
254
|
+
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
255
|
+
const ret = arg1.stack;
|
|
256
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
257
|
+
const len1 = WASM_VECTOR_LEN;
|
|
258
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
259
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
260
|
+
};
|
|
261
|
+
imports.wbg.__wbg_stringify_f7ed6987935b4a24 = function() { return handleError(function (arg0) {
|
|
262
|
+
const ret = JSON.stringify(arg0);
|
|
263
|
+
return ret;
|
|
264
|
+
}, arguments) };
|
|
265
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
266
|
+
const table = wasm.__wbindgen_export_3;
|
|
267
|
+
const offset = table.grow(4);
|
|
268
|
+
table.set(0, undefined);
|
|
269
|
+
table.set(offset + 0, undefined);
|
|
270
|
+
table.set(offset + 1, null);
|
|
271
|
+
table.set(offset + 2, true);
|
|
272
|
+
table.set(offset + 3, false);
|
|
273
|
+
;
|
|
274
|
+
};
|
|
275
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
276
|
+
const ret = arg0 === undefined;
|
|
277
|
+
return ret;
|
|
278
|
+
};
|
|
279
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
280
|
+
const obj = arg1;
|
|
281
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
282
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
283
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
284
|
+
};
|
|
285
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
286
|
+
const ret = arg0;
|
|
287
|
+
return ret;
|
|
288
|
+
};
|
|
289
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
290
|
+
const obj = arg1;
|
|
291
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
292
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
293
|
+
var len1 = WASM_VECTOR_LEN;
|
|
294
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
295
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
296
|
+
};
|
|
297
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
298
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
299
|
+
return ret;
|
|
300
|
+
};
|
|
301
|
+
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
302
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
return imports;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
function __wbg_init_memory(imports, memory) {
|
|
309
|
+
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
function __wbg_finalize_init(instance, module) {
|
|
313
|
+
wasm = instance.exports;
|
|
314
|
+
__wbg_init.__wbindgen_wasm_module = module;
|
|
315
|
+
cachedDataViewMemory0 = null;
|
|
316
|
+
cachedUint8ArrayMemory0 = null;
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
wasm.__wbindgen_start();
|
|
320
|
+
return wasm;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
function initSync(module) {
|
|
324
|
+
if (wasm !== undefined) return wasm;
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
if (typeof module !== 'undefined') {
|
|
328
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
329
|
+
({module} = module)
|
|
330
|
+
} else {
|
|
331
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
const imports = __wbg_get_imports();
|
|
336
|
+
|
|
337
|
+
__wbg_init_memory(imports);
|
|
338
|
+
|
|
339
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
340
|
+
module = new WebAssembly.Module(module);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
344
|
+
|
|
345
|
+
return __wbg_finalize_init(instance, module);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
async function __wbg_init(module_or_path) {
|
|
349
|
+
if (wasm !== undefined) return wasm;
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
if (typeof module_or_path !== 'undefined') {
|
|
353
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
354
|
+
({module_or_path} = module_or_path)
|
|
355
|
+
} else {
|
|
356
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
if (typeof module_or_path === 'undefined') {
|
|
361
|
+
module_or_path = new URL('noirc_abi_wasm_bg.wasm', import.meta.url);
|
|
362
|
+
}
|
|
363
|
+
const imports = __wbg_get_imports();
|
|
364
|
+
|
|
365
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
366
|
+
module_or_path = fetch(module_or_path);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
__wbg_init_memory(imports);
|
|
370
|
+
|
|
371
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
372
|
+
|
|
373
|
+
return __wbg_finalize_init(instance, module);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export { initSync };
|
|
377
|
+
export default __wbg_init;
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const abiEncode: (a: any, b: any, c: number) => [number, number, number];
|
|
5
|
+
export const abiDecode: (a: any, b: any) => [number, number, number];
|
|
6
|
+
export const serializeWitness: (a: any) => [number, number, number, number];
|
|
7
|
+
export const abiDecodeError: (a: any, b: any) => [number, number, number];
|
|
8
|
+
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
9
|
+
export const __wbindgen_exn_store: (a: number) => void;
|
|
10
|
+
export const __externref_table_alloc: () => number;
|
|
11
|
+
export const __wbindgen_export_3: WebAssembly.Table;
|
|
12
|
+
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
13
|
+
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
14
|
+
export const __externref_table_dealloc: (a: number) => void;
|
|
15
|
+
export const closure155_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
16
|
+
export const __wbindgen_start: () => void;
|