@wgb5445/aptos-intent-npm 0.0.10 → 0.0.12

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/dist/cjs/entry.js CHANGED
@@ -298,24 +298,24 @@ function __wbg_adapter_90(arg0, arg1, arg2, arg3) {
298
298
  */
299
299
  const BatchArgumentType = Object.freeze({ Raw:0,"0":"Raw",Signer:1,"1":"Signer",PreviousResult:2,"2":"PreviousResult", });
300
300
 
301
- const BatchArgumentWASMFinalization = (typeof FinalizationRegistry === 'undefined')
301
+ const BatchArgumentFinalization = (typeof FinalizationRegistry === 'undefined')
302
302
  ? { register: () => {}, unregister: () => {} }
303
- : new FinalizationRegistry(ptr => wasm.__wbg_batchargumentwasm_free(ptr >>> 0));
303
+ : new FinalizationRegistry(ptr => wasm.__wbg_batchargument_free(ptr >>> 0));
304
304
  /**
305
305
  * Arguments for each function. Wasm bindgen only support C-style enum so use option to work around.
306
306
  */
307
- class BatchArgumentWASM {
307
+ class BatchArgument {
308
308
 
309
309
  static __wrap(ptr) {
310
310
  ptr = ptr >>> 0;
311
- const obj = Object.create(BatchArgumentWASM.prototype);
311
+ const obj = Object.create(BatchArgument.prototype);
312
312
  obj.__wbg_ptr = ptr;
313
- BatchArgumentWASMFinalization.register(obj, obj.__wbg_ptr, obj);
313
+ BatchArgumentFinalization.register(obj, obj.__wbg_ptr, obj);
314
314
  return obj;
315
315
  }
316
316
 
317
317
  static __unwrap(jsValue) {
318
- if (!(jsValue instanceof BatchArgumentWASM)) {
318
+ if (!(jsValue instanceof BatchArgument)) {
319
319
  return 0;
320
320
  }
321
321
  return jsValue.__destroy_into_raw();
@@ -324,82 +324,82 @@ class BatchArgumentWASM {
324
324
  __destroy_into_raw() {
325
325
  const ptr = this.__wbg_ptr;
326
326
  this.__wbg_ptr = 0;
327
- BatchArgumentWASMFinalization.unregister(this);
327
+ BatchArgumentFinalization.unregister(this);
328
328
  return ptr;
329
329
  }
330
330
 
331
331
  free() {
332
332
  const ptr = this.__destroy_into_raw();
333
- wasm.__wbg_batchargumentwasm_free(ptr);
333
+ wasm.__wbg_batchargument_free(ptr);
334
334
  }
335
335
  /**
336
336
  * @param {Uint8Array} bytes
337
- * @returns {BatchArgumentWASM}
337
+ * @returns {BatchArgument}
338
338
  */
339
339
  static new_bytes(bytes) {
340
340
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
341
341
  const len0 = WASM_VECTOR_LEN;
342
- const ret = wasm.batchargumentwasm_new_bytes(ptr0, len0);
343
- return BatchArgumentWASM.__wrap(ret);
342
+ const ret = wasm.batchargument_new_bytes(ptr0, len0);
343
+ return BatchArgument.__wrap(ret);
344
344
  }
345
345
  /**
346
346
  * @param {number} signer_idx
347
- * @returns {BatchArgumentWASM}
347
+ * @returns {BatchArgument}
348
348
  */
349
349
  static new_signer(signer_idx) {
350
- const ret = wasm.batchargumentwasm_new_signer(signer_idx);
351
- return BatchArgumentWASM.__wrap(ret);
350
+ const ret = wasm.batchargument_new_signer(signer_idx);
351
+ return BatchArgument.__wrap(ret);
352
352
  }
353
353
  /**
354
- * @returns {BatchArgumentWASM}
354
+ * @returns {BatchArgument}
355
355
  */
356
356
  borrow() {
357
357
  try {
358
358
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
359
- wasm.batchargumentwasm_borrow(retptr, this.__wbg_ptr);
359
+ wasm.batchargument_borrow(retptr, this.__wbg_ptr);
360
360
  var r0 = getInt32Memory0()[retptr / 4 + 0];
361
361
  var r1 = getInt32Memory0()[retptr / 4 + 1];
362
362
  var r2 = getInt32Memory0()[retptr / 4 + 2];
363
363
  if (r2) {
364
364
  throw takeObject(r1);
365
365
  }
366
- return BatchArgumentWASM.__wrap(r0);
366
+ return BatchArgument.__wrap(r0);
367
367
  } finally {
368
368
  wasm.__wbindgen_add_to_stack_pointer(16);
369
369
  }
370
370
  }
371
371
  /**
372
- * @returns {BatchArgumentWASM}
372
+ * @returns {BatchArgument}
373
373
  */
374
374
  borrow_mut() {
375
375
  try {
376
376
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
377
- wasm.batchargumentwasm_borrow_mut(retptr, this.__wbg_ptr);
377
+ wasm.batchargument_borrow_mut(retptr, this.__wbg_ptr);
378
378
  var r0 = getInt32Memory0()[retptr / 4 + 0];
379
379
  var r1 = getInt32Memory0()[retptr / 4 + 1];
380
380
  var r2 = getInt32Memory0()[retptr / 4 + 2];
381
381
  if (r2) {
382
382
  throw takeObject(r1);
383
383
  }
384
- return BatchArgumentWASM.__wrap(r0);
384
+ return BatchArgument.__wrap(r0);
385
385
  } finally {
386
386
  wasm.__wbindgen_add_to_stack_pointer(16);
387
387
  }
388
388
  }
389
389
  /**
390
- * @returns {BatchArgumentWASM}
390
+ * @returns {BatchArgument}
391
391
  */
392
392
  copy() {
393
393
  try {
394
394
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
395
- wasm.batchargumentwasm_copy(retptr, this.__wbg_ptr);
395
+ wasm.batchargument_copy(retptr, this.__wbg_ptr);
396
396
  var r0 = getInt32Memory0()[retptr / 4 + 0];
397
397
  var r1 = getInt32Memory0()[retptr / 4 + 1];
398
398
  var r2 = getInt32Memory0()[retptr / 4 + 2];
399
399
  if (r2) {
400
400
  throw takeObject(r1);
401
401
  }
402
- return BatchArgumentWASM.__wrap(r0);
402
+ return BatchArgument.__wrap(r0);
403
403
  } finally {
404
404
  wasm.__wbindgen_add_to_stack_pointer(16);
405
405
  }
@@ -480,8 +480,8 @@ class BatchedFunctionCallBuilder {
480
480
  * @param {string} module
481
481
  * @param {string} _function
482
482
  * @param {(string)[]} ty_args
483
- * @param {(BatchArgumentWASM)[]} args
484
- * @returns {(BatchArgumentWASM)[]}
483
+ * @param {(BatchArgument)[]} args
484
+ * @returns {(BatchArgument)[]}
485
485
  */
486
486
  add_batched_call(module, _function, ty_args, args) {
487
487
  try {
@@ -549,8 +549,8 @@ class BatchedFunctionCallBuilder {
549
549
  function __wbg_get_imports() {
550
550
  const imports = {};
551
551
  imports.wbg = {};
552
- imports.wbg.__wbg_batchargumentwasm_new = function(arg0) {
553
- const ret = BatchArgumentWASM.__wrap(arg0);
552
+ imports.wbg.__wbg_batchargument_new = function(arg0) {
553
+ const ret = BatchArgument.__wrap(arg0);
554
554
  return addHeapObject(ret);
555
555
  };
556
556
  imports.wbg.__wbg_batchedfunctioncall_new = function(arg0) {
@@ -569,8 +569,8 @@ function __wbg_get_imports() {
569
569
  const ret = false;
570
570
  return ret;
571
571
  };
572
- imports.wbg.__wbg_batchargumentwasm_unwrap = function(arg0) {
573
- const ret = BatchArgumentWASM.__unwrap(takeObject(arg0));
572
+ imports.wbg.__wbg_batchargument_unwrap = function(arg0) {
573
+ const ret = BatchArgument.__unwrap(takeObject(arg0));
574
574
  return ret;
575
575
  };
576
576
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
@@ -825,11 +825,11 @@ function initSync(module) {
825
825
  }
826
826
 
827
827
  async function get_wasm (){
828
- return (await Promise.resolve().then(function () { return require('./aptos_intent_bg-Dke4lYNx.js'); })).default()
828
+ return (await Promise.resolve().then(function () { return require('./aptos_intent_bg-A1npHFCR.js'); })).default()
829
829
  }
830
830
 
831
+ exports.BatchArgument = BatchArgument;
831
832
  exports.BatchArgumentType = BatchArgumentType;
832
- exports.BatchArgumentWASM = BatchArgumentWASM;
833
833
  exports.BatchedFunctionCall = BatchedFunctionCall;
834
834
  exports.BatchedFunctionCallBuilder = BatchedFunctionCallBuilder;
835
835
  exports.generate_intent_payload_wasm = generate_intent_payload_wasm;