@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
package/node/cquisitor_lib.js
CHANGED
|
@@ -306,59 +306,6 @@ module.exports.check_block_or_tx_signatures = function(hex_str) {
|
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
308
|
|
|
309
|
-
/**
|
|
310
|
-
* @param {string} hex
|
|
311
|
-
* @returns {any}
|
|
312
|
-
*/
|
|
313
|
-
module.exports.decode_plutus_program_uplc_json = function(hex) {
|
|
314
|
-
try {
|
|
315
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
316
|
-
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
317
|
-
const len0 = WASM_VECTOR_LEN;
|
|
318
|
-
wasm.decode_plutus_program_uplc_json(retptr, ptr0, len0);
|
|
319
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
320
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
321
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
322
|
-
if (r2) {
|
|
323
|
-
throw takeObject(r1);
|
|
324
|
-
}
|
|
325
|
-
return takeObject(r0);
|
|
326
|
-
} finally {
|
|
327
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
328
|
-
}
|
|
329
|
-
};
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* @param {string} hex
|
|
333
|
-
* @returns {string}
|
|
334
|
-
*/
|
|
335
|
-
module.exports.decode_plutus_program_pretty_uplc = function(hex) {
|
|
336
|
-
let deferred3_0;
|
|
337
|
-
let deferred3_1;
|
|
338
|
-
try {
|
|
339
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
340
|
-
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
341
|
-
const len0 = WASM_VECTOR_LEN;
|
|
342
|
-
wasm.decode_plutus_program_pretty_uplc(retptr, ptr0, len0);
|
|
343
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
344
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
345
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
346
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
347
|
-
var ptr2 = r0;
|
|
348
|
-
var len2 = r1;
|
|
349
|
-
if (r3) {
|
|
350
|
-
ptr2 = 0; len2 = 0;
|
|
351
|
-
throw takeObject(r2);
|
|
352
|
-
}
|
|
353
|
-
deferred3_0 = ptr2;
|
|
354
|
-
deferred3_1 = len2;
|
|
355
|
-
return getStringFromWasm0(ptr2, len2);
|
|
356
|
-
} finally {
|
|
357
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
358
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
359
|
-
}
|
|
360
|
-
};
|
|
361
|
-
|
|
362
309
|
/**
|
|
363
310
|
* @param {string} tx_hex
|
|
364
311
|
* @returns {string}
|
|
@@ -424,6 +371,59 @@ module.exports.validate_transaction_js = function(tx_hex, validation_context) {
|
|
|
424
371
|
}
|
|
425
372
|
};
|
|
426
373
|
|
|
374
|
+
/**
|
|
375
|
+
* @param {string} hex
|
|
376
|
+
* @returns {any}
|
|
377
|
+
*/
|
|
378
|
+
module.exports.decode_plutus_program_uplc_json = function(hex) {
|
|
379
|
+
try {
|
|
380
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
381
|
+
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
382
|
+
const len0 = WASM_VECTOR_LEN;
|
|
383
|
+
wasm.decode_plutus_program_uplc_json(retptr, ptr0, len0);
|
|
384
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
385
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
386
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
387
|
+
if (r2) {
|
|
388
|
+
throw takeObject(r1);
|
|
389
|
+
}
|
|
390
|
+
return takeObject(r0);
|
|
391
|
+
} finally {
|
|
392
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* @param {string} hex
|
|
398
|
+
* @returns {string}
|
|
399
|
+
*/
|
|
400
|
+
module.exports.decode_plutus_program_pretty_uplc = function(hex) {
|
|
401
|
+
let deferred3_0;
|
|
402
|
+
let deferred3_1;
|
|
403
|
+
try {
|
|
404
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
405
|
+
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
406
|
+
const len0 = WASM_VECTOR_LEN;
|
|
407
|
+
wasm.decode_plutus_program_pretty_uplc(retptr, ptr0, len0);
|
|
408
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
409
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
410
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
411
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
412
|
+
var ptr2 = r0;
|
|
413
|
+
var len2 = r1;
|
|
414
|
+
if (r3) {
|
|
415
|
+
ptr2 = 0; len2 = 0;
|
|
416
|
+
throw takeObject(r2);
|
|
417
|
+
}
|
|
418
|
+
deferred3_0 = ptr2;
|
|
419
|
+
deferred3_1 = len2;
|
|
420
|
+
return getStringFromWasm0(ptr2, len2);
|
|
421
|
+
} finally {
|
|
422
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
423
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
424
|
+
}
|
|
425
|
+
};
|
|
426
|
+
|
|
427
427
|
/**
|
|
428
428
|
* @param {string} tx_hex
|
|
429
429
|
* @returns {(string)[]}
|
|
@@ -495,26 +495,266 @@ module.exports.cbor_to_json = function(cbor_hex) {
|
|
|
495
495
|
}
|
|
496
496
|
};
|
|
497
497
|
|
|
498
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
499
|
+
ptr = ptr >>> 0;
|
|
500
|
+
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
504
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
505
|
+
getUint8Memory0().set(arg, ptr / 1);
|
|
506
|
+
WASM_VECTOR_LEN = arg.length;
|
|
507
|
+
return ptr;
|
|
508
|
+
}
|
|
509
|
+
|
|
498
510
|
function _assertClass(instance, klass) {
|
|
499
511
|
if (!(instance instanceof klass)) {
|
|
500
512
|
throw new Error(`expected instance of ${klass.name}`);
|
|
501
513
|
}
|
|
502
514
|
return instance.ptr;
|
|
503
515
|
}
|
|
516
|
+
/**
|
|
517
|
+
* @param {string} json
|
|
518
|
+
* @param {PlutusDatumSchema} schema
|
|
519
|
+
* @returns {PlutusData}
|
|
520
|
+
*/
|
|
521
|
+
module.exports.encode_json_str_to_plutus_datum = function(json, schema) {
|
|
522
|
+
try {
|
|
523
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
524
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
525
|
+
const len0 = WASM_VECTOR_LEN;
|
|
526
|
+
wasm.encode_json_str_to_plutus_datum(retptr, ptr0, len0, schema);
|
|
527
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
528
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
529
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
530
|
+
if (r2) {
|
|
531
|
+
throw takeObject(r1);
|
|
532
|
+
}
|
|
533
|
+
return PlutusData.__wrap(r0);
|
|
534
|
+
} finally {
|
|
535
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
536
|
+
}
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* @param {PlutusData} datum
|
|
541
|
+
* @param {PlutusDatumSchema} schema
|
|
542
|
+
* @returns {string}
|
|
543
|
+
*/
|
|
544
|
+
module.exports.decode_plutus_datum_to_json_str = function(datum, schema) {
|
|
545
|
+
let deferred2_0;
|
|
546
|
+
let deferred2_1;
|
|
547
|
+
try {
|
|
548
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
549
|
+
_assertClass(datum, PlutusData);
|
|
550
|
+
wasm.decode_plutus_datum_to_json_str(retptr, datum.__wbg_ptr, schema);
|
|
551
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
552
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
553
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
554
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
555
|
+
var ptr1 = r0;
|
|
556
|
+
var len1 = r1;
|
|
557
|
+
if (r3) {
|
|
558
|
+
ptr1 = 0; len1 = 0;
|
|
559
|
+
throw takeObject(r2);
|
|
560
|
+
}
|
|
561
|
+
deferred2_0 = ptr1;
|
|
562
|
+
deferred2_1 = len1;
|
|
563
|
+
return getStringFromWasm0(ptr1, len1);
|
|
564
|
+
} finally {
|
|
565
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
566
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
567
|
+
}
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* @param {Uint8Array} bytes
|
|
572
|
+
* @returns {TransactionMetadatum}
|
|
573
|
+
*/
|
|
574
|
+
module.exports.encode_arbitrary_bytes_as_metadatum = function(bytes) {
|
|
575
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
576
|
+
const len0 = WASM_VECTOR_LEN;
|
|
577
|
+
const ret = wasm.encode_arbitrary_bytes_as_metadatum(ptr0, len0);
|
|
578
|
+
return TransactionMetadatum.__wrap(ret);
|
|
579
|
+
};
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* @param {TransactionMetadatum} metadata
|
|
583
|
+
* @returns {Uint8Array}
|
|
584
|
+
*/
|
|
585
|
+
module.exports.decode_arbitrary_bytes_from_metadatum = function(metadata) {
|
|
586
|
+
try {
|
|
587
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
588
|
+
_assertClass(metadata, TransactionMetadatum);
|
|
589
|
+
wasm.decode_arbitrary_bytes_from_metadatum(retptr, metadata.__wbg_ptr);
|
|
590
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
591
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
592
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
593
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
594
|
+
if (r3) {
|
|
595
|
+
throw takeObject(r2);
|
|
596
|
+
}
|
|
597
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
598
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
599
|
+
return v1;
|
|
600
|
+
} finally {
|
|
601
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
602
|
+
}
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* @param {string} json
|
|
607
|
+
* @param {MetadataJsonSchema} schema
|
|
608
|
+
* @returns {TransactionMetadatum}
|
|
609
|
+
*/
|
|
610
|
+
module.exports.encode_json_str_to_metadatum = function(json, schema) {
|
|
611
|
+
try {
|
|
612
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
613
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
614
|
+
const len0 = WASM_VECTOR_LEN;
|
|
615
|
+
wasm.encode_json_str_to_metadatum(retptr, ptr0, len0, schema);
|
|
616
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
617
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
618
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
619
|
+
if (r2) {
|
|
620
|
+
throw takeObject(r1);
|
|
621
|
+
}
|
|
622
|
+
return TransactionMetadatum.__wrap(r0);
|
|
623
|
+
} finally {
|
|
624
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
625
|
+
}
|
|
626
|
+
};
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* @param {TransactionMetadatum} metadatum
|
|
630
|
+
* @param {MetadataJsonSchema} schema
|
|
631
|
+
* @returns {string}
|
|
632
|
+
*/
|
|
633
|
+
module.exports.decode_metadatum_to_json_str = function(metadatum, schema) {
|
|
634
|
+
let deferred2_0;
|
|
635
|
+
let deferred2_1;
|
|
636
|
+
try {
|
|
637
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
638
|
+
_assertClass(metadatum, TransactionMetadatum);
|
|
639
|
+
wasm.decode_metadatum_to_json_str(retptr, metadatum.__wbg_ptr, schema);
|
|
640
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
641
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
642
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
643
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
644
|
+
var ptr1 = r0;
|
|
645
|
+
var len1 = r1;
|
|
646
|
+
if (r3) {
|
|
647
|
+
ptr1 = 0; len1 = 0;
|
|
648
|
+
throw takeObject(r2);
|
|
649
|
+
}
|
|
650
|
+
deferred2_0 = ptr1;
|
|
651
|
+
deferred2_1 = len1;
|
|
652
|
+
return getStringFromWasm0(ptr1, len1);
|
|
653
|
+
} finally {
|
|
654
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
655
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
656
|
+
}
|
|
657
|
+
};
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* @param {Transaction} tx
|
|
661
|
+
* @param {LinearFee} linear_fee
|
|
662
|
+
* @returns {BigNum}
|
|
663
|
+
*/
|
|
664
|
+
module.exports.min_fee = function(tx, linear_fee) {
|
|
665
|
+
try {
|
|
666
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
667
|
+
_assertClass(tx, Transaction);
|
|
668
|
+
_assertClass(linear_fee, LinearFee);
|
|
669
|
+
wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__wbg_ptr);
|
|
670
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
671
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
672
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
673
|
+
if (r2) {
|
|
674
|
+
throw takeObject(r1);
|
|
675
|
+
}
|
|
676
|
+
return BigNum.__wrap(r0);
|
|
677
|
+
} finally {
|
|
678
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
679
|
+
}
|
|
680
|
+
};
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* @param {ExUnits} ex_units
|
|
684
|
+
* @param {ExUnitPrices} ex_unit_prices
|
|
685
|
+
* @returns {BigNum}
|
|
686
|
+
*/
|
|
687
|
+
module.exports.calculate_ex_units_ceil_cost = function(ex_units, ex_unit_prices) {
|
|
688
|
+
try {
|
|
689
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
690
|
+
_assertClass(ex_units, ExUnits);
|
|
691
|
+
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
692
|
+
wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
693
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
694
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
695
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
696
|
+
if (r2) {
|
|
697
|
+
throw takeObject(r1);
|
|
698
|
+
}
|
|
699
|
+
return BigNum.__wrap(r0);
|
|
700
|
+
} finally {
|
|
701
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
702
|
+
}
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* @param {Transaction} tx
|
|
707
|
+
* @param {ExUnitPrices} ex_unit_prices
|
|
708
|
+
* @returns {BigNum}
|
|
709
|
+
*/
|
|
710
|
+
module.exports.min_script_fee = function(tx, ex_unit_prices) {
|
|
711
|
+
try {
|
|
712
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
713
|
+
_assertClass(tx, Transaction);
|
|
714
|
+
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
715
|
+
wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
716
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
717
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
718
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
719
|
+
if (r2) {
|
|
720
|
+
throw takeObject(r1);
|
|
721
|
+
}
|
|
722
|
+
return BigNum.__wrap(r0);
|
|
723
|
+
} finally {
|
|
724
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
725
|
+
}
|
|
726
|
+
};
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* @param {number} total_ref_scripts_size
|
|
730
|
+
* @param {UnitInterval} ref_script_coins_per_byte
|
|
731
|
+
* @returns {BigNum}
|
|
732
|
+
*/
|
|
733
|
+
module.exports.min_ref_script_fee = function(total_ref_scripts_size, ref_script_coins_per_byte) {
|
|
734
|
+
try {
|
|
735
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
736
|
+
_assertClass(ref_script_coins_per_byte, UnitInterval);
|
|
737
|
+
wasm.min_ref_script_fee(retptr, total_ref_scripts_size, ref_script_coins_per_byte.__wbg_ptr);
|
|
738
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
739
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
740
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
741
|
+
if (r2) {
|
|
742
|
+
throw takeObject(r1);
|
|
743
|
+
}
|
|
744
|
+
return BigNum.__wrap(r0);
|
|
745
|
+
} finally {
|
|
746
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
747
|
+
}
|
|
748
|
+
};
|
|
504
749
|
|
|
505
750
|
function getArrayU32FromWasm0(ptr, len) {
|
|
506
751
|
ptr = ptr >>> 0;
|
|
507
752
|
return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
|
|
508
753
|
}
|
|
509
754
|
|
|
510
|
-
function
|
|
511
|
-
ptr =
|
|
512
|
-
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
516
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
517
|
-
getUint8Memory0().set(arg, ptr / 1);
|
|
755
|
+
function passArray32ToWasm0(arg, malloc) {
|
|
756
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
757
|
+
getUint32Memory0().set(arg, ptr / 4);
|
|
518
758
|
WASM_VECTOR_LEN = arg.length;
|
|
519
759
|
return ptr;
|
|
520
760
|
}
|
|
@@ -733,60 +973,6 @@ module.exports.has_transaction_set_tag = function(tx_bytes) {
|
|
|
733
973
|
}
|
|
734
974
|
};
|
|
735
975
|
|
|
736
|
-
/**
|
|
737
|
-
* @param {string} json
|
|
738
|
-
* @param {PlutusDatumSchema} schema
|
|
739
|
-
* @returns {PlutusData}
|
|
740
|
-
*/
|
|
741
|
-
module.exports.encode_json_str_to_plutus_datum = function(json, schema) {
|
|
742
|
-
try {
|
|
743
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
744
|
-
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
745
|
-
const len0 = WASM_VECTOR_LEN;
|
|
746
|
-
wasm.encode_json_str_to_plutus_datum(retptr, ptr0, len0, schema);
|
|
747
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
748
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
749
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
750
|
-
if (r2) {
|
|
751
|
-
throw takeObject(r1);
|
|
752
|
-
}
|
|
753
|
-
return PlutusData.__wrap(r0);
|
|
754
|
-
} finally {
|
|
755
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
756
|
-
}
|
|
757
|
-
};
|
|
758
|
-
|
|
759
|
-
/**
|
|
760
|
-
* @param {PlutusData} datum
|
|
761
|
-
* @param {PlutusDatumSchema} schema
|
|
762
|
-
* @returns {string}
|
|
763
|
-
*/
|
|
764
|
-
module.exports.decode_plutus_datum_to_json_str = function(datum, schema) {
|
|
765
|
-
let deferred2_0;
|
|
766
|
-
let deferred2_1;
|
|
767
|
-
try {
|
|
768
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
769
|
-
_assertClass(datum, PlutusData);
|
|
770
|
-
wasm.decode_plutus_datum_to_json_str(retptr, datum.__wbg_ptr, schema);
|
|
771
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
772
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
773
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
774
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
775
|
-
var ptr1 = r0;
|
|
776
|
-
var len1 = r1;
|
|
777
|
-
if (r3) {
|
|
778
|
-
ptr1 = 0; len1 = 0;
|
|
779
|
-
throw takeObject(r2);
|
|
780
|
-
}
|
|
781
|
-
deferred2_0 = ptr1;
|
|
782
|
-
deferred2_1 = len1;
|
|
783
|
-
return getStringFromWasm0(ptr1, len1);
|
|
784
|
-
} finally {
|
|
785
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
786
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
787
|
-
}
|
|
788
|
-
};
|
|
789
|
-
|
|
790
976
|
/**
|
|
791
977
|
* @param {string} password
|
|
792
978
|
* @param {string} salt
|
|
@@ -886,193 +1072,6 @@ module.exports.create_send_all = function(address, utxos, config) {
|
|
|
886
1072
|
}
|
|
887
1073
|
};
|
|
888
1074
|
|
|
889
|
-
/**
|
|
890
|
-
* @param {Transaction} tx
|
|
891
|
-
* @param {LinearFee} linear_fee
|
|
892
|
-
* @returns {BigNum}
|
|
893
|
-
*/
|
|
894
|
-
module.exports.min_fee = function(tx, linear_fee) {
|
|
895
|
-
try {
|
|
896
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
897
|
-
_assertClass(tx, Transaction);
|
|
898
|
-
_assertClass(linear_fee, LinearFee);
|
|
899
|
-
wasm.min_fee(retptr, tx.__wbg_ptr, linear_fee.__wbg_ptr);
|
|
900
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
901
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
902
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
903
|
-
if (r2) {
|
|
904
|
-
throw takeObject(r1);
|
|
905
|
-
}
|
|
906
|
-
return BigNum.__wrap(r0);
|
|
907
|
-
} finally {
|
|
908
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
909
|
-
}
|
|
910
|
-
};
|
|
911
|
-
|
|
912
|
-
/**
|
|
913
|
-
* @param {ExUnits} ex_units
|
|
914
|
-
* @param {ExUnitPrices} ex_unit_prices
|
|
915
|
-
* @returns {BigNum}
|
|
916
|
-
*/
|
|
917
|
-
module.exports.calculate_ex_units_ceil_cost = function(ex_units, ex_unit_prices) {
|
|
918
|
-
try {
|
|
919
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
920
|
-
_assertClass(ex_units, ExUnits);
|
|
921
|
-
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
922
|
-
wasm.calculate_ex_units_ceil_cost(retptr, ex_units.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
923
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
924
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
925
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
926
|
-
if (r2) {
|
|
927
|
-
throw takeObject(r1);
|
|
928
|
-
}
|
|
929
|
-
return BigNum.__wrap(r0);
|
|
930
|
-
} finally {
|
|
931
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
932
|
-
}
|
|
933
|
-
};
|
|
934
|
-
|
|
935
|
-
/**
|
|
936
|
-
* @param {Transaction} tx
|
|
937
|
-
* @param {ExUnitPrices} ex_unit_prices
|
|
938
|
-
* @returns {BigNum}
|
|
939
|
-
*/
|
|
940
|
-
module.exports.min_script_fee = function(tx, ex_unit_prices) {
|
|
941
|
-
try {
|
|
942
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
943
|
-
_assertClass(tx, Transaction);
|
|
944
|
-
_assertClass(ex_unit_prices, ExUnitPrices);
|
|
945
|
-
wasm.min_script_fee(retptr, tx.__wbg_ptr, ex_unit_prices.__wbg_ptr);
|
|
946
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
947
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
948
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
949
|
-
if (r2) {
|
|
950
|
-
throw takeObject(r1);
|
|
951
|
-
}
|
|
952
|
-
return BigNum.__wrap(r0);
|
|
953
|
-
} finally {
|
|
954
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
955
|
-
}
|
|
956
|
-
};
|
|
957
|
-
|
|
958
|
-
/**
|
|
959
|
-
* @param {number} total_ref_scripts_size
|
|
960
|
-
* @param {UnitInterval} ref_script_coins_per_byte
|
|
961
|
-
* @returns {BigNum}
|
|
962
|
-
*/
|
|
963
|
-
module.exports.min_ref_script_fee = function(total_ref_scripts_size, ref_script_coins_per_byte) {
|
|
964
|
-
try {
|
|
965
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
966
|
-
_assertClass(ref_script_coins_per_byte, UnitInterval);
|
|
967
|
-
wasm.min_ref_script_fee(retptr, total_ref_scripts_size, ref_script_coins_per_byte.__wbg_ptr);
|
|
968
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
969
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
970
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
971
|
-
if (r2) {
|
|
972
|
-
throw takeObject(r1);
|
|
973
|
-
}
|
|
974
|
-
return BigNum.__wrap(r0);
|
|
975
|
-
} finally {
|
|
976
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
977
|
-
}
|
|
978
|
-
};
|
|
979
|
-
|
|
980
|
-
/**
|
|
981
|
-
* @param {Uint8Array} bytes
|
|
982
|
-
* @returns {TransactionMetadatum}
|
|
983
|
-
*/
|
|
984
|
-
module.exports.encode_arbitrary_bytes_as_metadatum = function(bytes) {
|
|
985
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
986
|
-
const len0 = WASM_VECTOR_LEN;
|
|
987
|
-
const ret = wasm.encode_arbitrary_bytes_as_metadatum(ptr0, len0);
|
|
988
|
-
return TransactionMetadatum.__wrap(ret);
|
|
989
|
-
};
|
|
990
|
-
|
|
991
|
-
/**
|
|
992
|
-
* @param {TransactionMetadatum} metadata
|
|
993
|
-
* @returns {Uint8Array}
|
|
994
|
-
*/
|
|
995
|
-
module.exports.decode_arbitrary_bytes_from_metadatum = function(metadata) {
|
|
996
|
-
try {
|
|
997
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
998
|
-
_assertClass(metadata, TransactionMetadatum);
|
|
999
|
-
wasm.decode_arbitrary_bytes_from_metadatum(retptr, metadata.__wbg_ptr);
|
|
1000
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1001
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1002
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
1003
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
1004
|
-
if (r3) {
|
|
1005
|
-
throw takeObject(r2);
|
|
1006
|
-
}
|
|
1007
|
-
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
1008
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
1009
|
-
return v1;
|
|
1010
|
-
} finally {
|
|
1011
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1012
|
-
}
|
|
1013
|
-
};
|
|
1014
|
-
|
|
1015
|
-
/**
|
|
1016
|
-
* @param {string} json
|
|
1017
|
-
* @param {MetadataJsonSchema} schema
|
|
1018
|
-
* @returns {TransactionMetadatum}
|
|
1019
|
-
*/
|
|
1020
|
-
module.exports.encode_json_str_to_metadatum = function(json, schema) {
|
|
1021
|
-
try {
|
|
1022
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1023
|
-
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1024
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1025
|
-
wasm.encode_json_str_to_metadatum(retptr, ptr0, len0, schema);
|
|
1026
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1027
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1028
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
1029
|
-
if (r2) {
|
|
1030
|
-
throw takeObject(r1);
|
|
1031
|
-
}
|
|
1032
|
-
return TransactionMetadatum.__wrap(r0);
|
|
1033
|
-
} finally {
|
|
1034
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1035
|
-
}
|
|
1036
|
-
};
|
|
1037
|
-
|
|
1038
|
-
/**
|
|
1039
|
-
* @param {TransactionMetadatum} metadatum
|
|
1040
|
-
* @param {MetadataJsonSchema} schema
|
|
1041
|
-
* @returns {string}
|
|
1042
|
-
*/
|
|
1043
|
-
module.exports.decode_metadatum_to_json_str = function(metadatum, schema) {
|
|
1044
|
-
let deferred2_0;
|
|
1045
|
-
let deferred2_1;
|
|
1046
|
-
try {
|
|
1047
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1048
|
-
_assertClass(metadatum, TransactionMetadatum);
|
|
1049
|
-
wasm.decode_metadatum_to_json_str(retptr, metadatum.__wbg_ptr, schema);
|
|
1050
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1051
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1052
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
1053
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
1054
|
-
var ptr1 = r0;
|
|
1055
|
-
var len1 = r1;
|
|
1056
|
-
if (r3) {
|
|
1057
|
-
ptr1 = 0; len1 = 0;
|
|
1058
|
-
throw takeObject(r2);
|
|
1059
|
-
}
|
|
1060
|
-
deferred2_0 = ptr1;
|
|
1061
|
-
deferred2_1 = len1;
|
|
1062
|
-
return getStringFromWasm0(ptr1, len1);
|
|
1063
|
-
} finally {
|
|
1064
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1065
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1066
|
-
}
|
|
1067
|
-
};
|
|
1068
|
-
|
|
1069
|
-
function passArray32ToWasm0(arg, malloc) {
|
|
1070
|
-
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
1071
|
-
getUint32Memory0().set(arg, ptr / 4);
|
|
1072
|
-
WASM_VECTOR_LEN = arg.length;
|
|
1073
|
-
return ptr;
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
1075
|
function handleError(f, args) {
|
|
1077
1076
|
try {
|
|
1078
1077
|
return f.apply(this, args);
|
|
@@ -1081,25 +1080,6 @@ function handleError(f, args) {
|
|
|
1081
1080
|
}
|
|
1082
1081
|
}
|
|
1083
1082
|
/**
|
|
1084
|
-
*/
|
|
1085
|
-
module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
|
|
1086
|
-
/**
|
|
1087
|
-
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1088
|
-
*/
|
|
1089
|
-
LargestFirst:0,"0":"LargestFirst",
|
|
1090
|
-
/**
|
|
1091
|
-
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1092
|
-
*/
|
|
1093
|
-
RandomImprove:1,"1":"RandomImprove",
|
|
1094
|
-
/**
|
|
1095
|
-
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1096
|
-
*/
|
|
1097
|
-
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
1098
|
-
/**
|
|
1099
|
-
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1100
|
-
*/
|
|
1101
|
-
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1102
|
-
/**
|
|
1103
1083
|
* JSON <-> PlutusData conversion schemas.
|
|
1104
1084
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
1105
1085
|
* https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
|
|
@@ -1152,16 +1132,32 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
1152
1132
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1153
1133
|
/**
|
|
1154
1134
|
*/
|
|
1155
|
-
module.exports.
|
|
1135
|
+
module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1156
1136
|
/**
|
|
1137
|
+
* Used to choosed the schema for a script JSON string
|
|
1157
1138
|
*/
|
|
1158
|
-
module.exports.
|
|
1139
|
+
module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1159
1140
|
/**
|
|
1160
1141
|
*/
|
|
1161
|
-
module.exports.
|
|
1142
|
+
module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1162
1143
|
/**
|
|
1163
1144
|
*/
|
|
1164
|
-
module.exports.
|
|
1145
|
+
module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1146
|
+
/**
|
|
1147
|
+
*/
|
|
1148
|
+
module.exports.TransactionMetadatumKind = Object.freeze({ MetadataMap:0,"0":"MetadataMap",MetadataList:1,"1":"MetadataList",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
|
|
1149
|
+
/**
|
|
1150
|
+
*/
|
|
1151
|
+
module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1152
|
+
/**
|
|
1153
|
+
*/
|
|
1154
|
+
module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1155
|
+
/**
|
|
1156
|
+
*/
|
|
1157
|
+
module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1158
|
+
/**
|
|
1159
|
+
*/
|
|
1160
|
+
module.exports.CertificateKind = Object.freeze({ StakeRegistration:0,"0":"StakeRegistration",StakeDeregistration:1,"1":"StakeDeregistration",StakeDelegation:2,"2":"StakeDelegation",PoolRegistration:3,"3":"PoolRegistration",PoolRetirement:4,"4":"PoolRetirement",GenesisKeyDelegation:5,"5":"GenesisKeyDelegation",MoveInstantaneousRewardsCert:6,"6":"MoveInstantaneousRewardsCert",CommitteeHotAuth:7,"7":"CommitteeHotAuth",CommitteeColdResign:8,"8":"CommitteeColdResign",DRepDeregistration:9,"9":"DRepDeregistration",DRepRegistration:10,"10":"DRepRegistration",DRepUpdate:11,"11":"DRepUpdate",StakeAndVoteDelegation:12,"12":"StakeAndVoteDelegation",StakeRegistrationAndDelegation:13,"13":"StakeRegistrationAndDelegation",StakeVoteRegistrationAndDelegation:14,"14":"StakeVoteRegistrationAndDelegation",VoteDelegation:15,"15":"VoteDelegation",VoteRegistrationAndDelegation:16,"16":"VoteRegistrationAndDelegation", });
|
|
1165
1161
|
/**
|
|
1166
1162
|
* Each new language uses a different namespace for hashing its script
|
|
1167
1163
|
* This is because you could have a language where the same bytes have different semantics
|
|
@@ -1174,59 +1170,62 @@ module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeS
|
|
|
1174
1170
|
module.exports.VoterKind = Object.freeze({ ConstitutionalCommitteeHotKeyHash:0,"0":"ConstitutionalCommitteeHotKeyHash",ConstitutionalCommitteeHotScriptHash:1,"1":"ConstitutionalCommitteeHotScriptHash",DRepKeyHash:2,"2":"DRepKeyHash",DRepScriptHash:3,"3":"DRepScriptHash",StakingPoolKeyHash:4,"4":"StakingPoolKeyHash", });
|
|
1175
1171
|
/**
|
|
1176
1172
|
*/
|
|
1177
|
-
module.exports.
|
|
1173
|
+
module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1178
1174
|
/**
|
|
1179
1175
|
*/
|
|
1180
|
-
module.exports.
|
|
1176
|
+
module.exports.PlutusDataKind = Object.freeze({ ConstrPlutusData:0,"0":"ConstrPlutusData",Map:1,"1":"Map",List:2,"2":"List",Integer:3,"3":"Integer",Bytes:4,"4":"Bytes", });
|
|
1181
1177
|
/**
|
|
1182
1178
|
*/
|
|
1183
1179
|
module.exports.NativeScriptKind = Object.freeze({ ScriptPubkey:0,"0":"ScriptPubkey",ScriptAll:1,"1":"ScriptAll",ScriptAny:2,"2":"ScriptAny",ScriptNOfK:3,"3":"ScriptNOfK",TimelockStart:4,"4":"TimelockStart",TimelockExpiry:5,"5":"TimelockExpiry", });
|
|
1184
1180
|
/**
|
|
1185
|
-
* Used to choosed the schema for a script JSON string
|
|
1186
1181
|
*/
|
|
1187
|
-
module.exports.
|
|
1182
|
+
module.exports.BlockEra = Object.freeze({ Byron:0,"0":"Byron",Shelley:1,"1":"Shelley",Allegra:2,"2":"Allegra",Mary:3,"3":"Mary",Alonzo:4,"4":"Alonzo",Babbage:5,"5":"Babbage",Conway:6,"6":"Conway",Unknown:7,"7":"Unknown", });
|
|
1188
1183
|
/**
|
|
1189
1184
|
*/
|
|
1190
|
-
module.exports.
|
|
1185
|
+
module.exports.AddressKind = Object.freeze({ Base:0,"0":"Base",Pointer:1,"1":"Pointer",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron",Malformed:5,"5":"Malformed", });
|
|
1191
1186
|
/**
|
|
1192
1187
|
*/
|
|
1193
|
-
module.exports.
|
|
1188
|
+
module.exports.RedeemerTagKind = Object.freeze({ Spend:0,"0":"Spend",Mint:1,"1":"Mint",Cert:2,"2":"Cert",Reward:3,"3":"Reward",Vote:4,"4":"Vote",VotingProposal:5,"5":"VotingProposal", });
|
|
1194
1189
|
/**
|
|
1195
1190
|
*/
|
|
1196
|
-
module.exports.
|
|
1191
|
+
module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1197
1192
|
/**
|
|
1198
1193
|
*/
|
|
1199
|
-
module.exports.
|
|
1194
|
+
module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1200
1195
|
/**
|
|
1201
1196
|
*/
|
|
1202
|
-
module.exports.
|
|
1197
|
+
module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1203
1198
|
/**
|
|
1204
1199
|
*/
|
|
1205
|
-
module.exports.
|
|
1200
|
+
module.exports.GovernanceActionKind = Object.freeze({ ParameterChangeAction:0,"0":"ParameterChangeAction",HardForkInitiationAction:1,"1":"HardForkInitiationAction",TreasuryWithdrawalsAction:2,"2":"TreasuryWithdrawalsAction",NoConfidenceAction:3,"3":"NoConfidenceAction",UpdateCommitteeAction:4,"4":"UpdateCommitteeAction",NewConstitutionAction:5,"5":"NewConstitutionAction",InfoAction:6,"6":"InfoAction", });
|
|
1206
1201
|
/**
|
|
1207
1202
|
*/
|
|
1208
|
-
module.exports.
|
|
1203
|
+
module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1209
1204
|
/**
|
|
1210
1205
|
*/
|
|
1211
|
-
module.exports.
|
|
1206
|
+
module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1212
1207
|
/**
|
|
1213
1208
|
*/
|
|
1214
|
-
module.exports.
|
|
1209
|
+
module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1215
1210
|
/**
|
|
1216
1211
|
*/
|
|
1217
|
-
module.exports.
|
|
1212
|
+
module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
|
|
1218
1213
|
/**
|
|
1214
|
+
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1219
1215
|
*/
|
|
1220
|
-
|
|
1216
|
+
LargestFirst:0,"0":"LargestFirst",
|
|
1221
1217
|
/**
|
|
1218
|
+
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1222
1219
|
*/
|
|
1223
|
-
|
|
1220
|
+
RandomImprove:1,"1":"RandomImprove",
|
|
1224
1221
|
/**
|
|
1222
|
+
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1225
1223
|
*/
|
|
1226
|
-
|
|
1224
|
+
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
1227
1225
|
/**
|
|
1226
|
+
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1228
1227
|
*/
|
|
1229
|
-
|
|
1228
|
+
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1230
1229
|
|
|
1231
1230
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1232
1231
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -8410,7 +8409,7 @@ class DNSRecordSRV {
|
|
|
8410
8409
|
let deferred1_1;
|
|
8411
8410
|
try {
|
|
8412
8411
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8413
|
-
wasm.
|
|
8412
|
+
wasm.dnsrecordaoraaaa_record(retptr, this.__wbg_ptr);
|
|
8414
8413
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
8415
8414
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
8416
8415
|
deferred1_0 = r0;
|
|
@@ -8599,7 +8598,7 @@ class DRep {
|
|
|
8599
8598
|
*/
|
|
8600
8599
|
static new_key_hash(key_hash) {
|
|
8601
8600
|
_assertClass(key_hash, Ed25519KeyHash);
|
|
8602
|
-
const ret = wasm.
|
|
8601
|
+
const ret = wasm.drep_new_key_hash(key_hash.__wbg_ptr);
|
|
8603
8602
|
return DRep.__wrap(ret);
|
|
8604
8603
|
}
|
|
8605
8604
|
/**
|
|
@@ -8608,7 +8607,7 @@ class DRep {
|
|
|
8608
8607
|
*/
|
|
8609
8608
|
static new_script_hash(script_hash) {
|
|
8610
8609
|
_assertClass(script_hash, ScriptHash);
|
|
8611
|
-
const ret = wasm.
|
|
8610
|
+
const ret = wasm.drep_new_script_hash(script_hash.__wbg_ptr);
|
|
8612
8611
|
return DRep.__wrap(ret);
|
|
8613
8612
|
}
|
|
8614
8613
|
/**
|
|
@@ -8887,7 +8886,7 @@ class DRepDeregistration {
|
|
|
8887
8886
|
* @returns {BigNum}
|
|
8888
8887
|
*/
|
|
8889
8888
|
coin() {
|
|
8890
|
-
const ret = wasm.
|
|
8889
|
+
const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
|
|
8891
8890
|
return BigNum.__wrap(ret);
|
|
8892
8891
|
}
|
|
8893
8892
|
/**
|
|
@@ -9091,7 +9090,7 @@ class DRepRegistration {
|
|
|
9091
9090
|
* @returns {BigNum}
|
|
9092
9091
|
*/
|
|
9093
9092
|
coin() {
|
|
9094
|
-
const ret = wasm.
|
|
9093
|
+
const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
|
|
9095
9094
|
return BigNum.__wrap(ret);
|
|
9096
9095
|
}
|
|
9097
9096
|
/**
|
|
@@ -9308,14 +9307,14 @@ class DRepUpdate {
|
|
|
9308
9307
|
* @returns {Credential}
|
|
9309
9308
|
*/
|
|
9310
9309
|
voting_credential() {
|
|
9311
|
-
const ret = wasm.
|
|
9310
|
+
const ret = wasm.committeecoldresign_committee_cold_credential(this.__wbg_ptr);
|
|
9312
9311
|
return Credential.__wrap(ret);
|
|
9313
9312
|
}
|
|
9314
9313
|
/**
|
|
9315
9314
|
* @returns {Anchor | undefined}
|
|
9316
9315
|
*/
|
|
9317
9316
|
anchor() {
|
|
9318
|
-
const ret = wasm.
|
|
9317
|
+
const ret = wasm.committeecoldresign_anchor(this.__wbg_ptr);
|
|
9319
9318
|
return ret === 0 ? undefined : Anchor.__wrap(ret);
|
|
9320
9319
|
}
|
|
9321
9320
|
/**
|
|
@@ -9324,7 +9323,7 @@ class DRepUpdate {
|
|
|
9324
9323
|
*/
|
|
9325
9324
|
static new(voting_credential) {
|
|
9326
9325
|
_assertClass(voting_credential, Credential);
|
|
9327
|
-
const ret = wasm.
|
|
9326
|
+
const ret = wasm.committeecoldresign_new(voting_credential.__wbg_ptr);
|
|
9328
9327
|
return DRepUpdate.__wrap(ret);
|
|
9329
9328
|
}
|
|
9330
9329
|
/**
|
|
@@ -9335,14 +9334,14 @@ class DRepUpdate {
|
|
|
9335
9334
|
static new_with_anchor(voting_credential, anchor) {
|
|
9336
9335
|
_assertClass(voting_credential, Credential);
|
|
9337
9336
|
_assertClass(anchor, Anchor);
|
|
9338
|
-
const ret = wasm.
|
|
9337
|
+
const ret = wasm.committeecoldresign_new_with_anchor(voting_credential.__wbg_ptr, anchor.__wbg_ptr);
|
|
9339
9338
|
return DRepUpdate.__wrap(ret);
|
|
9340
9339
|
}
|
|
9341
9340
|
/**
|
|
9342
9341
|
* @returns {boolean}
|
|
9343
9342
|
*/
|
|
9344
9343
|
has_script_credentials() {
|
|
9345
|
-
const ret = wasm.
|
|
9344
|
+
const ret = wasm.committeecoldresign_has_script_credentials(this.__wbg_ptr);
|
|
9346
9345
|
return ret !== 0;
|
|
9347
9346
|
}
|
|
9348
9347
|
}
|
|
@@ -10702,14 +10701,14 @@ class ExUnitPrices {
|
|
|
10702
10701
|
* @returns {UnitInterval}
|
|
10703
10702
|
*/
|
|
10704
10703
|
mem_price() {
|
|
10705
|
-
const ret = wasm.
|
|
10704
|
+
const ret = wasm.committee_quorum_threshold(this.__wbg_ptr);
|
|
10706
10705
|
return UnitInterval.__wrap(ret);
|
|
10707
10706
|
}
|
|
10708
10707
|
/**
|
|
10709
10708
|
* @returns {UnitInterval}
|
|
10710
10709
|
*/
|
|
10711
10710
|
step_price() {
|
|
10712
|
-
const ret = wasm.
|
|
10711
|
+
const ret = wasm.exunitprices_step_price(this.__wbg_ptr);
|
|
10713
10712
|
return UnitInterval.__wrap(ret);
|
|
10714
10713
|
}
|
|
10715
10714
|
/**
|
|
@@ -11620,7 +11619,7 @@ class FixedTransactionBody {
|
|
|
11620
11619
|
* @returns {TransactionBody}
|
|
11621
11620
|
*/
|
|
11622
11621
|
transaction_body() {
|
|
11623
|
-
const ret = wasm.
|
|
11622
|
+
const ret = wasm.fixedtransaction_body(this.__wbg_ptr);
|
|
11624
11623
|
return TransactionBody.__wrap(ret);
|
|
11625
11624
|
}
|
|
11626
11625
|
/**
|
|
@@ -15712,14 +15711,14 @@ class MIRToStakeCredentials {
|
|
|
15712
15711
|
* @returns {MIRToStakeCredentials}
|
|
15713
15712
|
*/
|
|
15714
15713
|
static new() {
|
|
15715
|
-
const ret = wasm.
|
|
15714
|
+
const ret = wasm.mirtostakecredentials_new();
|
|
15716
15715
|
return MIRToStakeCredentials.__wrap(ret);
|
|
15717
15716
|
}
|
|
15718
15717
|
/**
|
|
15719
15718
|
* @returns {number}
|
|
15720
15719
|
*/
|
|
15721
15720
|
len() {
|
|
15722
|
-
const ret = wasm.
|
|
15721
|
+
const ret = wasm.mirtostakecredentials_len(this.__wbg_ptr);
|
|
15723
15722
|
return ret >>> 0;
|
|
15724
15723
|
}
|
|
15725
15724
|
/**
|
|
@@ -18708,7 +18707,7 @@ class NewConstitutionAction {
|
|
|
18708
18707
|
* @returns {GovernanceActionId | undefined}
|
|
18709
18708
|
*/
|
|
18710
18709
|
gov_action_id() {
|
|
18711
|
-
const ret = wasm.
|
|
18710
|
+
const ret = wasm.newconstitutionaction_gov_action_id(this.__wbg_ptr);
|
|
18712
18711
|
return ret === 0 ? undefined : GovernanceActionId.__wrap(ret);
|
|
18713
18712
|
}
|
|
18714
18713
|
/**
|
|
@@ -20232,7 +20231,7 @@ class PlutusMap {
|
|
|
20232
20231
|
* @returns {PlutusMap}
|
|
20233
20232
|
*/
|
|
20234
20233
|
static new() {
|
|
20235
|
-
const ret = wasm.
|
|
20234
|
+
const ret = wasm.generaltransactionmetadata_new();
|
|
20236
20235
|
return PlutusMap.__wrap(ret);
|
|
20237
20236
|
}
|
|
20238
20237
|
/**
|
|
@@ -20240,7 +20239,7 @@ class PlutusMap {
|
|
|
20240
20239
|
* @returns {number}
|
|
20241
20240
|
*/
|
|
20242
20241
|
len() {
|
|
20243
|
-
const ret = wasm.
|
|
20242
|
+
const ret = wasm.generaltransactionmetadata_len(this.__wbg_ptr);
|
|
20244
20243
|
return ret >>> 0;
|
|
20245
20244
|
}
|
|
20246
20245
|
/**
|
|
@@ -21438,7 +21437,7 @@ class PoolMetadata {
|
|
|
21438
21437
|
* @returns {URL}
|
|
21439
21438
|
*/
|
|
21440
21439
|
url() {
|
|
21441
|
-
const ret = wasm.
|
|
21440
|
+
const ret = wasm.multihostname_dns_name(this.__wbg_ptr);
|
|
21442
21441
|
return URL.__wrap(ret);
|
|
21443
21442
|
}
|
|
21444
21443
|
/**
|
|
@@ -26485,7 +26484,7 @@ class ScriptNOfK {
|
|
|
26485
26484
|
* @returns {NativeScripts}
|
|
26486
26485
|
*/
|
|
26487
26486
|
native_scripts() {
|
|
26488
|
-
const ret = wasm.
|
|
26487
|
+
const ret = wasm.scriptall_native_scripts(this.__wbg_ptr);
|
|
26489
26488
|
return NativeScripts.__wrap(ret);
|
|
26490
26489
|
}
|
|
26491
26490
|
/**
|
|
@@ -27319,7 +27318,7 @@ class SingleHostName {
|
|
|
27319
27318
|
* @returns {DNSRecordAorAAAA}
|
|
27320
27319
|
*/
|
|
27321
27320
|
dns_name() {
|
|
27322
|
-
const ret = wasm.
|
|
27321
|
+
const ret = wasm.multihostname_dns_name(this.__wbg_ptr);
|
|
27323
27322
|
return DNSRecordAorAAAA.__wrap(ret);
|
|
27324
27323
|
}
|
|
27325
27324
|
/**
|
|
@@ -27508,7 +27507,7 @@ class StakeAndVoteDelegation {
|
|
|
27508
27507
|
* @returns {Credential}
|
|
27509
27508
|
*/
|
|
27510
27509
|
stake_credential() {
|
|
27511
|
-
const ret = wasm.
|
|
27510
|
+
const ret = wasm.stakeandvotedelegation_stake_credential(this.__wbg_ptr);
|
|
27512
27511
|
return Credential.__wrap(ret);
|
|
27513
27512
|
}
|
|
27514
27513
|
/**
|
|
@@ -27542,7 +27541,7 @@ class StakeAndVoteDelegation {
|
|
|
27542
27541
|
* @returns {boolean}
|
|
27543
27542
|
*/
|
|
27544
27543
|
has_script_credentials() {
|
|
27545
|
-
const ret = wasm.
|
|
27544
|
+
const ret = wasm.stakeandvotedelegation_has_script_credentials(this.__wbg_ptr);
|
|
27546
27545
|
return ret !== 0;
|
|
27547
27546
|
}
|
|
27548
27547
|
}
|
|
@@ -28138,14 +28137,14 @@ class StakeRegistration {
|
|
|
28138
28137
|
* @returns {Credential}
|
|
28139
28138
|
*/
|
|
28140
28139
|
stake_credential() {
|
|
28141
|
-
const ret = wasm.
|
|
28140
|
+
const ret = wasm.stakeregistration_stake_credential(this.__wbg_ptr);
|
|
28142
28141
|
return Credential.__wrap(ret);
|
|
28143
28142
|
}
|
|
28144
28143
|
/**
|
|
28145
28144
|
* @returns {BigNum | undefined}
|
|
28146
28145
|
*/
|
|
28147
28146
|
coin() {
|
|
28148
|
-
const ret = wasm.
|
|
28147
|
+
const ret = wasm.stakeregistration_coin(this.__wbg_ptr);
|
|
28149
28148
|
return ret === 0 ? undefined : BigNum.__wrap(ret);
|
|
28150
28149
|
}
|
|
28151
28150
|
/**
|
|
@@ -28154,7 +28153,7 @@ class StakeRegistration {
|
|
|
28154
28153
|
*/
|
|
28155
28154
|
static new(stake_credential) {
|
|
28156
28155
|
_assertClass(stake_credential, Credential);
|
|
28157
|
-
const ret = wasm.
|
|
28156
|
+
const ret = wasm.stakeregistration_new(stake_credential.__wbg_ptr);
|
|
28158
28157
|
return StakeRegistration.__wrap(ret);
|
|
28159
28158
|
}
|
|
28160
28159
|
/**
|
|
@@ -28165,14 +28164,14 @@ class StakeRegistration {
|
|
|
28165
28164
|
static new_with_explicit_deposit(stake_credential, coin) {
|
|
28166
28165
|
_assertClass(stake_credential, Credential);
|
|
28167
28166
|
_assertClass(coin, BigNum);
|
|
28168
|
-
const ret = wasm.
|
|
28167
|
+
const ret = wasm.stakeregistration_new_with_explicit_deposit(stake_credential.__wbg_ptr, coin.__wbg_ptr);
|
|
28169
28168
|
return StakeRegistration.__wrap(ret);
|
|
28170
28169
|
}
|
|
28171
28170
|
/**
|
|
28172
28171
|
* @returns {boolean}
|
|
28173
28172
|
*/
|
|
28174
28173
|
has_script_credentials() {
|
|
28175
|
-
const ret = wasm.
|
|
28174
|
+
const ret = wasm.stakeregistration_has_script_credentials(this.__wbg_ptr);
|
|
28176
28175
|
return ret !== 0;
|
|
28177
28176
|
}
|
|
28178
28177
|
}
|
|
@@ -28365,7 +28364,7 @@ class StakeRegistrationAndDelegation {
|
|
|
28365
28364
|
* @returns {BigNum}
|
|
28366
28365
|
*/
|
|
28367
28366
|
coin() {
|
|
28368
|
-
const ret = wasm.
|
|
28367
|
+
const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
|
|
28369
28368
|
return BigNum.__wrap(ret);
|
|
28370
28369
|
}
|
|
28371
28370
|
/**
|
|
@@ -28571,7 +28570,7 @@ class StakeVoteRegistrationAndDelegation {
|
|
|
28571
28570
|
* @returns {Ed25519KeyHash}
|
|
28572
28571
|
*/
|
|
28573
28572
|
pool_keyhash() {
|
|
28574
|
-
const ret = wasm.
|
|
28573
|
+
const ret = wasm.stakevoteregistrationanddelegation_pool_keyhash(this.__wbg_ptr);
|
|
28575
28574
|
return Ed25519KeyHash.__wrap(ret);
|
|
28576
28575
|
}
|
|
28577
28576
|
/**
|
|
@@ -28585,7 +28584,7 @@ class StakeVoteRegistrationAndDelegation {
|
|
|
28585
28584
|
* @returns {BigNum}
|
|
28586
28585
|
*/
|
|
28587
28586
|
coin() {
|
|
28588
|
-
const ret = wasm.
|
|
28587
|
+
const ret = wasm.stakevoteregistrationanddelegation_coin(this.__wbg_ptr);
|
|
28589
28588
|
return BigNum.__wrap(ret);
|
|
28590
28589
|
}
|
|
28591
28590
|
/**
|
|
@@ -28643,14 +28642,14 @@ class Strings {
|
|
|
28643
28642
|
* @returns {Strings}
|
|
28644
28643
|
*/
|
|
28645
28644
|
static new() {
|
|
28646
|
-
const ret = wasm.
|
|
28645
|
+
const ret = wasm.relays_new();
|
|
28647
28646
|
return Strings.__wrap(ret);
|
|
28648
28647
|
}
|
|
28649
28648
|
/**
|
|
28650
28649
|
* @returns {number}
|
|
28651
28650
|
*/
|
|
28652
28651
|
len() {
|
|
28653
|
-
const ret = wasm.
|
|
28652
|
+
const ret = wasm.strings_len(this.__wbg_ptr);
|
|
28654
28653
|
return ret >>> 0;
|
|
28655
28654
|
}
|
|
28656
28655
|
/**
|
|
@@ -28875,7 +28874,7 @@ class TimelockExpiry {
|
|
|
28875
28874
|
* @returns {BigNum}
|
|
28876
28875
|
*/
|
|
28877
28876
|
slot_bignum() {
|
|
28878
|
-
const ret = wasm.
|
|
28877
|
+
const ret = wasm.linearfee_constant(this.__wbg_ptr);
|
|
28879
28878
|
return BigNum.__wrap(ret);
|
|
28880
28879
|
}
|
|
28881
28880
|
/**
|
|
@@ -29096,7 +29095,7 @@ class TimelockStart {
|
|
|
29096
29095
|
* @returns {BigNum}
|
|
29097
29096
|
*/
|
|
29098
29097
|
slot_bignum() {
|
|
29099
|
-
const ret = wasm.
|
|
29098
|
+
const ret = wasm.linearfee_constant(this.__wbg_ptr);
|
|
29100
29099
|
return BigNum.__wrap(ret);
|
|
29101
29100
|
}
|
|
29102
29101
|
/**
|
|
@@ -29606,7 +29605,7 @@ class TransactionBodies {
|
|
|
29606
29605
|
* @returns {TransactionBodies}
|
|
29607
29606
|
*/
|
|
29608
29607
|
static new() {
|
|
29609
|
-
const ret = wasm.
|
|
29608
|
+
const ret = wasm.fixedtransactionbodies_new();
|
|
29610
29609
|
return TransactionBodies.__wrap(ret);
|
|
29611
29610
|
}
|
|
29612
29611
|
/**
|
|
@@ -32449,7 +32448,7 @@ class TransactionMetadatumLabels {
|
|
|
32449
32448
|
* @returns {TransactionMetadatumLabels}
|
|
32450
32449
|
*/
|
|
32451
32450
|
static new() {
|
|
32452
|
-
const ret = wasm.
|
|
32451
|
+
const ret = wasm.plutusmapvalues_new();
|
|
32453
32452
|
return TransactionMetadatumLabels.__wrap(ret);
|
|
32454
32453
|
}
|
|
32455
32454
|
/**
|
|
@@ -33895,7 +33894,7 @@ class TransactionWitnessSets {
|
|
|
33895
33894
|
* @returns {TransactionWitnessSets}
|
|
33896
33895
|
*/
|
|
33897
33896
|
static new() {
|
|
33898
|
-
const ret = wasm.
|
|
33897
|
+
const ret = wasm.transactionwitnesssets_new();
|
|
33899
33898
|
return TransactionWitnessSets.__wrap(ret);
|
|
33900
33899
|
}
|
|
33901
33900
|
/**
|
|
@@ -34700,7 +34699,7 @@ class URL {
|
|
|
34700
34699
|
let deferred1_1;
|
|
34701
34700
|
try {
|
|
34702
34701
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
34703
|
-
wasm.
|
|
34702
|
+
wasm.dnsrecordaoraaaa_record(retptr, this.__wbg_ptr);
|
|
34704
34703
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
34705
34704
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
34706
34705
|
deferred1_0 = r0;
|
|
@@ -36583,14 +36582,14 @@ class Vkeys {
|
|
|
36583
36582
|
* @returns {Vkeys}
|
|
36584
36583
|
*/
|
|
36585
36584
|
static new() {
|
|
36586
|
-
const ret = wasm.
|
|
36585
|
+
const ret = wasm.languages_new();
|
|
36587
36586
|
return Vkeys.__wrap(ret);
|
|
36588
36587
|
}
|
|
36589
36588
|
/**
|
|
36590
36589
|
* @returns {number}
|
|
36591
36590
|
*/
|
|
36592
36591
|
len() {
|
|
36593
|
-
const ret = wasm.
|
|
36592
|
+
const ret = wasm.vkeys_len(this.__wbg_ptr);
|
|
36594
36593
|
return ret >>> 0;
|
|
36595
36594
|
}
|
|
36596
36595
|
/**
|
|
@@ -36802,7 +36801,7 @@ class Vkeywitness {
|
|
|
36802
36801
|
* @returns {Ed25519Signature}
|
|
36803
36802
|
*/
|
|
36804
36803
|
signature() {
|
|
36805
|
-
const ret = wasm.
|
|
36804
|
+
const ret = wasm.operationalcert_sigma(this.__wbg_ptr);
|
|
36806
36805
|
return Ed25519Signature.__wrap(ret);
|
|
36807
36806
|
}
|
|
36808
36807
|
}
|
|
@@ -36981,14 +36980,14 @@ class Vkeywitnesses {
|
|
|
36981
36980
|
* @returns {Vkeywitnesses}
|
|
36982
36981
|
*/
|
|
36983
36982
|
static new() {
|
|
36984
|
-
const ret = wasm.
|
|
36983
|
+
const ret = wasm.bootstrapwitnesses_new();
|
|
36985
36984
|
return Vkeywitnesses.__wrap(ret);
|
|
36986
36985
|
}
|
|
36987
36986
|
/**
|
|
36988
36987
|
* @returns {number}
|
|
36989
36988
|
*/
|
|
36990
36989
|
len() {
|
|
36991
|
-
const ret = wasm.
|
|
36990
|
+
const ret = wasm.bootstrapwitnesses_len(this.__wbg_ptr);
|
|
36992
36991
|
return ret >>> 0;
|
|
36993
36992
|
}
|
|
36994
36993
|
/**
|
|
@@ -37186,7 +37185,7 @@ class VoteDelegation {
|
|
|
37186
37185
|
* @returns {Credential}
|
|
37187
37186
|
*/
|
|
37188
37187
|
stake_credential() {
|
|
37189
|
-
const ret = wasm.
|
|
37188
|
+
const ret = wasm.stakeandvotedelegation_stake_credential(this.__wbg_ptr);
|
|
37190
37189
|
return Credential.__wrap(ret);
|
|
37191
37190
|
}
|
|
37192
37191
|
/**
|
|
@@ -37211,7 +37210,7 @@ class VoteDelegation {
|
|
|
37211
37210
|
* @returns {boolean}
|
|
37212
37211
|
*/
|
|
37213
37212
|
has_script_credentials() {
|
|
37214
|
-
const ret = wasm.
|
|
37213
|
+
const ret = wasm.stakeandvotedelegation_has_script_credentials(this.__wbg_ptr);
|
|
37215
37214
|
return ret !== 0;
|
|
37216
37215
|
}
|
|
37217
37216
|
}
|
|
@@ -37404,7 +37403,7 @@ class VoteRegistrationAndDelegation {
|
|
|
37404
37403
|
* @returns {BigNum}
|
|
37405
37404
|
*/
|
|
37406
37405
|
coin() {
|
|
37407
|
-
const ret = wasm.
|
|
37406
|
+
const ret = wasm.stakevoteregistrationanddelegation_coin(this.__wbg_ptr);
|
|
37408
37407
|
return BigNum.__wrap(ret);
|
|
37409
37408
|
}
|
|
37410
37409
|
/**
|
|
@@ -37825,7 +37824,7 @@ class VotingBuilder {
|
|
|
37825
37824
|
* @returns {VotingBuilder}
|
|
37826
37825
|
*/
|
|
37827
37826
|
static new() {
|
|
37828
|
-
const ret = wasm.
|
|
37827
|
+
const ret = wasm.votingbuilder_new();
|
|
37829
37828
|
return VotingBuilder.__wrap(ret);
|
|
37830
37829
|
}
|
|
37831
37830
|
/**
|
|
@@ -38131,7 +38130,7 @@ class VotingProcedure {
|
|
|
38131
38130
|
* @returns {Anchor | undefined}
|
|
38132
38131
|
*/
|
|
38133
38132
|
anchor() {
|
|
38134
|
-
const ret = wasm.
|
|
38133
|
+
const ret = wasm.committeecoldresign_anchor(this.__wbg_ptr);
|
|
38135
38134
|
return ret === 0 ? undefined : Anchor.__wrap(ret);
|
|
38136
38135
|
}
|
|
38137
38136
|
}
|
|
@@ -38310,7 +38309,7 @@ class VotingProcedures {
|
|
|
38310
38309
|
* @returns {VotingProcedures}
|
|
38311
38310
|
*/
|
|
38312
38311
|
static new() {
|
|
38313
|
-
const ret = wasm.
|
|
38312
|
+
const ret = wasm.votingbuilder_new();
|
|
38314
38313
|
return VotingProcedures.__wrap(ret);
|
|
38315
38314
|
}
|
|
38316
38315
|
/**
|
|
@@ -38599,7 +38598,7 @@ class VotingProposalBuilder {
|
|
|
38599
38598
|
* @returns {VotingProposalBuilder}
|
|
38600
38599
|
*/
|
|
38601
38600
|
static new() {
|
|
38602
|
-
const ret = wasm.
|
|
38601
|
+
const ret = wasm.votingbuilder_new();
|
|
38603
38602
|
return VotingProposalBuilder.__wrap(ret);
|
|
38604
38603
|
}
|
|
38605
38604
|
/**
|
|
@@ -38842,14 +38841,14 @@ class VotingProposals {
|
|
|
38842
38841
|
* @returns {VotingProposals}
|
|
38843
38842
|
*/
|
|
38844
38843
|
static new() {
|
|
38845
|
-
const ret = wasm.
|
|
38844
|
+
const ret = wasm.credentials_new();
|
|
38846
38845
|
return VotingProposals.__wrap(ret);
|
|
38847
38846
|
}
|
|
38848
38847
|
/**
|
|
38849
38848
|
* @returns {number}
|
|
38850
38849
|
*/
|
|
38851
38850
|
len() {
|
|
38852
|
-
const ret = wasm.
|
|
38851
|
+
const ret = wasm.credentials_len(this.__wbg_ptr);
|
|
38853
38852
|
return ret >>> 0;
|
|
38854
38853
|
}
|
|
38855
38854
|
/**
|
|
@@ -39133,7 +39132,7 @@ class WithdrawalsBuilder {
|
|
|
39133
39132
|
* @returns {WithdrawalsBuilder}
|
|
39134
39133
|
*/
|
|
39135
39134
|
static new() {
|
|
39136
|
-
const ret = wasm.
|
|
39135
|
+
const ret = wasm.mintbuilder_new();
|
|
39137
39136
|
return WithdrawalsBuilder.__wrap(ret);
|
|
39138
39137
|
}
|
|
39139
39138
|
/**
|
|
@@ -39609,14 +39608,14 @@ module.exports.__wbg_getRandomValues_dc67302a7bd1aec5 = function(arg0) {
|
|
|
39609
39608
|
return addHeapObject(ret);
|
|
39610
39609
|
};
|
|
39611
39610
|
|
|
39612
|
-
module.exports.__wbg_getRandomValues_02639197c8166a96 = function(arg0, arg1, arg2) {
|
|
39613
|
-
getObject(arg0).getRandomValues(getArrayU8FromWasm0(arg1, arg2));
|
|
39614
|
-
};
|
|
39615
|
-
|
|
39616
39611
|
module.exports.__wbg_randomFillSync_dd2297de5917c74e = function(arg0, arg1, arg2) {
|
|
39617
39612
|
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
39618
39613
|
};
|
|
39619
39614
|
|
|
39615
|
+
module.exports.__wbg_getRandomValues_02639197c8166a96 = function(arg0, arg1, arg2) {
|
|
39616
|
+
getObject(arg0).getRandomValues(getArrayU8FromWasm0(arg1, arg2));
|
|
39617
|
+
};
|
|
39618
|
+
|
|
39620
39619
|
module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
39621
39620
|
const v = getObject(arg1);
|
|
39622
39621
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|