@cardananium/cquisitor-lib 0.1.0-beta.12 → 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 +287 -288
- package/browser/cquisitor_lib_bg.wasm +0 -0
- package/browser/cquisitor_lib_bg.wasm.d.ts +1648 -1648
- package/node/cquisitor_lib.js +301 -302
- package/node/cquisitor_lib_bg.wasm +0 -0
- package/node/cquisitor_lib_bg.wasm.d.ts +1648 -1648
- package/package.json +1 -1
package/node/cquisitor_lib.js
CHANGED
|
@@ -430,6 +430,13 @@ module.exports.decode_plutus_program_pretty_uplc = function(hex) {
|
|
|
430
430
|
}
|
|
431
431
|
};
|
|
432
432
|
|
|
433
|
+
function _assertClass(instance, klass) {
|
|
434
|
+
if (!(instance instanceof klass)) {
|
|
435
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
436
|
+
}
|
|
437
|
+
return instance.ptr;
|
|
438
|
+
}
|
|
439
|
+
|
|
433
440
|
function getArrayU8FromWasm0(ptr, len) {
|
|
434
441
|
ptr = ptr >>> 0;
|
|
435
442
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -442,17 +449,181 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
442
449
|
return ptr;
|
|
443
450
|
}
|
|
444
451
|
|
|
445
|
-
function _assertClass(instance, klass) {
|
|
446
|
-
if (!(instance instanceof klass)) {
|
|
447
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
448
|
-
}
|
|
449
|
-
return instance.ptr;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
452
|
function getArrayU32FromWasm0(ptr, len) {
|
|
453
453
|
ptr = ptr >>> 0;
|
|
454
454
|
return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
|
|
455
455
|
}
|
|
456
|
+
/**
|
|
457
|
+
* @param {Transaction} tx
|
|
458
|
+
* @param {LinearFee} linear_fee
|
|
459
|
+
* @returns {BigNum}
|
|
460
|
+
*/
|
|
461
|
+
module.exports.min_fee = function(tx, linear_fee) {
|
|
462
|
+
try {
|
|
463
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
464
|
+
_assertClass(tx, Transaction);
|
|
465
|
+
_assertClass(linear_fee, LinearFee);
|
|
466
|
+
wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__wbg_ptr);
|
|
467
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
468
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
469
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
470
|
+
if (r2) {
|
|
471
|
+
throw takeObject(r1);
|
|
472
|
+
}
|
|
473
|
+
return BigNum.__wrap(r0);
|
|
474
|
+
} finally {
|
|
475
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
476
|
+
}
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* @param {ExUnits} ex_units
|
|
481
|
+
* @param {ExUnitPrices} ex_unit_prices
|
|
482
|
+
* @returns {BigNum}
|
|
483
|
+
*/
|
|
484
|
+
module.exports.calculate_ex_units_ceil_cost = function(ex_units, ex_unit_prices) {
|
|
485
|
+
try {
|
|
486
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
487
|
+
_assertClass(ex_units, ExUnits);
|
|
488
|
+
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
489
|
+
wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
490
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
491
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
492
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
493
|
+
if (r2) {
|
|
494
|
+
throw takeObject(r1);
|
|
495
|
+
}
|
|
496
|
+
return BigNum.__wrap(r0);
|
|
497
|
+
} finally {
|
|
498
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
499
|
+
}
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* @param {Transaction} tx
|
|
504
|
+
* @param {ExUnitPrices} ex_unit_prices
|
|
505
|
+
* @returns {BigNum}
|
|
506
|
+
*/
|
|
507
|
+
module.exports.min_script_fee = function(tx, ex_unit_prices) {
|
|
508
|
+
try {
|
|
509
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
510
|
+
_assertClass(tx, Transaction);
|
|
511
|
+
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
512
|
+
wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
513
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
514
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
515
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
516
|
+
if (r2) {
|
|
517
|
+
throw takeObject(r1);
|
|
518
|
+
}
|
|
519
|
+
return BigNum.__wrap(r0);
|
|
520
|
+
} finally {
|
|
521
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
522
|
+
}
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* @param {number} total_ref_scripts_size
|
|
527
|
+
* @param {UnitInterval} ref_script_coins_per_byte
|
|
528
|
+
* @returns {BigNum}
|
|
529
|
+
*/
|
|
530
|
+
module.exports.min_ref_script_fee = function(total_ref_scripts_size, ref_script_coins_per_byte) {
|
|
531
|
+
try {
|
|
532
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
533
|
+
_assertClass(ref_script_coins_per_byte, UnitInterval);
|
|
534
|
+
wasm.min_ref_script_fee(retptr, total_ref_scripts_size, ref_script_coins_per_byte.__wbg_ptr);
|
|
535
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
536
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
537
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
538
|
+
if (r2) {
|
|
539
|
+
throw takeObject(r1);
|
|
540
|
+
}
|
|
541
|
+
return BigNum.__wrap(r0);
|
|
542
|
+
} finally {
|
|
543
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
544
|
+
}
|
|
545
|
+
};
|
|
546
|
+
|
|
547
|
+
function passArray32ToWasm0(arg, malloc) {
|
|
548
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
549
|
+
getUint32Memory0().set(arg, ptr / 4);
|
|
550
|
+
WASM_VECTOR_LEN = arg.length;
|
|
551
|
+
return ptr;
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* @param {string} password
|
|
555
|
+
* @param {string} salt
|
|
556
|
+
* @param {string} nonce
|
|
557
|
+
* @param {string} data
|
|
558
|
+
* @returns {string}
|
|
559
|
+
*/
|
|
560
|
+
module.exports.encrypt_with_password = function(password, salt, nonce, data) {
|
|
561
|
+
let deferred6_0;
|
|
562
|
+
let deferred6_1;
|
|
563
|
+
try {
|
|
564
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
565
|
+
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
566
|
+
const len0 = WASM_VECTOR_LEN;
|
|
567
|
+
const ptr1 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
568
|
+
const len1 = WASM_VECTOR_LEN;
|
|
569
|
+
const ptr2 = passStringToWasm0(nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
570
|
+
const len2 = WASM_VECTOR_LEN;
|
|
571
|
+
const ptr3 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
572
|
+
const len3 = WASM_VECTOR_LEN;
|
|
573
|
+
wasm.encrypt_with_password(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
574
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
575
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
576
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
577
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
578
|
+
var ptr5 = r0;
|
|
579
|
+
var len5 = r1;
|
|
580
|
+
if (r3) {
|
|
581
|
+
ptr5 = 0; len5 = 0;
|
|
582
|
+
throw takeObject(r2);
|
|
583
|
+
}
|
|
584
|
+
deferred6_0 = ptr5;
|
|
585
|
+
deferred6_1 = len5;
|
|
586
|
+
return getStringFromWasm0(ptr5, len5);
|
|
587
|
+
} finally {
|
|
588
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
589
|
+
wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
|
|
590
|
+
}
|
|
591
|
+
};
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* @param {string} password
|
|
595
|
+
* @param {string} data
|
|
596
|
+
* @returns {string}
|
|
597
|
+
*/
|
|
598
|
+
module.exports.decrypt_with_password = function(password, data) {
|
|
599
|
+
let deferred4_0;
|
|
600
|
+
let deferred4_1;
|
|
601
|
+
try {
|
|
602
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
603
|
+
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
604
|
+
const len0 = WASM_VECTOR_LEN;
|
|
605
|
+
const ptr1 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
606
|
+
const len1 = WASM_VECTOR_LEN;
|
|
607
|
+
wasm.decrypt_with_password(retptr, ptr0, len0, ptr1, len1);
|
|
608
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
609
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
610
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
611
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
612
|
+
var ptr3 = r0;
|
|
613
|
+
var len3 = r1;
|
|
614
|
+
if (r3) {
|
|
615
|
+
ptr3 = 0; len3 = 0;
|
|
616
|
+
throw takeObject(r2);
|
|
617
|
+
}
|
|
618
|
+
deferred4_0 = ptr3;
|
|
619
|
+
deferred4_1 = len3;
|
|
620
|
+
return getStringFromWasm0(ptr3, len3);
|
|
621
|
+
} finally {
|
|
622
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
623
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
624
|
+
}
|
|
625
|
+
};
|
|
626
|
+
|
|
456
627
|
/**
|
|
457
628
|
* @param {TransactionHash} tx_body_hash
|
|
458
629
|
* @param {ByronAddress} addr
|
|
@@ -668,80 +839,6 @@ module.exports.has_transaction_set_tag = function(tx_bytes) {
|
|
|
668
839
|
}
|
|
669
840
|
};
|
|
670
841
|
|
|
671
|
-
/**
|
|
672
|
-
* @param {string} password
|
|
673
|
-
* @param {string} salt
|
|
674
|
-
* @param {string} nonce
|
|
675
|
-
* @param {string} data
|
|
676
|
-
* @returns {string}
|
|
677
|
-
*/
|
|
678
|
-
module.exports.encrypt_with_password = function(password, salt, nonce, data) {
|
|
679
|
-
let deferred6_0;
|
|
680
|
-
let deferred6_1;
|
|
681
|
-
try {
|
|
682
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
683
|
-
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
684
|
-
const len0 = WASM_VECTOR_LEN;
|
|
685
|
-
const ptr1 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
686
|
-
const len1 = WASM_VECTOR_LEN;
|
|
687
|
-
const ptr2 = passStringToWasm0(nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
688
|
-
const len2 = WASM_VECTOR_LEN;
|
|
689
|
-
const ptr3 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
690
|
-
const len3 = WASM_VECTOR_LEN;
|
|
691
|
-
wasm.encrypt_with_password(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
692
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
693
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
694
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
695
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
696
|
-
var ptr5 = r0;
|
|
697
|
-
var len5 = r1;
|
|
698
|
-
if (r3) {
|
|
699
|
-
ptr5 = 0; len5 = 0;
|
|
700
|
-
throw takeObject(r2);
|
|
701
|
-
}
|
|
702
|
-
deferred6_0 = ptr5;
|
|
703
|
-
deferred6_1 = len5;
|
|
704
|
-
return getStringFromWasm0(ptr5, len5);
|
|
705
|
-
} finally {
|
|
706
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
707
|
-
wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
|
|
708
|
-
}
|
|
709
|
-
};
|
|
710
|
-
|
|
711
|
-
/**
|
|
712
|
-
* @param {string} password
|
|
713
|
-
* @param {string} data
|
|
714
|
-
* @returns {string}
|
|
715
|
-
*/
|
|
716
|
-
module.exports.decrypt_with_password = function(password, data) {
|
|
717
|
-
let deferred4_0;
|
|
718
|
-
let deferred4_1;
|
|
719
|
-
try {
|
|
720
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
721
|
-
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
722
|
-
const len0 = WASM_VECTOR_LEN;
|
|
723
|
-
const ptr1 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
724
|
-
const len1 = WASM_VECTOR_LEN;
|
|
725
|
-
wasm.decrypt_with_password(retptr, ptr0, len0, ptr1, len1);
|
|
726
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
727
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
728
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
729
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
730
|
-
var ptr3 = r0;
|
|
731
|
-
var len3 = r1;
|
|
732
|
-
if (r3) {
|
|
733
|
-
ptr3 = 0; len3 = 0;
|
|
734
|
-
throw takeObject(r2);
|
|
735
|
-
}
|
|
736
|
-
deferred4_0 = ptr3;
|
|
737
|
-
deferred4_1 = len3;
|
|
738
|
-
return getStringFromWasm0(ptr3, len3);
|
|
739
|
-
} finally {
|
|
740
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
741
|
-
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
742
|
-
}
|
|
743
|
-
};
|
|
744
|
-
|
|
745
842
|
/**
|
|
746
843
|
* @param {Address} address
|
|
747
844
|
* @param {TransactionUnspentOutputs} utxos
|
|
@@ -767,97 +864,6 @@ module.exports.create_send_all = function(address, utxos, config) {
|
|
|
767
864
|
}
|
|
768
865
|
};
|
|
769
866
|
|
|
770
|
-
/**
|
|
771
|
-
* @param {Transaction} tx
|
|
772
|
-
* @param {LinearFee} linear_fee
|
|
773
|
-
* @returns {BigNum}
|
|
774
|
-
*/
|
|
775
|
-
module.exports.min_fee = function(tx, linear_fee) {
|
|
776
|
-
try {
|
|
777
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
778
|
-
_assertClass(tx, Transaction);
|
|
779
|
-
_assertClass(linear_fee, LinearFee);
|
|
780
|
-
wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__wbg_ptr);
|
|
781
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
782
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
783
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
784
|
-
if (r2) {
|
|
785
|
-
throw takeObject(r1);
|
|
786
|
-
}
|
|
787
|
-
return BigNum.__wrap(r0);
|
|
788
|
-
} finally {
|
|
789
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
790
|
-
}
|
|
791
|
-
};
|
|
792
|
-
|
|
793
|
-
/**
|
|
794
|
-
* @param {ExUnits} ex_units
|
|
795
|
-
* @param {ExUnitPrices} ex_unit_prices
|
|
796
|
-
* @returns {BigNum}
|
|
797
|
-
*/
|
|
798
|
-
module.exports.calculate_ex_units_ceil_cost = function(ex_units, ex_unit_prices) {
|
|
799
|
-
try {
|
|
800
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
801
|
-
_assertClass(ex_units, ExUnits);
|
|
802
|
-
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
803
|
-
wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
804
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
805
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
806
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
807
|
-
if (r2) {
|
|
808
|
-
throw takeObject(r1);
|
|
809
|
-
}
|
|
810
|
-
return BigNum.__wrap(r0);
|
|
811
|
-
} finally {
|
|
812
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
813
|
-
}
|
|
814
|
-
};
|
|
815
|
-
|
|
816
|
-
/**
|
|
817
|
-
* @param {Transaction} tx
|
|
818
|
-
* @param {ExUnitPrices} ex_unit_prices
|
|
819
|
-
* @returns {BigNum}
|
|
820
|
-
*/
|
|
821
|
-
module.exports.min_script_fee = function(tx, ex_unit_prices) {
|
|
822
|
-
try {
|
|
823
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
824
|
-
_assertClass(tx, Transaction);
|
|
825
|
-
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
826
|
-
wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
827
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
828
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
829
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
830
|
-
if (r2) {
|
|
831
|
-
throw takeObject(r1);
|
|
832
|
-
}
|
|
833
|
-
return BigNum.__wrap(r0);
|
|
834
|
-
} finally {
|
|
835
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
836
|
-
}
|
|
837
|
-
};
|
|
838
|
-
|
|
839
|
-
/**
|
|
840
|
-
* @param {number} total_ref_scripts_size
|
|
841
|
-
* @param {UnitInterval} ref_script_coins_per_byte
|
|
842
|
-
* @returns {BigNum}
|
|
843
|
-
*/
|
|
844
|
-
module.exports.min_ref_script_fee = function(total_ref_scripts_size, ref_script_coins_per_byte) {
|
|
845
|
-
try {
|
|
846
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
847
|
-
_assertClass(ref_script_coins_per_byte, UnitInterval);
|
|
848
|
-
wasm.min_ref_script_fee(retptr, total_ref_scripts_size, ref_script_coins_per_byte.__wbg_ptr);
|
|
849
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
850
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
851
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
852
|
-
if (r2) {
|
|
853
|
-
throw takeObject(r1);
|
|
854
|
-
}
|
|
855
|
-
return BigNum.__wrap(r0);
|
|
856
|
-
} finally {
|
|
857
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
858
|
-
}
|
|
859
|
-
};
|
|
860
|
-
|
|
861
867
|
/**
|
|
862
868
|
* @param {string} json
|
|
863
869
|
* @param {PlutusDatumSchema} schema
|
|
@@ -1001,13 +1007,6 @@ module.exports.decode_metadatum_to_json_str = function(metadatum, schema) {
|
|
|
1001
1007
|
}
|
|
1002
1008
|
};
|
|
1003
1009
|
|
|
1004
|
-
function passArray32ToWasm0(arg, malloc) {
|
|
1005
|
-
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
1006
|
-
getUint32Memory0().set(arg, ptr / 4);
|
|
1007
|
-
WASM_VECTOR_LEN = arg.length;
|
|
1008
|
-
return ptr;
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
1010
|
function handleError(f, args) {
|
|
1012
1011
|
try {
|
|
1013
1012
|
return f.apply(this, args);
|
|
@@ -1017,68 +1016,38 @@ function handleError(f, args) {
|
|
|
1017
1016
|
}
|
|
1018
1017
|
/**
|
|
1019
1018
|
*/
|
|
1020
|
-
module.exports.BlockEra = Object.freeze({ Byron:0,"0":"Byron",Shelley:1,"1":"Shelley",Allegra:2,"2":"Allegra",Mary:3,"3":"Mary",Alonzo:4,"4":"Alonzo",Babbage:5,"5":"Babbage",Conway:6,"6":"Conway",Unknown:7,"7":"Unknown", });
|
|
1021
|
-
/**
|
|
1022
|
-
*/
|
|
1023
|
-
module.exports.RedeemerTagKind = Object.freeze({ Spend:0,"0":"Spend",Mint:1,"1":"Mint",Cert:2,"2":"Cert",Reward:3,"3":"Reward",Vote:4,"4":"Vote",VotingProposal:5,"5":"VotingProposal", });
|
|
1024
|
-
/**
|
|
1025
|
-
*/
|
|
1026
|
-
module.exports.VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
|
|
1027
|
-
/**
|
|
1028
|
-
*/
|
|
1029
|
-
module.exports.GovernanceActionKind = Object.freeze({ ParameterChangeAction:0,"0":"ParameterChangeAction",HardForkInitiationAction:1,"1":"HardForkInitiationAction",TreasuryWithdrawalsAction:2,"2":"TreasuryWithdrawalsAction",NoConfidenceAction:3,"3":"NoConfidenceAction",UpdateCommitteeAction:4,"4":"UpdateCommitteeAction",NewConstitutionAction:5,"5":"NewConstitutionAction",InfoAction:6,"6":"InfoAction", });
|
|
1030
|
-
/**
|
|
1031
|
-
*/
|
|
1032
|
-
module.exports.AddressKind = Object.freeze({ Base:0,"0":"Base",Pointer:1,"1":"Pointer",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron",Malformed:5,"5":"Malformed", });
|
|
1033
|
-
/**
|
|
1034
|
-
*/
|
|
1035
|
-
module.exports.PlutusDataKind = Object.freeze({ ConstrPlutusData:0,"0":"ConstrPlutusData",Map:1,"1":"Map",List:2,"2":"List",Integer:3,"3":"Integer",Bytes:4,"4":"Bytes", });
|
|
1036
|
-
/**
|
|
1037
|
-
*/
|
|
1038
1019
|
module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1039
1020
|
/**
|
|
1040
|
-
* Each new language uses a different namespace for hashing its script
|
|
1041
|
-
* This is because you could have a language where the same bytes have different semantics
|
|
1042
|
-
* So this avoids scripts in different languages mapping to the same hash
|
|
1043
|
-
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1044
|
-
*/
|
|
1045
|
-
module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1046
|
-
/**
|
|
1047
1021
|
*/
|
|
1048
|
-
module.exports.
|
|
1049
|
-
/**
|
|
1050
|
-
*/
|
|
1051
|
-
module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1052
|
-
/**
|
|
1053
|
-
*/
|
|
1054
|
-
module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1022
|
+
module.exports.PlutusDataKind = Object.freeze({ ConstrPlutusData:0,"0":"ConstrPlutusData",Map:1,"1":"Map",List:2,"2":"List",Integer:3,"3":"Integer",Bytes:4,"4":"Bytes", });
|
|
1055
1023
|
/**
|
|
1056
1024
|
*/
|
|
1057
|
-
module.exports.
|
|
1025
|
+
module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
|
|
1058
1026
|
/**
|
|
1027
|
+
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1059
1028
|
*/
|
|
1060
|
-
|
|
1029
|
+
LargestFirst:0,"0":"LargestFirst",
|
|
1061
1030
|
/**
|
|
1031
|
+
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1062
1032
|
*/
|
|
1063
|
-
|
|
1033
|
+
RandomImprove:1,"1":"RandomImprove",
|
|
1064
1034
|
/**
|
|
1035
|
+
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1065
1036
|
*/
|
|
1066
|
-
|
|
1037
|
+
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
1067
1038
|
/**
|
|
1039
|
+
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1068
1040
|
*/
|
|
1069
|
-
|
|
1041
|
+
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1070
1042
|
/**
|
|
1071
1043
|
*/
|
|
1072
|
-
module.exports.
|
|
1044
|
+
module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1073
1045
|
/**
|
|
1074
1046
|
*/
|
|
1075
1047
|
module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1076
1048
|
/**
|
|
1077
1049
|
*/
|
|
1078
|
-
module.exports.
|
|
1079
|
-
/**
|
|
1080
|
-
*/
|
|
1081
|
-
module.exports.NativeScriptKind = Object.freeze({ ScriptPubkey:0,"0":"ScriptPubkey",ScriptAll:1,"1":"ScriptAll",ScriptAny:2,"2":"ScriptAny",ScriptNOfK:3,"3":"ScriptNOfK",TimelockStart:4,"4":"TimelockStart",TimelockExpiry:5,"5":"TimelockExpiry", });
|
|
1050
|
+
module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1082
1051
|
/**
|
|
1083
1052
|
* JSON <-> PlutusData conversion schemas.
|
|
1084
1053
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
@@ -1132,36 +1101,66 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
1132
1101
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1133
1102
|
/**
|
|
1134
1103
|
*/
|
|
1135
|
-
module.exports.
|
|
1104
|
+
module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1136
1105
|
/**
|
|
1106
|
+
* Used to choosed the schema for a script JSON string
|
|
1137
1107
|
*/
|
|
1138
|
-
module.exports.
|
|
1108
|
+
module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1139
1109
|
/**
|
|
1140
1110
|
*/
|
|
1141
|
-
module.exports.
|
|
1111
|
+
module.exports.GovernanceActionKind = Object.freeze({ ParameterChangeAction:0,"0":"ParameterChangeAction",HardForkInitiationAction:1,"1":"HardForkInitiationAction",TreasuryWithdrawalsAction:2,"2":"TreasuryWithdrawalsAction",NoConfidenceAction:3,"3":"NoConfidenceAction",UpdateCommitteeAction:4,"4":"UpdateCommitteeAction",NewConstitutionAction:5,"5":"NewConstitutionAction",InfoAction:6,"6":"InfoAction", });
|
|
1142
1112
|
/**
|
|
1143
|
-
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1144
1113
|
*/
|
|
1145
|
-
|
|
1114
|
+
module.exports.RedeemerTagKind = Object.freeze({ Spend:0,"0":"Spend",Mint:1,"1":"Mint",Cert:2,"2":"Cert",Reward:3,"3":"Reward",Vote:4,"4":"Vote",VotingProposal:5,"5":"VotingProposal", });
|
|
1146
1115
|
/**
|
|
1147
|
-
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1148
1116
|
*/
|
|
1149
|
-
|
|
1117
|
+
module.exports.AddressKind = Object.freeze({ Base:0,"0":"Base",Pointer:1,"1":"Pointer",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron",Malformed:5,"5":"Malformed", });
|
|
1150
1118
|
/**
|
|
1151
|
-
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1152
1119
|
*/
|
|
1153
|
-
|
|
1120
|
+
module.exports.VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
|
|
1154
1121
|
/**
|
|
1155
|
-
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1156
1122
|
*/
|
|
1157
|
-
|
|
1123
|
+
module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1158
1124
|
/**
|
|
1159
1125
|
*/
|
|
1160
|
-
module.exports.
|
|
1126
|
+
module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1161
1127
|
/**
|
|
1162
|
-
*
|
|
1128
|
+
* Each new language uses a different namespace for hashing its script
|
|
1129
|
+
* This is because you could have a language where the same bytes have different semantics
|
|
1130
|
+
* So this avoids scripts in different languages mapping to the same hash
|
|
1131
|
+
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1163
1132
|
*/
|
|
1164
|
-
module.exports.
|
|
1133
|
+
module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1134
|
+
/**
|
|
1135
|
+
*/
|
|
1136
|
+
module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1137
|
+
/**
|
|
1138
|
+
*/
|
|
1139
|
+
module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1140
|
+
/**
|
|
1141
|
+
*/
|
|
1142
|
+
module.exports.BlockEra = Object.freeze({ Byron:0,"0":"Byron",Shelley:1,"1":"Shelley",Allegra:2,"2":"Allegra",Mary:3,"3":"Mary",Alonzo:4,"4":"Alonzo",Babbage:5,"5":"Babbage",Conway:6,"6":"Conway",Unknown:7,"7":"Unknown", });
|
|
1143
|
+
/**
|
|
1144
|
+
*/
|
|
1145
|
+
module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1146
|
+
/**
|
|
1147
|
+
*/
|
|
1148
|
+
module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1149
|
+
/**
|
|
1150
|
+
*/
|
|
1151
|
+
module.exports.TransactionMetadatumKind = Object.freeze({ MetadataMap:0,"0":"MetadataMap",MetadataList:1,"1":"MetadataList",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
|
|
1152
|
+
/**
|
|
1153
|
+
*/
|
|
1154
|
+
module.exports.NativeScriptKind = Object.freeze({ ScriptPubkey:0,"0":"ScriptPubkey",ScriptAll:1,"1":"ScriptAll",ScriptAny:2,"2":"ScriptAny",ScriptNOfK:3,"3":"ScriptNOfK",TimelockStart:4,"4":"TimelockStart",TimelockExpiry:5,"5":"TimelockExpiry", });
|
|
1155
|
+
/**
|
|
1156
|
+
*/
|
|
1157
|
+
module.exports.CertificateKind = Object.freeze({ StakeRegistration:0,"0":"StakeRegistration",StakeDeregistration:1,"1":"StakeDeregistration",StakeDelegation:2,"2":"StakeDelegation",PoolRegistration:3,"3":"PoolRegistration",PoolRetirement:4,"4":"PoolRetirement",GenesisKeyDelegation:5,"5":"GenesisKeyDelegation",MoveInstantaneousRewardsCert:6,"6":"MoveInstantaneousRewardsCert",CommitteeHotAuth:7,"7":"CommitteeHotAuth",CommitteeColdResign:8,"8":"CommitteeColdResign",DRepDeregistration:9,"9":"DRepDeregistration",DRepRegistration:10,"10":"DRepRegistration",DRepUpdate:11,"11":"DRepUpdate",StakeAndVoteDelegation:12,"12":"StakeAndVoteDelegation",StakeRegistrationAndDelegation:13,"13":"StakeRegistrationAndDelegation",StakeVoteRegistrationAndDelegation:14,"14":"StakeVoteRegistrationAndDelegation",VoteDelegation:15,"15":"VoteDelegation",VoteRegistrationAndDelegation:16,"16":"VoteRegistrationAndDelegation", });
|
|
1158
|
+
/**
|
|
1159
|
+
*/
|
|
1160
|
+
module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1161
|
+
/**
|
|
1162
|
+
*/
|
|
1163
|
+
module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1165
1164
|
|
|
1166
1165
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1167
1166
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2369,7 +2368,7 @@ 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
|
/**
|
|
@@ -8534,7 +8533,7 @@ class DRep {
|
|
|
8534
8533
|
*/
|
|
8535
8534
|
static new_key_hash(key_hash) {
|
|
8536
8535
|
_assertClass(key_hash, Ed25519KeyHash);
|
|
8537
|
-
const ret = wasm.
|
|
8536
|
+
const ret = wasm.credential_from_keyhash(key_hash.__wbg_ptr);
|
|
8538
8537
|
return DRep.__wrap(ret);
|
|
8539
8538
|
}
|
|
8540
8539
|
/**
|
|
@@ -8543,7 +8542,7 @@ class DRep {
|
|
|
8543
8542
|
*/
|
|
8544
8543
|
static new_script_hash(script_hash) {
|
|
8545
8544
|
_assertClass(script_hash, ScriptHash);
|
|
8546
|
-
const ret = wasm.
|
|
8545
|
+
const ret = wasm.credential_from_scripthash(script_hash.__wbg_ptr);
|
|
8547
8546
|
return DRep.__wrap(ret);
|
|
8548
8547
|
}
|
|
8549
8548
|
/**
|
|
@@ -9243,14 +9242,14 @@ class DRepUpdate {
|
|
|
9243
9242
|
* @returns {Credential}
|
|
9244
9243
|
*/
|
|
9245
9244
|
voting_credential() {
|
|
9246
|
-
const ret = wasm.
|
|
9245
|
+
const ret = wasm.committeecoldresign_committee_cold_credential(this.__wbg_ptr);
|
|
9247
9246
|
return Credential.__wrap(ret);
|
|
9248
9247
|
}
|
|
9249
9248
|
/**
|
|
9250
9249
|
* @returns {Anchor | undefined}
|
|
9251
9250
|
*/
|
|
9252
9251
|
anchor() {
|
|
9253
|
-
const ret = wasm.
|
|
9252
|
+
const ret = wasm.committeecoldresign_anchor(this.__wbg_ptr);
|
|
9254
9253
|
return ret === 0 ? undefined : Anchor.__wrap(ret);
|
|
9255
9254
|
}
|
|
9256
9255
|
/**
|
|
@@ -9259,7 +9258,7 @@ class DRepUpdate {
|
|
|
9259
9258
|
*/
|
|
9260
9259
|
static new(voting_credential) {
|
|
9261
9260
|
_assertClass(voting_credential, Credential);
|
|
9262
|
-
const ret = wasm.
|
|
9261
|
+
const ret = wasm.committeecoldresign_new(voting_credential.__wbg_ptr);
|
|
9263
9262
|
return DRepUpdate.__wrap(ret);
|
|
9264
9263
|
}
|
|
9265
9264
|
/**
|
|
@@ -9270,14 +9269,14 @@ class DRepUpdate {
|
|
|
9270
9269
|
static new_with_anchor(voting_credential, anchor) {
|
|
9271
9270
|
_assertClass(voting_credential, Credential);
|
|
9272
9271
|
_assertClass(anchor, Anchor);
|
|
9273
|
-
const ret = wasm.
|
|
9272
|
+
const ret = wasm.committeecoldresign_new_with_anchor(voting_credential.__wbg_ptr, anchor.__wbg_ptr);
|
|
9274
9273
|
return DRepUpdate.__wrap(ret);
|
|
9275
9274
|
}
|
|
9276
9275
|
/**
|
|
9277
9276
|
* @returns {boolean}
|
|
9278
9277
|
*/
|
|
9279
9278
|
has_script_credentials() {
|
|
9280
|
-
const ret = wasm.
|
|
9279
|
+
const ret = wasm.committeecoldresign_has_script_credentials(this.__wbg_ptr);
|
|
9281
9280
|
return ret !== 0;
|
|
9282
9281
|
}
|
|
9283
9282
|
}
|
|
@@ -9654,7 +9653,7 @@ class DataCost {
|
|
|
9654
9653
|
*/
|
|
9655
9654
|
static new_coins_per_byte(coins_per_byte) {
|
|
9656
9655
|
_assertClass(coins_per_byte, BigNum);
|
|
9657
|
-
const ret = wasm.
|
|
9656
|
+
const ret = wasm.datacost_new_coins_per_byte(coins_per_byte.__wbg_ptr);
|
|
9658
9657
|
return DataCost.__wrap(ret);
|
|
9659
9658
|
}
|
|
9660
9659
|
/**
|
|
@@ -10201,14 +10200,14 @@ class Ed25519KeyHashes {
|
|
|
10201
10200
|
* @returns {Ed25519KeyHashes}
|
|
10202
10201
|
*/
|
|
10203
10202
|
static new() {
|
|
10204
|
-
const ret = wasm.
|
|
10203
|
+
const ret = wasm.ed25519keyhashes_new();
|
|
10205
10204
|
return Ed25519KeyHashes.__wrap(ret);
|
|
10206
10205
|
}
|
|
10207
10206
|
/**
|
|
10208
10207
|
* @returns {number}
|
|
10209
10208
|
*/
|
|
10210
10209
|
len() {
|
|
10211
|
-
const ret = wasm.
|
|
10210
|
+
const ret = wasm.ed25519keyhashes_len(this.__wbg_ptr);
|
|
10212
10211
|
return ret >>> 0;
|
|
10213
10212
|
}
|
|
10214
10213
|
/**
|
|
@@ -12469,7 +12468,7 @@ class GenesisHashes {
|
|
|
12469
12468
|
* @returns {number}
|
|
12470
12469
|
*/
|
|
12471
12470
|
len() {
|
|
12472
|
-
const ret = wasm.
|
|
12471
|
+
const ret = wasm.genesishashes_len(this.__wbg_ptr);
|
|
12473
12472
|
return ret >>> 0;
|
|
12474
12473
|
}
|
|
12475
12474
|
/**
|
|
@@ -13279,7 +13278,7 @@ class GovernanceActionIds {
|
|
|
13279
13278
|
* @returns {GovernanceActionIds}
|
|
13280
13279
|
*/
|
|
13281
13280
|
static new() {
|
|
13282
|
-
const ret = wasm.
|
|
13281
|
+
const ret = wasm.assetnames_new();
|
|
13283
13282
|
return GovernanceActionIds.__wrap(ret);
|
|
13284
13283
|
}
|
|
13285
13284
|
/**
|
|
@@ -15391,7 +15390,7 @@ class LegacyDaedalusPrivateKey {
|
|
|
15391
15390
|
as_bytes() {
|
|
15392
15391
|
try {
|
|
15393
15392
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15394
|
-
wasm.
|
|
15393
|
+
wasm.bip32privatekey_as_bytes(retptr, this.__wbg_ptr);
|
|
15395
15394
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
15396
15395
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
15397
15396
|
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
@@ -15407,7 +15406,7 @@ class LegacyDaedalusPrivateKey {
|
|
|
15407
15406
|
chaincode() {
|
|
15408
15407
|
try {
|
|
15409
15408
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15410
|
-
wasm.
|
|
15409
|
+
wasm.bip32privatekey_chaincode(retptr, this.__wbg_ptr);
|
|
15411
15410
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
15412
15411
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
15413
15412
|
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
@@ -15862,7 +15861,7 @@ class MetadataList {
|
|
|
15862
15861
|
* @returns {number}
|
|
15863
15862
|
*/
|
|
15864
15863
|
len() {
|
|
15865
|
-
const ret = wasm.
|
|
15864
|
+
const ret = wasm.metadatalist_len(this.__wbg_ptr);
|
|
15866
15865
|
return ret >>> 0;
|
|
15867
15866
|
}
|
|
15868
15867
|
/**
|
|
@@ -16314,7 +16313,7 @@ class Mint {
|
|
|
16314
16313
|
* @returns {number}
|
|
16315
16314
|
*/
|
|
16316
16315
|
len() {
|
|
16317
|
-
const ret = wasm.
|
|
16316
|
+
const ret = wasm.mint_len(this.__wbg_ptr);
|
|
16318
16317
|
return ret >>> 0;
|
|
16319
16318
|
}
|
|
16320
16319
|
/**
|
|
@@ -16422,7 +16421,7 @@ class MintAssets {
|
|
|
16422
16421
|
* @returns {number}
|
|
16423
16422
|
*/
|
|
16424
16423
|
len() {
|
|
16425
|
-
const ret = wasm.
|
|
16424
|
+
const ret = wasm.assets_len(this.__wbg_ptr);
|
|
16426
16425
|
return ret >>> 0;
|
|
16427
16426
|
}
|
|
16428
16427
|
/**
|
|
@@ -17377,7 +17376,7 @@ class MultiAsset {
|
|
|
17377
17376
|
* @returns {number}
|
|
17378
17377
|
*/
|
|
17379
17378
|
len() {
|
|
17380
|
-
const ret = wasm.
|
|
17379
|
+
const ret = wasm.assets_len(this.__wbg_ptr);
|
|
17381
17380
|
return ret >>> 0;
|
|
17382
17381
|
}
|
|
17383
17382
|
/**
|
|
@@ -18040,7 +18039,7 @@ class NativeScripts {
|
|
|
18040
18039
|
* @returns {number}
|
|
18041
18040
|
*/
|
|
18042
18041
|
len() {
|
|
18043
|
-
const ret = wasm.
|
|
18042
|
+
const ret = wasm.nativescripts_len(this.__wbg_ptr);
|
|
18044
18043
|
return ret >>> 0;
|
|
18045
18044
|
}
|
|
18046
18045
|
/**
|
|
@@ -20039,7 +20038,7 @@ class PlutusList {
|
|
|
20039
20038
|
* @returns {number}
|
|
20040
20039
|
*/
|
|
20041
20040
|
len() {
|
|
20042
|
-
const ret = wasm.
|
|
20041
|
+
const ret = wasm.plutuslist_len(this.__wbg_ptr);
|
|
20043
20042
|
return ret >>> 0;
|
|
20044
20043
|
}
|
|
20045
20044
|
/**
|
|
@@ -20240,14 +20239,14 @@ class PlutusMapValues {
|
|
|
20240
20239
|
* @returns {PlutusMapValues}
|
|
20241
20240
|
*/
|
|
20242
20241
|
static new() {
|
|
20243
|
-
const ret = wasm.
|
|
20242
|
+
const ret = wasm.plutusmapvalues_new();
|
|
20244
20243
|
return PlutusMapValues.__wrap(ret);
|
|
20245
20244
|
}
|
|
20246
20245
|
/**
|
|
20247
20246
|
* @returns {number}
|
|
20248
20247
|
*/
|
|
20249
20248
|
len() {
|
|
20250
|
-
const ret = wasm.
|
|
20249
|
+
const ret = wasm.plutuslist_len(this.__wbg_ptr);
|
|
20251
20250
|
return ret >>> 0;
|
|
20252
20251
|
}
|
|
20253
20252
|
/**
|
|
@@ -20815,7 +20814,7 @@ class PlutusScripts {
|
|
|
20815
20814
|
* @returns {number}
|
|
20816
20815
|
*/
|
|
20817
20816
|
len() {
|
|
20818
|
-
const ret = wasm.
|
|
20817
|
+
const ret = wasm.plutusscripts_len(this.__wbg_ptr);
|
|
20819
20818
|
return ret >>> 0;
|
|
20820
20819
|
}
|
|
20821
20820
|
/**
|
|
@@ -20964,14 +20963,14 @@ class PlutusWitnesses {
|
|
|
20964
20963
|
* @returns {PlutusWitnesses}
|
|
20965
20964
|
*/
|
|
20966
20965
|
static new() {
|
|
20967
|
-
const ret = wasm.
|
|
20966
|
+
const ret = wasm.plutuswitnesses_new();
|
|
20968
20967
|
return PlutusWitnesses.__wrap(ret);
|
|
20969
20968
|
}
|
|
20970
20969
|
/**
|
|
20971
20970
|
* @returns {number}
|
|
20972
20971
|
*/
|
|
20973
20972
|
len() {
|
|
20974
|
-
const ret = wasm.
|
|
20973
|
+
const ret = wasm.plutuswitnesses_len(this.__wbg_ptr);
|
|
20975
20974
|
return ret >>> 0;
|
|
20976
20975
|
}
|
|
20977
20976
|
/**
|
|
@@ -21116,7 +21115,7 @@ class Pointer {
|
|
|
21116
21115
|
* @returns {BigNum}
|
|
21117
21116
|
*/
|
|
21118
21117
|
cert_index_bignum() {
|
|
21119
|
-
const ret = wasm.
|
|
21118
|
+
const ret = wasm.constrplutusdata_alternative(this.__wbg_ptr);
|
|
21120
21119
|
return BigNum.__wrap(ret);
|
|
21121
21120
|
}
|
|
21122
21121
|
}
|
|
@@ -23959,7 +23958,7 @@ class PublicKeys {
|
|
|
23959
23958
|
/**
|
|
23960
23959
|
*/
|
|
23961
23960
|
constructor() {
|
|
23962
|
-
const ret = wasm.
|
|
23961
|
+
const ret = wasm.languages_new();
|
|
23963
23962
|
this.__wbg_ptr = ret >>> 0;
|
|
23964
23963
|
return this;
|
|
23965
23964
|
}
|
|
@@ -23967,7 +23966,7 @@ class PublicKeys {
|
|
|
23967
23966
|
* @returns {number}
|
|
23968
23967
|
*/
|
|
23969
23968
|
size() {
|
|
23970
|
-
const ret = wasm.
|
|
23969
|
+
const ret = wasm.publickeys_size(this.__wbg_ptr);
|
|
23971
23970
|
return ret >>> 0;
|
|
23972
23971
|
}
|
|
23973
23972
|
/**
|
|
@@ -24604,7 +24603,7 @@ class Redeemers {
|
|
|
24604
24603
|
* @returns {number}
|
|
24605
24604
|
*/
|
|
24606
24605
|
len() {
|
|
24607
|
-
const ret = wasm.
|
|
24606
|
+
const ret = wasm.redeemers_len(this.__wbg_ptr);
|
|
24608
24607
|
return ret >>> 0;
|
|
24609
24608
|
}
|
|
24610
24609
|
/**
|
|
@@ -25328,7 +25327,7 @@ class RewardAddresses {
|
|
|
25328
25327
|
* @returns {number}
|
|
25329
25328
|
*/
|
|
25330
25329
|
len() {
|
|
25331
|
-
const ret = wasm.
|
|
25330
|
+
const ret = wasm.rewardaddresses_len(this.__wbg_ptr);
|
|
25332
25331
|
return ret >>> 0;
|
|
25333
25332
|
}
|
|
25334
25333
|
/**
|
|
@@ -26219,7 +26218,7 @@ class ScriptHashes {
|
|
|
26219
26218
|
* @returns {number}
|
|
26220
26219
|
*/
|
|
26221
26220
|
len() {
|
|
26222
|
-
const ret = wasm.
|
|
26221
|
+
const ret = wasm.genesishashes_len(this.__wbg_ptr);
|
|
26223
26222
|
return ret >>> 0;
|
|
26224
26223
|
}
|
|
26225
26224
|
/**
|
|
@@ -27656,7 +27655,7 @@ class StakeDelegation {
|
|
|
27656
27655
|
* @returns {Credential}
|
|
27657
27656
|
*/
|
|
27658
27657
|
stake_credential() {
|
|
27659
|
-
const ret = wasm.
|
|
27658
|
+
const ret = wasm.stakedelegation_stake_credential(this.__wbg_ptr);
|
|
27660
27659
|
return Credential.__wrap(ret);
|
|
27661
27660
|
}
|
|
27662
27661
|
/**
|
|
@@ -27681,7 +27680,7 @@ class StakeDelegation {
|
|
|
27681
27680
|
* @returns {boolean}
|
|
27682
27681
|
*/
|
|
27683
27682
|
has_script_credentials() {
|
|
27684
|
-
const ret = wasm.
|
|
27683
|
+
const ret = wasm.stakedelegation_has_script_credentials(this.__wbg_ptr);
|
|
27685
27684
|
return ret !== 0;
|
|
27686
27685
|
}
|
|
27687
27686
|
}
|
|
@@ -28073,14 +28072,14 @@ class StakeRegistration {
|
|
|
28073
28072
|
* @returns {Credential}
|
|
28074
28073
|
*/
|
|
28075
28074
|
stake_credential() {
|
|
28076
|
-
const ret = wasm.
|
|
28075
|
+
const ret = wasm.stakederegistration_stake_credential(this.__wbg_ptr);
|
|
28077
28076
|
return Credential.__wrap(ret);
|
|
28078
28077
|
}
|
|
28079
28078
|
/**
|
|
28080
28079
|
* @returns {BigNum | undefined}
|
|
28081
28080
|
*/
|
|
28082
28081
|
coin() {
|
|
28083
|
-
const ret = wasm.
|
|
28082
|
+
const ret = wasm.stakederegistration_coin(this.__wbg_ptr);
|
|
28084
28083
|
return ret === 0 ? undefined : BigNum.__wrap(ret);
|
|
28085
28084
|
}
|
|
28086
28085
|
/**
|
|
@@ -28089,7 +28088,7 @@ class StakeRegistration {
|
|
|
28089
28088
|
*/
|
|
28090
28089
|
static new(stake_credential) {
|
|
28091
28090
|
_assertClass(stake_credential, Credential);
|
|
28092
|
-
const ret = wasm.
|
|
28091
|
+
const ret = wasm.stakederegistration_new(stake_credential.__wbg_ptr);
|
|
28093
28092
|
return StakeRegistration.__wrap(ret);
|
|
28094
28093
|
}
|
|
28095
28094
|
/**
|
|
@@ -28100,14 +28099,14 @@ class StakeRegistration {
|
|
|
28100
28099
|
static new_with_explicit_deposit(stake_credential, coin) {
|
|
28101
28100
|
_assertClass(stake_credential, Credential);
|
|
28102
28101
|
_assertClass(coin, BigNum);
|
|
28103
|
-
const ret = wasm.
|
|
28102
|
+
const ret = wasm.stakederegistration_new_with_explicit_refund(stake_credential.__wbg_ptr, coin.__wbg_ptr);
|
|
28104
28103
|
return StakeRegistration.__wrap(ret);
|
|
28105
28104
|
}
|
|
28106
28105
|
/**
|
|
28107
28106
|
* @returns {boolean}
|
|
28108
28107
|
*/
|
|
28109
28108
|
has_script_credentials() {
|
|
28110
|
-
const ret = wasm.
|
|
28109
|
+
const ret = wasm.stakederegistration_has_script_credentials(this.__wbg_ptr);
|
|
28111
28110
|
return ret !== 0;
|
|
28112
28111
|
}
|
|
28113
28112
|
}
|
|
@@ -28300,7 +28299,7 @@ class StakeRegistrationAndDelegation {
|
|
|
28300
28299
|
* @returns {BigNum}
|
|
28301
28300
|
*/
|
|
28302
28301
|
coin() {
|
|
28303
|
-
const ret = wasm.
|
|
28302
|
+
const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
|
|
28304
28303
|
return BigNum.__wrap(ret);
|
|
28305
28304
|
}
|
|
28306
28305
|
/**
|
|
@@ -28520,7 +28519,7 @@ class StakeVoteRegistrationAndDelegation {
|
|
|
28520
28519
|
* @returns {BigNum}
|
|
28521
28520
|
*/
|
|
28522
28521
|
coin() {
|
|
28523
|
-
const ret = wasm.
|
|
28522
|
+
const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
|
|
28524
28523
|
return BigNum.__wrap(ret);
|
|
28525
28524
|
}
|
|
28526
28525
|
/**
|
|
@@ -28585,7 +28584,7 @@ class Strings {
|
|
|
28585
28584
|
* @returns {number}
|
|
28586
28585
|
*/
|
|
28587
28586
|
len() {
|
|
28588
|
-
const ret = wasm.
|
|
28587
|
+
const ret = wasm.strings_len(this.__wbg_ptr);
|
|
28589
28588
|
return ret >>> 0;
|
|
28590
28589
|
}
|
|
28591
28590
|
/**
|
|
@@ -28830,7 +28829,7 @@ class TimelockExpiry {
|
|
|
28830
28829
|
*/
|
|
28831
28830
|
static new_timelockexpiry(slot) {
|
|
28832
28831
|
_assertClass(slot, BigNum);
|
|
28833
|
-
const ret = wasm.
|
|
28832
|
+
const ret = wasm.drepregistration_coin(slot.__wbg_ptr);
|
|
28834
28833
|
return TimelockExpiry.__wrap(ret);
|
|
28835
28834
|
}
|
|
28836
28835
|
}
|
|
@@ -29051,7 +29050,7 @@ class TimelockStart {
|
|
|
29051
29050
|
*/
|
|
29052
29051
|
static new_timelockstart(slot) {
|
|
29053
29052
|
_assertClass(slot, BigNum);
|
|
29054
|
-
const ret = wasm.
|
|
29053
|
+
const ret = wasm.drepregistration_coin(slot.__wbg_ptr);
|
|
29055
29054
|
return TimelockStart.__wrap(ret);
|
|
29056
29055
|
}
|
|
29057
29056
|
}
|
|
@@ -29310,7 +29309,7 @@ class TransactionBatch {
|
|
|
29310
29309
|
* @returns {number}
|
|
29311
29310
|
*/
|
|
29312
29311
|
len() {
|
|
29313
|
-
const ret = wasm.
|
|
29312
|
+
const ret = wasm.transactionbatch_len(this.__wbg_ptr);
|
|
29314
29313
|
return ret >>> 0;
|
|
29315
29314
|
}
|
|
29316
29315
|
/**
|
|
@@ -29354,7 +29353,7 @@ class TransactionBatchList {
|
|
|
29354
29353
|
* @returns {number}
|
|
29355
29354
|
*/
|
|
29356
29355
|
len() {
|
|
29357
|
-
const ret = wasm.
|
|
29356
|
+
const ret = wasm.transactionbatchlist_len(this.__wbg_ptr);
|
|
29358
29357
|
return ret >>> 0;
|
|
29359
29358
|
}
|
|
29360
29359
|
/**
|
|
@@ -29548,7 +29547,7 @@ class TransactionBodies {
|
|
|
29548
29547
|
* @returns {number}
|
|
29549
29548
|
*/
|
|
29550
29549
|
len() {
|
|
29551
|
-
const ret = wasm.
|
|
29550
|
+
const ret = wasm.transactionbodies_len(this.__wbg_ptr);
|
|
29552
29551
|
return ret >>> 0;
|
|
29553
29552
|
}
|
|
29554
29553
|
/**
|
|
@@ -31961,7 +31960,7 @@ class TransactionInputs {
|
|
|
31961
31960
|
* @returns {number}
|
|
31962
31961
|
*/
|
|
31963
31962
|
len() {
|
|
31964
|
-
const ret = wasm.
|
|
31963
|
+
const ret = wasm.transactioninputs_len(this.__wbg_ptr);
|
|
31965
31964
|
return ret >>> 0;
|
|
31966
31965
|
}
|
|
31967
31966
|
/**
|
|
@@ -32169,7 +32168,7 @@ class TransactionMetadatum {
|
|
|
32169
32168
|
* @returns {TransactionMetadatumKind}
|
|
32170
32169
|
*/
|
|
32171
32170
|
kind() {
|
|
32172
|
-
const ret = wasm.
|
|
32171
|
+
const ret = wasm.transactionmetadatum_kind(this.__wbg_ptr);
|
|
32173
32172
|
return ret;
|
|
32174
32173
|
}
|
|
32175
32174
|
/**
|
|
@@ -32384,14 +32383,14 @@ class TransactionMetadatumLabels {
|
|
|
32384
32383
|
* @returns {TransactionMetadatumLabels}
|
|
32385
32384
|
*/
|
|
32386
32385
|
static new() {
|
|
32387
|
-
const ret = wasm.
|
|
32386
|
+
const ret = wasm.plutusmapvalues_new();
|
|
32388
32387
|
return TransactionMetadatumLabels.__wrap(ret);
|
|
32389
32388
|
}
|
|
32390
32389
|
/**
|
|
32391
32390
|
* @returns {number}
|
|
32392
32391
|
*/
|
|
32393
32392
|
len() {
|
|
32394
|
-
const ret = wasm.
|
|
32393
|
+
const ret = wasm.transactionmetadatumlabels_len(this.__wbg_ptr);
|
|
32395
32394
|
return ret >>> 0;
|
|
32396
32395
|
}
|
|
32397
32396
|
/**
|
|
@@ -33052,7 +33051,7 @@ class TransactionOutputs {
|
|
|
33052
33051
|
* @returns {number}
|
|
33053
33052
|
*/
|
|
33054
33053
|
len() {
|
|
33055
|
-
const ret = wasm.
|
|
33054
|
+
const ret = wasm.transactionoutputs_len(this.__wbg_ptr);
|
|
33056
33055
|
return ret >>> 0;
|
|
33057
33056
|
}
|
|
33058
33057
|
/**
|
|
@@ -33837,7 +33836,7 @@ class TransactionWitnessSets {
|
|
|
33837
33836
|
* @returns {number}
|
|
33838
33837
|
*/
|
|
33839
33838
|
len() {
|
|
33840
|
-
const ret = wasm.
|
|
33839
|
+
const ret = wasm.transactionwitnesssets_len(this.__wbg_ptr);
|
|
33841
33840
|
return ret >>> 0;
|
|
33842
33841
|
}
|
|
33843
33842
|
/**
|
|
@@ -33986,7 +33985,7 @@ class TreasuryWithdrawals {
|
|
|
33986
33985
|
* @returns {number}
|
|
33987
33986
|
*/
|
|
33988
33987
|
len() {
|
|
33989
|
-
const ret = wasm.
|
|
33988
|
+
const ret = wasm.treasurywithdrawals_len(this.__wbg_ptr);
|
|
33990
33989
|
return ret >>> 0;
|
|
33991
33990
|
}
|
|
33992
33991
|
}
|
|
@@ -36525,7 +36524,7 @@ class Vkeys {
|
|
|
36525
36524
|
* @returns {number}
|
|
36526
36525
|
*/
|
|
36527
36526
|
len() {
|
|
36528
|
-
const ret = wasm.
|
|
36527
|
+
const ret = wasm.vkeys_len(this.__wbg_ptr);
|
|
36529
36528
|
return ret >>> 0;
|
|
36530
36529
|
}
|
|
36531
36530
|
/**
|
|
@@ -37325,7 +37324,7 @@ class VoteRegistrationAndDelegation {
|
|
|
37325
37324
|
* @returns {Credential}
|
|
37326
37325
|
*/
|
|
37327
37326
|
stake_credential() {
|
|
37328
|
-
const ret = wasm.
|
|
37327
|
+
const ret = wasm.voteregistrationanddelegation_stake_credential(this.__wbg_ptr);
|
|
37329
37328
|
return Credential.__wrap(ret);
|
|
37330
37329
|
}
|
|
37331
37330
|
/**
|
|
@@ -37339,7 +37338,7 @@ class VoteRegistrationAndDelegation {
|
|
|
37339
37338
|
* @returns {BigNum}
|
|
37340
37339
|
*/
|
|
37341
37340
|
coin() {
|
|
37342
|
-
const ret = wasm.
|
|
37341
|
+
const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
|
|
37343
37342
|
return BigNum.__wrap(ret);
|
|
37344
37343
|
}
|
|
37345
37344
|
/**
|
|
@@ -37359,7 +37358,7 @@ class VoteRegistrationAndDelegation {
|
|
|
37359
37358
|
* @returns {boolean}
|
|
37360
37359
|
*/
|
|
37361
37360
|
has_script_credentials() {
|
|
37362
|
-
const ret = wasm.
|
|
37361
|
+
const ret = wasm.voteregistrationanddelegation_has_script_credentials(this.__wbg_ptr);
|
|
37363
37362
|
return ret !== 0;
|
|
37364
37363
|
}
|
|
37365
37364
|
}
|
|
@@ -37702,7 +37701,7 @@ class Voters {
|
|
|
37702
37701
|
* @returns {Voters}
|
|
37703
37702
|
*/
|
|
37704
37703
|
static new() {
|
|
37705
|
-
const ret = wasm.
|
|
37704
|
+
const ret = wasm.vkeys_new();
|
|
37706
37705
|
return Voters.__wrap(ret);
|
|
37707
37706
|
}
|
|
37708
37707
|
/**
|
|
@@ -37724,7 +37723,7 @@ class Voters {
|
|
|
37724
37723
|
* @returns {number}
|
|
37725
37724
|
*/
|
|
37726
37725
|
len() {
|
|
37727
|
-
const ret = wasm.
|
|
37726
|
+
const ret = wasm.voters_len(this.__wbg_ptr);
|
|
37728
37727
|
return ret >>> 0;
|
|
37729
37728
|
}
|
|
37730
37729
|
}
|
|
@@ -37760,7 +37759,7 @@ class VotingBuilder {
|
|
|
37760
37759
|
* @returns {VotingBuilder}
|
|
37761
37760
|
*/
|
|
37762
37761
|
static new() {
|
|
37763
|
-
const ret = wasm.
|
|
37762
|
+
const ret = wasm.costmdls_new();
|
|
37764
37763
|
return VotingBuilder.__wrap(ret);
|
|
37765
37764
|
}
|
|
37766
37765
|
/**
|
|
@@ -38066,7 +38065,7 @@ class VotingProcedure {
|
|
|
38066
38065
|
* @returns {Anchor | undefined}
|
|
38067
38066
|
*/
|
|
38068
38067
|
anchor() {
|
|
38069
|
-
const ret = wasm.
|
|
38068
|
+
const ret = wasm.votingprocedure_anchor(this.__wbg_ptr);
|
|
38070
38069
|
return ret === 0 ? undefined : Anchor.__wrap(ret);
|
|
38071
38070
|
}
|
|
38072
38071
|
}
|
|
@@ -38245,7 +38244,7 @@ class VotingProcedures {
|
|
|
38245
38244
|
* @returns {VotingProcedures}
|
|
38246
38245
|
*/
|
|
38247
38246
|
static new() {
|
|
38248
|
-
const ret = wasm.
|
|
38247
|
+
const ret = wasm.votingprocedures_new();
|
|
38249
38248
|
return VotingProcedures.__wrap(ret);
|
|
38250
38249
|
}
|
|
38251
38250
|
/**
|
|
@@ -39331,14 +39330,14 @@ module.exports.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
|
|
|
39331
39330
|
return addHeapObject(ret);
|
|
39332
39331
|
};
|
|
39333
39332
|
|
|
39334
|
-
module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
|
|
39335
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
39336
|
-
}, arguments) };
|
|
39337
|
-
|
|
39338
39333
|
module.exports.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
|
|
39339
39334
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
39340
39335
|
}, arguments) };
|
|
39341
39336
|
|
|
39337
|
+
module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
|
|
39338
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
39339
|
+
}, arguments) };
|
|
39340
|
+
|
|
39342
39341
|
module.exports.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) {
|
|
39343
39342
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
39344
39343
|
return addHeapObject(ret);
|