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