@cardananium/cquisitor-lib 0.1.0-beta.11 → 0.1.0-beta.13
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_bg.js +322 -323
- package/browser/cquisitor_lib_bg.wasm +0 -0
- package/browser/cquisitor_lib_bg.wasm.d.ts +1648 -1648
- package/node/cquisitor_lib.js +298 -299
- package/node/cquisitor_lib_bg.wasm +0 -0
- package/node/cquisitor_lib_bg.wasm.d.ts +1648 -1648
- package/package.json +1 -1
|
@@ -435,6 +435,13 @@ export function decode_plutus_program_pretty_uplc(hex) {
|
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
437
|
|
|
438
|
+
function _assertClass(instance, klass) {
|
|
439
|
+
if (!(instance instanceof klass)) {
|
|
440
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
441
|
+
}
|
|
442
|
+
return instance.ptr;
|
|
443
|
+
}
|
|
444
|
+
|
|
438
445
|
function getArrayU8FromWasm0(ptr, len) {
|
|
439
446
|
ptr = ptr >>> 0;
|
|
440
447
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -447,17 +454,181 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
447
454
|
return ptr;
|
|
448
455
|
}
|
|
449
456
|
|
|
450
|
-
function _assertClass(instance, klass) {
|
|
451
|
-
if (!(instance instanceof klass)) {
|
|
452
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
453
|
-
}
|
|
454
|
-
return instance.ptr;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
457
|
function getArrayU32FromWasm0(ptr, len) {
|
|
458
458
|
ptr = ptr >>> 0;
|
|
459
459
|
return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
|
|
460
460
|
}
|
|
461
|
+
/**
|
|
462
|
+
* @param {Transaction} tx
|
|
463
|
+
* @param {LinearFee} linear_fee
|
|
464
|
+
* @returns {BigNum}
|
|
465
|
+
*/
|
|
466
|
+
export function min_fee(tx, linear_fee) {
|
|
467
|
+
try {
|
|
468
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
469
|
+
_assertClass(tx, Transaction);
|
|
470
|
+
_assertClass(linear_fee, LinearFee);
|
|
471
|
+
wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__wbg_ptr);
|
|
472
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
473
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
474
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
475
|
+
if (r2) {
|
|
476
|
+
throw takeObject(r1);
|
|
477
|
+
}
|
|
478
|
+
return BigNum.__wrap(r0);
|
|
479
|
+
} finally {
|
|
480
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* @param {ExUnits} ex_units
|
|
486
|
+
* @param {ExUnitPrices} ex_unit_prices
|
|
487
|
+
* @returns {BigNum}
|
|
488
|
+
*/
|
|
489
|
+
export function calculate_ex_units_ceil_cost(ex_units, ex_unit_prices) {
|
|
490
|
+
try {
|
|
491
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
492
|
+
_assertClass(ex_units, ExUnits);
|
|
493
|
+
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
494
|
+
wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
495
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
496
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
497
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
498
|
+
if (r2) {
|
|
499
|
+
throw takeObject(r1);
|
|
500
|
+
}
|
|
501
|
+
return BigNum.__wrap(r0);
|
|
502
|
+
} finally {
|
|
503
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* @param {Transaction} tx
|
|
509
|
+
* @param {ExUnitPrices} ex_unit_prices
|
|
510
|
+
* @returns {BigNum}
|
|
511
|
+
*/
|
|
512
|
+
export function min_script_fee(tx, ex_unit_prices) {
|
|
513
|
+
try {
|
|
514
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
515
|
+
_assertClass(tx, Transaction);
|
|
516
|
+
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
517
|
+
wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
518
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
519
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
520
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
521
|
+
if (r2) {
|
|
522
|
+
throw takeObject(r1);
|
|
523
|
+
}
|
|
524
|
+
return BigNum.__wrap(r0);
|
|
525
|
+
} finally {
|
|
526
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* @param {number} total_ref_scripts_size
|
|
532
|
+
* @param {UnitInterval} ref_script_coins_per_byte
|
|
533
|
+
* @returns {BigNum}
|
|
534
|
+
*/
|
|
535
|
+
export function min_ref_script_fee(total_ref_scripts_size, ref_script_coins_per_byte) {
|
|
536
|
+
try {
|
|
537
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
538
|
+
_assertClass(ref_script_coins_per_byte, UnitInterval);
|
|
539
|
+
wasm.min_ref_script_fee(retptr, total_ref_scripts_size, ref_script_coins_per_byte.__wbg_ptr);
|
|
540
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
541
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
542
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
543
|
+
if (r2) {
|
|
544
|
+
throw takeObject(r1);
|
|
545
|
+
}
|
|
546
|
+
return BigNum.__wrap(r0);
|
|
547
|
+
} finally {
|
|
548
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
function passArray32ToWasm0(arg, malloc) {
|
|
553
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
554
|
+
getUint32Memory0().set(arg, ptr / 4);
|
|
555
|
+
WASM_VECTOR_LEN = arg.length;
|
|
556
|
+
return ptr;
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* @param {string} password
|
|
560
|
+
* @param {string} salt
|
|
561
|
+
* @param {string} nonce
|
|
562
|
+
* @param {string} data
|
|
563
|
+
* @returns {string}
|
|
564
|
+
*/
|
|
565
|
+
export function encrypt_with_password(password, salt, nonce, data) {
|
|
566
|
+
let deferred6_0;
|
|
567
|
+
let deferred6_1;
|
|
568
|
+
try {
|
|
569
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
570
|
+
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
571
|
+
const len0 = WASM_VECTOR_LEN;
|
|
572
|
+
const ptr1 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
573
|
+
const len1 = WASM_VECTOR_LEN;
|
|
574
|
+
const ptr2 = passStringToWasm0(nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
575
|
+
const len2 = WASM_VECTOR_LEN;
|
|
576
|
+
const ptr3 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
577
|
+
const len3 = WASM_VECTOR_LEN;
|
|
578
|
+
wasm.encrypt_with_password(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
579
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
580
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
581
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
582
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
583
|
+
var ptr5 = r0;
|
|
584
|
+
var len5 = r1;
|
|
585
|
+
if (r3) {
|
|
586
|
+
ptr5 = 0; len5 = 0;
|
|
587
|
+
throw takeObject(r2);
|
|
588
|
+
}
|
|
589
|
+
deferred6_0 = ptr5;
|
|
590
|
+
deferred6_1 = len5;
|
|
591
|
+
return getStringFromWasm0(ptr5, len5);
|
|
592
|
+
} finally {
|
|
593
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
594
|
+
wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* @param {string} password
|
|
600
|
+
* @param {string} data
|
|
601
|
+
* @returns {string}
|
|
602
|
+
*/
|
|
603
|
+
export function decrypt_with_password(password, data) {
|
|
604
|
+
let deferred4_0;
|
|
605
|
+
let deferred4_1;
|
|
606
|
+
try {
|
|
607
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
608
|
+
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
609
|
+
const len0 = WASM_VECTOR_LEN;
|
|
610
|
+
const ptr1 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
611
|
+
const len1 = WASM_VECTOR_LEN;
|
|
612
|
+
wasm.decrypt_with_password(retptr, ptr0, len0, ptr1, len1);
|
|
613
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
614
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
615
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
616
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
617
|
+
var ptr3 = r0;
|
|
618
|
+
var len3 = r1;
|
|
619
|
+
if (r3) {
|
|
620
|
+
ptr3 = 0; len3 = 0;
|
|
621
|
+
throw takeObject(r2);
|
|
622
|
+
}
|
|
623
|
+
deferred4_0 = ptr3;
|
|
624
|
+
deferred4_1 = len3;
|
|
625
|
+
return getStringFromWasm0(ptr3, len3);
|
|
626
|
+
} finally {
|
|
627
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
628
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
|
|
461
632
|
/**
|
|
462
633
|
* @param {TransactionHash} tx_body_hash
|
|
463
634
|
* @param {ByronAddress} addr
|
|
@@ -673,80 +844,6 @@ export function has_transaction_set_tag(tx_bytes) {
|
|
|
673
844
|
}
|
|
674
845
|
}
|
|
675
846
|
|
|
676
|
-
/**
|
|
677
|
-
* @param {string} password
|
|
678
|
-
* @param {string} salt
|
|
679
|
-
* @param {string} nonce
|
|
680
|
-
* @param {string} data
|
|
681
|
-
* @returns {string}
|
|
682
|
-
*/
|
|
683
|
-
export function encrypt_with_password(password, salt, nonce, data) {
|
|
684
|
-
let deferred6_0;
|
|
685
|
-
let deferred6_1;
|
|
686
|
-
try {
|
|
687
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
688
|
-
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
689
|
-
const len0 = WASM_VECTOR_LEN;
|
|
690
|
-
const ptr1 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
691
|
-
const len1 = WASM_VECTOR_LEN;
|
|
692
|
-
const ptr2 = passStringToWasm0(nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
693
|
-
const len2 = WASM_VECTOR_LEN;
|
|
694
|
-
const ptr3 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
695
|
-
const len3 = WASM_VECTOR_LEN;
|
|
696
|
-
wasm.encrypt_with_password(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
697
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
698
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
699
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
700
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
701
|
-
var ptr5 = r0;
|
|
702
|
-
var len5 = r1;
|
|
703
|
-
if (r3) {
|
|
704
|
-
ptr5 = 0; len5 = 0;
|
|
705
|
-
throw takeObject(r2);
|
|
706
|
-
}
|
|
707
|
-
deferred6_0 = ptr5;
|
|
708
|
-
deferred6_1 = len5;
|
|
709
|
-
return getStringFromWasm0(ptr5, len5);
|
|
710
|
-
} finally {
|
|
711
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
712
|
-
wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
/**
|
|
717
|
-
* @param {string} password
|
|
718
|
-
* @param {string} data
|
|
719
|
-
* @returns {string}
|
|
720
|
-
*/
|
|
721
|
-
export function decrypt_with_password(password, data) {
|
|
722
|
-
let deferred4_0;
|
|
723
|
-
let deferred4_1;
|
|
724
|
-
try {
|
|
725
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
726
|
-
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
727
|
-
const len0 = WASM_VECTOR_LEN;
|
|
728
|
-
const ptr1 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
729
|
-
const len1 = WASM_VECTOR_LEN;
|
|
730
|
-
wasm.decrypt_with_password(retptr, ptr0, len0, ptr1, len1);
|
|
731
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
732
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
733
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
734
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
735
|
-
var ptr3 = r0;
|
|
736
|
-
var len3 = r1;
|
|
737
|
-
if (r3) {
|
|
738
|
-
ptr3 = 0; len3 = 0;
|
|
739
|
-
throw takeObject(r2);
|
|
740
|
-
}
|
|
741
|
-
deferred4_0 = ptr3;
|
|
742
|
-
deferred4_1 = len3;
|
|
743
|
-
return getStringFromWasm0(ptr3, len3);
|
|
744
|
-
} finally {
|
|
745
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
746
|
-
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
|
|
750
847
|
/**
|
|
751
848
|
* @param {Address} address
|
|
752
849
|
* @param {TransactionUnspentOutputs} utxos
|
|
@@ -772,97 +869,6 @@ export function create_send_all(address, utxos, config) {
|
|
|
772
869
|
}
|
|
773
870
|
}
|
|
774
871
|
|
|
775
|
-
/**
|
|
776
|
-
* @param {Transaction} tx
|
|
777
|
-
* @param {LinearFee} linear_fee
|
|
778
|
-
* @returns {BigNum}
|
|
779
|
-
*/
|
|
780
|
-
export function min_fee(tx, linear_fee) {
|
|
781
|
-
try {
|
|
782
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
783
|
-
_assertClass(tx, Transaction);
|
|
784
|
-
_assertClass(linear_fee, LinearFee);
|
|
785
|
-
wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__wbg_ptr);
|
|
786
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
787
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
788
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
789
|
-
if (r2) {
|
|
790
|
-
throw takeObject(r1);
|
|
791
|
-
}
|
|
792
|
-
return BigNum.__wrap(r0);
|
|
793
|
-
} finally {
|
|
794
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
/**
|
|
799
|
-
* @param {ExUnits} ex_units
|
|
800
|
-
* @param {ExUnitPrices} ex_unit_prices
|
|
801
|
-
* @returns {BigNum}
|
|
802
|
-
*/
|
|
803
|
-
export function calculate_ex_units_ceil_cost(ex_units, ex_unit_prices) {
|
|
804
|
-
try {
|
|
805
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
806
|
-
_assertClass(ex_units, ExUnits);
|
|
807
|
-
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
808
|
-
wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
809
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
810
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
811
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
812
|
-
if (r2) {
|
|
813
|
-
throw takeObject(r1);
|
|
814
|
-
}
|
|
815
|
-
return BigNum.__wrap(r0);
|
|
816
|
-
} finally {
|
|
817
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
/**
|
|
822
|
-
* @param {Transaction} tx
|
|
823
|
-
* @param {ExUnitPrices} ex_unit_prices
|
|
824
|
-
* @returns {BigNum}
|
|
825
|
-
*/
|
|
826
|
-
export function min_script_fee(tx, ex_unit_prices) {
|
|
827
|
-
try {
|
|
828
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
829
|
-
_assertClass(tx, Transaction);
|
|
830
|
-
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
831
|
-
wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
832
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
833
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
834
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
835
|
-
if (r2) {
|
|
836
|
-
throw takeObject(r1);
|
|
837
|
-
}
|
|
838
|
-
return BigNum.__wrap(r0);
|
|
839
|
-
} finally {
|
|
840
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
/**
|
|
845
|
-
* @param {number} total_ref_scripts_size
|
|
846
|
-
* @param {UnitInterval} ref_script_coins_per_byte
|
|
847
|
-
* @returns {BigNum}
|
|
848
|
-
*/
|
|
849
|
-
export function min_ref_script_fee(total_ref_scripts_size, ref_script_coins_per_byte) {
|
|
850
|
-
try {
|
|
851
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
852
|
-
_assertClass(ref_script_coins_per_byte, UnitInterval);
|
|
853
|
-
wasm.min_ref_script_fee(retptr, total_ref_scripts_size, ref_script_coins_per_byte.__wbg_ptr);
|
|
854
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
855
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
856
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
857
|
-
if (r2) {
|
|
858
|
-
throw takeObject(r1);
|
|
859
|
-
}
|
|
860
|
-
return BigNum.__wrap(r0);
|
|
861
|
-
} finally {
|
|
862
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
|
|
866
872
|
/**
|
|
867
873
|
* @param {string} json
|
|
868
874
|
* @param {PlutusDatumSchema} schema
|
|
@@ -1006,13 +1012,6 @@ export function decode_metadatum_to_json_str(metadatum, schema) {
|
|
|
1006
1012
|
}
|
|
1007
1013
|
}
|
|
1008
1014
|
|
|
1009
|
-
function passArray32ToWasm0(arg, malloc) {
|
|
1010
|
-
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
1011
|
-
getUint32Memory0().set(arg, ptr / 4);
|
|
1012
|
-
WASM_VECTOR_LEN = arg.length;
|
|
1013
|
-
return ptr;
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
1015
|
function handleError(f, args) {
|
|
1017
1016
|
try {
|
|
1018
1017
|
return f.apply(this, args);
|
|
@@ -1022,67 +1021,34 @@ function handleError(f, args) {
|
|
|
1022
1021
|
}
|
|
1023
1022
|
/**
|
|
1024
1023
|
*/
|
|
1025
|
-
export const
|
|
1024
|
+
export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1026
1025
|
/**
|
|
1027
|
-
* JSON <-> PlutusData conversion schemas.
|
|
1028
|
-
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
1029
|
-
* https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
|
|
1030
|
-
*
|
|
1031
|
-
* All methods here have the following restrictions due to limitations on dependencies:
|
|
1032
|
-
* * JSON numbers above u64::MAX (positive) or below i64::MIN (negative) will throw errors
|
|
1033
|
-
* * Hex strings for bytes don't accept odd-length (half-byte) strings.
|
|
1034
|
-
* cardano-cli seems to support these however but it seems to be different than just 0-padding
|
|
1035
|
-
* on either side when tested so proceed with caution
|
|
1036
1026
|
*/
|
|
1037
|
-
export const
|
|
1027
|
+
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", });
|
|
1038
1028
|
/**
|
|
1039
|
-
* ScriptDataJsonNoSchema in cardano-node.
|
|
1040
|
-
*
|
|
1041
|
-
* This is the format used by --script-data-value in cardano-cli
|
|
1042
|
-
* This tries to accept most JSON but does not support the full spectrum of Plutus datums.
|
|
1043
|
-
* From JSON:
|
|
1044
|
-
* * null/true/false/floats NOT supported
|
|
1045
|
-
* * strings starting with 0x are treated as hex bytes. All other strings are encoded as their utf8 bytes.
|
|
1046
|
-
* To JSON:
|
|
1047
|
-
* * ConstrPlutusData not supported in ANY FORM (neither keys nor values)
|
|
1048
|
-
* * Lists not supported in keys
|
|
1049
|
-
* * Maps not supported in keys
|
|
1050
1029
|
*/
|
|
1051
|
-
|
|
1030
|
+
export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1052
1031
|
/**
|
|
1053
|
-
* ScriptDataJsonDetailedSchema in cardano-node.
|
|
1054
|
-
*
|
|
1055
|
-
* This is the format used by --script-data-file in cardano-cli
|
|
1056
|
-
* This covers almost all (only minor exceptions) Plutus datums, but the JSON must conform to a strict schema.
|
|
1057
|
-
* The schema specifies that ALL keys and ALL values must be contained in a JSON map with 2 cases:
|
|
1058
|
-
* 1. For ConstrPlutusData there must be two fields "constructor" contianing a number and "fields" containing its fields
|
|
1059
|
-
* e.g. { "constructor": 2, "fields": [{"int": 2}, {"list": [{"bytes": "CAFEF00D"}]}]}
|
|
1060
|
-
* 2. For all other cases there must be only one field named "int", "bytes", "list" or "map"
|
|
1061
|
-
* Integer's value is a JSON number e.g. {"int": 100}
|
|
1062
|
-
* Bytes' value is a hex string representing the bytes WITHOUT any prefix e.g. {"bytes": "CAFEF00D"}
|
|
1063
|
-
* Lists' value is a JSON list of its elements encoded via the same schema e.g. {"list": [{"bytes": "CAFEF00D"}]}
|
|
1064
|
-
* Maps' value is a JSON list of objects, one for each key-value pair in the map, with keys "k" and "v"
|
|
1065
|
-
* respectively with their values being the plutus datum encoded via this same schema
|
|
1066
|
-
* e.g. {"map": [
|
|
1067
|
-
* {"k": {"int": 2}, "v": {"int": 5}},
|
|
1068
|
-
* {"k": {"map": [{"k": {"list": [{"int": 1}]}, "v": {"bytes": "FF03"}}]}, "v": {"list": []}}
|
|
1069
|
-
* ]}
|
|
1070
|
-
* From JSON:
|
|
1071
|
-
* * null/true/false/floats NOT supported
|
|
1072
|
-
* * the JSON must conform to a very specific schema
|
|
1073
|
-
* To JSON:
|
|
1074
|
-
* * all Plutus datums should be fully supported outside of the integer range limitations outlined above.
|
|
1075
1032
|
*/
|
|
1076
|
-
|
|
1033
|
+
export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1077
1034
|
/**
|
|
1078
1035
|
*/
|
|
1079
1036
|
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", });
|
|
1080
1037
|
/**
|
|
1081
1038
|
*/
|
|
1082
|
-
export const
|
|
1039
|
+
export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1083
1040
|
/**
|
|
1084
1041
|
*/
|
|
1085
|
-
export const
|
|
1042
|
+
export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1043
|
+
/**
|
|
1044
|
+
*/
|
|
1045
|
+
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", });
|
|
1046
|
+
/**
|
|
1047
|
+
*/
|
|
1048
|
+
export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1049
|
+
/**
|
|
1050
|
+
*/
|
|
1051
|
+
export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1086
1052
|
/**
|
|
1087
1053
|
*/
|
|
1088
1054
|
export const CoinSelectionStrategyCIP2 = Object.freeze({
|
|
@@ -1104,69 +1070,102 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
|
1104
1070
|
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1105
1071
|
/**
|
|
1106
1072
|
*/
|
|
1107
|
-
export const
|
|
1108
|
-
/**
|
|
1109
|
-
*/
|
|
1110
|
-
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", });
|
|
1073
|
+
export const CertificateKind = Object.freeze({ StakeRegistration:0,"0":"StakeRegistration",StakeDeregistration:1,"1":"StakeDeregistration",StakeDelegation:2,"2":"StakeDelegation",PoolRegistration:3,"3":"PoolRegistration",PoolRetirement:4,"4":"PoolRetirement",GenesisKeyDelegation:5,"5":"GenesisKeyDelegation",MoveInstantaneousRewardsCert:6,"6":"MoveInstantaneousRewardsCert",CommitteeHotAuth:7,"7":"CommitteeHotAuth",CommitteeColdResign:8,"8":"CommitteeColdResign",DRepDeregistration:9,"9":"DRepDeregistration",DRepRegistration:10,"10":"DRepRegistration",DRepUpdate:11,"11":"DRepUpdate",StakeAndVoteDelegation:12,"12":"StakeAndVoteDelegation",StakeRegistrationAndDelegation:13,"13":"StakeRegistrationAndDelegation",StakeVoteRegistrationAndDelegation:14,"14":"StakeVoteRegistrationAndDelegation",VoteDelegation:15,"15":"VoteDelegation",VoteRegistrationAndDelegation:16,"16":"VoteRegistrationAndDelegation", });
|
|
1111
1074
|
/**
|
|
1075
|
+
* Each new language uses a different namespace for hashing its script
|
|
1076
|
+
* This is because you could have a language where the same bytes have different semantics
|
|
1077
|
+
* So this avoids scripts in different languages mapping to the same hash
|
|
1078
|
+
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1112
1079
|
*/
|
|
1113
|
-
export const
|
|
1080
|
+
export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1114
1081
|
/**
|
|
1115
1082
|
*/
|
|
1116
|
-
export const
|
|
1083
|
+
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", });
|
|
1117
1084
|
/**
|
|
1118
1085
|
*/
|
|
1119
|
-
export const
|
|
1086
|
+
export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1120
1087
|
/**
|
|
1121
1088
|
*/
|
|
1122
|
-
export const
|
|
1089
|
+
export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1123
1090
|
/**
|
|
1124
1091
|
*/
|
|
1125
|
-
export const
|
|
1092
|
+
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", });
|
|
1126
1093
|
/**
|
|
1127
1094
|
*/
|
|
1128
|
-
export const
|
|
1095
|
+
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", });
|
|
1129
1096
|
/**
|
|
1130
|
-
* Used to choosed the schema for a script JSON string
|
|
1131
1097
|
*/
|
|
1132
|
-
export const
|
|
1098
|
+
export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1133
1099
|
/**
|
|
1100
|
+
* JSON <-> PlutusData conversion schemas.
|
|
1101
|
+
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
1102
|
+
* https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
|
|
1103
|
+
*
|
|
1104
|
+
* All methods here have the following restrictions due to limitations on dependencies:
|
|
1105
|
+
* * JSON numbers above u64::MAX (positive) or below i64::MIN (negative) will throw errors
|
|
1106
|
+
* * Hex strings for bytes don't accept odd-length (half-byte) strings.
|
|
1107
|
+
* cardano-cli seems to support these however but it seems to be different than just 0-padding
|
|
1108
|
+
* on either side when tested so proceed with caution
|
|
1134
1109
|
*/
|
|
1135
|
-
export const
|
|
1110
|
+
export const PlutusDatumSchema = Object.freeze({
|
|
1136
1111
|
/**
|
|
1112
|
+
* ScriptDataJsonNoSchema in cardano-node.
|
|
1113
|
+
*
|
|
1114
|
+
* This is the format used by --script-data-value in cardano-cli
|
|
1115
|
+
* This tries to accept most JSON but does not support the full spectrum of Plutus datums.
|
|
1116
|
+
* From JSON:
|
|
1117
|
+
* * null/true/false/floats NOT supported
|
|
1118
|
+
* * strings starting with 0x are treated as hex bytes. All other strings are encoded as their utf8 bytes.
|
|
1119
|
+
* To JSON:
|
|
1120
|
+
* * ConstrPlutusData not supported in ANY FORM (neither keys nor values)
|
|
1121
|
+
* * Lists not supported in keys
|
|
1122
|
+
* * Maps not supported in keys
|
|
1137
1123
|
*/
|
|
1138
|
-
|
|
1124
|
+
BasicConversions:0,"0":"BasicConversions",
|
|
1139
1125
|
/**
|
|
1126
|
+
* ScriptDataJsonDetailedSchema in cardano-node.
|
|
1127
|
+
*
|
|
1128
|
+
* This is the format used by --script-data-file in cardano-cli
|
|
1129
|
+
* This covers almost all (only minor exceptions) Plutus datums, but the JSON must conform to a strict schema.
|
|
1130
|
+
* The schema specifies that ALL keys and ALL values must be contained in a JSON map with 2 cases:
|
|
1131
|
+
* 1. For ConstrPlutusData there must be two fields "constructor" contianing a number and "fields" containing its fields
|
|
1132
|
+
* e.g. { "constructor": 2, "fields": [{"int": 2}, {"list": [{"bytes": "CAFEF00D"}]}]}
|
|
1133
|
+
* 2. For all other cases there must be only one field named "int", "bytes", "list" or "map"
|
|
1134
|
+
* Integer's value is a JSON number e.g. {"int": 100}
|
|
1135
|
+
* Bytes' value is a hex string representing the bytes WITHOUT any prefix e.g. {"bytes": "CAFEF00D"}
|
|
1136
|
+
* Lists' value is a JSON list of its elements encoded via the same schema e.g. {"list": [{"bytes": "CAFEF00D"}]}
|
|
1137
|
+
* Maps' value is a JSON list of objects, one for each key-value pair in the map, with keys "k" and "v"
|
|
1138
|
+
* respectively with their values being the plutus datum encoded via this same schema
|
|
1139
|
+
* e.g. {"map": [
|
|
1140
|
+
* {"k": {"int": 2}, "v": {"int": 5}},
|
|
1141
|
+
* {"k": {"map": [{"k": {"list": [{"int": 1}]}, "v": {"bytes": "FF03"}}]}, "v": {"list": []}}
|
|
1142
|
+
* ]}
|
|
1143
|
+
* From JSON:
|
|
1144
|
+
* * null/true/false/floats NOT supported
|
|
1145
|
+
* * the JSON must conform to a very specific schema
|
|
1146
|
+
* To JSON:
|
|
1147
|
+
* * all Plutus datums should be fully supported outside of the integer range limitations outlined above.
|
|
1140
1148
|
*/
|
|
1141
|
-
|
|
1149
|
+
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1142
1150
|
/**
|
|
1143
1151
|
*/
|
|
1144
1152
|
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", });
|
|
1145
1153
|
/**
|
|
1146
1154
|
*/
|
|
1147
|
-
export const
|
|
1148
|
-
/**
|
|
1149
|
-
*/
|
|
1150
|
-
export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1155
|
+
export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1151
1156
|
/**
|
|
1152
1157
|
*/
|
|
1153
1158
|
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", });
|
|
1154
1159
|
/**
|
|
1155
1160
|
*/
|
|
1156
|
-
export const
|
|
1157
|
-
/**
|
|
1158
|
-
*/
|
|
1159
|
-
export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1161
|
+
export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1160
1162
|
/**
|
|
1161
|
-
*
|
|
1162
|
-
* This is because you could have a language where the same bytes have different semantics
|
|
1163
|
-
* So this avoids scripts in different languages mapping to the same hash
|
|
1164
|
-
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1163
|
+
* Used to choosed the schema for a script JSON string
|
|
1165
1164
|
*/
|
|
1166
|
-
export const
|
|
1165
|
+
export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1167
1166
|
/**
|
|
1168
1167
|
*/
|
|
1169
|
-
export const
|
|
1168
|
+
export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1170
1169
|
|
|
1171
1170
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1172
1171
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2369,7 +2368,7 @@ export class Assets {
|
|
|
2369
2368
|
* @returns {number}
|
|
2370
2369
|
*/
|
|
2371
2370
|
len() {
|
|
2372
|
-
const ret = wasm.
|
|
2371
|
+
const ret = wasm.assets_len(this.__wbg_ptr);
|
|
2373
2372
|
return ret >>> 0;
|
|
2374
2373
|
}
|
|
2375
2374
|
/**
|
|
@@ -8505,7 +8504,7 @@ export class DRep {
|
|
|
8505
8504
|
*/
|
|
8506
8505
|
static new_key_hash(key_hash) {
|
|
8507
8506
|
_assertClass(key_hash, Ed25519KeyHash);
|
|
8508
|
-
const ret = wasm.
|
|
8507
|
+
const ret = wasm.credential_from_keyhash(key_hash.__wbg_ptr);
|
|
8509
8508
|
return DRep.__wrap(ret);
|
|
8510
8509
|
}
|
|
8511
8510
|
/**
|
|
@@ -8514,7 +8513,7 @@ export class DRep {
|
|
|
8514
8513
|
*/
|
|
8515
8514
|
static new_script_hash(script_hash) {
|
|
8516
8515
|
_assertClass(script_hash, ScriptHash);
|
|
8517
|
-
const ret = wasm.
|
|
8516
|
+
const ret = wasm.credential_from_scripthash(script_hash.__wbg_ptr);
|
|
8518
8517
|
return DRep.__wrap(ret);
|
|
8519
8518
|
}
|
|
8520
8519
|
/**
|
|
@@ -9211,14 +9210,14 @@ export class DRepUpdate {
|
|
|
9211
9210
|
* @returns {Credential}
|
|
9212
9211
|
*/
|
|
9213
9212
|
voting_credential() {
|
|
9214
|
-
const ret = wasm.
|
|
9213
|
+
const ret = wasm.committeecoldresign_committee_cold_credential(this.__wbg_ptr);
|
|
9215
9214
|
return Credential.__wrap(ret);
|
|
9216
9215
|
}
|
|
9217
9216
|
/**
|
|
9218
9217
|
* @returns {Anchor | undefined}
|
|
9219
9218
|
*/
|
|
9220
9219
|
anchor() {
|
|
9221
|
-
const ret = wasm.
|
|
9220
|
+
const ret = wasm.committeecoldresign_anchor(this.__wbg_ptr);
|
|
9222
9221
|
return ret === 0 ? undefined : Anchor.__wrap(ret);
|
|
9223
9222
|
}
|
|
9224
9223
|
/**
|
|
@@ -9227,7 +9226,7 @@ export class DRepUpdate {
|
|
|
9227
9226
|
*/
|
|
9228
9227
|
static new(voting_credential) {
|
|
9229
9228
|
_assertClass(voting_credential, Credential);
|
|
9230
|
-
const ret = wasm.
|
|
9229
|
+
const ret = wasm.committeecoldresign_new(voting_credential.__wbg_ptr);
|
|
9231
9230
|
return DRepUpdate.__wrap(ret);
|
|
9232
9231
|
}
|
|
9233
9232
|
/**
|
|
@@ -9238,14 +9237,14 @@ export class DRepUpdate {
|
|
|
9238
9237
|
static new_with_anchor(voting_credential, anchor) {
|
|
9239
9238
|
_assertClass(voting_credential, Credential);
|
|
9240
9239
|
_assertClass(anchor, Anchor);
|
|
9241
|
-
const ret = wasm.
|
|
9240
|
+
const ret = wasm.committeecoldresign_new_with_anchor(voting_credential.__wbg_ptr, anchor.__wbg_ptr);
|
|
9242
9241
|
return DRepUpdate.__wrap(ret);
|
|
9243
9242
|
}
|
|
9244
9243
|
/**
|
|
9245
9244
|
* @returns {boolean}
|
|
9246
9245
|
*/
|
|
9247
9246
|
has_script_credentials() {
|
|
9248
|
-
const ret = wasm.
|
|
9247
|
+
const ret = wasm.committeecoldresign_has_script_credentials(this.__wbg_ptr);
|
|
9249
9248
|
return ret !== 0;
|
|
9250
9249
|
}
|
|
9251
9250
|
}
|
|
@@ -9620,7 +9619,7 @@ export class DataCost {
|
|
|
9620
9619
|
*/
|
|
9621
9620
|
static new_coins_per_byte(coins_per_byte) {
|
|
9622
9621
|
_assertClass(coins_per_byte, BigNum);
|
|
9623
|
-
const ret = wasm.
|
|
9622
|
+
const ret = wasm.datacost_new_coins_per_byte(coins_per_byte.__wbg_ptr);
|
|
9624
9623
|
return DataCost.__wrap(ret);
|
|
9625
9624
|
}
|
|
9626
9625
|
/**
|
|
@@ -10163,14 +10162,14 @@ export class Ed25519KeyHashes {
|
|
|
10163
10162
|
* @returns {Ed25519KeyHashes}
|
|
10164
10163
|
*/
|
|
10165
10164
|
static new() {
|
|
10166
|
-
const ret = wasm.
|
|
10165
|
+
const ret = wasm.ed25519keyhashes_new();
|
|
10167
10166
|
return Ed25519KeyHashes.__wrap(ret);
|
|
10168
10167
|
}
|
|
10169
10168
|
/**
|
|
10170
10169
|
* @returns {number}
|
|
10171
10170
|
*/
|
|
10172
10171
|
len() {
|
|
10173
|
-
const ret = wasm.
|
|
10172
|
+
const ret = wasm.ed25519keyhashes_len(this.__wbg_ptr);
|
|
10174
10173
|
return ret >>> 0;
|
|
10175
10174
|
}
|
|
10176
10175
|
/**
|
|
@@ -12417,7 +12416,7 @@ export class GenesisHashes {
|
|
|
12417
12416
|
* @returns {number}
|
|
12418
12417
|
*/
|
|
12419
12418
|
len() {
|
|
12420
|
-
const ret = wasm.
|
|
12419
|
+
const ret = wasm.genesishashes_len(this.__wbg_ptr);
|
|
12421
12420
|
return ret >>> 0;
|
|
12422
12421
|
}
|
|
12423
12422
|
/**
|
|
@@ -13223,7 +13222,7 @@ export class GovernanceActionIds {
|
|
|
13223
13222
|
* @returns {GovernanceActionIds}
|
|
13224
13223
|
*/
|
|
13225
13224
|
static new() {
|
|
13226
|
-
const ret = wasm.
|
|
13225
|
+
const ret = wasm.assetnames_new();
|
|
13227
13226
|
return GovernanceActionIds.__wrap(ret);
|
|
13228
13227
|
}
|
|
13229
13228
|
/**
|
|
@@ -15323,7 +15322,7 @@ export class LegacyDaedalusPrivateKey {
|
|
|
15323
15322
|
as_bytes() {
|
|
15324
15323
|
try {
|
|
15325
15324
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15326
|
-
wasm.
|
|
15325
|
+
wasm.bip32privatekey_as_bytes(retptr, this.__wbg_ptr);
|
|
15327
15326
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
15328
15327
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
15329
15328
|
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
@@ -15339,7 +15338,7 @@ export class LegacyDaedalusPrivateKey {
|
|
|
15339
15338
|
chaincode() {
|
|
15340
15339
|
try {
|
|
15341
15340
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15342
|
-
wasm.
|
|
15341
|
+
wasm.bip32privatekey_chaincode(retptr, this.__wbg_ptr);
|
|
15343
15342
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
15344
15343
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
15345
15344
|
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
@@ -15790,7 +15789,7 @@ export class MetadataList {
|
|
|
15790
15789
|
* @returns {number}
|
|
15791
15790
|
*/
|
|
15792
15791
|
len() {
|
|
15793
|
-
const ret = wasm.
|
|
15792
|
+
const ret = wasm.metadatalist_len(this.__wbg_ptr);
|
|
15794
15793
|
return ret >>> 0;
|
|
15795
15794
|
}
|
|
15796
15795
|
/**
|
|
@@ -16240,7 +16239,7 @@ export class Mint {
|
|
|
16240
16239
|
* @returns {number}
|
|
16241
16240
|
*/
|
|
16242
16241
|
len() {
|
|
16243
|
-
const ret = wasm.
|
|
16242
|
+
const ret = wasm.mint_len(this.__wbg_ptr);
|
|
16244
16243
|
return ret >>> 0;
|
|
16245
16244
|
}
|
|
16246
16245
|
/**
|
|
@@ -16347,7 +16346,7 @@ export class MintAssets {
|
|
|
16347
16346
|
* @returns {number}
|
|
16348
16347
|
*/
|
|
16349
16348
|
len() {
|
|
16350
|
-
const ret = wasm.
|
|
16349
|
+
const ret = wasm.assets_len(this.__wbg_ptr);
|
|
16351
16350
|
return ret >>> 0;
|
|
16352
16351
|
}
|
|
16353
16352
|
/**
|
|
@@ -17296,7 +17295,7 @@ export class MultiAsset {
|
|
|
17296
17295
|
* @returns {number}
|
|
17297
17296
|
*/
|
|
17298
17297
|
len() {
|
|
17299
|
-
const ret = wasm.
|
|
17298
|
+
const ret = wasm.assets_len(this.__wbg_ptr);
|
|
17300
17299
|
return ret >>> 0;
|
|
17301
17300
|
}
|
|
17302
17301
|
/**
|
|
@@ -17955,7 +17954,7 @@ export class NativeScripts {
|
|
|
17955
17954
|
* @returns {number}
|
|
17956
17955
|
*/
|
|
17957
17956
|
len() {
|
|
17958
|
-
const ret = wasm.
|
|
17957
|
+
const ret = wasm.nativescripts_len(this.__wbg_ptr);
|
|
17959
17958
|
return ret >>> 0;
|
|
17960
17959
|
}
|
|
17961
17960
|
/**
|
|
@@ -19944,7 +19943,7 @@ export class PlutusList {
|
|
|
19944
19943
|
* @returns {number}
|
|
19945
19944
|
*/
|
|
19946
19945
|
len() {
|
|
19947
|
-
const ret = wasm.
|
|
19946
|
+
const ret = wasm.plutuslist_len(this.__wbg_ptr);
|
|
19948
19947
|
return ret >>> 0;
|
|
19949
19948
|
}
|
|
19950
19949
|
/**
|
|
@@ -20143,14 +20142,14 @@ export class PlutusMapValues {
|
|
|
20143
20142
|
* @returns {PlutusMapValues}
|
|
20144
20143
|
*/
|
|
20145
20144
|
static new() {
|
|
20146
|
-
const ret = wasm.
|
|
20145
|
+
const ret = wasm.plutusmapvalues_new();
|
|
20147
20146
|
return PlutusMapValues.__wrap(ret);
|
|
20148
20147
|
}
|
|
20149
20148
|
/**
|
|
20150
20149
|
* @returns {number}
|
|
20151
20150
|
*/
|
|
20152
20151
|
len() {
|
|
20153
|
-
const ret = wasm.
|
|
20152
|
+
const ret = wasm.plutuslist_len(this.__wbg_ptr);
|
|
20154
20153
|
return ret >>> 0;
|
|
20155
20154
|
}
|
|
20156
20155
|
/**
|
|
@@ -20715,7 +20714,7 @@ export class PlutusScripts {
|
|
|
20715
20714
|
* @returns {number}
|
|
20716
20715
|
*/
|
|
20717
20716
|
len() {
|
|
20718
|
-
const ret = wasm.
|
|
20717
|
+
const ret = wasm.plutusscripts_len(this.__wbg_ptr);
|
|
20719
20718
|
return ret >>> 0;
|
|
20720
20719
|
}
|
|
20721
20720
|
/**
|
|
@@ -20862,14 +20861,14 @@ export class PlutusWitnesses {
|
|
|
20862
20861
|
* @returns {PlutusWitnesses}
|
|
20863
20862
|
*/
|
|
20864
20863
|
static new() {
|
|
20865
|
-
const ret = wasm.
|
|
20864
|
+
const ret = wasm.plutuswitnesses_new();
|
|
20866
20865
|
return PlutusWitnesses.__wrap(ret);
|
|
20867
20866
|
}
|
|
20868
20867
|
/**
|
|
20869
20868
|
* @returns {number}
|
|
20870
20869
|
*/
|
|
20871
20870
|
len() {
|
|
20872
|
-
const ret = wasm.
|
|
20871
|
+
const ret = wasm.plutuswitnesses_len(this.__wbg_ptr);
|
|
20873
20872
|
return ret >>> 0;
|
|
20874
20873
|
}
|
|
20875
20874
|
/**
|
|
@@ -21013,7 +21012,7 @@ export class Pointer {
|
|
|
21013
21012
|
* @returns {BigNum}
|
|
21014
21013
|
*/
|
|
21015
21014
|
cert_index_bignum() {
|
|
21016
|
-
const ret = wasm.
|
|
21015
|
+
const ret = wasm.constrplutusdata_alternative(this.__wbg_ptr);
|
|
21017
21016
|
return BigNum.__wrap(ret);
|
|
21018
21017
|
}
|
|
21019
21018
|
}
|
|
@@ -23843,7 +23842,7 @@ export class PublicKeys {
|
|
|
23843
23842
|
/**
|
|
23844
23843
|
*/
|
|
23845
23844
|
constructor() {
|
|
23846
|
-
const ret = wasm.
|
|
23845
|
+
const ret = wasm.languages_new();
|
|
23847
23846
|
this.__wbg_ptr = ret >>> 0;
|
|
23848
23847
|
return this;
|
|
23849
23848
|
}
|
|
@@ -23851,7 +23850,7 @@ export class PublicKeys {
|
|
|
23851
23850
|
* @returns {number}
|
|
23852
23851
|
*/
|
|
23853
23852
|
size() {
|
|
23854
|
-
const ret = wasm.
|
|
23853
|
+
const ret = wasm.publickeys_size(this.__wbg_ptr);
|
|
23855
23854
|
return ret >>> 0;
|
|
23856
23855
|
}
|
|
23857
23856
|
/**
|
|
@@ -24485,7 +24484,7 @@ export class Redeemers {
|
|
|
24485
24484
|
* @returns {number}
|
|
24486
24485
|
*/
|
|
24487
24486
|
len() {
|
|
24488
|
-
const ret = wasm.
|
|
24487
|
+
const ret = wasm.redeemers_len(this.__wbg_ptr);
|
|
24489
24488
|
return ret >>> 0;
|
|
24490
24489
|
}
|
|
24491
24490
|
/**
|
|
@@ -25205,7 +25204,7 @@ export class RewardAddresses {
|
|
|
25205
25204
|
* @returns {number}
|
|
25206
25205
|
*/
|
|
25207
25206
|
len() {
|
|
25208
|
-
const ret = wasm.
|
|
25207
|
+
const ret = wasm.rewardaddresses_len(this.__wbg_ptr);
|
|
25209
25208
|
return ret >>> 0;
|
|
25210
25209
|
}
|
|
25211
25210
|
/**
|
|
@@ -26091,7 +26090,7 @@ export class ScriptHashes {
|
|
|
26091
26090
|
* @returns {number}
|
|
26092
26091
|
*/
|
|
26093
26092
|
len() {
|
|
26094
|
-
const ret = wasm.
|
|
26093
|
+
const ret = wasm.genesishashes_len(this.__wbg_ptr);
|
|
26095
26094
|
return ret >>> 0;
|
|
26096
26095
|
}
|
|
26097
26096
|
/**
|
|
@@ -27521,7 +27520,7 @@ export class StakeDelegation {
|
|
|
27521
27520
|
* @returns {Credential}
|
|
27522
27521
|
*/
|
|
27523
27522
|
stake_credential() {
|
|
27524
|
-
const ret = wasm.
|
|
27523
|
+
const ret = wasm.stakedelegation_stake_credential(this.__wbg_ptr);
|
|
27525
27524
|
return Credential.__wrap(ret);
|
|
27526
27525
|
}
|
|
27527
27526
|
/**
|
|
@@ -27546,7 +27545,7 @@ export class StakeDelegation {
|
|
|
27546
27545
|
* @returns {boolean}
|
|
27547
27546
|
*/
|
|
27548
27547
|
has_script_credentials() {
|
|
27549
|
-
const ret = wasm.
|
|
27548
|
+
const ret = wasm.stakedelegation_has_script_credentials(this.__wbg_ptr);
|
|
27550
27549
|
return ret !== 0;
|
|
27551
27550
|
}
|
|
27552
27551
|
}
|
|
@@ -27936,14 +27935,14 @@ export class StakeRegistration {
|
|
|
27936
27935
|
* @returns {Credential}
|
|
27937
27936
|
*/
|
|
27938
27937
|
stake_credential() {
|
|
27939
|
-
const ret = wasm.
|
|
27938
|
+
const ret = wasm.stakederegistration_stake_credential(this.__wbg_ptr);
|
|
27940
27939
|
return Credential.__wrap(ret);
|
|
27941
27940
|
}
|
|
27942
27941
|
/**
|
|
27943
27942
|
* @returns {BigNum | undefined}
|
|
27944
27943
|
*/
|
|
27945
27944
|
coin() {
|
|
27946
|
-
const ret = wasm.
|
|
27945
|
+
const ret = wasm.stakederegistration_coin(this.__wbg_ptr);
|
|
27947
27946
|
return ret === 0 ? undefined : BigNum.__wrap(ret);
|
|
27948
27947
|
}
|
|
27949
27948
|
/**
|
|
@@ -27952,7 +27951,7 @@ export class StakeRegistration {
|
|
|
27952
27951
|
*/
|
|
27953
27952
|
static new(stake_credential) {
|
|
27954
27953
|
_assertClass(stake_credential, Credential);
|
|
27955
|
-
const ret = wasm.
|
|
27954
|
+
const ret = wasm.stakederegistration_new(stake_credential.__wbg_ptr);
|
|
27956
27955
|
return StakeRegistration.__wrap(ret);
|
|
27957
27956
|
}
|
|
27958
27957
|
/**
|
|
@@ -27963,14 +27962,14 @@ export class StakeRegistration {
|
|
|
27963
27962
|
static new_with_explicit_deposit(stake_credential, coin) {
|
|
27964
27963
|
_assertClass(stake_credential, Credential);
|
|
27965
27964
|
_assertClass(coin, BigNum);
|
|
27966
|
-
const ret = wasm.
|
|
27965
|
+
const ret = wasm.stakederegistration_new_with_explicit_refund(stake_credential.__wbg_ptr, coin.__wbg_ptr);
|
|
27967
27966
|
return StakeRegistration.__wrap(ret);
|
|
27968
27967
|
}
|
|
27969
27968
|
/**
|
|
27970
27969
|
* @returns {boolean}
|
|
27971
27970
|
*/
|
|
27972
27971
|
has_script_credentials() {
|
|
27973
|
-
const ret = wasm.
|
|
27972
|
+
const ret = wasm.stakederegistration_has_script_credentials(this.__wbg_ptr);
|
|
27974
27973
|
return ret !== 0;
|
|
27975
27974
|
}
|
|
27976
27975
|
}
|
|
@@ -28162,7 +28161,7 @@ export class StakeRegistrationAndDelegation {
|
|
|
28162
28161
|
* @returns {BigNum}
|
|
28163
28162
|
*/
|
|
28164
28163
|
coin() {
|
|
28165
|
-
const ret = wasm.
|
|
28164
|
+
const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
|
|
28166
28165
|
return BigNum.__wrap(ret);
|
|
28167
28166
|
}
|
|
28168
28167
|
/**
|
|
@@ -28381,7 +28380,7 @@ export class StakeVoteRegistrationAndDelegation {
|
|
|
28381
28380
|
* @returns {BigNum}
|
|
28382
28381
|
*/
|
|
28383
28382
|
coin() {
|
|
28384
|
-
const ret = wasm.
|
|
28383
|
+
const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
|
|
28385
28384
|
return BigNum.__wrap(ret);
|
|
28386
28385
|
}
|
|
28387
28386
|
/**
|
|
@@ -28445,7 +28444,7 @@ export class Strings {
|
|
|
28445
28444
|
* @returns {number}
|
|
28446
28445
|
*/
|
|
28447
28446
|
len() {
|
|
28448
|
-
const ret = wasm.
|
|
28447
|
+
const ret = wasm.strings_len(this.__wbg_ptr);
|
|
28449
28448
|
return ret >>> 0;
|
|
28450
28449
|
}
|
|
28451
28450
|
/**
|
|
@@ -28689,7 +28688,7 @@ export class TimelockExpiry {
|
|
|
28689
28688
|
*/
|
|
28690
28689
|
static new_timelockexpiry(slot) {
|
|
28691
28690
|
_assertClass(slot, BigNum);
|
|
28692
|
-
const ret = wasm.
|
|
28691
|
+
const ret = wasm.drepregistration_coin(slot.__wbg_ptr);
|
|
28693
28692
|
return TimelockExpiry.__wrap(ret);
|
|
28694
28693
|
}
|
|
28695
28694
|
}
|
|
@@ -28909,7 +28908,7 @@ export class TimelockStart {
|
|
|
28909
28908
|
*/
|
|
28910
28909
|
static new_timelockstart(slot) {
|
|
28911
28910
|
_assertClass(slot, BigNum);
|
|
28912
|
-
const ret = wasm.
|
|
28911
|
+
const ret = wasm.drepregistration_coin(slot.__wbg_ptr);
|
|
28913
28912
|
return TimelockStart.__wrap(ret);
|
|
28914
28913
|
}
|
|
28915
28914
|
}
|
|
@@ -29166,7 +29165,7 @@ export class TransactionBatch {
|
|
|
29166
29165
|
* @returns {number}
|
|
29167
29166
|
*/
|
|
29168
29167
|
len() {
|
|
29169
|
-
const ret = wasm.
|
|
29168
|
+
const ret = wasm.transactionbatch_len(this.__wbg_ptr);
|
|
29170
29169
|
return ret >>> 0;
|
|
29171
29170
|
}
|
|
29172
29171
|
/**
|
|
@@ -29209,7 +29208,7 @@ export class TransactionBatchList {
|
|
|
29209
29208
|
* @returns {number}
|
|
29210
29209
|
*/
|
|
29211
29210
|
len() {
|
|
29212
|
-
const ret = wasm.
|
|
29211
|
+
const ret = wasm.transactionbatchlist_len(this.__wbg_ptr);
|
|
29213
29212
|
return ret >>> 0;
|
|
29214
29213
|
}
|
|
29215
29214
|
/**
|
|
@@ -29402,7 +29401,7 @@ export class TransactionBodies {
|
|
|
29402
29401
|
* @returns {number}
|
|
29403
29402
|
*/
|
|
29404
29403
|
len() {
|
|
29405
|
-
const ret = wasm.
|
|
29404
|
+
const ret = wasm.transactionbodies_len(this.__wbg_ptr);
|
|
29406
29405
|
return ret >>> 0;
|
|
29407
29406
|
}
|
|
29408
29407
|
/**
|
|
@@ -31808,7 +31807,7 @@ export class TransactionInputs {
|
|
|
31808
31807
|
* @returns {number}
|
|
31809
31808
|
*/
|
|
31810
31809
|
len() {
|
|
31811
|
-
const ret = wasm.
|
|
31810
|
+
const ret = wasm.transactioninputs_len(this.__wbg_ptr);
|
|
31812
31811
|
return ret >>> 0;
|
|
31813
31812
|
}
|
|
31814
31813
|
/**
|
|
@@ -32015,7 +32014,7 @@ export class TransactionMetadatum {
|
|
|
32015
32014
|
* @returns {TransactionMetadatumKind}
|
|
32016
32015
|
*/
|
|
32017
32016
|
kind() {
|
|
32018
|
-
const ret = wasm.
|
|
32017
|
+
const ret = wasm.transactionmetadatum_kind(this.__wbg_ptr);
|
|
32019
32018
|
return ret;
|
|
32020
32019
|
}
|
|
32021
32020
|
/**
|
|
@@ -32229,14 +32228,14 @@ export class TransactionMetadatumLabels {
|
|
|
32229
32228
|
* @returns {TransactionMetadatumLabels}
|
|
32230
32229
|
*/
|
|
32231
32230
|
static new() {
|
|
32232
|
-
const ret = wasm.
|
|
32231
|
+
const ret = wasm.plutusmapvalues_new();
|
|
32233
32232
|
return TransactionMetadatumLabels.__wrap(ret);
|
|
32234
32233
|
}
|
|
32235
32234
|
/**
|
|
32236
32235
|
* @returns {number}
|
|
32237
32236
|
*/
|
|
32238
32237
|
len() {
|
|
32239
|
-
const ret = wasm.
|
|
32238
|
+
const ret = wasm.transactionmetadatumlabels_len(this.__wbg_ptr);
|
|
32240
32239
|
return ret >>> 0;
|
|
32241
32240
|
}
|
|
32242
32241
|
/**
|
|
@@ -32893,7 +32892,7 @@ export class TransactionOutputs {
|
|
|
32893
32892
|
* @returns {number}
|
|
32894
32893
|
*/
|
|
32895
32894
|
len() {
|
|
32896
|
-
const ret = wasm.
|
|
32895
|
+
const ret = wasm.transactionoutputs_len(this.__wbg_ptr);
|
|
32897
32896
|
return ret >>> 0;
|
|
32898
32897
|
}
|
|
32899
32898
|
/**
|
|
@@ -33674,7 +33673,7 @@ export class TransactionWitnessSets {
|
|
|
33674
33673
|
* @returns {number}
|
|
33675
33674
|
*/
|
|
33676
33675
|
len() {
|
|
33677
|
-
const ret = wasm.
|
|
33676
|
+
const ret = wasm.transactionwitnesssets_len(this.__wbg_ptr);
|
|
33678
33677
|
return ret >>> 0;
|
|
33679
33678
|
}
|
|
33680
33679
|
/**
|
|
@@ -33822,7 +33821,7 @@ export class TreasuryWithdrawals {
|
|
|
33822
33821
|
* @returns {number}
|
|
33823
33822
|
*/
|
|
33824
33823
|
len() {
|
|
33825
|
-
const ret = wasm.
|
|
33824
|
+
const ret = wasm.treasurywithdrawals_len(this.__wbg_ptr);
|
|
33826
33825
|
return ret >>> 0;
|
|
33827
33826
|
}
|
|
33828
33827
|
}
|
|
@@ -36348,7 +36347,7 @@ export class Vkeys {
|
|
|
36348
36347
|
* @returns {number}
|
|
36349
36348
|
*/
|
|
36350
36349
|
len() {
|
|
36351
|
-
const ret = wasm.
|
|
36350
|
+
const ret = wasm.vkeys_len(this.__wbg_ptr);
|
|
36352
36351
|
return ret >>> 0;
|
|
36353
36352
|
}
|
|
36354
36353
|
/**
|
|
@@ -37144,7 +37143,7 @@ export class VoteRegistrationAndDelegation {
|
|
|
37144
37143
|
* @returns {Credential}
|
|
37145
37144
|
*/
|
|
37146
37145
|
stake_credential() {
|
|
37147
|
-
const ret = wasm.
|
|
37146
|
+
const ret = wasm.voteregistrationanddelegation_stake_credential(this.__wbg_ptr);
|
|
37148
37147
|
return Credential.__wrap(ret);
|
|
37149
37148
|
}
|
|
37150
37149
|
/**
|
|
@@ -37158,7 +37157,7 @@ export class VoteRegistrationAndDelegation {
|
|
|
37158
37157
|
* @returns {BigNum}
|
|
37159
37158
|
*/
|
|
37160
37159
|
coin() {
|
|
37161
|
-
const ret = wasm.
|
|
37160
|
+
const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
|
|
37162
37161
|
return BigNum.__wrap(ret);
|
|
37163
37162
|
}
|
|
37164
37163
|
/**
|
|
@@ -37178,7 +37177,7 @@ export class VoteRegistrationAndDelegation {
|
|
|
37178
37177
|
* @returns {boolean}
|
|
37179
37178
|
*/
|
|
37180
37179
|
has_script_credentials() {
|
|
37181
|
-
const ret = wasm.
|
|
37180
|
+
const ret = wasm.voteregistrationanddelegation_has_script_credentials(this.__wbg_ptr);
|
|
37182
37181
|
return ret !== 0;
|
|
37183
37182
|
}
|
|
37184
37183
|
}
|
|
@@ -37519,7 +37518,7 @@ export class Voters {
|
|
|
37519
37518
|
* @returns {Voters}
|
|
37520
37519
|
*/
|
|
37521
37520
|
static new() {
|
|
37522
|
-
const ret = wasm.
|
|
37521
|
+
const ret = wasm.vkeys_new();
|
|
37523
37522
|
return Voters.__wrap(ret);
|
|
37524
37523
|
}
|
|
37525
37524
|
/**
|
|
@@ -37541,7 +37540,7 @@ export class Voters {
|
|
|
37541
37540
|
* @returns {number}
|
|
37542
37541
|
*/
|
|
37543
37542
|
len() {
|
|
37544
|
-
const ret = wasm.
|
|
37543
|
+
const ret = wasm.voters_len(this.__wbg_ptr);
|
|
37545
37544
|
return ret >>> 0;
|
|
37546
37545
|
}
|
|
37547
37546
|
}
|
|
@@ -37576,7 +37575,7 @@ export class VotingBuilder {
|
|
|
37576
37575
|
* @returns {VotingBuilder}
|
|
37577
37576
|
*/
|
|
37578
37577
|
static new() {
|
|
37579
|
-
const ret = wasm.
|
|
37578
|
+
const ret = wasm.costmdls_new();
|
|
37580
37579
|
return VotingBuilder.__wrap(ret);
|
|
37581
37580
|
}
|
|
37582
37581
|
/**
|
|
@@ -37881,7 +37880,7 @@ export class VotingProcedure {
|
|
|
37881
37880
|
* @returns {Anchor | undefined}
|
|
37882
37881
|
*/
|
|
37883
37882
|
anchor() {
|
|
37884
|
-
const ret = wasm.
|
|
37883
|
+
const ret = wasm.votingprocedure_anchor(this.__wbg_ptr);
|
|
37885
37884
|
return ret === 0 ? undefined : Anchor.__wrap(ret);
|
|
37886
37885
|
}
|
|
37887
37886
|
}
|
|
@@ -38059,7 +38058,7 @@ export class VotingProcedures {
|
|
|
38059
38058
|
* @returns {VotingProcedures}
|
|
38060
38059
|
*/
|
|
38061
38060
|
static new() {
|
|
38062
|
-
const ret = wasm.
|
|
38061
|
+
const ret = wasm.votingprocedures_new();
|
|
38063
38062
|
return VotingProcedures.__wrap(ret);
|
|
38064
38063
|
}
|
|
38065
38064
|
/**
|
|
@@ -39139,14 +39138,14 @@ export function __wbg_msCrypto_eb05e62b530a1508(arg0) {
|
|
|
39139
39138
|
return addHeapObject(ret);
|
|
39140
39139
|
};
|
|
39141
39140
|
|
|
39142
|
-
export function __wbg_getRandomValues_3aa56aa6edec874c() { return handleError(function (arg0, arg1) {
|
|
39143
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
39144
|
-
}, arguments) };
|
|
39145
|
-
|
|
39146
39141
|
export function __wbg_randomFillSync_5c9c955aa56b6049() { return handleError(function (arg0, arg1) {
|
|
39147
39142
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
39148
39143
|
}, arguments) };
|
|
39149
39144
|
|
|
39145
|
+
export function __wbg_getRandomValues_3aa56aa6edec874c() { return handleError(function (arg0, arg1) {
|
|
39146
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
39147
|
+
}, arguments) };
|
|
39148
|
+
|
|
39150
39149
|
export function __wbg_get_bd8e338fbd5f5cc8(arg0, arg1) {
|
|
39151
39150
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
39152
39151
|
return addHeapObject(ret);
|