@cardananium/cquisitor-lib 0.1.0-beta.16 → 0.1.0-beta.17

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.
@@ -290,49 +290,39 @@ export function get_possible_types_for_input(input) {
290
290
  }
291
291
 
292
292
  /**
293
- * @param {string} tx_hex
294
- * @returns {string}
293
+ * @param {string} hex
294
+ * @returns {any}
295
295
  */
296
- export function get_necessary_data_list_js(tx_hex) {
297
- let deferred3_0;
298
- let deferred3_1;
296
+ export function decode_plutus_program_uplc_json(hex) {
299
297
  try {
300
298
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
301
- const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
299
+ const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
302
300
  const len0 = WASM_VECTOR_LEN;
303
- wasm.get_necessary_data_list_js(retptr, ptr0, len0);
301
+ wasm.decode_plutus_program_uplc_json(retptr, ptr0, len0);
304
302
  var r0 = getInt32Memory0()[retptr / 4 + 0];
305
303
  var r1 = getInt32Memory0()[retptr / 4 + 1];
306
304
  var r2 = getInt32Memory0()[retptr / 4 + 2];
307
- var r3 = getInt32Memory0()[retptr / 4 + 3];
308
- var ptr2 = r0;
309
- var len2 = r1;
310
- if (r3) {
311
- ptr2 = 0; len2 = 0;
312
- throw takeObject(r2);
305
+ if (r2) {
306
+ throw takeObject(r1);
313
307
  }
314
- deferred3_0 = ptr2;
315
- deferred3_1 = len2;
316
- return getStringFromWasm0(ptr2, len2);
308
+ return takeObject(r0);
317
309
  } finally {
318
310
  wasm.__wbindgen_add_to_stack_pointer(16);
319
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
320
311
  }
321
312
  }
322
313
 
323
314
  /**
324
- * @param {string} tx_hex
325
- * @param {any} validation_context
315
+ * @param {string} hex
326
316
  * @returns {string}
327
317
  */
328
- export function validate_transaction_js(tx_hex, validation_context) {
318
+ export function decode_plutus_program_pretty_uplc(hex) {
329
319
  let deferred3_0;
330
320
  let deferred3_1;
331
321
  try {
332
322
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
333
- const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
323
+ const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
334
324
  const len0 = WASM_VECTOR_LEN;
335
- wasm.validate_transaction_js(retptr, ptr0, len0, addHeapObject(validation_context));
325
+ wasm.decode_plutus_program_pretty_uplc(retptr, ptr0, len0);
336
326
  var r0 = getInt32Memory0()[retptr / 4 + 0];
337
327
  var r1 = getInt32Memory0()[retptr / 4 + 1];
338
328
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -402,61 +392,49 @@ export function execute_tx_scripts(tx_hex, utxo_json, cost_models_json) {
402
392
  }
403
393
 
404
394
  /**
405
- * @param {string} hex_str
406
- * @returns {any}
407
- */
408
- export function check_block_or_tx_signatures(hex_str) {
409
- try {
410
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
411
- const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
412
- const len0 = WASM_VECTOR_LEN;
413
- wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
414
- var r0 = getInt32Memory0()[retptr / 4 + 0];
415
- var r1 = getInt32Memory0()[retptr / 4 + 1];
416
- var r2 = getInt32Memory0()[retptr / 4 + 2];
417
- if (r2) {
418
- throw takeObject(r1);
419
- }
420
- return takeObject(r0);
421
- } finally {
422
- wasm.__wbindgen_add_to_stack_pointer(16);
423
- }
424
- }
425
-
426
- /**
427
- * @param {string} hex
428
- * @returns {any}
395
+ * @param {string} tx_hex
396
+ * @returns {string}
429
397
  */
430
- export function decode_plutus_program_uplc_json(hex) {
398
+ export function get_necessary_data_list_js(tx_hex) {
399
+ let deferred3_0;
400
+ let deferred3_1;
431
401
  try {
432
402
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
433
- const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
403
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
434
404
  const len0 = WASM_VECTOR_LEN;
435
- wasm.decode_plutus_program_uplc_json(retptr, ptr0, len0);
405
+ wasm.get_necessary_data_list_js(retptr, ptr0, len0);
436
406
  var r0 = getInt32Memory0()[retptr / 4 + 0];
437
407
  var r1 = getInt32Memory0()[retptr / 4 + 1];
438
408
  var r2 = getInt32Memory0()[retptr / 4 + 2];
439
- if (r2) {
440
- throw takeObject(r1);
409
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
410
+ var ptr2 = r0;
411
+ var len2 = r1;
412
+ if (r3) {
413
+ ptr2 = 0; len2 = 0;
414
+ throw takeObject(r2);
441
415
  }
442
- return takeObject(r0);
416
+ deferred3_0 = ptr2;
417
+ deferred3_1 = len2;
418
+ return getStringFromWasm0(ptr2, len2);
443
419
  } finally {
444
420
  wasm.__wbindgen_add_to_stack_pointer(16);
421
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
445
422
  }
446
423
  }
447
424
 
448
425
  /**
449
- * @param {string} hex
426
+ * @param {string} tx_hex
427
+ * @param {any} validation_context
450
428
  * @returns {string}
451
429
  */
452
- export function decode_plutus_program_pretty_uplc(hex) {
430
+ export function validate_transaction_js(tx_hex, validation_context) {
453
431
  let deferred3_0;
454
432
  let deferred3_1;
455
433
  try {
456
434
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
457
- const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
435
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
458
436
  const len0 = WASM_VECTOR_LEN;
459
- wasm.decode_plutus_program_pretty_uplc(retptr, ptr0, len0);
437
+ wasm.validate_transaction_js(retptr, ptr0, len0, addHeapObject(validation_context));
460
438
  var r0 = getInt32Memory0()[retptr / 4 + 0];
461
439
  var r1 = getInt32Memory0()[retptr / 4 + 1];
462
440
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -498,11 +476,26 @@ export function cbor_to_json(cbor_hex) {
498
476
  }
499
477
  }
500
478
 
501
- function _assertClass(instance, klass) {
502
- if (!(instance instanceof klass)) {
503
- throw new Error(`expected instance of ${klass.name}`);
479
+ /**
480
+ * @param {string} hex_str
481
+ * @returns {any}
482
+ */
483
+ export function check_block_or_tx_signatures(hex_str) {
484
+ try {
485
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
486
+ const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
487
+ const len0 = WASM_VECTOR_LEN;
488
+ wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
489
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
490
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
491
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
492
+ if (r2) {
493
+ throw takeObject(r1);
494
+ }
495
+ return takeObject(r0);
496
+ } finally {
497
+ wasm.__wbindgen_add_to_stack_pointer(16);
504
498
  }
505
- return instance.ptr;
506
499
  }
507
500
 
508
501
  function getArrayU8FromWasm0(ptr, len) {
@@ -517,10 +510,155 @@ function passArray8ToWasm0(arg, malloc) {
517
510
  return ptr;
518
511
  }
519
512
 
520
- function getArrayU32FromWasm0(ptr, len) {
521
- ptr = ptr >>> 0;
522
- return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
513
+ function _assertClass(instance, klass) {
514
+ if (!(instance instanceof klass)) {
515
+ throw new Error(`expected instance of ${klass.name}`);
516
+ }
517
+ return instance.ptr;
518
+ }
519
+ /**
520
+ * @param {string} json
521
+ * @param {PlutusDatumSchema} schema
522
+ * @returns {PlutusData}
523
+ */
524
+ export function encode_json_str_to_plutus_datum(json, schema) {
525
+ try {
526
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
527
+ const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
528
+ const len0 = WASM_VECTOR_LEN;
529
+ wasm.encode_json_str_to_plutus_datum(retptr, ptr0, len0, schema);
530
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
531
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
532
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
533
+ if (r2) {
534
+ throw takeObject(r1);
535
+ }
536
+ return PlutusData.__wrap(r0);
537
+ } finally {
538
+ wasm.__wbindgen_add_to_stack_pointer(16);
539
+ }
540
+ }
541
+
542
+ /**
543
+ * @param {PlutusData} datum
544
+ * @param {PlutusDatumSchema} schema
545
+ * @returns {string}
546
+ */
547
+ export function decode_plutus_datum_to_json_str(datum, schema) {
548
+ let deferred2_0;
549
+ let deferred2_1;
550
+ try {
551
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
552
+ _assertClass(datum, PlutusData);
553
+ wasm.decode_plutus_datum_to_json_str(retptr, datum.__wbg_ptr, schema);
554
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
555
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
556
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
557
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
558
+ var ptr1 = r0;
559
+ var len1 = r1;
560
+ if (r3) {
561
+ ptr1 = 0; len1 = 0;
562
+ throw takeObject(r2);
563
+ }
564
+ deferred2_0 = ptr1;
565
+ deferred2_1 = len1;
566
+ return getStringFromWasm0(ptr1, len1);
567
+ } finally {
568
+ wasm.__wbindgen_add_to_stack_pointer(16);
569
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
570
+ }
571
+ }
572
+
573
+ /**
574
+ * @param {Uint8Array} bytes
575
+ * @returns {TransactionMetadatum}
576
+ */
577
+ export function encode_arbitrary_bytes_as_metadatum(bytes) {
578
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
579
+ const len0 = WASM_VECTOR_LEN;
580
+ const ret = wasm.encode_arbitrary_bytes_as_metadatum(ptr0, len0);
581
+ return TransactionMetadatum.__wrap(ret);
523
582
  }
583
+
584
+ /**
585
+ * @param {TransactionMetadatum} metadata
586
+ * @returns {Uint8Array}
587
+ */
588
+ export function decode_arbitrary_bytes_from_metadatum(metadata) {
589
+ try {
590
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
591
+ _assertClass(metadata, TransactionMetadatum);
592
+ wasm.decode_arbitrary_bytes_from_metadatum(retptr, metadata.__wbg_ptr);
593
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
594
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
595
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
596
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
597
+ if (r3) {
598
+ throw takeObject(r2);
599
+ }
600
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
601
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
602
+ return v1;
603
+ } finally {
604
+ wasm.__wbindgen_add_to_stack_pointer(16);
605
+ }
606
+ }
607
+
608
+ /**
609
+ * @param {string} json
610
+ * @param {MetadataJsonSchema} schema
611
+ * @returns {TransactionMetadatum}
612
+ */
613
+ export function encode_json_str_to_metadatum(json, schema) {
614
+ try {
615
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
616
+ const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
617
+ const len0 = WASM_VECTOR_LEN;
618
+ wasm.encode_json_str_to_metadatum(retptr, ptr0, len0, schema);
619
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
620
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
621
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
622
+ if (r2) {
623
+ throw takeObject(r1);
624
+ }
625
+ return TransactionMetadatum.__wrap(r0);
626
+ } finally {
627
+ wasm.__wbindgen_add_to_stack_pointer(16);
628
+ }
629
+ }
630
+
631
+ /**
632
+ * @param {TransactionMetadatum} metadatum
633
+ * @param {MetadataJsonSchema} schema
634
+ * @returns {string}
635
+ */
636
+ export function decode_metadatum_to_json_str(metadatum, schema) {
637
+ let deferred2_0;
638
+ let deferred2_1;
639
+ try {
640
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
641
+ _assertClass(metadatum, TransactionMetadatum);
642
+ wasm.decode_metadatum_to_json_str(retptr, metadatum.__wbg_ptr, schema);
643
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
644
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
645
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
646
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
647
+ var ptr1 = r0;
648
+ var len1 = r1;
649
+ if (r3) {
650
+ ptr1 = 0; len1 = 0;
651
+ throw takeObject(r2);
652
+ }
653
+ deferred2_0 = ptr1;
654
+ deferred2_1 = len1;
655
+ return getStringFromWasm0(ptr1, len1);
656
+ } finally {
657
+ wasm.__wbindgen_add_to_stack_pointer(16);
658
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
659
+ }
660
+ }
661
+
524
662
  /**
525
663
  * @param {Transaction} tx
526
664
  * @param {LinearFee} linear_fee
@@ -612,86 +750,17 @@ export function min_ref_script_fee(total_ref_scripts_size, ref_script_coins_per_
612
750
  }
613
751
  }
614
752
 
753
+ function getArrayU32FromWasm0(ptr, len) {
754
+ ptr = ptr >>> 0;
755
+ return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
756
+ }
757
+
615
758
  function passArray32ToWasm0(arg, malloc) {
616
759
  const ptr = malloc(arg.length * 4, 4) >>> 0;
617
760
  getUint32Memory0().set(arg, ptr / 4);
618
761
  WASM_VECTOR_LEN = arg.length;
619
762
  return ptr;
620
763
  }
621
- /**
622
- * @param {string} password
623
- * @param {string} salt
624
- * @param {string} nonce
625
- * @param {string} data
626
- * @returns {string}
627
- */
628
- export function encrypt_with_password(password, salt, nonce, data) {
629
- let deferred6_0;
630
- let deferred6_1;
631
- try {
632
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
633
- const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
634
- const len0 = WASM_VECTOR_LEN;
635
- const ptr1 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
636
- const len1 = WASM_VECTOR_LEN;
637
- const ptr2 = passStringToWasm0(nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
638
- const len2 = WASM_VECTOR_LEN;
639
- const ptr3 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
640
- const len3 = WASM_VECTOR_LEN;
641
- wasm.encrypt_with_password(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
642
- var r0 = getInt32Memory0()[retptr / 4 + 0];
643
- var r1 = getInt32Memory0()[retptr / 4 + 1];
644
- var r2 = getInt32Memory0()[retptr / 4 + 2];
645
- var r3 = getInt32Memory0()[retptr / 4 + 3];
646
- var ptr5 = r0;
647
- var len5 = r1;
648
- if (r3) {
649
- ptr5 = 0; len5 = 0;
650
- throw takeObject(r2);
651
- }
652
- deferred6_0 = ptr5;
653
- deferred6_1 = len5;
654
- return getStringFromWasm0(ptr5, len5);
655
- } finally {
656
- wasm.__wbindgen_add_to_stack_pointer(16);
657
- wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
658
- }
659
- }
660
-
661
- /**
662
- * @param {string} password
663
- * @param {string} data
664
- * @returns {string}
665
- */
666
- export function decrypt_with_password(password, data) {
667
- let deferred4_0;
668
- let deferred4_1;
669
- try {
670
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
671
- const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
672
- const len0 = WASM_VECTOR_LEN;
673
- const ptr1 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
674
- const len1 = WASM_VECTOR_LEN;
675
- wasm.decrypt_with_password(retptr, ptr0, len0, ptr1, len1);
676
- var r0 = getInt32Memory0()[retptr / 4 + 0];
677
- var r1 = getInt32Memory0()[retptr / 4 + 1];
678
- var r2 = getInt32Memory0()[retptr / 4 + 2];
679
- var r3 = getInt32Memory0()[retptr / 4 + 3];
680
- var ptr3 = r0;
681
- var len3 = r1;
682
- if (r3) {
683
- ptr3 = 0; len3 = 0;
684
- throw takeObject(r2);
685
- }
686
- deferred4_0 = ptr3;
687
- deferred4_1 = len3;
688
- return getStringFromWasm0(ptr3, len3);
689
- } finally {
690
- wasm.__wbindgen_add_to_stack_pointer(16);
691
- wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
692
- }
693
- }
694
-
695
764
  /**
696
765
  * @param {TransactionHash} tx_body_hash
697
766
  * @param {ByronAddress} addr
@@ -907,6 +976,80 @@ export function has_transaction_set_tag(tx_bytes) {
907
976
  }
908
977
  }
909
978
 
979
+ /**
980
+ * @param {string} password
981
+ * @param {string} salt
982
+ * @param {string} nonce
983
+ * @param {string} data
984
+ * @returns {string}
985
+ */
986
+ export function encrypt_with_password(password, salt, nonce, data) {
987
+ let deferred6_0;
988
+ let deferred6_1;
989
+ try {
990
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
991
+ const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
992
+ const len0 = WASM_VECTOR_LEN;
993
+ const ptr1 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
994
+ const len1 = WASM_VECTOR_LEN;
995
+ const ptr2 = passStringToWasm0(nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
996
+ const len2 = WASM_VECTOR_LEN;
997
+ const ptr3 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
998
+ const len3 = WASM_VECTOR_LEN;
999
+ wasm.encrypt_with_password(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
1000
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1001
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1002
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1003
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
1004
+ var ptr5 = r0;
1005
+ var len5 = r1;
1006
+ if (r3) {
1007
+ ptr5 = 0; len5 = 0;
1008
+ throw takeObject(r2);
1009
+ }
1010
+ deferred6_0 = ptr5;
1011
+ deferred6_1 = len5;
1012
+ return getStringFromWasm0(ptr5, len5);
1013
+ } finally {
1014
+ wasm.__wbindgen_add_to_stack_pointer(16);
1015
+ wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
1016
+ }
1017
+ }
1018
+
1019
+ /**
1020
+ * @param {string} password
1021
+ * @param {string} data
1022
+ * @returns {string}
1023
+ */
1024
+ export function decrypt_with_password(password, data) {
1025
+ let deferred4_0;
1026
+ let deferred4_1;
1027
+ try {
1028
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1029
+ const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1030
+ const len0 = WASM_VECTOR_LEN;
1031
+ const ptr1 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1032
+ const len1 = WASM_VECTOR_LEN;
1033
+ wasm.decrypt_with_password(retptr, ptr0, len0, ptr1, len1);
1034
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1035
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1036
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1037
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
1038
+ var ptr3 = r0;
1039
+ var len3 = r1;
1040
+ if (r3) {
1041
+ ptr3 = 0; len3 = 0;
1042
+ throw takeObject(r2);
1043
+ }
1044
+ deferred4_0 = ptr3;
1045
+ deferred4_1 = len3;
1046
+ return getStringFromWasm0(ptr3, len3);
1047
+ } finally {
1048
+ wasm.__wbindgen_add_to_stack_pointer(16);
1049
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
1050
+ }
1051
+ }
1052
+
910
1053
  /**
911
1054
  * @param {Address} address
912
1055
  * @param {TransactionUnspentOutputs} utxos
@@ -932,149 +1075,6 @@ export function create_send_all(address, utxos, config) {
932
1075
  }
933
1076
  }
934
1077
 
935
- /**
936
- * @param {string} json
937
- * @param {PlutusDatumSchema} schema
938
- * @returns {PlutusData}
939
- */
940
- export function encode_json_str_to_plutus_datum(json, schema) {
941
- try {
942
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
943
- const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
944
- const len0 = WASM_VECTOR_LEN;
945
- wasm.encode_json_str_to_plutus_datum(retptr, ptr0, len0, schema);
946
- var r0 = getInt32Memory0()[retptr / 4 + 0];
947
- var r1 = getInt32Memory0()[retptr / 4 + 1];
948
- var r2 = getInt32Memory0()[retptr / 4 + 2];
949
- if (r2) {
950
- throw takeObject(r1);
951
- }
952
- return PlutusData.__wrap(r0);
953
- } finally {
954
- wasm.__wbindgen_add_to_stack_pointer(16);
955
- }
956
- }
957
-
958
- /**
959
- * @param {PlutusData} datum
960
- * @param {PlutusDatumSchema} schema
961
- * @returns {string}
962
- */
963
- export function decode_plutus_datum_to_json_str(datum, schema) {
964
- let deferred2_0;
965
- let deferred2_1;
966
- try {
967
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
968
- _assertClass(datum, PlutusData);
969
- wasm.decode_plutus_datum_to_json_str(retptr, datum.__wbg_ptr, schema);
970
- var r0 = getInt32Memory0()[retptr / 4 + 0];
971
- var r1 = getInt32Memory0()[retptr / 4 + 1];
972
- var r2 = getInt32Memory0()[retptr / 4 + 2];
973
- var r3 = getInt32Memory0()[retptr / 4 + 3];
974
- var ptr1 = r0;
975
- var len1 = r1;
976
- if (r3) {
977
- ptr1 = 0; len1 = 0;
978
- throw takeObject(r2);
979
- }
980
- deferred2_0 = ptr1;
981
- deferred2_1 = len1;
982
- return getStringFromWasm0(ptr1, len1);
983
- } finally {
984
- wasm.__wbindgen_add_to_stack_pointer(16);
985
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
986
- }
987
- }
988
-
989
- /**
990
- * @param {Uint8Array} bytes
991
- * @returns {TransactionMetadatum}
992
- */
993
- export function encode_arbitrary_bytes_as_metadatum(bytes) {
994
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
995
- const len0 = WASM_VECTOR_LEN;
996
- const ret = wasm.encode_arbitrary_bytes_as_metadatum(ptr0, len0);
997
- return TransactionMetadatum.__wrap(ret);
998
- }
999
-
1000
- /**
1001
- * @param {TransactionMetadatum} metadata
1002
- * @returns {Uint8Array}
1003
- */
1004
- export function decode_arbitrary_bytes_from_metadatum(metadata) {
1005
- try {
1006
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1007
- _assertClass(metadata, TransactionMetadatum);
1008
- wasm.decode_arbitrary_bytes_from_metadatum(retptr, metadata.__wbg_ptr);
1009
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1010
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1011
- var r2 = getInt32Memory0()[retptr / 4 + 2];
1012
- var r3 = getInt32Memory0()[retptr / 4 + 3];
1013
- if (r3) {
1014
- throw takeObject(r2);
1015
- }
1016
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
1017
- wasm.__wbindgen_free(r0, r1 * 1, 1);
1018
- return v1;
1019
- } finally {
1020
- wasm.__wbindgen_add_to_stack_pointer(16);
1021
- }
1022
- }
1023
-
1024
- /**
1025
- * @param {string} json
1026
- * @param {MetadataJsonSchema} schema
1027
- * @returns {TransactionMetadatum}
1028
- */
1029
- export function encode_json_str_to_metadatum(json, schema) {
1030
- try {
1031
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1032
- const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1033
- const len0 = WASM_VECTOR_LEN;
1034
- wasm.encode_json_str_to_metadatum(retptr, ptr0, len0, schema);
1035
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1036
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1037
- var r2 = getInt32Memory0()[retptr / 4 + 2];
1038
- if (r2) {
1039
- throw takeObject(r1);
1040
- }
1041
- return TransactionMetadatum.__wrap(r0);
1042
- } finally {
1043
- wasm.__wbindgen_add_to_stack_pointer(16);
1044
- }
1045
- }
1046
-
1047
- /**
1048
- * @param {TransactionMetadatum} metadatum
1049
- * @param {MetadataJsonSchema} schema
1050
- * @returns {string}
1051
- */
1052
- export function decode_metadatum_to_json_str(metadatum, schema) {
1053
- let deferred2_0;
1054
- let deferred2_1;
1055
- try {
1056
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1057
- _assertClass(metadatum, TransactionMetadatum);
1058
- wasm.decode_metadatum_to_json_str(retptr, metadatum.__wbg_ptr, schema);
1059
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1060
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1061
- var r2 = getInt32Memory0()[retptr / 4 + 2];
1062
- var r3 = getInt32Memory0()[retptr / 4 + 3];
1063
- var ptr1 = r0;
1064
- var len1 = r1;
1065
- if (r3) {
1066
- ptr1 = 0; len1 = 0;
1067
- throw takeObject(r2);
1068
- }
1069
- deferred2_0 = ptr1;
1070
- deferred2_1 = len1;
1071
- return getStringFromWasm0(ptr1, len1);
1072
- } finally {
1073
- wasm.__wbindgen_add_to_stack_pointer(16);
1074
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
1075
- }
1076
- }
1077
-
1078
1078
  function handleError(f, args) {
1079
1079
  try {
1080
1080
  return f.apply(this, args);
@@ -1087,64 +1087,39 @@ function handleError(f, args) {
1087
1087
  export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1088
1088
  /**
1089
1089
  */
1090
- export const BlockEra = Object.freeze({ Byron:0,"0":"Byron",Shelley:1,"1":"Shelley",Allegra:2,"2":"Allegra",Mary:3,"3":"Mary",Alonzo:4,"4":"Alonzo",Babbage:5,"5":"Babbage",Conway:6,"6":"Conway",Unknown:7,"7":"Unknown", });
1091
- /**
1092
- */
1093
1090
  export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1094
1091
  /**
1095
1092
  */
1096
- export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1097
- /**
1098
- */
1099
- export const PlutusDataKind = Object.freeze({ ConstrPlutusData:0,"0":"ConstrPlutusData",Map:1,"1":"Map",List:2,"2":"List",Integer:3,"3":"Integer",Bytes:4,"4":"Bytes", });
1093
+ export const VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
1100
1094
  /**
1101
1095
  */
1102
- export const CoinSelectionStrategyCIP2 = Object.freeze({
1096
+ export const BlockEra = Object.freeze({ Byron:0,"0":"Byron",Shelley:1,"1":"Shelley",Allegra:2,"2":"Allegra",Mary:3,"3":"Mary",Alonzo:4,"4":"Alonzo",Babbage:5,"5":"Babbage",Conway:6,"6":"Conway",Unknown:7,"7":"Unknown", });
1103
1097
  /**
1104
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1098
+ * Used to choosed the schema for a script JSON string
1105
1099
  */
1106
- LargestFirst:0,"0":"LargestFirst",
1100
+ export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1107
1101
  /**
1108
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1109
1102
  */
1110
- RandomImprove:1,"1":"RandomImprove",
1103
+ export const CertificateKind = Object.freeze({ StakeRegistration:0,"0":"StakeRegistration",StakeDeregistration:1,"1":"StakeDeregistration",StakeDelegation:2,"2":"StakeDelegation",PoolRegistration:3,"3":"PoolRegistration",PoolRetirement:4,"4":"PoolRetirement",GenesisKeyDelegation:5,"5":"GenesisKeyDelegation",MoveInstantaneousRewardsCert:6,"6":"MoveInstantaneousRewardsCert",CommitteeHotAuth:7,"7":"CommitteeHotAuth",CommitteeColdResign:8,"8":"CommitteeColdResign",DRepDeregistration:9,"9":"DRepDeregistration",DRepRegistration:10,"10":"DRepRegistration",DRepUpdate:11,"11":"DRepUpdate",StakeAndVoteDelegation:12,"12":"StakeAndVoteDelegation",StakeRegistrationAndDelegation:13,"13":"StakeRegistrationAndDelegation",StakeVoteRegistrationAndDelegation:14,"14":"StakeVoteRegistrationAndDelegation",VoteDelegation:15,"15":"VoteDelegation",VoteRegistrationAndDelegation:16,"16":"VoteRegistrationAndDelegation", });
1111
1104
  /**
1112
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1113
1105
  */
1114
- LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1106
+ export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1115
1107
  /**
1116
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1117
1108
  */
1118
- RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1109
+ export const NativeScriptKind = Object.freeze({ ScriptPubkey:0,"0":"ScriptPubkey",ScriptAll:1,"1":"ScriptAll",ScriptAny:2,"2":"ScriptAny",ScriptNOfK:3,"3":"ScriptNOfK",TimelockStart:4,"4":"TimelockStart",TimelockExpiry:5,"5":"TimelockExpiry", });
1119
1110
  /**
1120
1111
  */
1121
1112
  export const TransactionMetadatumKind = Object.freeze({ MetadataMap:0,"0":"MetadataMap",MetadataList:1,"1":"MetadataList",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
1122
1113
  /**
1123
1114
  */
1124
- export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1125
- /**
1126
- */
1127
- export const VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
1128
- /**
1129
- */
1130
- export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1115
+ export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1131
1116
  /**
1132
- * Each new language uses a different namespace for hashing its script
1133
- * This is because you could have a language where the same bytes have different semantics
1134
- * So this avoids scripts in different languages mapping to the same hash
1135
- * Note that the enum value here is different than the enum value for deciding the cost model of a script
1136
1117
  */
1137
- export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1118
+ export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1138
1119
  /**
1139
1120
  */
1140
1121
  export const GovernanceActionKind = Object.freeze({ ParameterChangeAction:0,"0":"ParameterChangeAction",HardForkInitiationAction:1,"1":"HardForkInitiationAction",TreasuryWithdrawalsAction:2,"2":"TreasuryWithdrawalsAction",NoConfidenceAction:3,"3":"NoConfidenceAction",UpdateCommitteeAction:4,"4":"UpdateCommitteeAction",NewConstitutionAction:5,"5":"NewConstitutionAction",InfoAction:6,"6":"InfoAction", });
1141
1122
  /**
1142
- */
1143
- export const AddressKind = Object.freeze({ Base:0,"0":"Base",Pointer:1,"1":"Pointer",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron",Malformed:5,"5":"Malformed", });
1144
- /**
1145
- */
1146
- export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1147
- /**
1148
1123
  * JSON <-> PlutusData conversion schemas.
1149
1124
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
1150
1125
  * https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
@@ -1197,38 +1172,63 @@ BasicConversions:0,"0":"BasicConversions",
1197
1172
  DetailedSchema:1,"1":"DetailedSchema", });
1198
1173
  /**
1199
1174
  */
1200
- export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1175
+ export const RedeemerTagKind = Object.freeze({ Spend:0,"0":"Spend",Mint:1,"1":"Mint",Cert:2,"2":"Cert",Reward:3,"3":"Reward",Vote:4,"4":"Vote",VotingProposal:5,"5":"VotingProposal", });
1201
1176
  /**
1202
1177
  */
1203
- export const NativeScriptKind = Object.freeze({ ScriptPubkey:0,"0":"ScriptPubkey",ScriptAll:1,"1":"ScriptAll",ScriptAny:2,"2":"ScriptAny",ScriptNOfK:3,"3":"ScriptNOfK",TimelockStart:4,"4":"TimelockStart",TimelockExpiry:5,"5":"TimelockExpiry", });
1178
+ export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1204
1179
  /**
1205
- * Used to choosed the schema for a script JSON string
1206
1180
  */
1207
- export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1181
+ export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1208
1182
  /**
1209
1183
  */
1210
- export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1184
+ export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1211
1185
  /**
1212
1186
  */
1213
- export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1187
+ export const CoinSelectionStrategyCIP2 = Object.freeze({
1214
1188
  /**
1189
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1215
1190
  */
1216
- export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1191
+ LargestFirst:0,"0":"LargestFirst",
1217
1192
  /**
1193
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1218
1194
  */
1219
- export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1195
+ RandomImprove:1,"1":"RandomImprove",
1196
+ /**
1197
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1198
+ */
1199
+ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1200
+ /**
1201
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1202
+ */
1203
+ RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1204
+ /**
1205
+ */
1206
+ export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1220
1207
  /**
1221
1208
  */
1222
1209
  export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1223
1210
  /**
1211
+ * Each new language uses a different namespace for hashing its script
1212
+ * This is because you could have a language where the same bytes have different semantics
1213
+ * So this avoids scripts in different languages mapping to the same hash
1214
+ * Note that the enum value here is different than the enum value for deciding the cost model of a script
1224
1215
  */
1225
- export const RedeemerTagKind = Object.freeze({ Spend:0,"0":"Spend",Mint:1,"1":"Mint",Cert:2,"2":"Cert",Reward:3,"3":"Reward",Vote:4,"4":"Vote",VotingProposal:5,"5":"VotingProposal", });
1216
+ export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1226
1217
  /**
1227
1218
  */
1228
- export const CertificateKind = Object.freeze({ StakeRegistration:0,"0":"StakeRegistration",StakeDeregistration:1,"1":"StakeDeregistration",StakeDelegation:2,"2":"StakeDelegation",PoolRegistration:3,"3":"PoolRegistration",PoolRetirement:4,"4":"PoolRetirement",GenesisKeyDelegation:5,"5":"GenesisKeyDelegation",MoveInstantaneousRewardsCert:6,"6":"MoveInstantaneousRewardsCert",CommitteeHotAuth:7,"7":"CommitteeHotAuth",CommitteeColdResign:8,"8":"CommitteeColdResign",DRepDeregistration:9,"9":"DRepDeregistration",DRepRegistration:10,"10":"DRepRegistration",DRepUpdate:11,"11":"DRepUpdate",StakeAndVoteDelegation:12,"12":"StakeAndVoteDelegation",StakeRegistrationAndDelegation:13,"13":"StakeRegistrationAndDelegation",StakeVoteRegistrationAndDelegation:14,"14":"StakeVoteRegistrationAndDelegation",VoteDelegation:15,"15":"VoteDelegation",VoteRegistrationAndDelegation:16,"16":"VoteRegistrationAndDelegation", });
1219
+ export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1229
1220
  /**
1230
1221
  */
1231
1222
  export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1223
+ /**
1224
+ */
1225
+ export const PlutusDataKind = Object.freeze({ ConstrPlutusData:0,"0":"ConstrPlutusData",Map:1,"1":"Map",List:2,"2":"List",Integer:3,"3":"Integer",Bytes:4,"4":"Bytes", });
1226
+ /**
1227
+ */
1228
+ export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1229
+ /**
1230
+ */
1231
+ export const AddressKind = Object.freeze({ Base:0,"0":"Base",Pointer:1,"1":"Pointer",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron",Malformed:5,"5":"Malformed", });
1232
1232
 
1233
1233
  const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
1234
1234
  ? { register: () => {}, unregister: () => {} }
@@ -8567,7 +8567,7 @@ export class DRep {
8567
8567
  */
8568
8568
  static new_key_hash(key_hash) {
8569
8569
  _assertClass(key_hash, Ed25519KeyHash);
8570
- const ret = wasm.credential_from_keyhash(key_hash.__wbg_ptr);
8570
+ const ret = wasm.drep_new_key_hash(key_hash.__wbg_ptr);
8571
8571
  return DRep.__wrap(ret);
8572
8572
  }
8573
8573
  /**
@@ -8576,7 +8576,7 @@ export class DRep {
8576
8576
  */
8577
8577
  static new_script_hash(script_hash) {
8578
8578
  _assertClass(script_hash, ScriptHash);
8579
- const ret = wasm.credential_from_scripthash(script_hash.__wbg_ptr);
8579
+ const ret = wasm.drep_new_script_hash(script_hash.__wbg_ptr);
8580
8580
  return DRep.__wrap(ret);
8581
8581
  }
8582
8582
  /**
@@ -9057,7 +9057,7 @@ export class DRepRegistration {
9057
9057
  * @returns {BigNum}
9058
9058
  */
9059
9059
  coin() {
9060
- const ret = wasm.drepregistration_coin(this.__wbg_ptr);
9060
+ const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
9061
9061
  return BigNum.__wrap(ret);
9062
9062
  }
9063
9063
  /**
@@ -10225,14 +10225,14 @@ export class Ed25519KeyHashes {
10225
10225
  * @returns {Ed25519KeyHashes}
10226
10226
  */
10227
10227
  static new() {
10228
- const ret = wasm.ed25519keyhashes_new();
10228
+ const ret = wasm.credentials_new();
10229
10229
  return Ed25519KeyHashes.__wrap(ret);
10230
10230
  }
10231
10231
  /**
10232
10232
  * @returns {number}
10233
10233
  */
10234
10234
  len() {
10235
- const ret = wasm.ed25519keyhashes_len(this.__wbg_ptr);
10235
+ const ret = wasm.credentials_len(this.__wbg_ptr);
10236
10236
  return ret >>> 0;
10237
10237
  }
10238
10238
  /**
@@ -10658,14 +10658,14 @@ export class ExUnitPrices {
10658
10658
  * @returns {UnitInterval}
10659
10659
  */
10660
10660
  mem_price() {
10661
- const ret = wasm.drepvotingthresholds_motion_no_confidence(this.__wbg_ptr);
10661
+ const ret = wasm.committee_quorum_threshold(this.__wbg_ptr);
10662
10662
  return UnitInterval.__wrap(ret);
10663
10663
  }
10664
10664
  /**
10665
10665
  * @returns {UnitInterval}
10666
10666
  */
10667
10667
  step_price() {
10668
- const ret = wasm.drepvotingthresholds_committee_normal(this.__wbg_ptr);
10668
+ const ret = wasm.exunitprices_step_price(this.__wbg_ptr);
10669
10669
  return UnitInterval.__wrap(ret);
10670
10670
  }
10671
10671
  /**
@@ -13285,7 +13285,7 @@ export class GovernanceActionIds {
13285
13285
  * @returns {GovernanceActionIds}
13286
13286
  */
13287
13287
  static new() {
13288
- const ret = wasm.assetnames_new();
13288
+ const ret = wasm.governanceactionids_new();
13289
13289
  return GovernanceActionIds.__wrap(ret);
13290
13290
  }
13291
13291
  /**
@@ -15385,7 +15385,7 @@ export class LegacyDaedalusPrivateKey {
15385
15385
  as_bytes() {
15386
15386
  try {
15387
15387
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
15388
- wasm.bip32privatekey_as_bytes(retptr, this.__wbg_ptr);
15388
+ wasm.legacydaedalusprivatekey_as_bytes(retptr, this.__wbg_ptr);
15389
15389
  var r0 = getInt32Memory0()[retptr / 4 + 0];
15390
15390
  var r1 = getInt32Memory0()[retptr / 4 + 1];
15391
15391
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
@@ -15401,7 +15401,7 @@ export class LegacyDaedalusPrivateKey {
15401
15401
  chaincode() {
15402
15402
  try {
15403
15403
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
15404
- wasm.bip32privatekey_chaincode(retptr, this.__wbg_ptr);
15404
+ wasm.legacydaedalusprivatekey_chaincode(retptr, this.__wbg_ptr);
15405
15405
  var r0 = getInt32Memory0()[retptr / 4 + 0];
15406
15406
  var r1 = getInt32Memory0()[retptr / 4 + 1];
15407
15407
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
@@ -18617,7 +18617,7 @@ export class NewConstitutionAction {
18617
18617
  * @returns {GovernanceActionId | undefined}
18618
18618
  */
18619
18619
  gov_action_id() {
18620
- const ret = wasm.hardforkinitiationaction_gov_action_id(this.__wbg_ptr);
18620
+ const ret = wasm.newconstitutionaction_gov_action_id(this.__wbg_ptr);
18621
18621
  return ret === 0 ? undefined : GovernanceActionId.__wrap(ret);
18622
18622
  }
18623
18623
  /**
@@ -18829,7 +18829,7 @@ export class NoConfidenceAction {
18829
18829
  * @returns {GovernanceActionId | undefined}
18830
18830
  */
18831
18831
  gov_action_id() {
18832
- const ret = wasm.hardforkinitiationaction_gov_action_id(this.__wbg_ptr);
18832
+ const ret = wasm.noconfidenceaction_gov_action_id(this.__wbg_ptr);
18833
18833
  return ret === 0 ? undefined : GovernanceActionId.__wrap(ret);
18834
18834
  }
18835
18835
  /**
@@ -20924,7 +20924,7 @@ export class PlutusWitnesses {
20924
20924
  * @returns {PlutusWitnesses}
20925
20925
  */
20926
20926
  static new() {
20927
- const ret = wasm.plutuswitnesses_new();
20927
+ const ret = wasm.fixedtransactionbodies_new();
20928
20928
  return PlutusWitnesses.__wrap(ret);
20929
20929
  }
20930
20930
  /**
@@ -21075,7 +21075,7 @@ export class Pointer {
21075
21075
  * @returns {BigNum}
21076
21076
  */
21077
21077
  cert_index_bignum() {
21078
- const ret = wasm.constrplutusdata_alternative(this.__wbg_ptr);
21078
+ const ret = wasm.pointer_cert_index_bignum(this.__wbg_ptr);
21079
21079
  return BigNum.__wrap(ret);
21080
21080
  }
21081
21081
  }
@@ -23905,7 +23905,7 @@ export class PublicKeys {
23905
23905
  /**
23906
23906
  */
23907
23907
  constructor() {
23908
- const ret = wasm.languages_new();
23908
+ const ret = wasm.publickeys_new();
23909
23909
  this.__wbg_ptr = ret >>> 0;
23910
23910
  return this;
23911
23911
  }
@@ -27998,14 +27998,14 @@ export class StakeRegistration {
27998
27998
  * @returns {Credential}
27999
27999
  */
28000
28000
  stake_credential() {
28001
- const ret = wasm.stakederegistration_stake_credential(this.__wbg_ptr);
28001
+ const ret = wasm.stakeregistration_stake_credential(this.__wbg_ptr);
28002
28002
  return Credential.__wrap(ret);
28003
28003
  }
28004
28004
  /**
28005
28005
  * @returns {BigNum | undefined}
28006
28006
  */
28007
28007
  coin() {
28008
- const ret = wasm.stakederegistration_coin(this.__wbg_ptr);
28008
+ const ret = wasm.stakeregistration_coin(this.__wbg_ptr);
28009
28009
  return ret === 0 ? undefined : BigNum.__wrap(ret);
28010
28010
  }
28011
28011
  /**
@@ -28014,7 +28014,7 @@ export class StakeRegistration {
28014
28014
  */
28015
28015
  static new(stake_credential) {
28016
28016
  _assertClass(stake_credential, Credential);
28017
- const ret = wasm.stakederegistration_new(stake_credential.__wbg_ptr);
28017
+ const ret = wasm.stakeregistration_new(stake_credential.__wbg_ptr);
28018
28018
  return StakeRegistration.__wrap(ret);
28019
28019
  }
28020
28020
  /**
@@ -28025,14 +28025,14 @@ export class StakeRegistration {
28025
28025
  static new_with_explicit_deposit(stake_credential, coin) {
28026
28026
  _assertClass(stake_credential, Credential);
28027
28027
  _assertClass(coin, BigNum);
28028
- const ret = wasm.stakederegistration_new_with_explicit_refund(stake_credential.__wbg_ptr, coin.__wbg_ptr);
28028
+ const ret = wasm.stakeregistration_new_with_explicit_deposit(stake_credential.__wbg_ptr, coin.__wbg_ptr);
28029
28029
  return StakeRegistration.__wrap(ret);
28030
28030
  }
28031
28031
  /**
28032
28032
  * @returns {boolean}
28033
28033
  */
28034
28034
  has_script_credentials() {
28035
- const ret = wasm.stakederegistration_has_script_credentials(this.__wbg_ptr);
28035
+ const ret = wasm.stakeregistration_has_script_credentials(this.__wbg_ptr);
28036
28036
  return ret !== 0;
28037
28037
  }
28038
28038
  }
@@ -28224,7 +28224,7 @@ export class StakeRegistrationAndDelegation {
28224
28224
  * @returns {BigNum}
28225
28225
  */
28226
28226
  coin() {
28227
- const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
28227
+ const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
28228
28228
  return BigNum.__wrap(ret);
28229
28229
  }
28230
28230
  /**
@@ -28429,7 +28429,7 @@ export class StakeVoteRegistrationAndDelegation {
28429
28429
  * @returns {Ed25519KeyHash}
28430
28430
  */
28431
28431
  pool_keyhash() {
28432
- const ret = wasm.stakeregistrationanddelegation_pool_keyhash(this.__wbg_ptr);
28432
+ const ret = wasm.stakevoteregistrationanddelegation_pool_keyhash(this.__wbg_ptr);
28433
28433
  return Ed25519KeyHash.__wrap(ret);
28434
28434
  }
28435
28435
  /**
@@ -28443,7 +28443,7 @@ export class StakeVoteRegistrationAndDelegation {
28443
28443
  * @returns {BigNum}
28444
28444
  */
28445
28445
  coin() {
28446
- const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
28446
+ const ret = wasm.stakevoteregistrationanddelegation_coin(this.__wbg_ptr);
28447
28447
  return BigNum.__wrap(ret);
28448
28448
  }
28449
28449
  /**
@@ -28500,7 +28500,7 @@ export class Strings {
28500
28500
  * @returns {Strings}
28501
28501
  */
28502
28502
  static new() {
28503
- const ret = wasm.strings_new();
28503
+ const ret = wasm.relays_new();
28504
28504
  return Strings.__wrap(ret);
28505
28505
  }
28506
28506
  /**
@@ -28731,7 +28731,7 @@ export class TimelockExpiry {
28731
28731
  * @returns {BigNum}
28732
28732
  */
28733
28733
  slot_bignum() {
28734
- const ret = wasm.timelockexpiry_slot_bignum(this.__wbg_ptr);
28734
+ const ret = wasm.linearfee_constant(this.__wbg_ptr);
28735
28735
  return BigNum.__wrap(ret);
28736
28736
  }
28737
28737
  /**
@@ -28751,7 +28751,7 @@ export class TimelockExpiry {
28751
28751
  */
28752
28752
  static new_timelockexpiry(slot) {
28753
28753
  _assertClass(slot, BigNum);
28754
- const ret = wasm.drepregistration_coin(slot.__wbg_ptr);
28754
+ const ret = wasm.timelockexpiry_new_timelockexpiry(slot.__wbg_ptr);
28755
28755
  return TimelockExpiry.__wrap(ret);
28756
28756
  }
28757
28757
  }
@@ -28951,7 +28951,7 @@ export class TimelockStart {
28951
28951
  * @returns {BigNum}
28952
28952
  */
28953
28953
  slot_bignum() {
28954
- const ret = wasm.timelockexpiry_slot_bignum(this.__wbg_ptr);
28954
+ const ret = wasm.linearfee_constant(this.__wbg_ptr);
28955
28955
  return BigNum.__wrap(ret);
28956
28956
  }
28957
28957
  /**
@@ -28971,7 +28971,7 @@ export class TimelockStart {
28971
28971
  */
28972
28972
  static new_timelockstart(slot) {
28973
28973
  _assertClass(slot, BigNum);
28974
- const ret = wasm.drepregistration_coin(slot.__wbg_ptr);
28974
+ const ret = wasm.timelockexpiry_new_timelockexpiry(slot.__wbg_ptr);
28975
28975
  return TimelockStart.__wrap(ret);
28976
28976
  }
28977
28977
  }
@@ -33488,7 +33488,7 @@ export class TransactionWitnessSet {
33488
33488
  * @returns {NativeScripts | undefined}
33489
33489
  */
33490
33490
  native_scripts() {
33491
- const ret = wasm.auxiliarydata_native_scripts(this.__wbg_ptr);
33491
+ const ret = wasm.transactionwitnessset_native_scripts(this.__wbg_ptr);
33492
33492
  return ret === 0 ? undefined : NativeScripts.__wrap(ret);
33493
33493
  }
33494
33494
  /**
@@ -36403,7 +36403,7 @@ export class Vkeys {
36403
36403
  * @returns {Vkeys}
36404
36404
  */
36405
36405
  static new() {
36406
- const ret = wasm.vkeys_new();
36406
+ const ret = wasm.languages_new();
36407
36407
  return Vkeys.__wrap(ret);
36408
36408
  }
36409
36409
  /**
@@ -36621,7 +36621,7 @@ export class Vkeywitness {
36621
36621
  * @returns {Ed25519Signature}
36622
36622
  */
36623
36623
  signature() {
36624
- const ret = wasm.vkeywitness_signature(this.__wbg_ptr);
36624
+ const ret = wasm.operationalcert_sigma(this.__wbg_ptr);
36625
36625
  return Ed25519Signature.__wrap(ret);
36626
36626
  }
36627
36627
  }
@@ -37220,7 +37220,7 @@ export class VoteRegistrationAndDelegation {
37220
37220
  * @returns {BigNum}
37221
37221
  */
37222
37222
  coin() {
37223
- const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
37223
+ const ret = wasm.stakevoteregistrationanddelegation_coin(this.__wbg_ptr);
37224
37224
  return BigNum.__wrap(ret);
37225
37225
  }
37226
37226
  /**
@@ -37581,7 +37581,7 @@ export class Voters {
37581
37581
  * @returns {Voters}
37582
37582
  */
37583
37583
  static new() {
37584
- const ret = wasm.vkeys_new();
37584
+ const ret = wasm.voters_new();
37585
37585
  return Voters.__wrap(ret);
37586
37586
  }
37587
37587
  /**
@@ -37638,7 +37638,7 @@ export class VotingBuilder {
37638
37638
  * @returns {VotingBuilder}
37639
37639
  */
37640
37640
  static new() {
37641
- const ret = wasm.costmdls_new();
37641
+ const ret = wasm.votingbuilder_new();
37642
37642
  return VotingBuilder.__wrap(ret);
37643
37643
  }
37644
37644
  /**
@@ -37943,7 +37943,7 @@ export class VotingProcedure {
37943
37943
  * @returns {Anchor | undefined}
37944
37944
  */
37945
37945
  anchor() {
37946
- const ret = wasm.votingprocedure_anchor(this.__wbg_ptr);
37946
+ const ret = wasm.committeecoldresign_anchor(this.__wbg_ptr);
37947
37947
  return ret === 0 ? undefined : Anchor.__wrap(ret);
37948
37948
  }
37949
37949
  }
@@ -38121,7 +38121,7 @@ export class VotingProcedures {
38121
38121
  * @returns {VotingProcedures}
38122
38122
  */
38123
38123
  static new() {
38124
- const ret = wasm.votingprocedures_new();
38124
+ const ret = wasm.votingbuilder_new();
38125
38125
  return VotingProcedures.__wrap(ret);
38126
38126
  }
38127
38127
  /**
@@ -38408,7 +38408,7 @@ export class VotingProposalBuilder {
38408
38408
  * @returns {VotingProposalBuilder}
38409
38409
  */
38410
38410
  static new() {
38411
- const ret = wasm.mintbuilder_new();
38411
+ const ret = wasm.votingbuilder_new();
38412
38412
  return VotingProposalBuilder.__wrap(ret);
38413
38413
  }
38414
38414
  /**
@@ -38939,7 +38939,7 @@ export class WithdrawalsBuilder {
38939
38939
  * @returns {WithdrawalsBuilder}
38940
38940
  */
38941
38941
  static new() {
38942
- const ret = wasm.withdrawalsbuilder_new();
38942
+ const ret = wasm.mintbuilder_new();
38943
38943
  return WithdrawalsBuilder.__wrap(ret);
38944
38944
  }
38945
38945
  /**
@@ -39082,8 +39082,8 @@ export function __wbindgen_is_bigint(arg0) {
39082
39082
  return ret;
39083
39083
  };
39084
39084
 
39085
- export function __wbindgen_bigint_from_i64(arg0) {
39086
- const ret = arg0;
39085
+ export function __wbindgen_bigint_from_u64(arg0) {
39086
+ const ret = BigInt.asUintN(64, arg0);
39087
39087
  return addHeapObject(ret);
39088
39088
  };
39089
39089
 
@@ -39092,11 +39092,6 @@ export function __wbindgen_jsval_eq(arg0, arg1) {
39092
39092
  return ret;
39093
39093
  };
39094
39094
 
39095
- export function __wbindgen_bigint_from_u64(arg0) {
39096
- const ret = BigInt.asUintN(64, arg0);
39097
- return addHeapObject(ret);
39098
- };
39099
-
39100
39095
  export function __wbindgen_boolean_get(arg0) {
39101
39096
  const v = getObject(arg0);
39102
39097
  const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;