@wgb5445/aptos-intent-npm 0.0.9 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
package/dist/esm/entry.js CHANGED
@@ -115,6 +115,112 @@ function getInt32Memory0() {
115
115
  return cachedInt32Memory0;
116
116
  }
117
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__h8273ed02fd8578ca(arg0, arg1, addHeapObject(arg2));
215
+ }
216
+
217
+ function passArray8ToWasm0(arg, malloc) {
218
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
219
+ getUint8Memory0().set(arg, ptr / 1);
220
+ WASM_VECTOR_LEN = arg.length;
221
+ return ptr;
222
+ }
223
+
118
224
  let cachedUint32Memory0 = null;
119
225
 
120
226
  function getUint32Memory0() {
@@ -124,16 +230,6 @@ function getUint32Memory0() {
124
230
  return cachedUint32Memory0;
125
231
  }
126
232
 
127
- function passArrayJsValueToWasm0(array, malloc) {
128
- const ptr = malloc(array.length * 4, 4) >>> 0;
129
- const mem = getUint32Memory0();
130
- for (let i = 0; i < array.length; i++) {
131
- mem[ptr / 4 + i] = addHeapObject(array[i]);
132
- }
133
- WASM_VECTOR_LEN = array.length;
134
- return ptr;
135
- }
136
-
137
233
  function getArrayJsValueFromWasm0(ptr, len) {
138
234
  ptr = ptr >>> 0;
139
235
  const mem = getUint32Memory0();
@@ -144,18 +240,6 @@ function getArrayJsValueFromWasm0(ptr, len) {
144
240
  }
145
241
  return result;
146
242
  }
147
-
148
- function getArrayU8FromWasm0(ptr, len) {
149
- ptr = ptr >>> 0;
150
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
151
- }
152
-
153
- function passArray8ToWasm0(arg, malloc) {
154
- const ptr = malloc(arg.length * 1, 1) >>> 0;
155
- getUint8Memory0().set(arg, ptr / 1);
156
- WASM_VECTOR_LEN = arg.length;
157
- return ptr;
158
- }
159
243
  /**
160
244
  * @param {Uint8Array} script
161
245
  * @returns {(BatchedFunctionCall)[]}
@@ -181,34 +265,79 @@ function generate_intent_payload_wasm(script) {
181
265
  }
182
266
  }
183
267
 
268
+ function passArrayJsValueToWasm0(array, malloc) {
269
+ const ptr = malloc(array.length * 4, 4) >>> 0;
270
+ const mem = getUint32Memory0();
271
+ for (let i = 0; i < array.length; i++) {
272
+ mem[ptr / 4 + i] = addHeapObject(array[i]);
273
+ }
274
+ WASM_VECTOR_LEN = array.length;
275
+ return ptr;
276
+ }
277
+
278
+ function getArrayU8FromWasm0(ptr, len) {
279
+ ptr = ptr >>> 0;
280
+ return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
281
+ }
282
+
283
+ function handleError(f, args) {
284
+ try {
285
+ return f.apply(this, args);
286
+ } catch (e) {
287
+ wasm.__wbindgen_exn_store(addHeapObject(e));
288
+ }
289
+ }
290
+ function __wbg_adapter_90(arg0, arg1, arg2, arg3) {
291
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h7a552e5a28352106(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
292
+ }
293
+
184
294
  /**
185
295
  * Arguments for each function.
186
296
  */
187
297
  const BatchArgumentType = Object.freeze({ Raw:0,"0":"Raw",Signer:1,"1":"Signer",PreviousResult:2,"2":"PreviousResult", });
188
298
 
189
- const BatchArgumentWASMFinalization = (typeof FinalizationRegistry === 'undefined')
299
+ const BatchArgumentFinalization = (typeof FinalizationRegistry === 'undefined')
190
300
  ? { register: () => {}, unregister: () => {} }
191
- : new FinalizationRegistry(ptr => wasm.__wbg_batchargumentwasm_free(ptr >>> 0));
301
+ : new FinalizationRegistry(ptr => wasm.__wbg_batchargument_free(ptr >>> 0));
192
302
  /**
193
303
  * Arguments for each function. Wasm bindgen only support C-style enum so use option to work around.
194
304
  */
195
- class BatchArgumentWASM {
305
+ class BatchArgument {
196
306
 
197
307
  static __wrap(ptr) {
198
308
  ptr = ptr >>> 0;
199
- const obj = Object.create(BatchArgumentWASM.prototype);
309
+ const obj = Object.create(BatchArgument.prototype);
200
310
  obj.__wbg_ptr = ptr;
201
- BatchArgumentWASMFinalization.register(obj, obj.__wbg_ptr, obj);
311
+ BatchArgumentFinalization.register(obj, obj.__wbg_ptr, obj);
202
312
  return obj;
203
313
  }
204
314
 
205
315
  static __unwrap(jsValue) {
206
- if (!(jsValue instanceof BatchArgumentWASM)) {
316
+ if (!(jsValue instanceof BatchArgument)) {
207
317
  return 0;
208
318
  }
209
319
  return jsValue.__destroy_into_raw();
210
320
  }
211
321
 
322
+ __destroy_into_raw() {
323
+ const ptr = this.__wbg_ptr;
324
+ this.__wbg_ptr = 0;
325
+ BatchArgumentFinalization.unregister(this);
326
+ return ptr;
327
+ }
328
+
329
+ free() {
330
+ const ptr = this.__destroy_into_raw();
331
+ wasm.__wbg_batchargument_free(ptr);
332
+ }
333
+ }
334
+
335
+ const BatchArgumentWASMFinalization = (typeof FinalizationRegistry === 'undefined')
336
+ ? { register: () => {}, unregister: () => {} }
337
+ : new FinalizationRegistry(ptr => wasm.__wbg_batchargumentwasm_free(ptr >>> 0));
338
+
339
+ class BatchArgumentWASM {
340
+
212
341
  __destroy_into_raw() {
213
342
  const ptr = this.__wbg_ptr;
214
343
  this.__wbg_ptr = 0;
@@ -222,24 +351,24 @@ class BatchArgumentWASM {
222
351
  }
223
352
  /**
224
353
  * @param {Uint8Array} bytes
225
- * @returns {BatchArgumentWASM}
354
+ * @returns {BatchArgument}
226
355
  */
227
356
  static new_bytes(bytes) {
228
357
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
229
358
  const len0 = WASM_VECTOR_LEN;
230
359
  const ret = wasm.batchargumentwasm_new_bytes(ptr0, len0);
231
- return BatchArgumentWASM.__wrap(ret);
360
+ return BatchArgument.__wrap(ret);
232
361
  }
233
362
  /**
234
363
  * @param {number} signer_idx
235
- * @returns {BatchArgumentWASM}
364
+ * @returns {BatchArgument}
236
365
  */
237
366
  static new_signer(signer_idx) {
238
367
  const ret = wasm.batchargumentwasm_new_signer(signer_idx);
239
- return BatchArgumentWASM.__wrap(ret);
368
+ return BatchArgument.__wrap(ret);
240
369
  }
241
370
  /**
242
- * @returns {BatchArgumentWASM}
371
+ * @returns {BatchArgument}
243
372
  */
244
373
  borrow() {
245
374
  try {
@@ -251,13 +380,13 @@ class BatchArgumentWASM {
251
380
  if (r2) {
252
381
  throw takeObject(r1);
253
382
  }
254
- return BatchArgumentWASM.__wrap(r0);
383
+ return BatchArgument.__wrap(r0);
255
384
  } finally {
256
385
  wasm.__wbindgen_add_to_stack_pointer(16);
257
386
  }
258
387
  }
259
388
  /**
260
- * @returns {BatchArgumentWASM}
389
+ * @returns {BatchArgument}
261
390
  */
262
391
  borrow_mut() {
263
392
  try {
@@ -269,13 +398,13 @@ class BatchArgumentWASM {
269
398
  if (r2) {
270
399
  throw takeObject(r1);
271
400
  }
272
- return BatchArgumentWASM.__wrap(r0);
401
+ return BatchArgument.__wrap(r0);
273
402
  } finally {
274
403
  wasm.__wbindgen_add_to_stack_pointer(16);
275
404
  }
276
405
  }
277
406
  /**
278
- * @returns {BatchArgumentWASM}
407
+ * @returns {BatchArgument}
279
408
  */
280
409
  copy() {
281
410
  try {
@@ -287,7 +416,7 @@ class BatchArgumentWASM {
287
416
  if (r2) {
288
417
  throw takeObject(r1);
289
418
  }
290
- return BatchArgumentWASM.__wrap(r0);
419
+ return BatchArgument.__wrap(r0);
291
420
  } finally {
292
421
  wasm.__wbindgen_add_to_stack_pointer(16);
293
422
  }
@@ -368,8 +497,8 @@ class BatchedFunctionCallBuilder {
368
497
  * @param {string} module
369
498
  * @param {string} _function
370
499
  * @param {(string)[]} ty_args
371
- * @param {(BatchArgumentWASM)[]} args
372
- * @returns {(BatchArgumentWASM)[]}
500
+ * @param {(BatchArgument)[]} args
501
+ * @returns {(BatchArgument)[]}
373
502
  */
374
503
  add_batched_call(module, _function, ty_args, args) {
375
504
  try {
@@ -419,13 +548,26 @@ class BatchedFunctionCallBuilder {
419
548
  wasm.__wbindgen_add_to_stack_pointer(16);
420
549
  }
421
550
  }
551
+ /**
552
+ * @param {string} api_url
553
+ * @param {string} module_name
554
+ * @returns {Promise<void>}
555
+ */
556
+ load_module(api_url, module_name) {
557
+ const ptr0 = passStringToWasm0(api_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
558
+ const len0 = WASM_VECTOR_LEN;
559
+ const ptr1 = passStringToWasm0(module_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
560
+ const len1 = WASM_VECTOR_LEN;
561
+ const ret = wasm.batchedfunctioncallbuilder_load_module(this.__wbg_ptr, ptr0, len0, ptr1, len1);
562
+ return takeObject(ret);
563
+ }
422
564
  }
423
565
 
424
566
  function __wbg_get_imports() {
425
567
  const imports = {};
426
568
  imports.wbg = {};
427
- imports.wbg.__wbg_batchargumentwasm_new = function(arg0) {
428
- const ret = BatchArgumentWASM.__wrap(arg0);
569
+ imports.wbg.__wbg_batchargument_new = function(arg0) {
570
+ const ret = BatchArgument.__wrap(arg0);
429
571
  return addHeapObject(ret);
430
572
  };
431
573
  imports.wbg.__wbg_batchedfunctioncall_new = function(arg0) {
@@ -435,8 +577,17 @@ function __wbg_get_imports() {
435
577
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
436
578
  takeObject(arg0);
437
579
  };
438
- imports.wbg.__wbg_batchargumentwasm_unwrap = function(arg0) {
439
- const ret = BatchArgumentWASM.__unwrap(takeObject(arg0));
580
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
581
+ const obj = takeObject(arg0).original;
582
+ if (obj.cnt-- == 1) {
583
+ obj.a = 0;
584
+ return true;
585
+ }
586
+ const ret = false;
587
+ return ret;
588
+ };
589
+ imports.wbg.__wbg_batchargument_unwrap = function(arg0) {
590
+ const ret = BatchArgument.__unwrap(takeObject(arg0));
440
591
  return ret;
441
592
  };
442
593
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
@@ -451,9 +602,217 @@ function __wbg_get_imports() {
451
602
  getInt32Memory0()[arg0 / 4 + 1] = len1;
452
603
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
453
604
  };
605
+ imports.wbg.__wbg_fetch_1e4e8ed1f64c7e28 = function(arg0) {
606
+ const ret = fetch(getObject(arg0));
607
+ return addHeapObject(ret);
608
+ };
609
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
610
+ const ret = getObject(arg0);
611
+ return addHeapObject(ret);
612
+ };
613
+ imports.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
614
+ const ret = getObject(arg0).queueMicrotask;
615
+ return addHeapObject(ret);
616
+ };
617
+ imports.wbg.__wbindgen_is_function = function(arg0) {
618
+ const ret = typeof(getObject(arg0)) === 'function';
619
+ return ret;
620
+ };
621
+ imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
622
+ queueMicrotask(getObject(arg0));
623
+ };
624
+ imports.wbg.__wbg_fetch_693453ca3f88c055 = function(arg0, arg1) {
625
+ const ret = getObject(arg0).fetch(getObject(arg1));
626
+ return addHeapObject(ret);
627
+ };
628
+ imports.wbg.__wbg_new_7a20246daa6eec7e = function() { return handleError(function () {
629
+ const ret = new Headers();
630
+ return addHeapObject(ret);
631
+ }, arguments) };
632
+ imports.wbg.__wbg_append_aa3f462f9e2b5ff2 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
633
+ getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
634
+ }, arguments) };
635
+ imports.wbg.__wbg_newwithstrandinit_f581dff0d19a8b03 = function() { return handleError(function (arg0, arg1, arg2) {
636
+ const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
637
+ return addHeapObject(ret);
638
+ }, arguments) };
639
+ imports.wbg.__wbg_signal_3c701f5f40a5f08d = function(arg0) {
640
+ const ret = getObject(arg0).signal;
641
+ return addHeapObject(ret);
642
+ };
643
+ imports.wbg.__wbg_new_0ae46f44b7485bb2 = function() { return handleError(function () {
644
+ const ret = new AbortController();
645
+ return addHeapObject(ret);
646
+ }, arguments) };
647
+ imports.wbg.__wbg_abort_2c4fb490d878d2b2 = function(arg0) {
648
+ getObject(arg0).abort();
649
+ };
650
+ imports.wbg.__wbg_instanceof_Response_4c3b1446206114d1 = function(arg0) {
651
+ let result;
652
+ try {
653
+ result = getObject(arg0) instanceof Response;
654
+ } catch (_) {
655
+ result = false;
656
+ }
657
+ const ret = result;
658
+ return ret;
659
+ };
660
+ imports.wbg.__wbg_url_83a6a4f65f7a2b38 = function(arg0, arg1) {
661
+ const ret = getObject(arg1).url;
662
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
663
+ const len1 = WASM_VECTOR_LEN;
664
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
665
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
666
+ };
667
+ imports.wbg.__wbg_status_d6d47ad2837621eb = function(arg0) {
668
+ const ret = getObject(arg0).status;
669
+ return ret;
670
+ };
671
+ imports.wbg.__wbg_headers_24def508a7518df9 = function(arg0) {
672
+ const ret = getObject(arg0).headers;
673
+ return addHeapObject(ret);
674
+ };
675
+ imports.wbg.__wbg_text_668782292b0bc561 = function() { return handleError(function (arg0) {
676
+ const ret = getObject(arg0).text();
677
+ return addHeapObject(ret);
678
+ }, arguments) };
679
+ imports.wbg.__wbindgen_is_object = function(arg0) {
680
+ const val = getObject(arg0);
681
+ const ret = typeof(val) === 'object' && val !== null;
682
+ return ret;
683
+ };
684
+ imports.wbg.__wbg_newnoargs_e258087cd0daa0ea = function(arg0, arg1) {
685
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
686
+ return addHeapObject(ret);
687
+ };
688
+ imports.wbg.__wbg_next_40fc327bfc8770e6 = function(arg0) {
689
+ const ret = getObject(arg0).next;
690
+ return addHeapObject(ret);
691
+ };
692
+ imports.wbg.__wbg_next_196c84450b364254 = function() { return handleError(function (arg0) {
693
+ const ret = getObject(arg0).next();
694
+ return addHeapObject(ret);
695
+ }, arguments) };
696
+ imports.wbg.__wbg_done_298b57d23c0fc80c = function(arg0) {
697
+ const ret = getObject(arg0).done;
698
+ return ret;
699
+ };
700
+ imports.wbg.__wbg_value_d93c65011f51a456 = function(arg0) {
701
+ const ret = getObject(arg0).value;
702
+ return addHeapObject(ret);
703
+ };
704
+ imports.wbg.__wbg_iterator_2cee6dadfd956dfa = function() {
705
+ const ret = Symbol.iterator;
706
+ return addHeapObject(ret);
707
+ };
708
+ imports.wbg.__wbg_get_e3c254076557e348 = function() { return handleError(function (arg0, arg1) {
709
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
710
+ return addHeapObject(ret);
711
+ }, arguments) };
712
+ imports.wbg.__wbg_call_27c0f87801dedf93 = function() { return handleError(function (arg0, arg1) {
713
+ const ret = getObject(arg0).call(getObject(arg1));
714
+ return addHeapObject(ret);
715
+ }, arguments) };
716
+ imports.wbg.__wbg_new_72fb9a18b5ae2624 = function() {
717
+ const ret = new Object();
718
+ return addHeapObject(ret);
719
+ };
720
+ imports.wbg.__wbg_self_ce0dbfc45cf2f5be = function() { return handleError(function () {
721
+ const ret = self.self;
722
+ return addHeapObject(ret);
723
+ }, arguments) };
724
+ imports.wbg.__wbg_window_c6fb939a7f436783 = function() { return handleError(function () {
725
+ const ret = window.window;
726
+ return addHeapObject(ret);
727
+ }, arguments) };
728
+ imports.wbg.__wbg_globalThis_d1e6af4856ba331b = function() { return handleError(function () {
729
+ const ret = globalThis.globalThis;
730
+ return addHeapObject(ret);
731
+ }, arguments) };
732
+ imports.wbg.__wbg_global_207b558942527489 = function() { return handleError(function () {
733
+ const ret = global.global;
734
+ return addHeapObject(ret);
735
+ }, arguments) };
736
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
737
+ const ret = getObject(arg0) === undefined;
738
+ return ret;
739
+ };
740
+ imports.wbg.__wbg_call_b3ca7c6051f9bec1 = function() { return handleError(function (arg0, arg1, arg2) {
741
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
742
+ return addHeapObject(ret);
743
+ }, arguments) };
744
+ imports.wbg.__wbg_new_81740750da40724f = function(arg0, arg1) {
745
+ try {
746
+ var state0 = {a: arg0, b: arg1};
747
+ var cb0 = (arg0, arg1) => {
748
+ const a = state0.a;
749
+ state0.a = 0;
750
+ try {
751
+ return __wbg_adapter_90(a, state0.b, arg0, arg1);
752
+ } finally {
753
+ state0.a = a;
754
+ }
755
+ };
756
+ const ret = new Promise(cb0);
757
+ return addHeapObject(ret);
758
+ } finally {
759
+ state0.a = state0.b = 0;
760
+ }
761
+ };
762
+ imports.wbg.__wbg_resolve_b0083a7967828ec8 = function(arg0) {
763
+ const ret = Promise.resolve(getObject(arg0));
764
+ return addHeapObject(ret);
765
+ };
766
+ imports.wbg.__wbg_then_0c86a60e8fcfe9f6 = function(arg0, arg1) {
767
+ const ret = getObject(arg0).then(getObject(arg1));
768
+ return addHeapObject(ret);
769
+ };
770
+ imports.wbg.__wbg_then_a73caa9a87991566 = function(arg0, arg1, arg2) {
771
+ const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
772
+ return addHeapObject(ret);
773
+ };
774
+ imports.wbg.__wbg_buffer_12d079cc21e14bdb = function(arg0) {
775
+ const ret = getObject(arg0).buffer;
776
+ return addHeapObject(ret);
777
+ };
778
+ imports.wbg.__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb = function(arg0, arg1, arg2) {
779
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
780
+ return addHeapObject(ret);
781
+ };
782
+ imports.wbg.__wbg_new_63b92bc8671ed464 = function(arg0) {
783
+ const ret = new Uint8Array(getObject(arg0));
784
+ return addHeapObject(ret);
785
+ };
786
+ imports.wbg.__wbg_has_0af94d20077affa2 = function() { return handleError(function (arg0, arg1) {
787
+ const ret = Reflect.has(getObject(arg0), getObject(arg1));
788
+ return ret;
789
+ }, arguments) };
790
+ imports.wbg.__wbg_set_1f9b04f170055d33 = function() { return handleError(function (arg0, arg1, arg2) {
791
+ const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
792
+ return ret;
793
+ }, arguments) };
794
+ imports.wbg.__wbg_stringify_8887fe74e1c50d81 = function() { return handleError(function (arg0) {
795
+ const ret = JSON.stringify(getObject(arg0));
796
+ return addHeapObject(ret);
797
+ }, arguments) };
798
+ imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
799
+ const ret = debugString(getObject(arg1));
800
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
801
+ const len1 = WASM_VECTOR_LEN;
802
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
803
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
804
+ };
454
805
  imports.wbg.__wbindgen_throw = function(arg0, arg1) {
455
806
  throw new Error(getStringFromWasm0(arg0, arg1));
456
807
  };
808
+ imports.wbg.__wbindgen_memory = function() {
809
+ const ret = wasm.memory;
810
+ return addHeapObject(ret);
811
+ };
812
+ imports.wbg.__wbindgen_closure_wrapper1042 = function(arg0, arg1, arg2) {
813
+ const ret = makeMutClosure(arg0, arg1, 297, __wbg_adapter_24);
814
+ return addHeapObject(ret);
815
+ };
457
816
 
458
817
  return imports;
459
818
  }
@@ -483,7 +842,7 @@ function initSync(module) {
483
842
  }
484
843
 
485
844
  async function get_wasm (){
486
- return (await import('./aptos_intent_bg-DEdT9YzH.js')).default()
845
+ return (await import('./aptos_intent_bg-vY0jOTb5.js')).default()
487
846
  }
488
847
 
489
- export { BatchArgumentType, BatchArgumentWASM, BatchedFunctionCall, BatchedFunctionCallBuilder, generate_intent_payload_wasm, get_wasm, initSync };
848
+ export { BatchArgument, BatchArgumentType, BatchArgumentWASM, BatchedFunctionCall, BatchedFunctionCallBuilder, generate_intent_payload_wasm, get_wasm, initSync };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "Aptos Labs <opensource@aptoslabs.com>"
5
5
  ],
6
6
  "description": "Generating Move Script from intent",
7
- "version": "0.0.9",
7
+ "version": "0.0.11",
8
8
  "type": "module",
9
9
  "license": "Apache-2.0",
10
10
  "repository": {