@cardananium/cquisitor-lib 0.1.0-beta.12 → 0.1.0-beta.15

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.
@@ -285,24 +285,65 @@ module.exports.get_possible_types_for_input = function(input) {
285
285
  };
286
286
 
287
287
  /**
288
- * @param {string} hex_str
289
- * @returns {any}
288
+ * @param {string} tx_hex
289
+ * @returns {string}
290
290
  */
291
- module.exports.check_block_or_tx_signatures = function(hex_str) {
291
+ module.exports.get_necessary_data_list_js = function(tx_hex) {
292
+ let deferred3_0;
293
+ let deferred3_1;
292
294
  try {
293
295
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
294
- const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
296
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
295
297
  const len0 = WASM_VECTOR_LEN;
296
- wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
298
+ wasm.get_necessary_data_list_js(retptr, ptr0, len0);
297
299
  var r0 = getInt32Memory0()[retptr / 4 + 0];
298
300
  var r1 = getInt32Memory0()[retptr / 4 + 1];
299
301
  var r2 = getInt32Memory0()[retptr / 4 + 2];
300
- if (r2) {
301
- throw takeObject(r1);
302
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
303
+ var ptr2 = r0;
304
+ var len2 = r1;
305
+ if (r3) {
306
+ ptr2 = 0; len2 = 0;
307
+ throw takeObject(r2);
302
308
  }
303
- return takeObject(r0);
309
+ deferred3_0 = ptr2;
310
+ deferred3_1 = len2;
311
+ return getStringFromWasm0(ptr2, len2);
312
+ } finally {
313
+ wasm.__wbindgen_add_to_stack_pointer(16);
314
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
315
+ }
316
+ };
317
+
318
+ /**
319
+ * @param {string} tx_hex
320
+ * @param {any} validation_context
321
+ * @returns {string}
322
+ */
323
+ module.exports.validate_transaction_js = function(tx_hex, validation_context) {
324
+ let deferred3_0;
325
+ let deferred3_1;
326
+ try {
327
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
328
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
329
+ const len0 = WASM_VECTOR_LEN;
330
+ wasm.validate_transaction_js(retptr, ptr0, len0, addHeapObject(validation_context));
331
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
332
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
333
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
334
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
335
+ var ptr2 = r0;
336
+ var len2 = r1;
337
+ if (r3) {
338
+ ptr2 = 0; len2 = 0;
339
+ throw takeObject(r2);
340
+ }
341
+ deferred3_0 = ptr2;
342
+ deferred3_1 = len2;
343
+ return getStringFromWasm0(ptr2, len2);
304
344
  } finally {
305
345
  wasm.__wbindgen_add_to_stack_pointer(16);
346
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
306
347
  }
307
348
  };
308
349
 
@@ -356,15 +397,15 @@ module.exports.execute_tx_scripts = function(tx_hex, utxo_json, cost_models_json
356
397
  };
357
398
 
358
399
  /**
359
- * @param {string} cbor_hex
400
+ * @param {string} hex_str
360
401
  * @returns {any}
361
402
  */
362
- module.exports.cbor_to_json = function(cbor_hex) {
403
+ module.exports.check_block_or_tx_signatures = function(hex_str) {
363
404
  try {
364
405
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
365
- const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
406
+ const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
366
407
  const len0 = WASM_VECTOR_LEN;
367
- wasm.cbor_to_json(retptr, ptr0, len0);
408
+ wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
368
409
  var r0 = getInt32Memory0()[retptr / 4 + 0];
369
410
  var r1 = getInt32Memory0()[retptr / 4 + 1];
370
411
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -430,6 +471,35 @@ module.exports.decode_plutus_program_pretty_uplc = function(hex) {
430
471
  }
431
472
  };
432
473
 
474
+ /**
475
+ * @param {string} cbor_hex
476
+ * @returns {any}
477
+ */
478
+ module.exports.cbor_to_json = function(cbor_hex) {
479
+ try {
480
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
481
+ const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
482
+ const len0 = WASM_VECTOR_LEN;
483
+ wasm.cbor_to_json(retptr, ptr0, len0);
484
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
485
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
486
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
487
+ if (r2) {
488
+ throw takeObject(r1);
489
+ }
490
+ return takeObject(r0);
491
+ } finally {
492
+ wasm.__wbindgen_add_to_stack_pointer(16);
493
+ }
494
+ };
495
+
496
+ function _assertClass(instance, klass) {
497
+ if (!(instance instanceof klass)) {
498
+ throw new Error(`expected instance of ${klass.name}`);
499
+ }
500
+ return instance.ptr;
501
+ }
502
+
433
503
  function getArrayU8FromWasm0(ptr, len) {
434
504
  ptr = ptr >>> 0;
435
505
  return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
@@ -442,17 +512,181 @@ function passArray8ToWasm0(arg, malloc) {
442
512
  return ptr;
443
513
  }
444
514
 
445
- function _assertClass(instance, klass) {
446
- if (!(instance instanceof klass)) {
447
- throw new Error(`expected instance of ${klass.name}`);
448
- }
449
- return instance.ptr;
450
- }
451
-
452
515
  function getArrayU32FromWasm0(ptr, len) {
453
516
  ptr = ptr >>> 0;
454
517
  return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
455
518
  }
519
+ /**
520
+ * @param {Transaction} tx
521
+ * @param {LinearFee} linear_fee
522
+ * @returns {BigNum}
523
+ */
524
+ module.exports.min_fee = function(tx, linear_fee) {
525
+ try {
526
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
527
+ _assertClass(tx, Transaction);
528
+ _assertClass(linear_fee, LinearFee);
529
+ wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__wbg_ptr);
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 BigNum.__wrap(r0);
537
+ } finally {
538
+ wasm.__wbindgen_add_to_stack_pointer(16);
539
+ }
540
+ };
541
+
542
+ /**
543
+ * @param {ExUnits} ex_units
544
+ * @param {ExUnitPrices} ex_unit_prices
545
+ * @returns {BigNum}
546
+ */
547
+ module.exports.calculate_ex_units_ceil_cost = function(ex_units, ex_unit_prices) {
548
+ try {
549
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
550
+ _assertClass(ex_units, ExUnits);
551
+ _assertClass(ex_unit_prices, ExUnitPrices);
552
+ wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
553
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
554
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
555
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
556
+ if (r2) {
557
+ throw takeObject(r1);
558
+ }
559
+ return BigNum.__wrap(r0);
560
+ } finally {
561
+ wasm.__wbindgen_add_to_stack_pointer(16);
562
+ }
563
+ };
564
+
565
+ /**
566
+ * @param {Transaction} tx
567
+ * @param {ExUnitPrices} ex_unit_prices
568
+ * @returns {BigNum}
569
+ */
570
+ module.exports.min_script_fee = function(tx, ex_unit_prices) {
571
+ try {
572
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
573
+ _assertClass(tx, Transaction);
574
+ _assertClass(ex_unit_prices, ExUnitPrices);
575
+ wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
576
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
577
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
578
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
579
+ if (r2) {
580
+ throw takeObject(r1);
581
+ }
582
+ return BigNum.__wrap(r0);
583
+ } finally {
584
+ wasm.__wbindgen_add_to_stack_pointer(16);
585
+ }
586
+ };
587
+
588
+ /**
589
+ * @param {number} total_ref_scripts_size
590
+ * @param {UnitInterval} ref_script_coins_per_byte
591
+ * @returns {BigNum}
592
+ */
593
+ module.exports.min_ref_script_fee = function(total_ref_scripts_size, ref_script_coins_per_byte) {
594
+ try {
595
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
596
+ _assertClass(ref_script_coins_per_byte, UnitInterval);
597
+ wasm.min_ref_script_fee(retptr, total_ref_scripts_size, ref_script_coins_per_byte.__wbg_ptr);
598
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
599
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
600
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
601
+ if (r2) {
602
+ throw takeObject(r1);
603
+ }
604
+ return BigNum.__wrap(r0);
605
+ } finally {
606
+ wasm.__wbindgen_add_to_stack_pointer(16);
607
+ }
608
+ };
609
+
610
+ function passArray32ToWasm0(arg, malloc) {
611
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
612
+ getUint32Memory0().set(arg, ptr / 4);
613
+ WASM_VECTOR_LEN = arg.length;
614
+ return ptr;
615
+ }
616
+ /**
617
+ * @param {string} password
618
+ * @param {string} salt
619
+ * @param {string} nonce
620
+ * @param {string} data
621
+ * @returns {string}
622
+ */
623
+ module.exports.encrypt_with_password = function(password, salt, nonce, data) {
624
+ let deferred6_0;
625
+ let deferred6_1;
626
+ try {
627
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
628
+ const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
629
+ const len0 = WASM_VECTOR_LEN;
630
+ const ptr1 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
631
+ const len1 = WASM_VECTOR_LEN;
632
+ const ptr2 = passStringToWasm0(nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
633
+ const len2 = WASM_VECTOR_LEN;
634
+ const ptr3 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
635
+ const len3 = WASM_VECTOR_LEN;
636
+ wasm.encrypt_with_password(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
637
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
638
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
639
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
640
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
641
+ var ptr5 = r0;
642
+ var len5 = r1;
643
+ if (r3) {
644
+ ptr5 = 0; len5 = 0;
645
+ throw takeObject(r2);
646
+ }
647
+ deferred6_0 = ptr5;
648
+ deferred6_1 = len5;
649
+ return getStringFromWasm0(ptr5, len5);
650
+ } finally {
651
+ wasm.__wbindgen_add_to_stack_pointer(16);
652
+ wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
653
+ }
654
+ };
655
+
656
+ /**
657
+ * @param {string} password
658
+ * @param {string} data
659
+ * @returns {string}
660
+ */
661
+ module.exports.decrypt_with_password = function(password, data) {
662
+ let deferred4_0;
663
+ let deferred4_1;
664
+ try {
665
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
666
+ const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
667
+ const len0 = WASM_VECTOR_LEN;
668
+ const ptr1 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
669
+ const len1 = WASM_VECTOR_LEN;
670
+ wasm.decrypt_with_password(retptr, ptr0, len0, ptr1, len1);
671
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
672
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
673
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
674
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
675
+ var ptr3 = r0;
676
+ var len3 = r1;
677
+ if (r3) {
678
+ ptr3 = 0; len3 = 0;
679
+ throw takeObject(r2);
680
+ }
681
+ deferred4_0 = ptr3;
682
+ deferred4_1 = len3;
683
+ return getStringFromWasm0(ptr3, len3);
684
+ } finally {
685
+ wasm.__wbindgen_add_to_stack_pointer(16);
686
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
687
+ }
688
+ };
689
+
456
690
  /**
457
691
  * @param {TransactionHash} tx_body_hash
458
692
  * @param {ByronAddress} addr
@@ -668,80 +902,6 @@ module.exports.has_transaction_set_tag = function(tx_bytes) {
668
902
  }
669
903
  };
670
904
 
671
- /**
672
- * @param {string} password
673
- * @param {string} salt
674
- * @param {string} nonce
675
- * @param {string} data
676
- * @returns {string}
677
- */
678
- module.exports.encrypt_with_password = function(password, salt, nonce, data) {
679
- let deferred6_0;
680
- let deferred6_1;
681
- try {
682
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
683
- const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
684
- const len0 = WASM_VECTOR_LEN;
685
- const ptr1 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
686
- const len1 = WASM_VECTOR_LEN;
687
- const ptr2 = passStringToWasm0(nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
688
- const len2 = WASM_VECTOR_LEN;
689
- const ptr3 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
690
- const len3 = WASM_VECTOR_LEN;
691
- wasm.encrypt_with_password(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
692
- var r0 = getInt32Memory0()[retptr / 4 + 0];
693
- var r1 = getInt32Memory0()[retptr / 4 + 1];
694
- var r2 = getInt32Memory0()[retptr / 4 + 2];
695
- var r3 = getInt32Memory0()[retptr / 4 + 3];
696
- var ptr5 = r0;
697
- var len5 = r1;
698
- if (r3) {
699
- ptr5 = 0; len5 = 0;
700
- throw takeObject(r2);
701
- }
702
- deferred6_0 = ptr5;
703
- deferred6_1 = len5;
704
- return getStringFromWasm0(ptr5, len5);
705
- } finally {
706
- wasm.__wbindgen_add_to_stack_pointer(16);
707
- wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
708
- }
709
- };
710
-
711
- /**
712
- * @param {string} password
713
- * @param {string} data
714
- * @returns {string}
715
- */
716
- module.exports.decrypt_with_password = function(password, data) {
717
- let deferred4_0;
718
- let deferred4_1;
719
- try {
720
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
721
- const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
722
- const len0 = WASM_VECTOR_LEN;
723
- const ptr1 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
724
- const len1 = WASM_VECTOR_LEN;
725
- wasm.decrypt_with_password(retptr, ptr0, len0, ptr1, len1);
726
- var r0 = getInt32Memory0()[retptr / 4 + 0];
727
- var r1 = getInt32Memory0()[retptr / 4 + 1];
728
- var r2 = getInt32Memory0()[retptr / 4 + 2];
729
- var r3 = getInt32Memory0()[retptr / 4 + 3];
730
- var ptr3 = r0;
731
- var len3 = r1;
732
- if (r3) {
733
- ptr3 = 0; len3 = 0;
734
- throw takeObject(r2);
735
- }
736
- deferred4_0 = ptr3;
737
- deferred4_1 = len3;
738
- return getStringFromWasm0(ptr3, len3);
739
- } finally {
740
- wasm.__wbindgen_add_to_stack_pointer(16);
741
- wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
742
- }
743
- };
744
-
745
905
  /**
746
906
  * @param {Address} address
747
907
  * @param {TransactionUnspentOutputs} utxos
@@ -767,97 +927,6 @@ module.exports.create_send_all = function(address, utxos, config) {
767
927
  }
768
928
  };
769
929
 
770
- /**
771
- * @param {Transaction} tx
772
- * @param {LinearFee} linear_fee
773
- * @returns {BigNum}
774
- */
775
- module.exports.min_fee = function(tx, linear_fee) {
776
- try {
777
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
778
- _assertClass(tx, Transaction);
779
- _assertClass(linear_fee, LinearFee);
780
- wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__wbg_ptr);
781
- var r0 = getInt32Memory0()[retptr / 4 + 0];
782
- var r1 = getInt32Memory0()[retptr / 4 + 1];
783
- var r2 = getInt32Memory0()[retptr / 4 + 2];
784
- if (r2) {
785
- throw takeObject(r1);
786
- }
787
- return BigNum.__wrap(r0);
788
- } finally {
789
- wasm.__wbindgen_add_to_stack_pointer(16);
790
- }
791
- };
792
-
793
- /**
794
- * @param {ExUnits} ex_units
795
- * @param {ExUnitPrices} ex_unit_prices
796
- * @returns {BigNum}
797
- */
798
- module.exports.calculate_ex_units_ceil_cost = function(ex_units, ex_unit_prices) {
799
- try {
800
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
801
- _assertClass(ex_units, ExUnits);
802
- _assertClass(ex_unit_prices, ExUnitPrices);
803
- wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
804
- var r0 = getInt32Memory0()[retptr / 4 + 0];
805
- var r1 = getInt32Memory0()[retptr / 4 + 1];
806
- var r2 = getInt32Memory0()[retptr / 4 + 2];
807
- if (r2) {
808
- throw takeObject(r1);
809
- }
810
- return BigNum.__wrap(r0);
811
- } finally {
812
- wasm.__wbindgen_add_to_stack_pointer(16);
813
- }
814
- };
815
-
816
- /**
817
- * @param {Transaction} tx
818
- * @param {ExUnitPrices} ex_unit_prices
819
- * @returns {BigNum}
820
- */
821
- module.exports.min_script_fee = function(tx, ex_unit_prices) {
822
- try {
823
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
824
- _assertClass(tx, Transaction);
825
- _assertClass(ex_unit_prices, ExUnitPrices);
826
- wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
827
- var r0 = getInt32Memory0()[retptr / 4 + 0];
828
- var r1 = getInt32Memory0()[retptr / 4 + 1];
829
- var r2 = getInt32Memory0()[retptr / 4 + 2];
830
- if (r2) {
831
- throw takeObject(r1);
832
- }
833
- return BigNum.__wrap(r0);
834
- } finally {
835
- wasm.__wbindgen_add_to_stack_pointer(16);
836
- }
837
- };
838
-
839
- /**
840
- * @param {number} total_ref_scripts_size
841
- * @param {UnitInterval} ref_script_coins_per_byte
842
- * @returns {BigNum}
843
- */
844
- module.exports.min_ref_script_fee = function(total_ref_scripts_size, ref_script_coins_per_byte) {
845
- try {
846
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
847
- _assertClass(ref_script_coins_per_byte, UnitInterval);
848
- wasm.min_ref_script_fee(retptr, total_ref_scripts_size, ref_script_coins_per_byte.__wbg_ptr);
849
- var r0 = getInt32Memory0()[retptr / 4 + 0];
850
- var r1 = getInt32Memory0()[retptr / 4 + 1];
851
- var r2 = getInt32Memory0()[retptr / 4 + 2];
852
- if (r2) {
853
- throw takeObject(r1);
854
- }
855
- return BigNum.__wrap(r0);
856
- } finally {
857
- wasm.__wbindgen_add_to_stack_pointer(16);
858
- }
859
- };
860
-
861
930
  /**
862
931
  * @param {string} json
863
932
  * @param {PlutusDatumSchema} schema
@@ -1001,13 +1070,6 @@ module.exports.decode_metadatum_to_json_str = function(metadatum, schema) {
1001
1070
  }
1002
1071
  };
1003
1072
 
1004
- function passArray32ToWasm0(arg, malloc) {
1005
- const ptr = malloc(arg.length * 4, 4) >>> 0;
1006
- getUint32Memory0().set(arg, ptr / 4);
1007
- WASM_VECTOR_LEN = arg.length;
1008
- return ptr;
1009
- }
1010
-
1011
1073
  function handleError(f, args) {
1012
1074
  try {
1013
1075
  return f.apply(this, args);
@@ -1017,68 +1079,44 @@ function handleError(f, args) {
1017
1079
  }
1018
1080
  /**
1019
1081
  */
1020
- module.exports.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", });
1021
- /**
1022
- */
1023
- module.exports.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", });
1024
- /**
1025
- */
1026
- module.exports.VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
1082
+ module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1027
1083
  /**
1028
1084
  */
1029
- module.exports.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", });
1085
+ module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1030
1086
  /**
1031
1087
  */
1032
- module.exports.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", });
1088
+ module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1033
1089
  /**
1034
1090
  */
1035
- module.exports.PlutusDataKind = Object.freeze({ ConstrPlutusData:0,"0":"ConstrPlutusData",Map:1,"1":"Map",List:2,"2":"List",Integer:3,"3":"Integer",Bytes:4,"4":"Bytes", });
1091
+ module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
1036
1092
  /**
1093
+ * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1037
1094
  */
1038
- module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1095
+ LargestFirst:0,"0":"LargestFirst",
1039
1096
  /**
1040
- * Each new language uses a different namespace for hashing its script
1041
- * This is because you could have a language where the same bytes have different semantics
1042
- * So this avoids scripts in different languages mapping to the same hash
1043
- * Note that the enum value here is different than the enum value for deciding the cost model of a script
1097
+ * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1044
1098
  */
1045
- module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1099
+ RandomImprove:1,"1":"RandomImprove",
1046
1100
  /**
1101
+ * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1047
1102
  */
1048
- module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1103
+ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1049
1104
  /**
1105
+ * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1050
1106
  */
1051
- module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1107
+ RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1052
1108
  /**
1053
1109
  */
1054
- module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1110
+ module.exports.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", });
1055
1111
  /**
1056
1112
  */
1057
1113
  module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1058
1114
  /**
1059
1115
  */
1060
- module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1061
- /**
1062
- */
1063
- module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1064
- /**
1065
- */
1066
1116
  module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1067
1117
  /**
1068
1118
  */
1069
- module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1070
- /**
1071
- */
1072
- module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1073
- /**
1074
- */
1075
- module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1076
- /**
1077
- */
1078
- module.exports.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", });
1079
- /**
1080
- */
1081
- module.exports.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
+ module.exports.VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
1082
1120
  /**
1083
1121
  * JSON <-> PlutusData conversion schemas.
1084
1122
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
@@ -1132,36 +1170,60 @@ BasicConversions:0,"0":"BasicConversions",
1132
1170
  DetailedSchema:1,"1":"DetailedSchema", });
1133
1171
  /**
1134
1172
  */
1135
- module.exports.TransactionMetadatumKind = Object.freeze({ MetadataMap:0,"0":"MetadataMap",MetadataList:1,"1":"MetadataList",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
1173
+ module.exports.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", });
1136
1174
  /**
1137
1175
  */
1138
- module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1176
+ module.exports.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", });
1139
1177
  /**
1140
1178
  */
1141
- module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
1179
+ module.exports.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", });
1142
1180
  /**
1143
- * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
1144
1181
  */
1145
- LargestFirst:0,"0":"LargestFirst",
1182
+ module.exports.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", });
1146
1183
  /**
1147
- * Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
1148
1184
  */
1149
- RandomImprove:1,"1":"RandomImprove",
1185
+ module.exports.PlutusDataKind = Object.freeze({ ConstrPlutusData:0,"0":"ConstrPlutusData",Map:1,"1":"Map",List:2,"2":"List",Integer:3,"3":"Integer",Bytes:4,"4":"Bytes", });
1150
1186
  /**
1151
- * Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
1152
1187
  */
1153
- LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1188
+ module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1154
1189
  /**
1155
- * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1156
1190
  */
1157
- RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1191
+ module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1158
1192
  /**
1159
1193
  */
1160
- module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1194
+ module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1195
+ /**
1196
+ */
1197
+ module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1161
1198
  /**
1162
1199
  * Used to choosed the schema for a script JSON string
1163
1200
  */
1164
1201
  module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1202
+ /**
1203
+ */
1204
+ module.exports.TransactionMetadatumKind = Object.freeze({ MetadataMap:0,"0":"MetadataMap",MetadataList:1,"1":"MetadataList",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
1205
+ /**
1206
+ */
1207
+ module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1208
+ /**
1209
+ */
1210
+ module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1211
+ /**
1212
+ */
1213
+ module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1214
+ /**
1215
+ * Each new language uses a different namespace for hashing its script
1216
+ * This is because you could have a language where the same bytes have different semantics
1217
+ * So this avoids scripts in different languages mapping to the same hash
1218
+ * Note that the enum value here is different than the enum value for deciding the cost model of a script
1219
+ */
1220
+ module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1221
+ /**
1222
+ */
1223
+ module.exports.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", });
1224
+ /**
1225
+ */
1226
+ module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1165
1227
 
1166
1228
  const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
1167
1229
  ? { register: () => {}, unregister: () => {} }
@@ -2369,7 +2431,7 @@ class Assets {
2369
2431
  * @returns {number}
2370
2432
  */
2371
2433
  len() {
2372
- const ret = wasm.assetnames_len(this.__wbg_ptr);
2434
+ const ret = wasm.assets_len(this.__wbg_ptr);
2373
2435
  return ret >>> 0;
2374
2436
  }
2375
2437
  /**
@@ -8534,7 +8596,7 @@ class DRep {
8534
8596
  */
8535
8597
  static new_key_hash(key_hash) {
8536
8598
  _assertClass(key_hash, Ed25519KeyHash);
8537
- const ret = wasm.drep_new_key_hash(key_hash.__wbg_ptr);
8599
+ const ret = wasm.credential_from_keyhash(key_hash.__wbg_ptr);
8538
8600
  return DRep.__wrap(ret);
8539
8601
  }
8540
8602
  /**
@@ -8543,7 +8605,7 @@ class DRep {
8543
8605
  */
8544
8606
  static new_script_hash(script_hash) {
8545
8607
  _assertClass(script_hash, ScriptHash);
8546
- const ret = wasm.drep_new_script_hash(script_hash.__wbg_ptr);
8608
+ const ret = wasm.credential_from_scripthash(script_hash.__wbg_ptr);
8547
8609
  return DRep.__wrap(ret);
8548
8610
  }
8549
8611
  /**
@@ -9243,14 +9305,14 @@ class DRepUpdate {
9243
9305
  * @returns {Credential}
9244
9306
  */
9245
9307
  voting_credential() {
9246
- const ret = wasm.drepupdate_voting_credential(this.__wbg_ptr);
9308
+ const ret = wasm.committeecoldresign_committee_cold_credential(this.__wbg_ptr);
9247
9309
  return Credential.__wrap(ret);
9248
9310
  }
9249
9311
  /**
9250
9312
  * @returns {Anchor | undefined}
9251
9313
  */
9252
9314
  anchor() {
9253
- const ret = wasm.drepupdate_anchor(this.__wbg_ptr);
9315
+ const ret = wasm.committeecoldresign_anchor(this.__wbg_ptr);
9254
9316
  return ret === 0 ? undefined : Anchor.__wrap(ret);
9255
9317
  }
9256
9318
  /**
@@ -9259,7 +9321,7 @@ class DRepUpdate {
9259
9321
  */
9260
9322
  static new(voting_credential) {
9261
9323
  _assertClass(voting_credential, Credential);
9262
- const ret = wasm.drepupdate_new(voting_credential.__wbg_ptr);
9324
+ const ret = wasm.committeecoldresign_new(voting_credential.__wbg_ptr);
9263
9325
  return DRepUpdate.__wrap(ret);
9264
9326
  }
9265
9327
  /**
@@ -9270,14 +9332,14 @@ class DRepUpdate {
9270
9332
  static new_with_anchor(voting_credential, anchor) {
9271
9333
  _assertClass(voting_credential, Credential);
9272
9334
  _assertClass(anchor, Anchor);
9273
- const ret = wasm.drepupdate_new_with_anchor(voting_credential.__wbg_ptr, anchor.__wbg_ptr);
9335
+ const ret = wasm.committeecoldresign_new_with_anchor(voting_credential.__wbg_ptr, anchor.__wbg_ptr);
9274
9336
  return DRepUpdate.__wrap(ret);
9275
9337
  }
9276
9338
  /**
9277
9339
  * @returns {boolean}
9278
9340
  */
9279
9341
  has_script_credentials() {
9280
- const ret = wasm.drepupdate_has_script_credentials(this.__wbg_ptr);
9342
+ const ret = wasm.committeecoldresign_has_script_credentials(this.__wbg_ptr);
9281
9343
  return ret !== 0;
9282
9344
  }
9283
9345
  }
@@ -9654,7 +9716,7 @@ class DataCost {
9654
9716
  */
9655
9717
  static new_coins_per_byte(coins_per_byte) {
9656
9718
  _assertClass(coins_per_byte, BigNum);
9657
- const ret = wasm.datacost_coins_per_byte(coins_per_byte.__wbg_ptr);
9719
+ const ret = wasm.datacost_new_coins_per_byte(coins_per_byte.__wbg_ptr);
9658
9720
  return DataCost.__wrap(ret);
9659
9721
  }
9660
9722
  /**
@@ -10201,14 +10263,14 @@ class Ed25519KeyHashes {
10201
10263
  * @returns {Ed25519KeyHashes}
10202
10264
  */
10203
10265
  static new() {
10204
- const ret = wasm.credentials_new();
10266
+ const ret = wasm.ed25519keyhashes_new();
10205
10267
  return Ed25519KeyHashes.__wrap(ret);
10206
10268
  }
10207
10269
  /**
10208
10270
  * @returns {number}
10209
10271
  */
10210
10272
  len() {
10211
- const ret = wasm.credentials_len(this.__wbg_ptr);
10273
+ const ret = wasm.ed25519keyhashes_len(this.__wbg_ptr);
10212
10274
  return ret >>> 0;
10213
10275
  }
10214
10276
  /**
@@ -12469,7 +12531,7 @@ class GenesisHashes {
12469
12531
  * @returns {number}
12470
12532
  */
12471
12533
  len() {
12472
- const ret = wasm.assetnames_len(this.__wbg_ptr);
12534
+ const ret = wasm.genesishashes_len(this.__wbg_ptr);
12473
12535
  return ret >>> 0;
12474
12536
  }
12475
12537
  /**
@@ -13279,7 +13341,7 @@ class GovernanceActionIds {
13279
13341
  * @returns {GovernanceActionIds}
13280
13342
  */
13281
13343
  static new() {
13282
- const ret = wasm.governanceactionids_new();
13344
+ const ret = wasm.assetnames_new();
13283
13345
  return GovernanceActionIds.__wrap(ret);
13284
13346
  }
13285
13347
  /**
@@ -15391,7 +15453,7 @@ class LegacyDaedalusPrivateKey {
15391
15453
  as_bytes() {
15392
15454
  try {
15393
15455
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
15394
- wasm.legacydaedalusprivatekey_as_bytes(retptr, this.__wbg_ptr);
15456
+ wasm.bip32privatekey_as_bytes(retptr, this.__wbg_ptr);
15395
15457
  var r0 = getInt32Memory0()[retptr / 4 + 0];
15396
15458
  var r1 = getInt32Memory0()[retptr / 4 + 1];
15397
15459
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
@@ -15407,7 +15469,7 @@ class LegacyDaedalusPrivateKey {
15407
15469
  chaincode() {
15408
15470
  try {
15409
15471
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
15410
- wasm.legacydaedalusprivatekey_chaincode(retptr, this.__wbg_ptr);
15472
+ wasm.bip32privatekey_chaincode(retptr, this.__wbg_ptr);
15411
15473
  var r0 = getInt32Memory0()[retptr / 4 + 0];
15412
15474
  var r1 = getInt32Memory0()[retptr / 4 + 1];
15413
15475
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
@@ -15862,7 +15924,7 @@ class MetadataList {
15862
15924
  * @returns {number}
15863
15925
  */
15864
15926
  len() {
15865
- const ret = wasm.languages_len(this.__wbg_ptr);
15927
+ const ret = wasm.metadatalist_len(this.__wbg_ptr);
15866
15928
  return ret >>> 0;
15867
15929
  }
15868
15930
  /**
@@ -16314,7 +16376,7 @@ class Mint {
16314
16376
  * @returns {number}
16315
16377
  */
16316
16378
  len() {
16317
- const ret = wasm.assetnames_len(this.__wbg_ptr);
16379
+ const ret = wasm.mint_len(this.__wbg_ptr);
16318
16380
  return ret >>> 0;
16319
16381
  }
16320
16382
  /**
@@ -16422,7 +16484,7 @@ class MintAssets {
16422
16484
  * @returns {number}
16423
16485
  */
16424
16486
  len() {
16425
- const ret = wasm.assetnames_len(this.__wbg_ptr);
16487
+ const ret = wasm.assets_len(this.__wbg_ptr);
16426
16488
  return ret >>> 0;
16427
16489
  }
16428
16490
  /**
@@ -17377,7 +17439,7 @@ class MultiAsset {
17377
17439
  * @returns {number}
17378
17440
  */
17379
17441
  len() {
17380
- const ret = wasm.assetnames_len(this.__wbg_ptr);
17442
+ const ret = wasm.assets_len(this.__wbg_ptr);
17381
17443
  return ret >>> 0;
17382
17444
  }
17383
17445
  /**
@@ -18040,7 +18102,7 @@ class NativeScripts {
18040
18102
  * @returns {number}
18041
18103
  */
18042
18104
  len() {
18043
- const ret = wasm.costmodel_len(this.__wbg_ptr);
18105
+ const ret = wasm.nativescripts_len(this.__wbg_ptr);
18044
18106
  return ret >>> 0;
18045
18107
  }
18046
18108
  /**
@@ -20039,7 +20101,7 @@ class PlutusList {
20039
20101
  * @returns {number}
20040
20102
  */
20041
20103
  len() {
20042
- const ret = wasm.languages_len(this.__wbg_ptr);
20104
+ const ret = wasm.plutuslist_len(this.__wbg_ptr);
20043
20105
  return ret >>> 0;
20044
20106
  }
20045
20107
  /**
@@ -20240,14 +20302,14 @@ class PlutusMapValues {
20240
20302
  * @returns {PlutusMapValues}
20241
20303
  */
20242
20304
  static new() {
20243
- const ret = wasm.metadatalist_new();
20305
+ const ret = wasm.plutusmapvalues_new();
20244
20306
  return PlutusMapValues.__wrap(ret);
20245
20307
  }
20246
20308
  /**
20247
20309
  * @returns {number}
20248
20310
  */
20249
20311
  len() {
20250
- const ret = wasm.languages_len(this.__wbg_ptr);
20312
+ const ret = wasm.plutuslist_len(this.__wbg_ptr);
20251
20313
  return ret >>> 0;
20252
20314
  }
20253
20315
  /**
@@ -20815,7 +20877,7 @@ class PlutusScripts {
20815
20877
  * @returns {number}
20816
20878
  */
20817
20879
  len() {
20818
- const ret = wasm.credentials_len(this.__wbg_ptr);
20880
+ const ret = wasm.plutusscripts_len(this.__wbg_ptr);
20819
20881
  return ret >>> 0;
20820
20882
  }
20821
20883
  /**
@@ -20964,14 +21026,14 @@ class PlutusWitnesses {
20964
21026
  * @returns {PlutusWitnesses}
20965
21027
  */
20966
21028
  static new() {
20967
- const ret = wasm.costmodel_new();
21029
+ const ret = wasm.plutuswitnesses_new();
20968
21030
  return PlutusWitnesses.__wrap(ret);
20969
21031
  }
20970
21032
  /**
20971
21033
  * @returns {number}
20972
21034
  */
20973
21035
  len() {
20974
- const ret = wasm.costmodel_len(this.__wbg_ptr);
21036
+ const ret = wasm.plutuswitnesses_len(this.__wbg_ptr);
20975
21037
  return ret >>> 0;
20976
21038
  }
20977
21039
  /**
@@ -21116,7 +21178,7 @@ class Pointer {
21116
21178
  * @returns {BigNum}
21117
21179
  */
21118
21180
  cert_index_bignum() {
21119
- const ret = wasm.pointer_cert_index_bignum(this.__wbg_ptr);
21181
+ const ret = wasm.constrplutusdata_alternative(this.__wbg_ptr);
21120
21182
  return BigNum.__wrap(ret);
21121
21183
  }
21122
21184
  }
@@ -23959,7 +24021,7 @@ class PublicKeys {
23959
24021
  /**
23960
24022
  */
23961
24023
  constructor() {
23962
- const ret = wasm.publickeys_new();
24024
+ const ret = wasm.languages_new();
23963
24025
  this.__wbg_ptr = ret >>> 0;
23964
24026
  return this;
23965
24027
  }
@@ -23967,7 +24029,7 @@ class PublicKeys {
23967
24029
  * @returns {number}
23968
24030
  */
23969
24031
  size() {
23970
- const ret = wasm.governanceactionids_len(this.__wbg_ptr);
24032
+ const ret = wasm.publickeys_size(this.__wbg_ptr);
23971
24033
  return ret >>> 0;
23972
24034
  }
23973
24035
  /**
@@ -24604,7 +24666,7 @@ class Redeemers {
24604
24666
  * @returns {number}
24605
24667
  */
24606
24668
  len() {
24607
- const ret = wasm.fixedtransactionbodies_len(this.__wbg_ptr);
24669
+ const ret = wasm.redeemers_len(this.__wbg_ptr);
24608
24670
  return ret >>> 0;
24609
24671
  }
24610
24672
  /**
@@ -25328,7 +25390,7 @@ class RewardAddresses {
25328
25390
  * @returns {number}
25329
25391
  */
25330
25392
  len() {
25331
- const ret = wasm.assetnames_len(this.__wbg_ptr);
25393
+ const ret = wasm.rewardaddresses_len(this.__wbg_ptr);
25332
25394
  return ret >>> 0;
25333
25395
  }
25334
25396
  /**
@@ -26219,7 +26281,7 @@ class ScriptHashes {
26219
26281
  * @returns {number}
26220
26282
  */
26221
26283
  len() {
26222
- const ret = wasm.assetnames_len(this.__wbg_ptr);
26284
+ const ret = wasm.genesishashes_len(this.__wbg_ptr);
26223
26285
  return ret >>> 0;
26224
26286
  }
26225
26287
  /**
@@ -27656,7 +27718,7 @@ class StakeDelegation {
27656
27718
  * @returns {Credential}
27657
27719
  */
27658
27720
  stake_credential() {
27659
- const ret = wasm.stakeandvotedelegation_stake_credential(this.__wbg_ptr);
27721
+ const ret = wasm.stakedelegation_stake_credential(this.__wbg_ptr);
27660
27722
  return Credential.__wrap(ret);
27661
27723
  }
27662
27724
  /**
@@ -27681,7 +27743,7 @@ class StakeDelegation {
27681
27743
  * @returns {boolean}
27682
27744
  */
27683
27745
  has_script_credentials() {
27684
- const ret = wasm.stakeandvotedelegation_has_script_credentials(this.__wbg_ptr);
27746
+ const ret = wasm.stakedelegation_has_script_credentials(this.__wbg_ptr);
27685
27747
  return ret !== 0;
27686
27748
  }
27687
27749
  }
@@ -28073,14 +28135,14 @@ class StakeRegistration {
28073
28135
  * @returns {Credential}
28074
28136
  */
28075
28137
  stake_credential() {
28076
- const ret = wasm.stakeregistration_stake_credential(this.__wbg_ptr);
28138
+ const ret = wasm.stakederegistration_stake_credential(this.__wbg_ptr);
28077
28139
  return Credential.__wrap(ret);
28078
28140
  }
28079
28141
  /**
28080
28142
  * @returns {BigNum | undefined}
28081
28143
  */
28082
28144
  coin() {
28083
- const ret = wasm.stakeregistration_coin(this.__wbg_ptr);
28145
+ const ret = wasm.stakederegistration_coin(this.__wbg_ptr);
28084
28146
  return ret === 0 ? undefined : BigNum.__wrap(ret);
28085
28147
  }
28086
28148
  /**
@@ -28089,7 +28151,7 @@ class StakeRegistration {
28089
28151
  */
28090
28152
  static new(stake_credential) {
28091
28153
  _assertClass(stake_credential, Credential);
28092
- const ret = wasm.stakeregistration_new(stake_credential.__wbg_ptr);
28154
+ const ret = wasm.stakederegistration_new(stake_credential.__wbg_ptr);
28093
28155
  return StakeRegistration.__wrap(ret);
28094
28156
  }
28095
28157
  /**
@@ -28100,14 +28162,14 @@ class StakeRegistration {
28100
28162
  static new_with_explicit_deposit(stake_credential, coin) {
28101
28163
  _assertClass(stake_credential, Credential);
28102
28164
  _assertClass(coin, BigNum);
28103
- const ret = wasm.stakeregistration_new_with_explicit_deposit(stake_credential.__wbg_ptr, coin.__wbg_ptr);
28165
+ const ret = wasm.stakederegistration_new_with_explicit_refund(stake_credential.__wbg_ptr, coin.__wbg_ptr);
28104
28166
  return StakeRegistration.__wrap(ret);
28105
28167
  }
28106
28168
  /**
28107
28169
  * @returns {boolean}
28108
28170
  */
28109
28171
  has_script_credentials() {
28110
- const ret = wasm.stakeregistration_has_script_credentials(this.__wbg_ptr);
28172
+ const ret = wasm.stakederegistration_has_script_credentials(this.__wbg_ptr);
28111
28173
  return ret !== 0;
28112
28174
  }
28113
28175
  }
@@ -28300,7 +28362,7 @@ class StakeRegistrationAndDelegation {
28300
28362
  * @returns {BigNum}
28301
28363
  */
28302
28364
  coin() {
28303
- const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
28365
+ const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
28304
28366
  return BigNum.__wrap(ret);
28305
28367
  }
28306
28368
  /**
@@ -28520,7 +28582,7 @@ class StakeVoteRegistrationAndDelegation {
28520
28582
  * @returns {BigNum}
28521
28583
  */
28522
28584
  coin() {
28523
- const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
28585
+ const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
28524
28586
  return BigNum.__wrap(ret);
28525
28587
  }
28526
28588
  /**
@@ -28585,7 +28647,7 @@ class Strings {
28585
28647
  * @returns {number}
28586
28648
  */
28587
28649
  len() {
28588
- const ret = wasm.costmdls_len(this.__wbg_ptr);
28650
+ const ret = wasm.strings_len(this.__wbg_ptr);
28589
28651
  return ret >>> 0;
28590
28652
  }
28591
28653
  /**
@@ -28830,7 +28892,7 @@ class TimelockExpiry {
28830
28892
  */
28831
28893
  static new_timelockexpiry(slot) {
28832
28894
  _assertClass(slot, BigNum);
28833
- const ret = wasm.timelockexpiry_new_timelockexpiry(slot.__wbg_ptr);
28895
+ const ret = wasm.drepregistration_coin(slot.__wbg_ptr);
28834
28896
  return TimelockExpiry.__wrap(ret);
28835
28897
  }
28836
28898
  }
@@ -29051,7 +29113,7 @@ class TimelockStart {
29051
29113
  */
29052
29114
  static new_timelockstart(slot) {
29053
29115
  _assertClass(slot, BigNum);
29054
- const ret = wasm.timelockexpiry_new_timelockexpiry(slot.__wbg_ptr);
29116
+ const ret = wasm.drepregistration_coin(slot.__wbg_ptr);
29055
29117
  return TimelockStart.__wrap(ret);
29056
29118
  }
29057
29119
  }
@@ -29310,7 +29372,7 @@ class TransactionBatch {
29310
29372
  * @returns {number}
29311
29373
  */
29312
29374
  len() {
29313
- const ret = wasm.governanceactionids_len(this.__wbg_ptr);
29375
+ const ret = wasm.transactionbatch_len(this.__wbg_ptr);
29314
29376
  return ret >>> 0;
29315
29377
  }
29316
29378
  /**
@@ -29354,7 +29416,7 @@ class TransactionBatchList {
29354
29416
  * @returns {number}
29355
29417
  */
29356
29418
  len() {
29357
- const ret = wasm.governanceactionids_len(this.__wbg_ptr);
29419
+ const ret = wasm.transactionbatchlist_len(this.__wbg_ptr);
29358
29420
  return ret >>> 0;
29359
29421
  }
29360
29422
  /**
@@ -29548,7 +29610,7 @@ class TransactionBodies {
29548
29610
  * @returns {number}
29549
29611
  */
29550
29612
  len() {
29551
- const ret = wasm.fixedtransactionbodies_len(this.__wbg_ptr);
29613
+ const ret = wasm.transactionbodies_len(this.__wbg_ptr);
29552
29614
  return ret >>> 0;
29553
29615
  }
29554
29616
  /**
@@ -31961,7 +32023,7 @@ class TransactionInputs {
31961
32023
  * @returns {number}
31962
32024
  */
31963
32025
  len() {
31964
- const ret = wasm.governanceactionids_len(this.__wbg_ptr);
32026
+ const ret = wasm.transactioninputs_len(this.__wbg_ptr);
31965
32027
  return ret >>> 0;
31966
32028
  }
31967
32029
  /**
@@ -32169,7 +32231,7 @@ class TransactionMetadatum {
32169
32231
  * @returns {TransactionMetadatumKind}
32170
32232
  */
32171
32233
  kind() {
32172
- const ret = wasm.plutusdata_kind(this.__wbg_ptr);
32234
+ const ret = wasm.transactionmetadatum_kind(this.__wbg_ptr);
32173
32235
  return ret;
32174
32236
  }
32175
32237
  /**
@@ -32384,14 +32446,14 @@ class TransactionMetadatumLabels {
32384
32446
  * @returns {TransactionMetadatumLabels}
32385
32447
  */
32386
32448
  static new() {
32387
- const ret = wasm.metadatalist_new();
32449
+ const ret = wasm.plutusmapvalues_new();
32388
32450
  return TransactionMetadatumLabels.__wrap(ret);
32389
32451
  }
32390
32452
  /**
32391
32453
  * @returns {number}
32392
32454
  */
32393
32455
  len() {
32394
- const ret = wasm.languages_len(this.__wbg_ptr);
32456
+ const ret = wasm.transactionmetadatumlabels_len(this.__wbg_ptr);
32395
32457
  return ret >>> 0;
32396
32458
  }
32397
32459
  /**
@@ -33052,7 +33114,7 @@ class TransactionOutputs {
33052
33114
  * @returns {number}
33053
33115
  */
33054
33116
  len() {
33055
- const ret = wasm.assetnames_len(this.__wbg_ptr);
33117
+ const ret = wasm.transactionoutputs_len(this.__wbg_ptr);
33056
33118
  return ret >>> 0;
33057
33119
  }
33058
33120
  /**
@@ -33837,7 +33899,7 @@ class TransactionWitnessSets {
33837
33899
  * @returns {number}
33838
33900
  */
33839
33901
  len() {
33840
- const ret = wasm.governanceactionids_len(this.__wbg_ptr);
33902
+ const ret = wasm.transactionwitnesssets_len(this.__wbg_ptr);
33841
33903
  return ret >>> 0;
33842
33904
  }
33843
33905
  /**
@@ -33986,7 +34048,7 @@ class TreasuryWithdrawals {
33986
34048
  * @returns {number}
33987
34049
  */
33988
34050
  len() {
33989
- const ret = wasm.costmodel_len(this.__wbg_ptr);
34051
+ const ret = wasm.treasurywithdrawals_len(this.__wbg_ptr);
33990
34052
  return ret >>> 0;
33991
34053
  }
33992
34054
  }
@@ -36525,7 +36587,7 @@ class Vkeys {
36525
36587
  * @returns {number}
36526
36588
  */
36527
36589
  len() {
36528
- const ret = wasm.costmodel_len(this.__wbg_ptr);
36590
+ const ret = wasm.vkeys_len(this.__wbg_ptr);
36529
36591
  return ret >>> 0;
36530
36592
  }
36531
36593
  /**
@@ -37325,7 +37387,7 @@ class VoteRegistrationAndDelegation {
37325
37387
  * @returns {Credential}
37326
37388
  */
37327
37389
  stake_credential() {
37328
- const ret = wasm.drepderegistration_voting_credential(this.__wbg_ptr);
37390
+ const ret = wasm.voteregistrationanddelegation_stake_credential(this.__wbg_ptr);
37329
37391
  return Credential.__wrap(ret);
37330
37392
  }
37331
37393
  /**
@@ -37339,7 +37401,7 @@ class VoteRegistrationAndDelegation {
37339
37401
  * @returns {BigNum}
37340
37402
  */
37341
37403
  coin() {
37342
- const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
37404
+ const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
37343
37405
  return BigNum.__wrap(ret);
37344
37406
  }
37345
37407
  /**
@@ -37359,7 +37421,7 @@ class VoteRegistrationAndDelegation {
37359
37421
  * @returns {boolean}
37360
37422
  */
37361
37423
  has_script_credentials() {
37362
- const ret = wasm.drepderegistration_has_script_credentials(this.__wbg_ptr);
37424
+ const ret = wasm.voteregistrationanddelegation_has_script_credentials(this.__wbg_ptr);
37363
37425
  return ret !== 0;
37364
37426
  }
37365
37427
  }
@@ -37702,7 +37764,7 @@ class Voters {
37702
37764
  * @returns {Voters}
37703
37765
  */
37704
37766
  static new() {
37705
- const ret = wasm.voters_new();
37767
+ const ret = wasm.vkeys_new();
37706
37768
  return Voters.__wrap(ret);
37707
37769
  }
37708
37770
  /**
@@ -37724,7 +37786,7 @@ class Voters {
37724
37786
  * @returns {number}
37725
37787
  */
37726
37788
  len() {
37727
- const ret = wasm.relays_len(this.__wbg_ptr);
37789
+ const ret = wasm.voters_len(this.__wbg_ptr);
37728
37790
  return ret >>> 0;
37729
37791
  }
37730
37792
  }
@@ -37760,7 +37822,7 @@ class VotingBuilder {
37760
37822
  * @returns {VotingBuilder}
37761
37823
  */
37762
37824
  static new() {
37763
- const ret = wasm.votingbuilder_new();
37825
+ const ret = wasm.costmdls_new();
37764
37826
  return VotingBuilder.__wrap(ret);
37765
37827
  }
37766
37828
  /**
@@ -38066,7 +38128,7 @@ class VotingProcedure {
38066
38128
  * @returns {Anchor | undefined}
38067
38129
  */
38068
38130
  anchor() {
38069
- const ret = wasm.committeecoldresign_anchor(this.__wbg_ptr);
38131
+ const ret = wasm.votingprocedure_anchor(this.__wbg_ptr);
38070
38132
  return ret === 0 ? undefined : Anchor.__wrap(ret);
38071
38133
  }
38072
38134
  }
@@ -38245,7 +38307,7 @@ class VotingProcedures {
38245
38307
  * @returns {VotingProcedures}
38246
38308
  */
38247
38309
  static new() {
38248
- const ret = wasm.costmdls_new();
38310
+ const ret = wasm.votingprocedures_new();
38249
38311
  return VotingProcedures.__wrap(ret);
38250
38312
  }
38251
38313
  /**
@@ -39197,11 +39259,6 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
39197
39259
  return addHeapObject(ret);
39198
39260
  };
39199
39261
 
39200
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
39201
- const ret = new Error(getStringFromWasm0(arg0, arg1));
39202
- return addHeapObject(ret);
39203
- };
39204
-
39205
39262
  module.exports.__wbindgen_is_undefined = function(arg0) {
39206
39263
  const ret = getObject(arg0) === undefined;
39207
39264
  return ret;
@@ -39227,6 +39284,17 @@ module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
39227
39284
  return ret;
39228
39285
  };
39229
39286
 
39287
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
39288
+ const ret = BigInt.asUintN(64, arg0);
39289
+ return addHeapObject(ret);
39290
+ };
39291
+
39292
+ module.exports.__wbindgen_boolean_get = function(arg0) {
39293
+ const v = getObject(arg0);
39294
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
39295
+ return ret;
39296
+ };
39297
+
39230
39298
  module.exports.__wbindgen_is_string = function(arg0) {
39231
39299
  const ret = typeof(getObject(arg0)) === 'string';
39232
39300
  return ret;
@@ -39247,6 +39315,11 @@ module.exports.__wbindgen_is_object = function(arg0) {
39247
39315
  return ret;
39248
39316
  };
39249
39317
 
39318
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
39319
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
39320
+ return addHeapObject(ret);
39321
+ };
39322
+
39250
39323
  module.exports.__wbindgen_object_clone_ref = function(arg0) {
39251
39324
  const ret = getObject(arg0);
39252
39325
  return addHeapObject(ret);
@@ -39257,12 +39330,6 @@ module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
39257
39330
  return ret;
39258
39331
  };
39259
39332
 
39260
- module.exports.__wbindgen_boolean_get = function(arg0) {
39261
- const v = getObject(arg0);
39262
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
39263
- return ret;
39264
- };
39265
-
39266
39333
  module.exports.__wbindgen_number_get = function(arg0, arg1) {
39267
39334
  const obj = getObject(arg1);
39268
39335
  const ret = typeof(obj) === 'number' ? obj : undefined;
@@ -39331,14 +39398,14 @@ module.exports.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
39331
39398
  return addHeapObject(ret);
39332
39399
  };
39333
39400
 
39334
- module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
39335
- getObject(arg0).getRandomValues(getObject(arg1));
39336
- }, arguments) };
39337
-
39338
39401
  module.exports.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
39339
39402
  getObject(arg0).randomFillSync(takeObject(arg1));
39340
39403
  }, arguments) };
39341
39404
 
39405
+ module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
39406
+ getObject(arg0).getRandomValues(getObject(arg1));
39407
+ }, arguments) };
39408
+
39342
39409
  module.exports.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) {
39343
39410
  const ret = getObject(arg0)[arg1 >>> 0];
39344
39411
  return addHeapObject(ret);