@cardananium/cquisitor-lib 0.0.1-beta.1 → 0.1.0-beta.3

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.
@@ -128,6 +128,15 @@ function getFloat64Memory0() {
128
128
  return cachedFloat64Memory0;
129
129
  }
130
130
 
131
+ let cachedBigInt64Memory0 = null;
132
+
133
+ function getBigInt64Memory0() {
134
+ if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
135
+ cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
136
+ }
137
+ return cachedBigInt64Memory0;
138
+ }
139
+
131
140
  function debugString(val) {
132
141
  // primitive types
133
142
  const type = typeof val;
@@ -276,15 +285,15 @@ module.exports.get_possible_types_for_input = function(input) {
276
285
  };
277
286
 
278
287
  /**
279
- * @param {string} cbor_hex
288
+ * @param {string} hex_str
280
289
  * @returns {any}
281
290
  */
282
- module.exports.cbor_to_json = function(cbor_hex) {
291
+ module.exports.check_block_or_tx_signatures = function(hex_str) {
283
292
  try {
284
293
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
285
- const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
294
+ const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
286
295
  const len0 = WASM_VECTOR_LEN;
287
- wasm.cbor_to_json(retptr, ptr0, len0);
296
+ wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
288
297
  var r0 = getInt32Memory0()[retptr / 4 + 0];
289
298
  var r1 = getInt32Memory0()[retptr / 4 + 1];
290
299
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -297,271 +306,148 @@ module.exports.cbor_to_json = function(cbor_hex) {
297
306
  }
298
307
  };
299
308
 
300
- function _assertClass(instance, klass) {
301
- if (!(instance instanceof klass)) {
302
- throw new Error(`expected instance of ${klass.name}`);
303
- }
304
- return instance.ptr;
305
- }
306
-
307
- function getArrayU8FromWasm0(ptr, len) {
308
- ptr = ptr >>> 0;
309
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
310
- }
311
-
312
- function passArray8ToWasm0(arg, malloc) {
313
- const ptr = malloc(arg.length * 1, 1) >>> 0;
314
- getUint8Memory0().set(arg, ptr / 1);
315
- WASM_VECTOR_LEN = arg.length;
316
- return ptr;
317
- }
318
-
319
- function getArrayU32FromWasm0(ptr, len) {
320
- ptr = ptr >>> 0;
321
- return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
322
- }
323
309
  /**
324
- * @param {string} password
325
- * @param {string} salt
326
- * @param {string} nonce
327
- * @param {string} data
328
- * @returns {string}
310
+ * @param {string} tx_hex
311
+ * @returns {(string)[]}
329
312
  */
330
- module.exports.encrypt_with_password = function(password, salt, nonce, data) {
331
- let deferred6_0;
332
- let deferred6_1;
313
+ module.exports.get_utxo_list_from_tx = function(tx_hex) {
333
314
  try {
334
315
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
335
- const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
316
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
336
317
  const len0 = WASM_VECTOR_LEN;
337
- const ptr1 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
338
- const len1 = WASM_VECTOR_LEN;
339
- const ptr2 = passStringToWasm0(nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
340
- const len2 = WASM_VECTOR_LEN;
341
- const ptr3 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
342
- const len3 = WASM_VECTOR_LEN;
343
- wasm.encrypt_with_password(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
318
+ wasm.get_utxo_list_from_tx(retptr, ptr0, len0);
344
319
  var r0 = getInt32Memory0()[retptr / 4 + 0];
345
320
  var r1 = getInt32Memory0()[retptr / 4 + 1];
346
321
  var r2 = getInt32Memory0()[retptr / 4 + 2];
347
322
  var r3 = getInt32Memory0()[retptr / 4 + 3];
348
- var ptr5 = r0;
349
- var len5 = r1;
350
323
  if (r3) {
351
- ptr5 = 0; len5 = 0;
352
324
  throw takeObject(r2);
353
325
  }
354
- deferred6_0 = ptr5;
355
- deferred6_1 = len5;
356
- return getStringFromWasm0(ptr5, len5);
326
+ var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
327
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
328
+ return v2;
357
329
  } finally {
358
330
  wasm.__wbindgen_add_to_stack_pointer(16);
359
- wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
360
331
  }
361
332
  };
362
333
 
363
334
  /**
364
- * @param {string} password
365
- * @param {string} data
366
- * @returns {string}
335
+ * @param {string} tx_hex
336
+ * @param {any} utxo_json
337
+ * @param {any} cost_models_json
338
+ * @returns {any}
367
339
  */
368
- module.exports.decrypt_with_password = function(password, data) {
369
- let deferred4_0;
370
- let deferred4_1;
340
+ module.exports.execute_tx_scripts = function(tx_hex, utxo_json, cost_models_json) {
371
341
  try {
372
342
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
373
- const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
343
+ const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
374
344
  const len0 = WASM_VECTOR_LEN;
375
- const ptr1 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
376
- const len1 = WASM_VECTOR_LEN;
377
- wasm.decrypt_with_password(retptr, ptr0, len0, ptr1, len1);
345
+ wasm.execute_tx_scripts(retptr, ptr0, len0, addHeapObject(utxo_json), addHeapObject(cost_models_json));
378
346
  var r0 = getInt32Memory0()[retptr / 4 + 0];
379
347
  var r1 = getInt32Memory0()[retptr / 4 + 1];
380
348
  var r2 = getInt32Memory0()[retptr / 4 + 2];
381
- var r3 = getInt32Memory0()[retptr / 4 + 3];
382
- var ptr3 = r0;
383
- var len3 = r1;
384
- if (r3) {
385
- ptr3 = 0; len3 = 0;
386
- throw takeObject(r2);
349
+ if (r2) {
350
+ throw takeObject(r1);
387
351
  }
388
- deferred4_0 = ptr3;
389
- deferred4_1 = len3;
390
- return getStringFromWasm0(ptr3, len3);
352
+ return takeObject(r0);
391
353
  } finally {
392
354
  wasm.__wbindgen_add_to_stack_pointer(16);
393
- wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
394
355
  }
395
356
  };
396
357
 
397
358
  /**
398
- * @param {string} json
399
- * @param {PlutusDatumSchema} schema
400
- * @returns {PlutusData}
359
+ * @param {string} cbor_hex
360
+ * @returns {any}
401
361
  */
402
- module.exports.encode_json_str_to_plutus_datum = function(json, schema) {
362
+ module.exports.cbor_to_json = function(cbor_hex) {
403
363
  try {
404
364
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
405
- const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
365
+ const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
406
366
  const len0 = WASM_VECTOR_LEN;
407
- wasm.encode_json_str_to_plutus_datum(retptr, ptr0, len0, schema);
367
+ wasm.cbor_to_json(retptr, ptr0, len0);
408
368
  var r0 = getInt32Memory0()[retptr / 4 + 0];
409
369
  var r1 = getInt32Memory0()[retptr / 4 + 1];
410
370
  var r2 = getInt32Memory0()[retptr / 4 + 2];
411
371
  if (r2) {
412
372
  throw takeObject(r1);
413
373
  }
414
- return PlutusData.__wrap(r0);
415
- } finally {
416
- wasm.__wbindgen_add_to_stack_pointer(16);
417
- }
418
- };
419
-
420
- /**
421
- * @param {PlutusData} datum
422
- * @param {PlutusDatumSchema} schema
423
- * @returns {string}
424
- */
425
- module.exports.decode_plutus_datum_to_json_str = function(datum, schema) {
426
- let deferred2_0;
427
- let deferred2_1;
428
- try {
429
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
430
- _assertClass(datum, PlutusData);
431
- wasm.decode_plutus_datum_to_json_str(retptr, datum.__wbg_ptr, schema);
432
- var r0 = getInt32Memory0()[retptr / 4 + 0];
433
- var r1 = getInt32Memory0()[retptr / 4 + 1];
434
- var r2 = getInt32Memory0()[retptr / 4 + 2];
435
- var r3 = getInt32Memory0()[retptr / 4 + 3];
436
- var ptr1 = r0;
437
- var len1 = r1;
438
- if (r3) {
439
- ptr1 = 0; len1 = 0;
440
- throw takeObject(r2);
441
- }
442
- deferred2_0 = ptr1;
443
- deferred2_1 = len1;
444
- return getStringFromWasm0(ptr1, len1);
445
- } finally {
446
- wasm.__wbindgen_add_to_stack_pointer(16);
447
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
448
- }
449
- };
450
-
451
- /**
452
- * @param {Uint8Array} bytes
453
- * @returns {TransactionMetadatum}
454
- */
455
- module.exports.encode_arbitrary_bytes_as_metadatum = function(bytes) {
456
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
457
- const len0 = WASM_VECTOR_LEN;
458
- const ret = wasm.encode_arbitrary_bytes_as_metadatum(ptr0, len0);
459
- return TransactionMetadatum.__wrap(ret);
460
- };
461
-
462
- /**
463
- * @param {TransactionMetadatum} metadata
464
- * @returns {Uint8Array}
465
- */
466
- module.exports.decode_arbitrary_bytes_from_metadatum = function(metadata) {
467
- try {
468
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
469
- _assertClass(metadata, TransactionMetadatum);
470
- wasm.decode_arbitrary_bytes_from_metadatum(retptr, metadata.__wbg_ptr);
471
- var r0 = getInt32Memory0()[retptr / 4 + 0];
472
- var r1 = getInt32Memory0()[retptr / 4 + 1];
473
- var r2 = getInt32Memory0()[retptr / 4 + 2];
474
- var r3 = getInt32Memory0()[retptr / 4 + 3];
475
- if (r3) {
476
- throw takeObject(r2);
477
- }
478
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
479
- wasm.__wbindgen_free(r0, r1 * 1, 1);
480
- return v1;
374
+ return takeObject(r0);
481
375
  } finally {
482
376
  wasm.__wbindgen_add_to_stack_pointer(16);
483
377
  }
484
378
  };
485
379
 
486
380
  /**
487
- * @param {string} json
488
- * @param {MetadataJsonSchema} schema
489
- * @returns {TransactionMetadatum}
381
+ * @param {string} hex
382
+ * @returns {any}
490
383
  */
491
- module.exports.encode_json_str_to_metadatum = function(json, schema) {
384
+ module.exports.decode_plutus_program_uplc_json = function(hex) {
492
385
  try {
493
386
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
494
- const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
387
+ const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
495
388
  const len0 = WASM_VECTOR_LEN;
496
- wasm.encode_json_str_to_metadatum(retptr, ptr0, len0, schema);
389
+ wasm.decode_plutus_program_uplc_json(retptr, ptr0, len0);
497
390
  var r0 = getInt32Memory0()[retptr / 4 + 0];
498
391
  var r1 = getInt32Memory0()[retptr / 4 + 1];
499
392
  var r2 = getInt32Memory0()[retptr / 4 + 2];
500
393
  if (r2) {
501
394
  throw takeObject(r1);
502
395
  }
503
- return TransactionMetadatum.__wrap(r0);
396
+ return takeObject(r0);
504
397
  } finally {
505
398
  wasm.__wbindgen_add_to_stack_pointer(16);
506
399
  }
507
400
  };
508
401
 
509
402
  /**
510
- * @param {TransactionMetadatum} metadatum
511
- * @param {MetadataJsonSchema} schema
403
+ * @param {string} hex
512
404
  * @returns {string}
513
405
  */
514
- module.exports.decode_metadatum_to_json_str = function(metadatum, schema) {
515
- let deferred2_0;
516
- let deferred2_1;
406
+ module.exports.decode_plutus_program_pretty_uplc = function(hex) {
407
+ let deferred3_0;
408
+ let deferred3_1;
517
409
  try {
518
410
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
519
- _assertClass(metadatum, TransactionMetadatum);
520
- wasm.decode_metadatum_to_json_str(retptr, metadatum.__wbg_ptr, schema);
411
+ const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
412
+ const len0 = WASM_VECTOR_LEN;
413
+ wasm.decode_plutus_program_pretty_uplc(retptr, ptr0, len0);
521
414
  var r0 = getInt32Memory0()[retptr / 4 + 0];
522
415
  var r1 = getInt32Memory0()[retptr / 4 + 1];
523
416
  var r2 = getInt32Memory0()[retptr / 4 + 2];
524
417
  var r3 = getInt32Memory0()[retptr / 4 + 3];
525
- var ptr1 = r0;
526
- var len1 = r1;
418
+ var ptr2 = r0;
419
+ var len2 = r1;
527
420
  if (r3) {
528
- ptr1 = 0; len1 = 0;
421
+ ptr2 = 0; len2 = 0;
529
422
  throw takeObject(r2);
530
423
  }
531
- deferred2_0 = ptr1;
532
- deferred2_1 = len1;
533
- return getStringFromWasm0(ptr1, len1);
424
+ deferred3_0 = ptr2;
425
+ deferred3_1 = len2;
426
+ return getStringFromWasm0(ptr2, len2);
534
427
  } finally {
535
428
  wasm.__wbindgen_add_to_stack_pointer(16);
536
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
429
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
537
430
  }
538
431
  };
539
432
 
540
- /**
541
- * @param {Address} address
542
- * @param {TransactionUnspentOutputs} utxos
543
- * @param {TransactionBuilderConfig} config
544
- * @returns {TransactionBatchList}
545
- */
546
- module.exports.create_send_all = function(address, utxos, config) {
547
- try {
548
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
549
- _assertClass(address, Address);
550
- _assertClass(utxos, TransactionUnspentOutputs);
551
- _assertClass(config, TransactionBuilderConfig);
552
- wasm.create_send_all(retptr, address.__wbg_ptr, utxos.__wbg_ptr, config.__wbg_ptr);
553
- var r0 = getInt32Memory0()[retptr / 4 + 0];
554
- var r1 = getInt32Memory0()[retptr / 4 + 1];
555
- var r2 = getInt32Memory0()[retptr / 4 + 2];
556
- if (r2) {
557
- throw takeObject(r1);
558
- }
559
- return TransactionBatchList.__wrap(r0);
560
- } finally {
561
- wasm.__wbindgen_add_to_stack_pointer(16);
562
- }
563
- };
433
+ function getArrayU8FromWasm0(ptr, len) {
434
+ ptr = ptr >>> 0;
435
+ return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
436
+ }
437
+
438
+ function passArray8ToWasm0(arg, malloc) {
439
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
440
+ getUint8Memory0().set(arg, ptr / 1);
441
+ WASM_VECTOR_LEN = arg.length;
442
+ return ptr;
443
+ }
564
444
 
445
+ function _assertClass(instance, klass) {
446
+ if (!(instance instanceof klass)) {
447
+ throw new Error(`expected instance of ${klass.name}`);
448
+ }
449
+ return instance.ptr;
450
+ }
565
451
  /**
566
452
  * @param {Transaction} tx
567
453
  * @param {LinearFee} linear_fee
@@ -653,6 +539,11 @@ module.exports.min_ref_script_fee = function(total_ref_scripts_size, ref_script_
653
539
  }
654
540
  };
655
541
 
542
+ function getArrayU32FromWasm0(ptr, len) {
543
+ ptr = ptr >>> 0;
544
+ return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
545
+ }
546
+
656
547
  function passArray32ToWasm0(arg, malloc) {
657
548
  const ptr = malloc(arg.length * 4, 4) >>> 0;
658
549
  getUint32Memory0().set(arg, ptr / 4);
@@ -874,6 +765,248 @@ module.exports.has_transaction_set_tag = function(tx_bytes) {
874
765
  }
875
766
  };
876
767
 
768
+ /**
769
+ * @param {Address} address
770
+ * @param {TransactionUnspentOutputs} utxos
771
+ * @param {TransactionBuilderConfig} config
772
+ * @returns {TransactionBatchList}
773
+ */
774
+ module.exports.create_send_all = function(address, utxos, config) {
775
+ try {
776
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
777
+ _assertClass(address, Address);
778
+ _assertClass(utxos, TransactionUnspentOutputs);
779
+ _assertClass(config, TransactionBuilderConfig);
780
+ wasm.create_send_all(retptr, address.__wbg_ptr, utxos.__wbg_ptr, config.__wbg_ptr);
781
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
782
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
783
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
784
+ if (r2) {
785
+ throw takeObject(r1);
786
+ }
787
+ return TransactionBatchList.__wrap(r0);
788
+ } finally {
789
+ wasm.__wbindgen_add_to_stack_pointer(16);
790
+ }
791
+ };
792
+
793
+ /**
794
+ * @param {string} password
795
+ * @param {string} salt
796
+ * @param {string} nonce
797
+ * @param {string} data
798
+ * @returns {string}
799
+ */
800
+ module.exports.encrypt_with_password = function(password, salt, nonce, data) {
801
+ let deferred6_0;
802
+ let deferred6_1;
803
+ try {
804
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
805
+ const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
806
+ const len0 = WASM_VECTOR_LEN;
807
+ const ptr1 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
808
+ const len1 = WASM_VECTOR_LEN;
809
+ const ptr2 = passStringToWasm0(nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
810
+ const len2 = WASM_VECTOR_LEN;
811
+ const ptr3 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
812
+ const len3 = WASM_VECTOR_LEN;
813
+ wasm.encrypt_with_password(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
814
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
815
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
816
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
817
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
818
+ var ptr5 = r0;
819
+ var len5 = r1;
820
+ if (r3) {
821
+ ptr5 = 0; len5 = 0;
822
+ throw takeObject(r2);
823
+ }
824
+ deferred6_0 = ptr5;
825
+ deferred6_1 = len5;
826
+ return getStringFromWasm0(ptr5, len5);
827
+ } finally {
828
+ wasm.__wbindgen_add_to_stack_pointer(16);
829
+ wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
830
+ }
831
+ };
832
+
833
+ /**
834
+ * @param {string} password
835
+ * @param {string} data
836
+ * @returns {string}
837
+ */
838
+ module.exports.decrypt_with_password = function(password, data) {
839
+ let deferred4_0;
840
+ let deferred4_1;
841
+ try {
842
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
843
+ const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
844
+ const len0 = WASM_VECTOR_LEN;
845
+ const ptr1 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
846
+ const len1 = WASM_VECTOR_LEN;
847
+ wasm.decrypt_with_password(retptr, ptr0, len0, ptr1, len1);
848
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
849
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
850
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
851
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
852
+ var ptr3 = r0;
853
+ var len3 = r1;
854
+ if (r3) {
855
+ ptr3 = 0; len3 = 0;
856
+ throw takeObject(r2);
857
+ }
858
+ deferred4_0 = ptr3;
859
+ deferred4_1 = len3;
860
+ return getStringFromWasm0(ptr3, len3);
861
+ } finally {
862
+ wasm.__wbindgen_add_to_stack_pointer(16);
863
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
864
+ }
865
+ };
866
+
867
+ /**
868
+ * @param {string} json
869
+ * @param {PlutusDatumSchema} schema
870
+ * @returns {PlutusData}
871
+ */
872
+ module.exports.encode_json_str_to_plutus_datum = function(json, schema) {
873
+ try {
874
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
875
+ const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
876
+ const len0 = WASM_VECTOR_LEN;
877
+ wasm.encode_json_str_to_plutus_datum(retptr, ptr0, len0, schema);
878
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
879
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
880
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
881
+ if (r2) {
882
+ throw takeObject(r1);
883
+ }
884
+ return PlutusData.__wrap(r0);
885
+ } finally {
886
+ wasm.__wbindgen_add_to_stack_pointer(16);
887
+ }
888
+ };
889
+
890
+ /**
891
+ * @param {PlutusData} datum
892
+ * @param {PlutusDatumSchema} schema
893
+ * @returns {string}
894
+ */
895
+ module.exports.decode_plutus_datum_to_json_str = function(datum, schema) {
896
+ let deferred2_0;
897
+ let deferred2_1;
898
+ try {
899
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
900
+ _assertClass(datum, PlutusData);
901
+ wasm.decode_plutus_datum_to_json_str(retptr, datum.__wbg_ptr, schema);
902
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
903
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
904
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
905
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
906
+ var ptr1 = r0;
907
+ var len1 = r1;
908
+ if (r3) {
909
+ ptr1 = 0; len1 = 0;
910
+ throw takeObject(r2);
911
+ }
912
+ deferred2_0 = ptr1;
913
+ deferred2_1 = len1;
914
+ return getStringFromWasm0(ptr1, len1);
915
+ } finally {
916
+ wasm.__wbindgen_add_to_stack_pointer(16);
917
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
918
+ }
919
+ };
920
+
921
+ /**
922
+ * @param {Uint8Array} bytes
923
+ * @returns {TransactionMetadatum}
924
+ */
925
+ module.exports.encode_arbitrary_bytes_as_metadatum = function(bytes) {
926
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
927
+ const len0 = WASM_VECTOR_LEN;
928
+ const ret = wasm.encode_arbitrary_bytes_as_metadatum(ptr0, len0);
929
+ return TransactionMetadatum.__wrap(ret);
930
+ };
931
+
932
+ /**
933
+ * @param {TransactionMetadatum} metadata
934
+ * @returns {Uint8Array}
935
+ */
936
+ module.exports.decode_arbitrary_bytes_from_metadatum = function(metadata) {
937
+ try {
938
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
939
+ _assertClass(metadata, TransactionMetadatum);
940
+ wasm.decode_arbitrary_bytes_from_metadatum(retptr, metadata.__wbg_ptr);
941
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
942
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
943
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
944
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
945
+ if (r3) {
946
+ throw takeObject(r2);
947
+ }
948
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
949
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
950
+ return v1;
951
+ } finally {
952
+ wasm.__wbindgen_add_to_stack_pointer(16);
953
+ }
954
+ };
955
+
956
+ /**
957
+ * @param {string} json
958
+ * @param {MetadataJsonSchema} schema
959
+ * @returns {TransactionMetadatum}
960
+ */
961
+ module.exports.encode_json_str_to_metadatum = function(json, schema) {
962
+ try {
963
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
964
+ const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
965
+ const len0 = WASM_VECTOR_LEN;
966
+ wasm.encode_json_str_to_metadatum(retptr, ptr0, len0, schema);
967
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
968
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
969
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
970
+ if (r2) {
971
+ throw takeObject(r1);
972
+ }
973
+ return TransactionMetadatum.__wrap(r0);
974
+ } finally {
975
+ wasm.__wbindgen_add_to_stack_pointer(16);
976
+ }
977
+ };
978
+
979
+ /**
980
+ * @param {TransactionMetadatum} metadatum
981
+ * @param {MetadataJsonSchema} schema
982
+ * @returns {string}
983
+ */
984
+ module.exports.decode_metadatum_to_json_str = function(metadatum, schema) {
985
+ let deferred2_0;
986
+ let deferred2_1;
987
+ try {
988
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
989
+ _assertClass(metadatum, TransactionMetadatum);
990
+ wasm.decode_metadatum_to_json_str(retptr, metadatum.__wbg_ptr, schema);
991
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
992
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
993
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
994
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
995
+ var ptr1 = r0;
996
+ var len1 = r1;
997
+ if (r3) {
998
+ ptr1 = 0; len1 = 0;
999
+ throw takeObject(r2);
1000
+ }
1001
+ deferred2_0 = ptr1;
1002
+ deferred2_1 = len1;
1003
+ return getStringFromWasm0(ptr1, len1);
1004
+ } finally {
1005
+ wasm.__wbindgen_add_to_stack_pointer(16);
1006
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
1007
+ }
1008
+ };
1009
+
877
1010
  function handleError(f, args) {
878
1011
  try {
879
1012
  return f.apply(this, args);
@@ -883,31 +1016,59 @@ function handleError(f, args) {
883
1016
  }
884
1017
  /**
885
1018
  */
1019
+ module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
1020
+ /**
1021
+ */
1022
+ 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", });
1023
+ /**
1024
+ */
886
1025
  module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
887
1026
  /**
1027
+ * Used to choosed the schema for a script JSON string
888
1028
  */
889
- module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1029
+ module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
890
1030
  /**
891
1031
  */
892
- 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", });
1032
+ 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", });
893
1033
  /**
894
1034
  */
895
1035
  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", });
896
1036
  /**
897
1037
  */
898
- 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", });
1038
+ module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
899
1039
  /**
900
1040
  */
901
- module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
1041
+ 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", });
1042
+ /**
1043
+ */
1044
+ module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1045
+ /**
1046
+ */
1047
+ 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", });
1048
+ /**
1049
+ */
1050
+ module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
902
1051
  /**
903
1052
  */
904
1053
  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", });
905
1054
  /**
906
1055
  */
907
- module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
1056
+ module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
908
1057
  /**
909
1058
  */
910
- module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1059
+ 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", });
1060
+ /**
1061
+ */
1062
+ module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
1063
+ /**
1064
+ */
1065
+ module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
1066
+ /**
1067
+ */
1068
+ 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", });
1069
+ /**
1070
+ */
1071
+ module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
911
1072
  /**
912
1073
  * JSON <-> PlutusData conversion schemas.
913
1074
  * Follows ScriptDataJsonSchema in cardano-cli defined at:
@@ -960,21 +1121,6 @@ BasicConversions:0,"0":"BasicConversions",
960
1121
  */
961
1122
  DetailedSchema:1,"1":"DetailedSchema", });
962
1123
  /**
963
- */
964
- module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
965
- /**
966
- */
967
- 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", });
968
- /**
969
- */
970
- module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
971
- /**
972
- */
973
- module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
974
- /**
975
- */
976
- 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", });
977
- /**
978
1124
  * Each new language uses a different namespace for hashing its script
979
1125
  * This is because you could have a language where the same bytes have different semantics
980
1126
  * So this avoids scripts in different languages mapping to the same hash
@@ -983,29 +1129,13 @@ module.exports.TransactionMetadatumKind = Object.freeze({ MetadataMap:0,"0":"Met
983
1129
  module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
984
1130
  /**
985
1131
  */
986
- 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", });
987
- /**
988
- */
989
- 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", });
990
- /**
991
- */
992
- 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", });
993
- /**
994
- */
995
- module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
996
- /**
997
- */
998
1132
  module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
999
1133
  /**
1000
- * Used to choosed the schema for a script JSON string
1001
- */
1002
- module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
1003
- /**
1004
1134
  */
1005
- module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
1135
+ module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
1006
1136
  /**
1007
1137
  */
1008
- module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
1138
+ 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", });
1009
1139
  /**
1010
1140
  */
1011
1141
  module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
@@ -1025,6 +1155,9 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
1025
1155
  * Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
1026
1156
  */
1027
1157
  RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
1158
+ /**
1159
+ */
1160
+ module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
1028
1161
 
1029
1162
  const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
1030
1163
  ? { register: () => {}, unregister: () => {} }
@@ -7759,14 +7892,14 @@ class Credentials {
7759
7892
  * @returns {Credentials}
7760
7893
  */
7761
7894
  static new() {
7762
- const ret = wasm.certificates_new();
7895
+ const ret = wasm.credentials_new();
7763
7896
  return Credentials.__wrap(ret);
7764
7897
  }
7765
7898
  /**
7766
7899
  * @returns {number}
7767
7900
  */
7768
7901
  len() {
7769
- const ret = wasm.certificates_len(this.__wbg_ptr);
7902
+ const ret = wasm.credentials_len(this.__wbg_ptr);
7770
7903
  return ret >>> 0;
7771
7904
  }
7772
7905
  /**
@@ -10056,14 +10189,14 @@ class Ed25519KeyHashes {
10056
10189
  * @returns {Ed25519KeyHashes}
10057
10190
  */
10058
10191
  static new() {
10059
- const ret = wasm.certificates_new();
10192
+ const ret = wasm.credentials_new();
10060
10193
  return Ed25519KeyHashes.__wrap(ret);
10061
10194
  }
10062
10195
  /**
10063
10196
  * @returns {number}
10064
10197
  */
10065
10198
  len() {
10066
- const ret = wasm.certificates_len(this.__wbg_ptr);
10199
+ const ret = wasm.credentials_len(this.__wbg_ptr);
10067
10200
  return ret >>> 0;
10068
10201
  }
10069
10202
  /**
@@ -13156,7 +13289,7 @@ class GovernanceActionIds {
13156
13289
  * @returns {number}
13157
13290
  */
13158
13291
  len() {
13159
- const ret = wasm.costmdls_len(this.__wbg_ptr);
13292
+ const ret = wasm.governanceactionids_len(this.__wbg_ptr);
13160
13293
  return ret >>> 0;
13161
13294
  }
13162
13295
  }
@@ -16351,7 +16484,7 @@ class MintBuilder {
16351
16484
  * @returns {MintBuilder}
16352
16485
  */
16353
16486
  static new() {
16354
- const ret = wasm.mintbuilder_new();
16487
+ const ret = wasm.costmdls_new();
16355
16488
  return MintBuilder.__wrap(ret);
16356
16489
  }
16357
16490
  /**
@@ -17895,7 +18028,7 @@ class NativeScripts {
17895
18028
  * @returns {number}
17896
18029
  */
17897
18030
  len() {
17898
- const ret = wasm.costmodel_len(this.__wbg_ptr);
18031
+ const ret = wasm.costmdls_len(this.__wbg_ptr);
17899
18032
  return ret >>> 0;
17900
18033
  }
17901
18034
  /**
@@ -18498,7 +18631,7 @@ class NewConstitutionAction {
18498
18631
  * @returns {GovernanceActionId | undefined}
18499
18632
  */
18500
18633
  gov_action_id() {
18501
- const ret = wasm.hardforkinitiationaction_gov_action_id(this.__wbg_ptr);
18634
+ const ret = wasm.newconstitutionaction_gov_action_id(this.__wbg_ptr);
18502
18635
  return ret === 0 ? undefined : GovernanceActionId.__wrap(ret);
18503
18636
  }
18504
18637
  /**
@@ -18711,7 +18844,7 @@ class NoConfidenceAction {
18711
18844
  * @returns {GovernanceActionId | undefined}
18712
18845
  */
18713
18846
  gov_action_id() {
18714
- const ret = wasm.hardforkinitiationaction_gov_action_id(this.__wbg_ptr);
18847
+ const ret = wasm.noconfidenceaction_gov_action_id(this.__wbg_ptr);
18715
18848
  return ret === 0 ? undefined : GovernanceActionId.__wrap(ret);
18716
18849
  }
18717
18850
  /**
@@ -20670,7 +20803,7 @@ class PlutusScripts {
20670
20803
  * @returns {number}
20671
20804
  */
20672
20805
  len() {
20673
- const ret = wasm.plutusscripts_len(this.__wbg_ptr);
20806
+ const ret = wasm.certificates_len(this.__wbg_ptr);
20674
20807
  return ret >>> 0;
20675
20808
  }
20676
20809
  /**
@@ -23814,7 +23947,7 @@ class PublicKeys {
23814
23947
  /**
23815
23948
  */
23816
23949
  constructor() {
23817
- const ret = wasm.languages_new();
23950
+ const ret = wasm.genesishashes_new();
23818
23951
  this.__wbg_ptr = ret >>> 0;
23819
23952
  return this;
23820
23953
  }
@@ -23822,7 +23955,7 @@ class PublicKeys {
23822
23955
  * @returns {number}
23823
23956
  */
23824
23957
  size() {
23825
- const ret = wasm.languages_len(this.__wbg_ptr);
23958
+ const ret = wasm.assetnames_len(this.__wbg_ptr);
23826
23959
  return ret >>> 0;
23827
23960
  }
23828
23961
  /**
@@ -27511,7 +27644,7 @@ class StakeDelegation {
27511
27644
  * @returns {Credential}
27512
27645
  */
27513
27646
  stake_credential() {
27514
- const ret = wasm.stakeandvotedelegation_stake_credential(this.__wbg_ptr);
27647
+ const ret = wasm.stakedelegation_stake_credential(this.__wbg_ptr);
27515
27648
  return Credential.__wrap(ret);
27516
27649
  }
27517
27650
  /**
@@ -27536,7 +27669,7 @@ class StakeDelegation {
27536
27669
  * @returns {boolean}
27537
27670
  */
27538
27671
  has_script_credentials() {
27539
- const ret = wasm.stakeandvotedelegation_has_script_credentials(this.__wbg_ptr);
27672
+ const ret = wasm.stakedelegation_has_script_credentials(this.__wbg_ptr);
27540
27673
  return ret !== 0;
27541
27674
  }
27542
27675
  }
@@ -27928,14 +28061,14 @@ class StakeRegistration {
27928
28061
  * @returns {Credential}
27929
28062
  */
27930
28063
  stake_credential() {
27931
- const ret = wasm.stakederegistration_stake_credential(this.__wbg_ptr);
28064
+ const ret = wasm.stakeregistration_stake_credential(this.__wbg_ptr);
27932
28065
  return Credential.__wrap(ret);
27933
28066
  }
27934
28067
  /**
27935
28068
  * @returns {BigNum | undefined}
27936
28069
  */
27937
28070
  coin() {
27938
- const ret = wasm.stakederegistration_coin(this.__wbg_ptr);
28071
+ const ret = wasm.stakeregistration_coin(this.__wbg_ptr);
27939
28072
  return ret === 0 ? undefined : BigNum.__wrap(ret);
27940
28073
  }
27941
28074
  /**
@@ -27944,7 +28077,7 @@ class StakeRegistration {
27944
28077
  */
27945
28078
  static new(stake_credential) {
27946
28079
  _assertClass(stake_credential, Credential);
27947
- const ret = wasm.stakederegistration_new(stake_credential.__wbg_ptr);
28080
+ const ret = wasm.stakeregistration_new(stake_credential.__wbg_ptr);
27948
28081
  return StakeRegistration.__wrap(ret);
27949
28082
  }
27950
28083
  /**
@@ -27955,14 +28088,14 @@ class StakeRegistration {
27955
28088
  static new_with_explicit_deposit(stake_credential, coin) {
27956
28089
  _assertClass(stake_credential, Credential);
27957
28090
  _assertClass(coin, BigNum);
27958
- const ret = wasm.stakederegistration_new_with_explicit_refund(stake_credential.__wbg_ptr, coin.__wbg_ptr);
28091
+ const ret = wasm.stakeregistration_new_with_explicit_deposit(stake_credential.__wbg_ptr, coin.__wbg_ptr);
27959
28092
  return StakeRegistration.__wrap(ret);
27960
28093
  }
27961
28094
  /**
27962
28095
  * @returns {boolean}
27963
28096
  */
27964
28097
  has_script_credentials() {
27965
- const ret = wasm.stakederegistration_has_script_credentials(this.__wbg_ptr);
28098
+ const ret = wasm.stakeregistration_has_script_credentials(this.__wbg_ptr);
27966
28099
  return ret !== 0;
27967
28100
  }
27968
28101
  }
@@ -28433,14 +28566,14 @@ class Strings {
28433
28566
  * @returns {Strings}
28434
28567
  */
28435
28568
  static new() {
28436
- const ret = wasm.relays_new();
28569
+ const ret = wasm.strings_new();
28437
28570
  return Strings.__wrap(ret);
28438
28571
  }
28439
28572
  /**
28440
28573
  * @returns {number}
28441
28574
  */
28442
28575
  len() {
28443
- const ret = wasm.relays_len(this.__wbg_ptr);
28576
+ const ret = wasm.costmodel_len(this.__wbg_ptr);
28444
28577
  return ret >>> 0;
28445
28578
  }
28446
28579
  /**
@@ -29165,7 +29298,7 @@ class TransactionBatch {
29165
29298
  * @returns {number}
29166
29299
  */
29167
29300
  len() {
29168
- const ret = wasm.transactionbatch_len(this.__wbg_ptr);
29301
+ const ret = wasm.costmdls_len(this.__wbg_ptr);
29169
29302
  return ret >>> 0;
29170
29303
  }
29171
29304
  /**
@@ -29209,7 +29342,7 @@ class TransactionBatchList {
29209
29342
  * @returns {number}
29210
29343
  */
29211
29344
  len() {
29212
- const ret = wasm.transactionbatch_len(this.__wbg_ptr);
29345
+ const ret = wasm.costmdls_len(this.__wbg_ptr);
29213
29346
  return ret >>> 0;
29214
29347
  }
29215
29348
  /**
@@ -31806,7 +31939,7 @@ class TransactionInputs {
31806
31939
  * @returns {number}
31807
31940
  */
31808
31941
  len() {
31809
- const ret = wasm.languages_len(this.__wbg_ptr);
31942
+ const ret = wasm.costmdls_len(this.__wbg_ptr);
31810
31943
  return ret >>> 0;
31811
31944
  }
31812
31945
  /**
@@ -33433,7 +33566,7 @@ class TransactionWitnessSet {
33433
33566
  * @returns {NativeScripts | undefined}
33434
33567
  */
33435
33568
  native_scripts() {
33436
- const ret = wasm.auxiliarydata_native_scripts(this.__wbg_ptr);
33569
+ const ret = wasm.transactionwitnessset_native_scripts(this.__wbg_ptr);
33437
33570
  return ret === 0 ? undefined : NativeScripts.__wrap(ret);
33438
33571
  }
33439
33572
  /**
@@ -33682,7 +33815,7 @@ class TransactionWitnessSets {
33682
33815
  * @returns {number}
33683
33816
  */
33684
33817
  len() {
33685
- const ret = wasm.transactionbatch_len(this.__wbg_ptr);
33818
+ const ret = wasm.costmdls_len(this.__wbg_ptr);
33686
33819
  return ret >>> 0;
33687
33820
  }
33688
33821
  /**
@@ -33831,7 +33964,7 @@ class TreasuryWithdrawals {
33831
33964
  * @returns {number}
33832
33965
  */
33833
33966
  len() {
33834
- const ret = wasm.costmodel_len(this.__wbg_ptr);
33967
+ const ret = wasm.relays_len(this.__wbg_ptr);
33835
33968
  return ret >>> 0;
33836
33969
  }
33837
33970
  }
@@ -36576,7 +36709,7 @@ class Vkeywitness {
36576
36709
  * @returns {Ed25519Signature}
36577
36710
  */
36578
36711
  signature() {
36579
- const ret = wasm.vkeywitness_signature(this.__wbg_ptr);
36712
+ const ret = wasm.operationalcert_sigma(this.__wbg_ptr);
36580
36713
  return Ed25519Signature.__wrap(ret);
36581
36714
  }
36582
36715
  }
@@ -36960,14 +37093,14 @@ class VoteDelegation {
36960
37093
  * @returns {Credential}
36961
37094
  */
36962
37095
  stake_credential() {
36963
- const ret = wasm.committeehotauth_committee_cold_credential(this.__wbg_ptr);
37096
+ const ret = wasm.stakeandvotedelegation_stake_credential(this.__wbg_ptr);
36964
37097
  return Credential.__wrap(ret);
36965
37098
  }
36966
37099
  /**
36967
37100
  * @returns {DRep}
36968
37101
  */
36969
37102
  drep() {
36970
- const ret = wasm.votedelegation_drep(this.__wbg_ptr);
37103
+ const ret = wasm.stakeandvotedelegation_drep(this.__wbg_ptr);
36971
37104
  return DRep.__wrap(ret);
36972
37105
  }
36973
37106
  /**
@@ -36985,7 +37118,7 @@ class VoteDelegation {
36985
37118
  * @returns {boolean}
36986
37119
  */
36987
37120
  has_script_credentials() {
36988
- const ret = wasm.committeehotauth_has_script_credentials(this.__wbg_ptr);
37121
+ const ret = wasm.stakeandvotedelegation_has_script_credentials(this.__wbg_ptr);
36989
37122
  return ret !== 0;
36990
37123
  }
36991
37124
  }
@@ -37541,7 +37674,7 @@ class Voters {
37541
37674
  * @returns {Voters}
37542
37675
  */
37543
37676
  static new() {
37544
- const ret = wasm.languages_new();
37677
+ const ret = wasm.voters_new();
37545
37678
  return Voters.__wrap(ret);
37546
37679
  }
37547
37680
  /**
@@ -37563,7 +37696,7 @@ class Voters {
37563
37696
  * @returns {number}
37564
37697
  */
37565
37698
  len() {
37566
- const ret = wasm.languages_len(this.__wbg_ptr);
37699
+ const ret = wasm.costmdls_len(this.__wbg_ptr);
37567
37700
  return ret >>> 0;
37568
37701
  }
37569
37702
  }
@@ -37599,7 +37732,7 @@ class VotingBuilder {
37599
37732
  * @returns {VotingBuilder}
37600
37733
  */
37601
37734
  static new() {
37602
- const ret = wasm.treasurywithdrawals_new();
37735
+ const ret = wasm.votingbuilder_new();
37603
37736
  return VotingBuilder.__wrap(ret);
37604
37737
  }
37605
37738
  /**
@@ -38373,7 +38506,7 @@ class VotingProposalBuilder {
38373
38506
  * @returns {VotingProposalBuilder}
38374
38507
  */
38375
38508
  static new() {
38376
- const ret = wasm.mintbuilder_new();
38509
+ const ret = wasm.costmdls_new();
38377
38510
  return VotingProposalBuilder.__wrap(ret);
38378
38511
  }
38379
38512
  /**
@@ -38616,14 +38749,14 @@ class VotingProposals {
38616
38749
  * @returns {VotingProposals}
38617
38750
  */
38618
38751
  static new() {
38619
- const ret = wasm.votingproposals_new();
38752
+ const ret = wasm.certificates_new();
38620
38753
  return VotingProposals.__wrap(ret);
38621
38754
  }
38622
38755
  /**
38623
38756
  * @returns {number}
38624
38757
  */
38625
38758
  len() {
38626
- const ret = wasm.votingproposals_len(this.__wbg_ptr);
38759
+ const ret = wasm.certificates_len(this.__wbg_ptr);
38627
38760
  return ret >>> 0;
38628
38761
  }
38629
38762
  /**
@@ -39051,6 +39184,21 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
39051
39184
  return ret;
39052
39185
  };
39053
39186
 
39187
+ module.exports.__wbindgen_is_bigint = function(arg0) {
39188
+ const ret = typeof(getObject(arg0)) === 'bigint';
39189
+ return ret;
39190
+ };
39191
+
39192
+ module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
39193
+ const ret = arg0;
39194
+ return addHeapObject(ret);
39195
+ };
39196
+
39197
+ module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
39198
+ const ret = getObject(arg0) === getObject(arg1);
39199
+ return ret;
39200
+ };
39201
+
39054
39202
  module.exports.__wbindgen_is_string = function(arg0) {
39055
39203
  const ret = typeof(getObject(arg0)) === 'string';
39056
39204
  return ret;
@@ -39193,6 +39341,36 @@ module.exports.__wbg_new_d9bc3a0147634640 = function() {
39193
39341
  return addHeapObject(ret);
39194
39342
  };
39195
39343
 
39344
+ module.exports.__wbg_next_40fc327bfc8770e6 = function(arg0) {
39345
+ const ret = getObject(arg0).next;
39346
+ return addHeapObject(ret);
39347
+ };
39348
+
39349
+ module.exports.__wbg_next_196c84450b364254 = function() { return handleError(function (arg0) {
39350
+ const ret = getObject(arg0).next();
39351
+ return addHeapObject(ret);
39352
+ }, arguments) };
39353
+
39354
+ module.exports.__wbg_done_298b57d23c0fc80c = function(arg0) {
39355
+ const ret = getObject(arg0).done;
39356
+ return ret;
39357
+ };
39358
+
39359
+ module.exports.__wbg_value_d93c65011f51a456 = function(arg0) {
39360
+ const ret = getObject(arg0).value;
39361
+ return addHeapObject(ret);
39362
+ };
39363
+
39364
+ module.exports.__wbg_iterator_2cee6dadfd956dfa = function() {
39365
+ const ret = Symbol.iterator;
39366
+ return addHeapObject(ret);
39367
+ };
39368
+
39369
+ module.exports.__wbg_get_e3c254076557e348 = function() { return handleError(function (arg0, arg1) {
39370
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
39371
+ return addHeapObject(ret);
39372
+ }, arguments) };
39373
+
39196
39374
  module.exports.__wbg_call_27c0f87801dedf93 = function() { return handleError(function (arg0, arg1) {
39197
39375
  const ret = getObject(arg0).call(getObject(arg1));
39198
39376
  return addHeapObject(ret);
@@ -39227,6 +39405,11 @@ module.exports.__wbg_set_d4638f722068f043 = function(arg0, arg1, arg2) {
39227
39405
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
39228
39406
  };
39229
39407
 
39408
+ module.exports.__wbg_isArray_2ab64d95e09ea0ae = function(arg0) {
39409
+ const ret = Array.isArray(getObject(arg0));
39410
+ return ret;
39411
+ };
39412
+
39230
39413
  module.exports.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2 = function(arg0) {
39231
39414
  let result;
39232
39415
  try {
@@ -39313,11 +39496,6 @@ module.exports.__wbg_call_eae29933372a39be = function(arg0, arg1) {
39313
39496
  return addHeapObject(ret);
39314
39497
  };
39315
39498
 
39316
- module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
39317
- const ret = getObject(arg0) === getObject(arg1);
39318
- return ret;
39319
- };
39320
-
39321
39499
  module.exports.__wbg_self_e0b3266d2d9eba1a = function(arg0) {
39322
39500
  const ret = getObject(arg0).self;
39323
39501
  return addHeapObject(ret);
@@ -39346,6 +39524,13 @@ module.exports.__wbg_getRandomValues_02639197c8166a96 = function(arg0, arg1, arg
39346
39524
  getObject(arg0).getRandomValues(getArrayU8FromWasm0(arg1, arg2));
39347
39525
  };
39348
39526
 
39527
+ module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
39528
+ const v = getObject(arg1);
39529
+ const ret = typeof(v) === 'bigint' ? v : undefined;
39530
+ getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
39531
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
39532
+ };
39533
+
39349
39534
  module.exports.__wbindgen_debug_string = function(arg0, arg1) {
39350
39535
  const ret = debugString(getObject(arg1));
39351
39536
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);