@cardananium/cquisitor-lib 0.1.0-beta.2 → 0.1.0-beta.20
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 +1085 -3
- package/browser/cquisitor_lib.js +4 -39213
- package/browser/cquisitor_lib_bg.js +39450 -0
- package/browser/cquisitor_lib_bg.wasm +0 -0
- package/browser/cquisitor_lib_bg.wasm.d.ts +2260 -2254
- package/node/cquisitor_lib.d.ts +1085 -3
- package/node/cquisitor_lib.js +514 -259
- package/node/cquisitor_lib_bg.wasm +0 -0
- package/node/cquisitor_lib_bg.wasm.d.ts +2260 -2254
- package/package.json +3 -2
package/node/cquisitor_lib.js
CHANGED
|
@@ -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}
|
|
288
|
+
* @param {string} cbor_hex
|
|
280
289
|
* @returns {any}
|
|
281
290
|
*/
|
|
282
|
-
module.exports.
|
|
291
|
+
module.exports.cbor_to_json = function(cbor_hex) {
|
|
283
292
|
try {
|
|
284
293
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
285
|
-
const ptr0 = passStringToWasm0(
|
|
294
|
+
const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
286
295
|
const len0 = WASM_VECTOR_LEN;
|
|
287
|
-
wasm.
|
|
296
|
+
wasm.cbor_to_json(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];
|
|
@@ -298,15 +307,15 @@ module.exports.check_block_or_tx_signatures = function(hex_str) {
|
|
|
298
307
|
};
|
|
299
308
|
|
|
300
309
|
/**
|
|
301
|
-
* @param {string}
|
|
310
|
+
* @param {string} hex_str
|
|
302
311
|
* @returns {any}
|
|
303
312
|
*/
|
|
304
|
-
module.exports.
|
|
313
|
+
module.exports.check_block_or_tx_signatures = function(hex_str) {
|
|
305
314
|
try {
|
|
306
315
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
307
|
-
const ptr0 = passStringToWasm0(
|
|
316
|
+
const ptr0 = passStringToWasm0(hex_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
308
317
|
const len0 = WASM_VECTOR_LEN;
|
|
309
|
-
wasm.
|
|
318
|
+
wasm.check_block_or_tx_signatures(retptr, ptr0, len0);
|
|
310
319
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
311
320
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
312
321
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -319,84 +328,52 @@ module.exports.cbor_to_json = function(cbor_hex) {
|
|
|
319
328
|
}
|
|
320
329
|
};
|
|
321
330
|
|
|
322
|
-
function _assertClass(instance, klass) {
|
|
323
|
-
if (!(instance instanceof klass)) {
|
|
324
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
325
|
-
}
|
|
326
|
-
return instance.ptr;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
330
|
-
ptr = ptr >>> 0;
|
|
331
|
-
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
335
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
336
|
-
getUint8Memory0().set(arg, ptr / 1);
|
|
337
|
-
WASM_VECTOR_LEN = arg.length;
|
|
338
|
-
return ptr;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
function getArrayU32FromWasm0(ptr, len) {
|
|
342
|
-
ptr = ptr >>> 0;
|
|
343
|
-
return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
|
|
344
|
-
}
|
|
345
331
|
/**
|
|
346
|
-
* @param {string}
|
|
347
|
-
* @param {string} salt
|
|
348
|
-
* @param {string} nonce
|
|
349
|
-
* @param {string} data
|
|
332
|
+
* @param {string} tx_hex
|
|
350
333
|
* @returns {string}
|
|
351
334
|
*/
|
|
352
|
-
module.exports.
|
|
353
|
-
let
|
|
354
|
-
let
|
|
335
|
+
module.exports.get_necessary_data_list_js = function(tx_hex) {
|
|
336
|
+
let deferred3_0;
|
|
337
|
+
let deferred3_1;
|
|
355
338
|
try {
|
|
356
339
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
357
|
-
const ptr0 = passStringToWasm0(
|
|
340
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
358
341
|
const len0 = WASM_VECTOR_LEN;
|
|
359
|
-
|
|
360
|
-
const len1 = WASM_VECTOR_LEN;
|
|
361
|
-
const ptr2 = passStringToWasm0(nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
362
|
-
const len2 = WASM_VECTOR_LEN;
|
|
363
|
-
const ptr3 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
364
|
-
const len3 = WASM_VECTOR_LEN;
|
|
365
|
-
wasm.encrypt_with_password(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
342
|
+
wasm.get_necessary_data_list_js(retptr, ptr0, len0);
|
|
366
343
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
367
344
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
368
345
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
369
346
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
370
|
-
var
|
|
371
|
-
var
|
|
347
|
+
var ptr2 = r0;
|
|
348
|
+
var len2 = r1;
|
|
372
349
|
if (r3) {
|
|
373
|
-
|
|
350
|
+
ptr2 = 0; len2 = 0;
|
|
374
351
|
throw takeObject(r2);
|
|
375
352
|
}
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
return getStringFromWasm0(
|
|
353
|
+
deferred3_0 = ptr2;
|
|
354
|
+
deferred3_1 = len2;
|
|
355
|
+
return getStringFromWasm0(ptr2, len2);
|
|
379
356
|
} finally {
|
|
380
357
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
381
|
-
wasm.__wbindgen_free(
|
|
358
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
382
359
|
}
|
|
383
360
|
};
|
|
384
361
|
|
|
385
362
|
/**
|
|
386
|
-
* @param {string}
|
|
387
|
-
* @param {string}
|
|
363
|
+
* @param {string} tx_hex
|
|
364
|
+
* @param {string} validation_context
|
|
388
365
|
* @returns {string}
|
|
389
366
|
*/
|
|
390
|
-
module.exports.
|
|
367
|
+
module.exports.validate_transaction_js = function(tx_hex, validation_context) {
|
|
391
368
|
let deferred4_0;
|
|
392
369
|
let deferred4_1;
|
|
393
370
|
try {
|
|
394
371
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
395
|
-
const ptr0 = passStringToWasm0(
|
|
372
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
396
373
|
const len0 = WASM_VECTOR_LEN;
|
|
397
|
-
const ptr1 = passStringToWasm0(
|
|
374
|
+
const ptr1 = passStringToWasm0(validation_context, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
398
375
|
const len1 = WASM_VECTOR_LEN;
|
|
399
|
-
wasm.
|
|
376
|
+
wasm.validate_transaction_js(retptr, ptr0, len0, ptr1, len1);
|
|
400
377
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
401
378
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
402
379
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -416,6 +393,126 @@ module.exports.decrypt_with_password = function(password, data) {
|
|
|
416
393
|
}
|
|
417
394
|
};
|
|
418
395
|
|
|
396
|
+
/**
|
|
397
|
+
* @param {string} hex
|
|
398
|
+
* @returns {any}
|
|
399
|
+
*/
|
|
400
|
+
module.exports.decode_plutus_program_uplc_json = function(hex) {
|
|
401
|
+
try {
|
|
402
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
403
|
+
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
404
|
+
const len0 = WASM_VECTOR_LEN;
|
|
405
|
+
wasm.decode_plutus_program_uplc_json(retptr, ptr0, len0);
|
|
406
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
407
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
408
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
409
|
+
if (r2) {
|
|
410
|
+
throw takeObject(r1);
|
|
411
|
+
}
|
|
412
|
+
return takeObject(r0);
|
|
413
|
+
} finally {
|
|
414
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
415
|
+
}
|
|
416
|
+
};
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* @param {string} hex
|
|
420
|
+
* @returns {string}
|
|
421
|
+
*/
|
|
422
|
+
module.exports.decode_plutus_program_pretty_uplc = function(hex) {
|
|
423
|
+
let deferred3_0;
|
|
424
|
+
let deferred3_1;
|
|
425
|
+
try {
|
|
426
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
427
|
+
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
428
|
+
const len0 = WASM_VECTOR_LEN;
|
|
429
|
+
wasm.decode_plutus_program_pretty_uplc(retptr, ptr0, len0);
|
|
430
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
431
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
432
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
433
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
434
|
+
var ptr2 = r0;
|
|
435
|
+
var len2 = r1;
|
|
436
|
+
if (r3) {
|
|
437
|
+
ptr2 = 0; len2 = 0;
|
|
438
|
+
throw takeObject(r2);
|
|
439
|
+
}
|
|
440
|
+
deferred3_0 = ptr2;
|
|
441
|
+
deferred3_1 = len2;
|
|
442
|
+
return getStringFromWasm0(ptr2, len2);
|
|
443
|
+
} finally {
|
|
444
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
445
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
446
|
+
}
|
|
447
|
+
};
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* @param {string} tx_hex
|
|
451
|
+
* @returns {(string)[]}
|
|
452
|
+
*/
|
|
453
|
+
module.exports.get_utxo_list_from_tx = function(tx_hex) {
|
|
454
|
+
try {
|
|
455
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
456
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
457
|
+
const len0 = WASM_VECTOR_LEN;
|
|
458
|
+
wasm.get_utxo_list_from_tx(retptr, ptr0, len0);
|
|
459
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
460
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
461
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
462
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
463
|
+
if (r3) {
|
|
464
|
+
throw takeObject(r2);
|
|
465
|
+
}
|
|
466
|
+
var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
467
|
+
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
|
468
|
+
return v2;
|
|
469
|
+
} finally {
|
|
470
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
471
|
+
}
|
|
472
|
+
};
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* @param {string} tx_hex
|
|
476
|
+
* @param {any} utxo_json
|
|
477
|
+
* @param {any} cost_models_json
|
|
478
|
+
* @returns {any}
|
|
479
|
+
*/
|
|
480
|
+
module.exports.execute_tx_scripts = function(tx_hex, utxo_json, cost_models_json) {
|
|
481
|
+
try {
|
|
482
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
483
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
484
|
+
const len0 = WASM_VECTOR_LEN;
|
|
485
|
+
wasm.execute_tx_scripts(retptr, ptr0, len0, addHeapObject(utxo_json), addHeapObject(cost_models_json));
|
|
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
|
+
}
|
|
419
516
|
/**
|
|
420
517
|
* @param {string} json
|
|
421
518
|
* @param {PlutusDatumSchema} schema
|
|
@@ -559,31 +656,6 @@ module.exports.decode_metadatum_to_json_str = function(metadatum, schema) {
|
|
|
559
656
|
}
|
|
560
657
|
};
|
|
561
658
|
|
|
562
|
-
/**
|
|
563
|
-
* @param {Address} address
|
|
564
|
-
* @param {TransactionUnspentOutputs} utxos
|
|
565
|
-
* @param {TransactionBuilderConfig} config
|
|
566
|
-
* @returns {TransactionBatchList}
|
|
567
|
-
*/
|
|
568
|
-
module.exports.create_send_all = function(address, utxos, config) {
|
|
569
|
-
try {
|
|
570
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
571
|
-
_assertClass(address, Address);
|
|
572
|
-
_assertClass(utxos, TransactionUnspentOutputs);
|
|
573
|
-
_assertClass(config, TransactionBuilderConfig);
|
|
574
|
-
wasm.create_send_all(retptr, address.__wbg_ptr, utxos.__wbg_ptr, config.__wbg_ptr);
|
|
575
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
576
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
577
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
578
|
-
if (r2) {
|
|
579
|
-
throw takeObject(r1);
|
|
580
|
-
}
|
|
581
|
-
return TransactionBatchList.__wrap(r0);
|
|
582
|
-
} finally {
|
|
583
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
584
|
-
}
|
|
585
|
-
};
|
|
586
|
-
|
|
587
659
|
/**
|
|
588
660
|
* @param {Transaction} tx
|
|
589
661
|
* @param {LinearFee} linear_fee
|
|
@@ -675,6 +747,11 @@ module.exports.min_ref_script_fee = function(total_ref_scripts_size, ref_script_
|
|
|
675
747
|
}
|
|
676
748
|
};
|
|
677
749
|
|
|
750
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
751
|
+
ptr = ptr >>> 0;
|
|
752
|
+
return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
|
|
753
|
+
}
|
|
754
|
+
|
|
678
755
|
function passArray32ToWasm0(arg, malloc) {
|
|
679
756
|
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
680
757
|
getUint32Memory0().set(arg, ptr / 4);
|
|
@@ -896,6 +973,105 @@ module.exports.has_transaction_set_tag = function(tx_bytes) {
|
|
|
896
973
|
}
|
|
897
974
|
};
|
|
898
975
|
|
|
976
|
+
/**
|
|
977
|
+
* @param {string} password
|
|
978
|
+
* @param {string} salt
|
|
979
|
+
* @param {string} nonce
|
|
980
|
+
* @param {string} data
|
|
981
|
+
* @returns {string}
|
|
982
|
+
*/
|
|
983
|
+
module.exports.encrypt_with_password = function(password, salt, nonce, data) {
|
|
984
|
+
let deferred6_0;
|
|
985
|
+
let deferred6_1;
|
|
986
|
+
try {
|
|
987
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
988
|
+
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
989
|
+
const len0 = WASM_VECTOR_LEN;
|
|
990
|
+
const ptr1 = passStringToWasm0(salt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
991
|
+
const len1 = WASM_VECTOR_LEN;
|
|
992
|
+
const ptr2 = passStringToWasm0(nonce, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
993
|
+
const len2 = WASM_VECTOR_LEN;
|
|
994
|
+
const ptr3 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
995
|
+
const len3 = WASM_VECTOR_LEN;
|
|
996
|
+
wasm.encrypt_with_password(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
997
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
998
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
999
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
1000
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
1001
|
+
var ptr5 = r0;
|
|
1002
|
+
var len5 = r1;
|
|
1003
|
+
if (r3) {
|
|
1004
|
+
ptr5 = 0; len5 = 0;
|
|
1005
|
+
throw takeObject(r2);
|
|
1006
|
+
}
|
|
1007
|
+
deferred6_0 = ptr5;
|
|
1008
|
+
deferred6_1 = len5;
|
|
1009
|
+
return getStringFromWasm0(ptr5, len5);
|
|
1010
|
+
} finally {
|
|
1011
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1012
|
+
wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
|
|
1013
|
+
}
|
|
1014
|
+
};
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* @param {string} password
|
|
1018
|
+
* @param {string} data
|
|
1019
|
+
* @returns {string}
|
|
1020
|
+
*/
|
|
1021
|
+
module.exports.decrypt_with_password = function(password, data) {
|
|
1022
|
+
let deferred4_0;
|
|
1023
|
+
let deferred4_1;
|
|
1024
|
+
try {
|
|
1025
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1026
|
+
const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1027
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1028
|
+
const ptr1 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1029
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1030
|
+
wasm.decrypt_with_password(retptr, ptr0, len0, ptr1, len1);
|
|
1031
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1032
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1033
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
1034
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
1035
|
+
var ptr3 = r0;
|
|
1036
|
+
var len3 = r1;
|
|
1037
|
+
if (r3) {
|
|
1038
|
+
ptr3 = 0; len3 = 0;
|
|
1039
|
+
throw takeObject(r2);
|
|
1040
|
+
}
|
|
1041
|
+
deferred4_0 = ptr3;
|
|
1042
|
+
deferred4_1 = len3;
|
|
1043
|
+
return getStringFromWasm0(ptr3, len3);
|
|
1044
|
+
} finally {
|
|
1045
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1046
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
1047
|
+
}
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* @param {Address} address
|
|
1052
|
+
* @param {TransactionUnspentOutputs} utxos
|
|
1053
|
+
* @param {TransactionBuilderConfig} config
|
|
1054
|
+
* @returns {TransactionBatchList}
|
|
1055
|
+
*/
|
|
1056
|
+
module.exports.create_send_all = function(address, utxos, config) {
|
|
1057
|
+
try {
|
|
1058
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1059
|
+
_assertClass(address, Address);
|
|
1060
|
+
_assertClass(utxos, TransactionUnspentOutputs);
|
|
1061
|
+
_assertClass(config, TransactionBuilderConfig);
|
|
1062
|
+
wasm.create_send_all(retptr, address.__wbg_ptr, utxos.__wbg_ptr, config.__wbg_ptr);
|
|
1063
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1064
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1065
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
1066
|
+
if (r2) {
|
|
1067
|
+
throw takeObject(r1);
|
|
1068
|
+
}
|
|
1069
|
+
return TransactionBatchList.__wrap(r0);
|
|
1070
|
+
} finally {
|
|
1071
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1072
|
+
}
|
|
1073
|
+
};
|
|
1074
|
+
|
|
899
1075
|
function handleError(f, args) {
|
|
900
1076
|
try {
|
|
901
1077
|
return f.apply(this, args);
|
|
@@ -905,16 +1081,53 @@ function handleError(f, args) {
|
|
|
905
1081
|
}
|
|
906
1082
|
/**
|
|
907
1083
|
*/
|
|
1084
|
+
module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1085
|
+
/**
|
|
1086
|
+
*/
|
|
1087
|
+
module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1088
|
+
/**
|
|
1089
|
+
*/
|
|
908
1090
|
module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
909
1091
|
/**
|
|
910
1092
|
*/
|
|
1093
|
+
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", });
|
|
1094
|
+
/**
|
|
1095
|
+
*/
|
|
1096
|
+
module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
|
|
1097
|
+
/**
|
|
1098
|
+
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1099
|
+
*/
|
|
1100
|
+
LargestFirst:0,"0":"LargestFirst",
|
|
1101
|
+
/**
|
|
1102
|
+
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1103
|
+
*/
|
|
1104
|
+
RandomImprove:1,"1":"RandomImprove",
|
|
1105
|
+
/**
|
|
1106
|
+
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1107
|
+
*/
|
|
1108
|
+
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
1109
|
+
/**
|
|
1110
|
+
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
1111
|
+
*/
|
|
1112
|
+
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1113
|
+
/**
|
|
1114
|
+
*/
|
|
911
1115
|
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", });
|
|
912
1116
|
/**
|
|
913
1117
|
*/
|
|
914
1118
|
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", });
|
|
915
1119
|
/**
|
|
916
1120
|
*/
|
|
917
|
-
module.exports.
|
|
1121
|
+
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", });
|
|
1122
|
+
/**
|
|
1123
|
+
*/
|
|
1124
|
+
module.exports.ByronAddressType = Object.freeze({ ATPubKey:0,"0":"ATPubKey",ATScript:1,"1":"ATScript",ATRedeem:2,"2":"ATRedeem", });
|
|
1125
|
+
/**
|
|
1126
|
+
*/
|
|
1127
|
+
module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1128
|
+
/**
|
|
1129
|
+
*/
|
|
1130
|
+
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", });
|
|
918
1131
|
/**
|
|
919
1132
|
* JSON <-> PlutusData conversion schemas.
|
|
920
1133
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
@@ -968,23 +1181,11 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
968
1181
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
969
1182
|
/**
|
|
970
1183
|
*/
|
|
971
|
-
module.exports.
|
|
1184
|
+
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", });
|
|
972
1185
|
/**
|
|
973
1186
|
*/
|
|
974
1187
|
module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
975
1188
|
/**
|
|
976
|
-
*/
|
|
977
|
-
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", });
|
|
978
|
-
/**
|
|
979
|
-
*/
|
|
980
|
-
module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
981
|
-
/**
|
|
982
|
-
*/
|
|
983
|
-
module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
984
|
-
/**
|
|
985
|
-
*/
|
|
986
|
-
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", });
|
|
987
|
-
/**
|
|
988
1189
|
* Each new language uses a different namespace for hashing its script
|
|
989
1190
|
* This is because you could have a language where the same bytes have different semantics
|
|
990
1191
|
* So this avoids scripts in different languages mapping to the same hash
|
|
@@ -993,60 +1194,38 @@ module.exports.BlockEra = Object.freeze({ Byron:0,"0":"Byron",Shelley:1,"1":"She
|
|
|
993
1194
|
module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
994
1195
|
/**
|
|
995
1196
|
*/
|
|
996
|
-
module.exports.
|
|
997
|
-
/**
|
|
998
|
-
*/
|
|
999
|
-
module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1000
|
-
/**
|
|
1001
|
-
*/
|
|
1002
|
-
module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1003
|
-
/**
|
|
1004
|
-
*/
|
|
1005
|
-
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", });
|
|
1197
|
+
module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1006
1198
|
/**
|
|
1007
1199
|
*/
|
|
1008
|
-
module.exports.
|
|
1200
|
+
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", });
|
|
1009
1201
|
/**
|
|
1010
1202
|
*/
|
|
1011
1203
|
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", });
|
|
1012
1204
|
/**
|
|
1013
|
-
* Used to choosed the schema for a script JSON string
|
|
1014
1205
|
*/
|
|
1015
|
-
module.exports.
|
|
1206
|
+
module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1016
1207
|
/**
|
|
1017
1208
|
*/
|
|
1018
1209
|
module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1019
1210
|
/**
|
|
1020
1211
|
*/
|
|
1021
|
-
module.exports.
|
|
1022
|
-
/**
|
|
1023
|
-
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1024
|
-
*/
|
|
1025
|
-
LargestFirst:0,"0":"LargestFirst",
|
|
1026
|
-
/**
|
|
1027
|
-
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
1028
|
-
*/
|
|
1029
|
-
RandomImprove:1,"1":"RandomImprove",
|
|
1030
|
-
/**
|
|
1031
|
-
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
1032
|
-
*/
|
|
1033
|
-
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
1212
|
+
module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
1034
1213
|
/**
|
|
1035
|
-
*
|
|
1214
|
+
* Used to choosed the schema for a script JSON string
|
|
1036
1215
|
*/
|
|
1037
|
-
|
|
1216
|
+
module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1038
1217
|
/**
|
|
1039
1218
|
*/
|
|
1040
|
-
module.exports.
|
|
1219
|
+
module.exports.TransactionSetsState = Object.freeze({ AllSetsHaveTag:0,"0":"AllSetsHaveTag",AllSetsHaveNoTag:1,"1":"AllSetsHaveNoTag",MixedSets:2,"2":"MixedSets", });
|
|
1041
1220
|
/**
|
|
1042
1221
|
*/
|
|
1043
|
-
module.exports.
|
|
1222
|
+
module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1044
1223
|
/**
|
|
1045
1224
|
*/
|
|
1046
|
-
module.exports.
|
|
1225
|
+
module.exports.CborContainerType = Object.freeze({ Array:0,"0":"Array",Map:1,"1":"Map", });
|
|
1047
1226
|
/**
|
|
1048
1227
|
*/
|
|
1049
|
-
module.exports.
|
|
1228
|
+
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", });
|
|
1050
1229
|
|
|
1051
1230
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1052
1231
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2254,7 +2433,7 @@ class Assets {
|
|
|
2254
2433
|
* @returns {number}
|
|
2255
2434
|
*/
|
|
2256
2435
|
len() {
|
|
2257
|
-
const ret = wasm.
|
|
2436
|
+
const ret = wasm.assets_len(this.__wbg_ptr);
|
|
2258
2437
|
return ret >>> 0;
|
|
2259
2438
|
}
|
|
2260
2439
|
/**
|
|
@@ -4908,6 +5087,13 @@ class ByronAddress {
|
|
|
4908
5087
|
return ret >>> 0;
|
|
4909
5088
|
}
|
|
4910
5089
|
/**
|
|
5090
|
+
* @returns {ByronAddressType}
|
|
5091
|
+
*/
|
|
5092
|
+
byron_address_kind() {
|
|
5093
|
+
const ret = wasm.byronaddress_byron_address_kind(this.__wbg_ptr);
|
|
5094
|
+
return ret;
|
|
5095
|
+
}
|
|
5096
|
+
/**
|
|
4911
5097
|
* @returns {Uint8Array}
|
|
4912
5098
|
*/
|
|
4913
5099
|
attributes() {
|
|
@@ -7781,14 +7967,14 @@ class Credentials {
|
|
|
7781
7967
|
* @returns {Credentials}
|
|
7782
7968
|
*/
|
|
7783
7969
|
static new() {
|
|
7784
|
-
const ret = wasm.
|
|
7970
|
+
const ret = wasm.credentials_new();
|
|
7785
7971
|
return Credentials.__wrap(ret);
|
|
7786
7972
|
}
|
|
7787
7973
|
/**
|
|
7788
7974
|
* @returns {number}
|
|
7789
7975
|
*/
|
|
7790
7976
|
len() {
|
|
7791
|
-
const ret = wasm.
|
|
7977
|
+
const ret = wasm.credentials_len(this.__wbg_ptr);
|
|
7792
7978
|
return ret >>> 0;
|
|
7793
7979
|
}
|
|
7794
7980
|
/**
|
|
@@ -8412,7 +8598,7 @@ class DRep {
|
|
|
8412
8598
|
*/
|
|
8413
8599
|
static new_key_hash(key_hash) {
|
|
8414
8600
|
_assertClass(key_hash, Ed25519KeyHash);
|
|
8415
|
-
const ret = wasm.
|
|
8601
|
+
const ret = wasm.drep_new_key_hash(key_hash.__wbg_ptr);
|
|
8416
8602
|
return DRep.__wrap(ret);
|
|
8417
8603
|
}
|
|
8418
8604
|
/**
|
|
@@ -8421,7 +8607,7 @@ class DRep {
|
|
|
8421
8607
|
*/
|
|
8422
8608
|
static new_script_hash(script_hash) {
|
|
8423
8609
|
_assertClass(script_hash, ScriptHash);
|
|
8424
|
-
const ret = wasm.
|
|
8610
|
+
const ret = wasm.drep_new_script_hash(script_hash.__wbg_ptr);
|
|
8425
8611
|
return DRep.__wrap(ret);
|
|
8426
8612
|
}
|
|
8427
8613
|
/**
|
|
@@ -8469,14 +8655,15 @@ class DRep {
|
|
|
8469
8655
|
return ret === 0 ? undefined : ScriptHash.__wrap(ret);
|
|
8470
8656
|
}
|
|
8471
8657
|
/**
|
|
8658
|
+
* @param {boolean} cip_129_format
|
|
8472
8659
|
* @returns {string}
|
|
8473
8660
|
*/
|
|
8474
|
-
to_bech32() {
|
|
8661
|
+
to_bech32(cip_129_format) {
|
|
8475
8662
|
let deferred2_0;
|
|
8476
8663
|
let deferred2_1;
|
|
8477
8664
|
try {
|
|
8478
8665
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8479
|
-
wasm.drep_to_bech32(retptr, this.__wbg_ptr);
|
|
8666
|
+
wasm.drep_to_bech32(retptr, this.__wbg_ptr, cip_129_format);
|
|
8480
8667
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
8481
8668
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
8482
8669
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -9430,7 +9617,7 @@ class DRepVotingThresholds {
|
|
|
9430
9617
|
* @returns {UnitInterval}
|
|
9431
9618
|
*/
|
|
9432
9619
|
motion_no_confidence() {
|
|
9433
|
-
const ret = wasm.
|
|
9620
|
+
const ret = wasm.drepvotingthresholds_motion_no_confidence(this.__wbg_ptr);
|
|
9434
9621
|
return UnitInterval.__wrap(ret);
|
|
9435
9622
|
}
|
|
9436
9623
|
/**
|
|
@@ -10078,14 +10265,14 @@ class Ed25519KeyHashes {
|
|
|
10078
10265
|
* @returns {Ed25519KeyHashes}
|
|
10079
10266
|
*/
|
|
10080
10267
|
static new() {
|
|
10081
|
-
const ret = wasm.
|
|
10268
|
+
const ret = wasm.credentials_new();
|
|
10082
10269
|
return Ed25519KeyHashes.__wrap(ret);
|
|
10083
10270
|
}
|
|
10084
10271
|
/**
|
|
10085
10272
|
* @returns {number}
|
|
10086
10273
|
*/
|
|
10087
10274
|
len() {
|
|
10088
|
-
const ret = wasm.
|
|
10275
|
+
const ret = wasm.credentials_len(this.__wbg_ptr);
|
|
10089
10276
|
return ret >>> 0;
|
|
10090
10277
|
}
|
|
10091
10278
|
/**
|
|
@@ -10514,7 +10701,7 @@ class ExUnitPrices {
|
|
|
10514
10701
|
* @returns {UnitInterval}
|
|
10515
10702
|
*/
|
|
10516
10703
|
mem_price() {
|
|
10517
|
-
const ret = wasm.
|
|
10704
|
+
const ret = wasm.committee_quorum_threshold(this.__wbg_ptr);
|
|
10518
10705
|
return UnitInterval.__wrap(ret);
|
|
10519
10706
|
}
|
|
10520
10707
|
/**
|
|
@@ -10711,7 +10898,7 @@ class ExUnits {
|
|
|
10711
10898
|
* @returns {BigNum}
|
|
10712
10899
|
*/
|
|
10713
10900
|
mem() {
|
|
10714
|
-
const ret = wasm.
|
|
10901
|
+
const ret = wasm.exunits_mem(this.__wbg_ptr);
|
|
10715
10902
|
return BigNum.__wrap(ret);
|
|
10716
10903
|
}
|
|
10717
10904
|
/**
|
|
@@ -12346,7 +12533,7 @@ class GenesisHashes {
|
|
|
12346
12533
|
* @returns {number}
|
|
12347
12534
|
*/
|
|
12348
12535
|
len() {
|
|
12349
|
-
const ret = wasm.
|
|
12536
|
+
const ret = wasm.genesishashes_len(this.__wbg_ptr);
|
|
12350
12537
|
return ret >>> 0;
|
|
12351
12538
|
}
|
|
12352
12539
|
/**
|
|
@@ -13178,7 +13365,7 @@ class GovernanceActionIds {
|
|
|
13178
13365
|
* @returns {number}
|
|
13179
13366
|
*/
|
|
13180
13367
|
len() {
|
|
13181
|
-
const ret = wasm.
|
|
13368
|
+
const ret = wasm.governanceactionids_len(this.__wbg_ptr);
|
|
13182
13369
|
return ret >>> 0;
|
|
13183
13370
|
}
|
|
13184
13371
|
}
|
|
@@ -16191,7 +16378,7 @@ class Mint {
|
|
|
16191
16378
|
* @returns {number}
|
|
16192
16379
|
*/
|
|
16193
16380
|
len() {
|
|
16194
|
-
const ret = wasm.
|
|
16381
|
+
const ret = wasm.mint_len(this.__wbg_ptr);
|
|
16195
16382
|
return ret >>> 0;
|
|
16196
16383
|
}
|
|
16197
16384
|
/**
|
|
@@ -16299,7 +16486,7 @@ class MintAssets {
|
|
|
16299
16486
|
* @returns {number}
|
|
16300
16487
|
*/
|
|
16301
16488
|
len() {
|
|
16302
|
-
const ret = wasm.
|
|
16489
|
+
const ret = wasm.assets_len(this.__wbg_ptr);
|
|
16303
16490
|
return ret >>> 0;
|
|
16304
16491
|
}
|
|
16305
16492
|
/**
|
|
@@ -17254,7 +17441,7 @@ class MultiAsset {
|
|
|
17254
17441
|
* @returns {number}
|
|
17255
17442
|
*/
|
|
17256
17443
|
len() {
|
|
17257
|
-
const ret = wasm.
|
|
17444
|
+
const ret = wasm.assets_len(this.__wbg_ptr);
|
|
17258
17445
|
return ret >>> 0;
|
|
17259
17446
|
}
|
|
17260
17447
|
/**
|
|
@@ -17917,7 +18104,7 @@ class NativeScripts {
|
|
|
17917
18104
|
* @returns {number}
|
|
17918
18105
|
*/
|
|
17919
18106
|
len() {
|
|
17920
|
-
const ret = wasm.
|
|
18107
|
+
const ret = wasm.nativescripts_len(this.__wbg_ptr);
|
|
17921
18108
|
return ret >>> 0;
|
|
17922
18109
|
}
|
|
17923
18110
|
/**
|
|
@@ -18520,7 +18707,7 @@ class NewConstitutionAction {
|
|
|
18520
18707
|
* @returns {GovernanceActionId | undefined}
|
|
18521
18708
|
*/
|
|
18522
18709
|
gov_action_id() {
|
|
18523
|
-
const ret = wasm.
|
|
18710
|
+
const ret = wasm.newconstitutionaction_gov_action_id(this.__wbg_ptr);
|
|
18524
18711
|
return ret === 0 ? undefined : GovernanceActionId.__wrap(ret);
|
|
18525
18712
|
}
|
|
18526
18713
|
/**
|
|
@@ -18733,7 +18920,7 @@ class NoConfidenceAction {
|
|
|
18733
18920
|
* @returns {GovernanceActionId | undefined}
|
|
18734
18921
|
*/
|
|
18735
18922
|
gov_action_id() {
|
|
18736
|
-
const ret = wasm.
|
|
18923
|
+
const ret = wasm.noconfidenceaction_gov_action_id(this.__wbg_ptr);
|
|
18737
18924
|
return ret === 0 ? undefined : GovernanceActionId.__wrap(ret);
|
|
18738
18925
|
}
|
|
18739
18926
|
/**
|
|
@@ -19916,7 +20103,7 @@ class PlutusList {
|
|
|
19916
20103
|
* @returns {number}
|
|
19917
20104
|
*/
|
|
19918
20105
|
len() {
|
|
19919
|
-
const ret = wasm.
|
|
20106
|
+
const ret = wasm.plutuslist_len(this.__wbg_ptr);
|
|
19920
20107
|
return ret >>> 0;
|
|
19921
20108
|
}
|
|
19922
20109
|
/**
|
|
@@ -20117,14 +20304,14 @@ class PlutusMapValues {
|
|
|
20117
20304
|
* @returns {PlutusMapValues}
|
|
20118
20305
|
*/
|
|
20119
20306
|
static new() {
|
|
20120
|
-
const ret = wasm.
|
|
20307
|
+
const ret = wasm.plutusmapvalues_new();
|
|
20121
20308
|
return PlutusMapValues.__wrap(ret);
|
|
20122
20309
|
}
|
|
20123
20310
|
/**
|
|
20124
20311
|
* @returns {number}
|
|
20125
20312
|
*/
|
|
20126
20313
|
len() {
|
|
20127
|
-
const ret = wasm.
|
|
20314
|
+
const ret = wasm.plutuslist_len(this.__wbg_ptr);
|
|
20128
20315
|
return ret >>> 0;
|
|
20129
20316
|
}
|
|
20130
20317
|
/**
|
|
@@ -20841,7 +21028,7 @@ class PlutusWitnesses {
|
|
|
20841
21028
|
* @returns {PlutusWitnesses}
|
|
20842
21029
|
*/
|
|
20843
21030
|
static new() {
|
|
20844
|
-
const ret = wasm.
|
|
21031
|
+
const ret = wasm.fixedtransactionbodies_new();
|
|
20845
21032
|
return PlutusWitnesses.__wrap(ret);
|
|
20846
21033
|
}
|
|
20847
21034
|
/**
|
|
@@ -20993,7 +21180,7 @@ class Pointer {
|
|
|
20993
21180
|
* @returns {BigNum}
|
|
20994
21181
|
*/
|
|
20995
21182
|
cert_index_bignum() {
|
|
20996
|
-
const ret = wasm.
|
|
21183
|
+
const ret = wasm.pointer_cert_index_bignum(this.__wbg_ptr);
|
|
20997
21184
|
return BigNum.__wrap(ret);
|
|
20998
21185
|
}
|
|
20999
21186
|
}
|
|
@@ -22269,7 +22456,7 @@ class PoolVotingThresholds {
|
|
|
22269
22456
|
* @returns {UnitInterval}
|
|
22270
22457
|
*/
|
|
22271
22458
|
motion_no_confidence() {
|
|
22272
|
-
const ret = wasm.
|
|
22459
|
+
const ret = wasm.drepvotingthresholds_motion_no_confidence(this.__wbg_ptr);
|
|
22273
22460
|
return UnitInterval.__wrap(ret);
|
|
22274
22461
|
}
|
|
22275
22462
|
/**
|
|
@@ -23836,7 +24023,7 @@ class PublicKeys {
|
|
|
23836
24023
|
/**
|
|
23837
24024
|
*/
|
|
23838
24025
|
constructor() {
|
|
23839
|
-
const ret = wasm.
|
|
24026
|
+
const ret = wasm.publickeys_new();
|
|
23840
24027
|
this.__wbg_ptr = ret >>> 0;
|
|
23841
24028
|
return this;
|
|
23842
24029
|
}
|
|
@@ -23844,7 +24031,7 @@ class PublicKeys {
|
|
|
23844
24031
|
* @returns {number}
|
|
23845
24032
|
*/
|
|
23846
24033
|
size() {
|
|
23847
|
-
const ret = wasm.
|
|
24034
|
+
const ret = wasm.publickeys_size(this.__wbg_ptr);
|
|
23848
24035
|
return ret >>> 0;
|
|
23849
24036
|
}
|
|
23850
24037
|
/**
|
|
@@ -24481,7 +24668,7 @@ class Redeemers {
|
|
|
24481
24668
|
* @returns {number}
|
|
24482
24669
|
*/
|
|
24483
24670
|
len() {
|
|
24484
|
-
const ret = wasm.
|
|
24671
|
+
const ret = wasm.redeemers_len(this.__wbg_ptr);
|
|
24485
24672
|
return ret >>> 0;
|
|
24486
24673
|
}
|
|
24487
24674
|
/**
|
|
@@ -25205,7 +25392,7 @@ class RewardAddresses {
|
|
|
25205
25392
|
* @returns {number}
|
|
25206
25393
|
*/
|
|
25207
25394
|
len() {
|
|
25208
|
-
const ret = wasm.
|
|
25395
|
+
const ret = wasm.rewardaddresses_len(this.__wbg_ptr);
|
|
25209
25396
|
return ret >>> 0;
|
|
25210
25397
|
}
|
|
25211
25398
|
/**
|
|
@@ -26096,7 +26283,7 @@ class ScriptHashes {
|
|
|
26096
26283
|
* @returns {number}
|
|
26097
26284
|
*/
|
|
26098
26285
|
len() {
|
|
26099
|
-
const ret = wasm.
|
|
26286
|
+
const ret = wasm.genesishashes_len(this.__wbg_ptr);
|
|
26100
26287
|
return ret >>> 0;
|
|
26101
26288
|
}
|
|
26102
26289
|
/**
|
|
@@ -27533,7 +27720,7 @@ class StakeDelegation {
|
|
|
27533
27720
|
* @returns {Credential}
|
|
27534
27721
|
*/
|
|
27535
27722
|
stake_credential() {
|
|
27536
|
-
const ret = wasm.
|
|
27723
|
+
const ret = wasm.stakedelegation_stake_credential(this.__wbg_ptr);
|
|
27537
27724
|
return Credential.__wrap(ret);
|
|
27538
27725
|
}
|
|
27539
27726
|
/**
|
|
@@ -27558,7 +27745,7 @@ class StakeDelegation {
|
|
|
27558
27745
|
* @returns {boolean}
|
|
27559
27746
|
*/
|
|
27560
27747
|
has_script_credentials() {
|
|
27561
|
-
const ret = wasm.
|
|
27748
|
+
const ret = wasm.stakedelegation_has_script_credentials(this.__wbg_ptr);
|
|
27562
27749
|
return ret !== 0;
|
|
27563
27750
|
}
|
|
27564
27751
|
}
|
|
@@ -27950,14 +28137,14 @@ class StakeRegistration {
|
|
|
27950
28137
|
* @returns {Credential}
|
|
27951
28138
|
*/
|
|
27952
28139
|
stake_credential() {
|
|
27953
|
-
const ret = wasm.
|
|
28140
|
+
const ret = wasm.stakeregistration_stake_credential(this.__wbg_ptr);
|
|
27954
28141
|
return Credential.__wrap(ret);
|
|
27955
28142
|
}
|
|
27956
28143
|
/**
|
|
27957
28144
|
* @returns {BigNum | undefined}
|
|
27958
28145
|
*/
|
|
27959
28146
|
coin() {
|
|
27960
|
-
const ret = wasm.
|
|
28147
|
+
const ret = wasm.stakeregistration_coin(this.__wbg_ptr);
|
|
27961
28148
|
return ret === 0 ? undefined : BigNum.__wrap(ret);
|
|
27962
28149
|
}
|
|
27963
28150
|
/**
|
|
@@ -27966,7 +28153,7 @@ class StakeRegistration {
|
|
|
27966
28153
|
*/
|
|
27967
28154
|
static new(stake_credential) {
|
|
27968
28155
|
_assertClass(stake_credential, Credential);
|
|
27969
|
-
const ret = wasm.
|
|
28156
|
+
const ret = wasm.stakeregistration_new(stake_credential.__wbg_ptr);
|
|
27970
28157
|
return StakeRegistration.__wrap(ret);
|
|
27971
28158
|
}
|
|
27972
28159
|
/**
|
|
@@ -27977,14 +28164,14 @@ class StakeRegistration {
|
|
|
27977
28164
|
static new_with_explicit_deposit(stake_credential, coin) {
|
|
27978
28165
|
_assertClass(stake_credential, Credential);
|
|
27979
28166
|
_assertClass(coin, BigNum);
|
|
27980
|
-
const ret = wasm.
|
|
28167
|
+
const ret = wasm.stakeregistration_new_with_explicit_deposit(stake_credential.__wbg_ptr, coin.__wbg_ptr);
|
|
27981
28168
|
return StakeRegistration.__wrap(ret);
|
|
27982
28169
|
}
|
|
27983
28170
|
/**
|
|
27984
28171
|
* @returns {boolean}
|
|
27985
28172
|
*/
|
|
27986
28173
|
has_script_credentials() {
|
|
27987
|
-
const ret = wasm.
|
|
28174
|
+
const ret = wasm.stakeregistration_has_script_credentials(this.__wbg_ptr);
|
|
27988
28175
|
return ret !== 0;
|
|
27989
28176
|
}
|
|
27990
28177
|
}
|
|
@@ -28177,7 +28364,7 @@ class StakeRegistrationAndDelegation {
|
|
|
28177
28364
|
* @returns {BigNum}
|
|
28178
28365
|
*/
|
|
28179
28366
|
coin() {
|
|
28180
|
-
const ret = wasm.
|
|
28367
|
+
const ret = wasm.drepderegistration_coin(this.__wbg_ptr);
|
|
28181
28368
|
return BigNum.__wrap(ret);
|
|
28182
28369
|
}
|
|
28183
28370
|
/**
|
|
@@ -28383,7 +28570,7 @@ class StakeVoteRegistrationAndDelegation {
|
|
|
28383
28570
|
* @returns {Ed25519KeyHash}
|
|
28384
28571
|
*/
|
|
28385
28572
|
pool_keyhash() {
|
|
28386
|
-
const ret = wasm.
|
|
28573
|
+
const ret = wasm.stakevoteregistrationanddelegation_pool_keyhash(this.__wbg_ptr);
|
|
28387
28574
|
return Ed25519KeyHash.__wrap(ret);
|
|
28388
28575
|
}
|
|
28389
28576
|
/**
|
|
@@ -28397,7 +28584,7 @@ class StakeVoteRegistrationAndDelegation {
|
|
|
28397
28584
|
* @returns {BigNum}
|
|
28398
28585
|
*/
|
|
28399
28586
|
coin() {
|
|
28400
|
-
const ret = wasm.
|
|
28587
|
+
const ret = wasm.stakevoteregistrationanddelegation_coin(this.__wbg_ptr);
|
|
28401
28588
|
return BigNum.__wrap(ret);
|
|
28402
28589
|
}
|
|
28403
28590
|
/**
|
|
@@ -28462,7 +28649,7 @@ class Strings {
|
|
|
28462
28649
|
* @returns {number}
|
|
28463
28650
|
*/
|
|
28464
28651
|
len() {
|
|
28465
|
-
const ret = wasm.
|
|
28652
|
+
const ret = wasm.strings_len(this.__wbg_ptr);
|
|
28466
28653
|
return ret >>> 0;
|
|
28467
28654
|
}
|
|
28468
28655
|
/**
|
|
@@ -28687,7 +28874,7 @@ class TimelockExpiry {
|
|
|
28687
28874
|
* @returns {BigNum}
|
|
28688
28875
|
*/
|
|
28689
28876
|
slot_bignum() {
|
|
28690
|
-
const ret = wasm.
|
|
28877
|
+
const ret = wasm.linearfee_constant(this.__wbg_ptr);
|
|
28691
28878
|
return BigNum.__wrap(ret);
|
|
28692
28879
|
}
|
|
28693
28880
|
/**
|
|
@@ -28908,7 +29095,7 @@ class TimelockStart {
|
|
|
28908
29095
|
* @returns {BigNum}
|
|
28909
29096
|
*/
|
|
28910
29097
|
slot_bignum() {
|
|
28911
|
-
const ret = wasm.
|
|
29098
|
+
const ret = wasm.linearfee_constant(this.__wbg_ptr);
|
|
28912
29099
|
return BigNum.__wrap(ret);
|
|
28913
29100
|
}
|
|
28914
29101
|
/**
|
|
@@ -29231,7 +29418,7 @@ class TransactionBatchList {
|
|
|
29231
29418
|
* @returns {number}
|
|
29232
29419
|
*/
|
|
29233
29420
|
len() {
|
|
29234
|
-
const ret = wasm.
|
|
29421
|
+
const ret = wasm.transactionbatchlist_len(this.__wbg_ptr);
|
|
29235
29422
|
return ret >>> 0;
|
|
29236
29423
|
}
|
|
29237
29424
|
/**
|
|
@@ -29425,7 +29612,7 @@ class TransactionBodies {
|
|
|
29425
29612
|
* @returns {number}
|
|
29426
29613
|
*/
|
|
29427
29614
|
len() {
|
|
29428
|
-
const ret = wasm.
|
|
29615
|
+
const ret = wasm.transactionbodies_len(this.__wbg_ptr);
|
|
29429
29616
|
return ret >>> 0;
|
|
29430
29617
|
}
|
|
29431
29618
|
/**
|
|
@@ -31275,6 +31462,16 @@ class TransactionBuilderConfigBuilder {
|
|
|
31275
31462
|
return TransactionBuilderConfigBuilder.__wrap(ret);
|
|
31276
31463
|
}
|
|
31277
31464
|
/**
|
|
31465
|
+
*If set to true, the transaction builder will not burn extra change if it's impossible to crate change output
|
|
31466
|
+
*due to the value being too small to cover min ada for change output. Instead, tx builder will throw an error.
|
|
31467
|
+
* @param {boolean} do_not_burn_extra_change
|
|
31468
|
+
* @returns {TransactionBuilderConfigBuilder}
|
|
31469
|
+
*/
|
|
31470
|
+
do_not_burn_extra_change(do_not_burn_extra_change) {
|
|
31471
|
+
const ret = wasm.transactionbuilderconfigbuilder_do_not_burn_extra_change(this.__wbg_ptr, do_not_burn_extra_change);
|
|
31472
|
+
return TransactionBuilderConfigBuilder.__wrap(ret);
|
|
31473
|
+
}
|
|
31474
|
+
/**
|
|
31278
31475
|
* @returns {TransactionBuilderConfig}
|
|
31279
31476
|
*/
|
|
31280
31477
|
build() {
|
|
@@ -31828,7 +32025,7 @@ class TransactionInputs {
|
|
|
31828
32025
|
* @returns {number}
|
|
31829
32026
|
*/
|
|
31830
32027
|
len() {
|
|
31831
|
-
const ret = wasm.
|
|
32028
|
+
const ret = wasm.transactioninputs_len(this.__wbg_ptr);
|
|
31832
32029
|
return ret >>> 0;
|
|
31833
32030
|
}
|
|
31834
32031
|
/**
|
|
@@ -32036,7 +32233,7 @@ class TransactionMetadatum {
|
|
|
32036
32233
|
* @returns {TransactionMetadatumKind}
|
|
32037
32234
|
*/
|
|
32038
32235
|
kind() {
|
|
32039
|
-
const ret = wasm.
|
|
32236
|
+
const ret = wasm.transactionmetadatum_kind(this.__wbg_ptr);
|
|
32040
32237
|
return ret;
|
|
32041
32238
|
}
|
|
32042
32239
|
/**
|
|
@@ -32251,14 +32448,14 @@ class TransactionMetadatumLabels {
|
|
|
32251
32448
|
* @returns {TransactionMetadatumLabels}
|
|
32252
32449
|
*/
|
|
32253
32450
|
static new() {
|
|
32254
|
-
const ret = wasm.
|
|
32451
|
+
const ret = wasm.plutusmapvalues_new();
|
|
32255
32452
|
return TransactionMetadatumLabels.__wrap(ret);
|
|
32256
32453
|
}
|
|
32257
32454
|
/**
|
|
32258
32455
|
* @returns {number}
|
|
32259
32456
|
*/
|
|
32260
32457
|
len() {
|
|
32261
|
-
const ret = wasm.
|
|
32458
|
+
const ret = wasm.transactionmetadatumlabels_len(this.__wbg_ptr);
|
|
32262
32459
|
return ret >>> 0;
|
|
32263
32460
|
}
|
|
32264
32461
|
/**
|
|
@@ -32919,7 +33116,7 @@ class TransactionOutputs {
|
|
|
32919
33116
|
* @returns {number}
|
|
32920
33117
|
*/
|
|
32921
33118
|
len() {
|
|
32922
|
-
const ret = wasm.
|
|
33119
|
+
const ret = wasm.transactionoutputs_len(this.__wbg_ptr);
|
|
32923
33120
|
return ret >>> 0;
|
|
32924
33121
|
}
|
|
32925
33122
|
/**
|
|
@@ -33455,7 +33652,7 @@ class TransactionWitnessSet {
|
|
|
33455
33652
|
* @returns {NativeScripts | undefined}
|
|
33456
33653
|
*/
|
|
33457
33654
|
native_scripts() {
|
|
33458
|
-
const ret = wasm.
|
|
33655
|
+
const ret = wasm.transactionwitnessset_native_scripts(this.__wbg_ptr);
|
|
33459
33656
|
return ret === 0 ? undefined : NativeScripts.__wrap(ret);
|
|
33460
33657
|
}
|
|
33461
33658
|
/**
|
|
@@ -33704,7 +33901,7 @@ class TransactionWitnessSets {
|
|
|
33704
33901
|
* @returns {number}
|
|
33705
33902
|
*/
|
|
33706
33903
|
len() {
|
|
33707
|
-
const ret = wasm.
|
|
33904
|
+
const ret = wasm.transactionwitnesssets_len(this.__wbg_ptr);
|
|
33708
33905
|
return ret >>> 0;
|
|
33709
33906
|
}
|
|
33710
33907
|
/**
|
|
@@ -33853,7 +34050,7 @@ class TreasuryWithdrawals {
|
|
|
33853
34050
|
* @returns {number}
|
|
33854
34051
|
*/
|
|
33855
34052
|
len() {
|
|
33856
|
-
const ret = wasm.
|
|
34053
|
+
const ret = wasm.treasurywithdrawals_len(this.__wbg_ptr);
|
|
33857
34054
|
return ret >>> 0;
|
|
33858
34055
|
}
|
|
33859
34056
|
}
|
|
@@ -34065,55 +34262,6 @@ class TreasuryWithdrawalsAction {
|
|
|
34065
34262
|
}
|
|
34066
34263
|
module.exports.TreasuryWithdrawalsAction = TreasuryWithdrawalsAction;
|
|
34067
34264
|
|
|
34068
|
-
const TxBuilderConstantsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
34069
|
-
? { register: () => {}, unregister: () => {} }
|
|
34070
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_txbuilderconstants_free(ptr >>> 0));
|
|
34071
|
-
/**
|
|
34072
|
-
*/
|
|
34073
|
-
class TxBuilderConstants {
|
|
34074
|
-
|
|
34075
|
-
__destroy_into_raw() {
|
|
34076
|
-
const ptr = this.__wbg_ptr;
|
|
34077
|
-
this.__wbg_ptr = 0;
|
|
34078
|
-
TxBuilderConstantsFinalization.unregister(this);
|
|
34079
|
-
return ptr;
|
|
34080
|
-
}
|
|
34081
|
-
|
|
34082
|
-
free() {
|
|
34083
|
-
const ptr = this.__destroy_into_raw();
|
|
34084
|
-
wasm.__wbg_txbuilderconstants_free(ptr);
|
|
34085
|
-
}
|
|
34086
|
-
/**
|
|
34087
|
-
* @returns {Costmdls}
|
|
34088
|
-
*/
|
|
34089
|
-
static plutus_default_cost_models() {
|
|
34090
|
-
const ret = wasm.txbuilderconstants_plutus_default_cost_models();
|
|
34091
|
-
return Costmdls.__wrap(ret);
|
|
34092
|
-
}
|
|
34093
|
-
/**
|
|
34094
|
-
* @returns {Costmdls}
|
|
34095
|
-
*/
|
|
34096
|
-
static plutus_alonzo_cost_models() {
|
|
34097
|
-
const ret = wasm.txbuilderconstants_plutus_alonzo_cost_models();
|
|
34098
|
-
return Costmdls.__wrap(ret);
|
|
34099
|
-
}
|
|
34100
|
-
/**
|
|
34101
|
-
* @returns {Costmdls}
|
|
34102
|
-
*/
|
|
34103
|
-
static plutus_vasil_cost_models() {
|
|
34104
|
-
const ret = wasm.txbuilderconstants_plutus_default_cost_models();
|
|
34105
|
-
return Costmdls.__wrap(ret);
|
|
34106
|
-
}
|
|
34107
|
-
/**
|
|
34108
|
-
* @returns {Costmdls}
|
|
34109
|
-
*/
|
|
34110
|
-
static plutus_conway_cost_models() {
|
|
34111
|
-
const ret = wasm.txbuilderconstants_plutus_conway_cost_models();
|
|
34112
|
-
return Costmdls.__wrap(ret);
|
|
34113
|
-
}
|
|
34114
|
-
}
|
|
34115
|
-
module.exports.TxBuilderConstants = TxBuilderConstants;
|
|
34116
|
-
|
|
34117
34265
|
const TxInputsBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
34118
34266
|
? { register: () => {}, unregister: () => {} }
|
|
34119
34267
|
: new FinalizationRegistry(ptr => wasm.__wbg_txinputsbuilder_free(ptr >>> 0));
|
|
@@ -34148,6 +34296,61 @@ class TxInputsBuilder {
|
|
|
34148
34296
|
return TxInputsBuilder.__wrap(ret);
|
|
34149
34297
|
}
|
|
34150
34298
|
/**
|
|
34299
|
+
* @param {TransactionUnspentOutput} utxo
|
|
34300
|
+
*/
|
|
34301
|
+
add_regular_utxo(utxo) {
|
|
34302
|
+
try {
|
|
34303
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
34304
|
+
_assertClass(utxo, TransactionUnspentOutput);
|
|
34305
|
+
wasm.txinputsbuilder_add_regular_utxo(retptr, this.__wbg_ptr, utxo.__wbg_ptr);
|
|
34306
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
34307
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
34308
|
+
if (r1) {
|
|
34309
|
+
throw takeObject(r0);
|
|
34310
|
+
}
|
|
34311
|
+
} finally {
|
|
34312
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
34313
|
+
}
|
|
34314
|
+
}
|
|
34315
|
+
/**
|
|
34316
|
+
* @param {TransactionUnspentOutput} utxo
|
|
34317
|
+
* @param {PlutusWitness} witness
|
|
34318
|
+
*/
|
|
34319
|
+
add_plutus_script_utxo(utxo, witness) {
|
|
34320
|
+
try {
|
|
34321
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
34322
|
+
_assertClass(utxo, TransactionUnspentOutput);
|
|
34323
|
+
_assertClass(witness, PlutusWitness);
|
|
34324
|
+
wasm.txinputsbuilder_add_plutus_script_utxo(retptr, this.__wbg_ptr, utxo.__wbg_ptr, witness.__wbg_ptr);
|
|
34325
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
34326
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
34327
|
+
if (r1) {
|
|
34328
|
+
throw takeObject(r0);
|
|
34329
|
+
}
|
|
34330
|
+
} finally {
|
|
34331
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
34332
|
+
}
|
|
34333
|
+
}
|
|
34334
|
+
/**
|
|
34335
|
+
* @param {TransactionUnspentOutput} utxo
|
|
34336
|
+
* @param {NativeScriptSource} witness
|
|
34337
|
+
*/
|
|
34338
|
+
add_native_script_utxo(utxo, witness) {
|
|
34339
|
+
try {
|
|
34340
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
34341
|
+
_assertClass(utxo, TransactionUnspentOutput);
|
|
34342
|
+
_assertClass(witness, NativeScriptSource);
|
|
34343
|
+
wasm.txinputsbuilder_add_native_script_utxo(retptr, this.__wbg_ptr, utxo.__wbg_ptr, witness.__wbg_ptr);
|
|
34344
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
34345
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
34346
|
+
if (r1) {
|
|
34347
|
+
throw takeObject(r0);
|
|
34348
|
+
}
|
|
34349
|
+
} finally {
|
|
34350
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
34351
|
+
}
|
|
34352
|
+
}
|
|
34353
|
+
/**
|
|
34151
34354
|
* We have to know what kind of inputs these are to know what kind of mock witnesses to create since
|
|
34152
34355
|
* 1) mock witnesses have different lengths depending on the type which changes the expecting fee
|
|
34153
34356
|
* 2) Witnesses are a set so we need to get rid of duplicates to avoid over-estimating the fee
|
|
@@ -34690,7 +34893,7 @@ class UnitInterval {
|
|
|
34690
34893
|
* @returns {BigNum}
|
|
34691
34894
|
*/
|
|
34692
34895
|
denominator() {
|
|
34693
|
-
const ret = wasm.
|
|
34896
|
+
const ret = wasm.unitinterval_denominator(this.__wbg_ptr);
|
|
34694
34897
|
return BigNum.__wrap(ret);
|
|
34695
34898
|
}
|
|
34696
34899
|
/**
|
|
@@ -34701,7 +34904,7 @@ class UnitInterval {
|
|
|
34701
34904
|
static new(numerator, denominator) {
|
|
34702
34905
|
_assertClass(numerator, BigNum);
|
|
34703
34906
|
_assertClass(denominator, BigNum);
|
|
34704
|
-
const ret = wasm.
|
|
34907
|
+
const ret = wasm.unitinterval_new(numerator.__wbg_ptr, denominator.__wbg_ptr);
|
|
34705
34908
|
return UnitInterval.__wrap(ret);
|
|
34706
34909
|
}
|
|
34707
34910
|
}
|
|
@@ -36379,14 +36582,14 @@ class Vkeys {
|
|
|
36379
36582
|
* @returns {Vkeys}
|
|
36380
36583
|
*/
|
|
36381
36584
|
static new() {
|
|
36382
|
-
const ret = wasm.
|
|
36585
|
+
const ret = wasm.languages_new();
|
|
36383
36586
|
return Vkeys.__wrap(ret);
|
|
36384
36587
|
}
|
|
36385
36588
|
/**
|
|
36386
36589
|
* @returns {number}
|
|
36387
36590
|
*/
|
|
36388
36591
|
len() {
|
|
36389
|
-
const ret = wasm.
|
|
36592
|
+
const ret = wasm.vkeys_len(this.__wbg_ptr);
|
|
36390
36593
|
return ret >>> 0;
|
|
36391
36594
|
}
|
|
36392
36595
|
/**
|
|
@@ -36598,7 +36801,7 @@ class Vkeywitness {
|
|
|
36598
36801
|
* @returns {Ed25519Signature}
|
|
36599
36802
|
*/
|
|
36600
36803
|
signature() {
|
|
36601
|
-
const ret = wasm.
|
|
36804
|
+
const ret = wasm.operationalcert_sigma(this.__wbg_ptr);
|
|
36602
36805
|
return Ed25519Signature.__wrap(ret);
|
|
36603
36806
|
}
|
|
36604
36807
|
}
|
|
@@ -36982,14 +37185,14 @@ class VoteDelegation {
|
|
|
36982
37185
|
* @returns {Credential}
|
|
36983
37186
|
*/
|
|
36984
37187
|
stake_credential() {
|
|
36985
|
-
const ret = wasm.
|
|
37188
|
+
const ret = wasm.stakeandvotedelegation_stake_credential(this.__wbg_ptr);
|
|
36986
37189
|
return Credential.__wrap(ret);
|
|
36987
37190
|
}
|
|
36988
37191
|
/**
|
|
36989
37192
|
* @returns {DRep}
|
|
36990
37193
|
*/
|
|
36991
37194
|
drep() {
|
|
36992
|
-
const ret = wasm.
|
|
37195
|
+
const ret = wasm.stakeandvotedelegation_drep(this.__wbg_ptr);
|
|
36993
37196
|
return DRep.__wrap(ret);
|
|
36994
37197
|
}
|
|
36995
37198
|
/**
|
|
@@ -37007,7 +37210,7 @@ class VoteDelegation {
|
|
|
37007
37210
|
* @returns {boolean}
|
|
37008
37211
|
*/
|
|
37009
37212
|
has_script_credentials() {
|
|
37010
|
-
const ret = wasm.
|
|
37213
|
+
const ret = wasm.stakeandvotedelegation_has_script_credentials(this.__wbg_ptr);
|
|
37011
37214
|
return ret !== 0;
|
|
37012
37215
|
}
|
|
37013
37216
|
}
|
|
@@ -37200,7 +37403,7 @@ class VoteRegistrationAndDelegation {
|
|
|
37200
37403
|
* @returns {BigNum}
|
|
37201
37404
|
*/
|
|
37202
37405
|
coin() {
|
|
37203
|
-
const ret = wasm.
|
|
37406
|
+
const ret = wasm.stakevoteregistrationanddelegation_coin(this.__wbg_ptr);
|
|
37204
37407
|
return BigNum.__wrap(ret);
|
|
37205
37408
|
}
|
|
37206
37409
|
/**
|
|
@@ -37563,7 +37766,7 @@ class Voters {
|
|
|
37563
37766
|
* @returns {Voters}
|
|
37564
37767
|
*/
|
|
37565
37768
|
static new() {
|
|
37566
|
-
const ret = wasm.
|
|
37769
|
+
const ret = wasm.voters_new();
|
|
37567
37770
|
return Voters.__wrap(ret);
|
|
37568
37771
|
}
|
|
37569
37772
|
/**
|
|
@@ -37585,7 +37788,7 @@ class Voters {
|
|
|
37585
37788
|
* @returns {number}
|
|
37586
37789
|
*/
|
|
37587
37790
|
len() {
|
|
37588
|
-
const ret = wasm.
|
|
37791
|
+
const ret = wasm.voters_len(this.__wbg_ptr);
|
|
37589
37792
|
return ret >>> 0;
|
|
37590
37793
|
}
|
|
37591
37794
|
}
|
|
@@ -37621,7 +37824,7 @@ class VotingBuilder {
|
|
|
37621
37824
|
* @returns {VotingBuilder}
|
|
37622
37825
|
*/
|
|
37623
37826
|
static new() {
|
|
37624
|
-
const ret = wasm.
|
|
37827
|
+
const ret = wasm.votingbuilder_new();
|
|
37625
37828
|
return VotingBuilder.__wrap(ret);
|
|
37626
37829
|
}
|
|
37627
37830
|
/**
|
|
@@ -38106,7 +38309,7 @@ class VotingProcedures {
|
|
|
38106
38309
|
* @returns {VotingProcedures}
|
|
38107
38310
|
*/
|
|
38108
38311
|
static new() {
|
|
38109
|
-
const ret = wasm.
|
|
38312
|
+
const ret = wasm.votingbuilder_new();
|
|
38110
38313
|
return VotingProcedures.__wrap(ret);
|
|
38111
38314
|
}
|
|
38112
38315
|
/**
|
|
@@ -38395,7 +38598,7 @@ class VotingProposalBuilder {
|
|
|
38395
38598
|
* @returns {VotingProposalBuilder}
|
|
38396
38599
|
*/
|
|
38397
38600
|
static new() {
|
|
38398
|
-
const ret = wasm.
|
|
38601
|
+
const ret = wasm.votingbuilder_new();
|
|
38399
38602
|
return VotingProposalBuilder.__wrap(ret);
|
|
38400
38603
|
}
|
|
38401
38604
|
/**
|
|
@@ -38638,14 +38841,14 @@ class VotingProposals {
|
|
|
38638
38841
|
* @returns {VotingProposals}
|
|
38639
38842
|
*/
|
|
38640
38843
|
static new() {
|
|
38641
|
-
const ret = wasm.
|
|
38844
|
+
const ret = wasm.credentials_new();
|
|
38642
38845
|
return VotingProposals.__wrap(ret);
|
|
38643
38846
|
}
|
|
38644
38847
|
/**
|
|
38645
38848
|
* @returns {number}
|
|
38646
38849
|
*/
|
|
38647
38850
|
len() {
|
|
38648
|
-
const ret = wasm.
|
|
38851
|
+
const ret = wasm.credentials_len(this.__wbg_ptr);
|
|
38649
38852
|
return ret >>> 0;
|
|
38650
38853
|
}
|
|
38651
38854
|
/**
|
|
@@ -38929,7 +39132,7 @@ class WithdrawalsBuilder {
|
|
|
38929
39132
|
* @returns {WithdrawalsBuilder}
|
|
38930
39133
|
*/
|
|
38931
39134
|
static new() {
|
|
38932
|
-
const ret = wasm.
|
|
39135
|
+
const ret = wasm.mintbuilder_new();
|
|
38933
39136
|
return WithdrawalsBuilder.__wrap(ret);
|
|
38934
39137
|
}
|
|
38935
39138
|
/**
|
|
@@ -39073,6 +39276,21 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
39073
39276
|
return ret;
|
|
39074
39277
|
};
|
|
39075
39278
|
|
|
39279
|
+
module.exports.__wbindgen_is_bigint = function(arg0) {
|
|
39280
|
+
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
39281
|
+
return ret;
|
|
39282
|
+
};
|
|
39283
|
+
|
|
39284
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
39285
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
39286
|
+
return addHeapObject(ret);
|
|
39287
|
+
};
|
|
39288
|
+
|
|
39289
|
+
module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
39290
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
39291
|
+
return ret;
|
|
39292
|
+
};
|
|
39293
|
+
|
|
39076
39294
|
module.exports.__wbindgen_is_string = function(arg0) {
|
|
39077
39295
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
39078
39296
|
return ret;
|
|
@@ -39177,14 +39395,14 @@ module.exports.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
|
|
|
39177
39395
|
return addHeapObject(ret);
|
|
39178
39396
|
};
|
|
39179
39397
|
|
|
39180
|
-
module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
|
|
39181
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
39182
|
-
}, arguments) };
|
|
39183
|
-
|
|
39184
39398
|
module.exports.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
|
|
39185
39399
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
39186
39400
|
}, arguments) };
|
|
39187
39401
|
|
|
39402
|
+
module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
|
|
39403
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
39404
|
+
}, arguments) };
|
|
39405
|
+
|
|
39188
39406
|
module.exports.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) {
|
|
39189
39407
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
39190
39408
|
return addHeapObject(ret);
|
|
@@ -39215,6 +39433,36 @@ module.exports.__wbg_new_d9bc3a0147634640 = function() {
|
|
|
39215
39433
|
return addHeapObject(ret);
|
|
39216
39434
|
};
|
|
39217
39435
|
|
|
39436
|
+
module.exports.__wbg_next_40fc327bfc8770e6 = function(arg0) {
|
|
39437
|
+
const ret = getObject(arg0).next;
|
|
39438
|
+
return addHeapObject(ret);
|
|
39439
|
+
};
|
|
39440
|
+
|
|
39441
|
+
module.exports.__wbg_next_196c84450b364254 = function() { return handleError(function (arg0) {
|
|
39442
|
+
const ret = getObject(arg0).next();
|
|
39443
|
+
return addHeapObject(ret);
|
|
39444
|
+
}, arguments) };
|
|
39445
|
+
|
|
39446
|
+
module.exports.__wbg_done_298b57d23c0fc80c = function(arg0) {
|
|
39447
|
+
const ret = getObject(arg0).done;
|
|
39448
|
+
return ret;
|
|
39449
|
+
};
|
|
39450
|
+
|
|
39451
|
+
module.exports.__wbg_value_d93c65011f51a456 = function(arg0) {
|
|
39452
|
+
const ret = getObject(arg0).value;
|
|
39453
|
+
return addHeapObject(ret);
|
|
39454
|
+
};
|
|
39455
|
+
|
|
39456
|
+
module.exports.__wbg_iterator_2cee6dadfd956dfa = function() {
|
|
39457
|
+
const ret = Symbol.iterator;
|
|
39458
|
+
return addHeapObject(ret);
|
|
39459
|
+
};
|
|
39460
|
+
|
|
39461
|
+
module.exports.__wbg_get_e3c254076557e348 = function() { return handleError(function (arg0, arg1) {
|
|
39462
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
39463
|
+
return addHeapObject(ret);
|
|
39464
|
+
}, arguments) };
|
|
39465
|
+
|
|
39218
39466
|
module.exports.__wbg_call_27c0f87801dedf93 = function() { return handleError(function (arg0, arg1) {
|
|
39219
39467
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
39220
39468
|
return addHeapObject(ret);
|
|
@@ -39249,6 +39497,11 @@ module.exports.__wbg_set_d4638f722068f043 = function(arg0, arg1, arg2) {
|
|
|
39249
39497
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
39250
39498
|
};
|
|
39251
39499
|
|
|
39500
|
+
module.exports.__wbg_isArray_2ab64d95e09ea0ae = function(arg0) {
|
|
39501
|
+
const ret = Array.isArray(getObject(arg0));
|
|
39502
|
+
return ret;
|
|
39503
|
+
};
|
|
39504
|
+
|
|
39252
39505
|
module.exports.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2 = function(arg0) {
|
|
39253
39506
|
let result;
|
|
39254
39507
|
try {
|
|
@@ -39335,11 +39588,6 @@ module.exports.__wbg_call_eae29933372a39be = function(arg0, arg1) {
|
|
|
39335
39588
|
return addHeapObject(ret);
|
|
39336
39589
|
};
|
|
39337
39590
|
|
|
39338
|
-
module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
39339
|
-
const ret = getObject(arg0) === getObject(arg1);
|
|
39340
|
-
return ret;
|
|
39341
|
-
};
|
|
39342
|
-
|
|
39343
39591
|
module.exports.__wbg_self_e0b3266d2d9eba1a = function(arg0) {
|
|
39344
39592
|
const ret = getObject(arg0).self;
|
|
39345
39593
|
return addHeapObject(ret);
|
|
@@ -39368,6 +39616,13 @@ module.exports.__wbg_getRandomValues_02639197c8166a96 = function(arg0, arg1, arg
|
|
|
39368
39616
|
getObject(arg0).getRandomValues(getArrayU8FromWasm0(arg1, arg2));
|
|
39369
39617
|
};
|
|
39370
39618
|
|
|
39619
|
+
module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
39620
|
+
const v = getObject(arg1);
|
|
39621
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
39622
|
+
getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
|
|
39623
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
39624
|
+
};
|
|
39625
|
+
|
|
39371
39626
|
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
39372
39627
|
const ret = debugString(getObject(arg1));
|
|
39373
39628
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|