@cardananium/cquisitor-lib 0.1.0-beta.12 → 0.1.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cquisitor_lib.d.ts +637 -66
- package/browser/cquisitor_lib_bg.js +374 -307
- package/browser/cquisitor_lib_bg.wasm +0 -0
- package/browser/cquisitor_lib_bg.wasm.d.ts +1699 -1697
- package/node/cquisitor_lib.d.ts +637 -66
- package/node/cquisitor_lib.js +386 -319
- package/node/cquisitor_lib_bg.wasm +0 -0
- package/node/cquisitor_lib_bg.wasm.d.ts +1699 -1697
- package/package.json +1 -1
|
@@ -290,24 +290,65 @@ export function get_possible_types_for_input(input) {
|
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
/**
|
|
293
|
-
* @param {string}
|
|
294
|
-
* @returns {
|
|
293
|
+
* @param {string} tx_hex
|
|
294
|
+
* @returns {string}
|
|
295
295
|
*/
|
|
296
|
-
export function
|
|
296
|
+
export function get_necessary_data_list_js(tx_hex) {
|
|
297
|
+
let deferred3_0;
|
|
298
|
+
let deferred3_1;
|
|
297
299
|
try {
|
|
298
300
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
299
|
-
const ptr0 = passStringToWasm0(
|
|
301
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
300
302
|
const len0 = WASM_VECTOR_LEN;
|
|
301
|
-
wasm.
|
|
303
|
+
wasm.get_necessary_data_list_js(retptr, ptr0, len0);
|
|
302
304
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
303
305
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
304
306
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
305
|
-
|
|
306
|
-
|
|
307
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
308
|
+
var ptr2 = r0;
|
|
309
|
+
var len2 = r1;
|
|
310
|
+
if (r3) {
|
|
311
|
+
ptr2 = 0; len2 = 0;
|
|
312
|
+
throw takeObject(r2);
|
|
307
313
|
}
|
|
308
|
-
|
|
314
|
+
deferred3_0 = ptr2;
|
|
315
|
+
deferred3_1 = len2;
|
|
316
|
+
return getStringFromWasm0(ptr2, len2);
|
|
317
|
+
} finally {
|
|
318
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
319
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* @param {string} tx_hex
|
|
325
|
+
* @param {any} validation_context
|
|
326
|
+
* @returns {string}
|
|
327
|
+
*/
|
|
328
|
+
export function validate_transaction_js(tx_hex, validation_context) {
|
|
329
|
+
let deferred3_0;
|
|
330
|
+
let deferred3_1;
|
|
331
|
+
try {
|
|
332
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
333
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
334
|
+
const len0 = WASM_VECTOR_LEN;
|
|
335
|
+
wasm.validate_transaction_js(retptr, ptr0, len0, addHeapObject(validation_context));
|
|
336
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
337
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
338
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
339
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
340
|
+
var ptr2 = r0;
|
|
341
|
+
var len2 = r1;
|
|
342
|
+
if (r3) {
|
|
343
|
+
ptr2 = 0; len2 = 0;
|
|
344
|
+
throw takeObject(r2);
|
|
345
|
+
}
|
|
346
|
+
deferred3_0 = ptr2;
|
|
347
|
+
deferred3_1 = len2;
|
|
348
|
+
return getStringFromWasm0(ptr2, len2);
|
|
309
349
|
} finally {
|
|
310
350
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
351
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
311
352
|
}
|
|
312
353
|
}
|
|
313
354
|
|
|
@@ -361,15 +402,15 @@ export function execute_tx_scripts(tx_hex, utxo_json, cost_models_json) {
|
|
|
361
402
|
}
|
|
362
403
|
|
|
363
404
|
/**
|
|
364
|
-
* @param {string}
|
|
405
|
+
* @param {string} hex_str
|
|
365
406
|
* @returns {any}
|
|
366
407
|
*/
|
|
367
|
-
export function
|
|
408
|
+
export function check_block_or_tx_signatures(hex_str) {
|
|
368
409
|
try {
|
|
369
410
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
370
|
-
const ptr0 = passStringToWasm0(
|
|
411
|
+
const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
371
412
|
const len0 = WASM_VECTOR_LEN;
|
|
372
|
-
wasm.
|
|
413
|
+
wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
|
|
373
414
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
374
415
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
375
416
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -435,6 +476,35 @@ export function decode_plutus_program_pretty_uplc(hex) {
|
|
|
435
476
|
}
|
|
436
477
|
}
|
|
437
478
|
|
|
479
|
+
/**
|
|
480
|
+
* @param {string} cbor_hex
|
|
481
|
+
* @returns {any}
|
|
482
|
+
*/
|
|
483
|
+
export function cbor_to_json(cbor_hex) {
|
|
484
|
+
try {
|
|
485
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
486
|
+
const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
487
|
+
const len0 = WASM_VECTOR_LEN;
|
|
488
|
+
wasm.cbor_to_json(retptr, ptr0, len0);
|
|
489
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
490
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
491
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
492
|
+
if (r2) {
|
|
493
|
+
throw takeObject(r1);
|
|
494
|
+
}
|
|
495
|
+
return takeObject(r0);
|
|
496
|
+
} finally {
|
|
497
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
function _assertClass(instance, klass) {
|
|
502
|
+
if (!(instance instanceof klass)) {
|
|
503
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
504
|
+
}
|
|
505
|
+
return instance.ptr;
|
|
506
|
+
}
|
|
507
|
+
|
|
438
508
|
function getArrayU8FromWasm0(ptr, len) {
|
|
439
509
|
ptr = ptr >>> 0;
|
|
440
510
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -447,17 +517,181 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
447
517
|
return ptr;
|
|
448
518
|
}
|
|
449
519
|
|
|
450
|
-
function _assertClass(instance, klass) {
|
|
451
|
-
if (!(instance instanceof klass)) {
|
|
452
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
453
|
-
}
|
|
454
|
-
return instance.ptr;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
520
|
function getArrayU32FromWasm0(ptr, len) {
|
|
458
521
|
ptr = ptr >>> 0;
|
|
459
522
|
return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
|
|
460
523
|
}
|
|
524
|
+
/**
|
|
525
|
+
* @param {Transaction} tx
|
|
526
|
+
* @param {LinearFee} linear_fee
|
|
527
|
+
* @returns {BigNum}
|
|
528
|
+
*/
|
|
529
|
+
export function min_fee(tx, linear_fee) {
|
|
530
|
+
try {
|
|
531
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
532
|
+
_assertClass(tx, Transaction);
|
|
533
|
+
_assertClass(linear_fee, LinearFee);
|
|
534
|
+
wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__wbg_ptr);
|
|
535
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
536
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
537
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
538
|
+
if (r2) {
|
|
539
|
+
throw takeObject(r1);
|
|
540
|
+
}
|
|
541
|
+
return BigNum.__wrap(r0);
|
|
542
|
+
} finally {
|
|
543
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* @param {ExUnits} ex_units
|
|
549
|
+
* @param {ExUnitPrices} ex_unit_prices
|
|
550
|
+
* @returns {BigNum}
|
|
551
|
+
*/
|
|
552
|
+
export function calculate_ex_units_ceil_cost(ex_units, ex_unit_prices) {
|
|
553
|
+
try {
|
|
554
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
555
|
+
_assertClass(ex_units, ExUnits);
|
|
556
|
+
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
557
|
+
wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
558
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
559
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
560
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
561
|
+
if (r2) {
|
|
562
|
+
throw takeObject(r1);
|
|
563
|
+
}
|
|
564
|
+
return BigNum.__wrap(r0);
|
|
565
|
+
} finally {
|
|
566
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* @param {Transaction} tx
|
|
572
|
+
* @param {ExUnitPrices} ex_unit_prices
|
|
573
|
+
* @returns {BigNum}
|
|
574
|
+
*/
|
|
575
|
+
export function min_script_fee(tx, ex_unit_prices) {
|
|
576
|
+
try {
|
|
577
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
578
|
+
_assertClass(tx, Transaction);
|
|
579
|
+
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
580
|
+
wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
581
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
582
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
583
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
584
|
+
if (r2) {
|
|
585
|
+
throw takeObject(r1);
|
|
586
|
+
}
|
|
587
|
+
return BigNum.__wrap(r0);
|
|
588
|
+
} finally {
|
|
589
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* @param {number} total_ref_scripts_size
|
|
595
|
+
* @param {UnitInterval} ref_script_coins_per_byte
|
|
596
|
+
* @returns {BigNum}
|
|
597
|
+
*/
|
|
598
|
+
export function min_ref_script_fee(total_ref_scripts_size, ref_script_coins_per_byte) {
|
|
599
|
+
try {
|
|
600
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
601
|
+
_assertClass(ref_script_coins_per_byte, UnitInterval);
|
|
602
|
+
wasm.min_ref_script_fee(retptr, total_ref_scripts_size, ref_script_coins_per_byte.__wbg_ptr);
|
|
603
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
604
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
605
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
606
|
+
if (r2) {
|
|
607
|
+
throw takeObject(r1);
|
|
608
|
+
}
|
|
609
|
+
return BigNum.__wrap(r0);
|
|
610
|
+
} finally {
|
|
611
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
function passArray32ToWasm0(arg, malloc) {
|
|
616
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
617
|
+
getUint32Memory0().set(arg, ptr / 4);
|
|
618
|
+
WASM_VECTOR_LEN = arg.length;
|
|
619
|
+
return ptr;
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* @param {string} password
|
|
623
|
+
* @param {string} salt
|
|
624
|
+
* @param {string} nonce
|
|
625
|
+
* @param {string} data
|
|
626
|
+
* @returns {string}
|
|
627
|
+
*/
|
|
628
|
+
export function encrypt_with_password(password, salt, nonce, data) {
|
|
629
|
+
let deferred6_0;
|
|
630
|
+
let deferred6_1;
|
|
631
|
+
try {
|
|
632
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
633
|
+
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
634
|
+
const len0 = WASM_VECTOR_LEN;
|
|
635
|
+
const ptr1 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
636
|
+
const len1 = WASM_VECTOR_LEN;
|
|
637
|
+
const ptr2 = passStringToWasm0(nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
638
|
+
const len2 = WASM_VECTOR_LEN;
|
|
639
|
+
const ptr3 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
640
|
+
const len3 = WASM_VECTOR_LEN;
|
|
641
|
+
wasm.encrypt_with_password(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
642
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
643
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
644
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
645
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
646
|
+
var ptr5 = r0;
|
|
647
|
+
var len5 = r1;
|
|
648
|
+
if (r3) {
|
|
649
|
+
ptr5 = 0; len5 = 0;
|
|
650
|
+
throw takeObject(r2);
|
|
651
|
+
}
|
|
652
|
+
deferred6_0 = ptr5;
|
|
653
|
+
deferred6_1 = len5;
|
|
654
|
+
return getStringFromWasm0(ptr5, len5);
|
|
655
|
+
} finally {
|
|
656
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
657
|
+
wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* @param {string} password
|
|
663
|
+
* @param {string} data
|
|
664
|
+
* @returns {string}
|
|
665
|
+
*/
|
|
666
|
+
export function decrypt_with_password(password, data) {
|
|
667
|
+
let deferred4_0;
|
|
668
|
+
let deferred4_1;
|
|
669
|
+
try {
|
|
670
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
671
|
+
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
672
|
+
const len0 = WASM_VECTOR_LEN;
|
|
673
|
+
const ptr1 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
674
|
+
const len1 = WASM_VECTOR_LEN;
|
|
675
|
+
wasm.decrypt_with_password(retptr, ptr0, len0, ptr1, len1);
|
|
676
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
677
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
678
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
679
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
680
|
+
var ptr3 = r0;
|
|
681
|
+
var len3 = r1;
|
|
682
|
+
if (r3) {
|
|
683
|
+
ptr3 = 0; len3 = 0;
|
|
684
|
+
throw takeObject(r2);
|
|
685
|
+
}
|
|
686
|
+
deferred4_0 = ptr3;
|
|
687
|
+
deferred4_1 = len3;
|
|
688
|
+
return getStringFromWasm0(ptr3, len3);
|
|
689
|
+
} finally {
|
|
690
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
691
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
|
|
461
695
|
/**
|
|
462
696
|
* @param {TransactionHash} tx_body_hash
|
|
463
697
|
* @param {ByronAddress} addr
|
|
@@ -673,80 +907,6 @@ export function has_transaction_set_tag(tx_bytes) {
|
|
|
673
907
|
}
|
|
674
908
|
}
|
|
675
909
|
|
|
676
|
-
/**
|
|
677
|
-
* @param {string} password
|
|
678
|
-
* @param {string} salt
|
|
679
|
-
* @param {string} nonce
|
|
680
|
-
* @param {string} data
|
|
681
|
-
* @returns {string}
|
|
682
|
-
*/
|
|
683
|
-
export function encrypt_with_password(password, salt, nonce, data) {
|
|
684
|
-
let deferred6_0;
|
|
685
|
-
let deferred6_1;
|
|
686
|
-
try {
|
|
687
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
688
|
-
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
689
|
-
const len0 = WASM_VECTOR_LEN;
|
|
690
|
-
const ptr1 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
691
|
-
const len1 = WASM_VECTOR_LEN;
|
|
692
|
-
const ptr2 = passStringToWasm0(nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
693
|
-
const len2 = WASM_VECTOR_LEN;
|
|
694
|
-
const ptr3 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
695
|
-
const len3 = WASM_VECTOR_LEN;
|
|
696
|
-
wasm.encrypt_with_password(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
697
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
698
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
699
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
700
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
701
|
-
var ptr5 = r0;
|
|
702
|
-
var len5 = r1;
|
|
703
|
-
if (r3) {
|
|
704
|
-
ptr5 = 0; len5 = 0;
|
|
705
|
-
throw takeObject(r2);
|
|
706
|
-
}
|
|
707
|
-
deferred6_0 = ptr5;
|
|
708
|
-
deferred6_1 = len5;
|
|
709
|
-
return getStringFromWasm0(ptr5, len5);
|
|
710
|
-
} finally {
|
|
711
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
712
|
-
wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
/**
|
|
717
|
-
* @param {string} password
|
|
718
|
-
* @param {string} data
|
|
719
|
-
* @returns {string}
|
|
720
|
-
*/
|
|
721
|
-
export function decrypt_with_password(password, data) {
|
|
722
|
-
let deferred4_0;
|
|
723
|
-
let deferred4_1;
|
|
724
|
-
try {
|
|
725
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
726
|
-
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
727
|
-
const len0 = WASM_VECTOR_LEN;
|
|
728
|
-
const ptr1 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
729
|
-
const len1 = WASM_VECTOR_LEN;
|
|
730
|
-
wasm.decrypt_with_password(retptr, ptr0, len0, ptr1, len1);
|
|
731
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
732
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
733
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
734
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
735
|
-
var ptr3 = r0;
|
|
736
|
-
var len3 = r1;
|
|
737
|
-
if (r3) {
|
|
738
|
-
ptr3 = 0; len3 = 0;
|
|
739
|
-
throw takeObject(r2);
|
|
740
|
-
}
|
|
741
|
-
deferred4_0 = ptr3;
|
|
742
|
-
deferred4_1 = len3;
|
|
743
|
-
return getStringFromWasm0(ptr3, len3);
|
|
744
|
-
} finally {
|
|
745
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
746
|
-
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
|
|
750
910
|
/**
|
|
751
911
|
* @param {Address} address
|
|
752
912
|
* @param {TransactionUnspentOutputs} utxos
|
|
@@ -772,97 +932,6 @@ export function create_send_all(address, utxos, config) {
|
|
|
772
932
|
}
|
|
773
933
|
}
|
|
774
934
|
|
|
775
|
-
/**
|
|
776
|
-
* @param {Transaction} tx
|
|
777
|
-
* @param {LinearFee} linear_fee
|
|
778
|
-
* @returns {BigNum}
|
|
779
|
-
*/
|
|
780
|
-
export function min_fee(tx, linear_fee) {
|
|
781
|
-
try {
|
|
782
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
783
|
-
_assertClass(tx, Transaction);
|
|
784
|
-
_assertClass(linear_fee, LinearFee);
|
|
785
|
-
wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__wbg_ptr);
|
|
786
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
787
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
788
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
789
|
-
if (r2) {
|
|
790
|
-
throw takeObject(r1);
|
|
791
|
-
}
|
|
792
|
-
return BigNum.__wrap(r0);
|
|
793
|
-
} finally {
|
|
794
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
/**
|
|
799
|
-
* @param {ExUnits} ex_units
|
|
800
|
-
* @param {ExUnitPrices} ex_unit_prices
|
|
801
|
-
* @returns {BigNum}
|
|
802
|
-
*/
|
|
803
|
-
export function calculate_ex_units_ceil_cost(ex_units, ex_unit_prices) {
|
|
804
|
-
try {
|
|
805
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
806
|
-
_assertClass(ex_units, ExUnits);
|
|
807
|
-
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
808
|
-
wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
809
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
810
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
811
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
812
|
-
if (r2) {
|
|
813
|
-
throw takeObject(r1);
|
|
814
|
-
}
|
|
815
|
-
return BigNum.__wrap(r0);
|
|
816
|
-
} finally {
|
|
817
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
/**
|
|
822
|
-
* @param {Transaction} tx
|
|
823
|
-
* @param {ExUnitPrices} ex_unit_prices
|
|
824
|
-
* @returns {BigNum}
|
|
825
|
-
*/
|
|
826
|
-
export function min_script_fee(tx, ex_unit_prices) {
|
|
827
|
-
try {
|
|
828
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
829
|
-
_assertClass(tx, Transaction);
|
|
830
|
-
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
831
|
-
wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
832
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
833
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
834
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
835
|
-
if (r2) {
|
|
836
|
-
throw takeObject(r1);
|
|
837
|
-
}
|
|
838
|
-
return BigNum.__wrap(r0);
|
|
839
|
-
} finally {
|
|
840
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
/**
|
|
845
|
-
* @param {number} total_ref_scripts_size
|
|
846
|
-
* @param {UnitInterval} ref_script_coins_per_byte
|
|
847
|
-
* @returns {BigNum}
|
|
848
|
-
*/
|
|
849
|
-
export function min_ref_script_fee(total_ref_scripts_size, ref_script_coins_per_byte) {
|
|
850
|
-
try {
|
|
851
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
852
|
-
_assertClass(ref_script_coins_per_byte, UnitInterval);
|
|
853
|
-
wasm.min_ref_script_fee(retptr, total_ref_scripts_size, ref_script_coins_per_byte.__wbg_ptr);
|
|
854
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
855
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
856
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
857
|
-
if (r2) {
|
|
858
|
-
throw takeObject(r1);
|
|
859
|
-
}
|
|
860
|
-
return BigNum.__wrap(r0);
|
|
861
|
-
} finally {
|
|
862
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
|
|
866
935
|
/**
|
|
867
936
|
* @param {string} json
|
|
868
937
|
* @param {PlutusDatumSchema} schema
|
|
@@ -1006,13 +1075,6 @@ export function decode_metadatum_to_json_str(metadatum, schema) {
|
|
|
1006
1075
|
}
|
|
1007
1076
|
}
|
|
1008
1077
|
|
|
1009
|
-
function passArray32ToWasm0(arg, malloc) {
|
|
1010
|
-
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
1011
|
-
getUint32Memory0().set(arg, ptr / 4);
|
|
1012
|
-
WASM_VECTOR_LEN = arg.length;
|
|
1013
|
-
return ptr;
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
1078
|
function handleError(f, args) {
|
|
1017
1079
|
try {
|
|
1018
1080
|
return f.apply(this, args);
|
|
@@ -1025,51 +1087,41 @@ function handleError(f, args) {
|
|
|
1025
1087
|
export const MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1026
1088
|
/**
|
|
1027
1089
|
*/
|
|
1028
|
-
export const
|
|
1029
|
-
/**
|
|
1030
|
-
*/
|
|
1031
|
-
export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1032
|
-
/**
|
|
1033
|
-
*/
|
|
1034
|
-
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", });
|
|
1090
|
+
export const DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1035
1091
|
/**
|
|
1036
1092
|
*/
|
|
1037
|
-
export const
|
|
1093
|
+
export const RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1038
1094
|
/**
|
|
1039
1095
|
*/
|
|
1040
|
-
export const
|
|
1096
|
+
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", });
|
|
1041
1097
|
/**
|
|
1042
|
-
* Used to choosed the schema for a script JSON string
|
|
1043
1098
|
*/
|
|
1044
|
-
export const
|
|
1099
|
+
export const TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1045
1100
|
/**
|
|
1046
1101
|
*/
|
|
1047
|
-
export const
|
|
1102
|
+
export const CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1048
1103
|
/**
|
|
1049
1104
|
*/
|
|
1050
|
-
export const
|
|
1105
|
+
export const CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1051
1106
|
/**
|
|
1052
|
-
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1053
1107
|
*/
|
|
1054
|
-
|
|
1108
|
+
export const CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1055
1109
|
/**
|
|
1056
|
-
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1057
1110
|
*/
|
|
1058
|
-
|
|
1111
|
+
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", });
|
|
1059
1112
|
/**
|
|
1060
|
-
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1061
1113
|
*/
|
|
1062
|
-
|
|
1114
|
+
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", });
|
|
1063
1115
|
/**
|
|
1064
|
-
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1065
1116
|
*/
|
|
1066
|
-
|
|
1117
|
+
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", });
|
|
1067
1118
|
/**
|
|
1068
1119
|
*/
|
|
1069
|
-
export const
|
|
1120
|
+
export const MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1070
1121
|
/**
|
|
1122
|
+
* Used to choosed the schema for a script JSON string
|
|
1071
1123
|
*/
|
|
1072
|
-
export const
|
|
1124
|
+
export const ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1073
1125
|
/**
|
|
1074
1126
|
* JSON <-> PlutusData conversion schemas.
|
|
1075
1127
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
@@ -1123,29 +1175,32 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
1123
1175
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1124
1176
|
/**
|
|
1125
1177
|
*/
|
|
1126
|
-
export const
|
|
1178
|
+
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", });
|
|
1127
1179
|
/**
|
|
1128
1180
|
*/
|
|
1129
|
-
export const
|
|
1181
|
+
export const MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1130
1182
|
/**
|
|
1131
1183
|
*/
|
|
1132
|
-
export const
|
|
1184
|
+
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", });
|
|
1133
1185
|
/**
|
|
1134
|
-
* Each new language uses a different namespace for hashing its script
|
|
1135
|
-
* This is because you could have a language where the same bytes have different semantics
|
|
1136
|
-
* So this avoids scripts in different languages mapping to the same hash
|
|
1137
|
-
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1138
1186
|
*/
|
|
1139
|
-
export const
|
|
1187
|
+
export const CoinSelectionStrategyCIP2 = Object.freeze({
|
|
1140
1188
|
/**
|
|
1189
|
+
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1141
1190
|
*/
|
|
1142
|
-
|
|
1191
|
+
LargestFirst:0,"0":"LargestFirst",
|
|
1143
1192
|
/**
|
|
1193
|
+
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1144
1194
|
*/
|
|
1145
|
-
|
|
1195
|
+
RandomImprove:1,"1":"RandomImprove",
|
|
1146
1196
|
/**
|
|
1197
|
+
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1147
1198
|
*/
|
|
1148
|
-
|
|
1199
|
+
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
1200
|
+
/**
|
|
1201
|
+
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1202
|
+
*/
|
|
1203
|
+
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1149
1204
|
/**
|
|
1150
1205
|
*/
|
|
1151
1206
|
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", });
|
|
@@ -1157,16 +1212,23 @@ export const LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1
|
|
|
1157
1212
|
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
1213
|
/**
|
|
1159
1214
|
*/
|
|
1160
|
-
export const
|
|
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", });
|
|
1161
1216
|
/**
|
|
1162
1217
|
*/
|
|
1163
|
-
export const
|
|
1218
|
+
export const NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1219
|
+
/**
|
|
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", });
|
|
1164
1226
|
/**
|
|
1165
1227
|
*/
|
|
1166
|
-
export const
|
|
1228
|
+
export const ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1167
1229
|
/**
|
|
1168
1230
|
*/
|
|
1169
|
-
export const
|
|
1231
|
+
export const VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1170
1232
|
|
|
1171
1233
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1172
1234
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2369,7 +2431,7 @@ export class Assets {
|
|
|
2369
2431
|
* @returns {number}
|
|
2370
2432
|
*/
|
|
2371
2433
|
len() {
|
|
2372
|
-
const ret = wasm.
|
|
2434
|
+
const ret = wasm.assets_len(this.__wbg_ptr);
|
|
2373
2435
|
return ret >>> 0;
|
|
2374
2436
|
}
|
|
2375
2437
|
/**
|
|
@@ -8505,7 +8567,7 @@ export class DRep {
|
|
|
8505
8567
|
*/
|
|
8506
8568
|
static new_key_hash(key_hash) {
|
|
8507
8569
|
_assertClass(key_hash, Ed25519KeyHash);
|
|
8508
|
-
const ret = wasm.
|
|
8570
|
+
const ret = wasm.credential_from_keyhash(key_hash.__wbg_ptr);
|
|
8509
8571
|
return DRep.__wrap(ret);
|
|
8510
8572
|
}
|
|
8511
8573
|
/**
|
|
@@ -8514,7 +8576,7 @@ export class DRep {
|
|
|
8514
8576
|
*/
|
|
8515
8577
|
static new_script_hash(script_hash) {
|
|
8516
8578
|
_assertClass(script_hash, ScriptHash);
|
|
8517
|
-
const ret = wasm.
|
|
8579
|
+
const ret = wasm.credential_from_scripthash(script_hash.__wbg_ptr);
|
|
8518
8580
|
return DRep.__wrap(ret);
|
|
8519
8581
|
}
|
|
8520
8582
|
/**
|
|
@@ -9211,14 +9273,14 @@ export class DRepUpdate {
|
|
|
9211
9273
|
* @returns {Credential}
|
|
9212
9274
|
*/
|
|
9213
9275
|
voting_credential() {
|
|
9214
|
-
const ret = wasm.
|
|
9276
|
+
const ret = wasm.committeecoldresign_committee_cold_credential(this.__wbg_ptr);
|
|
9215
9277
|
return Credential.__wrap(ret);
|
|
9216
9278
|
}
|
|
9217
9279
|
/**
|
|
9218
9280
|
* @returns {Anchor | undefined}
|
|
9219
9281
|
*/
|
|
9220
9282
|
anchor() {
|
|
9221
|
-
const ret = wasm.
|
|
9283
|
+
const ret = wasm.committeecoldresign_anchor(this.__wbg_ptr);
|
|
9222
9284
|
return ret === 0 ? undefined : Anchor.__wrap(ret);
|
|
9223
9285
|
}
|
|
9224
9286
|
/**
|
|
@@ -9227,7 +9289,7 @@ export class DRepUpdate {
|
|
|
9227
9289
|
*/
|
|
9228
9290
|
static new(voting_credential) {
|
|
9229
9291
|
_assertClass(voting_credential, Credential);
|
|
9230
|
-
const ret = wasm.
|
|
9292
|
+
const ret = wasm.committeecoldresign_new(voting_credential.__wbg_ptr);
|
|
9231
9293
|
return DRepUpdate.__wrap(ret);
|
|
9232
9294
|
}
|
|
9233
9295
|
/**
|
|
@@ -9238,14 +9300,14 @@ export class DRepUpdate {
|
|
|
9238
9300
|
static new_with_anchor(voting_credential, anchor) {
|
|
9239
9301
|
_assertClass(voting_credential, Credential);
|
|
9240
9302
|
_assertClass(anchor, Anchor);
|
|
9241
|
-
const ret = wasm.
|
|
9303
|
+
const ret = wasm.committeecoldresign_new_with_anchor(voting_credential.__wbg_ptr, anchor.__wbg_ptr);
|
|
9242
9304
|
return DRepUpdate.__wrap(ret);
|
|
9243
9305
|
}
|
|
9244
9306
|
/**
|
|
9245
9307
|
* @returns {boolean}
|
|
9246
9308
|
*/
|
|
9247
9309
|
has_script_credentials() {
|
|
9248
|
-
const ret = wasm.
|
|
9310
|
+
const ret = wasm.committeecoldresign_has_script_credentials(this.__wbg_ptr);
|
|
9249
9311
|
return ret !== 0;
|
|
9250
9312
|
}
|
|
9251
9313
|
}
|
|
@@ -9620,7 +9682,7 @@ export class DataCost {
|
|
|
9620
9682
|
*/
|
|
9621
9683
|
static new_coins_per_byte(coins_per_byte) {
|
|
9622
9684
|
_assertClass(coins_per_byte, BigNum);
|
|
9623
|
-
const ret = wasm.
|
|
9685
|
+
const ret = wasm.datacost_new_coins_per_byte(coins_per_byte.__wbg_ptr);
|
|
9624
9686
|
return DataCost.__wrap(ret);
|
|
9625
9687
|
}
|
|
9626
9688
|
/**
|
|
@@ -10163,14 +10225,14 @@ export class Ed25519KeyHashes {
|
|
|
10163
10225
|
* @returns {Ed25519KeyHashes}
|
|
10164
10226
|
*/
|
|
10165
10227
|
static new() {
|
|
10166
|
-
const ret = wasm.
|
|
10228
|
+
const ret = wasm.ed25519keyhashes_new();
|
|
10167
10229
|
return Ed25519KeyHashes.__wrap(ret);
|
|
10168
10230
|
}
|
|
10169
10231
|
/**
|
|
10170
10232
|
* @returns {number}
|
|
10171
10233
|
*/
|
|
10172
10234
|
len() {
|
|
10173
|
-
const ret = wasm.
|
|
10235
|
+
const ret = wasm.ed25519keyhashes_len(this.__wbg_ptr);
|
|
10174
10236
|
return ret >>> 0;
|
|
10175
10237
|
}
|
|
10176
10238
|
/**
|
|
@@ -12417,7 +12479,7 @@ export class GenesisHashes {
|
|
|
12417
12479
|
* @returns {number}
|
|
12418
12480
|
*/
|
|
12419
12481
|
len() {
|
|
12420
|
-
const ret = wasm.
|
|
12482
|
+
const ret = wasm.genesishashes_len(this.__wbg_ptr);
|
|
12421
12483
|
return ret >>> 0;
|
|
12422
12484
|
}
|
|
12423
12485
|
/**
|
|
@@ -13223,7 +13285,7 @@ export class GovernanceActionIds {
|
|
|
13223
13285
|
* @returns {GovernanceActionIds}
|
|
13224
13286
|
*/
|
|
13225
13287
|
static new() {
|
|
13226
|
-
const ret = wasm.
|
|
13288
|
+
const ret = wasm.assetnames_new();
|
|
13227
13289
|
return GovernanceActionIds.__wrap(ret);
|
|
13228
13290
|
}
|
|
13229
13291
|
/**
|
|
@@ -15323,7 +15385,7 @@ export class LegacyDaedalusPrivateKey {
|
|
|
15323
15385
|
as_bytes() {
|
|
15324
15386
|
try {
|
|
15325
15387
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15326
|
-
wasm.
|
|
15388
|
+
wasm.bip32privatekey_as_bytes(retptr, this.__wbg_ptr);
|
|
15327
15389
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
15328
15390
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
15329
15391
|
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
@@ -15339,7 +15401,7 @@ export class LegacyDaedalusPrivateKey {
|
|
|
15339
15401
|
chaincode() {
|
|
15340
15402
|
try {
|
|
15341
15403
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15342
|
-
wasm.
|
|
15404
|
+
wasm.bip32privatekey_chaincode(retptr, this.__wbg_ptr);
|
|
15343
15405
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
15344
15406
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
15345
15407
|
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
@@ -15790,7 +15852,7 @@ export class MetadataList {
|
|
|
15790
15852
|
* @returns {number}
|
|
15791
15853
|
*/
|
|
15792
15854
|
len() {
|
|
15793
|
-
const ret = wasm.
|
|
15855
|
+
const ret = wasm.metadatalist_len(this.__wbg_ptr);
|
|
15794
15856
|
return ret >>> 0;
|
|
15795
15857
|
}
|
|
15796
15858
|
/**
|
|
@@ -16240,7 +16302,7 @@ export class Mint {
|
|
|
16240
16302
|
* @returns {number}
|
|
16241
16303
|
*/
|
|
16242
16304
|
len() {
|
|
16243
|
-
const ret = wasm.
|
|
16305
|
+
const ret = wasm.mint_len(this.__wbg_ptr);
|
|
16244
16306
|
return ret >>> 0;
|
|
16245
16307
|
}
|
|
16246
16308
|
/**
|
|
@@ -16347,7 +16409,7 @@ export class MintAssets {
|
|
|
16347
16409
|
* @returns {number}
|
|
16348
16410
|
*/
|
|
16349
16411
|
len() {
|
|
16350
|
-
const ret = wasm.
|
|
16412
|
+
const ret = wasm.assets_len(this.__wbg_ptr);
|
|
16351
16413
|
return ret >>> 0;
|
|
16352
16414
|
}
|
|
16353
16415
|
/**
|
|
@@ -17296,7 +17358,7 @@ export class MultiAsset {
|
|
|
17296
17358
|
* @returns {number}
|
|
17297
17359
|
*/
|
|
17298
17360
|
len() {
|
|
17299
|
-
const ret = wasm.
|
|
17361
|
+
const ret = wasm.assets_len(this.__wbg_ptr);
|
|
17300
17362
|
return ret >>> 0;
|
|
17301
17363
|
}
|
|
17302
17364
|
/**
|
|
@@ -17955,7 +18017,7 @@ export class NativeScripts {
|
|
|
17955
18017
|
* @returns {number}
|
|
17956
18018
|
*/
|
|
17957
18019
|
len() {
|
|
17958
|
-
const ret = wasm.
|
|
18020
|
+
const ret = wasm.nativescripts_len(this.__wbg_ptr);
|
|
17959
18021
|
return ret >>> 0;
|
|
17960
18022
|
}
|
|
17961
18023
|
/**
|
|
@@ -19944,7 +20006,7 @@ export class PlutusList {
|
|
|
19944
20006
|
* @returns {number}
|
|
19945
20007
|
*/
|
|
19946
20008
|
len() {
|
|
19947
|
-
const ret = wasm.
|
|
20009
|
+
const ret = wasm.plutuslist_len(this.__wbg_ptr);
|
|
19948
20010
|
return ret >>> 0;
|
|
19949
20011
|
}
|
|
19950
20012
|
/**
|
|
@@ -20143,14 +20205,14 @@ export class PlutusMapValues {
|
|
|
20143
20205
|
* @returns {PlutusMapValues}
|
|
20144
20206
|
*/
|
|
20145
20207
|
static new() {
|
|
20146
|
-
const ret = wasm.
|
|
20208
|
+
const ret = wasm.plutusmapvalues_new();
|
|
20147
20209
|
return PlutusMapValues.__wrap(ret);
|
|
20148
20210
|
}
|
|
20149
20211
|
/**
|
|
20150
20212
|
* @returns {number}
|
|
20151
20213
|
*/
|
|
20152
20214
|
len() {
|
|
20153
|
-
const ret = wasm.
|
|
20215
|
+
const ret = wasm.plutuslist_len(this.__wbg_ptr);
|
|
20154
20216
|
return ret >>> 0;
|
|
20155
20217
|
}
|
|
20156
20218
|
/**
|
|
@@ -20715,7 +20777,7 @@ export class PlutusScripts {
|
|
|
20715
20777
|
* @returns {number}
|
|
20716
20778
|
*/
|
|
20717
20779
|
len() {
|
|
20718
|
-
const ret = wasm.
|
|
20780
|
+
const ret = wasm.plutusscripts_len(this.__wbg_ptr);
|
|
20719
20781
|
return ret >>> 0;
|
|
20720
20782
|
}
|
|
20721
20783
|
/**
|
|
@@ -20862,14 +20924,14 @@ export class PlutusWitnesses {
|
|
|
20862
20924
|
* @returns {PlutusWitnesses}
|
|
20863
20925
|
*/
|
|
20864
20926
|
static new() {
|
|
20865
|
-
const ret = wasm.
|
|
20927
|
+
const ret = wasm.plutuswitnesses_new();
|
|
20866
20928
|
return PlutusWitnesses.__wrap(ret);
|
|
20867
20929
|
}
|
|
20868
20930
|
/**
|
|
20869
20931
|
* @returns {number}
|
|
20870
20932
|
*/
|
|
20871
20933
|
len() {
|
|
20872
|
-
const ret = wasm.
|
|
20934
|
+
const ret = wasm.plutuswitnesses_len(this.__wbg_ptr);
|
|
20873
20935
|
return ret >>> 0;
|
|
20874
20936
|
}
|
|
20875
20937
|
/**
|
|
@@ -21013,7 +21075,7 @@ export class Pointer {
|
|
|
21013
21075
|
* @returns {BigNum}
|
|
21014
21076
|
*/
|
|
21015
21077
|
cert_index_bignum() {
|
|
21016
|
-
const ret = wasm.
|
|
21078
|
+
const ret = wasm.constrplutusdata_alternative(this.__wbg_ptr);
|
|
21017
21079
|
return BigNum.__wrap(ret);
|
|
21018
21080
|
}
|
|
21019
21081
|
}
|
|
@@ -23843,7 +23905,7 @@ export class PublicKeys {
|
|
|
23843
23905
|
/**
|
|
23844
23906
|
*/
|
|
23845
23907
|
constructor() {
|
|
23846
|
-
const ret = wasm.
|
|
23908
|
+
const ret = wasm.languages_new();
|
|
23847
23909
|
this.__wbg_ptr = ret >>> 0;
|
|
23848
23910
|
return this;
|
|
23849
23911
|
}
|
|
@@ -23851,7 +23913,7 @@ export class PublicKeys {
|
|
|
23851
23913
|
* @returns {number}
|
|
23852
23914
|
*/
|
|
23853
23915
|
size() {
|
|
23854
|
-
const ret = wasm.
|
|
23916
|
+
const ret = wasm.publickeys_size(this.__wbg_ptr);
|
|
23855
23917
|
return ret >>> 0;
|
|
23856
23918
|
}
|
|
23857
23919
|
/**
|
|
@@ -24485,7 +24547,7 @@ export class Redeemers {
|
|
|
24485
24547
|
* @returns {number}
|
|
24486
24548
|
*/
|
|
24487
24549
|
len() {
|
|
24488
|
-
const ret = wasm.
|
|
24550
|
+
const ret = wasm.redeemers_len(this.__wbg_ptr);
|
|
24489
24551
|
return ret >>> 0;
|
|
24490
24552
|
}
|
|
24491
24553
|
/**
|
|
@@ -25205,7 +25267,7 @@ export class RewardAddresses {
|
|
|
25205
25267
|
* @returns {number}
|
|
25206
25268
|
*/
|
|
25207
25269
|
len() {
|
|
25208
|
-
const ret = wasm.
|
|
25270
|
+
const ret = wasm.rewardaddresses_len(this.__wbg_ptr);
|
|
25209
25271
|
return ret >>> 0;
|
|
25210
25272
|
}
|
|
25211
25273
|
/**
|
|
@@ -26091,7 +26153,7 @@ export class ScriptHashes {
|
|
|
26091
26153
|
* @returns {number}
|
|
26092
26154
|
*/
|
|
26093
26155
|
len() {
|
|
26094
|
-
const ret = wasm.
|
|
26156
|
+
const ret = wasm.genesishashes_len(this.__wbg_ptr);
|
|
26095
26157
|
return ret >>> 0;
|
|
26096
26158
|
}
|
|
26097
26159
|
/**
|
|
@@ -27521,7 +27583,7 @@ export class StakeDelegation {
|
|
|
27521
27583
|
* @returns {Credential}
|
|
27522
27584
|
*/
|
|
27523
27585
|
stake_credential() {
|
|
27524
|
-
const ret = wasm.
|
|
27586
|
+
const ret = wasm.stakedelegation_stake_credential(this.__wbg_ptr);
|
|
27525
27587
|
return Credential.__wrap(ret);
|
|
27526
27588
|
}
|
|
27527
27589
|
/**
|
|
@@ -27546,7 +27608,7 @@ export class StakeDelegation {
|
|
|
27546
27608
|
* @returns {boolean}
|
|
27547
27609
|
*/
|
|
27548
27610
|
has_script_credentials() {
|
|
27549
|
-
const ret = wasm.
|
|
27611
|
+
const ret = wasm.stakedelegation_has_script_credentials(this.__wbg_ptr);
|
|
27550
27612
|
return ret !== 0;
|
|
27551
27613
|
}
|
|
27552
27614
|
}
|
|
@@ -27936,14 +27998,14 @@ export class StakeRegistration {
|
|
|
27936
27998
|
* @returns {Credential}
|
|
27937
27999
|
*/
|
|
27938
28000
|
stake_credential() {
|
|
27939
|
-
const ret = wasm.
|
|
28001
|
+
const ret = wasm.stakederegistration_stake_credential(this.__wbg_ptr);
|
|
27940
28002
|
return Credential.__wrap(ret);
|
|
27941
28003
|
}
|
|
27942
28004
|
/**
|
|
27943
28005
|
* @returns {BigNum | undefined}
|
|
27944
28006
|
*/
|
|
27945
28007
|
coin() {
|
|
27946
|
-
const ret = wasm.
|
|
28008
|
+
const ret = wasm.stakederegistration_coin(this.__wbg_ptr);
|
|
27947
28009
|
return ret === 0 ? undefined : BigNum.__wrap(ret);
|
|
27948
28010
|
}
|
|
27949
28011
|
/**
|
|
@@ -27952,7 +28014,7 @@ export class StakeRegistration {
|
|
|
27952
28014
|
*/
|
|
27953
28015
|
static new(stake_credential) {
|
|
27954
28016
|
_assertClass(stake_credential, Credential);
|
|
27955
|
-
const ret = wasm.
|
|
28017
|
+
const ret = wasm.stakederegistration_new(stake_credential.__wbg_ptr);
|
|
27956
28018
|
return StakeRegistration.__wrap(ret);
|
|
27957
28019
|
}
|
|
27958
28020
|
/**
|
|
@@ -27963,14 +28025,14 @@ export class StakeRegistration {
|
|
|
27963
28025
|
static new_with_explicit_deposit(stake_credential, coin) {
|
|
27964
28026
|
_assertClass(stake_credential, Credential);
|
|
27965
28027
|
_assertClass(coin, BigNum);
|
|
27966
|
-
const ret = wasm.
|
|
28028
|
+
const ret = wasm.stakederegistration_new_with_explicit_refund(stake_credential.__wbg_ptr, coin.__wbg_ptr);
|
|
27967
28029
|
return StakeRegistration.__wrap(ret);
|
|
27968
28030
|
}
|
|
27969
28031
|
/**
|
|
27970
28032
|
* @returns {boolean}
|
|
27971
28033
|
*/
|
|
27972
28034
|
has_script_credentials() {
|
|
27973
|
-
const ret = wasm.
|
|
28035
|
+
const ret = wasm.stakederegistration_has_script_credentials(this.__wbg_ptr);
|
|
27974
28036
|
return ret !== 0;
|
|
27975
28037
|
}
|
|
27976
28038
|
}
|
|
@@ -28162,7 +28224,7 @@ export class StakeRegistrationAndDelegation {
|
|
|
28162
28224
|
* @returns {BigNum}
|
|
28163
28225
|
*/
|
|
28164
28226
|
coin() {
|
|
28165
|
-
const ret = wasm.
|
|
28227
|
+
const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
|
|
28166
28228
|
return BigNum.__wrap(ret);
|
|
28167
28229
|
}
|
|
28168
28230
|
/**
|
|
@@ -28381,7 +28443,7 @@ export class StakeVoteRegistrationAndDelegation {
|
|
|
28381
28443
|
* @returns {BigNum}
|
|
28382
28444
|
*/
|
|
28383
28445
|
coin() {
|
|
28384
|
-
const ret = wasm.
|
|
28446
|
+
const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
|
|
28385
28447
|
return BigNum.__wrap(ret);
|
|
28386
28448
|
}
|
|
28387
28449
|
/**
|
|
@@ -28445,7 +28507,7 @@ export class Strings {
|
|
|
28445
28507
|
* @returns {number}
|
|
28446
28508
|
*/
|
|
28447
28509
|
len() {
|
|
28448
|
-
const ret = wasm.
|
|
28510
|
+
const ret = wasm.strings_len(this.__wbg_ptr);
|
|
28449
28511
|
return ret >>> 0;
|
|
28450
28512
|
}
|
|
28451
28513
|
/**
|
|
@@ -28689,7 +28751,7 @@ export class TimelockExpiry {
|
|
|
28689
28751
|
*/
|
|
28690
28752
|
static new_timelockexpiry(slot) {
|
|
28691
28753
|
_assertClass(slot, BigNum);
|
|
28692
|
-
const ret = wasm.
|
|
28754
|
+
const ret = wasm.drepregistration_coin(slot.__wbg_ptr);
|
|
28693
28755
|
return TimelockExpiry.__wrap(ret);
|
|
28694
28756
|
}
|
|
28695
28757
|
}
|
|
@@ -28909,7 +28971,7 @@ export class TimelockStart {
|
|
|
28909
28971
|
*/
|
|
28910
28972
|
static new_timelockstart(slot) {
|
|
28911
28973
|
_assertClass(slot, BigNum);
|
|
28912
|
-
const ret = wasm.
|
|
28974
|
+
const ret = wasm.drepregistration_coin(slot.__wbg_ptr);
|
|
28913
28975
|
return TimelockStart.__wrap(ret);
|
|
28914
28976
|
}
|
|
28915
28977
|
}
|
|
@@ -29166,7 +29228,7 @@ export class TransactionBatch {
|
|
|
29166
29228
|
* @returns {number}
|
|
29167
29229
|
*/
|
|
29168
29230
|
len() {
|
|
29169
|
-
const ret = wasm.
|
|
29231
|
+
const ret = wasm.transactionbatch_len(this.__wbg_ptr);
|
|
29170
29232
|
return ret >>> 0;
|
|
29171
29233
|
}
|
|
29172
29234
|
/**
|
|
@@ -29209,7 +29271,7 @@ export class TransactionBatchList {
|
|
|
29209
29271
|
* @returns {number}
|
|
29210
29272
|
*/
|
|
29211
29273
|
len() {
|
|
29212
|
-
const ret = wasm.
|
|
29274
|
+
const ret = wasm.transactionbatchlist_len(this.__wbg_ptr);
|
|
29213
29275
|
return ret >>> 0;
|
|
29214
29276
|
}
|
|
29215
29277
|
/**
|
|
@@ -29402,7 +29464,7 @@ export class TransactionBodies {
|
|
|
29402
29464
|
* @returns {number}
|
|
29403
29465
|
*/
|
|
29404
29466
|
len() {
|
|
29405
|
-
const ret = wasm.
|
|
29467
|
+
const ret = wasm.transactionbodies_len(this.__wbg_ptr);
|
|
29406
29468
|
return ret >>> 0;
|
|
29407
29469
|
}
|
|
29408
29470
|
/**
|
|
@@ -31808,7 +31870,7 @@ export class TransactionInputs {
|
|
|
31808
31870
|
* @returns {number}
|
|
31809
31871
|
*/
|
|
31810
31872
|
len() {
|
|
31811
|
-
const ret = wasm.
|
|
31873
|
+
const ret = wasm.transactioninputs_len(this.__wbg_ptr);
|
|
31812
31874
|
return ret >>> 0;
|
|
31813
31875
|
}
|
|
31814
31876
|
/**
|
|
@@ -32015,7 +32077,7 @@ export class TransactionMetadatum {
|
|
|
32015
32077
|
* @returns {TransactionMetadatumKind}
|
|
32016
32078
|
*/
|
|
32017
32079
|
kind() {
|
|
32018
|
-
const ret = wasm.
|
|
32080
|
+
const ret = wasm.transactionmetadatum_kind(this.__wbg_ptr);
|
|
32019
32081
|
return ret;
|
|
32020
32082
|
}
|
|
32021
32083
|
/**
|
|
@@ -32229,14 +32291,14 @@ export class TransactionMetadatumLabels {
|
|
|
32229
32291
|
* @returns {TransactionMetadatumLabels}
|
|
32230
32292
|
*/
|
|
32231
32293
|
static new() {
|
|
32232
|
-
const ret = wasm.
|
|
32294
|
+
const ret = wasm.plutusmapvalues_new();
|
|
32233
32295
|
return TransactionMetadatumLabels.__wrap(ret);
|
|
32234
32296
|
}
|
|
32235
32297
|
/**
|
|
32236
32298
|
* @returns {number}
|
|
32237
32299
|
*/
|
|
32238
32300
|
len() {
|
|
32239
|
-
const ret = wasm.
|
|
32301
|
+
const ret = wasm.transactionmetadatumlabels_len(this.__wbg_ptr);
|
|
32240
32302
|
return ret >>> 0;
|
|
32241
32303
|
}
|
|
32242
32304
|
/**
|
|
@@ -32893,7 +32955,7 @@ export class TransactionOutputs {
|
|
|
32893
32955
|
* @returns {number}
|
|
32894
32956
|
*/
|
|
32895
32957
|
len() {
|
|
32896
|
-
const ret = wasm.
|
|
32958
|
+
const ret = wasm.transactionoutputs_len(this.__wbg_ptr);
|
|
32897
32959
|
return ret >>> 0;
|
|
32898
32960
|
}
|
|
32899
32961
|
/**
|
|
@@ -33674,7 +33736,7 @@ export class TransactionWitnessSets {
|
|
|
33674
33736
|
* @returns {number}
|
|
33675
33737
|
*/
|
|
33676
33738
|
len() {
|
|
33677
|
-
const ret = wasm.
|
|
33739
|
+
const ret = wasm.transactionwitnesssets_len(this.__wbg_ptr);
|
|
33678
33740
|
return ret >>> 0;
|
|
33679
33741
|
}
|
|
33680
33742
|
/**
|
|
@@ -33822,7 +33884,7 @@ export class TreasuryWithdrawals {
|
|
|
33822
33884
|
* @returns {number}
|
|
33823
33885
|
*/
|
|
33824
33886
|
len() {
|
|
33825
|
-
const ret = wasm.
|
|
33887
|
+
const ret = wasm.treasurywithdrawals_len(this.__wbg_ptr);
|
|
33826
33888
|
return ret >>> 0;
|
|
33827
33889
|
}
|
|
33828
33890
|
}
|
|
@@ -36348,7 +36410,7 @@ export class Vkeys {
|
|
|
36348
36410
|
* @returns {number}
|
|
36349
36411
|
*/
|
|
36350
36412
|
len() {
|
|
36351
|
-
const ret = wasm.
|
|
36413
|
+
const ret = wasm.vkeys_len(this.__wbg_ptr);
|
|
36352
36414
|
return ret >>> 0;
|
|
36353
36415
|
}
|
|
36354
36416
|
/**
|
|
@@ -37144,7 +37206,7 @@ export class VoteRegistrationAndDelegation {
|
|
|
37144
37206
|
* @returns {Credential}
|
|
37145
37207
|
*/
|
|
37146
37208
|
stake_credential() {
|
|
37147
|
-
const ret = wasm.
|
|
37209
|
+
const ret = wasm.voteregistrationanddelegation_stake_credential(this.__wbg_ptr);
|
|
37148
37210
|
return Credential.__wrap(ret);
|
|
37149
37211
|
}
|
|
37150
37212
|
/**
|
|
@@ -37158,7 +37220,7 @@ export class VoteRegistrationAndDelegation {
|
|
|
37158
37220
|
* @returns {BigNum}
|
|
37159
37221
|
*/
|
|
37160
37222
|
coin() {
|
|
37161
|
-
const ret = wasm.
|
|
37223
|
+
const ret = wasm.stakeregistrationanddelegation_coin(this.__wbg_ptr);
|
|
37162
37224
|
return BigNum.__wrap(ret);
|
|
37163
37225
|
}
|
|
37164
37226
|
/**
|
|
@@ -37178,7 +37240,7 @@ export class VoteRegistrationAndDelegation {
|
|
|
37178
37240
|
* @returns {boolean}
|
|
37179
37241
|
*/
|
|
37180
37242
|
has_script_credentials() {
|
|
37181
|
-
const ret = wasm.
|
|
37243
|
+
const ret = wasm.voteregistrationanddelegation_has_script_credentials(this.__wbg_ptr);
|
|
37182
37244
|
return ret !== 0;
|
|
37183
37245
|
}
|
|
37184
37246
|
}
|
|
@@ -37519,7 +37581,7 @@ export class Voters {
|
|
|
37519
37581
|
* @returns {Voters}
|
|
37520
37582
|
*/
|
|
37521
37583
|
static new() {
|
|
37522
|
-
const ret = wasm.
|
|
37584
|
+
const ret = wasm.vkeys_new();
|
|
37523
37585
|
return Voters.__wrap(ret);
|
|
37524
37586
|
}
|
|
37525
37587
|
/**
|
|
@@ -37541,7 +37603,7 @@ export class Voters {
|
|
|
37541
37603
|
* @returns {number}
|
|
37542
37604
|
*/
|
|
37543
37605
|
len() {
|
|
37544
|
-
const ret = wasm.
|
|
37606
|
+
const ret = wasm.voters_len(this.__wbg_ptr);
|
|
37545
37607
|
return ret >>> 0;
|
|
37546
37608
|
}
|
|
37547
37609
|
}
|
|
@@ -37576,7 +37638,7 @@ export class VotingBuilder {
|
|
|
37576
37638
|
* @returns {VotingBuilder}
|
|
37577
37639
|
*/
|
|
37578
37640
|
static new() {
|
|
37579
|
-
const ret = wasm.
|
|
37641
|
+
const ret = wasm.costmdls_new();
|
|
37580
37642
|
return VotingBuilder.__wrap(ret);
|
|
37581
37643
|
}
|
|
37582
37644
|
/**
|
|
@@ -37881,7 +37943,7 @@ export class VotingProcedure {
|
|
|
37881
37943
|
* @returns {Anchor | undefined}
|
|
37882
37944
|
*/
|
|
37883
37945
|
anchor() {
|
|
37884
|
-
const ret = wasm.
|
|
37946
|
+
const ret = wasm.votingprocedure_anchor(this.__wbg_ptr);
|
|
37885
37947
|
return ret === 0 ? undefined : Anchor.__wrap(ret);
|
|
37886
37948
|
}
|
|
37887
37949
|
}
|
|
@@ -38059,7 +38121,7 @@ export class VotingProcedures {
|
|
|
38059
38121
|
* @returns {VotingProcedures}
|
|
38060
38122
|
*/
|
|
38061
38123
|
static new() {
|
|
38062
|
-
const ret = wasm.
|
|
38124
|
+
const ret = wasm.votingprocedures_new();
|
|
38063
38125
|
return VotingProcedures.__wrap(ret);
|
|
38064
38126
|
}
|
|
38065
38127
|
/**
|
|
@@ -39005,11 +39067,6 @@ export function __wbindgen_string_new(arg0, arg1) {
|
|
|
39005
39067
|
return addHeapObject(ret);
|
|
39006
39068
|
};
|
|
39007
39069
|
|
|
39008
|
-
export function __wbindgen_error_new(arg0, arg1) {
|
|
39009
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
39010
|
-
return addHeapObject(ret);
|
|
39011
|
-
};
|
|
39012
|
-
|
|
39013
39070
|
export function __wbindgen_is_undefined(arg0) {
|
|
39014
39071
|
const ret = getObject(arg0) === undefined;
|
|
39015
39072
|
return ret;
|
|
@@ -39035,6 +39092,17 @@ export function __wbindgen_jsval_eq(arg0, arg1) {
|
|
|
39035
39092
|
return ret;
|
|
39036
39093
|
};
|
|
39037
39094
|
|
|
39095
|
+
export function __wbindgen_bigint_from_u64(arg0) {
|
|
39096
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
39097
|
+
return addHeapObject(ret);
|
|
39098
|
+
};
|
|
39099
|
+
|
|
39100
|
+
export function __wbindgen_boolean_get(arg0) {
|
|
39101
|
+
const v = getObject(arg0);
|
|
39102
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
39103
|
+
return ret;
|
|
39104
|
+
};
|
|
39105
|
+
|
|
39038
39106
|
export function __wbindgen_is_string(arg0) {
|
|
39039
39107
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
39040
39108
|
return ret;
|
|
@@ -39055,6 +39123,11 @@ export function __wbindgen_is_object(arg0) {
|
|
|
39055
39123
|
return ret;
|
|
39056
39124
|
};
|
|
39057
39125
|
|
|
39126
|
+
export function __wbindgen_error_new(arg0, arg1) {
|
|
39127
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
39128
|
+
return addHeapObject(ret);
|
|
39129
|
+
};
|
|
39130
|
+
|
|
39058
39131
|
export function __wbindgen_object_clone_ref(arg0) {
|
|
39059
39132
|
const ret = getObject(arg0);
|
|
39060
39133
|
return addHeapObject(ret);
|
|
@@ -39065,12 +39138,6 @@ export function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
|
|
39065
39138
|
return ret;
|
|
39066
39139
|
};
|
|
39067
39140
|
|
|
39068
|
-
export function __wbindgen_boolean_get(arg0) {
|
|
39069
|
-
const v = getObject(arg0);
|
|
39070
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
39071
|
-
return ret;
|
|
39072
|
-
};
|
|
39073
|
-
|
|
39074
39141
|
export function __wbindgen_number_get(arg0, arg1) {
|
|
39075
39142
|
const obj = getObject(arg1);
|
|
39076
39143
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
@@ -39139,14 +39206,14 @@ export function __wbg_msCrypto_eb05e62b530a1508(arg0) {
|
|
|
39139
39206
|
return addHeapObject(ret);
|
|
39140
39207
|
};
|
|
39141
39208
|
|
|
39142
|
-
export function __wbg_getRandomValues_3aa56aa6edec874c() { return handleError(function (arg0, arg1) {
|
|
39143
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
39144
|
-
}, arguments) };
|
|
39145
|
-
|
|
39146
39209
|
export function __wbg_randomFillSync_5c9c955aa56b6049() { return handleError(function (arg0, arg1) {
|
|
39147
39210
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
39148
39211
|
}, arguments) };
|
|
39149
39212
|
|
|
39213
|
+
export function __wbg_getRandomValues_3aa56aa6edec874c() { return handleError(function (arg0, arg1) {
|
|
39214
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
39215
|
+
}, arguments) };
|
|
39216
|
+
|
|
39150
39217
|
export function __wbg_get_bd8e338fbd5f5cc8(arg0, arg1) {
|
|
39151
39218
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
39152
39219
|
return addHeapObject(ret);
|