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