@cardananium/cquisitor-lib 0.1.0-beta.22 → 0.1.0-beta.24

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,67 +290,24 @@ export function get_possible_types_for_input(input) {
290
290
  }
291
291
 
292
292
  /**
293
- * @param {string} tx_hex
294
- * @returns {string}
295
- */
296
- export function get_necessary_data_list_js(tx_hex) {
297
- let deferred3_0;
298
- let deferred3_1;
299
- try {
300
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
301
- const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
302
- const len0 = WASM_VECTOR_LEN;
303
- wasm.get_necessary_data_list_js(retptr, ptr0, len0);
304
- var r0 = getInt32Memory0()[retptr / 4 + 0];
305
- var r1 = getInt32Memory0()[retptr / 4 + 1];
306
- 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);
313
- }
314
- deferred3_0 = ptr2;
315
- deferred3_1 = len2;
316
- return getStringFromWasm0(ptr2, len2);
317
- } finally {
318
- wasm.__wbindgen_add_to_stack_pointer(16);
319
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
320
- }
321
- }
322
-
323
- /**
324
- * @param {string} tx_hex
325
- * @param {string} validation_context
326
- * @returns {string}
293
+ * @param {string} hex_str
294
+ * @returns {any}
327
295
  */
328
- export function validate_transaction_js(tx_hex, validation_context) {
329
- let deferred4_0;
330
- let deferred4_1;
296
+ export function check_block_or_tx_signatures(hex_str) {
331
297
  try {
332
298
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
333
- const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
299
+ const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
334
300
  const len0 = WASM_VECTOR_LEN;
335
- const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
336
- const len1 = WASM_VECTOR_LEN;
337
- wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
301
+ wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
338
302
  var r0 = getInt32Memory0()[retptr / 4 + 0];
339
303
  var r1 = getInt32Memory0()[retptr / 4 + 1];
340
304
  var r2 = getInt32Memory0()[retptr / 4 + 2];
341
- var r3 = getInt32Memory0()[retptr / 4 + 3];
342
- var ptr3 = r0;
343
- var len3 = r1;
344
- if (r3) {
345
- ptr3 = 0; len3 = 0;
346
- throw takeObject(r2);
305
+ if (r2) {
306
+ throw takeObject(r1);
347
307
  }
348
- deferred4_0 = ptr3;
349
- deferred4_1 = len3;
350
- return getStringFromWasm0(ptr3, len3);
308
+ return takeObject(r0);
351
309
  } finally {
352
310
  wasm.__wbindgen_add_to_stack_pointer(16);
353
- wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
354
311
  }
355
312
  }
356
313
 
@@ -409,347 +366,145 @@ export function decode_plutus_program_pretty_uplc(hex) {
409
366
 
410
367
  /**
411
368
  * @param {string} tx_hex
412
- * @returns {(string)[]}
369
+ * @returns {string}
413
370
  */
414
- export function get_utxo_list_from_tx(tx_hex) {
371
+ export function get_necessary_data_list_js(tx_hex) {
372
+ let deferred3_0;
373
+ let deferred3_1;
415
374
  try {
416
375
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
417
376
  const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
418
377
  const len0 = WASM_VECTOR_LEN;
419
- wasm.get_utxo_list_from_tx(retptr, ptr0, len0);
378
+ wasm.get_necessary_data_list_js(retptr, ptr0, len0);
420
379
  var r0 = getInt32Memory0()[retptr / 4 + 0];
421
380
  var r1 = getInt32Memory0()[retptr / 4 + 1];
422
381
  var r2 = getInt32Memory0()[retptr / 4 + 2];
423
382
  var r3 = getInt32Memory0()[retptr / 4 + 3];
383
+ var ptr2 = r0;
384
+ var len2 = r1;
424
385
  if (r3) {
386
+ ptr2 = 0; len2 = 0;
425
387
  throw takeObject(r2);
426
388
  }
427
- var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
428
- wasm.__wbindgen_free(r0, r1 * 4, 4);
429
- return v2;
389
+ deferred3_0 = ptr2;
390
+ deferred3_1 = len2;
391
+ return getStringFromWasm0(ptr2, len2);
430
392
  } finally {
431
393
  wasm.__wbindgen_add_to_stack_pointer(16);
394
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
432
395
  }
433
396
  }
434
397
 
435
398
  /**
436
399
  * @param {string} tx_hex
437
- * @param {any} utxo_json
438
- * @param {any} cost_models_json
439
- * @returns {any}
400
+ * @param {string} validation_context
401
+ * @returns {string}
440
402
  */
441
- export function execute_tx_scripts(tx_hex, utxo_json, cost_models_json) {
403
+ export function validate_transaction_js(tx_hex, validation_context) {
404
+ let deferred4_0;
405
+ let deferred4_1;
442
406
  try {
443
407
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
444
408
  const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
445
409
  const len0 = WASM_VECTOR_LEN;
446
- wasm.execute_tx_scripts(retptr, ptr0, len0, addHeapObject(utxo_json), addHeapObject(cost_models_json));
447
- var r0 = getInt32Memory0()[retptr / 4 + 0];
448
- var r1 = getInt32Memory0()[retptr / 4 + 1];
449
- var r2 = getInt32Memory0()[retptr / 4 + 2];
450
- if (r2) {
451
- throw takeObject(r1);
452
- }
453
- return takeObject(r0);
454
- } finally {
455
- wasm.__wbindgen_add_to_stack_pointer(16);
456
- }
457
- }
458
-
459
- /**
460
- * @param {string} cbor_hex
461
- * @returns {any}
462
- */
463
- export function cbor_to_json(cbor_hex) {
464
- try {
465
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
466
- const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
467
- const len0 = WASM_VECTOR_LEN;
468
- wasm.cbor_to_json(retptr, ptr0, len0);
469
- var r0 = getInt32Memory0()[retptr / 4 + 0];
470
- var r1 = getInt32Memory0()[retptr / 4 + 1];
471
- var r2 = getInt32Memory0()[retptr / 4 + 2];
472
- if (r2) {
473
- throw takeObject(r1);
474
- }
475
- return takeObject(r0);
476
- } finally {
477
- wasm.__wbindgen_add_to_stack_pointer(16);
478
- }
479
- }
480
-
481
- /**
482
- * @param {string} hex_str
483
- * @returns {any}
484
- */
485
- export function check_block_or_tx_signatures(hex_str) {
486
- try {
487
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
488
- const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
489
- const len0 = WASM_VECTOR_LEN;
490
- wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
491
- var r0 = getInt32Memory0()[retptr / 4 + 0];
492
- var r1 = getInt32Memory0()[retptr / 4 + 1];
493
- var r2 = getInt32Memory0()[retptr / 4 + 2];
494
- if (r2) {
495
- throw takeObject(r1);
496
- }
497
- return takeObject(r0);
498
- } finally {
499
- wasm.__wbindgen_add_to_stack_pointer(16);
500
- }
501
- }
502
-
503
- function getArrayU8FromWasm0(ptr, len) {
504
- ptr = ptr >>> 0;
505
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
506
- }
507
-
508
- function passArray8ToWasm0(arg, malloc) {
509
- const ptr = malloc(arg.length * 1, 1) >>> 0;
510
- getUint8Memory0().set(arg, ptr / 1);
511
- WASM_VECTOR_LEN = arg.length;
512
- return ptr;
513
- }
514
-
515
- function _assertClass(instance, klass) {
516
- if (!(instance instanceof klass)) {
517
- throw new Error(`expected instance of ${klass.name}`);
518
- }
519
- return instance.ptr;
520
- }
521
- /**
522
- * @param {string} json
523
- * @param {PlutusDatumSchema} schema
524
- * @returns {PlutusData}
525
- */
526
- export function encode_json_str_to_plutus_datum(json, schema) {
527
- try {
528
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
529
- const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
530
- const len0 = WASM_VECTOR_LEN;
531
- wasm.encode_json_str_to_plutus_datum(retptr, ptr0, len0, schema);
532
- var r0 = getInt32Memory0()[retptr / 4 + 0];
533
- var r1 = getInt32Memory0()[retptr / 4 + 1];
534
- var r2 = getInt32Memory0()[retptr / 4 + 2];
535
- if (r2) {
536
- throw takeObject(r1);
537
- }
538
- return PlutusData.__wrap(r0);
539
- } finally {
540
- wasm.__wbindgen_add_to_stack_pointer(16);
541
- }
542
- }
543
-
544
- /**
545
- * @param {PlutusData} datum
546
- * @param {PlutusDatumSchema} schema
547
- * @returns {string}
548
- */
549
- export function decode_plutus_datum_to_json_str(datum, schema) {
550
- let deferred2_0;
551
- let deferred2_1;
552
- try {
553
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
554
- _assertClass(datum, PlutusData);
555
- wasm.decode_plutus_datum_to_json_str(retptr, datum.__wbg_ptr, schema);
556
- var r0 = getInt32Memory0()[retptr / 4 + 0];
557
- var r1 = getInt32Memory0()[retptr / 4 + 1];
558
- var r2 = getInt32Memory0()[retptr / 4 + 2];
559
- var r3 = getInt32Memory0()[retptr / 4 + 3];
560
- var ptr1 = r0;
561
- var len1 = r1;
562
- if (r3) {
563
- ptr1 = 0; len1 = 0;
564
- throw takeObject(r2);
565
- }
566
- deferred2_0 = ptr1;
567
- deferred2_1 = len1;
568
- return getStringFromWasm0(ptr1, len1);
569
- } finally {
570
- wasm.__wbindgen_add_to_stack_pointer(16);
571
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
572
- }
573
- }
574
-
575
- /**
576
- * @param {Uint8Array} bytes
577
- * @returns {TransactionMetadatum}
578
- */
579
- export function encode_arbitrary_bytes_as_metadatum(bytes) {
580
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
581
- const len0 = WASM_VECTOR_LEN;
582
- const ret = wasm.encode_arbitrary_bytes_as_metadatum(ptr0, len0);
583
- return TransactionMetadatum.__wrap(ret);
584
- }
585
-
586
- /**
587
- * @param {TransactionMetadatum} metadata
588
- * @returns {Uint8Array}
589
- */
590
- export function decode_arbitrary_bytes_from_metadatum(metadata) {
591
- try {
592
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
593
- _assertClass(metadata, TransactionMetadatum);
594
- wasm.decode_arbitrary_bytes_from_metadatum(retptr, metadata.__wbg_ptr);
410
+ const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
411
+ const len1 = WASM_VECTOR_LEN;
412
+ wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
595
413
  var r0 = getInt32Memory0()[retptr / 4 + 0];
596
414
  var r1 = getInt32Memory0()[retptr / 4 + 1];
597
415
  var r2 = getInt32Memory0()[retptr / 4 + 2];
598
416
  var r3 = getInt32Memory0()[retptr / 4 + 3];
417
+ var ptr3 = r0;
418
+ var len3 = r1;
599
419
  if (r3) {
420
+ ptr3 = 0; len3 = 0;
600
421
  throw takeObject(r2);
601
422
  }
602
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
603
- wasm.__wbindgen_free(r0, r1 * 1, 1);
604
- return v1;
423
+ deferred4_0 = ptr3;
424
+ deferred4_1 = len3;
425
+ return getStringFromWasm0(ptr3, len3);
605
426
  } finally {
606
427
  wasm.__wbindgen_add_to_stack_pointer(16);
428
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
607
429
  }
608
430
  }
609
431
 
610
432
  /**
611
- * @param {string} json
612
- * @param {MetadataJsonSchema} schema
613
- * @returns {TransactionMetadatum}
433
+ * @param {string} tx_hex
434
+ * @returns {(string)[]}
614
435
  */
615
- export function encode_json_str_to_metadatum(json, schema) {
436
+ export function get_utxo_list_from_tx(tx_hex) {
616
437
  try {
617
438
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
618
- const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
439
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
619
440
  const len0 = WASM_VECTOR_LEN;
620
- wasm.encode_json_str_to_metadatum(retptr, ptr0, len0, schema);
621
- var r0 = getInt32Memory0()[retptr / 4 + 0];
622
- var r1 = getInt32Memory0()[retptr / 4 + 1];
623
- var r2 = getInt32Memory0()[retptr / 4 + 2];
624
- if (r2) {
625
- throw takeObject(r1);
626
- }
627
- return TransactionMetadatum.__wrap(r0);
628
- } finally {
629
- wasm.__wbindgen_add_to_stack_pointer(16);
630
- }
631
- }
632
-
633
- /**
634
- * @param {TransactionMetadatum} metadatum
635
- * @param {MetadataJsonSchema} schema
636
- * @returns {string}
637
- */
638
- export function decode_metadatum_to_json_str(metadatum, schema) {
639
- let deferred2_0;
640
- let deferred2_1;
641
- try {
642
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
643
- _assertClass(metadatum, TransactionMetadatum);
644
- wasm.decode_metadatum_to_json_str(retptr, metadatum.__wbg_ptr, schema);
441
+ wasm.get_utxo_list_from_tx(retptr, ptr0, len0);
645
442
  var r0 = getInt32Memory0()[retptr / 4 + 0];
646
443
  var r1 = getInt32Memory0()[retptr / 4 + 1];
647
444
  var r2 = getInt32Memory0()[retptr / 4 + 2];
648
445
  var r3 = getInt32Memory0()[retptr / 4 + 3];
649
- var ptr1 = r0;
650
- var len1 = r1;
651
446
  if (r3) {
652
- ptr1 = 0; len1 = 0;
653
447
  throw takeObject(r2);
654
448
  }
655
- deferred2_0 = ptr1;
656
- deferred2_1 = len1;
657
- return getStringFromWasm0(ptr1, len1);
658
- } finally {
659
- wasm.__wbindgen_add_to_stack_pointer(16);
660
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
661
- }
662
- }
663
-
664
- /**
665
- * @param {Transaction} tx
666
- * @param {LinearFee} linear_fee
667
- * @returns {BigNum}
668
- */
669
- export function min_fee(tx, linear_fee) {
670
- try {
671
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
672
- _assertClass(tx, Transaction);
673
- _assertClass(linear_fee, LinearFee);
674
- wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__wbg_ptr);
675
- var r0 = getInt32Memory0()[retptr / 4 + 0];
676
- var r1 = getInt32Memory0()[retptr / 4 + 1];
677
- var r2 = getInt32Memory0()[retptr / 4 + 2];
678
- if (r2) {
679
- throw takeObject(r1);
680
- }
681
- return BigNum.__wrap(r0);
449
+ var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
450
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
451
+ return v2;
682
452
  } finally {
683
453
  wasm.__wbindgen_add_to_stack_pointer(16);
684
454
  }
685
455
  }
686
456
 
687
457
  /**
688
- * @param {ExUnits} ex_units
689
- * @param {ExUnitPrices} ex_unit_prices
690
- * @returns {BigNum}
458
+ * @param {string} tx_hex
459
+ * @param {any} utxo_json
460
+ * @param {any} cost_models_json
461
+ * @returns {any}
691
462
  */
692
- export function calculate_ex_units_ceil_cost(ex_units, ex_unit_prices) {
463
+ export function execute_tx_scripts(tx_hex, utxo_json, cost_models_json) {
693
464
  try {
694
465
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
695
- _assertClass(ex_units, ExUnits);
696
- _assertClass(ex_unit_prices, ExUnitPrices);
697
- wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
466
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
467
+ const len0 = WASM_VECTOR_LEN;
468
+ wasm.execute_tx_scripts(retptr, ptr0, len0, addHeapObject(utxo_json), addHeapObject(cost_models_json));
698
469
  var r0 = getInt32Memory0()[retptr / 4 + 0];
699
470
  var r1 = getInt32Memory0()[retptr / 4 + 1];
700
471
  var r2 = getInt32Memory0()[retptr / 4 + 2];
701
472
  if (r2) {
702
473
  throw takeObject(r1);
703
474
  }
704
- return BigNum.__wrap(r0);
475
+ return takeObject(r0);
705
476
  } finally {
706
477
  wasm.__wbindgen_add_to_stack_pointer(16);
707
478
  }
708
479
  }
709
480
 
710
481
  /**
711
- * @param {Transaction} tx
712
- * @param {ExUnitPrices} ex_unit_prices
713
- * @returns {BigNum}
482
+ * @param {string} cbor_hex
483
+ * @returns {any}
714
484
  */
715
- export function min_script_fee(tx, ex_unit_prices) {
485
+ export function cbor_to_json(cbor_hex) {
716
486
  try {
717
487
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
718
- _assertClass(tx, Transaction);
719
- _assertClass(ex_unit_prices, ExUnitPrices);
720
- wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
488
+ const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
489
+ const len0 = WASM_VECTOR_LEN;
490
+ wasm.cbor_to_json(retptr, ptr0, len0);
721
491
  var r0 = getInt32Memory0()[retptr / 4 + 0];
722
492
  var r1 = getInt32Memory0()[retptr / 4 + 1];
723
493
  var r2 = getInt32Memory0()[retptr / 4 + 2];
724
494
  if (r2) {
725
495
  throw takeObject(r1);
726
496
  }
727
- return BigNum.__wrap(r0);
497
+ return takeObject(r0);
728
498
  } finally {
729
499
  wasm.__wbindgen_add_to_stack_pointer(16);
730
500
  }
731
501
  }
732
502
 
733
- /**
734
- * @param {number} total_ref_scripts_size
735
- * @param {UnitInterval} ref_script_coins_per_byte
736
- * @returns {BigNum}
737
- */
738
- export function min_ref_script_fee(total_ref_scripts_size, ref_script_coins_per_byte) {
739
- try {
740
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
741
- _assertClass(ref_script_coins_per_byte, UnitInterval);
742
- wasm.min_ref_script_fee(retptr, total_ref_scripts_size, ref_script_coins_per_byte.__wbg_ptr);
743
- var r0 = getInt32Memory0()[retptr / 4 + 0];
744
- var r1 = getInt32Memory0()[retptr / 4 + 1];
745
- var r2 = getInt32Memory0()[retptr / 4 + 2];
746
- if (r2) {
747
- throw takeObject(r1);
748
- }
749
- return BigNum.__wrap(r0);
750
- } finally {
751
- wasm.__wbindgen_add_to_stack_pointer(16);
503
+ function _assertClass(instance, klass) {
504
+ if (!(instance instanceof klass)) {
505
+ throw new Error(`expected instance of ${klass.name}`);
752
506
  }
507
+ return instance.ptr;
753
508
  }
754
509
 
755
510
  function getArrayU32FromWasm0(ptr, len) {
@@ -757,9 +512,14 @@ function getArrayU32FromWasm0(ptr, len) {
757
512
  return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
758
513
  }
759
514
 
760
- function passArray32ToWasm0(arg, malloc) {
761
- const ptr = malloc(arg.length * 4, 4) >>> 0;
762
- getUint32Memory0().set(arg, ptr / 4);
515
+ function getArrayU8FromWasm0(ptr, len) {
516
+ ptr = ptr >>> 0;
517
+ return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
518
+ }
519
+
520
+ function passArray8ToWasm0(arg, malloc) {
521
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
522
+ getUint8Memory0().set(arg, ptr / 1);
763
523
  WASM_VECTOR_LEN = arg.length;
764
524
  return ptr;
765
525
  }
@@ -978,6 +738,60 @@ export function has_transaction_set_tag(tx_bytes) {
978
738
  }
979
739
  }
980
740
 
741
+ /**
742
+ * @param {string} json
743
+ * @param {PlutusDatumSchema} schema
744
+ * @returns {PlutusData}
745
+ */
746
+ export function encode_json_str_to_plutus_datum(json, schema) {
747
+ try {
748
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
749
+ const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
750
+ const len0 = WASM_VECTOR_LEN;
751
+ wasm.encode_json_str_to_plutus_datum(retptr, ptr0, len0, schema);
752
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
753
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
754
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
755
+ if (r2) {
756
+ throw takeObject(r1);
757
+ }
758
+ return PlutusData.__wrap(r0);
759
+ } finally {
760
+ wasm.__wbindgen_add_to_stack_pointer(16);
761
+ }
762
+ }
763
+
764
+ /**
765
+ * @param {PlutusData} datum
766
+ * @param {PlutusDatumSchema} schema
767
+ * @returns {string}
768
+ */
769
+ export function decode_plutus_datum_to_json_str(datum, schema) {
770
+ let deferred2_0;
771
+ let deferred2_1;
772
+ try {
773
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
774
+ _assertClass(datum, PlutusData);
775
+ wasm.decode_plutus_datum_to_json_str(retptr, datum.__wbg_ptr, schema);
776
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
777
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
778
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
779
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
780
+ var ptr1 = r0;
781
+ var len1 = r1;
782
+ if (r3) {
783
+ ptr1 = 0; len1 = 0;
784
+ throw takeObject(r2);
785
+ }
786
+ deferred2_0 = ptr1;
787
+ deferred2_1 = len1;
788
+ return getStringFromWasm0(ptr1, len1);
789
+ } finally {
790
+ wasm.__wbindgen_add_to_stack_pointer(16);
791
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
792
+ }
793
+ }
794
+
981
795
  /**
982
796
  * @param {string} password
983
797
  * @param {string} salt
@@ -1077,49 +891,275 @@ export function create_send_all(address, utxos, config) {
1077
891
  }
1078
892
  }
1079
893
 
1080
- function handleError(f, args) {
894
+ /**
895
+ * @param {Transaction} tx
896
+ * @param {LinearFee} linear_fee
897
+ * @returns {BigNum}
898
+ */
899
+ export function min_fee(tx, linear_fee) {
1081
900
  try {
1082
- return f.apply(this, args);
1083
- } catch (e) {
1084
- wasm.__wbindgen_exn_store(addHeapObject(e));
901
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
902
+ _assertClass(tx, Transaction);
903
+ _assertClass(linear_fee, LinearFee);
904
+ wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__wbg_ptr);
905
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
906
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
907
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
908
+ if (r2) {
909
+ throw takeObject(r1);
910
+ }
911
+ return BigNum.__wrap(r0);
912
+ } finally {
913
+ wasm.__wbindgen_add_to_stack_pointer(16);
1085
914
  }
1086
915
  }
916
+
1087
917
  /**
918
+ * @param {ExUnits} ex_units
919
+ * @param {ExUnitPrices} ex_unit_prices
920
+ * @returns {BigNum}
1088
921
  */
1089
- export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
922
+ export function calculate_ex_units_ceil_cost(ex_units, ex_unit_prices) {
923
+ try {
924
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
925
+ _assertClass(ex_units, ExUnits);
926
+ _assertClass(ex_unit_prices, ExUnitPrices);
927
+ wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
928
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
929
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
930
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
931
+ if (r2) {
932
+ throw takeObject(r1);
933
+ }
934
+ return BigNum.__wrap(r0);
935
+ } finally {
936
+ wasm.__wbindgen_add_to_stack_pointer(16);
937
+ }
938
+ }
939
+
1090
940
  /**
941
+ * @param {Transaction} tx
942
+ * @param {ExUnitPrices} ex_unit_prices
943
+ * @returns {BigNum}
1091
944
  */
1092
- export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
945
+ export function min_script_fee(tx, ex_unit_prices) {
946
+ try {
947
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
948
+ _assertClass(tx, Transaction);
949
+ _assertClass(ex_unit_prices, ExUnitPrices);
950
+ wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
951
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
952
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
953
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
954
+ if (r2) {
955
+ throw takeObject(r1);
956
+ }
957
+ return BigNum.__wrap(r0);
958
+ } finally {
959
+ wasm.__wbindgen_add_to_stack_pointer(16);
960
+ }
961
+ }
962
+
1093
963
  /**
964
+ * @param {number} total_ref_scripts_size
965
+ * @param {UnitInterval} ref_script_coins_per_byte
966
+ * @returns {BigNum}
1094
967
  */
1095
- export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
968
+ export function min_ref_script_fee(total_ref_scripts_size, ref_script_coins_per_byte) {
969
+ try {
970
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
971
+ _assertClass(ref_script_coins_per_byte, UnitInterval);
972
+ wasm.min_ref_script_fee(retptr, total_ref_scripts_size, ref_script_coins_per_byte.__wbg_ptr);
973
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
974
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
975
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
976
+ if (r2) {
977
+ throw takeObject(r1);
978
+ }
979
+ return BigNum.__wrap(r0);
980
+ } finally {
981
+ wasm.__wbindgen_add_to_stack_pointer(16);
982
+ }
983
+ }
984
+
1096
985
  /**
986
+ * @param {Uint8Array} bytes
987
+ * @returns {TransactionMetadatum}
1097
988
  */
1098
- export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
989
+ export function encode_arbitrary_bytes_as_metadatum(bytes) {
990
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
991
+ const len0 = WASM_VECTOR_LEN;
992
+ const ret = wasm.encode_arbitrary_bytes_as_metadatum(ptr0, len0);
993
+ return TransactionMetadatum.__wrap(ret);
994
+ }
995
+
996
+ /**
997
+ * @param {TransactionMetadatum} metadata
998
+ * @returns {Uint8Array}
999
+ */
1000
+ export function decode_arbitrary_bytes_from_metadatum(metadata) {
1001
+ try {
1002
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1003
+ _assertClass(metadata, TransactionMetadatum);
1004
+ wasm.decode_arbitrary_bytes_from_metadatum(retptr, metadata.__wbg_ptr);
1005
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1006
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1007
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1008
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
1009
+ if (r3) {
1010
+ throw takeObject(r2);
1011
+ }
1012
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
1013
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
1014
+ return v1;
1015
+ } finally {
1016
+ wasm.__wbindgen_add_to_stack_pointer(16);
1017
+ }
1018
+ }
1019
+
1020
+ /**
1021
+ * @param {string} json
1022
+ * @param {MetadataJsonSchema} schema
1023
+ * @returns {TransactionMetadatum}
1024
+ */
1025
+ export function encode_json_str_to_metadatum(json, schema) {
1026
+ try {
1027
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1028
+ const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1029
+ const len0 = WASM_VECTOR_LEN;
1030
+ wasm.encode_json_str_to_metadatum(retptr, ptr0, len0, schema);
1031
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1032
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1033
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1034
+ if (r2) {
1035
+ throw takeObject(r1);
1036
+ }
1037
+ return TransactionMetadatum.__wrap(r0);
1038
+ } finally {
1039
+ wasm.__wbindgen_add_to_stack_pointer(16);
1040
+ }
1041
+ }
1042
+
1043
+ /**
1044
+ * @param {TransactionMetadatum} metadatum
1045
+ * @param {MetadataJsonSchema} schema
1046
+ * @returns {string}
1047
+ */
1048
+ export function decode_metadatum_to_json_str(metadatum, schema) {
1049
+ let deferred2_0;
1050
+ let deferred2_1;
1051
+ try {
1052
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1053
+ _assertClass(metadatum, TransactionMetadatum);
1054
+ wasm.decode_metadatum_to_json_str(retptr, metadatum.__wbg_ptr, schema);
1055
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1056
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1057
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1058
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
1059
+ var ptr1 = r0;
1060
+ var len1 = r1;
1061
+ if (r3) {
1062
+ ptr1 = 0; len1 = 0;
1063
+ throw takeObject(r2);
1064
+ }
1065
+ deferred2_0 = ptr1;
1066
+ deferred2_1 = len1;
1067
+ return getStringFromWasm0(ptr1, len1);
1068
+ } finally {
1069
+ wasm.__wbindgen_add_to_stack_pointer(16);
1070
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
1071
+ }
1072
+ }
1073
+
1074
+ function passArray32ToWasm0(arg, malloc) {
1075
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
1076
+ getUint32Memory0().set(arg, ptr / 4);
1077
+ WASM_VECTOR_LEN = arg.length;
1078
+ return ptr;
1079
+ }
1080
+
1081
+ function handleError(f, args) {
1082
+ try {
1083
+ return f.apply(this, args);
1084
+ } catch (e) {
1085
+ wasm.__wbindgen_exn_store(addHeapObject(e));
1086
+ }
1087
+ }
1088
+ /**
1089
+ */
1090
+ 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", });
1099
1091
  /**
1100
1092
  * Used to choosed the schema for a script JSON string
1101
1093
  */
1102
1094
  export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1103
1095
  /**
1096
+ * JSON <-> PlutusData conversion schemas.
1097
+ * Follows ScriptDataJsonSchema in cardano-cli defined at:
1098
+ * https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
1099
+ *
1100
+ * All methods here have the following restrictions due to limitations on dependencies:
1101
+ * * JSON numbers above u64::MAX (positive) or below i64::MIN (negative) will throw errors
1102
+ * * Hex strings for bytes don't accept odd-length (half-byte) strings.
1103
+ * cardano-cli seems to support these however but it seems to be different than just 0-padding
1104
+ * on either side when tested so proceed with caution
1104
1105
  */
1105
- export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1106
+ export const PlutusDatumSchema = Object.freeze({
1106
1107
  /**
1108
+ * ScriptDataJsonNoSchema in cardano-node.
1109
+ *
1110
+ * This is the format used by --script-data-value in cardano-cli
1111
+ * This tries to accept most JSON but does not support the full spectrum of Plutus datums.
1112
+ * From JSON:
1113
+ * * null/true/false/floats NOT supported
1114
+ * * strings starting with 0x are treated as hex bytes. All other strings are encoded as their utf8 bytes.
1115
+ * To JSON:
1116
+ * * ConstrPlutusData not supported in ANY FORM (neither keys nor values)
1117
+ * * Lists not supported in keys
1118
+ * * Maps not supported in keys
1107
1119
  */
1108
- export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1120
+ BasicConversions:0,"0":"BasicConversions",
1109
1121
  /**
1122
+ * ScriptDataJsonDetailedSchema in cardano-node.
1123
+ *
1124
+ * This is the format used by --script-data-file in cardano-cli
1125
+ * This covers almost all (only minor exceptions) Plutus datums, but the JSON must conform to a strict schema.
1126
+ * The schema specifies that ALL keys and ALL values must be contained in a JSON map with 2 cases:
1127
+ * 1. For ConstrPlutusData there must be two fields "constructor" contianing a number and "fields" containing its fields
1128
+ * e.g. { "constructor": 2, "fields": [{"int": 2}, {"list": [{"bytes": "CAFEF00D"}]}]}
1129
+ * 2. For all other cases there must be only one field named "int", "bytes", "list" or "map"
1130
+ * Integer's value is a JSON number e.g. {"int": 100}
1131
+ * Bytes' value is a hex string representing the bytes WITHOUT any prefix e.g. {"bytes": "CAFEF00D"}
1132
+ * Lists' value is a JSON list of its elements encoded via the same schema e.g. {"list": [{"bytes": "CAFEF00D"}]}
1133
+ * Maps' value is a JSON list of objects, one for each key-value pair in the map, with keys "k" and "v"
1134
+ * respectively with their values being the plutus datum encoded via this same schema
1135
+ * e.g. {"map": [
1136
+ * {"k": {"int": 2}, "v": {"int": 5}},
1137
+ * {"k": {"map": [{"k": {"list": [{"int": 1}]}, "v": {"bytes": "FF03"}}]}, "v": {"list": []}}
1138
+ * ]}
1139
+ * From JSON:
1140
+ * * null/true/false/floats NOT supported
1141
+ * * the JSON must conform to a very specific schema
1142
+ * To JSON:
1143
+ * * all Plutus datums should be fully supported outside of the integer range limitations outlined above.
1110
1144
  */
1111
- 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", });
1145
+ DetailedSchema:1,"1":"DetailedSchema", });
1112
1146
  /**
1113
1147
  */
1114
- export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1148
+ 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", });
1115
1149
  /**
1116
1150
  */
1117
- 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", });
1151
+ export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1152
+ /**
1153
+ */
1154
+ export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
1118
1155
  /**
1119
1156
  */
1120
1157
  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", });
1121
1158
  /**
1122
1159
  */
1160
+ export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1161
+ /**
1162
+ */
1123
1163
  export const CoinSelectionStrategyCIP2 = Object.freeze({
1124
1164
  /**
1125
1165
  * Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
@@ -1139,98 +1179,59 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1139
1179
  RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1140
1180
  /**
1141
1181
  */
1142
- export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1182
+ 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", });
1143
1183
  /**
1144
1184
  */
1145
- export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1185
+ export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1146
1186
  /**
1147
1187
  */
1148
- 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", });
1188
+ export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
1149
1189
  /**
1150
1190
  */
1151
- 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", });
1191
+ export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1152
1192
  /**
1153
1193
  */
1154
- export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1194
+ 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", });
1155
1195
  /**
1156
- * Each new language uses a different namespace for hashing its script
1157
- * This is because you could have a language where the same bytes have different semantics
1158
- * So this avoids scripts in different languages mapping to the same hash
1159
- * Note that the enum value here is different than the enum value for deciding the cost model of a script
1160
1196
  */
1161
- export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1197
+ export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1162
1198
  /**
1163
1199
  */
1164
- 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", });
1200
+ export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1165
1201
  /**
1166
1202
  */
1167
- 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", });
1203
+ export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1168
1204
  /**
1169
1205
  */
1170
- export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1206
+ export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1171
1207
  /**
1172
1208
  */
1173
- 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", });
1209
+ 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", });
1174
1210
  /**
1175
1211
  */
1176
- export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1212
+ export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
1177
1213
  /**
1178
- * JSON <-> PlutusData conversion schemas.
1179
- * Follows ScriptDataJsonSchema in cardano-cli defined at:
1180
- * https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
1181
- *
1182
- * All methods here have the following restrictions due to limitations on dependencies:
1183
- * * JSON numbers above u64::MAX (positive) or below i64::MIN (negative) will throw errors
1184
- * * Hex strings for bytes don't accept odd-length (half-byte) strings.
1185
- * cardano-cli seems to support these however but it seems to be different than just 0-padding
1186
- * on either side when tested so proceed with caution
1187
1214
  */
1188
- export const PlutusDatumSchema = Object.freeze({
1215
+ 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", });
1189
1216
  /**
1190
- * ScriptDataJsonNoSchema in cardano-node.
1191
- *
1192
- * This is the format used by --script-data-value in cardano-cli
1193
- * This tries to accept most JSON but does not support the full spectrum of Plutus datums.
1194
- * From JSON:
1195
- * * null/true/false/floats NOT supported
1196
- * * strings starting with 0x are treated as hex bytes. All other strings are encoded as their utf8 bytes.
1197
- * To JSON:
1198
- * * ConstrPlutusData not supported in ANY FORM (neither keys nor values)
1199
- * * Lists not supported in keys
1200
- * * Maps not supported in keys
1201
1217
  */
1202
- BasicConversions:0,"0":"BasicConversions",
1218
+ 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", });
1203
1219
  /**
1204
- * ScriptDataJsonDetailedSchema in cardano-node.
1205
- *
1206
- * This is the format used by --script-data-file in cardano-cli
1207
- * This covers almost all (only minor exceptions) Plutus datums, but the JSON must conform to a strict schema.
1208
- * The schema specifies that ALL keys and ALL values must be contained in a JSON map with 2 cases:
1209
- * 1. For ConstrPlutusData there must be two fields "constructor" contianing a number and "fields" containing its fields
1210
- * e.g. { "constructor": 2, "fields": [{"int": 2}, {"list": [{"bytes": "CAFEF00D"}]}]}
1211
- * 2. For all other cases there must be only one field named "int", "bytes", "list" or "map"
1212
- * Integer's value is a JSON number e.g. {"int": 100}
1213
- * Bytes' value is a hex string representing the bytes WITHOUT any prefix e.g. {"bytes": "CAFEF00D"}
1214
- * Lists' value is a JSON list of its elements encoded via the same schema e.g. {"list": [{"bytes": "CAFEF00D"}]}
1215
- * Maps' value is a JSON list of objects, one for each key-value pair in the map, with keys "k" and "v"
1216
- * respectively with their values being the plutus datum encoded via this same schema
1217
- * e.g. {"map": [
1218
- * {"k": {"int": 2}, "v": {"int": 5}},
1219
- * {"k": {"map": [{"k": {"list": [{"int": 1}]}, "v": {"bytes": "FF03"}}]}, "v": {"list": []}}
1220
- * ]}
1221
- * From JSON:
1222
- * * null/true/false/floats NOT supported
1223
- * * the JSON must conform to a very specific schema
1224
- * To JSON:
1225
- * * all Plutus datums should be fully supported outside of the integer range limitations outlined above.
1220
+ * Each new language uses a different namespace for hashing its script
1221
+ * This is because you could have a language where the same bytes have different semantics
1222
+ * So this avoids scripts in different languages mapping to the same hash
1223
+ * Note that the enum value here is different than the enum value for deciding the cost model of a script
1226
1224
  */
1227
- DetailedSchema:1,"1":"DetailedSchema", });
1225
+ export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
1228
1226
  /**
1229
1227
  */
1230
- 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", });
1228
+ export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1231
1229
  /**
1232
1230
  */
1233
- export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
1231
+ 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", });
1232
+ /**
1233
+ */
1234
+ export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1234
1235
 
1235
1236
  const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
1236
1237
  ? { register: () => {}, unregister: () => {} }
@@ -8381,7 +8382,7 @@ export class DNSRecordSRV {
8381
8382
  let deferred1_1;
8382
8383
  try {
8383
8384
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
8384
- wasm.dnsrecordaoraaaa_record(retptr, this.__wbg_ptr);
8385
+ wasm.dnsrecordsrv_record(retptr, this.__wbg_ptr);
8385
8386
  var r0 = getInt32Memory0()[retptr / 4 + 0];
8386
8387
  var r1 = getInt32Memory0()[retptr / 4 + 1];
8387
8388
  deferred1_0 = r0;
@@ -8569,7 +8570,7 @@ export class DRep {
8569
8570
  */
8570
8571
  static new_key_hash(key_hash) {
8571
8572
  _assertClass(key_hash, Ed25519KeyHash);
8572
- const ret = wasm.drep_new_key_hash(key_hash.__wbg_ptr);
8573
+ const ret = wasm.credential_from_scripthash(key_hash.__wbg_ptr);
8573
8574
  return DRep.__wrap(ret);
8574
8575
  }
8575
8576
  /**
@@ -8578,7 +8579,7 @@ export class DRep {
8578
8579
  */
8579
8580
  static new_script_hash(script_hash) {
8580
8581
  _assertClass(script_hash, ScriptHash);
8581
- const ret = wasm.drep_new_script_hash(script_hash.__wbg_ptr);
8582
+ const ret = wasm.credential_from_keyhash(script_hash.__wbg_ptr);
8582
8583
  return DRep.__wrap(ret);
8583
8584
  }
8584
8585
  /**
@@ -8856,7 +8857,7 @@ export class DRepDeregistration {
8856
8857
  * @returns {BigNum}
8857
8858
  */
8858
8859
  coin() {
8859
- const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
8860
+ const ret = wasm.datacost_coins_per_byte(this.__wbg_ptr);
8860
8861
  return BigNum.__wrap(ret);
8861
8862
  }
8862
8863
  /**
@@ -9059,7 +9060,7 @@ export class DRepRegistration {
9059
9060
  * @returns {BigNum}
9060
9061
  */
9061
9062
  coin() {
9062
- const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
9063
+ const ret = wasm.drepregistration_coin(this.__wbg_ptr);
9063
9064
  return BigNum.__wrap(ret);
9064
9065
  }
9065
9066
  /**
@@ -9275,14 +9276,14 @@ export class DRepUpdate {
9275
9276
  * @returns {Credential}
9276
9277
  */
9277
9278
  voting_credential() {
9278
- const ret = wasm.committeecoldresign_committee_cold_credential(this.__wbg_ptr);
9279
+ const ret = wasm.drepupdate_voting_credential(this.__wbg_ptr);
9279
9280
  return Credential.__wrap(ret);
9280
9281
  }
9281
9282
  /**
9282
9283
  * @returns {Anchor | undefined}
9283
9284
  */
9284
9285
  anchor() {
9285
- const ret = wasm.committeecoldresign_anchor(this.__wbg_ptr);
9286
+ const ret = wasm.drepupdate_anchor(this.__wbg_ptr);
9286
9287
  return ret === 0 ? undefined : Anchor.__wrap(ret);
9287
9288
  }
9288
9289
  /**
@@ -9291,7 +9292,7 @@ export class DRepUpdate {
9291
9292
  */
9292
9293
  static new(voting_credential) {
9293
9294
  _assertClass(voting_credential, Credential);
9294
- const ret = wasm.committeecoldresign_new(voting_credential.__wbg_ptr);
9295
+ const ret = wasm.drepupdate_new(voting_credential.__wbg_ptr);
9295
9296
  return DRepUpdate.__wrap(ret);
9296
9297
  }
9297
9298
  /**
@@ -9302,14 +9303,14 @@ export class DRepUpdate {
9302
9303
  static new_with_anchor(voting_credential, anchor) {
9303
9304
  _assertClass(voting_credential, Credential);
9304
9305
  _assertClass(anchor, Anchor);
9305
- const ret = wasm.committeecoldresign_new_with_anchor(voting_credential.__wbg_ptr, anchor.__wbg_ptr);
9306
+ const ret = wasm.drepupdate_new_with_anchor(voting_credential.__wbg_ptr, anchor.__wbg_ptr);
9306
9307
  return DRepUpdate.__wrap(ret);
9307
9308
  }
9308
9309
  /**
9309
9310
  * @returns {boolean}
9310
9311
  */
9311
9312
  has_script_credentials() {
9312
- const ret = wasm.committeecoldresign_has_script_credentials(this.__wbg_ptr);
9313
+ const ret = wasm.drepupdate_has_script_credentials(this.__wbg_ptr);
9313
9314
  return ret !== 0;
9314
9315
  }
9315
9316
  }
@@ -10660,14 +10661,14 @@ export class ExUnitPrices {
10660
10661
  * @returns {UnitInterval}
10661
10662
  */
10662
10663
  mem_price() {
10663
- const ret = wasm.committee_quorum_threshold(this.__wbg_ptr);
10664
+ const ret = wasm.drepvotingthresholds_motion_no_confidence(this.__wbg_ptr);
10664
10665
  return UnitInterval.__wrap(ret);
10665
10666
  }
10666
10667
  /**
10667
10668
  * @returns {UnitInterval}
10668
10669
  */
10669
10670
  step_price() {
10670
- const ret = wasm.exunitprices_step_price(this.__wbg_ptr);
10671
+ const ret = wasm.drepvotingthresholds_committee_normal(this.__wbg_ptr);
10671
10672
  return UnitInterval.__wrap(ret);
10672
10673
  }
10673
10674
  /**
@@ -11573,7 +11574,7 @@ export class FixedTransactionBody {
11573
11574
  * @returns {TransactionBody}
11574
11575
  */
11575
11576
  transaction_body() {
11576
- const ret = wasm.fixedtransaction_body(this.__wbg_ptr);
11577
+ const ret = wasm.fixedtransactionbody_transaction_body(this.__wbg_ptr);
11577
11578
  return TransactionBody.__wrap(ret);
11578
11579
  }
11579
11580
  /**
@@ -15641,14 +15642,14 @@ export class MIRToStakeCredentials {
15641
15642
  * @returns {MIRToStakeCredentials}
15642
15643
  */
15643
15644
  static new() {
15644
- const ret = wasm.mirtostakecredentials_new();
15645
+ const ret = wasm.generaltransactionmetadata_new();
15645
15646
  return MIRToStakeCredentials.__wrap(ret);
15646
15647
  }
15647
15648
  /**
15648
15649
  * @returns {number}
15649
15650
  */
15650
15651
  len() {
15651
- const ret = wasm.mirtostakecredentials_len(this.__wbg_ptr);
15652
+ const ret = wasm.generaltransactionmetadata_len(this.__wbg_ptr);
15652
15653
  return ret >>> 0;
15653
15654
  }
15654
15655
  /**
@@ -18619,7 +18620,7 @@ export class NewConstitutionAction {
18619
18620
  * @returns {GovernanceActionId | undefined}
18620
18621
  */
18621
18622
  gov_action_id() {
18622
- const ret = wasm.newconstitutionaction_gov_action_id(this.__wbg_ptr);
18623
+ const ret = wasm.hardforkinitiationaction_gov_action_id(this.__wbg_ptr);
18623
18624
  return ret === 0 ? undefined : GovernanceActionId.__wrap(ret);
18624
18625
  }
18625
18626
  /**
@@ -20135,7 +20136,7 @@ export class PlutusMap {
20135
20136
  * @returns {PlutusMap}
20136
20137
  */
20137
20138
  static new() {
20138
- const ret = wasm.generaltransactionmetadata_new();
20139
+ const ret = wasm.plutusmap_new();
20139
20140
  return PlutusMap.__wrap(ret);
20140
20141
  }
20141
20142
  /**
@@ -20143,7 +20144,7 @@ export class PlutusMap {
20143
20144
  * @returns {number}
20144
20145
  */
20145
20146
  len() {
20146
- const ret = wasm.generaltransactionmetadata_len(this.__wbg_ptr);
20147
+ const ret = wasm.plutusmap_len(this.__wbg_ptr);
20147
20148
  return ret >>> 0;
20148
20149
  }
20149
20150
  /**
@@ -21332,7 +21333,7 @@ export class PoolMetadata {
21332
21333
  * @returns {URL}
21333
21334
  */
21334
21335
  url() {
21335
- const ret = wasm.multihostname_dns_name(this.__wbg_ptr);
21336
+ const ret = wasm.poolmetadata_url(this.__wbg_ptr);
21336
21337
  return URL.__wrap(ret);
21337
21338
  }
21338
21339
  /**
@@ -26355,7 +26356,7 @@ export class ScriptNOfK {
26355
26356
  * @returns {NativeScripts}
26356
26357
  */
26357
26358
  native_scripts() {
26358
- const ret = wasm.scriptall_native_scripts(this.__wbg_ptr);
26359
+ const ret = wasm.scriptnofk_native_scripts(this.__wbg_ptr);
26359
26360
  return NativeScripts.__wrap(ret);
26360
26361
  }
26361
26362
  /**
@@ -27185,7 +27186,7 @@ export class SingleHostName {
27185
27186
  * @returns {DNSRecordAorAAAA}
27186
27187
  */
27187
27188
  dns_name() {
27188
- const ret = wasm.multihostname_dns_name(this.__wbg_ptr);
27189
+ const ret = wasm.singlehostname_dns_name(this.__wbg_ptr);
27189
27190
  return DNSRecordAorAAAA.__wrap(ret);
27190
27191
  }
27191
27192
  /**
@@ -27373,7 +27374,7 @@ export class StakeAndVoteDelegation {
27373
27374
  * @returns {Credential}
27374
27375
  */
27375
27376
  stake_credential() {
27376
- const ret = wasm.stakeandvotedelegation_stake_credential(this.__wbg_ptr);
27377
+ const ret = wasm.committeehotauth_committee_cold_credential(this.__wbg_ptr);
27377
27378
  return Credential.__wrap(ret);
27378
27379
  }
27379
27380
  /**
@@ -27407,7 +27408,7 @@ export class StakeAndVoteDelegation {
27407
27408
  * @returns {boolean}
27408
27409
  */
27409
27410
  has_script_credentials() {
27410
- const ret = wasm.stakeandvotedelegation_has_script_credentials(this.__wbg_ptr);
27411
+ const ret = wasm.committeehotauth_has_script_credentials(this.__wbg_ptr);
27411
27412
  return ret !== 0;
27412
27413
  }
27413
27414
  }
@@ -28000,14 +28001,14 @@ export class StakeRegistration {
28000
28001
  * @returns {Credential}
28001
28002
  */
28002
28003
  stake_credential() {
28003
- const ret = wasm.stakeregistration_stake_credential(this.__wbg_ptr);
28004
+ const ret = wasm.stakederegistration_stake_credential(this.__wbg_ptr);
28004
28005
  return Credential.__wrap(ret);
28005
28006
  }
28006
28007
  /**
28007
28008
  * @returns {BigNum | undefined}
28008
28009
  */
28009
28010
  coin() {
28010
- const ret = wasm.stakeregistration_coin(this.__wbg_ptr);
28011
+ const ret = wasm.stakederegistration_coin(this.__wbg_ptr);
28011
28012
  return ret === 0 ? undefined : BigNum.__wrap(ret);
28012
28013
  }
28013
28014
  /**
@@ -28016,7 +28017,7 @@ export class StakeRegistration {
28016
28017
  */
28017
28018
  static new(stake_credential) {
28018
28019
  _assertClass(stake_credential, Credential);
28019
- const ret = wasm.stakeregistration_new(stake_credential.__wbg_ptr);
28020
+ const ret = wasm.stakederegistration_new(stake_credential.__wbg_ptr);
28020
28021
  return StakeRegistration.__wrap(ret);
28021
28022
  }
28022
28023
  /**
@@ -28027,14 +28028,14 @@ export class StakeRegistration {
28027
28028
  static new_with_explicit_deposit(stake_credential, coin) {
28028
28029
  _assertClass(stake_credential, Credential);
28029
28030
  _assertClass(coin, BigNum);
28030
- const ret = wasm.stakeregistration_new_with_explicit_deposit(stake_credential.__wbg_ptr, coin.__wbg_ptr);
28031
+ const ret = wasm.stakederegistration_new_with_explicit_refund(stake_credential.__wbg_ptr, coin.__wbg_ptr);
28031
28032
  return StakeRegistration.__wrap(ret);
28032
28033
  }
28033
28034
  /**
28034
28035
  * @returns {boolean}
28035
28036
  */
28036
28037
  has_script_credentials() {
28037
- const ret = wasm.stakeregistration_has_script_credentials(this.__wbg_ptr);
28038
+ const ret = wasm.stakederegistration_has_script_credentials(this.__wbg_ptr);
28038
28039
  return ret !== 0;
28039
28040
  }
28040
28041
  }
@@ -28226,7 +28227,7 @@ export class StakeRegistrationAndDelegation {
28226
28227
  * @returns {BigNum}
28227
28228
  */
28228
28229
  coin() {
28229
- const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
28230
+ const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
28230
28231
  return BigNum.__wrap(ret);
28231
28232
  }
28232
28233
  /**
@@ -28431,7 +28432,7 @@ export class StakeVoteRegistrationAndDelegation {
28431
28432
  * @returns {Ed25519KeyHash}
28432
28433
  */
28433
28434
  pool_keyhash() {
28434
- const ret = wasm.stakevoteregistrationanddelegation_pool_keyhash(this.__wbg_ptr);
28435
+ const ret = wasm.stakeregistrationanddelegation_pool_keyhash(this.__wbg_ptr);
28435
28436
  return Ed25519KeyHash.__wrap(ret);
28436
28437
  }
28437
28438
  /**
@@ -28445,7 +28446,7 @@ export class StakeVoteRegistrationAndDelegation {
28445
28446
  * @returns {BigNum}
28446
28447
  */
28447
28448
  coin() {
28448
- const ret = wasm.stakevoteregistrationanddelegation_coin(this.__wbg_ptr);
28449
+ const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
28449
28450
  return BigNum.__wrap(ret);
28450
28451
  }
28451
28452
  /**
@@ -28502,14 +28503,14 @@ export class Strings {
28502
28503
  * @returns {Strings}
28503
28504
  */
28504
28505
  static new() {
28505
- const ret = wasm.relays_new();
28506
+ const ret = wasm.assetnames_new();
28506
28507
  return Strings.__wrap(ret);
28507
28508
  }
28508
28509
  /**
28509
28510
  * @returns {number}
28510
28511
  */
28511
28512
  len() {
28512
- const ret = wasm.strings_len(this.__wbg_ptr);
28513
+ const ret = wasm.assetnames_len(this.__wbg_ptr);
28513
28514
  return ret >>> 0;
28514
28515
  }
28515
28516
  /**
@@ -28733,7 +28734,7 @@ export class TimelockExpiry {
28733
28734
  * @returns {BigNum}
28734
28735
  */
28735
28736
  slot_bignum() {
28736
- const ret = wasm.linearfee_constant(this.__wbg_ptr);
28737
+ const ret = wasm.timelockexpiry_slot_bignum(this.__wbg_ptr);
28737
28738
  return BigNum.__wrap(ret);
28738
28739
  }
28739
28740
  /**
@@ -28953,7 +28954,7 @@ export class TimelockStart {
28953
28954
  * @returns {BigNum}
28954
28955
  */
28955
28956
  slot_bignum() {
28956
- const ret = wasm.linearfee_constant(this.__wbg_ptr);
28957
+ const ret = wasm.timelockexpiry_slot_bignum(this.__wbg_ptr);
28957
28958
  return BigNum.__wrap(ret);
28958
28959
  }
28959
28960
  /**
@@ -29459,7 +29460,7 @@ export class TransactionBodies {
29459
29460
  * @returns {TransactionBodies}
29460
29461
  */
29461
29462
  static new() {
29462
- const ret = wasm.fixedtransactionbodies_new();
29463
+ const ret = wasm.transactionbodies_new();
29463
29464
  return TransactionBodies.__wrap(ret);
29464
29465
  }
29465
29466
  /**
@@ -32293,7 +32294,7 @@ export class TransactionMetadatumLabels {
32293
32294
  * @returns {TransactionMetadatumLabels}
32294
32295
  */
32295
32296
  static new() {
32296
- const ret = wasm.plutusmapvalues_new();
32297
+ const ret = wasm.transactionmetadatumlabels_new();
32297
32298
  return TransactionMetadatumLabels.__wrap(ret);
32298
32299
  }
32299
32300
  /**
@@ -33731,7 +33732,7 @@ export class TransactionWitnessSets {
33731
33732
  * @returns {TransactionWitnessSets}
33732
33733
  */
33733
33734
  static new() {
33734
- const ret = wasm.transactionwitnesssets_new();
33735
+ const ret = wasm.fixedtransactionbodies_new();
33735
33736
  return TransactionWitnessSets.__wrap(ret);
33736
33737
  }
33737
33738
  /**
@@ -34532,7 +34533,7 @@ export class URL {
34532
34533
  let deferred1_1;
34533
34534
  try {
34534
34535
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
34535
- wasm.dnsrecordaoraaaa_record(retptr, this.__wbg_ptr);
34536
+ wasm.url_url(retptr, this.__wbg_ptr);
34536
34537
  var r0 = getInt32Memory0()[retptr / 4 + 0];
34537
34538
  var r1 = getInt32Memory0()[retptr / 4 + 1];
34538
34539
  deferred1_0 = r0;
@@ -36405,14 +36406,14 @@ export class Vkeys {
36405
36406
  * @returns {Vkeys}
36406
36407
  */
36407
36408
  static new() {
36408
- const ret = wasm.languages_new();
36409
+ const ret = wasm.publickeys_new();
36409
36410
  return Vkeys.__wrap(ret);
36410
36411
  }
36411
36412
  /**
36412
36413
  * @returns {number}
36413
36414
  */
36414
36415
  len() {
36415
- const ret = wasm.vkeys_len(this.__wbg_ptr);
36416
+ const ret = wasm.publickeys_size(this.__wbg_ptr);
36416
36417
  return ret >>> 0;
36417
36418
  }
36418
36419
  /**
@@ -36623,7 +36624,7 @@ export class Vkeywitness {
36623
36624
  * @returns {Ed25519Signature}
36624
36625
  */
36625
36626
  signature() {
36626
- const ret = wasm.operationalcert_sigma(this.__wbg_ptr);
36627
+ const ret = wasm.vkeywitness_signature(this.__wbg_ptr);
36627
36628
  return Ed25519Signature.__wrap(ret);
36628
36629
  }
36629
36630
  }
@@ -36801,14 +36802,14 @@ export class Vkeywitnesses {
36801
36802
  * @returns {Vkeywitnesses}
36802
36803
  */
36803
36804
  static new() {
36804
- const ret = wasm.bootstrapwitnesses_new();
36805
+ const ret = wasm.vkeywitnesses_new();
36805
36806
  return Vkeywitnesses.__wrap(ret);
36806
36807
  }
36807
36808
  /**
36808
36809
  * @returns {number}
36809
36810
  */
36810
36811
  len() {
36811
- const ret = wasm.bootstrapwitnesses_len(this.__wbg_ptr);
36812
+ const ret = wasm.vkeywitnesses_len(this.__wbg_ptr);
36812
36813
  return ret >>> 0;
36813
36814
  }
36814
36815
  /**
@@ -37005,7 +37006,7 @@ export class VoteDelegation {
37005
37006
  * @returns {Credential}
37006
37007
  */
37007
37008
  stake_credential() {
37008
- const ret = wasm.stakeandvotedelegation_stake_credential(this.__wbg_ptr);
37009
+ const ret = wasm.committeehotauth_committee_cold_credential(this.__wbg_ptr);
37009
37010
  return Credential.__wrap(ret);
37010
37011
  }
37011
37012
  /**
@@ -37030,7 +37031,7 @@ export class VoteDelegation {
37030
37031
  * @returns {boolean}
37031
37032
  */
37032
37033
  has_script_credentials() {
37033
- const ret = wasm.stakeandvotedelegation_has_script_credentials(this.__wbg_ptr);
37034
+ const ret = wasm.committeehotauth_has_script_credentials(this.__wbg_ptr);
37034
37035
  return ret !== 0;
37035
37036
  }
37036
37037
  }
@@ -37222,7 +37223,7 @@ export class VoteRegistrationAndDelegation {
37222
37223
  * @returns {BigNum}
37223
37224
  */
37224
37225
  coin() {
37225
- const ret = wasm.stakevoteregistrationanddelegation_coin(this.__wbg_ptr);
37226
+ const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
37226
37227
  return BigNum.__wrap(ret);
37227
37228
  }
37228
37229
  /**
@@ -37640,7 +37641,7 @@ export class VotingBuilder {
37640
37641
  * @returns {VotingBuilder}
37641
37642
  */
37642
37643
  static new() {
37643
- const ret = wasm.votingbuilder_new();
37644
+ const ret = wasm.costmdls_new();
37644
37645
  return VotingBuilder.__wrap(ret);
37645
37646
  }
37646
37647
  /**
@@ -37945,7 +37946,7 @@ export class VotingProcedure {
37945
37946
  * @returns {Anchor | undefined}
37946
37947
  */
37947
37948
  anchor() {
37948
- const ret = wasm.committeecoldresign_anchor(this.__wbg_ptr);
37949
+ const ret = wasm.votingprocedure_anchor(this.__wbg_ptr);
37949
37950
  return ret === 0 ? undefined : Anchor.__wrap(ret);
37950
37951
  }
37951
37952
  }
@@ -38123,7 +38124,7 @@ export class VotingProcedures {
38123
38124
  * @returns {VotingProcedures}
38124
38125
  */
38125
38126
  static new() {
38126
- const ret = wasm.votingbuilder_new();
38127
+ const ret = wasm.treasurywithdrawals_new();
38127
38128
  return VotingProcedures.__wrap(ret);
38128
38129
  }
38129
38130
  /**
@@ -38410,7 +38411,7 @@ export class VotingProposalBuilder {
38410
38411
  * @returns {VotingProposalBuilder}
38411
38412
  */
38412
38413
  static new() {
38413
- const ret = wasm.votingbuilder_new();
38414
+ const ret = wasm.mintbuilder_new();
38414
38415
  return VotingProposalBuilder.__wrap(ret);
38415
38416
  }
38416
38417
  /**
@@ -38652,14 +38653,14 @@ export class VotingProposals {
38652
38653
  * @returns {VotingProposals}
38653
38654
  */
38654
38655
  static new() {
38655
- const ret = wasm.credentials_new();
38656
+ const ret = wasm.votingproposals_new();
38656
38657
  return VotingProposals.__wrap(ret);
38657
38658
  }
38658
38659
  /**
38659
38660
  * @returns {number}
38660
38661
  */
38661
38662
  len() {
38662
- const ret = wasm.credentials_len(this.__wbg_ptr);
38663
+ const ret = wasm.votingproposals_len(this.__wbg_ptr);
38663
38664
  return ret >>> 0;
38664
38665
  }
38665
38666
  /**
@@ -38941,7 +38942,7 @@ export class WithdrawalsBuilder {
38941
38942
  * @returns {WithdrawalsBuilder}
38942
38943
  */
38943
38944
  static new() {
38944
- const ret = wasm.mintbuilder_new();
38945
+ const ret = wasm.costmdls_new();
38945
38946
  return WithdrawalsBuilder.__wrap(ret);
38946
38947
  }
38947
38948
  /**
@@ -39416,14 +39417,14 @@ export function __wbg_getRandomValues_dc67302a7bd1aec5(arg0) {
39416
39417
  return addHeapObject(ret);
39417
39418
  };
39418
39419
 
39419
- export function __wbg_randomFillSync_dd2297de5917c74e(arg0, arg1, arg2) {
39420
- getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
39421
- };
39422
-
39423
39420
  export function __wbg_getRandomValues_02639197c8166a96(arg0, arg1, arg2) {
39424
39421
  getObject(arg0).getRandomValues(getArrayU8FromWasm0(arg1, arg2));
39425
39422
  };
39426
39423
 
39424
+ export function __wbg_randomFillSync_dd2297de5917c74e(arg0, arg1, arg2) {
39425
+ getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
39426
+ };
39427
+
39427
39428
  export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
39428
39429
  const v = getObject(arg1);
39429
39430
  const ret = typeof(v) === 'bigint' ? v : undefined;