@cardananium/cquisitor-lib 0.1.0-beta.36 → 0.1.0-beta.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cquisitor_lib.d.ts +94 -19
- package/browser/cquisitor_lib_bg.js +407 -406
- package/browser/cquisitor_lib_bg.wasm +0 -0
- package/browser/cquisitor_lib_bg.wasm.d.ts +2287 -2287
- package/node/cquisitor_lib.d.ts +94 -19
- package/node/cquisitor_lib.js +405 -404
- package/node/cquisitor_lib_bg.wasm +0 -0
- package/node/cquisitor_lib_bg.wasm.d.ts +2287 -2287
- package/package.json +1 -1
|
@@ -289,28 +289,6 @@ export function get_possible_types_for_input(input) {
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
-
/**
|
|
293
|
-
* @param {string} cbor_hex
|
|
294
|
-
* @returns {any}
|
|
295
|
-
*/
|
|
296
|
-
export function cbor_to_json(cbor_hex) {
|
|
297
|
-
try {
|
|
298
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
299
|
-
const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
300
|
-
const len0 = WASM_VECTOR_LEN;
|
|
301
|
-
wasm.cbor_to_json(retptr, ptr0, len0);
|
|
302
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
303
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
304
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
305
|
-
if (r2) {
|
|
306
|
-
throw takeObject(r1);
|
|
307
|
-
}
|
|
308
|
-
return takeObject(r0);
|
|
309
|
-
} finally {
|
|
310
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
292
|
/**
|
|
315
293
|
* @param {string} hex_str
|
|
316
294
|
* @returns {any}
|
|
@@ -401,39 +379,6 @@ export function validate_transaction_js(tx_hex, validation_context) {
|
|
|
401
379
|
}
|
|
402
380
|
}
|
|
403
381
|
|
|
404
|
-
/**
|
|
405
|
-
* WASM export: Extracts all script and datum hashes from a transaction
|
|
406
|
-
* Returns JSON string with ExtractedHashes structure
|
|
407
|
-
* @param {string} tx_hex
|
|
408
|
-
* @returns {string}
|
|
409
|
-
*/
|
|
410
|
-
export function extract_hashes_from_transaction_js(tx_hex) {
|
|
411
|
-
let deferred3_0;
|
|
412
|
-
let deferred3_1;
|
|
413
|
-
try {
|
|
414
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
415
|
-
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
416
|
-
const len0 = WASM_VECTOR_LEN;
|
|
417
|
-
wasm.extract_hashes_from_transaction_js(retptr, ptr0, len0);
|
|
418
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
419
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
420
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
421
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
422
|
-
var ptr2 = r0;
|
|
423
|
-
var len2 = r1;
|
|
424
|
-
if (r3) {
|
|
425
|
-
ptr2 = 0; len2 = 0;
|
|
426
|
-
throw takeObject(r2);
|
|
427
|
-
}
|
|
428
|
-
deferred3_0 = ptr2;
|
|
429
|
-
deferred3_1 = len2;
|
|
430
|
-
return getStringFromWasm0(ptr2, len2);
|
|
431
|
-
} finally {
|
|
432
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
433
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
|
|
437
382
|
/**
|
|
438
383
|
* @param {string} hex
|
|
439
384
|
* @returns {any}
|
|
@@ -537,287 +482,97 @@ export function execute_tx_scripts(tx_hex, utxo_json, cost_models_json) {
|
|
|
537
482
|
}
|
|
538
483
|
|
|
539
484
|
/**
|
|
540
|
-
* @param {string}
|
|
541
|
-
* @
|
|
542
|
-
* @returns {string}
|
|
543
|
-
*/
|
|
544
|
-
export function get_ref_script_bytes(tx_hex, output_index) {
|
|
545
|
-
let deferred3_0;
|
|
546
|
-
let deferred3_1;
|
|
547
|
-
try {
|
|
548
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
549
|
-
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
550
|
-
const len0 = WASM_VECTOR_LEN;
|
|
551
|
-
wasm.get_ref_script_bytes(retptr, ptr0, len0, output_index);
|
|
552
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
553
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
554
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
555
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
556
|
-
var ptr2 = r0;
|
|
557
|
-
var len2 = r1;
|
|
558
|
-
if (r3) {
|
|
559
|
-
ptr2 = 0; len2 = 0;
|
|
560
|
-
throw takeObject(r2);
|
|
561
|
-
}
|
|
562
|
-
deferred3_0 = ptr2;
|
|
563
|
-
deferred3_1 = len2;
|
|
564
|
-
return getStringFromWasm0(ptr2, len2);
|
|
565
|
-
} finally {
|
|
566
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
567
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
572
|
-
ptr = ptr >>> 0;
|
|
573
|
-
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
577
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
578
|
-
getUint8Memory0().set(arg, ptr / 1);
|
|
579
|
-
WASM_VECTOR_LEN = arg.length;
|
|
580
|
-
return ptr;
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
function _assertClass(instance, klass) {
|
|
584
|
-
if (!(instance instanceof klass)) {
|
|
585
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
586
|
-
}
|
|
587
|
-
return instance.ptr;
|
|
588
|
-
}
|
|
589
|
-
/**
|
|
590
|
-
* @param {string} json
|
|
591
|
-
* @param {PlutusDatumSchema} schema
|
|
592
|
-
* @returns {PlutusData}
|
|
485
|
+
* @param {string} cbor_hex
|
|
486
|
+
* @returns {any}
|
|
593
487
|
*/
|
|
594
|
-
export function
|
|
488
|
+
export function cbor_to_json(cbor_hex) {
|
|
595
489
|
try {
|
|
596
490
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
597
|
-
const ptr0 = passStringToWasm0(
|
|
491
|
+
const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
598
492
|
const len0 = WASM_VECTOR_LEN;
|
|
599
|
-
wasm.
|
|
493
|
+
wasm.cbor_to_json(retptr, ptr0, len0);
|
|
600
494
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
601
495
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
602
496
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
603
497
|
if (r2) {
|
|
604
498
|
throw takeObject(r1);
|
|
605
499
|
}
|
|
606
|
-
return
|
|
500
|
+
return takeObject(r0);
|
|
607
501
|
} finally {
|
|
608
502
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
609
503
|
}
|
|
610
504
|
}
|
|
611
505
|
|
|
612
506
|
/**
|
|
613
|
-
* @param {
|
|
614
|
-
* @param {
|
|
507
|
+
* @param {string} tx_hex
|
|
508
|
+
* @param {number} output_index
|
|
615
509
|
* @returns {string}
|
|
616
510
|
*/
|
|
617
|
-
export function
|
|
618
|
-
let
|
|
619
|
-
let
|
|
620
|
-
try {
|
|
621
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
622
|
-
_assertClass(datum, PlutusData);
|
|
623
|
-
wasm.decode_plutus_datum_to_json_str(retptr, datum.__wbg_ptr, schema);
|
|
624
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
625
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
626
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
627
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
628
|
-
var ptr1 = r0;
|
|
629
|
-
var len1 = r1;
|
|
630
|
-
if (r3) {
|
|
631
|
-
ptr1 = 0; len1 = 0;
|
|
632
|
-
throw takeObject(r2);
|
|
633
|
-
}
|
|
634
|
-
deferred2_0 = ptr1;
|
|
635
|
-
deferred2_1 = len1;
|
|
636
|
-
return getStringFromWasm0(ptr1, len1);
|
|
637
|
-
} finally {
|
|
638
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
639
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
/**
|
|
644
|
-
* @param {Uint8Array} bytes
|
|
645
|
-
* @returns {TransactionMetadatum}
|
|
646
|
-
*/
|
|
647
|
-
export function encode_arbitrary_bytes_as_metadatum(bytes) {
|
|
648
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
649
|
-
const len0 = WASM_VECTOR_LEN;
|
|
650
|
-
const ret = wasm.encode_arbitrary_bytes_as_metadatum(ptr0, len0);
|
|
651
|
-
return TransactionMetadatum.__wrap(ret);
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
/**
|
|
655
|
-
* @param {TransactionMetadatum} metadata
|
|
656
|
-
* @returns {Uint8Array}
|
|
657
|
-
*/
|
|
658
|
-
export function decode_arbitrary_bytes_from_metadatum(metadata) {
|
|
511
|
+
export function get_ref_script_bytes(tx_hex, output_index) {
|
|
512
|
+
let deferred3_0;
|
|
513
|
+
let deferred3_1;
|
|
659
514
|
try {
|
|
660
515
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
661
|
-
|
|
662
|
-
|
|
516
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
517
|
+
const len0 = WASM_VECTOR_LEN;
|
|
518
|
+
wasm.get_ref_script_bytes(retptr, ptr0, len0, output_index);
|
|
663
519
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
664
520
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
665
521
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
666
522
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
523
|
+
var ptr2 = r0;
|
|
524
|
+
var len2 = r1;
|
|
667
525
|
if (r3) {
|
|
526
|
+
ptr2 = 0; len2 = 0;
|
|
668
527
|
throw takeObject(r2);
|
|
669
528
|
}
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
return
|
|
673
|
-
} finally {
|
|
674
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
/**
|
|
679
|
-
* @param {string} json
|
|
680
|
-
* @param {MetadataJsonSchema} schema
|
|
681
|
-
* @returns {TransactionMetadatum}
|
|
682
|
-
*/
|
|
683
|
-
export function encode_json_str_to_metadatum(json, schema) {
|
|
684
|
-
try {
|
|
685
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
686
|
-
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
687
|
-
const len0 = WASM_VECTOR_LEN;
|
|
688
|
-
wasm.encode_json_str_to_metadatum(retptr, ptr0, len0, schema);
|
|
689
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
690
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
691
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
692
|
-
if (r2) {
|
|
693
|
-
throw takeObject(r1);
|
|
694
|
-
}
|
|
695
|
-
return TransactionMetadatum.__wrap(r0);
|
|
529
|
+
deferred3_0 = ptr2;
|
|
530
|
+
deferred3_1 = len2;
|
|
531
|
+
return getStringFromWasm0(ptr2, len2);
|
|
696
532
|
} finally {
|
|
697
533
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
534
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
698
535
|
}
|
|
699
536
|
}
|
|
700
537
|
|
|
701
538
|
/**
|
|
702
|
-
*
|
|
703
|
-
*
|
|
539
|
+
* WASM export: Extracts all script and datum hashes from a transaction
|
|
540
|
+
* Returns JSON string with ExtractedHashes structure
|
|
541
|
+
* @param {string} tx_hex
|
|
704
542
|
* @returns {string}
|
|
705
543
|
*/
|
|
706
|
-
export function
|
|
707
|
-
let
|
|
708
|
-
let
|
|
544
|
+
export function extract_hashes_from_transaction_js(tx_hex) {
|
|
545
|
+
let deferred3_0;
|
|
546
|
+
let deferred3_1;
|
|
709
547
|
try {
|
|
710
548
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
711
|
-
|
|
712
|
-
|
|
549
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
550
|
+
const len0 = WASM_VECTOR_LEN;
|
|
551
|
+
wasm.extract_hashes_from_transaction_js(retptr, ptr0, len0);
|
|
713
552
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
714
553
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
715
554
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
716
555
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
717
|
-
var
|
|
718
|
-
var
|
|
556
|
+
var ptr2 = r0;
|
|
557
|
+
var len2 = r1;
|
|
719
558
|
if (r3) {
|
|
720
|
-
|
|
559
|
+
ptr2 = 0; len2 = 0;
|
|
721
560
|
throw takeObject(r2);
|
|
722
561
|
}
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
return getStringFromWasm0(
|
|
726
|
-
} finally {
|
|
727
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
728
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
/**
|
|
733
|
-
* @param {Transaction} tx
|
|
734
|
-
* @param {LinearFee} linear_fee
|
|
735
|
-
* @returns {BigNum}
|
|
736
|
-
*/
|
|
737
|
-
export function min_fee(tx, linear_fee) {
|
|
738
|
-
try {
|
|
739
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
740
|
-
_assertClass(tx, Transaction);
|
|
741
|
-
_assertClass(linear_fee, LinearFee);
|
|
742
|
-
wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__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);
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
/**
|
|
756
|
-
* @param {ExUnits} ex_units
|
|
757
|
-
* @param {ExUnitPrices} ex_unit_prices
|
|
758
|
-
* @returns {BigNum}
|
|
759
|
-
*/
|
|
760
|
-
export function calculate_ex_units_ceil_cost(ex_units, ex_unit_prices) {
|
|
761
|
-
try {
|
|
762
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
763
|
-
_assertClass(ex_units, ExUnits);
|
|
764
|
-
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
765
|
-
wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
766
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
767
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
768
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
769
|
-
if (r2) {
|
|
770
|
-
throw takeObject(r1);
|
|
771
|
-
}
|
|
772
|
-
return BigNum.__wrap(r0);
|
|
773
|
-
} finally {
|
|
774
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
/**
|
|
779
|
-
* @param {Transaction} tx
|
|
780
|
-
* @param {ExUnitPrices} ex_unit_prices
|
|
781
|
-
* @returns {BigNum}
|
|
782
|
-
*/
|
|
783
|
-
export function min_script_fee(tx, ex_unit_prices) {
|
|
784
|
-
try {
|
|
785
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
786
|
-
_assertClass(tx, Transaction);
|
|
787
|
-
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
788
|
-
wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
789
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
790
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
791
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
792
|
-
if (r2) {
|
|
793
|
-
throw takeObject(r1);
|
|
794
|
-
}
|
|
795
|
-
return BigNum.__wrap(r0);
|
|
562
|
+
deferred3_0 = ptr2;
|
|
563
|
+
deferred3_1 = len2;
|
|
564
|
+
return getStringFromWasm0(ptr2, len2);
|
|
796
565
|
} finally {
|
|
797
566
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
567
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
798
568
|
}
|
|
799
569
|
}
|
|
800
570
|
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
* @returns {BigNum}
|
|
805
|
-
*/
|
|
806
|
-
export function min_ref_script_fee(total_ref_scripts_size, ref_script_coins_per_byte) {
|
|
807
|
-
try {
|
|
808
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
809
|
-
_assertClass(ref_script_coins_per_byte, UnitInterval);
|
|
810
|
-
wasm.min_ref_script_fee(retptr, total_ref_scripts_size, ref_script_coins_per_byte.__wbg_ptr);
|
|
811
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
812
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
813
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
814
|
-
if (r2) {
|
|
815
|
-
throw takeObject(r1);
|
|
816
|
-
}
|
|
817
|
-
return BigNum.__wrap(r0);
|
|
818
|
-
} finally {
|
|
819
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
571
|
+
function _assertClass(instance, klass) {
|
|
572
|
+
if (!(instance instanceof klass)) {
|
|
573
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
820
574
|
}
|
|
575
|
+
return instance.ptr;
|
|
821
576
|
}
|
|
822
577
|
|
|
823
578
|
function getArrayU32FromWasm0(ptr, len) {
|
|
@@ -825,9 +580,14 @@ function getArrayU32FromWasm0(ptr, len) {
|
|
|
825
580
|
return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
|
|
826
581
|
}
|
|
827
582
|
|
|
828
|
-
function
|
|
829
|
-
|
|
830
|
-
|
|
583
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
584
|
+
ptr = ptr >>> 0;
|
|
585
|
+
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
589
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
590
|
+
getUint8Memory0().set(arg, ptr / 1);
|
|
831
591
|
WASM_VECTOR_LEN = arg.length;
|
|
832
592
|
return ptr;
|
|
833
593
|
}
|
|
@@ -1046,6 +806,60 @@ export function has_transaction_set_tag(tx_bytes) {
|
|
|
1046
806
|
}
|
|
1047
807
|
}
|
|
1048
808
|
|
|
809
|
+
/**
|
|
810
|
+
* @param {string} json
|
|
811
|
+
* @param {PlutusDatumSchema} schema
|
|
812
|
+
* @returns {PlutusData}
|
|
813
|
+
*/
|
|
814
|
+
export function encode_json_str_to_plutus_datum(json, schema) {
|
|
815
|
+
try {
|
|
816
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
817
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
818
|
+
const len0 = WASM_VECTOR_LEN;
|
|
819
|
+
wasm.encode_json_str_to_plutus_datum(retptr, ptr0, len0, schema);
|
|
820
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
821
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
822
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
823
|
+
if (r2) {
|
|
824
|
+
throw takeObject(r1);
|
|
825
|
+
}
|
|
826
|
+
return PlutusData.__wrap(r0);
|
|
827
|
+
} finally {
|
|
828
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* @param {PlutusData} datum
|
|
834
|
+
* @param {PlutusDatumSchema} schema
|
|
835
|
+
* @returns {string}
|
|
836
|
+
*/
|
|
837
|
+
export function decode_plutus_datum_to_json_str(datum, schema) {
|
|
838
|
+
let deferred2_0;
|
|
839
|
+
let deferred2_1;
|
|
840
|
+
try {
|
|
841
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
842
|
+
_assertClass(datum, PlutusData);
|
|
843
|
+
wasm.decode_plutus_datum_to_json_str(retptr, datum.__wbg_ptr, schema);
|
|
844
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
845
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
846
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
847
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
848
|
+
var ptr1 = r0;
|
|
849
|
+
var len1 = r1;
|
|
850
|
+
if (r3) {
|
|
851
|
+
ptr1 = 0; len1 = 0;
|
|
852
|
+
throw takeObject(r2);
|
|
853
|
+
}
|
|
854
|
+
deferred2_0 = ptr1;
|
|
855
|
+
deferred2_1 = len1;
|
|
856
|
+
return getStringFromWasm0(ptr1, len1);
|
|
857
|
+
} finally {
|
|
858
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
859
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
|
|
1049
863
|
/**
|
|
1050
864
|
* @param {string} password
|
|
1051
865
|
* @param {string} salt
|
|
@@ -1145,32 +959,200 @@ export function create_send_all(address, utxos, config) {
|
|
|
1145
959
|
}
|
|
1146
960
|
}
|
|
1147
961
|
|
|
1148
|
-
|
|
962
|
+
/**
|
|
963
|
+
* @param {Transaction} tx
|
|
964
|
+
* @param {LinearFee} linear_fee
|
|
965
|
+
* @returns {BigNum}
|
|
966
|
+
*/
|
|
967
|
+
export function min_fee(tx, linear_fee) {
|
|
1149
968
|
try {
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
969
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
970
|
+
_assertClass(tx, Transaction);
|
|
971
|
+
_assertClass(linear_fee, LinearFee);
|
|
972
|
+
wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__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);
|
|
1153
982
|
}
|
|
1154
983
|
}
|
|
984
|
+
|
|
1155
985
|
/**
|
|
986
|
+
* @param {ExUnits} ex_units
|
|
987
|
+
* @param {ExUnitPrices} ex_unit_prices
|
|
988
|
+
* @returns {BigNum}
|
|
1156
989
|
*/
|
|
1157
|
-
export
|
|
990
|
+
export function calculate_ex_units_ceil_cost(ex_units, ex_unit_prices) {
|
|
991
|
+
try {
|
|
992
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
993
|
+
_assertClass(ex_units, ExUnits);
|
|
994
|
+
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
995
|
+
wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
996
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
997
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
998
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
999
|
+
if (r2) {
|
|
1000
|
+
throw takeObject(r1);
|
|
1001
|
+
}
|
|
1002
|
+
return BigNum.__wrap(r0);
|
|
1003
|
+
} finally {
|
|
1004
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1158
1008
|
/**
|
|
1159
|
-
*
|
|
1009
|
+
* @param {Transaction} tx
|
|
1010
|
+
* @param {ExUnitPrices} ex_unit_prices
|
|
1011
|
+
* @returns {BigNum}
|
|
1160
1012
|
*/
|
|
1161
|
-
|
|
1013
|
+
export function min_script_fee(tx, ex_unit_prices) {
|
|
1014
|
+
try {
|
|
1015
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1016
|
+
_assertClass(tx, Transaction);
|
|
1017
|
+
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
1018
|
+
wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
1019
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1020
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1021
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
1022
|
+
if (r2) {
|
|
1023
|
+
throw takeObject(r1);
|
|
1024
|
+
}
|
|
1025
|
+
return BigNum.__wrap(r0);
|
|
1026
|
+
} finally {
|
|
1027
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1162
1031
|
/**
|
|
1163
|
-
*
|
|
1032
|
+
* @param {number} total_ref_scripts_size
|
|
1033
|
+
* @param {UnitInterval} ref_script_coins_per_byte
|
|
1034
|
+
* @returns {BigNum}
|
|
1164
1035
|
*/
|
|
1165
|
-
|
|
1036
|
+
export function min_ref_script_fee(total_ref_scripts_size, ref_script_coins_per_byte) {
|
|
1037
|
+
try {
|
|
1038
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1039
|
+
_assertClass(ref_script_coins_per_byte, UnitInterval);
|
|
1040
|
+
wasm.min_ref_script_fee(retptr, total_ref_scripts_size, ref_script_coins_per_byte.__wbg_ptr);
|
|
1041
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1042
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1043
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
1044
|
+
if (r2) {
|
|
1045
|
+
throw takeObject(r1);
|
|
1046
|
+
}
|
|
1047
|
+
return BigNum.__wrap(r0);
|
|
1048
|
+
} finally {
|
|
1049
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1166
1053
|
/**
|
|
1167
|
-
*
|
|
1054
|
+
* @param {Uint8Array} bytes
|
|
1055
|
+
* @returns {TransactionMetadatum}
|
|
1168
1056
|
*/
|
|
1169
|
-
|
|
1057
|
+
export function encode_arbitrary_bytes_as_metadatum(bytes) {
|
|
1058
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
1059
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1060
|
+
const ret = wasm.encode_arbitrary_bytes_as_metadatum(ptr0, len0);
|
|
1061
|
+
return TransactionMetadatum.__wrap(ret);
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1170
1064
|
/**
|
|
1171
|
-
*
|
|
1065
|
+
* @param {TransactionMetadatum} metadata
|
|
1066
|
+
* @returns {Uint8Array}
|
|
1172
1067
|
*/
|
|
1173
|
-
|
|
1068
|
+
export function decode_arbitrary_bytes_from_metadatum(metadata) {
|
|
1069
|
+
try {
|
|
1070
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1071
|
+
_assertClass(metadata, TransactionMetadatum);
|
|
1072
|
+
wasm.decode_arbitrary_bytes_from_metadatum(retptr, metadata.__wbg_ptr);
|
|
1073
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1074
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1075
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
1076
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
1077
|
+
if (r3) {
|
|
1078
|
+
throw takeObject(r2);
|
|
1079
|
+
}
|
|
1080
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
1081
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
1082
|
+
return v1;
|
|
1083
|
+
} finally {
|
|
1084
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* @param {string} json
|
|
1090
|
+
* @param {MetadataJsonSchema} schema
|
|
1091
|
+
* @returns {TransactionMetadatum}
|
|
1092
|
+
*/
|
|
1093
|
+
export function encode_json_str_to_metadatum(json, schema) {
|
|
1094
|
+
try {
|
|
1095
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1096
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1097
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1098
|
+
wasm.encode_json_str_to_metadatum(retptr, ptr0, len0, schema);
|
|
1099
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1100
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1101
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
1102
|
+
if (r2) {
|
|
1103
|
+
throw takeObject(r1);
|
|
1104
|
+
}
|
|
1105
|
+
return TransactionMetadatum.__wrap(r0);
|
|
1106
|
+
} finally {
|
|
1107
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* @param {TransactionMetadatum} metadatum
|
|
1113
|
+
* @param {MetadataJsonSchema} schema
|
|
1114
|
+
* @returns {string}
|
|
1115
|
+
*/
|
|
1116
|
+
export function decode_metadatum_to_json_str(metadatum, schema) {
|
|
1117
|
+
let deferred2_0;
|
|
1118
|
+
let deferred2_1;
|
|
1119
|
+
try {
|
|
1120
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1121
|
+
_assertClass(metadatum, TransactionMetadatum);
|
|
1122
|
+
wasm.decode_metadatum_to_json_str(retptr, metadatum.__wbg_ptr, schema);
|
|
1123
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1124
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1125
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
1126
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
1127
|
+
var ptr1 = r0;
|
|
1128
|
+
var len1 = r1;
|
|
1129
|
+
if (r3) {
|
|
1130
|
+
ptr1 = 0; len1 = 0;
|
|
1131
|
+
throw takeObject(r2);
|
|
1132
|
+
}
|
|
1133
|
+
deferred2_0 = ptr1;
|
|
1134
|
+
deferred2_1 = len1;
|
|
1135
|
+
return getStringFromWasm0(ptr1, len1);
|
|
1136
|
+
} finally {
|
|
1137
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1138
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
function passArray32ToWasm0(arg, malloc) {
|
|
1143
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
1144
|
+
getUint32Memory0().set(arg, ptr / 4);
|
|
1145
|
+
WASM_VECTOR_LEN = arg.length;
|
|
1146
|
+
return ptr;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
function handleError(f, args) {
|
|
1150
|
+
try {
|
|
1151
|
+
return f.apply(this, args);
|
|
1152
|
+
} catch (e) {
|
|
1153
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1174
1156
|
/**
|
|
1175
1157
|
* Each new language uses a different namespace for hashing its script
|
|
1176
1158
|
* This is because you could have a language where the same bytes have different semantics
|
|
@@ -1180,46 +1162,10 @@ RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
|
1180
1162
|
export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1181
1163
|
/**
|
|
1182
1164
|
*/
|
|
1183
|
-
export const
|
|
1184
|
-
/**
|
|
1185
|
-
*/
|
|
1186
|
-
export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1187
|
-
/**
|
|
1188
|
-
*/
|
|
1189
|
-
export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1190
|
-
/**
|
|
1191
|
-
*/
|
|
1192
|
-
export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1193
|
-
/**
|
|
1194
|
-
*/
|
|
1195
|
-
export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1196
|
-
/**
|
|
1197
|
-
*/
|
|
1198
|
-
export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1199
|
-
/**
|
|
1200
|
-
*/
|
|
1201
|
-
export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1202
|
-
/**
|
|
1203
|
-
*/
|
|
1204
|
-
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", });
|
|
1205
|
-
/**
|
|
1206
|
-
*/
|
|
1207
|
-
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", });
|
|
1208
|
-
/**
|
|
1209
|
-
*/
|
|
1210
|
-
export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1211
|
-
/**
|
|
1212
|
-
*/
|
|
1213
|
-
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", });
|
|
1214
|
-
/**
|
|
1215
|
-
*/
|
|
1216
|
-
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", });
|
|
1217
|
-
/**
|
|
1218
|
-
*/
|
|
1219
|
-
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", });
|
|
1165
|
+
export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1220
1166
|
/**
|
|
1221
1167
|
*/
|
|
1222
|
-
export const
|
|
1168
|
+
export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1223
1169
|
/**
|
|
1224
1170
|
* JSON <-> PlutusData conversion schemas.
|
|
1225
1171
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
@@ -1273,32 +1219,87 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
1273
1219
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1274
1220
|
/**
|
|
1275
1221
|
*/
|
|
1222
|
+
export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1223
|
+
/**
|
|
1224
|
+
*/
|
|
1225
|
+
export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1226
|
+
/**
|
|
1227
|
+
*/
|
|
1228
|
+
export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1229
|
+
/**
|
|
1230
|
+
* Used to choosed the schema for a script JSON string
|
|
1231
|
+
*/
|
|
1232
|
+
export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1233
|
+
/**
|
|
1234
|
+
*/
|
|
1235
|
+
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", });
|
|
1236
|
+
/**
|
|
1237
|
+
*/
|
|
1276
1238
|
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", });
|
|
1277
1239
|
/**
|
|
1278
1240
|
*/
|
|
1279
|
-
export const
|
|
1241
|
+
export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1280
1242
|
/**
|
|
1281
1243
|
*/
|
|
1282
|
-
export const
|
|
1244
|
+
export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1283
1245
|
/**
|
|
1284
1246
|
*/
|
|
1285
|
-
export const
|
|
1247
|
+
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", });
|
|
1248
|
+
/**
|
|
1249
|
+
*/
|
|
1250
|
+
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", });
|
|
1251
|
+
/**
|
|
1252
|
+
*/
|
|
1253
|
+
export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1254
|
+
/**
|
|
1255
|
+
*/
|
|
1256
|
+
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", });
|
|
1257
|
+
/**
|
|
1258
|
+
*/
|
|
1259
|
+
export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1260
|
+
/**
|
|
1261
|
+
*/
|
|
1262
|
+
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", });
|
|
1263
|
+
/**
|
|
1264
|
+
*/
|
|
1265
|
+
export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1266
|
+
/**
|
|
1267
|
+
*/
|
|
1268
|
+
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", });
|
|
1269
|
+
/**
|
|
1270
|
+
*/
|
|
1271
|
+
export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1286
1272
|
/**
|
|
1287
1273
|
*/
|
|
1288
1274
|
export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1289
1275
|
/**
|
|
1290
1276
|
*/
|
|
1291
|
-
export const
|
|
1277
|
+
export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1292
1278
|
/**
|
|
1293
1279
|
*/
|
|
1294
|
-
export const
|
|
1280
|
+
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", });
|
|
1295
1281
|
/**
|
|
1296
1282
|
*/
|
|
1297
|
-
export const
|
|
1283
|
+
export const CoinSelectionStrategyCIP2 = Object.freeze({
|
|
1298
1284
|
/**
|
|
1299
|
-
*
|
|
1285
|
+
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1300
1286
|
*/
|
|
1301
|
-
|
|
1287
|
+
LargestFirst:0,"0":"LargestFirst",
|
|
1288
|
+
/**
|
|
1289
|
+
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1290
|
+
*/
|
|
1291
|
+
RandomImprove:1,"1":"RandomImprove",
|
|
1292
|
+
/**
|
|
1293
|
+
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1294
|
+
*/
|
|
1295
|
+
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
1296
|
+
/**
|
|
1297
|
+
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1298
|
+
*/
|
|
1299
|
+
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1300
|
+
/**
|
|
1301
|
+
*/
|
|
1302
|
+
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", });
|
|
1302
1303
|
|
|
1303
1304
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1304
1305
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -8449,7 +8450,7 @@ export class DNSRecordSRV {
|
|
|
8449
8450
|
let deferred1_1;
|
|
8450
8451
|
try {
|
|
8451
8452
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8452
|
-
wasm.
|
|
8453
|
+
wasm.dnsrecordsrv_record(retptr, this.__wbg_ptr);
|
|
8453
8454
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
8454
8455
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
8455
8456
|
deferred1_0 = r0;
|
|
@@ -8637,7 +8638,7 @@ export class DRep {
|
|
|
8637
8638
|
*/
|
|
8638
8639
|
static new_key_hash(key_hash) {
|
|
8639
8640
|
_assertClass(key_hash, Ed25519KeyHash);
|
|
8640
|
-
const ret = wasm.
|
|
8641
|
+
const ret = wasm.credential_from_scripthash(key_hash.__wbg_ptr);
|
|
8641
8642
|
return DRep.__wrap(ret);
|
|
8642
8643
|
}
|
|
8643
8644
|
/**
|
|
@@ -8646,7 +8647,7 @@ export class DRep {
|
|
|
8646
8647
|
*/
|
|
8647
8648
|
static new_script_hash(script_hash) {
|
|
8648
8649
|
_assertClass(script_hash, ScriptHash);
|
|
8649
|
-
const ret = wasm.
|
|
8650
|
+
const ret = wasm.credential_from_keyhash(script_hash.__wbg_ptr);
|
|
8650
8651
|
return DRep.__wrap(ret);
|
|
8651
8652
|
}
|
|
8652
8653
|
/**
|
|
@@ -8924,7 +8925,7 @@ export class DRepDeregistration {
|
|
|
8924
8925
|
* @returns {BigNum}
|
|
8925
8926
|
*/
|
|
8926
8927
|
coin() {
|
|
8927
|
-
const ret = wasm.
|
|
8928
|
+
const ret = wasm.datacost_coins_per_byte(this.__wbg_ptr);
|
|
8928
8929
|
return BigNum.__wrap(ret);
|
|
8929
8930
|
}
|
|
8930
8931
|
/**
|
|
@@ -9127,7 +9128,7 @@ export class DRepRegistration {
|
|
|
9127
9128
|
* @returns {BigNum}
|
|
9128
9129
|
*/
|
|
9129
9130
|
coin() {
|
|
9130
|
-
const ret = wasm.
|
|
9131
|
+
const ret = wasm.drepregistration_coin(this.__wbg_ptr);
|
|
9131
9132
|
return BigNum.__wrap(ret);
|
|
9132
9133
|
}
|
|
9133
9134
|
/**
|
|
@@ -9343,14 +9344,14 @@ export class DRepUpdate {
|
|
|
9343
9344
|
* @returns {Credential}
|
|
9344
9345
|
*/
|
|
9345
9346
|
voting_credential() {
|
|
9346
|
-
const ret = wasm.
|
|
9347
|
+
const ret = wasm.drepupdate_voting_credential(this.__wbg_ptr);
|
|
9347
9348
|
return Credential.__wrap(ret);
|
|
9348
9349
|
}
|
|
9349
9350
|
/**
|
|
9350
9351
|
* @returns {Anchor | undefined}
|
|
9351
9352
|
*/
|
|
9352
9353
|
anchor() {
|
|
9353
|
-
const ret = wasm.
|
|
9354
|
+
const ret = wasm.drepupdate_anchor(this.__wbg_ptr);
|
|
9354
9355
|
return ret === 0 ? undefined : Anchor.__wrap(ret);
|
|
9355
9356
|
}
|
|
9356
9357
|
/**
|
|
@@ -9359,7 +9360,7 @@ export class DRepUpdate {
|
|
|
9359
9360
|
*/
|
|
9360
9361
|
static new(voting_credential) {
|
|
9361
9362
|
_assertClass(voting_credential, Credential);
|
|
9362
|
-
const ret = wasm.
|
|
9363
|
+
const ret = wasm.drepupdate_new(voting_credential.__wbg_ptr);
|
|
9363
9364
|
return DRepUpdate.__wrap(ret);
|
|
9364
9365
|
}
|
|
9365
9366
|
/**
|
|
@@ -9370,14 +9371,14 @@ export class DRepUpdate {
|
|
|
9370
9371
|
static new_with_anchor(voting_credential, anchor) {
|
|
9371
9372
|
_assertClass(voting_credential, Credential);
|
|
9372
9373
|
_assertClass(anchor, Anchor);
|
|
9373
|
-
const ret = wasm.
|
|
9374
|
+
const ret = wasm.drepupdate_new_with_anchor(voting_credential.__wbg_ptr, anchor.__wbg_ptr);
|
|
9374
9375
|
return DRepUpdate.__wrap(ret);
|
|
9375
9376
|
}
|
|
9376
9377
|
/**
|
|
9377
9378
|
* @returns {boolean}
|
|
9378
9379
|
*/
|
|
9379
9380
|
has_script_credentials() {
|
|
9380
|
-
const ret = wasm.
|
|
9381
|
+
const ret = wasm.drepupdate_has_script_credentials(this.__wbg_ptr);
|
|
9381
9382
|
return ret !== 0;
|
|
9382
9383
|
}
|
|
9383
9384
|
}
|
|
@@ -10728,14 +10729,14 @@ export class ExUnitPrices {
|
|
|
10728
10729
|
* @returns {UnitInterval}
|
|
10729
10730
|
*/
|
|
10730
10731
|
mem_price() {
|
|
10731
|
-
const ret = wasm.
|
|
10732
|
+
const ret = wasm.drepvotingthresholds_motion_no_confidence(this.__wbg_ptr);
|
|
10732
10733
|
return UnitInterval.__wrap(ret);
|
|
10733
10734
|
}
|
|
10734
10735
|
/**
|
|
10735
10736
|
* @returns {UnitInterval}
|
|
10736
10737
|
*/
|
|
10737
10738
|
step_price() {
|
|
10738
|
-
const ret = wasm.
|
|
10739
|
+
const ret = wasm.drepvotingthresholds_committee_normal(this.__wbg_ptr);
|
|
10739
10740
|
return UnitInterval.__wrap(ret);
|
|
10740
10741
|
}
|
|
10741
10742
|
/**
|
|
@@ -11641,7 +11642,7 @@ export class FixedTransactionBody {
|
|
|
11641
11642
|
* @returns {TransactionBody}
|
|
11642
11643
|
*/
|
|
11643
11644
|
transaction_body() {
|
|
11644
|
-
const ret = wasm.
|
|
11645
|
+
const ret = wasm.fixedtransactionbody_transaction_body(this.__wbg_ptr);
|
|
11645
11646
|
return TransactionBody.__wrap(ret);
|
|
11646
11647
|
}
|
|
11647
11648
|
/**
|
|
@@ -15709,14 +15710,14 @@ export class MIRToStakeCredentials {
|
|
|
15709
15710
|
* @returns {MIRToStakeCredentials}
|
|
15710
15711
|
*/
|
|
15711
15712
|
static new() {
|
|
15712
|
-
const ret = wasm.
|
|
15713
|
+
const ret = wasm.generaltransactionmetadata_new();
|
|
15713
15714
|
return MIRToStakeCredentials.__wrap(ret);
|
|
15714
15715
|
}
|
|
15715
15716
|
/**
|
|
15716
15717
|
* @returns {number}
|
|
15717
15718
|
*/
|
|
15718
15719
|
len() {
|
|
15719
|
-
const ret = wasm.
|
|
15720
|
+
const ret = wasm.generaltransactionmetadata_len(this.__wbg_ptr);
|
|
15720
15721
|
return ret >>> 0;
|
|
15721
15722
|
}
|
|
15722
15723
|
/**
|
|
@@ -18687,7 +18688,7 @@ export class NewConstitutionAction {
|
|
|
18687
18688
|
* @returns {GovernanceActionId | undefined}
|
|
18688
18689
|
*/
|
|
18689
18690
|
gov_action_id() {
|
|
18690
|
-
const ret = wasm.
|
|
18691
|
+
const ret = wasm.hardforkinitiationaction_gov_action_id(this.__wbg_ptr);
|
|
18691
18692
|
return ret === 0 ? undefined : GovernanceActionId.__wrap(ret);
|
|
18692
18693
|
}
|
|
18693
18694
|
/**
|
|
@@ -20203,7 +20204,7 @@ export class PlutusMap {
|
|
|
20203
20204
|
* @returns {PlutusMap}
|
|
20204
20205
|
*/
|
|
20205
20206
|
static new() {
|
|
20206
|
-
const ret = wasm.
|
|
20207
|
+
const ret = wasm.plutusmap_new();
|
|
20207
20208
|
return PlutusMap.__wrap(ret);
|
|
20208
20209
|
}
|
|
20209
20210
|
/**
|
|
@@ -20211,7 +20212,7 @@ export class PlutusMap {
|
|
|
20211
20212
|
* @returns {number}
|
|
20212
20213
|
*/
|
|
20213
20214
|
len() {
|
|
20214
|
-
const ret = wasm.
|
|
20215
|
+
const ret = wasm.plutusmap_len(this.__wbg_ptr);
|
|
20215
20216
|
return ret >>> 0;
|
|
20216
20217
|
}
|
|
20217
20218
|
/**
|
|
@@ -21400,7 +21401,7 @@ export class PoolMetadata {
|
|
|
21400
21401
|
* @returns {URL}
|
|
21401
21402
|
*/
|
|
21402
21403
|
url() {
|
|
21403
|
-
const ret = wasm.
|
|
21404
|
+
const ret = wasm.poolmetadata_url(this.__wbg_ptr);
|
|
21404
21405
|
return URL.__wrap(ret);
|
|
21405
21406
|
}
|
|
21406
21407
|
/**
|
|
@@ -26423,7 +26424,7 @@ export class ScriptNOfK {
|
|
|
26423
26424
|
* @returns {NativeScripts}
|
|
26424
26425
|
*/
|
|
26425
26426
|
native_scripts() {
|
|
26426
|
-
const ret = wasm.
|
|
26427
|
+
const ret = wasm.scriptnofk_native_scripts(this.__wbg_ptr);
|
|
26427
26428
|
return NativeScripts.__wrap(ret);
|
|
26428
26429
|
}
|
|
26429
26430
|
/**
|
|
@@ -27253,7 +27254,7 @@ export class SingleHostName {
|
|
|
27253
27254
|
* @returns {DNSRecordAorAAAA}
|
|
27254
27255
|
*/
|
|
27255
27256
|
dns_name() {
|
|
27256
|
-
const ret = wasm.
|
|
27257
|
+
const ret = wasm.singlehostname_dns_name(this.__wbg_ptr);
|
|
27257
27258
|
return DNSRecordAorAAAA.__wrap(ret);
|
|
27258
27259
|
}
|
|
27259
27260
|
/**
|
|
@@ -27441,7 +27442,7 @@ export class StakeAndVoteDelegation {
|
|
|
27441
27442
|
* @returns {Credential}
|
|
27442
27443
|
*/
|
|
27443
27444
|
stake_credential() {
|
|
27444
|
-
const ret = wasm.
|
|
27445
|
+
const ret = wasm.committeehotauth_committee_cold_credential(this.__wbg_ptr);
|
|
27445
27446
|
return Credential.__wrap(ret);
|
|
27446
27447
|
}
|
|
27447
27448
|
/**
|
|
@@ -27475,7 +27476,7 @@ export class StakeAndVoteDelegation {
|
|
|
27475
27476
|
* @returns {boolean}
|
|
27476
27477
|
*/
|
|
27477
27478
|
has_script_credentials() {
|
|
27478
|
-
const ret = wasm.
|
|
27479
|
+
const ret = wasm.committeehotauth_has_script_credentials(this.__wbg_ptr);
|
|
27479
27480
|
return ret !== 0;
|
|
27480
27481
|
}
|
|
27481
27482
|
}
|
|
@@ -28068,14 +28069,14 @@ export class StakeRegistration {
|
|
|
28068
28069
|
* @returns {Credential}
|
|
28069
28070
|
*/
|
|
28070
28071
|
stake_credential() {
|
|
28071
|
-
const ret = wasm.
|
|
28072
|
+
const ret = wasm.stakederegistration_stake_credential(this.__wbg_ptr);
|
|
28072
28073
|
return Credential.__wrap(ret);
|
|
28073
28074
|
}
|
|
28074
28075
|
/**
|
|
28075
28076
|
* @returns {BigNum | undefined}
|
|
28076
28077
|
*/
|
|
28077
28078
|
coin() {
|
|
28078
|
-
const ret = wasm.
|
|
28079
|
+
const ret = wasm.stakederegistration_coin(this.__wbg_ptr);
|
|
28079
28080
|
return ret === 0 ? undefined : BigNum.__wrap(ret);
|
|
28080
28081
|
}
|
|
28081
28082
|
/**
|
|
@@ -28084,7 +28085,7 @@ export class StakeRegistration {
|
|
|
28084
28085
|
*/
|
|
28085
28086
|
static new(stake_credential) {
|
|
28086
28087
|
_assertClass(stake_credential, Credential);
|
|
28087
|
-
const ret = wasm.
|
|
28088
|
+
const ret = wasm.stakederegistration_new(stake_credential.__wbg_ptr);
|
|
28088
28089
|
return StakeRegistration.__wrap(ret);
|
|
28089
28090
|
}
|
|
28090
28091
|
/**
|
|
@@ -28095,14 +28096,14 @@ export class StakeRegistration {
|
|
|
28095
28096
|
static new_with_explicit_deposit(stake_credential, coin) {
|
|
28096
28097
|
_assertClass(stake_credential, Credential);
|
|
28097
28098
|
_assertClass(coin, BigNum);
|
|
28098
|
-
const ret = wasm.
|
|
28099
|
+
const ret = wasm.stakederegistration_new_with_explicit_refund(stake_credential.__wbg_ptr, coin.__wbg_ptr);
|
|
28099
28100
|
return StakeRegistration.__wrap(ret);
|
|
28100
28101
|
}
|
|
28101
28102
|
/**
|
|
28102
28103
|
* @returns {boolean}
|
|
28103
28104
|
*/
|
|
28104
28105
|
has_script_credentials() {
|
|
28105
|
-
const ret = wasm.
|
|
28106
|
+
const ret = wasm.stakederegistration_has_script_credentials(this.__wbg_ptr);
|
|
28106
28107
|
return ret !== 0;
|
|
28107
28108
|
}
|
|
28108
28109
|
}
|
|
@@ -28294,7 +28295,7 @@ export class StakeRegistrationAndDelegation {
|
|
|
28294
28295
|
* @returns {BigNum}
|
|
28295
28296
|
*/
|
|
28296
28297
|
coin() {
|
|
28297
|
-
const ret = wasm.
|
|
28298
|
+
const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
|
|
28298
28299
|
return BigNum.__wrap(ret);
|
|
28299
28300
|
}
|
|
28300
28301
|
/**
|
|
@@ -28499,7 +28500,7 @@ export class StakeVoteRegistrationAndDelegation {
|
|
|
28499
28500
|
* @returns {Ed25519KeyHash}
|
|
28500
28501
|
*/
|
|
28501
28502
|
pool_keyhash() {
|
|
28502
|
-
const ret = wasm.
|
|
28503
|
+
const ret = wasm.stakeregistrationanddelegation_pool_keyhash(this.__wbg_ptr);
|
|
28503
28504
|
return Ed25519KeyHash.__wrap(ret);
|
|
28504
28505
|
}
|
|
28505
28506
|
/**
|
|
@@ -28513,7 +28514,7 @@ export class StakeVoteRegistrationAndDelegation {
|
|
|
28513
28514
|
* @returns {BigNum}
|
|
28514
28515
|
*/
|
|
28515
28516
|
coin() {
|
|
28516
|
-
const ret = wasm.
|
|
28517
|
+
const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
|
|
28517
28518
|
return BigNum.__wrap(ret);
|
|
28518
28519
|
}
|
|
28519
28520
|
/**
|
|
@@ -28570,14 +28571,14 @@ export class Strings {
|
|
|
28570
28571
|
* @returns {Strings}
|
|
28571
28572
|
*/
|
|
28572
28573
|
static new() {
|
|
28573
|
-
const ret = wasm.
|
|
28574
|
+
const ret = wasm.assetnames_new();
|
|
28574
28575
|
return Strings.__wrap(ret);
|
|
28575
28576
|
}
|
|
28576
28577
|
/**
|
|
28577
28578
|
* @returns {number}
|
|
28578
28579
|
*/
|
|
28579
28580
|
len() {
|
|
28580
|
-
const ret = wasm.
|
|
28581
|
+
const ret = wasm.assetnames_len(this.__wbg_ptr);
|
|
28581
28582
|
return ret >>> 0;
|
|
28582
28583
|
}
|
|
28583
28584
|
/**
|
|
@@ -28801,7 +28802,7 @@ export class TimelockExpiry {
|
|
|
28801
28802
|
* @returns {BigNum}
|
|
28802
28803
|
*/
|
|
28803
28804
|
slot_bignum() {
|
|
28804
|
-
const ret = wasm.
|
|
28805
|
+
const ret = wasm.timelockexpiry_slot_bignum(this.__wbg_ptr);
|
|
28805
28806
|
return BigNum.__wrap(ret);
|
|
28806
28807
|
}
|
|
28807
28808
|
/**
|
|
@@ -29021,7 +29022,7 @@ export class TimelockStart {
|
|
|
29021
29022
|
* @returns {BigNum}
|
|
29022
29023
|
*/
|
|
29023
29024
|
slot_bignum() {
|
|
29024
|
-
const ret = wasm.
|
|
29025
|
+
const ret = wasm.timelockexpiry_slot_bignum(this.__wbg_ptr);
|
|
29025
29026
|
return BigNum.__wrap(ret);
|
|
29026
29027
|
}
|
|
29027
29028
|
/**
|
|
@@ -29527,7 +29528,7 @@ export class TransactionBodies {
|
|
|
29527
29528
|
* @returns {TransactionBodies}
|
|
29528
29529
|
*/
|
|
29529
29530
|
static new() {
|
|
29530
|
-
const ret = wasm.
|
|
29531
|
+
const ret = wasm.transactionbodies_new();
|
|
29531
29532
|
return TransactionBodies.__wrap(ret);
|
|
29532
29533
|
}
|
|
29533
29534
|
/**
|
|
@@ -32361,7 +32362,7 @@ export class TransactionMetadatumLabels {
|
|
|
32361
32362
|
* @returns {TransactionMetadatumLabels}
|
|
32362
32363
|
*/
|
|
32363
32364
|
static new() {
|
|
32364
|
-
const ret = wasm.
|
|
32365
|
+
const ret = wasm.transactionmetadatumlabels_new();
|
|
32365
32366
|
return TransactionMetadatumLabels.__wrap(ret);
|
|
32366
32367
|
}
|
|
32367
32368
|
/**
|
|
@@ -33799,7 +33800,7 @@ export class TransactionWitnessSets {
|
|
|
33799
33800
|
* @returns {TransactionWitnessSets}
|
|
33800
33801
|
*/
|
|
33801
33802
|
static new() {
|
|
33802
|
-
const ret = wasm.
|
|
33803
|
+
const ret = wasm.fixedtransactionbodies_new();
|
|
33803
33804
|
return TransactionWitnessSets.__wrap(ret);
|
|
33804
33805
|
}
|
|
33805
33806
|
/**
|
|
@@ -34600,7 +34601,7 @@ export class URL {
|
|
|
34600
34601
|
let deferred1_1;
|
|
34601
34602
|
try {
|
|
34602
34603
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
34603
|
-
wasm.
|
|
34604
|
+
wasm.url_url(retptr, this.__wbg_ptr);
|
|
34604
34605
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
34605
34606
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
34606
34607
|
deferred1_0 = r0;
|
|
@@ -36473,14 +36474,14 @@ export class Vkeys {
|
|
|
36473
36474
|
* @returns {Vkeys}
|
|
36474
36475
|
*/
|
|
36475
36476
|
static new() {
|
|
36476
|
-
const ret = wasm.
|
|
36477
|
+
const ret = wasm.publickeys_new();
|
|
36477
36478
|
return Vkeys.__wrap(ret);
|
|
36478
36479
|
}
|
|
36479
36480
|
/**
|
|
36480
36481
|
* @returns {number}
|
|
36481
36482
|
*/
|
|
36482
36483
|
len() {
|
|
36483
|
-
const ret = wasm.
|
|
36484
|
+
const ret = wasm.publickeys_size(this.__wbg_ptr);
|
|
36484
36485
|
return ret >>> 0;
|
|
36485
36486
|
}
|
|
36486
36487
|
/**
|
|
@@ -36691,7 +36692,7 @@ export class Vkeywitness {
|
|
|
36691
36692
|
* @returns {Ed25519Signature}
|
|
36692
36693
|
*/
|
|
36693
36694
|
signature() {
|
|
36694
|
-
const ret = wasm.
|
|
36695
|
+
const ret = wasm.vkeywitness_signature(this.__wbg_ptr);
|
|
36695
36696
|
return Ed25519Signature.__wrap(ret);
|
|
36696
36697
|
}
|
|
36697
36698
|
}
|
|
@@ -36869,14 +36870,14 @@ export class Vkeywitnesses {
|
|
|
36869
36870
|
* @returns {Vkeywitnesses}
|
|
36870
36871
|
*/
|
|
36871
36872
|
static new() {
|
|
36872
|
-
const ret = wasm.
|
|
36873
|
+
const ret = wasm.vkeywitnesses_new();
|
|
36873
36874
|
return Vkeywitnesses.__wrap(ret);
|
|
36874
36875
|
}
|
|
36875
36876
|
/**
|
|
36876
36877
|
* @returns {number}
|
|
36877
36878
|
*/
|
|
36878
36879
|
len() {
|
|
36879
|
-
const ret = wasm.
|
|
36880
|
+
const ret = wasm.vkeywitnesses_len(this.__wbg_ptr);
|
|
36880
36881
|
return ret >>> 0;
|
|
36881
36882
|
}
|
|
36882
36883
|
/**
|
|
@@ -37073,7 +37074,7 @@ export class VoteDelegation {
|
|
|
37073
37074
|
* @returns {Credential}
|
|
37074
37075
|
*/
|
|
37075
37076
|
stake_credential() {
|
|
37076
|
-
const ret = wasm.
|
|
37077
|
+
const ret = wasm.committeehotauth_committee_cold_credential(this.__wbg_ptr);
|
|
37077
37078
|
return Credential.__wrap(ret);
|
|
37078
37079
|
}
|
|
37079
37080
|
/**
|
|
@@ -37098,7 +37099,7 @@ export class VoteDelegation {
|
|
|
37098
37099
|
* @returns {boolean}
|
|
37099
37100
|
*/
|
|
37100
37101
|
has_script_credentials() {
|
|
37101
|
-
const ret = wasm.
|
|
37102
|
+
const ret = wasm.committeehotauth_has_script_credentials(this.__wbg_ptr);
|
|
37102
37103
|
return ret !== 0;
|
|
37103
37104
|
}
|
|
37104
37105
|
}
|
|
@@ -37290,7 +37291,7 @@ export class VoteRegistrationAndDelegation {
|
|
|
37290
37291
|
* @returns {BigNum}
|
|
37291
37292
|
*/
|
|
37292
37293
|
coin() {
|
|
37293
|
-
const ret = wasm.
|
|
37294
|
+
const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
|
|
37294
37295
|
return BigNum.__wrap(ret);
|
|
37295
37296
|
}
|
|
37296
37297
|
/**
|
|
@@ -37708,7 +37709,7 @@ export class VotingBuilder {
|
|
|
37708
37709
|
* @returns {VotingBuilder}
|
|
37709
37710
|
*/
|
|
37710
37711
|
static new() {
|
|
37711
|
-
const ret = wasm.
|
|
37712
|
+
const ret = wasm.costmdls_new();
|
|
37712
37713
|
return VotingBuilder.__wrap(ret);
|
|
37713
37714
|
}
|
|
37714
37715
|
/**
|
|
@@ -38013,7 +38014,7 @@ export class VotingProcedure {
|
|
|
38013
38014
|
* @returns {Anchor | undefined}
|
|
38014
38015
|
*/
|
|
38015
38016
|
anchor() {
|
|
38016
|
-
const ret = wasm.
|
|
38017
|
+
const ret = wasm.votingprocedure_anchor(this.__wbg_ptr);
|
|
38017
38018
|
return ret === 0 ? undefined : Anchor.__wrap(ret);
|
|
38018
38019
|
}
|
|
38019
38020
|
}
|
|
@@ -38191,7 +38192,7 @@ export class VotingProcedures {
|
|
|
38191
38192
|
* @returns {VotingProcedures}
|
|
38192
38193
|
*/
|
|
38193
38194
|
static new() {
|
|
38194
|
-
const ret = wasm.
|
|
38195
|
+
const ret = wasm.treasurywithdrawals_new();
|
|
38195
38196
|
return VotingProcedures.__wrap(ret);
|
|
38196
38197
|
}
|
|
38197
38198
|
/**
|
|
@@ -38478,7 +38479,7 @@ export class VotingProposalBuilder {
|
|
|
38478
38479
|
* @returns {VotingProposalBuilder}
|
|
38479
38480
|
*/
|
|
38480
38481
|
static new() {
|
|
38481
|
-
const ret = wasm.
|
|
38482
|
+
const ret = wasm.mintbuilder_new();
|
|
38482
38483
|
return VotingProposalBuilder.__wrap(ret);
|
|
38483
38484
|
}
|
|
38484
38485
|
/**
|
|
@@ -38720,14 +38721,14 @@ export class VotingProposals {
|
|
|
38720
38721
|
* @returns {VotingProposals}
|
|
38721
38722
|
*/
|
|
38722
38723
|
static new() {
|
|
38723
|
-
const ret = wasm.
|
|
38724
|
+
const ret = wasm.votingproposals_new();
|
|
38724
38725
|
return VotingProposals.__wrap(ret);
|
|
38725
38726
|
}
|
|
38726
38727
|
/**
|
|
38727
38728
|
* @returns {number}
|
|
38728
38729
|
*/
|
|
38729
38730
|
len() {
|
|
38730
|
-
const ret = wasm.
|
|
38731
|
+
const ret = wasm.votingproposals_len(this.__wbg_ptr);
|
|
38731
38732
|
return ret >>> 0;
|
|
38732
38733
|
}
|
|
38733
38734
|
/**
|
|
@@ -39009,7 +39010,7 @@ export class WithdrawalsBuilder {
|
|
|
39009
39010
|
* @returns {WithdrawalsBuilder}
|
|
39010
39011
|
*/
|
|
39011
39012
|
static new() {
|
|
39012
|
-
const ret = wasm.
|
|
39013
|
+
const ret = wasm.costmdls_new();
|
|
39013
39014
|
return WithdrawalsBuilder.__wrap(ret);
|
|
39014
39015
|
}
|
|
39015
39016
|
/**
|
|
@@ -39484,14 +39485,14 @@ export function __wbg_getRandomValues_dc67302a7bd1aec5(arg0) {
|
|
|
39484
39485
|
return addHeapObject(ret);
|
|
39485
39486
|
};
|
|
39486
39487
|
|
|
39487
|
-
export function __wbg_randomFillSync_dd2297de5917c74e(arg0, arg1, arg2) {
|
|
39488
|
-
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
39489
|
-
};
|
|
39490
|
-
|
|
39491
39488
|
export function __wbg_getRandomValues_02639197c8166a96(arg0, arg1, arg2) {
|
|
39492
39489
|
getObject(arg0).getRandomValues(getArrayU8FromWasm0(arg1, arg2));
|
|
39493
39490
|
};
|
|
39494
39491
|
|
|
39492
|
+
export function __wbg_randomFillSync_dd2297de5917c74e(arg0, arg1, arg2) {
|
|
39493
|
+
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
39494
|
+
};
|
|
39495
|
+
|
|
39495
39496
|
export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
|
|
39496
39497
|
const v = getObject(arg1);
|
|
39497
39498
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|