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