@cartridge/controller-wasm 0.3.18 → 0.7.14-0df5a4c
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/package.json +1 -1
- package/pkg-controller/account_wasm.d.ts +134 -144
- package/pkg-controller/account_wasm_bg.js +556 -606
- package/pkg-controller/account_wasm_bg.wasm +0 -0
- package/pkg-session/session_wasm.d.ts +87 -82
- package/pkg-session/session_wasm_bg.js +362 -376
- package/pkg-session/session_wasm_bg.wasm +0 -0
|
@@ -5,43 +5,6 @@ export function __wbg_set_wasm(val) {
|
|
|
5
5
|
wasm = val;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
let cachedUint8ArrayMemory0 = null;
|
|
10
|
-
|
|
11
|
-
function getUint8ArrayMemory0() {
|
|
12
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
13
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
14
|
-
}
|
|
15
|
-
return cachedUint8ArrayMemory0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
19
|
-
|
|
20
|
-
cachedTextDecoder.decode();
|
|
21
|
-
|
|
22
|
-
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
23
|
-
let numBytesDecoded = 0;
|
|
24
|
-
function decodeText(ptr, len) {
|
|
25
|
-
numBytesDecoded += len;
|
|
26
|
-
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
27
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
28
|
-
cachedTextDecoder.decode();
|
|
29
|
-
numBytesDecoded = len;
|
|
30
|
-
}
|
|
31
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function getStringFromWasm0(ptr, len) {
|
|
35
|
-
ptr = ptr >>> 0;
|
|
36
|
-
return decodeText(ptr, len);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
let heap = new Array(128).fill(undefined);
|
|
40
|
-
|
|
41
|
-
heap.push(undefined, null, true, false);
|
|
42
|
-
|
|
43
|
-
let heap_next = heap.length;
|
|
44
|
-
|
|
45
8
|
function addHeapObject(obj) {
|
|
46
9
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
47
10
|
const idx = heap_next;
|
|
@@ -51,74 +14,9 @@ function addHeapObject(obj) {
|
|
|
51
14
|
return idx;
|
|
52
15
|
}
|
|
53
16
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
const cachedTextEncoder = new TextEncoder();
|
|
59
|
-
|
|
60
|
-
if (!('encodeInto' in cachedTextEncoder)) {
|
|
61
|
-
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
62
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
63
|
-
view.set(buf);
|
|
64
|
-
return {
|
|
65
|
-
read: arg.length,
|
|
66
|
-
written: buf.length
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
72
|
-
|
|
73
|
-
if (realloc === undefined) {
|
|
74
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
75
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
76
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
77
|
-
WASM_VECTOR_LEN = buf.length;
|
|
78
|
-
return ptr;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
let len = arg.length;
|
|
82
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
83
|
-
|
|
84
|
-
const mem = getUint8ArrayMemory0();
|
|
85
|
-
|
|
86
|
-
let offset = 0;
|
|
87
|
-
|
|
88
|
-
for (; offset < len; offset++) {
|
|
89
|
-
const code = arg.charCodeAt(offset);
|
|
90
|
-
if (code > 0x7F) break;
|
|
91
|
-
mem[ptr + offset] = code;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
if (offset !== len) {
|
|
95
|
-
if (offset !== 0) {
|
|
96
|
-
arg = arg.slice(offset);
|
|
97
|
-
}
|
|
98
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
99
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
100
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
101
|
-
|
|
102
|
-
offset += ret.written;
|
|
103
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
WASM_VECTOR_LEN = offset;
|
|
107
|
-
return ptr;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
let cachedDataViewMemory0 = null;
|
|
111
|
-
|
|
112
|
-
function getDataViewMemory0() {
|
|
113
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
114
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
115
|
-
}
|
|
116
|
-
return cachedDataViewMemory0;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
function isLikeNone(x) {
|
|
120
|
-
return x === undefined || x === null;
|
|
121
|
-
}
|
|
17
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
18
|
+
? { register: () => {}, unregister: () => {} }
|
|
19
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
122
20
|
|
|
123
21
|
function debugString(val) {
|
|
124
22
|
// primitive types
|
|
@@ -185,34 +83,56 @@ function debugString(val) {
|
|
|
185
83
|
return className;
|
|
186
84
|
}
|
|
187
85
|
|
|
188
|
-
function handleError(f, args) {
|
|
189
|
-
try {
|
|
190
|
-
return f.apply(this, args);
|
|
191
|
-
} catch (e) {
|
|
192
|
-
wasm.__wbindgen_export3(addHeapObject(e));
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
86
|
function dropObject(idx) {
|
|
197
87
|
if (idx < 132) return;
|
|
198
88
|
heap[idx] = heap_next;
|
|
199
89
|
heap_next = idx;
|
|
200
90
|
}
|
|
201
91
|
|
|
202
|
-
function takeObject(idx) {
|
|
203
|
-
const ret = getObject(idx);
|
|
204
|
-
dropObject(idx);
|
|
205
|
-
return ret;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
92
|
function getArrayU8FromWasm0(ptr, len) {
|
|
209
93
|
ptr = ptr >>> 0;
|
|
210
94
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
211
95
|
}
|
|
212
96
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
97
|
+
let cachedDataViewMemory0 = null;
|
|
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 getStringFromWasm0(ptr, len) {
|
|
106
|
+
ptr = ptr >>> 0;
|
|
107
|
+
return decodeText(ptr, len);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
let cachedUint8ArrayMemory0 = null;
|
|
111
|
+
function getUint8ArrayMemory0() {
|
|
112
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
113
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
114
|
+
}
|
|
115
|
+
return cachedUint8ArrayMemory0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function getObject(idx) { return heap[idx]; }
|
|
119
|
+
|
|
120
|
+
function handleError(f, args) {
|
|
121
|
+
try {
|
|
122
|
+
return f.apply(this, args);
|
|
123
|
+
} catch (e) {
|
|
124
|
+
wasm.__wbindgen_export3(addHeapObject(e));
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
let heap = new Array(128).fill(undefined);
|
|
129
|
+
heap.push(undefined, null, true, false);
|
|
130
|
+
|
|
131
|
+
let heap_next = heap.length;
|
|
132
|
+
|
|
133
|
+
function isLikeNone(x) {
|
|
134
|
+
return x === undefined || x === null;
|
|
135
|
+
}
|
|
216
136
|
|
|
217
137
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
218
138
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
@@ -251,131 +171,90 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
251
171
|
WASM_VECTOR_LEN = array.length;
|
|
252
172
|
return ptr;
|
|
253
173
|
}
|
|
254
|
-
/**
|
|
255
|
-
* Subscribes to the creation of a session for a given controller, session_key_guid and cartridge api url.
|
|
256
|
-
* The goal of this function is to know from any place when the register session flow has been completed, and to
|
|
257
|
-
* get the authorization.
|
|
258
|
-
* @param {JsFelt} session_key_guid
|
|
259
|
-
* @param {string} cartridge_api_url
|
|
260
|
-
* @returns {Promise<JsSubscribeSessionResult>}
|
|
261
|
-
*/
|
|
262
|
-
export function subscribeCreateSession(session_key_guid, cartridge_api_url) {
|
|
263
|
-
const ptr0 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
264
|
-
const len0 = WASM_VECTOR_LEN;
|
|
265
|
-
const ret = wasm.subscribeCreateSession(addHeapObject(session_key_guid), ptr0, len0);
|
|
266
|
-
return takeObject(ret);
|
|
267
|
-
}
|
|
268
174
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
wasm.signerToGuid(retptr, addHeapObject(signer));
|
|
277
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
278
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
279
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
280
|
-
if (r2) {
|
|
281
|
-
throw takeObject(r1);
|
|
282
|
-
}
|
|
283
|
-
return takeObject(r0);
|
|
284
|
-
} finally {
|
|
285
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
175
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
176
|
+
if (realloc === undefined) {
|
|
177
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
178
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
179
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
180
|
+
WASM_VECTOR_LEN = buf.length;
|
|
181
|
+
return ptr;
|
|
286
182
|
}
|
|
287
|
-
}
|
|
288
183
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
function __wasm_bindgen_func_elem_3924(arg0, arg1) {
|
|
294
|
-
wasm.__wasm_bindgen_func_elem_3924(arg0, arg1);
|
|
295
|
-
}
|
|
184
|
+
let len = arg.length;
|
|
185
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
296
186
|
|
|
297
|
-
|
|
298
|
-
wasm.__wasm_bindgen_func_elem_5876(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
299
|
-
}
|
|
187
|
+
const mem = getUint8ArrayMemory0();
|
|
300
188
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
TransactionTimeout: 139, "139": "TransactionTimeout",
|
|
371
|
-
ConversionError: 140, "140": "ConversionError",
|
|
372
|
-
InvalidChainId: 141, "141": "InvalidChainId",
|
|
373
|
-
SessionRefreshRequired: 142, "142": "SessionRefreshRequired",
|
|
374
|
-
ManualExecutionRequired: 143, "143": "ManualExecutionRequired",
|
|
375
|
-
ForbiddenEntrypoint: 144, "144": "ForbiddenEntrypoint",
|
|
376
|
-
GasAmountTooHigh: 145, "145": "GasAmountTooHigh",
|
|
377
|
-
ApproveExecutionRequired: 146, "146": "ApproveExecutionRequired",
|
|
378
|
-
});
|
|
189
|
+
let offset = 0;
|
|
190
|
+
|
|
191
|
+
for (; offset < len; offset++) {
|
|
192
|
+
const code = arg.charCodeAt(offset);
|
|
193
|
+
if (code > 0x7F) break;
|
|
194
|
+
mem[ptr + offset] = code;
|
|
195
|
+
}
|
|
196
|
+
if (offset !== len) {
|
|
197
|
+
if (offset !== 0) {
|
|
198
|
+
arg = arg.slice(offset);
|
|
199
|
+
}
|
|
200
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
201
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
202
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
203
|
+
|
|
204
|
+
offset += ret.written;
|
|
205
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
WASM_VECTOR_LEN = offset;
|
|
209
|
+
return ptr;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
function takeObject(idx) {
|
|
213
|
+
const ret = getObject(idx);
|
|
214
|
+
dropObject(idx);
|
|
215
|
+
return ret;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
219
|
+
cachedTextDecoder.decode();
|
|
220
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
221
|
+
let numBytesDecoded = 0;
|
|
222
|
+
function decodeText(ptr, len) {
|
|
223
|
+
numBytesDecoded += len;
|
|
224
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
225
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
226
|
+
cachedTextDecoder.decode();
|
|
227
|
+
numBytesDecoded = len;
|
|
228
|
+
}
|
|
229
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
const cachedTextEncoder = new TextEncoder();
|
|
233
|
+
|
|
234
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
235
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
236
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
237
|
+
view.set(buf);
|
|
238
|
+
return {
|
|
239
|
+
read: arg.length,
|
|
240
|
+
written: buf.length
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
let WASM_VECTOR_LEN = 0;
|
|
246
|
+
|
|
247
|
+
function __wasm_bindgen_func_elem_3935(arg0, arg1) {
|
|
248
|
+
wasm.__wasm_bindgen_func_elem_3935(arg0, arg1);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
function __wasm_bindgen_func_elem_4078(arg0, arg1, arg2) {
|
|
252
|
+
wasm.__wasm_bindgen_func_elem_4078(arg0, arg1, addHeapObject(arg2));
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
function __wasm_bindgen_func_elem_5869(arg0, arg1, arg2, arg3) {
|
|
256
|
+
wasm.__wasm_bindgen_func_elem_5869(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
257
|
+
}
|
|
379
258
|
|
|
380
259
|
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
381
260
|
|
|
@@ -387,8 +266,11 @@ const CartridgeSessionAccountFinalization = (typeof FinalizationRegistry === 'un
|
|
|
387
266
|
? { register: () => {}, unregister: () => {} }
|
|
388
267
|
: new FinalizationRegistry(ptr => wasm.__wbg_cartridgesessionaccount_free(ptr >>> 0, 1));
|
|
389
268
|
|
|
390
|
-
|
|
269
|
+
const JsControllerErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
270
|
+
? { register: () => {}, unregister: () => {} }
|
|
271
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_jscontrollererror_free(ptr >>> 0, 1));
|
|
391
272
|
|
|
273
|
+
export class CartridgeSessionAccount {
|
|
392
274
|
static __wrap(ptr) {
|
|
393
275
|
ptr = ptr >>> 0;
|
|
394
276
|
const obj = Object.create(CartridgeSessionAccount.prototype);
|
|
@@ -396,14 +278,12 @@ export class CartridgeSessionAccount {
|
|
|
396
278
|
CartridgeSessionAccountFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
397
279
|
return obj;
|
|
398
280
|
}
|
|
399
|
-
|
|
400
281
|
__destroy_into_raw() {
|
|
401
282
|
const ptr = this.__wbg_ptr;
|
|
402
283
|
this.__wbg_ptr = 0;
|
|
403
284
|
CartridgeSessionAccountFinalization.unregister(this);
|
|
404
285
|
return ptr;
|
|
405
286
|
}
|
|
406
|
-
|
|
407
287
|
free() {
|
|
408
288
|
const ptr = this.__destroy_into_raw();
|
|
409
289
|
wasm.__wbg_cartridgesessionaccount_free(ptr, 0);
|
|
@@ -496,12 +376,86 @@ export class CartridgeSessionAccount {
|
|
|
496
376
|
}
|
|
497
377
|
if (Symbol.dispose) CartridgeSessionAccount.prototype[Symbol.dispose] = CartridgeSessionAccount.prototype.free;
|
|
498
378
|
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
379
|
+
/**
|
|
380
|
+
* @enum {1 | 20 | 24 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 40 | 41 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 10 | 64 | 65 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146}
|
|
381
|
+
*/
|
|
382
|
+
export const ErrorCode = Object.freeze({
|
|
383
|
+
StarknetFailedToReceiveTransaction: 1, "1": "StarknetFailedToReceiveTransaction",
|
|
384
|
+
StarknetContractNotFound: 20, "20": "StarknetContractNotFound",
|
|
385
|
+
StarknetBlockNotFound: 24, "24": "StarknetBlockNotFound",
|
|
386
|
+
StarknetInvalidTransactionIndex: 27, "27": "StarknetInvalidTransactionIndex",
|
|
387
|
+
StarknetClassHashNotFound: 28, "28": "StarknetClassHashNotFound",
|
|
388
|
+
StarknetTransactionHashNotFound: 29, "29": "StarknetTransactionHashNotFound",
|
|
389
|
+
StarknetPageSizeTooBig: 31, "31": "StarknetPageSizeTooBig",
|
|
390
|
+
StarknetNoBlocks: 32, "32": "StarknetNoBlocks",
|
|
391
|
+
StarknetInvalidContinuationToken: 33, "33": "StarknetInvalidContinuationToken",
|
|
392
|
+
StarknetTooManyKeysInFilter: 34, "34": "StarknetTooManyKeysInFilter",
|
|
393
|
+
StarknetContractError: 40, "40": "StarknetContractError",
|
|
394
|
+
StarknetTransactionExecutionError: 41, "41": "StarknetTransactionExecutionError",
|
|
395
|
+
StarknetClassAlreadyDeclared: 51, "51": "StarknetClassAlreadyDeclared",
|
|
396
|
+
StarknetInvalidTransactionNonce: 52, "52": "StarknetInvalidTransactionNonce",
|
|
397
|
+
StarknetInsufficientMaxFee: 53, "53": "StarknetInsufficientMaxFee",
|
|
398
|
+
StarknetInsufficientAccountBalance: 54, "54": "StarknetInsufficientAccountBalance",
|
|
399
|
+
StarknetValidationFailure: 55, "55": "StarknetValidationFailure",
|
|
400
|
+
StarknetCompilationFailed: 56, "56": "StarknetCompilationFailed",
|
|
401
|
+
StarknetContractClassSizeIsTooLarge: 57, "57": "StarknetContractClassSizeIsTooLarge",
|
|
402
|
+
StarknetNonAccount: 58, "58": "StarknetNonAccount",
|
|
403
|
+
StarknetDuplicateTx: 59, "59": "StarknetDuplicateTx",
|
|
404
|
+
StarknetCompiledClassHashMismatch: 60, "60": "StarknetCompiledClassHashMismatch",
|
|
405
|
+
StarknetUnsupportedTxVersion: 61, "61": "StarknetUnsupportedTxVersion",
|
|
406
|
+
StarknetUnsupportedContractClassVersion: 62, "62": "StarknetUnsupportedContractClassVersion",
|
|
407
|
+
StarknetUnexpectedError: 63, "63": "StarknetUnexpectedError",
|
|
408
|
+
StarknetNoTraceAvailable: 10, "10": "StarknetNoTraceAvailable",
|
|
409
|
+
StarknetReplacementTransactionUnderpriced: 64, "64": "StarknetReplacementTransactionUnderpriced",
|
|
410
|
+
StarknetFeeBelowMinimum: 65, "65": "StarknetFeeBelowMinimum",
|
|
411
|
+
SignError: 101, "101": "SignError",
|
|
412
|
+
StorageError: 102, "102": "StorageError",
|
|
413
|
+
AccountFactoryError: 103, "103": "AccountFactoryError",
|
|
414
|
+
PaymasterExecutionTimeNotReached: 104, "104": "PaymasterExecutionTimeNotReached",
|
|
415
|
+
PaymasterExecutionTimePassed: 105, "105": "PaymasterExecutionTimePassed",
|
|
416
|
+
PaymasterInvalidCaller: 106, "106": "PaymasterInvalidCaller",
|
|
417
|
+
PaymasterRateLimitExceeded: 107, "107": "PaymasterRateLimitExceeded",
|
|
418
|
+
PaymasterNotSupported: 108, "108": "PaymasterNotSupported",
|
|
419
|
+
PaymasterHttp: 109, "109": "PaymasterHttp",
|
|
420
|
+
PaymasterExcecution: 110, "110": "PaymasterExcecution",
|
|
421
|
+
PaymasterSerialization: 111, "111": "PaymasterSerialization",
|
|
422
|
+
CartridgeControllerNotDeployed: 112, "112": "CartridgeControllerNotDeployed",
|
|
423
|
+
InsufficientBalance: 113, "113": "InsufficientBalance",
|
|
424
|
+
OriginError: 114, "114": "OriginError",
|
|
425
|
+
EncodingError: 115, "115": "EncodingError",
|
|
426
|
+
SerdeWasmBindgenError: 116, "116": "SerdeWasmBindgenError",
|
|
427
|
+
CairoSerdeError: 117, "117": "CairoSerdeError",
|
|
428
|
+
CairoShortStringToFeltError: 118, "118": "CairoShortStringToFeltError",
|
|
429
|
+
DeviceCreateCredential: 119, "119": "DeviceCreateCredential",
|
|
430
|
+
DeviceGetAssertion: 120, "120": "DeviceGetAssertion",
|
|
431
|
+
DeviceBadAssertion: 121, "121": "DeviceBadAssertion",
|
|
432
|
+
DeviceChannel: 122, "122": "DeviceChannel",
|
|
433
|
+
DeviceOrigin: 123, "123": "DeviceOrigin",
|
|
434
|
+
AccountSigning: 124, "124": "AccountSigning",
|
|
435
|
+
AccountProvider: 125, "125": "AccountProvider",
|
|
436
|
+
AccountClassHashCalculation: 126, "126": "AccountClassHashCalculation",
|
|
437
|
+
AccountFeeOutOfRange: 128, "128": "AccountFeeOutOfRange",
|
|
438
|
+
ProviderRateLimited: 129, "129": "ProviderRateLimited",
|
|
439
|
+
ProviderArrayLengthMismatch: 130, "130": "ProviderArrayLengthMismatch",
|
|
440
|
+
ProviderOther: 131, "131": "ProviderOther",
|
|
441
|
+
SessionAlreadyRegistered: 132, "132": "SessionAlreadyRegistered",
|
|
442
|
+
UrlParseError: 133, "133": "UrlParseError",
|
|
443
|
+
Base64DecodeError: 134, "134": "Base64DecodeError",
|
|
444
|
+
CoseError: 135, "135": "CoseError",
|
|
445
|
+
PolicyChainIdMismatch: 136, "136": "PolicyChainIdMismatch",
|
|
446
|
+
InvalidOwner: 137, "137": "InvalidOwner",
|
|
447
|
+
GasPriceTooHigh: 138, "138": "GasPriceTooHigh",
|
|
448
|
+
TransactionTimeout: 139, "139": "TransactionTimeout",
|
|
449
|
+
ConversionError: 140, "140": "ConversionError",
|
|
450
|
+
InvalidChainId: 141, "141": "InvalidChainId",
|
|
451
|
+
SessionRefreshRequired: 142, "142": "SessionRefreshRequired",
|
|
452
|
+
ManualExecutionRequired: 143, "143": "ManualExecutionRequired",
|
|
453
|
+
ForbiddenEntrypoint: 144, "144": "ForbiddenEntrypoint",
|
|
454
|
+
GasAmountTooHigh: 145, "145": "GasAmountTooHigh",
|
|
455
|
+
ApproveExecutionRequired: 146, "146": "ApproveExecutionRequired",
|
|
456
|
+
});
|
|
502
457
|
|
|
503
458
|
export class JsControllerError {
|
|
504
|
-
|
|
505
459
|
static __wrap(ptr) {
|
|
506
460
|
ptr = ptr >>> 0;
|
|
507
461
|
const obj = Object.create(JsControllerError.prototype);
|
|
@@ -509,14 +463,12 @@ export class JsControllerError {
|
|
|
509
463
|
JsControllerErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
510
464
|
return obj;
|
|
511
465
|
}
|
|
512
|
-
|
|
513
466
|
__destroy_into_raw() {
|
|
514
467
|
const ptr = this.__wbg_ptr;
|
|
515
468
|
this.__wbg_ptr = 0;
|
|
516
469
|
JsControllerErrorFinalization.unregister(this);
|
|
517
470
|
return ptr;
|
|
518
471
|
}
|
|
519
|
-
|
|
520
472
|
free() {
|
|
521
473
|
const ptr = this.__destroy_into_raw();
|
|
522
474
|
wasm.__wbg_jscontrollererror_free(ptr, 0);
|
|
@@ -591,7 +543,42 @@ export class JsControllerError {
|
|
|
591
543
|
}
|
|
592
544
|
if (Symbol.dispose) JsControllerError.prototype[Symbol.dispose] = JsControllerError.prototype.free;
|
|
593
545
|
|
|
594
|
-
|
|
546
|
+
/**
|
|
547
|
+
* @param {Signer} signer
|
|
548
|
+
* @returns {JsFelt}
|
|
549
|
+
*/
|
|
550
|
+
export function signerToGuid(signer) {
|
|
551
|
+
try {
|
|
552
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
553
|
+
wasm.signerToGuid(retptr, addHeapObject(signer));
|
|
554
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
555
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
556
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
557
|
+
if (r2) {
|
|
558
|
+
throw takeObject(r1);
|
|
559
|
+
}
|
|
560
|
+
return takeObject(r0);
|
|
561
|
+
} finally {
|
|
562
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Subscribes to the creation of a session for a given controller, session_key_guid and cartridge api url.
|
|
568
|
+
* The goal of this function is to know from any place when the register session flow has been completed, and to
|
|
569
|
+
* get the authorization.
|
|
570
|
+
* @param {JsFelt} session_key_guid
|
|
571
|
+
* @param {string} cartridge_api_url
|
|
572
|
+
* @returns {Promise<JsSubscribeSessionResult>}
|
|
573
|
+
*/
|
|
574
|
+
export function subscribeCreateSession(session_key_guid, cartridge_api_url) {
|
|
575
|
+
const ptr0 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
576
|
+
const len0 = WASM_VECTOR_LEN;
|
|
577
|
+
const ret = wasm.subscribeCreateSession(addHeapObject(session_key_guid), ptr0, len0);
|
|
578
|
+
return takeObject(ret);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
export function __wbg_Error_52673b7de5a0ca89(arg0, arg1) {
|
|
595
582
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
596
583
|
return addHeapObject(ret);
|
|
597
584
|
};
|
|
@@ -604,13 +591,13 @@ export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
|
604
591
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
605
592
|
};
|
|
606
593
|
|
|
607
|
-
export function
|
|
594
|
+
export function __wbg___wbindgen_boolean_get_dea25b33882b895b(arg0) {
|
|
608
595
|
const v = getObject(arg0);
|
|
609
596
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
610
597
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
611
598
|
};
|
|
612
599
|
|
|
613
|
-
export function
|
|
600
|
+
export function __wbg___wbindgen_debug_string_adfb662ae34724b6(arg0, arg1) {
|
|
614
601
|
const ret = debugString(getObject(arg1));
|
|
615
602
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
616
603
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -618,45 +605,45 @@ export function __wbg___wbindgen_debug_string_df47ffb5e35e6763(arg0, arg1) {
|
|
|
618
605
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
619
606
|
};
|
|
620
607
|
|
|
621
|
-
export function
|
|
608
|
+
export function __wbg___wbindgen_in_0d3e1e8f0c669317(arg0, arg1) {
|
|
622
609
|
const ret = getObject(arg0) in getObject(arg1);
|
|
623
610
|
return ret;
|
|
624
611
|
};
|
|
625
612
|
|
|
626
|
-
export function
|
|
613
|
+
export function __wbg___wbindgen_is_function_8d400b8b1af978cd(arg0) {
|
|
627
614
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
628
615
|
return ret;
|
|
629
616
|
};
|
|
630
617
|
|
|
631
|
-
export function
|
|
618
|
+
export function __wbg___wbindgen_is_object_ce774f3490692386(arg0) {
|
|
632
619
|
const val = getObject(arg0);
|
|
633
620
|
const ret = typeof(val) === 'object' && val !== null;
|
|
634
621
|
return ret;
|
|
635
622
|
};
|
|
636
623
|
|
|
637
|
-
export function
|
|
624
|
+
export function __wbg___wbindgen_is_string_704ef9c8fc131030(arg0) {
|
|
638
625
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
639
626
|
return ret;
|
|
640
627
|
};
|
|
641
628
|
|
|
642
|
-
export function
|
|
629
|
+
export function __wbg___wbindgen_is_undefined_f6b95eab589e0269(arg0) {
|
|
643
630
|
const ret = getObject(arg0) === undefined;
|
|
644
631
|
return ret;
|
|
645
632
|
};
|
|
646
633
|
|
|
647
|
-
export function
|
|
634
|
+
export function __wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d(arg0, arg1) {
|
|
648
635
|
const ret = getObject(arg0) == getObject(arg1);
|
|
649
636
|
return ret;
|
|
650
637
|
};
|
|
651
638
|
|
|
652
|
-
export function
|
|
639
|
+
export function __wbg___wbindgen_number_get_9619185a74197f95(arg0, arg1) {
|
|
653
640
|
const obj = getObject(arg1);
|
|
654
641
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
655
642
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
656
643
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
657
644
|
};
|
|
658
645
|
|
|
659
|
-
export function
|
|
646
|
+
export function __wbg___wbindgen_string_get_a2a31e16edf96e42(arg0, arg1) {
|
|
660
647
|
const obj = getObject(arg1);
|
|
661
648
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
662
649
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -665,47 +652,47 @@ export function __wbg___wbindgen_string_get_e4f06c90489ad01b(arg0, arg1) {
|
|
|
665
652
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
666
653
|
};
|
|
667
654
|
|
|
668
|
-
export function
|
|
655
|
+
export function __wbg___wbindgen_throw_dd24417ed36fc46e(arg0, arg1) {
|
|
669
656
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
670
657
|
};
|
|
671
658
|
|
|
672
|
-
export function
|
|
659
|
+
export function __wbg__wbg_cb_unref_87dfb5aaa0cbcea7(arg0) {
|
|
673
660
|
getObject(arg0)._wbg_cb_unref();
|
|
674
661
|
};
|
|
675
662
|
|
|
676
|
-
export function
|
|
677
|
-
getObject(arg0).abort(
|
|
663
|
+
export function __wbg_abort_07646c894ebbf2bd(arg0) {
|
|
664
|
+
getObject(arg0).abort();
|
|
678
665
|
};
|
|
679
666
|
|
|
680
|
-
export function
|
|
681
|
-
getObject(arg0).abort();
|
|
667
|
+
export function __wbg_abort_399ecbcfd6ef3c8e(arg0, arg1) {
|
|
668
|
+
getObject(arg0).abort(getObject(arg1));
|
|
682
669
|
};
|
|
683
670
|
|
|
684
|
-
export function
|
|
671
|
+
export function __wbg_append_c5cbdf46455cc776() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
685
672
|
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
686
673
|
}, arguments) };
|
|
687
674
|
|
|
688
|
-
export function
|
|
675
|
+
export function __wbg_arrayBuffer_c04af4fce566092d() { return handleError(function (arg0) {
|
|
689
676
|
const ret = getObject(arg0).arrayBuffer();
|
|
690
677
|
return addHeapObject(ret);
|
|
691
678
|
}, arguments) };
|
|
692
679
|
|
|
693
|
-
export function
|
|
680
|
+
export function __wbg_call_3020136f7a2d6e44() { return handleError(function (arg0, arg1, arg2) {
|
|
694
681
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
695
682
|
return addHeapObject(ret);
|
|
696
683
|
}, arguments) };
|
|
697
684
|
|
|
698
|
-
export function
|
|
685
|
+
export function __wbg_call_abb4ff46ce38be40() { return handleError(function (arg0, arg1) {
|
|
699
686
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
700
687
|
return addHeapObject(ret);
|
|
701
688
|
}, arguments) };
|
|
702
689
|
|
|
703
|
-
export function
|
|
690
|
+
export function __wbg_clearTimeout_b716ecb44bea14ed(arg0) {
|
|
704
691
|
const ret = clearTimeout(takeObject(arg0));
|
|
705
692
|
return addHeapObject(ret);
|
|
706
693
|
};
|
|
707
694
|
|
|
708
|
-
export function
|
|
695
|
+
export function __wbg_credentials_36e0572b476d4883(arg0) {
|
|
709
696
|
const ret = getObject(arg0).credentials;
|
|
710
697
|
return addHeapObject(ret);
|
|
711
698
|
};
|
|
@@ -715,27 +702,27 @@ export function __wbg_crypto_574e78ad8b13b65f(arg0) {
|
|
|
715
702
|
return addHeapObject(ret);
|
|
716
703
|
};
|
|
717
704
|
|
|
718
|
-
export function
|
|
705
|
+
export function __wbg_done_62ea16af4ce34b24(arg0) {
|
|
719
706
|
const ret = getObject(arg0).done;
|
|
720
707
|
return ret;
|
|
721
708
|
};
|
|
722
709
|
|
|
723
|
-
export function
|
|
710
|
+
export function __wbg_fetch_7fb7602a1bf647ec(arg0) {
|
|
724
711
|
const ret = fetch(getObject(arg0));
|
|
725
712
|
return addHeapObject(ret);
|
|
726
713
|
};
|
|
727
714
|
|
|
728
|
-
export function
|
|
729
|
-
const ret = fetch(getObject(
|
|
715
|
+
export function __wbg_fetch_90447c28cc0b095e(arg0, arg1) {
|
|
716
|
+
const ret = getObject(arg0).fetch(getObject(arg1));
|
|
730
717
|
return addHeapObject(ret);
|
|
731
718
|
};
|
|
732
719
|
|
|
733
|
-
export function
|
|
734
|
-
const ret =
|
|
720
|
+
export function __wbg_fetch_f1856afdb49415d1(arg0) {
|
|
721
|
+
const ret = fetch(getObject(arg0));
|
|
735
722
|
return addHeapObject(ret);
|
|
736
723
|
};
|
|
737
724
|
|
|
738
|
-
export function
|
|
725
|
+
export function __wbg_getClientExtensionResults_8668622b21a5eef7(arg0) {
|
|
739
726
|
const ret = getObject(arg0).getClientExtensionResults();
|
|
740
727
|
return addHeapObject(ret);
|
|
741
728
|
};
|
|
@@ -744,17 +731,17 @@ export function __wbg_getRandomValues_b8f5dbd5f3995a9e() { return handleError(fu
|
|
|
744
731
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
745
732
|
}, arguments) };
|
|
746
733
|
|
|
747
|
-
export function
|
|
734
|
+
export function __wbg_getTime_ad1e9878a735af08(arg0) {
|
|
748
735
|
const ret = getObject(arg0).getTime();
|
|
749
736
|
return ret;
|
|
750
737
|
};
|
|
751
738
|
|
|
752
|
-
export function
|
|
739
|
+
export function __wbg_get_29726a9b608aea28() { return handleError(function (arg0, arg1) {
|
|
753
740
|
const ret = getObject(arg0).get(getObject(arg1));
|
|
754
741
|
return addHeapObject(ret);
|
|
755
742
|
}, arguments) };
|
|
756
743
|
|
|
757
|
-
export function
|
|
744
|
+
export function __wbg_get_af9dab7e9603ea93() { return handleError(function (arg0, arg1) {
|
|
758
745
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
759
746
|
return addHeapObject(ret);
|
|
760
747
|
}, arguments) };
|
|
@@ -764,17 +751,17 @@ export function __wbg_get_with_ref_key_1dc361bd10053bfe(arg0, arg1) {
|
|
|
764
751
|
return addHeapObject(ret);
|
|
765
752
|
};
|
|
766
753
|
|
|
767
|
-
export function
|
|
754
|
+
export function __wbg_has_0e670569d65d3a45() { return handleError(function (arg0, arg1) {
|
|
768
755
|
const ret = Reflect.has(getObject(arg0), getObject(arg1));
|
|
769
756
|
return ret;
|
|
770
757
|
}, arguments) };
|
|
771
758
|
|
|
772
|
-
export function
|
|
759
|
+
export function __wbg_headers_654c30e1bcccc552(arg0) {
|
|
773
760
|
const ret = getObject(arg0).headers;
|
|
774
761
|
return addHeapObject(ret);
|
|
775
762
|
};
|
|
776
763
|
|
|
777
|
-
export function
|
|
764
|
+
export function __wbg_instanceof_ArrayBuffer_f3320d2419cd0355(arg0) {
|
|
778
765
|
let result;
|
|
779
766
|
try {
|
|
780
767
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -785,7 +772,7 @@ export function __wbg_instanceof_ArrayBuffer_70beb1189ca63b38(arg0) {
|
|
|
785
772
|
return ret;
|
|
786
773
|
};
|
|
787
774
|
|
|
788
|
-
export function
|
|
775
|
+
export function __wbg_instanceof_Object_577e21051f7bcb79(arg0) {
|
|
789
776
|
let result;
|
|
790
777
|
try {
|
|
791
778
|
result = getObject(arg0) instanceof Object;
|
|
@@ -796,7 +783,7 @@ export function __wbg_instanceof_Object_10bb762262230c68(arg0) {
|
|
|
796
783
|
return ret;
|
|
797
784
|
};
|
|
798
785
|
|
|
799
|
-
export function
|
|
786
|
+
export function __wbg_instanceof_Response_cd74d1c2ac92cb0b(arg0) {
|
|
800
787
|
let result;
|
|
801
788
|
try {
|
|
802
789
|
result = getObject(arg0) instanceof Response;
|
|
@@ -807,7 +794,7 @@ export function __wbg_instanceof_Response_f4f3e87e07f3135c(arg0) {
|
|
|
807
794
|
return ret;
|
|
808
795
|
};
|
|
809
796
|
|
|
810
|
-
export function
|
|
797
|
+
export function __wbg_instanceof_Uint8Array_da54ccc9d3e09434(arg0) {
|
|
811
798
|
let result;
|
|
812
799
|
try {
|
|
813
800
|
result = getObject(arg0) instanceof Uint8Array;
|
|
@@ -818,7 +805,7 @@ export function __wbg_instanceof_Uint8Array_20c8e73002f7af98(arg0) {
|
|
|
818
805
|
return ret;
|
|
819
806
|
};
|
|
820
807
|
|
|
821
|
-
export function
|
|
808
|
+
export function __wbg_instanceof_Window_b5cf7783caa68180(arg0) {
|
|
822
809
|
let result;
|
|
823
810
|
try {
|
|
824
811
|
result = getObject(arg0) instanceof Window;
|
|
@@ -829,7 +816,7 @@ export function __wbg_instanceof_Window_4846dbb3de56c84c(arg0) {
|
|
|
829
816
|
return ret;
|
|
830
817
|
};
|
|
831
818
|
|
|
832
|
-
export function
|
|
819
|
+
export function __wbg_iterator_27b7c8b35ab3e86b() {
|
|
833
820
|
const ret = Symbol.iterator;
|
|
834
821
|
return addHeapObject(ret);
|
|
835
822
|
};
|
|
@@ -839,17 +826,17 @@ export function __wbg_jscontrollererror_new(arg0) {
|
|
|
839
826
|
return addHeapObject(ret);
|
|
840
827
|
};
|
|
841
828
|
|
|
842
|
-
export function
|
|
829
|
+
export function __wbg_length_22ac23eaec9d8053(arg0) {
|
|
843
830
|
const ret = getObject(arg0).length;
|
|
844
831
|
return ret;
|
|
845
832
|
};
|
|
846
833
|
|
|
847
|
-
export function
|
|
834
|
+
export function __wbg_location_962e75c1c1b3ebed(arg0) {
|
|
848
835
|
const ret = getObject(arg0).location;
|
|
849
836
|
return addHeapObject(ret);
|
|
850
837
|
};
|
|
851
838
|
|
|
852
|
-
export function
|
|
839
|
+
export function __wbg_log_1d990106d99dacb7(arg0) {
|
|
853
840
|
console.log(getObject(arg0));
|
|
854
841
|
};
|
|
855
842
|
|
|
@@ -858,39 +845,54 @@ export function __wbg_msCrypto_a61aeb35a24c1329(arg0) {
|
|
|
858
845
|
return addHeapObject(ret);
|
|
859
846
|
};
|
|
860
847
|
|
|
861
|
-
export function
|
|
848
|
+
export function __wbg_navigator_b49edef831236138(arg0) {
|
|
862
849
|
const ret = getObject(arg0).navigator;
|
|
863
850
|
return addHeapObject(ret);
|
|
864
851
|
};
|
|
865
852
|
|
|
866
|
-
export function
|
|
853
|
+
export function __wbg_new_0_23cedd11d9b40c9d() {
|
|
867
854
|
const ret = new Date();
|
|
868
855
|
return addHeapObject(ret);
|
|
869
856
|
};
|
|
870
857
|
|
|
871
|
-
export function
|
|
858
|
+
export function __wbg_new_1ba21ce319a06297() {
|
|
872
859
|
const ret = new Object();
|
|
873
860
|
return addHeapObject(ret);
|
|
874
861
|
};
|
|
875
862
|
|
|
876
|
-
export function
|
|
877
|
-
const ret = new
|
|
863
|
+
export function __wbg_new_25f239778d6112b9() {
|
|
864
|
+
const ret = new Array();
|
|
878
865
|
return addHeapObject(ret);
|
|
879
|
-
}
|
|
866
|
+
};
|
|
880
867
|
|
|
881
868
|
export function __wbg_new_2658d63118834d8e() {
|
|
882
869
|
const ret = new Mutex();
|
|
883
870
|
return addHeapObject(ret);
|
|
884
871
|
};
|
|
885
872
|
|
|
886
|
-
export function
|
|
873
|
+
export function __wbg_new_3c79b3bb1b32b7d3() { return handleError(function () {
|
|
874
|
+
const ret = new Headers();
|
|
875
|
+
return addHeapObject(ret);
|
|
876
|
+
}, arguments) };
|
|
877
|
+
|
|
878
|
+
export function __wbg_new_6421f6084cc5bc5a(arg0) {
|
|
879
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
880
|
+
return addHeapObject(ret);
|
|
881
|
+
};
|
|
882
|
+
|
|
883
|
+
export function __wbg_new_881a222c65f168fc() { return handleError(function () {
|
|
884
|
+
const ret = new AbortController();
|
|
885
|
+
return addHeapObject(ret);
|
|
886
|
+
}, arguments) };
|
|
887
|
+
|
|
888
|
+
export function __wbg_new_ff12d2b041fb48f1(arg0, arg1) {
|
|
887
889
|
try {
|
|
888
890
|
var state0 = {a: arg0, b: arg1};
|
|
889
891
|
var cb0 = (arg0, arg1) => {
|
|
890
892
|
const a = state0.a;
|
|
891
893
|
state0.a = 0;
|
|
892
894
|
try {
|
|
893
|
-
return
|
|
895
|
+
return __wasm_bindgen_func_elem_5869(a, state0.b, arg0, arg1);
|
|
894
896
|
} finally {
|
|
895
897
|
state0.a = a;
|
|
896
898
|
}
|
|
@@ -902,51 +904,36 @@ export function __wbg_new_3c3d849046688a66(arg0, arg1) {
|
|
|
902
904
|
}
|
|
903
905
|
};
|
|
904
906
|
|
|
905
|
-
export function
|
|
906
|
-
const ret = new Uint8Array(getObject(arg0));
|
|
907
|
-
return addHeapObject(ret);
|
|
908
|
-
};
|
|
909
|
-
|
|
910
|
-
export function __wbg_new_9edf9838a2def39c() { return handleError(function () {
|
|
911
|
-
const ret = new Headers();
|
|
912
|
-
return addHeapObject(ret);
|
|
913
|
-
}, arguments) };
|
|
914
|
-
|
|
915
|
-
export function __wbg_new_e17d9f43105b08be() {
|
|
916
|
-
const ret = new Array();
|
|
917
|
-
return addHeapObject(ret);
|
|
918
|
-
};
|
|
919
|
-
|
|
920
|
-
export function __wbg_new_from_slice_92f4d78ca282a2d2(arg0, arg1) {
|
|
907
|
+
export function __wbg_new_from_slice_f9c22b9153b26992(arg0, arg1) {
|
|
921
908
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
922
909
|
return addHeapObject(ret);
|
|
923
910
|
};
|
|
924
911
|
|
|
925
|
-
export function
|
|
912
|
+
export function __wbg_new_no_args_cb138f77cf6151ee(arg0, arg1) {
|
|
926
913
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
927
914
|
return addHeapObject(ret);
|
|
928
915
|
};
|
|
929
916
|
|
|
930
|
-
export function
|
|
917
|
+
export function __wbg_new_with_length_aa5eaf41d35235e5(arg0) {
|
|
931
918
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
932
919
|
return addHeapObject(ret);
|
|
933
920
|
};
|
|
934
921
|
|
|
935
|
-
export function
|
|
922
|
+
export function __wbg_new_with_str_and_init_c5748f76f5108934() { return handleError(function (arg0, arg1, arg2) {
|
|
936
923
|
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
937
924
|
return addHeapObject(ret);
|
|
938
925
|
}, arguments) };
|
|
939
926
|
|
|
940
|
-
export function
|
|
941
|
-
const ret = getObject(arg0).next();
|
|
942
|
-
return addHeapObject(ret);
|
|
943
|
-
}, arguments) };
|
|
944
|
-
|
|
945
|
-
export function __wbg_next_2c826fe5dfec6b6a(arg0) {
|
|
927
|
+
export function __wbg_next_138a17bbf04e926c(arg0) {
|
|
946
928
|
const ret = getObject(arg0).next;
|
|
947
929
|
return addHeapObject(ret);
|
|
948
930
|
};
|
|
949
931
|
|
|
932
|
+
export function __wbg_next_3cfe5c0fe2a4cc53() { return handleError(function (arg0) {
|
|
933
|
+
const ret = getObject(arg0).next();
|
|
934
|
+
return addHeapObject(ret);
|
|
935
|
+
}, arguments) };
|
|
936
|
+
|
|
950
937
|
export function __wbg_node_905d3e251edff8a2(arg0) {
|
|
951
938
|
const ret = getObject(arg0).node;
|
|
952
939
|
return addHeapObject(ret);
|
|
@@ -957,7 +944,7 @@ export function __wbg_obtain_a9626b3b96e6dc2c(arg0) {
|
|
|
957
944
|
return addHeapObject(ret);
|
|
958
945
|
};
|
|
959
946
|
|
|
960
|
-
export function
|
|
947
|
+
export function __wbg_origin_c4ac149104b9ebad() { return handleError(function (arg0, arg1) {
|
|
961
948
|
const ret = getObject(arg1).origin;
|
|
962
949
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
963
950
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -965,7 +952,7 @@ export function __wbg_origin_2b5e7986f349f4f3() { return handleError(function (a
|
|
|
965
952
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
966
953
|
}, arguments) };
|
|
967
954
|
|
|
968
|
-
export function
|
|
955
|
+
export function __wbg_parse_7ff95c018af680b3(arg0, arg1) {
|
|
969
956
|
let deferred0_0;
|
|
970
957
|
let deferred0_1;
|
|
971
958
|
try {
|
|
@@ -983,21 +970,21 @@ export function __wbg_process_dc0fbacc7c1c06f7(arg0) {
|
|
|
983
970
|
return addHeapObject(ret);
|
|
984
971
|
};
|
|
985
972
|
|
|
986
|
-
export function
|
|
973
|
+
export function __wbg_prototypesetcall_dfe9b766cdc1f1fd(arg0, arg1, arg2) {
|
|
987
974
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
988
975
|
};
|
|
989
976
|
|
|
990
|
-
export function
|
|
977
|
+
export function __wbg_push_7d9be8f38fc13975(arg0, arg1) {
|
|
991
978
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
992
979
|
return ret;
|
|
993
980
|
};
|
|
994
981
|
|
|
995
|
-
export function
|
|
982
|
+
export function __wbg_queueMicrotask_9b549dfce8865860(arg0) {
|
|
996
983
|
const ret = getObject(arg0).queueMicrotask;
|
|
997
984
|
return addHeapObject(ret);
|
|
998
985
|
};
|
|
999
986
|
|
|
1000
|
-
export function
|
|
987
|
+
export function __wbg_queueMicrotask_fca69f5bfad613a5(arg0) {
|
|
1001
988
|
queueMicrotask(getObject(arg0));
|
|
1002
989
|
};
|
|
1003
990
|
|
|
@@ -1010,12 +997,12 @@ export function __wbg_require_60cc747a6bc5215a() { return handleError(function (
|
|
|
1010
997
|
return addHeapObject(ret);
|
|
1011
998
|
}, arguments) };
|
|
1012
999
|
|
|
1013
|
-
export function
|
|
1000
|
+
export function __wbg_resolve_fd5bfbaa4ce36e1e(arg0) {
|
|
1014
1001
|
const ret = Promise.resolve(getObject(arg0));
|
|
1015
1002
|
return addHeapObject(ret);
|
|
1016
1003
|
};
|
|
1017
1004
|
|
|
1018
|
-
export function
|
|
1005
|
+
export function __wbg_setTimeout_4302406184dcc5be(arg0, arg1) {
|
|
1019
1006
|
const ret = setTimeout(getObject(arg0), arg1);
|
|
1020
1007
|
return addHeapObject(ret);
|
|
1021
1008
|
};
|
|
@@ -1028,40 +1015,40 @@ export function __wbg_set_3fda3bac07393de4(arg0, arg1, arg2) {
|
|
|
1028
1015
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
1029
1016
|
};
|
|
1030
1017
|
|
|
1031
|
-
export function
|
|
1032
|
-
getObject(arg0)
|
|
1033
|
-
|
|
1018
|
+
export function __wbg_set_781438a03c0c3c81() { return handleError(function (arg0, arg1, arg2) {
|
|
1019
|
+
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
1020
|
+
return ret;
|
|
1021
|
+
}, arguments) };
|
|
1034
1022
|
|
|
1035
|
-
export function
|
|
1023
|
+
export function __wbg_set_7df433eea03a5c14(arg0, arg1, arg2) {
|
|
1036
1024
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
1037
1025
|
};
|
|
1038
1026
|
|
|
1039
|
-
export function
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
}, arguments) };
|
|
1027
|
+
export function __wbg_set_body_8e743242d6076a4f(arg0, arg1) {
|
|
1028
|
+
getObject(arg0).body = getObject(arg1);
|
|
1029
|
+
};
|
|
1043
1030
|
|
|
1044
|
-
export function
|
|
1031
|
+
export function __wbg_set_cache_0e437c7c8e838b9b(arg0, arg1) {
|
|
1045
1032
|
getObject(arg0).cache = __wbindgen_enum_RequestCache[arg1];
|
|
1046
1033
|
};
|
|
1047
1034
|
|
|
1048
|
-
export function
|
|
1035
|
+
export function __wbg_set_credentials_55ae7c3c106fd5be(arg0, arg1) {
|
|
1049
1036
|
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1050
1037
|
};
|
|
1051
1038
|
|
|
1052
|
-
export function
|
|
1039
|
+
export function __wbg_set_headers_5671cf088e114d2b(arg0, arg1) {
|
|
1053
1040
|
getObject(arg0).headers = getObject(arg1);
|
|
1054
1041
|
};
|
|
1055
1042
|
|
|
1056
|
-
export function
|
|
1043
|
+
export function __wbg_set_method_76c69e41b3570627(arg0, arg1, arg2) {
|
|
1057
1044
|
getObject(arg0).method = getStringFromWasm0(arg1, arg2);
|
|
1058
1045
|
};
|
|
1059
1046
|
|
|
1060
|
-
export function
|
|
1047
|
+
export function __wbg_set_mode_611016a6818fc690(arg0, arg1) {
|
|
1061
1048
|
getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
|
|
1062
1049
|
};
|
|
1063
1050
|
|
|
1064
|
-
export function
|
|
1051
|
+
export function __wbg_set_signal_e89be862d0091009(arg0, arg1) {
|
|
1065
1052
|
getObject(arg0).signal = getObject(arg1);
|
|
1066
1053
|
};
|
|
1067
1054
|
|
|
@@ -1083,37 +1070,37 @@ export function __wbg_signMessage_c732ea9d998cac79() { return handleError(functi
|
|
|
1083
1070
|
}
|
|
1084
1071
|
}, arguments) };
|
|
1085
1072
|
|
|
1086
|
-
export function
|
|
1073
|
+
export function __wbg_signal_3c14fbdc89694b39(arg0) {
|
|
1087
1074
|
const ret = getObject(arg0).signal;
|
|
1088
1075
|
return addHeapObject(ret);
|
|
1089
1076
|
};
|
|
1090
1077
|
|
|
1091
|
-
export function
|
|
1078
|
+
export function __wbg_static_accessor_GLOBAL_769e6b65d6557335() {
|
|
1092
1079
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1093
1080
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1094
1081
|
};
|
|
1095
1082
|
|
|
1096
|
-
export function
|
|
1083
|
+
export function __wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1() {
|
|
1097
1084
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1098
1085
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1099
1086
|
};
|
|
1100
1087
|
|
|
1101
|
-
export function
|
|
1088
|
+
export function __wbg_static_accessor_SELF_08f5a74c69739274() {
|
|
1102
1089
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1103
1090
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1104
1091
|
};
|
|
1105
1092
|
|
|
1106
|
-
export function
|
|
1093
|
+
export function __wbg_static_accessor_WINDOW_a8924b26aa92d024() {
|
|
1107
1094
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1108
1095
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1109
1096
|
};
|
|
1110
1097
|
|
|
1111
|
-
export function
|
|
1098
|
+
export function __wbg_status_9bfc680efca4bdfd(arg0) {
|
|
1112
1099
|
const ret = getObject(arg0).status;
|
|
1113
1100
|
return ret;
|
|
1114
1101
|
};
|
|
1115
1102
|
|
|
1116
|
-
export function
|
|
1103
|
+
export function __wbg_stringify_56d3c6664110414f(arg0, arg1) {
|
|
1117
1104
|
const ret = JSON.stringify(getObject(arg1));
|
|
1118
1105
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1119
1106
|
var len1 = WASM_VECTOR_LEN;
|
|
@@ -1121,32 +1108,32 @@ export function __wbg_stringify_404baa47f2ce77aa(arg0, arg1) {
|
|
|
1121
1108
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1122
1109
|
};
|
|
1123
1110
|
|
|
1124
|
-
export function
|
|
1111
|
+
export function __wbg_stringify_655a6390e1f5eb6b() { return handleError(function (arg0) {
|
|
1125
1112
|
const ret = JSON.stringify(getObject(arg0));
|
|
1126
1113
|
return addHeapObject(ret);
|
|
1127
1114
|
}, arguments) };
|
|
1128
1115
|
|
|
1129
|
-
export function
|
|
1116
|
+
export function __wbg_subarray_845f2f5bce7d061a(arg0, arg1, arg2) {
|
|
1130
1117
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1131
1118
|
return addHeapObject(ret);
|
|
1132
1119
|
};
|
|
1133
1120
|
|
|
1134
|
-
export function
|
|
1121
|
+
export function __wbg_text_51046bb33d257f63() { return handleError(function (arg0) {
|
|
1135
1122
|
const ret = getObject(arg0).text();
|
|
1136
1123
|
return addHeapObject(ret);
|
|
1137
1124
|
}, arguments) };
|
|
1138
1125
|
|
|
1139
|
-
export function
|
|
1140
|
-
const ret = getObject(arg0).then(getObject(arg1));
|
|
1126
|
+
export function __wbg_then_429f7caf1026411d(arg0, arg1, arg2) {
|
|
1127
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
1141
1128
|
return addHeapObject(ret);
|
|
1142
1129
|
};
|
|
1143
1130
|
|
|
1144
|
-
export function
|
|
1145
|
-
const ret = getObject(arg0).then(getObject(arg1)
|
|
1131
|
+
export function __wbg_then_4f95312d68691235(arg0, arg1) {
|
|
1132
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
1146
1133
|
return addHeapObject(ret);
|
|
1147
1134
|
};
|
|
1148
1135
|
|
|
1149
|
-
export function
|
|
1136
|
+
export function __wbg_url_b6d11838a4f95198(arg0, arg1) {
|
|
1150
1137
|
const ret = getObject(arg1).url;
|
|
1151
1138
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1152
1139
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -1154,7 +1141,7 @@ export function __wbg_url_b36d2a5008eb056f(arg0, arg1) {
|
|
|
1154
1141
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1155
1142
|
};
|
|
1156
1143
|
|
|
1157
|
-
export function
|
|
1144
|
+
export function __wbg_value_57b7b035e117f7ee(arg0) {
|
|
1158
1145
|
const ret = getObject(arg0).value;
|
|
1159
1146
|
return addHeapObject(ret);
|
|
1160
1147
|
};
|
|
@@ -1164,15 +1151,21 @@ export function __wbg_versions_c01dfd4722a88165(arg0) {
|
|
|
1164
1151
|
return addHeapObject(ret);
|
|
1165
1152
|
};
|
|
1166
1153
|
|
|
1154
|
+
export function __wbindgen_cast_07a7cf3b22b8fd7a(arg0, arg1) {
|
|
1155
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 457, function: Function { arguments: [], shim_idx: 458, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1156
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_3926, __wasm_bindgen_func_elem_3935);
|
|
1157
|
+
return addHeapObject(ret);
|
|
1158
|
+
};
|
|
1159
|
+
|
|
1167
1160
|
export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
1168
1161
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1169
1162
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1170
1163
|
return addHeapObject(ret);
|
|
1171
1164
|
};
|
|
1172
1165
|
|
|
1173
|
-
export function
|
|
1174
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1175
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1166
|
+
export function __wbindgen_cast_4b1c6ecbf5b749c2(arg0, arg1) {
|
|
1167
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 490, function: Function { arguments: [Externref], shim_idx: 491, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1168
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4063, __wasm_bindgen_func_elem_4078);
|
|
1176
1169
|
return addHeapObject(ret);
|
|
1177
1170
|
};
|
|
1178
1171
|
|
|
@@ -1182,12 +1175,6 @@ export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
|
|
|
1182
1175
|
return addHeapObject(ret);
|
|
1183
1176
|
};
|
|
1184
1177
|
|
|
1185
|
-
export function __wbindgen_cast_cbae8fdbdf7d2814(arg0, arg1) {
|
|
1186
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 458, function: Function { arguments: [], shim_idx: 459, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1187
|
-
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_3915, __wasm_bindgen_func_elem_3924);
|
|
1188
|
-
return addHeapObject(ret);
|
|
1189
|
-
};
|
|
1190
|
-
|
|
1191
1178
|
export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
1192
1179
|
// Cast intrinsic for `F64 -> Externref`.
|
|
1193
1180
|
const ret = arg0;
|
|
@@ -1202,4 +1189,3 @@ export function __wbindgen_object_clone_ref(arg0) {
|
|
|
1202
1189
|
export function __wbindgen_object_drop_ref(arg0) {
|
|
1203
1190
|
takeObject(arg0);
|
|
1204
1191
|
};
|
|
1205
|
-
|