@cardananium/cquisitor-lib 0.1.0-beta.16 → 0.1.0-beta.18
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 +382 -385
- 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 +392 -395
- 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,83 @@ module.exports.get_possible_types_for_input = function(input) {
|
|
|
285
285
|
};
|
|
286
286
|
|
|
287
287
|
/**
|
|
288
|
-
* @param {string}
|
|
289
|
-
* @returns {
|
|
288
|
+
* @param {string} cbor_hex
|
|
289
|
+
* @returns {any}
|
|
290
290
|
*/
|
|
291
|
-
module.exports.
|
|
292
|
-
let deferred3_0;
|
|
293
|
-
let deferred3_1;
|
|
291
|
+
module.exports.cbor_to_json = function(cbor_hex) {
|
|
294
292
|
try {
|
|
295
293
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
296
|
-
const ptr0 = passStringToWasm0(
|
|
294
|
+
const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
297
295
|
const len0 = WASM_VECTOR_LEN;
|
|
298
|
-
wasm.
|
|
296
|
+
wasm.cbor_to_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
|
-
* @
|
|
310
|
+
* @param {string} hex_str
|
|
311
|
+
* @returns {any}
|
|
312
|
+
*/
|
|
313
|
+
module.exports.check_block_or_tx_signatures = function(hex_str) {
|
|
314
|
+
try {
|
|
315
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
316
|
+
const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
317
|
+
const len0 = WASM_VECTOR_LEN;
|
|
318
|
+
wasm.check_block_or_tx_signatures(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 {any}
|
|
334
|
+
*/
|
|
335
|
+
module.exports.decode_plutus_program_uplc_json = function(hex) {
|
|
336
|
+
try {
|
|
337
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
338
|
+
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
339
|
+
const len0 = WASM_VECTOR_LEN;
|
|
340
|
+
wasm.decode_plutus_program_uplc_json(retptr, ptr0, len0);
|
|
341
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
342
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
343
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
344
|
+
if (r2) {
|
|
345
|
+
throw takeObject(r1);
|
|
346
|
+
}
|
|
347
|
+
return takeObject(r0);
|
|
348
|
+
} finally {
|
|
349
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* @param {string} hex
|
|
321
355
|
* @returns {string}
|
|
322
356
|
*/
|
|
323
|
-
module.exports.
|
|
357
|
+
module.exports.decode_plutus_program_pretty_uplc = function(hex) {
|
|
324
358
|
let deferred3_0;
|
|
325
359
|
let deferred3_1;
|
|
326
360
|
try {
|
|
327
361
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
328
|
-
const ptr0 = passStringToWasm0(
|
|
362
|
+
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
329
363
|
const len0 = WASM_VECTOR_LEN;
|
|
330
|
-
wasm.
|
|
364
|
+
wasm.decode_plutus_program_pretty_uplc(retptr, ptr0, len0);
|
|
331
365
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
332
366
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
333
367
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -397,125 +431,231 @@ module.exports.execute_tx_scripts = function(tx_hex, utxo_json, cost_models_json
|
|
|
397
431
|
};
|
|
398
432
|
|
|
399
433
|
/**
|
|
400
|
-
* @param {string}
|
|
401
|
-
* @returns {
|
|
434
|
+
* @param {string} tx_hex
|
|
435
|
+
* @returns {string}
|
|
402
436
|
*/
|
|
403
|
-
module.exports.
|
|
437
|
+
module.exports.get_necessary_data_list_js = function(tx_hex) {
|
|
438
|
+
let deferred3_0;
|
|
439
|
+
let deferred3_1;
|
|
404
440
|
try {
|
|
405
441
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
406
|
-
const ptr0 = passStringToWasm0(
|
|
442
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
407
443
|
const len0 = WASM_VECTOR_LEN;
|
|
408
|
-
wasm.
|
|
444
|
+
wasm.get_necessary_data_list_js(retptr, ptr0, len0);
|
|
409
445
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
410
446
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
411
447
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
412
|
-
|
|
413
|
-
|
|
448
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
449
|
+
var ptr2 = r0;
|
|
450
|
+
var len2 = r1;
|
|
451
|
+
if (r3) {
|
|
452
|
+
ptr2 = 0; len2 = 0;
|
|
453
|
+
throw takeObject(r2);
|
|
414
454
|
}
|
|
415
|
-
|
|
455
|
+
deferred3_0 = ptr2;
|
|
456
|
+
deferred3_1 = len2;
|
|
457
|
+
return getStringFromWasm0(ptr2, len2);
|
|
416
458
|
} finally {
|
|
417
459
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
460
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
418
461
|
}
|
|
419
462
|
};
|
|
420
463
|
|
|
421
464
|
/**
|
|
422
|
-
* @param {string}
|
|
423
|
-
* @
|
|
465
|
+
* @param {string} tx_hex
|
|
466
|
+
* @param {string} validation_context
|
|
467
|
+
* @returns {string}
|
|
424
468
|
*/
|
|
425
|
-
module.exports.
|
|
469
|
+
module.exports.validate_transaction_js = function(tx_hex, validation_context) {
|
|
470
|
+
let deferred4_0;
|
|
471
|
+
let deferred4_1;
|
|
426
472
|
try {
|
|
427
473
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
428
|
-
const ptr0 = passStringToWasm0(
|
|
474
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
429
475
|
const len0 = WASM_VECTOR_LEN;
|
|
430
|
-
|
|
476
|
+
const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
477
|
+
const len1 = WASM_VECTOR_LEN;
|
|
478
|
+
wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
|
|
479
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
480
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
481
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
482
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
483
|
+
var ptr3 = r0;
|
|
484
|
+
var len3 = r1;
|
|
485
|
+
if (r3) {
|
|
486
|
+
ptr3 = 0; len3 = 0;
|
|
487
|
+
throw takeObject(r2);
|
|
488
|
+
}
|
|
489
|
+
deferred4_0 = ptr3;
|
|
490
|
+
deferred4_1 = len3;
|
|
491
|
+
return getStringFromWasm0(ptr3, len3);
|
|
492
|
+
} finally {
|
|
493
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
494
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
495
|
+
}
|
|
496
|
+
};
|
|
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
|
+
|
|
510
|
+
function _assertClass(instance, klass) {
|
|
511
|
+
if (!(instance instanceof klass)) {
|
|
512
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
513
|
+
}
|
|
514
|
+
return instance.ptr;
|
|
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);
|
|
431
527
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
432
528
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
433
529
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
434
530
|
if (r2) {
|
|
435
531
|
throw takeObject(r1);
|
|
436
532
|
}
|
|
437
|
-
return
|
|
533
|
+
return PlutusData.__wrap(r0);
|
|
438
534
|
} finally {
|
|
439
535
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
440
536
|
}
|
|
441
537
|
};
|
|
442
538
|
|
|
443
539
|
/**
|
|
444
|
-
* @param {
|
|
540
|
+
* @param {PlutusData} datum
|
|
541
|
+
* @param {PlutusDatumSchema} schema
|
|
445
542
|
* @returns {string}
|
|
446
543
|
*/
|
|
447
|
-
module.exports.
|
|
448
|
-
let
|
|
449
|
-
let
|
|
544
|
+
module.exports.decode_plutus_datum_to_json_str = function(datum, schema) {
|
|
545
|
+
let deferred2_0;
|
|
546
|
+
let deferred2_1;
|
|
450
547
|
try {
|
|
451
548
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
wasm.decode_plutus_program_pretty_uplc(retptr, ptr0, len0);
|
|
549
|
+
_assertClass(datum, PlutusData);
|
|
550
|
+
wasm.decode_plutus_datum_to_json_str(retptr, datum.__wbg_ptr, schema);
|
|
455
551
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
456
552
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
457
553
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
458
554
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
459
|
-
var
|
|
460
|
-
var
|
|
555
|
+
var ptr1 = r0;
|
|
556
|
+
var len1 = r1;
|
|
461
557
|
if (r3) {
|
|
462
|
-
|
|
558
|
+
ptr1 = 0; len1 = 0;
|
|
463
559
|
throw takeObject(r2);
|
|
464
560
|
}
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
return getStringFromWasm0(
|
|
561
|
+
deferred2_0 = ptr1;
|
|
562
|
+
deferred2_1 = len1;
|
|
563
|
+
return getStringFromWasm0(ptr1, len1);
|
|
468
564
|
} finally {
|
|
469
565
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
470
|
-
wasm.__wbindgen_free(
|
|
566
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
471
567
|
}
|
|
472
568
|
};
|
|
473
569
|
|
|
474
570
|
/**
|
|
475
|
-
* @param {
|
|
476
|
-
* @returns {
|
|
571
|
+
* @param {Uint8Array} bytes
|
|
572
|
+
* @returns {TransactionMetadatum}
|
|
477
573
|
*/
|
|
478
|
-
module.exports.
|
|
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) {
|
|
479
586
|
try {
|
|
480
587
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
481
|
-
|
|
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);
|
|
482
614
|
const len0 = WASM_VECTOR_LEN;
|
|
483
|
-
wasm.
|
|
615
|
+
wasm.encode_json_str_to_metadatum(retptr, ptr0, len0, schema);
|
|
484
616
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
485
617
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
486
618
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
487
619
|
if (r2) {
|
|
488
620
|
throw takeObject(r1);
|
|
489
621
|
}
|
|
490
|
-
return
|
|
622
|
+
return TransactionMetadatum.__wrap(r0);
|
|
491
623
|
} finally {
|
|
492
624
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
493
625
|
}
|
|
494
626
|
};
|
|
495
627
|
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
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);
|
|
499
656
|
}
|
|
500
|
-
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
504
|
-
ptr = ptr >>> 0;
|
|
505
|
-
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
509
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
510
|
-
getUint8Memory0().set(arg, ptr / 1);
|
|
511
|
-
WASM_VECTOR_LEN = arg.length;
|
|
512
|
-
return ptr;
|
|
513
|
-
}
|
|
657
|
+
};
|
|
514
658
|
|
|
515
|
-
function getArrayU32FromWasm0(ptr, len) {
|
|
516
|
-
ptr = ptr >>> 0;
|
|
517
|
-
return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
|
|
518
|
-
}
|
|
519
659
|
/**
|
|
520
660
|
* @param {Transaction} tx
|
|
521
661
|
* @param {LinearFee} linear_fee
|
|
@@ -607,86 +747,17 @@ module.exports.min_ref_script_fee = function(total_ref_scripts_size, ref_script_
|
|
|
607
747
|
}
|
|
608
748
|
};
|
|
609
749
|
|
|
750
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
751
|
+
ptr = ptr >>> 0;
|
|
752
|
+
return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
|
|
753
|
+
}
|
|
754
|
+
|
|
610
755
|
function passArray32ToWasm0(arg, malloc) {
|
|
611
756
|
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
612
757
|
getUint32Memory0().set(arg, ptr / 4);
|
|
613
758
|
WASM_VECTOR_LEN = arg.length;
|
|
614
759
|
return ptr;
|
|
615
760
|
}
|
|
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
761
|
/**
|
|
691
762
|
* @param {TransactionHash} tx_body_hash
|
|
692
763
|
* @param {ByronAddress} addr
|
|
@@ -902,6 +973,80 @@ module.exports.has_transaction_set_tag = function(tx_bytes) {
|
|
|
902
973
|
}
|
|
903
974
|
};
|
|
904
975
|
|
|
976
|
+
/**
|
|
977
|
+
* @param {string} password
|
|
978
|
+
* @param {string} salt
|
|
979
|
+
* @param {string} nonce
|
|
980
|
+
* @param {string} data
|
|
981
|
+
* @returns {string}
|
|
982
|
+
*/
|
|
983
|
+
module.exports.encrypt_with_password = function(password, salt, nonce, data) {
|
|
984
|
+
let deferred6_0;
|
|
985
|
+
let deferred6_1;
|
|
986
|
+
try {
|
|
987
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
988
|
+
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
989
|
+
const len0 = WASM_VECTOR_LEN;
|
|
990
|
+
const ptr1 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
991
|
+
const len1 = WASM_VECTOR_LEN;
|
|
992
|
+
const ptr2 = passStringToWasm0(nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
993
|
+
const len2 = WASM_VECTOR_LEN;
|
|
994
|
+
const ptr3 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
995
|
+
const len3 = WASM_VECTOR_LEN;
|
|
996
|
+
wasm.encrypt_with_password(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
997
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
998
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
999
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
1000
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
1001
|
+
var ptr5 = r0;
|
|
1002
|
+
var len5 = r1;
|
|
1003
|
+
if (r3) {
|
|
1004
|
+
ptr5 = 0; len5 = 0;
|
|
1005
|
+
throw takeObject(r2);
|
|
1006
|
+
}
|
|
1007
|
+
deferred6_0 = ptr5;
|
|
1008
|
+
deferred6_1 = len5;
|
|
1009
|
+
return getStringFromWasm0(ptr5, len5);
|
|
1010
|
+
} finally {
|
|
1011
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1012
|
+
wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
|
|
1013
|
+
}
|
|
1014
|
+
};
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* @param {string} password
|
|
1018
|
+
* @param {string} data
|
|
1019
|
+
* @returns {string}
|
|
1020
|
+
*/
|
|
1021
|
+
module.exports.decrypt_with_password = function(password, data) {
|
|
1022
|
+
let deferred4_0;
|
|
1023
|
+
let deferred4_1;
|
|
1024
|
+
try {
|
|
1025
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1026
|
+
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1027
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1028
|
+
const ptr1 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1029
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1030
|
+
wasm.decrypt_with_password(retptr, ptr0, len0, ptr1, len1);
|
|
1031
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1032
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1033
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
1034
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
1035
|
+
var ptr3 = r0;
|
|
1036
|
+
var len3 = r1;
|
|
1037
|
+
if (r3) {
|
|
1038
|
+
ptr3 = 0; len3 = 0;
|
|
1039
|
+
throw takeObject(r2);
|
|
1040
|
+
}
|
|
1041
|
+
deferred4_0 = ptr3;
|
|
1042
|
+
deferred4_1 = len3;
|
|
1043
|
+
return getStringFromWasm0(ptr3, len3);
|
|
1044
|
+
} finally {
|
|
1045
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1046
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
1047
|
+
}
|
|
1048
|
+
};
|
|
1049
|
+
|
|
905
1050
|
/**
|
|
906
1051
|
* @param {Address} address
|
|
907
1052
|
* @param {TransactionUnspentOutputs} utxos
|
|
@@ -927,149 +1072,6 @@ module.exports.create_send_all = function(address, utxos, config) {
|
|
|
927
1072
|
}
|
|
928
1073
|
};
|
|
929
1074
|
|
|
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
1075
|
function handleError(f, args) {
|
|
1074
1076
|
try {
|
|
1075
1077
|
return f.apply(this, args);
|
|
@@ -1078,34 +1080,6 @@ function handleError(f, args) {
|
|
|
1078
1080
|
}
|
|
1079
1081
|
}
|
|
1080
1082
|
/**
|
|
1081
|
-
*/
|
|
1082
|
-
module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1083
|
-
/**
|
|
1084
|
-
*/
|
|
1085
|
-
module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1086
|
-
/**
|
|
1087
|
-
*/
|
|
1088
|
-
module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1089
|
-
/**
|
|
1090
|
-
*/
|
|
1091
|
-
module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
|
|
1092
|
-
/**
|
|
1093
|
-
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1094
|
-
*/
|
|
1095
|
-
LargestFirst:0,"0":"LargestFirst",
|
|
1096
|
-
/**
|
|
1097
|
-
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1098
|
-
*/
|
|
1099
|
-
RandomImprove:1,"1":"RandomImprove",
|
|
1100
|
-
/**
|
|
1101
|
-
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1102
|
-
*/
|
|
1103
|
-
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
1104
|
-
/**
|
|
1105
|
-
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1106
|
-
*/
|
|
1107
|
-
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1108
|
-
/**
|
|
1109
1083
|
* JSON <-> PlutusData conversion schemas.
|
|
1110
1084
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
1111
1085
|
* https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
|
|
@@ -1158,72 +1132,100 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
1158
1132
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
1159
1133
|
/**
|
|
1160
1134
|
*/
|
|
1161
|
-
module.exports.
|
|
1135
|
+
module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1162
1136
|
/**
|
|
1163
1137
|
*/
|
|
1164
1138
|
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", });
|
|
1165
1139
|
/**
|
|
1166
1140
|
*/
|
|
1167
|
-
module.exports.
|
|
1141
|
+
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", });
|
|
1168
1142
|
/**
|
|
1169
1143
|
*/
|
|
1170
|
-
module.exports.
|
|
1144
|
+
module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1171
1145
|
/**
|
|
1172
1146
|
*/
|
|
1173
|
-
module.exports.
|
|
1147
|
+
module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1174
1148
|
/**
|
|
1149
|
+
* Each new language uses a different namespace for hashing its script
|
|
1150
|
+
* This is because you could have a language where the same bytes have different semantics
|
|
1151
|
+
* So this avoids scripts in different languages mapping to the same hash
|
|
1152
|
+
* Note that the enum value here is different than the enum value for deciding the cost model of a script
|
|
1175
1153
|
*/
|
|
1176
|
-
module.exports.
|
|
1154
|
+
module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
1177
1155
|
/**
|
|
1178
1156
|
*/
|
|
1179
|
-
module.exports.
|
|
1157
|
+
module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
1180
1158
|
/**
|
|
1181
1159
|
*/
|
|
1182
|
-
module.exports.
|
|
1160
|
+
module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1183
1161
|
/**
|
|
1162
|
+
* Used to choosed the schema for a script JSON string
|
|
1184
1163
|
*/
|
|
1185
|
-
module.exports.
|
|
1164
|
+
module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1186
1165
|
/**
|
|
1187
1166
|
*/
|
|
1188
|
-
module.exports.
|
|
1167
|
+
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", });
|
|
1189
1168
|
/**
|
|
1190
1169
|
*/
|
|
1191
|
-
module.exports.
|
|
1170
|
+
module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
|
|
1192
1171
|
/**
|
|
1172
|
+
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1193
1173
|
*/
|
|
1194
|
-
|
|
1174
|
+
LargestFirst:0,"0":"LargestFirst",
|
|
1195
1175
|
/**
|
|
1176
|
+
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1196
1177
|
*/
|
|
1197
|
-
|
|
1178
|
+
RandomImprove:1,"1":"RandomImprove",
|
|
1179
|
+
/**
|
|
1180
|
+
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1181
|
+
*/
|
|
1182
|
+
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
1183
|
+
/**
|
|
1184
|
+
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1185
|
+
*/
|
|
1186
|
+
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1187
|
+
/**
|
|
1188
|
+
*/
|
|
1189
|
+
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", });
|
|
1198
1190
|
/**
|
|
1199
1191
|
*/
|
|
1200
1192
|
module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
1201
1193
|
/**
|
|
1202
|
-
* Used to choosed the schema for a script JSON string
|
|
1203
1194
|
*/
|
|
1204
|
-
module.exports.
|
|
1195
|
+
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", });
|
|
1205
1196
|
/**
|
|
1206
1197
|
*/
|
|
1207
|
-
module.exports.
|
|
1198
|
+
module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1208
1199
|
/**
|
|
1209
1200
|
*/
|
|
1210
|
-
module.exports.
|
|
1201
|
+
module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1211
1202
|
/**
|
|
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
1203
|
*/
|
|
1217
|
-
module.exports.
|
|
1204
|
+
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", });
|
|
1218
1205
|
/**
|
|
1219
1206
|
*/
|
|
1220
|
-
module.exports.
|
|
1207
|
+
module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1221
1208
|
/**
|
|
1222
1209
|
*/
|
|
1223
1210
|
module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1224
1211
|
/**
|
|
1225
1212
|
*/
|
|
1226
1213
|
module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1214
|
+
/**
|
|
1215
|
+
*/
|
|
1216
|
+
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", });
|
|
1217
|
+
/**
|
|
1218
|
+
*/
|
|
1219
|
+
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", });
|
|
1220
|
+
/**
|
|
1221
|
+
*/
|
|
1222
|
+
module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1223
|
+
/**
|
|
1224
|
+
*/
|
|
1225
|
+
module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1226
|
+
/**
|
|
1227
|
+
*/
|
|
1228
|
+
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", });
|
|
1227
1229
|
|
|
1228
1230
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1229
1231
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -8596,7 +8598,7 @@ class DRep {
|
|
|
8596
8598
|
*/
|
|
8597
8599
|
static new_key_hash(key_hash) {
|
|
8598
8600
|
_assertClass(key_hash, Ed25519KeyHash);
|
|
8599
|
-
const ret = wasm.
|
|
8601
|
+
const ret = wasm.drep_new_key_hash(key_hash.__wbg_ptr);
|
|
8600
8602
|
return DRep.__wrap(ret);
|
|
8601
8603
|
}
|
|
8602
8604
|
/**
|
|
@@ -8605,7 +8607,7 @@ class DRep {
|
|
|
8605
8607
|
*/
|
|
8606
8608
|
static new_script_hash(script_hash) {
|
|
8607
8609
|
_assertClass(script_hash, ScriptHash);
|
|
8608
|
-
const ret = wasm.
|
|
8610
|
+
const ret = wasm.drep_new_script_hash(script_hash.__wbg_ptr);
|
|
8609
8611
|
return DRep.__wrap(ret);
|
|
8610
8612
|
}
|
|
8611
8613
|
/**
|
|
@@ -9088,7 +9090,7 @@ class DRepRegistration {
|
|
|
9088
9090
|
* @returns {BigNum}
|
|
9089
9091
|
*/
|
|
9090
9092
|
coin() {
|
|
9091
|
-
const ret = wasm.
|
|
9093
|
+
const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
|
|
9092
9094
|
return BigNum.__wrap(ret);
|
|
9093
9095
|
}
|
|
9094
9096
|
/**
|
|
@@ -10263,14 +10265,14 @@ class Ed25519KeyHashes {
|
|
|
10263
10265
|
* @returns {Ed25519KeyHashes}
|
|
10264
10266
|
*/
|
|
10265
10267
|
static new() {
|
|
10266
|
-
const ret = wasm.
|
|
10268
|
+
const ret = wasm.credentials_new();
|
|
10267
10269
|
return Ed25519KeyHashes.__wrap(ret);
|
|
10268
10270
|
}
|
|
10269
10271
|
/**
|
|
10270
10272
|
* @returns {number}
|
|
10271
10273
|
*/
|
|
10272
10274
|
len() {
|
|
10273
|
-
const ret = wasm.
|
|
10275
|
+
const ret = wasm.credentials_len(this.__wbg_ptr);
|
|
10274
10276
|
return ret >>> 0;
|
|
10275
10277
|
}
|
|
10276
10278
|
/**
|
|
@@ -10699,14 +10701,14 @@ class ExUnitPrices {
|
|
|
10699
10701
|
* @returns {UnitInterval}
|
|
10700
10702
|
*/
|
|
10701
10703
|
mem_price() {
|
|
10702
|
-
const ret = wasm.
|
|
10704
|
+
const ret = wasm.committee_quorum_threshold(this.__wbg_ptr);
|
|
10703
10705
|
return UnitInterval.__wrap(ret);
|
|
10704
10706
|
}
|
|
10705
10707
|
/**
|
|
10706
10708
|
* @returns {UnitInterval}
|
|
10707
10709
|
*/
|
|
10708
10710
|
step_price() {
|
|
10709
|
-
const ret = wasm.
|
|
10711
|
+
const ret = wasm.exunitprices_step_price(this.__wbg_ptr);
|
|
10710
10712
|
return UnitInterval.__wrap(ret);
|
|
10711
10713
|
}
|
|
10712
10714
|
/**
|
|
@@ -13341,7 +13343,7 @@ class GovernanceActionIds {
|
|
|
13341
13343
|
* @returns {GovernanceActionIds}
|
|
13342
13344
|
*/
|
|
13343
13345
|
static new() {
|
|
13344
|
-
const ret = wasm.
|
|
13346
|
+
const ret = wasm.governanceactionids_new();
|
|
13345
13347
|
return GovernanceActionIds.__wrap(ret);
|
|
13346
13348
|
}
|
|
13347
13349
|
/**
|
|
@@ -15453,7 +15455,7 @@ class LegacyDaedalusPrivateKey {
|
|
|
15453
15455
|
as_bytes() {
|
|
15454
15456
|
try {
|
|
15455
15457
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15456
|
-
wasm.
|
|
15458
|
+
wasm.legacydaedalusprivatekey_as_bytes(retptr, this.__wbg_ptr);
|
|
15457
15459
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
15458
15460
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
15459
15461
|
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
@@ -15469,7 +15471,7 @@ class LegacyDaedalusPrivateKey {
|
|
|
15469
15471
|
chaincode() {
|
|
15470
15472
|
try {
|
|
15471
15473
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15472
|
-
wasm.
|
|
15474
|
+
wasm.legacydaedalusprivatekey_chaincode(retptr, this.__wbg_ptr);
|
|
15473
15475
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
15474
15476
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
15475
15477
|
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
@@ -18705,7 +18707,7 @@ class NewConstitutionAction {
|
|
|
18705
18707
|
* @returns {GovernanceActionId | undefined}
|
|
18706
18708
|
*/
|
|
18707
18709
|
gov_action_id() {
|
|
18708
|
-
const ret = wasm.
|
|
18710
|
+
const ret = wasm.newconstitutionaction_gov_action_id(this.__wbg_ptr);
|
|
18709
18711
|
return ret === 0 ? undefined : GovernanceActionId.__wrap(ret);
|
|
18710
18712
|
}
|
|
18711
18713
|
/**
|
|
@@ -18918,7 +18920,7 @@ class NoConfidenceAction {
|
|
|
18918
18920
|
* @returns {GovernanceActionId | undefined}
|
|
18919
18921
|
*/
|
|
18920
18922
|
gov_action_id() {
|
|
18921
|
-
const ret = wasm.
|
|
18923
|
+
const ret = wasm.noconfidenceaction_gov_action_id(this.__wbg_ptr);
|
|
18922
18924
|
return ret === 0 ? undefined : GovernanceActionId.__wrap(ret);
|
|
18923
18925
|
}
|
|
18924
18926
|
/**
|
|
@@ -21026,7 +21028,7 @@ class PlutusWitnesses {
|
|
|
21026
21028
|
* @returns {PlutusWitnesses}
|
|
21027
21029
|
*/
|
|
21028
21030
|
static new() {
|
|
21029
|
-
const ret = wasm.
|
|
21031
|
+
const ret = wasm.fixedtransactionbodies_new();
|
|
21030
21032
|
return PlutusWitnesses.__wrap(ret);
|
|
21031
21033
|
}
|
|
21032
21034
|
/**
|
|
@@ -21178,7 +21180,7 @@ class Pointer {
|
|
|
21178
21180
|
* @returns {BigNum}
|
|
21179
21181
|
*/
|
|
21180
21182
|
cert_index_bignum() {
|
|
21181
|
-
const ret = wasm.
|
|
21183
|
+
const ret = wasm.pointer_cert_index_bignum(this.__wbg_ptr);
|
|
21182
21184
|
return BigNum.__wrap(ret);
|
|
21183
21185
|
}
|
|
21184
21186
|
}
|
|
@@ -24021,7 +24023,7 @@ class PublicKeys {
|
|
|
24021
24023
|
/**
|
|
24022
24024
|
*/
|
|
24023
24025
|
constructor() {
|
|
24024
|
-
const ret = wasm.
|
|
24026
|
+
const ret = wasm.publickeys_new();
|
|
24025
24027
|
this.__wbg_ptr = ret >>> 0;
|
|
24026
24028
|
return this;
|
|
24027
24029
|
}
|
|
@@ -28135,14 +28137,14 @@ class StakeRegistration {
|
|
|
28135
28137
|
* @returns {Credential}
|
|
28136
28138
|
*/
|
|
28137
28139
|
stake_credential() {
|
|
28138
|
-
const ret = wasm.
|
|
28140
|
+
const ret = wasm.stakeregistration_stake_credential(this.__wbg_ptr);
|
|
28139
28141
|
return Credential.__wrap(ret);
|
|
28140
28142
|
}
|
|
28141
28143
|
/**
|
|
28142
28144
|
* @returns {BigNum | undefined}
|
|
28143
28145
|
*/
|
|
28144
28146
|
coin() {
|
|
28145
|
-
const ret = wasm.
|
|
28147
|
+
const ret = wasm.stakeregistration_coin(this.__wbg_ptr);
|
|
28146
28148
|
return ret === 0 ? undefined : BigNum.__wrap(ret);
|
|
28147
28149
|
}
|
|
28148
28150
|
/**
|
|
@@ -28151,7 +28153,7 @@ class StakeRegistration {
|
|
|
28151
28153
|
*/
|
|
28152
28154
|
static new(stake_credential) {
|
|
28153
28155
|
_assertClass(stake_credential, Credential);
|
|
28154
|
-
const ret = wasm.
|
|
28156
|
+
const ret = wasm.stakeregistration_new(stake_credential.__wbg_ptr);
|
|
28155
28157
|
return StakeRegistration.__wrap(ret);
|
|
28156
28158
|
}
|
|
28157
28159
|
/**
|
|
@@ -28162,14 +28164,14 @@ class StakeRegistration {
|
|
|
28162
28164
|
static new_with_explicit_deposit(stake_credential, coin) {
|
|
28163
28165
|
_assertClass(stake_credential, Credential);
|
|
28164
28166
|
_assertClass(coin, BigNum);
|
|
28165
|
-
const ret = wasm.
|
|
28167
|
+
const ret = wasm.stakeregistration_new_with_explicit_deposit(stake_credential.__wbg_ptr, coin.__wbg_ptr);
|
|
28166
28168
|
return StakeRegistration.__wrap(ret);
|
|
28167
28169
|
}
|
|
28168
28170
|
/**
|
|
28169
28171
|
* @returns {boolean}
|
|
28170
28172
|
*/
|
|
28171
28173
|
has_script_credentials() {
|
|
28172
|
-
const ret = wasm.
|
|
28174
|
+
const ret = wasm.stakeregistration_has_script_credentials(this.__wbg_ptr);
|
|
28173
28175
|
return ret !== 0;
|
|
28174
28176
|
}
|
|
28175
28177
|
}
|
|
@@ -28362,7 +28364,7 @@ class StakeRegistrationAndDelegation {
|
|
|
28362
28364
|
* @returns {BigNum}
|
|
28363
28365
|
*/
|
|
28364
28366
|
coin() {
|
|
28365
|
-
const ret = wasm.
|
|
28367
|
+
const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
|
|
28366
28368
|
return BigNum.__wrap(ret);
|
|
28367
28369
|
}
|
|
28368
28370
|
/**
|
|
@@ -28568,7 +28570,7 @@ class StakeVoteRegistrationAndDelegation {
|
|
|
28568
28570
|
* @returns {Ed25519KeyHash}
|
|
28569
28571
|
*/
|
|
28570
28572
|
pool_keyhash() {
|
|
28571
|
-
const ret = wasm.
|
|
28573
|
+
const ret = wasm.stakevoteregistrationanddelegation_pool_keyhash(this.__wbg_ptr);
|
|
28572
28574
|
return Ed25519KeyHash.__wrap(ret);
|
|
28573
28575
|
}
|
|
28574
28576
|
/**
|
|
@@ -28582,7 +28584,7 @@ class StakeVoteRegistrationAndDelegation {
|
|
|
28582
28584
|
* @returns {BigNum}
|
|
28583
28585
|
*/
|
|
28584
28586
|
coin() {
|
|
28585
|
-
const ret = wasm.
|
|
28587
|
+
const ret = wasm.stakevoteregistrationanddelegation_coin(this.__wbg_ptr);
|
|
28586
28588
|
return BigNum.__wrap(ret);
|
|
28587
28589
|
}
|
|
28588
28590
|
/**
|
|
@@ -28640,7 +28642,7 @@ class Strings {
|
|
|
28640
28642
|
* @returns {Strings}
|
|
28641
28643
|
*/
|
|
28642
28644
|
static new() {
|
|
28643
|
-
const ret = wasm.
|
|
28645
|
+
const ret = wasm.relays_new();
|
|
28644
28646
|
return Strings.__wrap(ret);
|
|
28645
28647
|
}
|
|
28646
28648
|
/**
|
|
@@ -28872,7 +28874,7 @@ class TimelockExpiry {
|
|
|
28872
28874
|
* @returns {BigNum}
|
|
28873
28875
|
*/
|
|
28874
28876
|
slot_bignum() {
|
|
28875
|
-
const ret = wasm.
|
|
28877
|
+
const ret = wasm.linearfee_constant(this.__wbg_ptr);
|
|
28876
28878
|
return BigNum.__wrap(ret);
|
|
28877
28879
|
}
|
|
28878
28880
|
/**
|
|
@@ -28892,7 +28894,7 @@ class TimelockExpiry {
|
|
|
28892
28894
|
*/
|
|
28893
28895
|
static new_timelockexpiry(slot) {
|
|
28894
28896
|
_assertClass(slot, BigNum);
|
|
28895
|
-
const ret = wasm.
|
|
28897
|
+
const ret = wasm.timelockexpiry_new_timelockexpiry(slot.__wbg_ptr);
|
|
28896
28898
|
return TimelockExpiry.__wrap(ret);
|
|
28897
28899
|
}
|
|
28898
28900
|
}
|
|
@@ -29093,7 +29095,7 @@ class TimelockStart {
|
|
|
29093
29095
|
* @returns {BigNum}
|
|
29094
29096
|
*/
|
|
29095
29097
|
slot_bignum() {
|
|
29096
|
-
const ret = wasm.
|
|
29098
|
+
const ret = wasm.linearfee_constant(this.__wbg_ptr);
|
|
29097
29099
|
return BigNum.__wrap(ret);
|
|
29098
29100
|
}
|
|
29099
29101
|
/**
|
|
@@ -29113,7 +29115,7 @@ class TimelockStart {
|
|
|
29113
29115
|
*/
|
|
29114
29116
|
static new_timelockstart(slot) {
|
|
29115
29117
|
_assertClass(slot, BigNum);
|
|
29116
|
-
const ret = wasm.
|
|
29118
|
+
const ret = wasm.timelockexpiry_new_timelockexpiry(slot.__wbg_ptr);
|
|
29117
29119
|
return TimelockStart.__wrap(ret);
|
|
29118
29120
|
}
|
|
29119
29121
|
}
|
|
@@ -33650,7 +33652,7 @@ class TransactionWitnessSet {
|
|
|
33650
33652
|
* @returns {NativeScripts | undefined}
|
|
33651
33653
|
*/
|
|
33652
33654
|
native_scripts() {
|
|
33653
|
-
const ret = wasm.
|
|
33655
|
+
const ret = wasm.transactionwitnessset_native_scripts(this.__wbg_ptr);
|
|
33654
33656
|
return ret === 0 ? undefined : NativeScripts.__wrap(ret);
|
|
33655
33657
|
}
|
|
33656
33658
|
/**
|
|
@@ -36580,7 +36582,7 @@ class Vkeys {
|
|
|
36580
36582
|
* @returns {Vkeys}
|
|
36581
36583
|
*/
|
|
36582
36584
|
static new() {
|
|
36583
|
-
const ret = wasm.
|
|
36585
|
+
const ret = wasm.languages_new();
|
|
36584
36586
|
return Vkeys.__wrap(ret);
|
|
36585
36587
|
}
|
|
36586
36588
|
/**
|
|
@@ -36799,7 +36801,7 @@ class Vkeywitness {
|
|
|
36799
36801
|
* @returns {Ed25519Signature}
|
|
36800
36802
|
*/
|
|
36801
36803
|
signature() {
|
|
36802
|
-
const ret = wasm.
|
|
36804
|
+
const ret = wasm.operationalcert_sigma(this.__wbg_ptr);
|
|
36803
36805
|
return Ed25519Signature.__wrap(ret);
|
|
36804
36806
|
}
|
|
36805
36807
|
}
|
|
@@ -37401,7 +37403,7 @@ class VoteRegistrationAndDelegation {
|
|
|
37401
37403
|
* @returns {BigNum}
|
|
37402
37404
|
*/
|
|
37403
37405
|
coin() {
|
|
37404
|
-
const ret = wasm.
|
|
37406
|
+
const ret = wasm.stakevoteregistrationanddelegation_coin(this.__wbg_ptr);
|
|
37405
37407
|
return BigNum.__wrap(ret);
|
|
37406
37408
|
}
|
|
37407
37409
|
/**
|
|
@@ -37764,7 +37766,7 @@ class Voters {
|
|
|
37764
37766
|
* @returns {Voters}
|
|
37765
37767
|
*/
|
|
37766
37768
|
static new() {
|
|
37767
|
-
const ret = wasm.
|
|
37769
|
+
const ret = wasm.voters_new();
|
|
37768
37770
|
return Voters.__wrap(ret);
|
|
37769
37771
|
}
|
|
37770
37772
|
/**
|
|
@@ -37822,7 +37824,7 @@ class VotingBuilder {
|
|
|
37822
37824
|
* @returns {VotingBuilder}
|
|
37823
37825
|
*/
|
|
37824
37826
|
static new() {
|
|
37825
|
-
const ret = wasm.
|
|
37827
|
+
const ret = wasm.votingbuilder_new();
|
|
37826
37828
|
return VotingBuilder.__wrap(ret);
|
|
37827
37829
|
}
|
|
37828
37830
|
/**
|
|
@@ -38128,7 +38130,7 @@ class VotingProcedure {
|
|
|
38128
38130
|
* @returns {Anchor | undefined}
|
|
38129
38131
|
*/
|
|
38130
38132
|
anchor() {
|
|
38131
|
-
const ret = wasm.
|
|
38133
|
+
const ret = wasm.committeecoldresign_anchor(this.__wbg_ptr);
|
|
38132
38134
|
return ret === 0 ? undefined : Anchor.__wrap(ret);
|
|
38133
38135
|
}
|
|
38134
38136
|
}
|
|
@@ -38307,7 +38309,7 @@ class VotingProcedures {
|
|
|
38307
38309
|
* @returns {VotingProcedures}
|
|
38308
38310
|
*/
|
|
38309
38311
|
static new() {
|
|
38310
|
-
const ret = wasm.
|
|
38312
|
+
const ret = wasm.votingbuilder_new();
|
|
38311
38313
|
return VotingProcedures.__wrap(ret);
|
|
38312
38314
|
}
|
|
38313
38315
|
/**
|
|
@@ -38596,7 +38598,7 @@ class VotingProposalBuilder {
|
|
|
38596
38598
|
* @returns {VotingProposalBuilder}
|
|
38597
38599
|
*/
|
|
38598
38600
|
static new() {
|
|
38599
|
-
const ret = wasm.
|
|
38601
|
+
const ret = wasm.votingbuilder_new();
|
|
38600
38602
|
return VotingProposalBuilder.__wrap(ret);
|
|
38601
38603
|
}
|
|
38602
38604
|
/**
|
|
@@ -39130,7 +39132,7 @@ class WithdrawalsBuilder {
|
|
|
39130
39132
|
* @returns {WithdrawalsBuilder}
|
|
39131
39133
|
*/
|
|
39132
39134
|
static new() {
|
|
39133
|
-
const ret = wasm.
|
|
39135
|
+
const ret = wasm.mintbuilder_new();
|
|
39134
39136
|
return WithdrawalsBuilder.__wrap(ret);
|
|
39135
39137
|
}
|
|
39136
39138
|
/**
|
|
@@ -39274,24 +39276,13 @@ module.exports.__wbindgen_is_bigint = function(arg0) {
|
|
|
39274
39276
|
return ret;
|
|
39275
39277
|
};
|
|
39276
39278
|
|
|
39277
|
-
module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
39278
|
-
const ret = arg0;
|
|
39279
|
-
return addHeapObject(ret);
|
|
39280
|
-
};
|
|
39281
|
-
|
|
39282
|
-
module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
39283
|
-
const ret = getObject(arg0) === getObject(arg1);
|
|
39284
|
-
return ret;
|
|
39285
|
-
};
|
|
39286
|
-
|
|
39287
39279
|
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
39288
39280
|
const ret = BigInt.asUintN(64, arg0);
|
|
39289
39281
|
return addHeapObject(ret);
|
|
39290
39282
|
};
|
|
39291
39283
|
|
|
39292
|
-
module.exports.
|
|
39293
|
-
const
|
|
39294
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
39284
|
+
module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
39285
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
39295
39286
|
return ret;
|
|
39296
39287
|
};
|
|
39297
39288
|
|
|
@@ -39330,6 +39321,12 @@ module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
|
39330
39321
|
return ret;
|
|
39331
39322
|
};
|
|
39332
39323
|
|
|
39324
|
+
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
39325
|
+
const v = getObject(arg0);
|
|
39326
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
39327
|
+
return ret;
|
|
39328
|
+
};
|
|
39329
|
+
|
|
39333
39330
|
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
39334
39331
|
const obj = getObject(arg1);
|
|
39335
39332
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|