@cardananium/cquisitor-lib 0.1.0-beta.24 → 0.1.0-beta.27
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 +401 -402
- package/browser/cquisitor_lib_bg.wasm +0 -0
- package/browser/cquisitor_lib_bg.wasm.d.ts +2047 -2047
- package/node/cquisitor_lib.d.ts +1 -0
- package/node/cquisitor_lib.js +400 -401
- package/node/cquisitor_lib_bg.wasm +0 -0
- package/node/cquisitor_lib_bg.wasm.d.ts +2047 -2047
- package/package.json +3 -1
|
@@ -311,59 +311,6 @@ export function check_block_or_tx_signatures(hex_str) {
|
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
|
|
314
|
-
/**
|
|
315
|
-
* @param {string} hex
|
|
316
|
-
* @returns {any}
|
|
317
|
-
*/
|
|
318
|
-
export function decode_plutus_program_uplc_json(hex) {
|
|
319
|
-
try {
|
|
320
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
321
|
-
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
322
|
-
const len0 = WASM_VECTOR_LEN;
|
|
323
|
-
wasm.decode_plutus_program_uplc_json(retptr, ptr0, len0);
|
|
324
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
325
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
326
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
327
|
-
if (r2) {
|
|
328
|
-
throw takeObject(r1);
|
|
329
|
-
}
|
|
330
|
-
return takeObject(r0);
|
|
331
|
-
} finally {
|
|
332
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* @param {string} hex
|
|
338
|
-
* @returns {string}
|
|
339
|
-
*/
|
|
340
|
-
export function decode_plutus_program_pretty_uplc(hex) {
|
|
341
|
-
let deferred3_0;
|
|
342
|
-
let deferred3_1;
|
|
343
|
-
try {
|
|
344
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
345
|
-
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
346
|
-
const len0 = WASM_VECTOR_LEN;
|
|
347
|
-
wasm.decode_plutus_program_pretty_uplc(retptr, ptr0, len0);
|
|
348
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
349
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
350
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
351
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
352
|
-
var ptr2 = r0;
|
|
353
|
-
var len2 = r1;
|
|
354
|
-
if (r3) {
|
|
355
|
-
ptr2 = 0; len2 = 0;
|
|
356
|
-
throw takeObject(r2);
|
|
357
|
-
}
|
|
358
|
-
deferred3_0 = ptr2;
|
|
359
|
-
deferred3_1 = len2;
|
|
360
|
-
return getStringFromWasm0(ptr2, len2);
|
|
361
|
-
} finally {
|
|
362
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
363
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
|
|
367
314
|
/**
|
|
368
315
|
* @param {string} tx_hex
|
|
369
316
|
* @returns {string}
|
|
@@ -429,6 +376,59 @@ export function validate_transaction_js(tx_hex, validation_context) {
|
|
|
429
376
|
}
|
|
430
377
|
}
|
|
431
378
|
|
|
379
|
+
/**
|
|
380
|
+
* @param {string} hex
|
|
381
|
+
* @returns {any}
|
|
382
|
+
*/
|
|
383
|
+
export function decode_plutus_program_uplc_json(hex) {
|
|
384
|
+
try {
|
|
385
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
386
|
+
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
387
|
+
const len0 = WASM_VECTOR_LEN;
|
|
388
|
+
wasm.decode_plutus_program_uplc_json(retptr, ptr0, len0);
|
|
389
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
390
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
391
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
392
|
+
if (r2) {
|
|
393
|
+
throw takeObject(r1);
|
|
394
|
+
}
|
|
395
|
+
return takeObject(r0);
|
|
396
|
+
} finally {
|
|
397
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* @param {string} hex
|
|
403
|
+
* @returns {string}
|
|
404
|
+
*/
|
|
405
|
+
export function decode_plutus_program_pretty_uplc(hex) {
|
|
406
|
+
let deferred3_0;
|
|
407
|
+
let deferred3_1;
|
|
408
|
+
try {
|
|
409
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
410
|
+
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
411
|
+
const len0 = WASM_VECTOR_LEN;
|
|
412
|
+
wasm.decode_plutus_program_pretty_uplc(retptr, ptr0, len0);
|
|
413
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
414
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
415
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
416
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
417
|
+
var ptr2 = r0;
|
|
418
|
+
var len2 = r1;
|
|
419
|
+
if (r3) {
|
|
420
|
+
ptr2 = 0; len2 = 0;
|
|
421
|
+
throw takeObject(r2);
|
|
422
|
+
}
|
|
423
|
+
deferred3_0 = ptr2;
|
|
424
|
+
deferred3_1 = len2;
|
|
425
|
+
return getStringFromWasm0(ptr2, len2);
|
|
426
|
+
} finally {
|
|
427
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
428
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
432
|
/**
|
|
433
433
|
* @param {string} tx_hex
|
|
434
434
|
* @returns {(string)[]}
|
|
@@ -500,26 +500,266 @@ export function cbor_to_json(cbor_hex) {
|
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
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
|
+
|
|
503
515
|
function _assertClass(instance, klass) {
|
|
504
516
|
if (!(instance instanceof klass)) {
|
|
505
517
|
throw new Error(`expected instance of ${klass.name}`);
|
|
506
518
|
}
|
|
507
519
|
return instance.ptr;
|
|
508
520
|
}
|
|
521
|
+
/**
|
|
522
|
+
* @param {string} json
|
|
523
|
+
* @param {PlutusDatumSchema} schema
|
|
524
|
+
* @returns {PlutusData}
|
|
525
|
+
*/
|
|
526
|
+
export function encode_json_str_to_plutus_datum(json, schema) {
|
|
527
|
+
try {
|
|
528
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
529
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
530
|
+
const len0 = WASM_VECTOR_LEN;
|
|
531
|
+
wasm.encode_json_str_to_plutus_datum(retptr, ptr0, len0, schema);
|
|
532
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
533
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
534
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
535
|
+
if (r2) {
|
|
536
|
+
throw takeObject(r1);
|
|
537
|
+
}
|
|
538
|
+
return PlutusData.__wrap(r0);
|
|
539
|
+
} finally {
|
|
540
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
509
543
|
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
544
|
+
/**
|
|
545
|
+
* @param {PlutusData} datum
|
|
546
|
+
* @param {PlutusDatumSchema} schema
|
|
547
|
+
* @returns {string}
|
|
548
|
+
*/
|
|
549
|
+
export function decode_plutus_datum_to_json_str(datum, schema) {
|
|
550
|
+
let deferred2_0;
|
|
551
|
+
let deferred2_1;
|
|
552
|
+
try {
|
|
553
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
554
|
+
_assertClass(datum, PlutusData);
|
|
555
|
+
wasm.decode_plutus_datum_to_json_str(retptr, datum.__wbg_ptr, schema);
|
|
556
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
557
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
558
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
559
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
560
|
+
var ptr1 = r0;
|
|
561
|
+
var len1 = r1;
|
|
562
|
+
if (r3) {
|
|
563
|
+
ptr1 = 0; len1 = 0;
|
|
564
|
+
throw takeObject(r2);
|
|
565
|
+
}
|
|
566
|
+
deferred2_0 = ptr1;
|
|
567
|
+
deferred2_1 = len1;
|
|
568
|
+
return getStringFromWasm0(ptr1, len1);
|
|
569
|
+
} finally {
|
|
570
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
571
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
572
|
+
}
|
|
513
573
|
}
|
|
514
574
|
|
|
515
|
-
|
|
575
|
+
/**
|
|
576
|
+
* @param {Uint8Array} bytes
|
|
577
|
+
* @returns {TransactionMetadatum}
|
|
578
|
+
*/
|
|
579
|
+
export function encode_arbitrary_bytes_as_metadatum(bytes) {
|
|
580
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
581
|
+
const len0 = WASM_VECTOR_LEN;
|
|
582
|
+
const ret = wasm.encode_arbitrary_bytes_as_metadatum(ptr0, len0);
|
|
583
|
+
return TransactionMetadatum.__wrap(ret);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* @param {TransactionMetadatum} metadata
|
|
588
|
+
* @returns {Uint8Array}
|
|
589
|
+
*/
|
|
590
|
+
export function decode_arbitrary_bytes_from_metadatum(metadata) {
|
|
591
|
+
try {
|
|
592
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
593
|
+
_assertClass(metadata, TransactionMetadatum);
|
|
594
|
+
wasm.decode_arbitrary_bytes_from_metadatum(retptr, metadata.__wbg_ptr);
|
|
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);
|
|
619
|
+
const len0 = WASM_VECTOR_LEN;
|
|
620
|
+
wasm.encode_json_str_to_metadatum(retptr, ptr0, len0, schema);
|
|
621
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
622
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
623
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
624
|
+
if (r2) {
|
|
625
|
+
throw takeObject(r1);
|
|
626
|
+
}
|
|
627
|
+
return TransactionMetadatum.__wrap(r0);
|
|
628
|
+
} finally {
|
|
629
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* @param {TransactionMetadatum} metadatum
|
|
635
|
+
* @param {MetadataJsonSchema} schema
|
|
636
|
+
* @returns {string}
|
|
637
|
+
*/
|
|
638
|
+
export function decode_metadatum_to_json_str(metadatum, schema) {
|
|
639
|
+
let deferred2_0;
|
|
640
|
+
let deferred2_1;
|
|
641
|
+
try {
|
|
642
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
643
|
+
_assertClass(metadatum, TransactionMetadatum);
|
|
644
|
+
wasm.decode_metadatum_to_json_str(retptr, metadatum.__wbg_ptr, schema);
|
|
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);
|
|
675
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
676
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
677
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
678
|
+
if (r2) {
|
|
679
|
+
throw takeObject(r1);
|
|
680
|
+
}
|
|
681
|
+
return BigNum.__wrap(r0);
|
|
682
|
+
} finally {
|
|
683
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
|
|
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);
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
|
|
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
|
+
}
|
|
731
|
+
}
|
|
732
|
+
|
|
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,207 +1077,35 @@ 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) {
|
|
900
|
-
try {
|
|
901
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
902
|
-
_assertClass(tx, Transaction);
|
|
903
|
-
_assertClass(linear_fee, LinearFee);
|
|
904
|
-
wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__wbg_ptr);
|
|
905
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
906
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
907
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
908
|
-
if (r2) {
|
|
909
|
-
throw takeObject(r1);
|
|
910
|
-
}
|
|
911
|
-
return BigNum.__wrap(r0);
|
|
912
|
-
} finally {
|
|
913
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
914
|
-
}
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
/**
|
|
918
|
-
* @param {ExUnits} ex_units
|
|
919
|
-
* @param {ExUnitPrices} ex_unit_prices
|
|
920
|
-
* @returns {BigNum}
|
|
921
|
-
*/
|
|
922
|
-
export function calculate_ex_units_ceil_cost(ex_units, ex_unit_prices) {
|
|
923
|
-
try {
|
|
924
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
925
|
-
_assertClass(ex_units, ExUnits);
|
|
926
|
-
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
927
|
-
wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
928
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
929
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
930
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
931
|
-
if (r2) {
|
|
932
|
-
throw takeObject(r1);
|
|
933
|
-
}
|
|
934
|
-
return BigNum.__wrap(r0);
|
|
935
|
-
} finally {
|
|
936
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
937
|
-
}
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
/**
|
|
941
|
-
* @param {Transaction} tx
|
|
942
|
-
* @param {ExUnitPrices} ex_unit_prices
|
|
943
|
-
* @returns {BigNum}
|
|
944
|
-
*/
|
|
945
|
-
export function min_script_fee(tx, ex_unit_prices) {
|
|
946
|
-
try {
|
|
947
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
948
|
-
_assertClass(tx, Transaction);
|
|
949
|
-
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
950
|
-
wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
951
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
952
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
953
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
954
|
-
if (r2) {
|
|
955
|
-
throw takeObject(r1);
|
|
956
|
-
}
|
|
957
|
-
return BigNum.__wrap(r0);
|
|
958
|
-
} finally {
|
|
959
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
/**
|
|
964
|
-
* @param {number} total_ref_scripts_size
|
|
965
|
-
* @param {UnitInterval} ref_script_coins_per_byte
|
|
966
|
-
* @returns {BigNum}
|
|
967
|
-
*/
|
|
968
|
-
export function min_ref_script_fee(total_ref_scripts_size, ref_script_coins_per_byte) {
|
|
1080
|
+
function handleError(f, args) {
|
|
969
1081
|
try {
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
wasm.
|
|
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);
|
|
1082
|
+
return f.apply(this, args);
|
|
1083
|
+
} catch (e) {
|
|
1084
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
982
1085
|
}
|
|
983
1086
|
}
|
|
984
|
-
|
|
985
1087
|
/**
|
|
986
|
-
* @param {Uint8Array} bytes
|
|
987
|
-
* @returns {TransactionMetadatum}
|
|
988
1088
|
*/
|
|
989
|
-
export
|
|
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
|
-
|
|
1089
|
+
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", });
|
|
996
1090
|
/**
|
|
997
|
-
* @param {TransactionMetadatum} metadata
|
|
998
|
-
* @returns {Uint8Array}
|
|
999
1091
|
*/
|
|
1000
|
-
export
|
|
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
|
-
|
|
1092
|
+
export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1020
1093
|
/**
|
|
1021
|
-
* @param {string} json
|
|
1022
|
-
* @param {MetadataJsonSchema} schema
|
|
1023
|
-
* @returns {TransactionMetadatum}
|
|
1024
1094
|
*/
|
|
1025
|
-
export
|
|
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
|
-
|
|
1095
|
+
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", });
|
|
1043
1096
|
/**
|
|
1044
|
-
* @param {TransactionMetadatum} metadatum
|
|
1045
|
-
* @param {MetadataJsonSchema} schema
|
|
1046
|
-
* @returns {string}
|
|
1047
1097
|
*/
|
|
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
|
-
}
|
|
1098
|
+
export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1088
1099
|
/**
|
|
1100
|
+
* Each new language uses a different namespace for hashing its script
|
|
1101
|
+
* This is because you could have a language where the same bytes have different semantics
|
|
1102
|
+
* So this avoids scripts in different languages mapping to the same hash
|
|
1103
|
+
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1089
1104
|
*/
|
|
1090
|
-
export const
|
|
1105
|
+
export const ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1091
1106
|
/**
|
|
1092
|
-
* Used to choosed the schema for a script JSON string
|
|
1093
1107
|
*/
|
|
1094
|
-
export const
|
|
1108
|
+
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", });
|
|
1095
1109
|
/**
|
|
1096
1110
|
* JSON <-> PlutusData conversion schemas.
|
|
1097
1111
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
@@ -1145,93 +1159,78 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
1145
1159
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1146
1160
|
/**
|
|
1147
1161
|
*/
|
|
1148
|
-
export const
|
|
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", });
|
|
1162
|
+
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", });
|
|
1161
1163
|
/**
|
|
1162
1164
|
*/
|
|
1163
|
-
export const
|
|
1165
|
+
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", });
|
|
1164
1166
|
/**
|
|
1165
|
-
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1166
1167
|
*/
|
|
1167
|
-
|
|
1168
|
+
export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1168
1169
|
/**
|
|
1169
|
-
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1170
1170
|
*/
|
|
1171
|
-
|
|
1171
|
+
export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1172
1172
|
/**
|
|
1173
|
-
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1174
1173
|
*/
|
|
1175
|
-
|
|
1174
|
+
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", });
|
|
1176
1175
|
/**
|
|
1177
|
-
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1178
1176
|
*/
|
|
1179
|
-
|
|
1177
|
+
export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1180
1178
|
/**
|
|
1181
1179
|
*/
|
|
1182
|
-
export const
|
|
1180
|
+
export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1183
1181
|
/**
|
|
1184
1182
|
*/
|
|
1185
|
-
export const
|
|
1183
|
+
export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1186
1184
|
/**
|
|
1187
1185
|
*/
|
|
1188
|
-
export const
|
|
1186
|
+
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", });
|
|
1189
1187
|
/**
|
|
1190
1188
|
*/
|
|
1191
|
-
export const
|
|
1189
|
+
export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1192
1190
|
/**
|
|
1193
1191
|
*/
|
|
1194
|
-
export const
|
|
1192
|
+
export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1195
1193
|
/**
|
|
1194
|
+
* Used to choosed the schema for a script JSON string
|
|
1196
1195
|
*/
|
|
1197
|
-
export const
|
|
1196
|
+
export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1198
1197
|
/**
|
|
1199
1198
|
*/
|
|
1200
|
-
export const
|
|
1199
|
+
export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1201
1200
|
/**
|
|
1202
1201
|
*/
|
|
1203
|
-
export const
|
|
1202
|
+
export const CoinSelectionStrategyCIP2 = Object.freeze({
|
|
1204
1203
|
/**
|
|
1204
|
+
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1205
1205
|
*/
|
|
1206
|
-
|
|
1206
|
+
LargestFirst:0,"0":"LargestFirst",
|
|
1207
1207
|
/**
|
|
1208
|
+
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1208
1209
|
*/
|
|
1209
|
-
|
|
1210
|
+
RandomImprove:1,"1":"RandomImprove",
|
|
1210
1211
|
/**
|
|
1212
|
+
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1211
1213
|
*/
|
|
1212
|
-
|
|
1214
|
+
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
1213
1215
|
/**
|
|
1216
|
+
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1214
1217
|
*/
|
|
1215
|
-
|
|
1218
|
+
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1216
1219
|
/**
|
|
1217
1220
|
*/
|
|
1218
|
-
export const
|
|
1221
|
+
export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1219
1222
|
/**
|
|
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
1223
|
*/
|
|
1225
|
-
export const
|
|
1224
|
+
export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1226
1225
|
/**
|
|
1227
1226
|
*/
|
|
1228
|
-
export const
|
|
1227
|
+
export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1229
1228
|
/**
|
|
1230
1229
|
*/
|
|
1231
|
-
export const
|
|
1230
|
+
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", });
|
|
1232
1231
|
/**
|
|
1233
1232
|
*/
|
|
1234
|
-
export const
|
|
1233
|
+
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", });
|
|
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;
|