@wgb5445/aptos-intent-npm 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
package/dist/esm/entry.js CHANGED
@@ -1,5 +1,816 @@
1
+ let wasm;
2
+
3
+ const heap = new Array(128).fill(undefined);
4
+
5
+ heap.push(undefined, null, true, false);
6
+
7
+ function getObject(idx) { return heap[idx]; }
8
+
9
+ let heap_next = heap.length;
10
+
11
+ function dropObject(idx) {
12
+ if (idx < 132) return;
13
+ heap[idx] = heap_next;
14
+ heap_next = idx;
15
+ }
16
+
17
+ function takeObject(idx) {
18
+ const ret = getObject(idx);
19
+ dropObject(idx);
20
+ return ret;
21
+ }
22
+
23
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
24
+
25
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }
26
+ let cachedUint8Memory0 = null;
27
+
28
+ function getUint8Memory0() {
29
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
30
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
31
+ }
32
+ return cachedUint8Memory0;
33
+ }
34
+
35
+ function getStringFromWasm0(ptr, len) {
36
+ ptr = ptr >>> 0;
37
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
38
+ }
39
+
40
+ function addHeapObject(obj) {
41
+ if (heap_next === heap.length) heap.push(heap.length + 1);
42
+ const idx = heap_next;
43
+ heap_next = heap[idx];
44
+
45
+ heap[idx] = obj;
46
+ return idx;
47
+ }
48
+
49
+ let WASM_VECTOR_LEN = 0;
50
+
51
+ const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
52
+
53
+ const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
54
+ ? function (arg, view) {
55
+ return cachedTextEncoder.encodeInto(arg, view);
56
+ }
57
+ : function (arg, view) {
58
+ const buf = cachedTextEncoder.encode(arg);
59
+ view.set(buf);
60
+ return {
61
+ read: arg.length,
62
+ written: buf.length
63
+ };
64
+ });
65
+
66
+ function passStringToWasm0(arg, malloc, realloc) {
67
+
68
+ if (realloc === undefined) {
69
+ const buf = cachedTextEncoder.encode(arg);
70
+ const ptr = malloc(buf.length, 1) >>> 0;
71
+ getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
72
+ WASM_VECTOR_LEN = buf.length;
73
+ return ptr;
74
+ }
75
+
76
+ let len = arg.length;
77
+ let ptr = malloc(len, 1) >>> 0;
78
+
79
+ const mem = getUint8Memory0();
80
+
81
+ let offset = 0;
82
+
83
+ for (; offset < len; offset++) {
84
+ const code = arg.charCodeAt(offset);
85
+ if (code > 0x7F) break;
86
+ mem[ptr + offset] = code;
87
+ }
88
+
89
+ if (offset !== len) {
90
+ if (offset !== 0) {
91
+ arg = arg.slice(offset);
92
+ }
93
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
94
+ const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
95
+ const ret = encodeString(arg, view);
96
+
97
+ offset += ret.written;
98
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
99
+ }
100
+
101
+ WASM_VECTOR_LEN = offset;
102
+ return ptr;
103
+ }
104
+
105
+ function isLikeNone(x) {
106
+ return x === undefined || x === null;
107
+ }
108
+
109
+ let cachedInt32Memory0 = null;
110
+
111
+ function getInt32Memory0() {
112
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
113
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
114
+ }
115
+ return cachedInt32Memory0;
116
+ }
117
+
118
+ function debugString(val) {
119
+ // primitive types
120
+ const type = typeof val;
121
+ if (type == 'number' || type == 'boolean' || val == null) {
122
+ return `${val}`;
123
+ }
124
+ if (type == 'string') {
125
+ return `"${val}"`;
126
+ }
127
+ if (type == 'symbol') {
128
+ const description = val.description;
129
+ if (description == null) {
130
+ return 'Symbol';
131
+ } else {
132
+ return `Symbol(${description})`;
133
+ }
134
+ }
135
+ if (type == 'function') {
136
+ const name = val.name;
137
+ if (typeof name == 'string' && name.length > 0) {
138
+ return `Function(${name})`;
139
+ } else {
140
+ return 'Function';
141
+ }
142
+ }
143
+ // objects
144
+ if (Array.isArray(val)) {
145
+ const length = val.length;
146
+ let debug = '[';
147
+ if (length > 0) {
148
+ debug += debugString(val[0]);
149
+ }
150
+ for(let i = 1; i < length; i++) {
151
+ debug += ', ' + debugString(val[i]);
152
+ }
153
+ debug += ']';
154
+ return debug;
155
+ }
156
+ // Test for built-in
157
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
158
+ let className;
159
+ if (builtInMatches.length > 1) {
160
+ className = builtInMatches[1];
161
+ } else {
162
+ // Failed to match the standard '[object ClassName]'
163
+ return toString.call(val);
164
+ }
165
+ if (className == 'Object') {
166
+ // we're a user defined class or Object
167
+ // JSON.stringify avoids problems with cycles, and is generally much
168
+ // easier than looping through ownProperties of `val`.
169
+ try {
170
+ return 'Object(' + JSON.stringify(val) + ')';
171
+ } catch (_) {
172
+ return 'Object';
173
+ }
174
+ }
175
+ // errors
176
+ if (val instanceof Error) {
177
+ return `${val.name}: ${val.message}\n${val.stack}`;
178
+ }
179
+ // TODO we could test for more things here, like `Set`s and `Map`s.
180
+ return className;
181
+ }
182
+
183
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
184
+ ? { register: () => {}, unregister: () => {} }
185
+ : new FinalizationRegistry(state => {
186
+ wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b);
187
+ });
188
+
189
+ function makeMutClosure(arg0, arg1, dtor, f) {
190
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
191
+ const real = (...args) => {
192
+ // First up with a closure we increment the internal reference
193
+ // count. This ensures that the Rust closure environment won't
194
+ // be deallocated while we're invoking it.
195
+ state.cnt++;
196
+ const a = state.a;
197
+ state.a = 0;
198
+ try {
199
+ return f(a, state.b, ...args);
200
+ } finally {
201
+ if (--state.cnt === 0) {
202
+ wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
203
+ CLOSURE_DTORS.unregister(state);
204
+ } else {
205
+ state.a = a;
206
+ }
207
+ }
208
+ };
209
+ real.original = state;
210
+ CLOSURE_DTORS.register(real, state, state);
211
+ return real;
212
+ }
213
+ function __wbg_adapter_24(arg0, arg1, arg2) {
214
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h09acdaa8b02601d5(arg0, arg1, addHeapObject(arg2));
215
+ }
216
+
217
+ let cachedUint32Memory0 = null;
218
+
219
+ function getUint32Memory0() {
220
+ if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
221
+ cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
222
+ }
223
+ return cachedUint32Memory0;
224
+ }
225
+
226
+ function passArrayJsValueToWasm0(array, malloc) {
227
+ const ptr = malloc(array.length * 4, 4) >>> 0;
228
+ const mem = getUint32Memory0();
229
+ for (let i = 0; i < array.length; i++) {
230
+ mem[ptr / 4 + i] = addHeapObject(array[i]);
231
+ }
232
+ WASM_VECTOR_LEN = array.length;
233
+ return ptr;
234
+ }
235
+
236
+ function getArrayJsValueFromWasm0(ptr, len) {
237
+ ptr = ptr >>> 0;
238
+ const mem = getUint32Memory0();
239
+ const slice = mem.subarray(ptr / 4, ptr / 4 + len);
240
+ const result = [];
241
+ for (let i = 0; i < slice.length; i++) {
242
+ result.push(takeObject(slice[i]));
243
+ }
244
+ return result;
245
+ }
246
+
247
+ function getArrayU8FromWasm0(ptr, len) {
248
+ ptr = ptr >>> 0;
249
+ return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
250
+ }
251
+
252
+ function passArray8ToWasm0(arg, malloc) {
253
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
254
+ getUint8Memory0().set(arg, ptr / 1);
255
+ WASM_VECTOR_LEN = arg.length;
256
+ return ptr;
257
+ }
258
+
259
+ function handleError(f, args) {
260
+ try {
261
+ return f.apply(this, args);
262
+ } catch (e) {
263
+ wasm.__wbindgen_exn_store(addHeapObject(e));
264
+ }
265
+ }
266
+ function __wbg_adapter_87(arg0, arg1, arg2, arg3) {
267
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h4c0838795c3445c5(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
268
+ }
269
+
270
+ /**
271
+ */
272
+ const ArgumentOperation = Object.freeze({ Move:0,"0":"Move",Copy:1,"1":"Copy",Borrow:2,"2":"Borrow",BorrowMut:3,"3":"BorrowMut", });
273
+ /**
274
+ * Arguments for each function.
275
+ */
276
+ const BatchArgumentType = Object.freeze({ Raw:0,"0":"Raw",Signer:1,"1":"Signer",PreviousResult:2,"2":"PreviousResult", });
277
+
278
+ const BatchArgumentFinalization = (typeof FinalizationRegistry === 'undefined')
279
+ ? { register: () => {}, unregister: () => {} }
280
+ : new FinalizationRegistry(ptr => wasm.__wbg_batchargument_free(ptr >>> 0));
281
+ /**
282
+ * Arguments for each function. Wasm bindgen only support C-style enum so use option to work around.
283
+ */
284
+ class BatchArgument {
285
+
286
+ static __wrap(ptr) {
287
+ ptr = ptr >>> 0;
288
+ const obj = Object.create(BatchArgument.prototype);
289
+ obj.__wbg_ptr = ptr;
290
+ BatchArgumentFinalization.register(obj, obj.__wbg_ptr, obj);
291
+ return obj;
292
+ }
293
+
294
+ static __unwrap(jsValue) {
295
+ if (!(jsValue instanceof BatchArgument)) {
296
+ return 0;
297
+ }
298
+ return jsValue.__destroy_into_raw();
299
+ }
300
+
301
+ __destroy_into_raw() {
302
+ const ptr = this.__wbg_ptr;
303
+ this.__wbg_ptr = 0;
304
+ BatchArgumentFinalization.unregister(this);
305
+ return ptr;
306
+ }
307
+
308
+ free() {
309
+ const ptr = this.__destroy_into_raw();
310
+ wasm.__wbg_batchargument_free(ptr);
311
+ }
312
+ /**
313
+ * @param {Uint8Array} bytes
314
+ * @returns {BatchArgument}
315
+ */
316
+ static new_bytes(bytes) {
317
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
318
+ const len0 = WASM_VECTOR_LEN;
319
+ const ret = wasm.batchargument_new_bytes(ptr0, len0);
320
+ return BatchArgument.__wrap(ret);
321
+ }
322
+ /**
323
+ * @param {number} signer_idx
324
+ * @returns {BatchArgument}
325
+ */
326
+ static new_signer(signer_idx) {
327
+ const ret = wasm.batchargument_new_signer(signer_idx);
328
+ return BatchArgument.__wrap(ret);
329
+ }
330
+ /**
331
+ * @returns {BatchArgument}
332
+ */
333
+ borrow() {
334
+ try {
335
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
336
+ wasm.batchargument_borrow(retptr, this.__wbg_ptr);
337
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
338
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
339
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
340
+ if (r2) {
341
+ throw takeObject(r1);
342
+ }
343
+ return BatchArgument.__wrap(r0);
344
+ } finally {
345
+ wasm.__wbindgen_add_to_stack_pointer(16);
346
+ }
347
+ }
348
+ /**
349
+ * @returns {BatchArgument}
350
+ */
351
+ borrow_mut() {
352
+ try {
353
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
354
+ wasm.batchargument_borrow_mut(retptr, this.__wbg_ptr);
355
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
356
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
357
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
358
+ if (r2) {
359
+ throw takeObject(r1);
360
+ }
361
+ return BatchArgument.__wrap(r0);
362
+ } finally {
363
+ wasm.__wbindgen_add_to_stack_pointer(16);
364
+ }
365
+ }
366
+ /**
367
+ * @returns {BatchArgument}
368
+ */
369
+ copy() {
370
+ try {
371
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
372
+ wasm.batchargument_copy(retptr, this.__wbg_ptr);
373
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
374
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
375
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
376
+ if (r2) {
377
+ throw takeObject(r1);
378
+ }
379
+ return BatchArgument.__wrap(r0);
380
+ } finally {
381
+ wasm.__wbindgen_add_to_stack_pointer(16);
382
+ }
383
+ }
384
+ }
385
+
386
+ const BatchedFunctionCallFinalization = (typeof FinalizationRegistry === 'undefined')
387
+ ? { register: () => {}, unregister: () => {} }
388
+ : new FinalizationRegistry(ptr => wasm.__wbg_batchedfunctioncall_free(ptr >>> 0));
389
+ /**
390
+ * Call a Move entry function.
391
+ */
392
+ class BatchedFunctionCall {
393
+
394
+ __destroy_into_raw() {
395
+ const ptr = this.__wbg_ptr;
396
+ this.__wbg_ptr = 0;
397
+ BatchedFunctionCallFinalization.unregister(this);
398
+ return ptr;
399
+ }
400
+
401
+ free() {
402
+ const ptr = this.__destroy_into_raw();
403
+ wasm.__wbg_batchedfunctioncall_free(ptr);
404
+ }
405
+ }
406
+
407
+ const BatchedFunctionCallBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
408
+ ? { register: () => {}, unregister: () => {} }
409
+ : new FinalizationRegistry(ptr => wasm.__wbg_batchedfunctioncallbuilder_free(ptr >>> 0));
410
+ /**
411
+ */
412
+ class BatchedFunctionCallBuilder {
413
+
414
+ static __wrap(ptr) {
415
+ ptr = ptr >>> 0;
416
+ const obj = Object.create(BatchedFunctionCallBuilder.prototype);
417
+ obj.__wbg_ptr = ptr;
418
+ BatchedFunctionCallBuilderFinalization.register(obj, obj.__wbg_ptr, obj);
419
+ return obj;
420
+ }
421
+
422
+ __destroy_into_raw() {
423
+ const ptr = this.__wbg_ptr;
424
+ this.__wbg_ptr = 0;
425
+ BatchedFunctionCallBuilderFinalization.unregister(this);
426
+ return ptr;
427
+ }
428
+
429
+ free() {
430
+ const ptr = this.__destroy_into_raw();
431
+ wasm.__wbg_batchedfunctioncallbuilder_free(ptr);
432
+ }
433
+ /**
434
+ * @returns {BatchedFunctionCallBuilder}
435
+ */
436
+ static single_signer() {
437
+ const ret = wasm.batchedfunctioncallbuilder_single_signer();
438
+ return BatchedFunctionCallBuilder.__wrap(ret);
439
+ }
440
+ /**
441
+ * @param {number} signer_count
442
+ * @returns {BatchedFunctionCallBuilder}
443
+ */
444
+ static multi_signer(signer_count) {
445
+ const ret = wasm.batchedfunctioncallbuilder_multi_signer(signer_count);
446
+ return BatchedFunctionCallBuilder.__wrap(ret);
447
+ }
448
+ /**
449
+ * @param {string} module
450
+ * @param {string} _function
451
+ * @param {(string)[]} ty_args
452
+ * @param {(BatchArgument)[]} args
453
+ * @returns {(BatchArgument)[]}
454
+ */
455
+ add_batched_call(module, _function, ty_args, args) {
456
+ try {
457
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
458
+ const ptr0 = passStringToWasm0(module, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
459
+ const len0 = WASM_VECTOR_LEN;
460
+ const ptr1 = passStringToWasm0(_function, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
461
+ const len1 = WASM_VECTOR_LEN;
462
+ const ptr2 = passArrayJsValueToWasm0(ty_args, wasm.__wbindgen_malloc);
463
+ const len2 = WASM_VECTOR_LEN;
464
+ const ptr3 = passArrayJsValueToWasm0(args, wasm.__wbindgen_malloc);
465
+ const len3 = WASM_VECTOR_LEN;
466
+ wasm.batchedfunctioncallbuilder_add_batched_call(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
467
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
468
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
469
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
470
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
471
+ if (r3) {
472
+ throw takeObject(r2);
473
+ }
474
+ var v5 = getArrayJsValueFromWasm0(r0, r1).slice();
475
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
476
+ return v5;
477
+ } finally {
478
+ wasm.__wbindgen_add_to_stack_pointer(16);
479
+ }
480
+ }
481
+ /**
482
+ * @returns {Uint8Array}
483
+ */
484
+ generate_batched_calls() {
485
+ try {
486
+ const ptr = this.__destroy_into_raw();
487
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
488
+ wasm.batchedfunctioncallbuilder_generate_batched_calls(retptr, ptr);
489
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
490
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
491
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
492
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
493
+ if (r3) {
494
+ throw takeObject(r2);
495
+ }
496
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
497
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
498
+ return v1;
499
+ } finally {
500
+ wasm.__wbindgen_add_to_stack_pointer(16);
501
+ }
502
+ }
503
+ /**
504
+ * @param {string} network
505
+ * @param {string} module_name
506
+ * @returns {Promise<void>}
507
+ */
508
+ load_module(network, module_name) {
509
+ const ptr0 = passStringToWasm0(network, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
510
+ const len0 = WASM_VECTOR_LEN;
511
+ const ptr1 = passStringToWasm0(module_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
512
+ const len1 = WASM_VECTOR_LEN;
513
+ const ret = wasm.batchedfunctioncallbuilder_load_module(this.__wbg_ptr, ptr0, len0, ptr1, len1);
514
+ return takeObject(ret);
515
+ }
516
+ }
517
+
518
+ const PreviousResultFinalization = (typeof FinalizationRegistry === 'undefined')
519
+ ? { register: () => {}, unregister: () => {} }
520
+ : new FinalizationRegistry(ptr => wasm.__wbg_previousresult_free(ptr >>> 0));
521
+ /**
522
+ */
523
+ class PreviousResult {
524
+
525
+ __destroy_into_raw() {
526
+ const ptr = this.__wbg_ptr;
527
+ this.__wbg_ptr = 0;
528
+ PreviousResultFinalization.unregister(this);
529
+ return ptr;
530
+ }
531
+
532
+ free() {
533
+ const ptr = this.__destroy_into_raw();
534
+ wasm.__wbg_previousresult_free(ptr);
535
+ }
536
+ }
537
+
538
+ function __wbg_get_imports() {
539
+ const imports = {};
540
+ imports.wbg = {};
541
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
542
+ takeObject(arg0);
543
+ };
544
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
545
+ const ret = getStringFromWasm0(arg0, arg1);
546
+ return addHeapObject(ret);
547
+ };
548
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
549
+ const obj = getObject(arg1);
550
+ const ret = typeof(obj) === 'string' ? obj : undefined;
551
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
552
+ var len1 = WASM_VECTOR_LEN;
553
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
554
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
555
+ };
556
+ imports.wbg.__wbg_batchargument_new = function(arg0) {
557
+ const ret = BatchArgument.__wrap(arg0);
558
+ return addHeapObject(ret);
559
+ };
560
+ imports.wbg.__wbg_batchargument_unwrap = function(arg0) {
561
+ const ret = BatchArgument.__unwrap(takeObject(arg0));
562
+ return ret;
563
+ };
564
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
565
+ const obj = takeObject(arg0).original;
566
+ if (obj.cnt-- == 1) {
567
+ obj.a = 0;
568
+ return true;
569
+ }
570
+ const ret = false;
571
+ return ret;
572
+ };
573
+ imports.wbg.__wbg_fetch_1e4e8ed1f64c7e28 = function(arg0) {
574
+ const ret = fetch(getObject(arg0));
575
+ return addHeapObject(ret);
576
+ };
577
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
578
+ const ret = getObject(arg0);
579
+ return addHeapObject(ret);
580
+ };
581
+ imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
582
+ queueMicrotask(getObject(arg0));
583
+ };
584
+ imports.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
585
+ const ret = getObject(arg0).queueMicrotask;
586
+ return addHeapObject(ret);
587
+ };
588
+ imports.wbg.__wbindgen_is_function = function(arg0) {
589
+ const ret = typeof(getObject(arg0)) === 'function';
590
+ return ret;
591
+ };
592
+ imports.wbg.__wbg_fetch_693453ca3f88c055 = function(arg0, arg1) {
593
+ const ret = getObject(arg0).fetch(getObject(arg1));
594
+ return addHeapObject(ret);
595
+ };
596
+ imports.wbg.__wbg_newwithstrandinit_f581dff0d19a8b03 = function() { return handleError(function (arg0, arg1, arg2) {
597
+ const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
598
+ return addHeapObject(ret);
599
+ }, arguments) };
600
+ imports.wbg.__wbg_signal_3c701f5f40a5f08d = function(arg0) {
601
+ const ret = getObject(arg0).signal;
602
+ return addHeapObject(ret);
603
+ };
604
+ imports.wbg.__wbg_new_0ae46f44b7485bb2 = function() { return handleError(function () {
605
+ const ret = new AbortController();
606
+ return addHeapObject(ret);
607
+ }, arguments) };
608
+ imports.wbg.__wbg_abort_2c4fb490d878d2b2 = function(arg0) {
609
+ getObject(arg0).abort();
610
+ };
611
+ imports.wbg.__wbg_new_7a20246daa6eec7e = function() { return handleError(function () {
612
+ const ret = new Headers();
613
+ return addHeapObject(ret);
614
+ }, arguments) };
615
+ imports.wbg.__wbg_append_aa3f462f9e2b5ff2 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
616
+ getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
617
+ }, arguments) };
618
+ imports.wbg.__wbg_instanceof_Response_4c3b1446206114d1 = function(arg0) {
619
+ let result;
620
+ try {
621
+ result = getObject(arg0) instanceof Response;
622
+ } catch (_) {
623
+ result = false;
624
+ }
625
+ const ret = result;
626
+ return ret;
627
+ };
628
+ imports.wbg.__wbg_url_83a6a4f65f7a2b38 = function(arg0, arg1) {
629
+ const ret = getObject(arg1).url;
630
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
631
+ const len1 = WASM_VECTOR_LEN;
632
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
633
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
634
+ };
635
+ imports.wbg.__wbg_status_d6d47ad2837621eb = function(arg0) {
636
+ const ret = getObject(arg0).status;
637
+ return ret;
638
+ };
639
+ imports.wbg.__wbg_headers_24def508a7518df9 = function(arg0) {
640
+ const ret = getObject(arg0).headers;
641
+ return addHeapObject(ret);
642
+ };
643
+ imports.wbg.__wbg_text_668782292b0bc561 = function() { return handleError(function (arg0) {
644
+ const ret = getObject(arg0).text();
645
+ return addHeapObject(ret);
646
+ }, arguments) };
647
+ imports.wbg.__wbindgen_is_object = function(arg0) {
648
+ const val = getObject(arg0);
649
+ const ret = typeof(val) === 'object' && val !== null;
650
+ return ret;
651
+ };
652
+ imports.wbg.__wbg_newnoargs_e258087cd0daa0ea = function(arg0, arg1) {
653
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
654
+ return addHeapObject(ret);
655
+ };
656
+ imports.wbg.__wbg_next_40fc327bfc8770e6 = function(arg0) {
657
+ const ret = getObject(arg0).next;
658
+ return addHeapObject(ret);
659
+ };
660
+ imports.wbg.__wbg_next_196c84450b364254 = function() { return handleError(function (arg0) {
661
+ const ret = getObject(arg0).next();
662
+ return addHeapObject(ret);
663
+ }, arguments) };
664
+ imports.wbg.__wbg_done_298b57d23c0fc80c = function(arg0) {
665
+ const ret = getObject(arg0).done;
666
+ return ret;
667
+ };
668
+ imports.wbg.__wbg_value_d93c65011f51a456 = function(arg0) {
669
+ const ret = getObject(arg0).value;
670
+ return addHeapObject(ret);
671
+ };
672
+ imports.wbg.__wbg_iterator_2cee6dadfd956dfa = function() {
673
+ const ret = Symbol.iterator;
674
+ return addHeapObject(ret);
675
+ };
676
+ imports.wbg.__wbg_get_e3c254076557e348 = function() { return handleError(function (arg0, arg1) {
677
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
678
+ return addHeapObject(ret);
679
+ }, arguments) };
680
+ imports.wbg.__wbg_call_27c0f87801dedf93 = function() { return handleError(function (arg0, arg1) {
681
+ const ret = getObject(arg0).call(getObject(arg1));
682
+ return addHeapObject(ret);
683
+ }, arguments) };
684
+ imports.wbg.__wbg_new_72fb9a18b5ae2624 = function() {
685
+ const ret = new Object();
686
+ return addHeapObject(ret);
687
+ };
688
+ imports.wbg.__wbg_self_ce0dbfc45cf2f5be = function() { return handleError(function () {
689
+ const ret = self.self;
690
+ return addHeapObject(ret);
691
+ }, arguments) };
692
+ imports.wbg.__wbg_window_c6fb939a7f436783 = function() { return handleError(function () {
693
+ const ret = window.window;
694
+ return addHeapObject(ret);
695
+ }, arguments) };
696
+ imports.wbg.__wbg_globalThis_d1e6af4856ba331b = function() { return handleError(function () {
697
+ const ret = globalThis.globalThis;
698
+ return addHeapObject(ret);
699
+ }, arguments) };
700
+ imports.wbg.__wbg_global_207b558942527489 = function() { return handleError(function () {
701
+ const ret = global.global;
702
+ return addHeapObject(ret);
703
+ }, arguments) };
704
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
705
+ const ret = getObject(arg0) === undefined;
706
+ return ret;
707
+ };
708
+ imports.wbg.__wbg_call_b3ca7c6051f9bec1 = function() { return handleError(function (arg0, arg1, arg2) {
709
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
710
+ return addHeapObject(ret);
711
+ }, arguments) };
712
+ imports.wbg.__wbg_new_81740750da40724f = function(arg0, arg1) {
713
+ try {
714
+ var state0 = {a: arg0, b: arg1};
715
+ var cb0 = (arg0, arg1) => {
716
+ const a = state0.a;
717
+ state0.a = 0;
718
+ try {
719
+ return __wbg_adapter_87(a, state0.b, arg0, arg1);
720
+ } finally {
721
+ state0.a = a;
722
+ }
723
+ };
724
+ const ret = new Promise(cb0);
725
+ return addHeapObject(ret);
726
+ } finally {
727
+ state0.a = state0.b = 0;
728
+ }
729
+ };
730
+ imports.wbg.__wbg_resolve_b0083a7967828ec8 = function(arg0) {
731
+ const ret = Promise.resolve(getObject(arg0));
732
+ return addHeapObject(ret);
733
+ };
734
+ imports.wbg.__wbg_then_0c86a60e8fcfe9f6 = function(arg0, arg1) {
735
+ const ret = getObject(arg0).then(getObject(arg1));
736
+ return addHeapObject(ret);
737
+ };
738
+ imports.wbg.__wbg_then_a73caa9a87991566 = function(arg0, arg1, arg2) {
739
+ const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
740
+ return addHeapObject(ret);
741
+ };
742
+ imports.wbg.__wbg_buffer_12d079cc21e14bdb = function(arg0) {
743
+ const ret = getObject(arg0).buffer;
744
+ return addHeapObject(ret);
745
+ };
746
+ imports.wbg.__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb = function(arg0, arg1, arg2) {
747
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
748
+ return addHeapObject(ret);
749
+ };
750
+ imports.wbg.__wbg_new_63b92bc8671ed464 = function(arg0) {
751
+ const ret = new Uint8Array(getObject(arg0));
752
+ return addHeapObject(ret);
753
+ };
754
+ imports.wbg.__wbg_stringify_8887fe74e1c50d81 = function() { return handleError(function (arg0) {
755
+ const ret = JSON.stringify(getObject(arg0));
756
+ return addHeapObject(ret);
757
+ }, arguments) };
758
+ imports.wbg.__wbg_has_0af94d20077affa2 = function() { return handleError(function (arg0, arg1) {
759
+ const ret = Reflect.has(getObject(arg0), getObject(arg1));
760
+ return ret;
761
+ }, arguments) };
762
+ imports.wbg.__wbg_set_1f9b04f170055d33 = function() { return handleError(function (arg0, arg1, arg2) {
763
+ const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
764
+ return ret;
765
+ }, arguments) };
766
+ imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
767
+ const ret = debugString(getObject(arg1));
768
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
769
+ const len1 = WASM_VECTOR_LEN;
770
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
771
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
772
+ };
773
+ imports.wbg.__wbindgen_throw = function(arg0, arg1) {
774
+ throw new Error(getStringFromWasm0(arg0, arg1));
775
+ };
776
+ imports.wbg.__wbindgen_memory = function() {
777
+ const ret = wasm.memory;
778
+ return addHeapObject(ret);
779
+ };
780
+ imports.wbg.__wbindgen_closure_wrapper468 = function(arg0, arg1, arg2) {
781
+ const ret = makeMutClosure(arg0, arg1, 195, __wbg_adapter_24);
782
+ return addHeapObject(ret);
783
+ };
784
+
785
+ return imports;
786
+ }
787
+
788
+ function __wbg_finalize_init(instance, module) {
789
+ wasm = instance.exports;
790
+ cachedInt32Memory0 = null;
791
+ cachedUint32Memory0 = null;
792
+ cachedUint8Memory0 = null;
793
+
794
+
795
+ return wasm;
796
+ }
797
+
798
+ function initSync(module) {
799
+ if (wasm !== undefined) return wasm;
800
+
801
+ const imports = __wbg_get_imports();
802
+
803
+ if (!(module instanceof WebAssembly.Module)) {
804
+ module = new WebAssembly.Module(module);
805
+ }
806
+
807
+ const instance = new WebAssembly.Instance(module, imports);
808
+
809
+ return __wbg_finalize_init(instance);
810
+ }
811
+
1
812
  async function get_wasm (){
2
813
  return (await import('./aptos_intent_bg-BhFZXsdI.js')).default()
3
814
  }
4
815
 
5
- export { get_wasm };
816
+ export { ArgumentOperation, BatchArgument, BatchArgumentType, BatchedFunctionCall, BatchedFunctionCallBuilder, PreviousResult, get_wasm, initSync };