@cardananium/cquisitor-lib 0.1.0-beta.16 → 0.1.0-beta.17
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 +759 -543
- package/browser/cquisitor_lib_bg.js +364 -369
- package/browser/cquisitor_lib_bg.wasm +0 -0
- package/browser/cquisitor_lib_bg.wasm.d.ts +2199 -2199
- package/node/cquisitor_lib.d.ts +759 -543
- package/node/cquisitor_lib.js +363 -368
- package/node/cquisitor_lib_bg.wasm +0 -0
- package/node/cquisitor_lib_bg.wasm.d.ts +2199 -2199
- package/package.json +1 -1
package/node/cquisitor_lib.js
CHANGED
|
@@ -285,49 +285,39 @@ module.exports.get_possible_types_for_input = function(input) {
|
|
|
285
285
|
};
|
|
286
286
|
|
|
287
287
|
/**
|
|
288
|
-
* @param {string}
|
|
289
|
-
* @returns {
|
|
288
|
+
* @param {string} hex
|
|
289
|
+
* @returns {any}
|
|
290
290
|
*/
|
|
291
|
-
module.exports.
|
|
292
|
-
let deferred3_0;
|
|
293
|
-
let deferred3_1;
|
|
291
|
+
module.exports.decode_plutus_program_uplc_json = function(hex) {
|
|
294
292
|
try {
|
|
295
293
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
296
|
-
const ptr0 = passStringToWasm0(
|
|
294
|
+
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
297
295
|
const len0 = WASM_VECTOR_LEN;
|
|
298
|
-
wasm.
|
|
296
|
+
wasm.decode_plutus_program_uplc_json(retptr, ptr0, len0);
|
|
299
297
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
300
298
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
301
299
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
var len2 = r1;
|
|
305
|
-
if (r3) {
|
|
306
|
-
ptr2 = 0; len2 = 0;
|
|
307
|
-
throw takeObject(r2);
|
|
300
|
+
if (r2) {
|
|
301
|
+
throw takeObject(r1);
|
|
308
302
|
}
|
|
309
|
-
|
|
310
|
-
deferred3_1 = len2;
|
|
311
|
-
return getStringFromWasm0(ptr2, len2);
|
|
303
|
+
return takeObject(r0);
|
|
312
304
|
} finally {
|
|
313
305
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
314
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
315
306
|
}
|
|
316
307
|
};
|
|
317
308
|
|
|
318
309
|
/**
|
|
319
|
-
* @param {string}
|
|
320
|
-
* @param {any} validation_context
|
|
310
|
+
* @param {string} hex
|
|
321
311
|
* @returns {string}
|
|
322
312
|
*/
|
|
323
|
-
module.exports.
|
|
313
|
+
module.exports.decode_plutus_program_pretty_uplc = function(hex) {
|
|
324
314
|
let deferred3_0;
|
|
325
315
|
let deferred3_1;
|
|
326
316
|
try {
|
|
327
317
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
328
|
-
const ptr0 = passStringToWasm0(
|
|
318
|
+
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
329
319
|
const len0 = WASM_VECTOR_LEN;
|
|
330
|
-
wasm.
|
|
320
|
+
wasm.decode_plutus_program_pretty_uplc(retptr, ptr0, len0);
|
|
331
321
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
332
322
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
333
323
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -397,61 +387,49 @@ module.exports.execute_tx_scripts = function(tx_hex, utxo_json, cost_models_json
|
|
|
397
387
|
};
|
|
398
388
|
|
|
399
389
|
/**
|
|
400
|
-
* @param {string}
|
|
401
|
-
* @returns {
|
|
402
|
-
*/
|
|
403
|
-
module.exports.check_block_or_tx_signatures = function(hex_str) {
|
|
404
|
-
try {
|
|
405
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
406
|
-
const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
407
|
-
const len0 = WASM_VECTOR_LEN;
|
|
408
|
-
wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
|
|
409
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
410
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
411
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
412
|
-
if (r2) {
|
|
413
|
-
throw takeObject(r1);
|
|
414
|
-
}
|
|
415
|
-
return takeObject(r0);
|
|
416
|
-
} finally {
|
|
417
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
418
|
-
}
|
|
419
|
-
};
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
* @param {string} hex
|
|
423
|
-
* @returns {any}
|
|
390
|
+
* @param {string} tx_hex
|
|
391
|
+
* @returns {string}
|
|
424
392
|
*/
|
|
425
|
-
module.exports.
|
|
393
|
+
module.exports.get_necessary_data_list_js = function(tx_hex) {
|
|
394
|
+
let deferred3_0;
|
|
395
|
+
let deferred3_1;
|
|
426
396
|
try {
|
|
427
397
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
428
|
-
const ptr0 = passStringToWasm0(
|
|
398
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
429
399
|
const len0 = WASM_VECTOR_LEN;
|
|
430
|
-
wasm.
|
|
400
|
+
wasm.get_necessary_data_list_js(retptr, ptr0, len0);
|
|
431
401
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
432
402
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
433
403
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
434
|
-
|
|
435
|
-
|
|
404
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
405
|
+
var ptr2 = r0;
|
|
406
|
+
var len2 = r1;
|
|
407
|
+
if (r3) {
|
|
408
|
+
ptr2 = 0; len2 = 0;
|
|
409
|
+
throw takeObject(r2);
|
|
436
410
|
}
|
|
437
|
-
|
|
411
|
+
deferred3_0 = ptr2;
|
|
412
|
+
deferred3_1 = len2;
|
|
413
|
+
return getStringFromWasm0(ptr2, len2);
|
|
438
414
|
} finally {
|
|
439
415
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
416
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
440
417
|
}
|
|
441
418
|
};
|
|
442
419
|
|
|
443
420
|
/**
|
|
444
|
-
* @param {string}
|
|
421
|
+
* @param {string} tx_hex
|
|
422
|
+
* @param {any} validation_context
|
|
445
423
|
* @returns {string}
|
|
446
424
|
*/
|
|
447
|
-
module.exports.
|
|
425
|
+
module.exports.validate_transaction_js = function(tx_hex, validation_context) {
|
|
448
426
|
let deferred3_0;
|
|
449
427
|
let deferred3_1;
|
|
450
428
|
try {
|
|
451
429
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
452
|
-
const ptr0 = passStringToWasm0(
|
|
430
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
453
431
|
const len0 = WASM_VECTOR_LEN;
|
|
454
|
-
wasm.
|
|
432
|
+
wasm.validate_transaction_js(retptr, ptr0, len0, addHeapObject(validation_context));
|
|
455
433
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
456
434
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
457
435
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -493,12 +471,27 @@ module.exports.cbor_to_json = function(cbor_hex) {
|
|
|
493
471
|
}
|
|
494
472
|
};
|
|
495
473
|
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
474
|
+
/**
|
|
475
|
+
* @param {string} hex_str
|
|
476
|
+
* @returns {any}
|
|
477
|
+
*/
|
|
478
|
+
module.exports.check_block_or_tx_signatures = function(hex_str) {
|
|
479
|
+
try {
|
|
480
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
481
|
+
const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
482
|
+
const len0 = WASM_VECTOR_LEN;
|
|
483
|
+
wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
|
|
484
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
485
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
486
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
487
|
+
if (r2) {
|
|
488
|
+
throw takeObject(r1);
|
|
489
|
+
}
|
|
490
|
+
return takeObject(r0);
|
|
491
|
+
} finally {
|
|
492
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
499
493
|
}
|
|
500
|
-
|
|
501
|
-
}
|
|
494
|
+
};
|
|
502
495
|
|
|
503
496
|
function getArrayU8FromWasm0(ptr, len) {
|
|
504
497
|
ptr = ptr >>> 0;
|
|
@@ -512,10 +505,155 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
512
505
|
return ptr;
|
|
513
506
|
}
|
|
514
507
|
|
|
515
|
-
function
|
|
516
|
-
|
|
517
|
-
|
|
508
|
+
function _assertClass(instance, klass) {
|
|
509
|
+
if (!(instance instanceof klass)) {
|
|
510
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
511
|
+
}
|
|
512
|
+
return instance.ptr;
|
|
518
513
|
}
|
|
514
|
+
/**
|
|
515
|
+
* @param {string} json
|
|
516
|
+
* @param {PlutusDatumSchema} schema
|
|
517
|
+
* @returns {PlutusData}
|
|
518
|
+
*/
|
|
519
|
+
module.exports.encode_json_str_to_plutus_datum = function(json, schema) {
|
|
520
|
+
try {
|
|
521
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
522
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
523
|
+
const len0 = WASM_VECTOR_LEN;
|
|
524
|
+
wasm.encode_json_str_to_plutus_datum(retptr, ptr0, len0, schema);
|
|
525
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
526
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
527
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
528
|
+
if (r2) {
|
|
529
|
+
throw takeObject(r1);
|
|
530
|
+
}
|
|
531
|
+
return PlutusData.__wrap(r0);
|
|
532
|
+
} finally {
|
|
533
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
534
|
+
}
|
|
535
|
+
};
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* @param {PlutusData} datum
|
|
539
|
+
* @param {PlutusDatumSchema} schema
|
|
540
|
+
* @returns {string}
|
|
541
|
+
*/
|
|
542
|
+
module.exports.decode_plutus_datum_to_json_str = function(datum, schema) {
|
|
543
|
+
let deferred2_0;
|
|
544
|
+
let deferred2_1;
|
|
545
|
+
try {
|
|
546
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
547
|
+
_assertClass(datum, PlutusData);
|
|
548
|
+
wasm.decode_plutus_datum_to_json_str(retptr, datum.__wbg_ptr, schema);
|
|
549
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
550
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
551
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
552
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
553
|
+
var ptr1 = r0;
|
|
554
|
+
var len1 = r1;
|
|
555
|
+
if (r3) {
|
|
556
|
+
ptr1 = 0; len1 = 0;
|
|
557
|
+
throw takeObject(r2);
|
|
558
|
+
}
|
|
559
|
+
deferred2_0 = ptr1;
|
|
560
|
+
deferred2_1 = len1;
|
|
561
|
+
return getStringFromWasm0(ptr1, len1);
|
|
562
|
+
} finally {
|
|
563
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
564
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
565
|
+
}
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* @param {Uint8Array} bytes
|
|
570
|
+
* @returns {TransactionMetadatum}
|
|
571
|
+
*/
|
|
572
|
+
module.exports.encode_arbitrary_bytes_as_metadatum = function(bytes) {
|
|
573
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
574
|
+
const len0 = WASM_VECTOR_LEN;
|
|
575
|
+
const ret = wasm.encode_arbitrary_bytes_as_metadatum(ptr0, len0);
|
|
576
|
+
return TransactionMetadatum.__wrap(ret);
|
|
577
|
+
};
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* @param {TransactionMetadatum} metadata
|
|
581
|
+
* @returns {Uint8Array}
|
|
582
|
+
*/
|
|
583
|
+
module.exports.decode_arbitrary_bytes_from_metadatum = function(metadata) {
|
|
584
|
+
try {
|
|
585
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
586
|
+
_assertClass(metadata, TransactionMetadatum);
|
|
587
|
+
wasm.decode_arbitrary_bytes_from_metadatum(retptr, metadata.__wbg_ptr);
|
|
588
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
589
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
590
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
591
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
592
|
+
if (r3) {
|
|
593
|
+
throw takeObject(r2);
|
|
594
|
+
}
|
|
595
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
596
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
597
|
+
return v1;
|
|
598
|
+
} finally {
|
|
599
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
600
|
+
}
|
|
601
|
+
};
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* @param {string} json
|
|
605
|
+
* @param {MetadataJsonSchema} schema
|
|
606
|
+
* @returns {TransactionMetadatum}
|
|
607
|
+
*/
|
|
608
|
+
module.exports.encode_json_str_to_metadatum = function(json, schema) {
|
|
609
|
+
try {
|
|
610
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
611
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
612
|
+
const len0 = WASM_VECTOR_LEN;
|
|
613
|
+
wasm.encode_json_str_to_metadatum(retptr, ptr0, len0, schema);
|
|
614
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
615
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
616
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
617
|
+
if (r2) {
|
|
618
|
+
throw takeObject(r1);
|
|
619
|
+
}
|
|
620
|
+
return TransactionMetadatum.__wrap(r0);
|
|
621
|
+
} finally {
|
|
622
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* @param {TransactionMetadatum} metadatum
|
|
628
|
+
* @param {MetadataJsonSchema} schema
|
|
629
|
+
* @returns {string}
|
|
630
|
+
*/
|
|
631
|
+
module.exports.decode_metadatum_to_json_str = function(metadatum, schema) {
|
|
632
|
+
let deferred2_0;
|
|
633
|
+
let deferred2_1;
|
|
634
|
+
try {
|
|
635
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
636
|
+
_assertClass(metadatum, TransactionMetadatum);
|
|
637
|
+
wasm.decode_metadatum_to_json_str(retptr, metadatum.__wbg_ptr, schema);
|
|
638
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
639
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
640
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
641
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
642
|
+
var ptr1 = r0;
|
|
643
|
+
var len1 = r1;
|
|
644
|
+
if (r3) {
|
|
645
|
+
ptr1 = 0; len1 = 0;
|
|
646
|
+
throw takeObject(r2);
|
|
647
|
+
}
|
|
648
|
+
deferred2_0 = ptr1;
|
|
649
|
+
deferred2_1 = len1;
|
|
650
|
+
return getStringFromWasm0(ptr1, len1);
|
|
651
|
+
} finally {
|
|
652
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
653
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
654
|
+
}
|
|
655
|
+
};
|
|
656
|
+
|
|
519
657
|
/**
|
|
520
658
|
* @param {Transaction} tx
|
|
521
659
|
* @param {LinearFee} linear_fee
|
|
@@ -607,86 +745,17 @@ module.exports.min_ref_script_fee = function(total_ref_scripts_size, ref_script_
|
|
|
607
745
|
}
|
|
608
746
|
};
|
|
609
747
|
|
|
748
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
749
|
+
ptr = ptr >>> 0;
|
|
750
|
+
return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
|
|
751
|
+
}
|
|
752
|
+
|
|
610
753
|
function passArray32ToWasm0(arg, malloc) {
|
|
611
754
|
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
612
755
|
getUint32Memory0().set(arg, ptr / 4);
|
|
613
756
|
WASM_VECTOR_LEN = arg.length;
|
|
614
757
|
return ptr;
|
|
615
758
|
}
|
|
616
|
-
/**
|
|
617
|
-
* @param {string} password
|
|
618
|
-
* @param {string} salt
|
|
619
|
-
* @param {string} nonce
|
|
620
|
-
* @param {string} data
|
|
621
|
-
* @returns {string}
|
|
622
|
-
*/
|
|
623
|
-
module.exports.encrypt_with_password = function(password, salt, nonce, data) {
|
|
624
|
-
let deferred6_0;
|
|
625
|
-
let deferred6_1;
|
|
626
|
-
try {
|
|
627
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
628
|
-
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
629
|
-
const len0 = WASM_VECTOR_LEN;
|
|
630
|
-
const ptr1 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
631
|
-
const len1 = WASM_VECTOR_LEN;
|
|
632
|
-
const ptr2 = passStringToWasm0(nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
633
|
-
const len2 = WASM_VECTOR_LEN;
|
|
634
|
-
const ptr3 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
635
|
-
const len3 = WASM_VECTOR_LEN;
|
|
636
|
-
wasm.encrypt_with_password(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
637
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
638
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
639
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
640
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
641
|
-
var ptr5 = r0;
|
|
642
|
-
var len5 = r1;
|
|
643
|
-
if (r3) {
|
|
644
|
-
ptr5 = 0; len5 = 0;
|
|
645
|
-
throw takeObject(r2);
|
|
646
|
-
}
|
|
647
|
-
deferred6_0 = ptr5;
|
|
648
|
-
deferred6_1 = len5;
|
|
649
|
-
return getStringFromWasm0(ptr5, len5);
|
|
650
|
-
} finally {
|
|
651
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
652
|
-
wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
|
|
653
|
-
}
|
|
654
|
-
};
|
|
655
|
-
|
|
656
|
-
/**
|
|
657
|
-
* @param {string} password
|
|
658
|
-
* @param {string} data
|
|
659
|
-
* @returns {string}
|
|
660
|
-
*/
|
|
661
|
-
module.exports.decrypt_with_password = function(password, data) {
|
|
662
|
-
let deferred4_0;
|
|
663
|
-
let deferred4_1;
|
|
664
|
-
try {
|
|
665
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
666
|
-
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
667
|
-
const len0 = WASM_VECTOR_LEN;
|
|
668
|
-
const ptr1 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
669
|
-
const len1 = WASM_VECTOR_LEN;
|
|
670
|
-
wasm.decrypt_with_password(retptr, ptr0, len0, ptr1, len1);
|
|
671
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
672
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
673
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
674
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
675
|
-
var ptr3 = r0;
|
|
676
|
-
var len3 = r1;
|
|
677
|
-
if (r3) {
|
|
678
|
-
ptr3 = 0; len3 = 0;
|
|
679
|
-
throw takeObject(r2);
|
|
680
|
-
}
|
|
681
|
-
deferred4_0 = ptr3;
|
|
682
|
-
deferred4_1 = len3;
|
|
683
|
-
return getStringFromWasm0(ptr3, len3);
|
|
684
|
-
} finally {
|
|
685
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
686
|
-
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
687
|
-
}
|
|
688
|
-
};
|
|
689
|
-
|
|
690
759
|
/**
|
|
691
760
|
* @param {TransactionHash} tx_body_hash
|
|
692
761
|
* @param {ByronAddress} addr
|
|
@@ -902,6 +971,80 @@ module.exports.has_transaction_set_tag = function(tx_bytes) {
|
|
|
902
971
|
}
|
|
903
972
|
};
|
|
904
973
|
|
|
974
|
+
/**
|
|
975
|
+
* @param {string} password
|
|
976
|
+
* @param {string} salt
|
|
977
|
+
* @param {string} nonce
|
|
978
|
+
* @param {string} data
|
|
979
|
+
* @returns {string}
|
|
980
|
+
*/
|
|
981
|
+
module.exports.encrypt_with_password = function(password, salt, nonce, data) {
|
|
982
|
+
let deferred6_0;
|
|
983
|
+
let deferred6_1;
|
|
984
|
+
try {
|
|
985
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
986
|
+
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
987
|
+
const len0 = WASM_VECTOR_LEN;
|
|
988
|
+
const ptr1 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
989
|
+
const len1 = WASM_VECTOR_LEN;
|
|
990
|
+
const ptr2 = passStringToWasm0(nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
991
|
+
const len2 = WASM_VECTOR_LEN;
|
|
992
|
+
const ptr3 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
993
|
+
const len3 = WASM_VECTOR_LEN;
|
|
994
|
+
wasm.encrypt_with_password(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
995
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
996
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
997
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
998
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
999
|
+
var ptr5 = r0;
|
|
1000
|
+
var len5 = r1;
|
|
1001
|
+
if (r3) {
|
|
1002
|
+
ptr5 = 0; len5 = 0;
|
|
1003
|
+
throw takeObject(r2);
|
|
1004
|
+
}
|
|
1005
|
+
deferred6_0 = ptr5;
|
|
1006
|
+
deferred6_1 = len5;
|
|
1007
|
+
return getStringFromWasm0(ptr5, len5);
|
|
1008
|
+
} finally {
|
|
1009
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1010
|
+
wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
|
|
1011
|
+
}
|
|
1012
|
+
};
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* @param {string} password
|
|
1016
|
+
* @param {string} data
|
|
1017
|
+
* @returns {string}
|
|
1018
|
+
*/
|
|
1019
|
+
module.exports.decrypt_with_password = function(password, data) {
|
|
1020
|
+
let deferred4_0;
|
|
1021
|
+
let deferred4_1;
|
|
1022
|
+
try {
|
|
1023
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1024
|
+
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1025
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1026
|
+
const ptr1 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1027
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1028
|
+
wasm.decrypt_with_password(retptr, ptr0, len0, ptr1, len1);
|
|
1029
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1030
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1031
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
1032
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
1033
|
+
var ptr3 = r0;
|
|
1034
|
+
var len3 = r1;
|
|
1035
|
+
if (r3) {
|
|
1036
|
+
ptr3 = 0; len3 = 0;
|
|
1037
|
+
throw takeObject(r2);
|
|
1038
|
+
}
|
|
1039
|
+
deferred4_0 = ptr3;
|
|
1040
|
+
deferred4_1 = len3;
|
|
1041
|
+
return getStringFromWasm0(ptr3, len3);
|
|
1042
|
+
} finally {
|
|
1043
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1044
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
1045
|
+
}
|
|
1046
|
+
};
|
|
1047
|
+
|
|
905
1048
|
/**
|
|
906
1049
|
* @param {Address} address
|
|
907
1050
|
* @param {TransactionUnspentOutputs} utxos
|
|
@@ -927,149 +1070,6 @@ module.exports.create_send_all = function(address, utxos, config) {
|
|
|
927
1070
|
}
|
|
928
1071
|
};
|
|
929
1072
|
|
|
930
|
-
/**
|
|
931
|
-
* @param {string} json
|
|
932
|
-
* @param {PlutusDatumSchema} schema
|
|
933
|
-
* @returns {PlutusData}
|
|
934
|
-
*/
|
|
935
|
-
module.exports.encode_json_str_to_plutus_datum = function(json, schema) {
|
|
936
|
-
try {
|
|
937
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
938
|
-
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
939
|
-
const len0 = WASM_VECTOR_LEN;
|
|
940
|
-
wasm.encode_json_str_to_plutus_datum(retptr, ptr0, len0, schema);
|
|
941
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
942
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
943
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
944
|
-
if (r2) {
|
|
945
|
-
throw takeObject(r1);
|
|
946
|
-
}
|
|
947
|
-
return PlutusData.__wrap(r0);
|
|
948
|
-
} finally {
|
|
949
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
950
|
-
}
|
|
951
|
-
};
|
|
952
|
-
|
|
953
|
-
/**
|
|
954
|
-
* @param {PlutusData} datum
|
|
955
|
-
* @param {PlutusDatumSchema} schema
|
|
956
|
-
* @returns {string}
|
|
957
|
-
*/
|
|
958
|
-
module.exports.decode_plutus_datum_to_json_str = function(datum, schema) {
|
|
959
|
-
let deferred2_0;
|
|
960
|
-
let deferred2_1;
|
|
961
|
-
try {
|
|
962
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
963
|
-
_assertClass(datum, PlutusData);
|
|
964
|
-
wasm.decode_plutus_datum_to_json_str(retptr, datum.__wbg_ptr, schema);
|
|
965
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
966
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
967
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
968
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
969
|
-
var ptr1 = r0;
|
|
970
|
-
var len1 = r1;
|
|
971
|
-
if (r3) {
|
|
972
|
-
ptr1 = 0; len1 = 0;
|
|
973
|
-
throw takeObject(r2);
|
|
974
|
-
}
|
|
975
|
-
deferred2_0 = ptr1;
|
|
976
|
-
deferred2_1 = len1;
|
|
977
|
-
return getStringFromWasm0(ptr1, len1);
|
|
978
|
-
} finally {
|
|
979
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
980
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
981
|
-
}
|
|
982
|
-
};
|
|
983
|
-
|
|
984
|
-
/**
|
|
985
|
-
* @param {Uint8Array} bytes
|
|
986
|
-
* @returns {TransactionMetadatum}
|
|
987
|
-
*/
|
|
988
|
-
module.exports.encode_arbitrary_bytes_as_metadatum = function(bytes) {
|
|
989
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
990
|
-
const len0 = WASM_VECTOR_LEN;
|
|
991
|
-
const ret = wasm.encode_arbitrary_bytes_as_metadatum(ptr0, len0);
|
|
992
|
-
return TransactionMetadatum.__wrap(ret);
|
|
993
|
-
};
|
|
994
|
-
|
|
995
|
-
/**
|
|
996
|
-
* @param {TransactionMetadatum} metadata
|
|
997
|
-
* @returns {Uint8Array}
|
|
998
|
-
*/
|
|
999
|
-
module.exports.decode_arbitrary_bytes_from_metadatum = function(metadata) {
|
|
1000
|
-
try {
|
|
1001
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1002
|
-
_assertClass(metadata, TransactionMetadatum);
|
|
1003
|
-
wasm.decode_arbitrary_bytes_from_metadatum(retptr, metadata.__wbg_ptr);
|
|
1004
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1005
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1006
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
1007
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
1008
|
-
if (r3) {
|
|
1009
|
-
throw takeObject(r2);
|
|
1010
|
-
}
|
|
1011
|
-
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
1012
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
1013
|
-
return v1;
|
|
1014
|
-
} finally {
|
|
1015
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1016
|
-
}
|
|
1017
|
-
};
|
|
1018
|
-
|
|
1019
|
-
/**
|
|
1020
|
-
* @param {string} json
|
|
1021
|
-
* @param {MetadataJsonSchema} schema
|
|
1022
|
-
* @returns {TransactionMetadatum}
|
|
1023
|
-
*/
|
|
1024
|
-
module.exports.encode_json_str_to_metadatum = function(json, schema) {
|
|
1025
|
-
try {
|
|
1026
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1027
|
-
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1028
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1029
|
-
wasm.encode_json_str_to_metadatum(retptr, ptr0, len0, schema);
|
|
1030
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1031
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1032
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
1033
|
-
if (r2) {
|
|
1034
|
-
throw takeObject(r1);
|
|
1035
|
-
}
|
|
1036
|
-
return TransactionMetadatum.__wrap(r0);
|
|
1037
|
-
} finally {
|
|
1038
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1039
|
-
}
|
|
1040
|
-
};
|
|
1041
|
-
|
|
1042
|
-
/**
|
|
1043
|
-
* @param {TransactionMetadatum} metadatum
|
|
1044
|
-
* @param {MetadataJsonSchema} schema
|
|
1045
|
-
* @returns {string}
|
|
1046
|
-
*/
|
|
1047
|
-
module.exports.decode_metadatum_to_json_str = function(metadatum, schema) {
|
|
1048
|
-
let deferred2_0;
|
|
1049
|
-
let deferred2_1;
|
|
1050
|
-
try {
|
|
1051
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1052
|
-
_assertClass(metadatum, TransactionMetadatum);
|
|
1053
|
-
wasm.decode_metadatum_to_json_str(retptr, metadatum.__wbg_ptr, schema);
|
|
1054
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1055
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1056
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
1057
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
1058
|
-
var ptr1 = r0;
|
|
1059
|
-
var len1 = r1;
|
|
1060
|
-
if (r3) {
|
|
1061
|
-
ptr1 = 0; len1 = 0;
|
|
1062
|
-
throw takeObject(r2);
|
|
1063
|
-
}
|
|
1064
|
-
deferred2_0 = ptr1;
|
|
1065
|
-
deferred2_1 = len1;
|
|
1066
|
-
return getStringFromWasm0(ptr1, len1);
|
|
1067
|
-
} finally {
|
|
1068
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1069
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1070
|
-
}
|
|
1071
|
-
};
|
|
1072
|
-
|
|
1073
1073
|
function handleError(f, args) {
|
|
1074
1074
|
try {
|
|
1075
1075
|
return f.apply(this, args);
|
|
@@ -1082,10 +1082,16 @@ function handleError(f, args) {
|
|
|
1082
1082
|
module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1083
1083
|
/**
|
|
1084
1084
|
*/
|
|
1085
|
-
module.exports.
|
|
1085
|
+
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", });
|
|
1086
1086
|
/**
|
|
1087
1087
|
*/
|
|
1088
|
-
module.exports.
|
|
1088
|
+
module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1089
|
+
/**
|
|
1090
|
+
*/
|
|
1091
|
+
module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1092
|
+
/**
|
|
1093
|
+
*/
|
|
1094
|
+
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", });
|
|
1089
1095
|
/**
|
|
1090
1096
|
*/
|
|
1091
1097
|
module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
|
|
@@ -1106,6 +1112,28 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
|
1106
1112
|
*/
|
|
1107
1113
|
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1108
1114
|
/**
|
|
1115
|
+
*/
|
|
1116
|
+
module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1117
|
+
/**
|
|
1118
|
+
*/
|
|
1119
|
+
module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1120
|
+
/**
|
|
1121
|
+
*/
|
|
1122
|
+
module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1123
|
+
/**
|
|
1124
|
+
* Used to choosed the schema for a script JSON string
|
|
1125
|
+
*/
|
|
1126
|
+
module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1127
|
+
/**
|
|
1128
|
+
*/
|
|
1129
|
+
module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1130
|
+
/**
|
|
1131
|
+
*/
|
|
1132
|
+
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", });
|
|
1133
|
+
/**
|
|
1134
|
+
*/
|
|
1135
|
+
module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1136
|
+
/**
|
|
1109
1137
|
* JSON <-> PlutusData conversion schemas.
|
|
1110
1138
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
1111
1139
|
* https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
|
|
@@ -1158,69 +1186,41 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
1158
1186
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1159
1187
|
/**
|
|
1160
1188
|
*/
|
|
1161
|
-
module.exports.
|
|
1189
|
+
module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1162
1190
|
/**
|
|
1191
|
+
* Each new language uses a different namespace for hashing its script
|
|
1192
|
+
* This is because you could have a language where the same bytes have different semantics
|
|
1193
|
+
* So this avoids scripts in different languages mapping to the same hash
|
|
1194
|
+
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1163
1195
|
*/
|
|
1164
|
-
module.exports.
|
|
1196
|
+
module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1165
1197
|
/**
|
|
1166
1198
|
*/
|
|
1167
|
-
module.exports.
|
|
1199
|
+
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", });
|
|
1168
1200
|
/**
|
|
1169
1201
|
*/
|
|
1170
1202
|
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", });
|
|
1171
1203
|
/**
|
|
1172
1204
|
*/
|
|
1173
|
-
module.exports.
|
|
1174
|
-
/**
|
|
1175
|
-
*/
|
|
1176
|
-
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", });
|
|
1177
|
-
/**
|
|
1178
|
-
*/
|
|
1179
|
-
module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1180
|
-
/**
|
|
1181
|
-
*/
|
|
1182
|
-
module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1205
|
+
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", });
|
|
1183
1206
|
/**
|
|
1184
1207
|
*/
|
|
1185
1208
|
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", });
|
|
1186
1209
|
/**
|
|
1187
1210
|
*/
|
|
1188
|
-
module.exports.
|
|
1189
|
-
/**
|
|
1190
|
-
*/
|
|
1191
|
-
module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1211
|
+
module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1192
1212
|
/**
|
|
1193
1213
|
*/
|
|
1194
|
-
module.exports.
|
|
1214
|
+
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", });
|
|
1195
1215
|
/**
|
|
1196
1216
|
*/
|
|
1197
1217
|
module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1198
1218
|
/**
|
|
1199
1219
|
*/
|
|
1200
|
-
module.exports.
|
|
1201
|
-
/**
|
|
1202
|
-
* Used to choosed the schema for a script JSON string
|
|
1203
|
-
*/
|
|
1204
|
-
module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1205
|
-
/**
|
|
1206
|
-
*/
|
|
1207
|
-
module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1208
|
-
/**
|
|
1209
|
-
*/
|
|
1210
|
-
module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1211
|
-
/**
|
|
1212
|
-
* Each new language uses a different namespace for hashing its script
|
|
1213
|
-
* This is because you could have a language where the same bytes have different semantics
|
|
1214
|
-
* So this avoids scripts in different languages mapping to the same hash
|
|
1215
|
-
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1216
|
-
*/
|
|
1217
|
-
module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1218
|
-
/**
|
|
1219
|
-
*/
|
|
1220
|
-
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", });
|
|
1220
|
+
module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1221
1221
|
/**
|
|
1222
1222
|
*/
|
|
1223
|
-
module.exports.
|
|
1223
|
+
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", });
|
|
1224
1224
|
/**
|
|
1225
1225
|
*/
|
|
1226
1226
|
module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
@@ -8596,7 +8596,7 @@ class DRep {
|
|
|
8596
8596
|
*/
|
|
8597
8597
|
static new_key_hash(key_hash) {
|
|
8598
8598
|
_assertClass(key_hash, Ed25519KeyHash);
|
|
8599
|
-
const ret = wasm.
|
|
8599
|
+
const ret = wasm.drep_new_key_hash(key_hash.__wbg_ptr);
|
|
8600
8600
|
return DRep.__wrap(ret);
|
|
8601
8601
|
}
|
|
8602
8602
|
/**
|
|
@@ -8605,7 +8605,7 @@ class DRep {
|
|
|
8605
8605
|
*/
|
|
8606
8606
|
static new_script_hash(script_hash) {
|
|
8607
8607
|
_assertClass(script_hash, ScriptHash);
|
|
8608
|
-
const ret = wasm.
|
|
8608
|
+
const ret = wasm.drep_new_script_hash(script_hash.__wbg_ptr);
|
|
8609
8609
|
return DRep.__wrap(ret);
|
|
8610
8610
|
}
|
|
8611
8611
|
/**
|
|
@@ -9088,7 +9088,7 @@ class DRepRegistration {
|
|
|
9088
9088
|
* @returns {BigNum}
|
|
9089
9089
|
*/
|
|
9090
9090
|
coin() {
|
|
9091
|
-
const ret = wasm.
|
|
9091
|
+
const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
|
|
9092
9092
|
return BigNum.__wrap(ret);
|
|
9093
9093
|
}
|
|
9094
9094
|
/**
|
|
@@ -10263,14 +10263,14 @@ class Ed25519KeyHashes {
|
|
|
10263
10263
|
* @returns {Ed25519KeyHashes}
|
|
10264
10264
|
*/
|
|
10265
10265
|
static new() {
|
|
10266
|
-
const ret = wasm.
|
|
10266
|
+
const ret = wasm.credentials_new();
|
|
10267
10267
|
return Ed25519KeyHashes.__wrap(ret);
|
|
10268
10268
|
}
|
|
10269
10269
|
/**
|
|
10270
10270
|
* @returns {number}
|
|
10271
10271
|
*/
|
|
10272
10272
|
len() {
|
|
10273
|
-
const ret = wasm.
|
|
10273
|
+
const ret = wasm.credentials_len(this.__wbg_ptr);
|
|
10274
10274
|
return ret >>> 0;
|
|
10275
10275
|
}
|
|
10276
10276
|
/**
|
|
@@ -10699,14 +10699,14 @@ class ExUnitPrices {
|
|
|
10699
10699
|
* @returns {UnitInterval}
|
|
10700
10700
|
*/
|
|
10701
10701
|
mem_price() {
|
|
10702
|
-
const ret = wasm.
|
|
10702
|
+
const ret = wasm.committee_quorum_threshold(this.__wbg_ptr);
|
|
10703
10703
|
return UnitInterval.__wrap(ret);
|
|
10704
10704
|
}
|
|
10705
10705
|
/**
|
|
10706
10706
|
* @returns {UnitInterval}
|
|
10707
10707
|
*/
|
|
10708
10708
|
step_price() {
|
|
10709
|
-
const ret = wasm.
|
|
10709
|
+
const ret = wasm.exunitprices_step_price(this.__wbg_ptr);
|
|
10710
10710
|
return UnitInterval.__wrap(ret);
|
|
10711
10711
|
}
|
|
10712
10712
|
/**
|
|
@@ -13341,7 +13341,7 @@ class GovernanceActionIds {
|
|
|
13341
13341
|
* @returns {GovernanceActionIds}
|
|
13342
13342
|
*/
|
|
13343
13343
|
static new() {
|
|
13344
|
-
const ret = wasm.
|
|
13344
|
+
const ret = wasm.governanceactionids_new();
|
|
13345
13345
|
return GovernanceActionIds.__wrap(ret);
|
|
13346
13346
|
}
|
|
13347
13347
|
/**
|
|
@@ -15453,7 +15453,7 @@ class LegacyDaedalusPrivateKey {
|
|
|
15453
15453
|
as_bytes() {
|
|
15454
15454
|
try {
|
|
15455
15455
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15456
|
-
wasm.
|
|
15456
|
+
wasm.legacydaedalusprivatekey_as_bytes(retptr, this.__wbg_ptr);
|
|
15457
15457
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
15458
15458
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
15459
15459
|
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
@@ -15469,7 +15469,7 @@ class LegacyDaedalusPrivateKey {
|
|
|
15469
15469
|
chaincode() {
|
|
15470
15470
|
try {
|
|
15471
15471
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15472
|
-
wasm.
|
|
15472
|
+
wasm.legacydaedalusprivatekey_chaincode(retptr, this.__wbg_ptr);
|
|
15473
15473
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
15474
15474
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
15475
15475
|
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
@@ -18705,7 +18705,7 @@ class NewConstitutionAction {
|
|
|
18705
18705
|
* @returns {GovernanceActionId | undefined}
|
|
18706
18706
|
*/
|
|
18707
18707
|
gov_action_id() {
|
|
18708
|
-
const ret = wasm.
|
|
18708
|
+
const ret = wasm.newconstitutionaction_gov_action_id(this.__wbg_ptr);
|
|
18709
18709
|
return ret === 0 ? undefined : GovernanceActionId.__wrap(ret);
|
|
18710
18710
|
}
|
|
18711
18711
|
/**
|
|
@@ -18918,7 +18918,7 @@ class NoConfidenceAction {
|
|
|
18918
18918
|
* @returns {GovernanceActionId | undefined}
|
|
18919
18919
|
*/
|
|
18920
18920
|
gov_action_id() {
|
|
18921
|
-
const ret = wasm.
|
|
18921
|
+
const ret = wasm.noconfidenceaction_gov_action_id(this.__wbg_ptr);
|
|
18922
18922
|
return ret === 0 ? undefined : GovernanceActionId.__wrap(ret);
|
|
18923
18923
|
}
|
|
18924
18924
|
/**
|
|
@@ -21026,7 +21026,7 @@ class PlutusWitnesses {
|
|
|
21026
21026
|
* @returns {PlutusWitnesses}
|
|
21027
21027
|
*/
|
|
21028
21028
|
static new() {
|
|
21029
|
-
const ret = wasm.
|
|
21029
|
+
const ret = wasm.fixedtransactionbodies_new();
|
|
21030
21030
|
return PlutusWitnesses.__wrap(ret);
|
|
21031
21031
|
}
|
|
21032
21032
|
/**
|
|
@@ -21178,7 +21178,7 @@ class Pointer {
|
|
|
21178
21178
|
* @returns {BigNum}
|
|
21179
21179
|
*/
|
|
21180
21180
|
cert_index_bignum() {
|
|
21181
|
-
const ret = wasm.
|
|
21181
|
+
const ret = wasm.pointer_cert_index_bignum(this.__wbg_ptr);
|
|
21182
21182
|
return BigNum.__wrap(ret);
|
|
21183
21183
|
}
|
|
21184
21184
|
}
|
|
@@ -24021,7 +24021,7 @@ class PublicKeys {
|
|
|
24021
24021
|
/**
|
|
24022
24022
|
*/
|
|
24023
24023
|
constructor() {
|
|
24024
|
-
const ret = wasm.
|
|
24024
|
+
const ret = wasm.publickeys_new();
|
|
24025
24025
|
this.__wbg_ptr = ret >>> 0;
|
|
24026
24026
|
return this;
|
|
24027
24027
|
}
|
|
@@ -28135,14 +28135,14 @@ class StakeRegistration {
|
|
|
28135
28135
|
* @returns {Credential}
|
|
28136
28136
|
*/
|
|
28137
28137
|
stake_credential() {
|
|
28138
|
-
const ret = wasm.
|
|
28138
|
+
const ret = wasm.stakeregistration_stake_credential(this.__wbg_ptr);
|
|
28139
28139
|
return Credential.__wrap(ret);
|
|
28140
28140
|
}
|
|
28141
28141
|
/**
|
|
28142
28142
|
* @returns {BigNum | undefined}
|
|
28143
28143
|
*/
|
|
28144
28144
|
coin() {
|
|
28145
|
-
const ret = wasm.
|
|
28145
|
+
const ret = wasm.stakeregistration_coin(this.__wbg_ptr);
|
|
28146
28146
|
return ret === 0 ? undefined : BigNum.__wrap(ret);
|
|
28147
28147
|
}
|
|
28148
28148
|
/**
|
|
@@ -28151,7 +28151,7 @@ class StakeRegistration {
|
|
|
28151
28151
|
*/
|
|
28152
28152
|
static new(stake_credential) {
|
|
28153
28153
|
_assertClass(stake_credential, Credential);
|
|
28154
|
-
const ret = wasm.
|
|
28154
|
+
const ret = wasm.stakeregistration_new(stake_credential.__wbg_ptr);
|
|
28155
28155
|
return StakeRegistration.__wrap(ret);
|
|
28156
28156
|
}
|
|
28157
28157
|
/**
|
|
@@ -28162,14 +28162,14 @@ class StakeRegistration {
|
|
|
28162
28162
|
static new_with_explicit_deposit(stake_credential, coin) {
|
|
28163
28163
|
_assertClass(stake_credential, Credential);
|
|
28164
28164
|
_assertClass(coin, BigNum);
|
|
28165
|
-
const ret = wasm.
|
|
28165
|
+
const ret = wasm.stakeregistration_new_with_explicit_deposit(stake_credential.__wbg_ptr, coin.__wbg_ptr);
|
|
28166
28166
|
return StakeRegistration.__wrap(ret);
|
|
28167
28167
|
}
|
|
28168
28168
|
/**
|
|
28169
28169
|
* @returns {boolean}
|
|
28170
28170
|
*/
|
|
28171
28171
|
has_script_credentials() {
|
|
28172
|
-
const ret = wasm.
|
|
28172
|
+
const ret = wasm.stakeregistration_has_script_credentials(this.__wbg_ptr);
|
|
28173
28173
|
return ret !== 0;
|
|
28174
28174
|
}
|
|
28175
28175
|
}
|
|
@@ -28362,7 +28362,7 @@ class StakeRegistrationAndDelegation {
|
|
|
28362
28362
|
* @returns {BigNum}
|
|
28363
28363
|
*/
|
|
28364
28364
|
coin() {
|
|
28365
|
-
const ret = wasm.
|
|
28365
|
+
const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
|
|
28366
28366
|
return BigNum.__wrap(ret);
|
|
28367
28367
|
}
|
|
28368
28368
|
/**
|
|
@@ -28568,7 +28568,7 @@ class StakeVoteRegistrationAndDelegation {
|
|
|
28568
28568
|
* @returns {Ed25519KeyHash}
|
|
28569
28569
|
*/
|
|
28570
28570
|
pool_keyhash() {
|
|
28571
|
-
const ret = wasm.
|
|
28571
|
+
const ret = wasm.stakevoteregistrationanddelegation_pool_keyhash(this.__wbg_ptr);
|
|
28572
28572
|
return Ed25519KeyHash.__wrap(ret);
|
|
28573
28573
|
}
|
|
28574
28574
|
/**
|
|
@@ -28582,7 +28582,7 @@ class StakeVoteRegistrationAndDelegation {
|
|
|
28582
28582
|
* @returns {BigNum}
|
|
28583
28583
|
*/
|
|
28584
28584
|
coin() {
|
|
28585
|
-
const ret = wasm.
|
|
28585
|
+
const ret = wasm.stakevoteregistrationanddelegation_coin(this.__wbg_ptr);
|
|
28586
28586
|
return BigNum.__wrap(ret);
|
|
28587
28587
|
}
|
|
28588
28588
|
/**
|
|
@@ -28640,7 +28640,7 @@ class Strings {
|
|
|
28640
28640
|
* @returns {Strings}
|
|
28641
28641
|
*/
|
|
28642
28642
|
static new() {
|
|
28643
|
-
const ret = wasm.
|
|
28643
|
+
const ret = wasm.relays_new();
|
|
28644
28644
|
return Strings.__wrap(ret);
|
|
28645
28645
|
}
|
|
28646
28646
|
/**
|
|
@@ -28872,7 +28872,7 @@ class TimelockExpiry {
|
|
|
28872
28872
|
* @returns {BigNum}
|
|
28873
28873
|
*/
|
|
28874
28874
|
slot_bignum() {
|
|
28875
|
-
const ret = wasm.
|
|
28875
|
+
const ret = wasm.linearfee_constant(this.__wbg_ptr);
|
|
28876
28876
|
return BigNum.__wrap(ret);
|
|
28877
28877
|
}
|
|
28878
28878
|
/**
|
|
@@ -28892,7 +28892,7 @@ class TimelockExpiry {
|
|
|
28892
28892
|
*/
|
|
28893
28893
|
static new_timelockexpiry(slot) {
|
|
28894
28894
|
_assertClass(slot, BigNum);
|
|
28895
|
-
const ret = wasm.
|
|
28895
|
+
const ret = wasm.timelockexpiry_new_timelockexpiry(slot.__wbg_ptr);
|
|
28896
28896
|
return TimelockExpiry.__wrap(ret);
|
|
28897
28897
|
}
|
|
28898
28898
|
}
|
|
@@ -29093,7 +29093,7 @@ class TimelockStart {
|
|
|
29093
29093
|
* @returns {BigNum}
|
|
29094
29094
|
*/
|
|
29095
29095
|
slot_bignum() {
|
|
29096
|
-
const ret = wasm.
|
|
29096
|
+
const ret = wasm.linearfee_constant(this.__wbg_ptr);
|
|
29097
29097
|
return BigNum.__wrap(ret);
|
|
29098
29098
|
}
|
|
29099
29099
|
/**
|
|
@@ -29113,7 +29113,7 @@ class TimelockStart {
|
|
|
29113
29113
|
*/
|
|
29114
29114
|
static new_timelockstart(slot) {
|
|
29115
29115
|
_assertClass(slot, BigNum);
|
|
29116
|
-
const ret = wasm.
|
|
29116
|
+
const ret = wasm.timelockexpiry_new_timelockexpiry(slot.__wbg_ptr);
|
|
29117
29117
|
return TimelockStart.__wrap(ret);
|
|
29118
29118
|
}
|
|
29119
29119
|
}
|
|
@@ -33650,7 +33650,7 @@ class TransactionWitnessSet {
|
|
|
33650
33650
|
* @returns {NativeScripts | undefined}
|
|
33651
33651
|
*/
|
|
33652
33652
|
native_scripts() {
|
|
33653
|
-
const ret = wasm.
|
|
33653
|
+
const ret = wasm.transactionwitnessset_native_scripts(this.__wbg_ptr);
|
|
33654
33654
|
return ret === 0 ? undefined : NativeScripts.__wrap(ret);
|
|
33655
33655
|
}
|
|
33656
33656
|
/**
|
|
@@ -36580,7 +36580,7 @@ class Vkeys {
|
|
|
36580
36580
|
* @returns {Vkeys}
|
|
36581
36581
|
*/
|
|
36582
36582
|
static new() {
|
|
36583
|
-
const ret = wasm.
|
|
36583
|
+
const ret = wasm.languages_new();
|
|
36584
36584
|
return Vkeys.__wrap(ret);
|
|
36585
36585
|
}
|
|
36586
36586
|
/**
|
|
@@ -36799,7 +36799,7 @@ class Vkeywitness {
|
|
|
36799
36799
|
* @returns {Ed25519Signature}
|
|
36800
36800
|
*/
|
|
36801
36801
|
signature() {
|
|
36802
|
-
const ret = wasm.
|
|
36802
|
+
const ret = wasm.operationalcert_sigma(this.__wbg_ptr);
|
|
36803
36803
|
return Ed25519Signature.__wrap(ret);
|
|
36804
36804
|
}
|
|
36805
36805
|
}
|
|
@@ -37401,7 +37401,7 @@ class VoteRegistrationAndDelegation {
|
|
|
37401
37401
|
* @returns {BigNum}
|
|
37402
37402
|
*/
|
|
37403
37403
|
coin() {
|
|
37404
|
-
const ret = wasm.
|
|
37404
|
+
const ret = wasm.stakevoteregistrationanddelegation_coin(this.__wbg_ptr);
|
|
37405
37405
|
return BigNum.__wrap(ret);
|
|
37406
37406
|
}
|
|
37407
37407
|
/**
|
|
@@ -37764,7 +37764,7 @@ class Voters {
|
|
|
37764
37764
|
* @returns {Voters}
|
|
37765
37765
|
*/
|
|
37766
37766
|
static new() {
|
|
37767
|
-
const ret = wasm.
|
|
37767
|
+
const ret = wasm.voters_new();
|
|
37768
37768
|
return Voters.__wrap(ret);
|
|
37769
37769
|
}
|
|
37770
37770
|
/**
|
|
@@ -37822,7 +37822,7 @@ class VotingBuilder {
|
|
|
37822
37822
|
* @returns {VotingBuilder}
|
|
37823
37823
|
*/
|
|
37824
37824
|
static new() {
|
|
37825
|
-
const ret = wasm.
|
|
37825
|
+
const ret = wasm.votingbuilder_new();
|
|
37826
37826
|
return VotingBuilder.__wrap(ret);
|
|
37827
37827
|
}
|
|
37828
37828
|
/**
|
|
@@ -38128,7 +38128,7 @@ class VotingProcedure {
|
|
|
38128
38128
|
* @returns {Anchor | undefined}
|
|
38129
38129
|
*/
|
|
38130
38130
|
anchor() {
|
|
38131
|
-
const ret = wasm.
|
|
38131
|
+
const ret = wasm.committeecoldresign_anchor(this.__wbg_ptr);
|
|
38132
38132
|
return ret === 0 ? undefined : Anchor.__wrap(ret);
|
|
38133
38133
|
}
|
|
38134
38134
|
}
|
|
@@ -38307,7 +38307,7 @@ class VotingProcedures {
|
|
|
38307
38307
|
* @returns {VotingProcedures}
|
|
38308
38308
|
*/
|
|
38309
38309
|
static new() {
|
|
38310
|
-
const ret = wasm.
|
|
38310
|
+
const ret = wasm.votingbuilder_new();
|
|
38311
38311
|
return VotingProcedures.__wrap(ret);
|
|
38312
38312
|
}
|
|
38313
38313
|
/**
|
|
@@ -38596,7 +38596,7 @@ class VotingProposalBuilder {
|
|
|
38596
38596
|
* @returns {VotingProposalBuilder}
|
|
38597
38597
|
*/
|
|
38598
38598
|
static new() {
|
|
38599
|
-
const ret = wasm.
|
|
38599
|
+
const ret = wasm.votingbuilder_new();
|
|
38600
38600
|
return VotingProposalBuilder.__wrap(ret);
|
|
38601
38601
|
}
|
|
38602
38602
|
/**
|
|
@@ -39130,7 +39130,7 @@ class WithdrawalsBuilder {
|
|
|
39130
39130
|
* @returns {WithdrawalsBuilder}
|
|
39131
39131
|
*/
|
|
39132
39132
|
static new() {
|
|
39133
|
-
const ret = wasm.
|
|
39133
|
+
const ret = wasm.mintbuilder_new();
|
|
39134
39134
|
return WithdrawalsBuilder.__wrap(ret);
|
|
39135
39135
|
}
|
|
39136
39136
|
/**
|
|
@@ -39274,8 +39274,8 @@ module.exports.__wbindgen_is_bigint = function(arg0) {
|
|
|
39274
39274
|
return ret;
|
|
39275
39275
|
};
|
|
39276
39276
|
|
|
39277
|
-
module.exports.
|
|
39278
|
-
const ret = arg0;
|
|
39277
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
39278
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
39279
39279
|
return addHeapObject(ret);
|
|
39280
39280
|
};
|
|
39281
39281
|
|
|
@@ -39284,11 +39284,6 @@ module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
|
39284
39284
|
return ret;
|
|
39285
39285
|
};
|
|
39286
39286
|
|
|
39287
|
-
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
39288
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
39289
|
-
return addHeapObject(ret);
|
|
39290
|
-
};
|
|
39291
|
-
|
|
39292
39287
|
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
39293
39288
|
const v = getObject(arg0);
|
|
39294
39289
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|