@cardananium/cquisitor-lib 0.1.0-beta.2 → 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.
- package/browser/cquisitor_lib.d.ts +298 -3
- package/browser/cquisitor_lib.js +434 -280
- package/browser/cquisitor_lib_bg.wasm +0 -0
- package/browser/cquisitor_lib_bg.wasm.d.ts +2193 -2189
- package/node/cquisitor_lib.d.ts +298 -3
- package/node/cquisitor_lib.js +458 -295
- package/node/cquisitor_lib_bg.wasm +0 -0
- package/node/cquisitor_lib_bg.wasm.d.ts +2193 -2189
- package/package.json +1 -1
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;
|
|
@@ -298,292 +307,147 @@ module.exports.check_block_or_tx_signatures = function(hex_str) {
|
|
|
298
307
|
};
|
|
299
308
|
|
|
300
309
|
/**
|
|
301
|
-
* @param {string}
|
|
302
|
-
* @returns {
|
|
303
|
-
*/
|
|
304
|
-
module.exports.cbor_to_json = function(cbor_hex) {
|
|
305
|
-
try {
|
|
306
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
307
|
-
const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
308
|
-
const len0 = WASM_VECTOR_LEN;
|
|
309
|
-
wasm.cbor_to_json(retptr, ptr0, len0);
|
|
310
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
311
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
312
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
313
|
-
if (r2) {
|
|
314
|
-
throw takeObject(r1);
|
|
315
|
-
}
|
|
316
|
-
return takeObject(r0);
|
|
317
|
-
} finally {
|
|
318
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
319
|
-
}
|
|
320
|
-
};
|
|
321
|
-
|
|
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
|
-
/**
|
|
346
|
-
* @param {string} password
|
|
347
|
-
* @param {string} salt
|
|
348
|
-
* @param {string} nonce
|
|
349
|
-
* @param {string} data
|
|
350
|
-
* @returns {string}
|
|
310
|
+
* @param {string} tx_hex
|
|
311
|
+
* @returns {(string)[]}
|
|
351
312
|
*/
|
|
352
|
-
module.exports.
|
|
353
|
-
let deferred6_0;
|
|
354
|
-
let deferred6_1;
|
|
313
|
+
module.exports.get_utxo_list_from_tx = function(tx_hex) {
|
|
355
314
|
try {
|
|
356
315
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
357
|
-
const ptr0 = passStringToWasm0(
|
|
316
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
358
317
|
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);
|
|
318
|
+
wasm.get_utxo_list_from_tx(retptr, ptr0, len0);
|
|
366
319
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
367
320
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
368
321
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
369
322
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
370
|
-
var ptr5 = r0;
|
|
371
|
-
var len5 = r1;
|
|
372
323
|
if (r3) {
|
|
373
|
-
ptr5 = 0; len5 = 0;
|
|
374
324
|
throw takeObject(r2);
|
|
375
325
|
}
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
return
|
|
326
|
+
var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
327
|
+
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
|
328
|
+
return v2;
|
|
379
329
|
} finally {
|
|
380
330
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
381
|
-
wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
|
|
382
331
|
}
|
|
383
332
|
};
|
|
384
333
|
|
|
385
334
|
/**
|
|
386
|
-
* @param {string}
|
|
387
|
-
* @param {
|
|
388
|
-
* @
|
|
335
|
+
* @param {string} tx_hex
|
|
336
|
+
* @param {any} utxo_json
|
|
337
|
+
* @param {any} cost_models_json
|
|
338
|
+
* @returns {any}
|
|
389
339
|
*/
|
|
390
|
-
module.exports.
|
|
391
|
-
let deferred4_0;
|
|
392
|
-
let deferred4_1;
|
|
340
|
+
module.exports.execute_tx_scripts = function(tx_hex, utxo_json, cost_models_json) {
|
|
393
341
|
try {
|
|
394
342
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
395
|
-
const ptr0 = passStringToWasm0(
|
|
343
|
+
const ptr0 = passStringToWasm0(tx_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
396
344
|
const len0 = WASM_VECTOR_LEN;
|
|
397
|
-
|
|
398
|
-
const len1 = WASM_VECTOR_LEN;
|
|
399
|
-
wasm.decrypt_with_password(retptr, ptr0, len0, ptr1, len1);
|
|
345
|
+
wasm.execute_tx_scripts(retptr, ptr0, len0, addHeapObject(utxo_json), addHeapObject(cost_models_json));
|
|
400
346
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
401
347
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
402
348
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
var len3 = r1;
|
|
406
|
-
if (r3) {
|
|
407
|
-
ptr3 = 0; len3 = 0;
|
|
408
|
-
throw takeObject(r2);
|
|
349
|
+
if (r2) {
|
|
350
|
+
throw takeObject(r1);
|
|
409
351
|
}
|
|
410
|
-
|
|
411
|
-
deferred4_1 = len3;
|
|
412
|
-
return getStringFromWasm0(ptr3, len3);
|
|
352
|
+
return takeObject(r0);
|
|
413
353
|
} finally {
|
|
414
354
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
415
|
-
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
416
355
|
}
|
|
417
356
|
};
|
|
418
357
|
|
|
419
358
|
/**
|
|
420
|
-
* @param {string}
|
|
421
|
-
* @
|
|
422
|
-
* @returns {PlutusData}
|
|
359
|
+
* @param {string} cbor_hex
|
|
360
|
+
* @returns {any}
|
|
423
361
|
*/
|
|
424
|
-
module.exports.
|
|
362
|
+
module.exports.cbor_to_json = function(cbor_hex) {
|
|
425
363
|
try {
|
|
426
364
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
427
|
-
const ptr0 = passStringToWasm0(
|
|
365
|
+
const ptr0 = passStringToWasm0(cbor_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
428
366
|
const len0 = WASM_VECTOR_LEN;
|
|
429
|
-
wasm.
|
|
367
|
+
wasm.cbor_to_json(retptr, ptr0, len0);
|
|
430
368
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
431
369
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
432
370
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
433
371
|
if (r2) {
|
|
434
372
|
throw takeObject(r1);
|
|
435
373
|
}
|
|
436
|
-
return
|
|
437
|
-
} finally {
|
|
438
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
439
|
-
}
|
|
440
|
-
};
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
* @param {PlutusData} datum
|
|
444
|
-
* @param {PlutusDatumSchema} schema
|
|
445
|
-
* @returns {string}
|
|
446
|
-
*/
|
|
447
|
-
module.exports.decode_plutus_datum_to_json_str = function(datum, schema) {
|
|
448
|
-
let deferred2_0;
|
|
449
|
-
let deferred2_1;
|
|
450
|
-
try {
|
|
451
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
452
|
-
_assertClass(datum, PlutusData);
|
|
453
|
-
wasm.decode_plutus_datum_to_json_str(retptr, datum.__wbg_ptr, schema);
|
|
454
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
455
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
456
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
457
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
458
|
-
var ptr1 = r0;
|
|
459
|
-
var len1 = r1;
|
|
460
|
-
if (r3) {
|
|
461
|
-
ptr1 = 0; len1 = 0;
|
|
462
|
-
throw takeObject(r2);
|
|
463
|
-
}
|
|
464
|
-
deferred2_0 = ptr1;
|
|
465
|
-
deferred2_1 = len1;
|
|
466
|
-
return getStringFromWasm0(ptr1, len1);
|
|
467
|
-
} finally {
|
|
468
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
469
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
470
|
-
}
|
|
471
|
-
};
|
|
472
|
-
|
|
473
|
-
/**
|
|
474
|
-
* @param {Uint8Array} bytes
|
|
475
|
-
* @returns {TransactionMetadatum}
|
|
476
|
-
*/
|
|
477
|
-
module.exports.encode_arbitrary_bytes_as_metadatum = function(bytes) {
|
|
478
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
479
|
-
const len0 = WASM_VECTOR_LEN;
|
|
480
|
-
const ret = wasm.encode_arbitrary_bytes_as_metadatum(ptr0, len0);
|
|
481
|
-
return TransactionMetadatum.__wrap(ret);
|
|
482
|
-
};
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* @param {TransactionMetadatum} metadata
|
|
486
|
-
* @returns {Uint8Array}
|
|
487
|
-
*/
|
|
488
|
-
module.exports.decode_arbitrary_bytes_from_metadatum = function(metadata) {
|
|
489
|
-
try {
|
|
490
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
491
|
-
_assertClass(metadata, TransactionMetadatum);
|
|
492
|
-
wasm.decode_arbitrary_bytes_from_metadatum(retptr, metadata.__wbg_ptr);
|
|
493
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
494
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
495
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
496
|
-
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
497
|
-
if (r3) {
|
|
498
|
-
throw takeObject(r2);
|
|
499
|
-
}
|
|
500
|
-
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
501
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
502
|
-
return v1;
|
|
374
|
+
return takeObject(r0);
|
|
503
375
|
} finally {
|
|
504
376
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
505
377
|
}
|
|
506
378
|
};
|
|
507
379
|
|
|
508
380
|
/**
|
|
509
|
-
* @param {string}
|
|
510
|
-
* @
|
|
511
|
-
* @returns {TransactionMetadatum}
|
|
381
|
+
* @param {string} hex
|
|
382
|
+
* @returns {any}
|
|
512
383
|
*/
|
|
513
|
-
module.exports.
|
|
384
|
+
module.exports.decode_plutus_program_uplc_json = function(hex) {
|
|
514
385
|
try {
|
|
515
386
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
516
|
-
const ptr0 = passStringToWasm0(
|
|
387
|
+
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
517
388
|
const len0 = WASM_VECTOR_LEN;
|
|
518
|
-
wasm.
|
|
389
|
+
wasm.decode_plutus_program_uplc_json(retptr, ptr0, len0);
|
|
519
390
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
520
391
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
521
392
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
522
393
|
if (r2) {
|
|
523
394
|
throw takeObject(r1);
|
|
524
395
|
}
|
|
525
|
-
return
|
|
396
|
+
return takeObject(r0);
|
|
526
397
|
} finally {
|
|
527
398
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
528
399
|
}
|
|
529
400
|
};
|
|
530
401
|
|
|
531
402
|
/**
|
|
532
|
-
* @param {
|
|
533
|
-
* @param {MetadataJsonSchema} schema
|
|
403
|
+
* @param {string} hex
|
|
534
404
|
* @returns {string}
|
|
535
405
|
*/
|
|
536
|
-
module.exports.
|
|
537
|
-
let
|
|
538
|
-
let
|
|
406
|
+
module.exports.decode_plutus_program_pretty_uplc = function(hex) {
|
|
407
|
+
let deferred3_0;
|
|
408
|
+
let deferred3_1;
|
|
539
409
|
try {
|
|
540
410
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
541
|
-
|
|
542
|
-
|
|
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);
|
|
543
414
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
544
415
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
545
416
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
546
417
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
547
|
-
var
|
|
548
|
-
var
|
|
418
|
+
var ptr2 = r0;
|
|
419
|
+
var len2 = r1;
|
|
549
420
|
if (r3) {
|
|
550
|
-
|
|
421
|
+
ptr2 = 0; len2 = 0;
|
|
551
422
|
throw takeObject(r2);
|
|
552
423
|
}
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
return getStringFromWasm0(
|
|
424
|
+
deferred3_0 = ptr2;
|
|
425
|
+
deferred3_1 = len2;
|
|
426
|
+
return getStringFromWasm0(ptr2, len2);
|
|
556
427
|
} finally {
|
|
557
428
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
558
|
-
wasm.__wbindgen_free(
|
|
429
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
559
430
|
}
|
|
560
431
|
};
|
|
561
432
|
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
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
|
-
};
|
|
433
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
434
|
+
ptr = ptr >>> 0;
|
|
435
|
+
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
436
|
+
}
|
|
586
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
|
+
}
|
|
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
|
+
}
|
|
587
451
|
/**
|
|
588
452
|
* @param {Transaction} tx
|
|
589
453
|
* @param {LinearFee} linear_fee
|
|
@@ -675,6 +539,11 @@ module.exports.min_ref_script_fee = function(total_ref_scripts_size, ref_script_
|
|
|
675
539
|
}
|
|
676
540
|
};
|
|
677
541
|
|
|
542
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
543
|
+
ptr = ptr >>> 0;
|
|
544
|
+
return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
|
|
545
|
+
}
|
|
546
|
+
|
|
678
547
|
function passArray32ToWasm0(arg, malloc) {
|
|
679
548
|
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
680
549
|
getUint32Memory0().set(arg, ptr / 4);
|
|
@@ -896,6 +765,248 @@ module.exports.has_transaction_set_tag = function(tx_bytes) {
|
|
|
896
765
|
}
|
|
897
766
|
};
|
|
898
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
|
+
|
|
899
1010
|
function handleError(f, args) {
|
|
900
1011
|
try {
|
|
901
1012
|
return f.apply(this, args);
|
|
@@ -905,16 +1016,59 @@ function handleError(f, args) {
|
|
|
905
1016
|
}
|
|
906
1017
|
/**
|
|
907
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
|
+
*/
|
|
908
1025
|
module.exports.LanguageKind = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
909
1026
|
/**
|
|
1027
|
+
* Used to choosed the schema for a script JSON string
|
|
1028
|
+
*/
|
|
1029
|
+
module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1030
|
+
/**
|
|
1031
|
+
*/
|
|
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", });
|
|
1033
|
+
/**
|
|
1034
|
+
*/
|
|
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", });
|
|
1036
|
+
/**
|
|
1037
|
+
*/
|
|
1038
|
+
module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1039
|
+
/**
|
|
1040
|
+
*/
|
|
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", });
|
|
1051
|
+
/**
|
|
1052
|
+
*/
|
|
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", });
|
|
1054
|
+
/**
|
|
1055
|
+
*/
|
|
1056
|
+
module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
1057
|
+
/**
|
|
910
1058
|
*/
|
|
911
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", });
|
|
912
1060
|
/**
|
|
913
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
|
+
*/
|
|
914
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", });
|
|
915
1069
|
/**
|
|
916
1070
|
*/
|
|
917
|
-
module.exports.
|
|
1071
|
+
module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
918
1072
|
/**
|
|
919
1073
|
* JSON <-> PlutusData conversion schemas.
|
|
920
1074
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
@@ -967,24 +1121,6 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
967
1121
|
*/
|
|
968
1122
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
969
1123
|
/**
|
|
970
|
-
*/
|
|
971
|
-
module.exports.MIRKind = Object.freeze({ ToOtherPot:0,"0":"ToOtherPot",ToStakeCredentials:1,"1":"ToStakeCredentials", });
|
|
972
|
-
/**
|
|
973
|
-
*/
|
|
974
|
-
module.exports.CborSetType = Object.freeze({ Tagged:0,"0":"Tagged",Untagged:1,"1":"Untagged", });
|
|
975
|
-
/**
|
|
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
1124
|
* Each new language uses a different namespace for hashing its script
|
|
989
1125
|
* This is because you could have a language where the same bytes have different semantics
|
|
990
1126
|
* So this avoids scripts in different languages mapping to the same hash
|
|
@@ -993,29 +1129,13 @@ module.exports.BlockEra = Object.freeze({ Byron:0,"0":"Byron",Shelley:1,"1":"She
|
|
|
993
1129
|
module.exports.ScriptHashNamespace = Object.freeze({ NativeScript:0,"0":"NativeScript",PlutusScript:1,"1":"PlutusScript",PlutusScriptV2:2,"2":"PlutusScriptV2",PlutusScriptV3:3,"3":"PlutusScriptV3", });
|
|
994
1130
|
/**
|
|
995
1131
|
*/
|
|
996
|
-
module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
997
|
-
/**
|
|
998
|
-
*/
|
|
999
|
-
module.exports.CredKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script", });
|
|
1000
|
-
/**
|
|
1001
|
-
*/
|
|
1002
1132
|
module.exports.DRepKind = Object.freeze({ KeyHash:0,"0":"KeyHash",ScriptHash:1,"1":"ScriptHash",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
1003
1133
|
/**
|
|
1004
1134
|
*/
|
|
1005
|
-
module.exports.
|
|
1006
|
-
/**
|
|
1007
|
-
*/
|
|
1008
|
-
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", });
|
|
1009
|
-
/**
|
|
1010
|
-
*/
|
|
1011
|
-
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
|
-
/**
|
|
1013
|
-
* Used to choosed the schema for a script JSON string
|
|
1014
|
-
*/
|
|
1015
|
-
module.exports.ScriptSchema = Object.freeze({ Wallet:0,"0":"Wallet",Node:1,"1":"Node", });
|
|
1135
|
+
module.exports.MIRPot = Object.freeze({ Reserves:0,"0":"Reserves",Treasury:1,"1":"Treasury", });
|
|
1016
1136
|
/**
|
|
1017
1137
|
*/
|
|
1018
|
-
module.exports.
|
|
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", });
|
|
1019
1139
|
/**
|
|
1020
1140
|
*/
|
|
1021
1141
|
module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
|
|
@@ -1037,16 +1157,7 @@ LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
|
1037
1157
|
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
1038
1158
|
/**
|
|
1039
1159
|
*/
|
|
1040
|
-
module.exports.
|
|
1041
|
-
/**
|
|
1042
|
-
*/
|
|
1043
|
-
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", });
|
|
1044
|
-
/**
|
|
1045
|
-
*/
|
|
1046
|
-
module.exports.VoteKind = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
1047
|
-
/**
|
|
1048
|
-
*/
|
|
1049
|
-
module.exports.NetworkIdKind = Object.freeze({ Testnet:0,"0":"Testnet",Mainnet:1,"1":"Mainnet", });
|
|
1160
|
+
module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
1050
1161
|
|
|
1051
1162
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1052
1163
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -7781,14 +7892,14 @@ class Credentials {
|
|
|
7781
7892
|
* @returns {Credentials}
|
|
7782
7893
|
*/
|
|
7783
7894
|
static new() {
|
|
7784
|
-
const ret = wasm.
|
|
7895
|
+
const ret = wasm.credentials_new();
|
|
7785
7896
|
return Credentials.__wrap(ret);
|
|
7786
7897
|
}
|
|
7787
7898
|
/**
|
|
7788
7899
|
* @returns {number}
|
|
7789
7900
|
*/
|
|
7790
7901
|
len() {
|
|
7791
|
-
const ret = wasm.
|
|
7902
|
+
const ret = wasm.credentials_len(this.__wbg_ptr);
|
|
7792
7903
|
return ret >>> 0;
|
|
7793
7904
|
}
|
|
7794
7905
|
/**
|
|
@@ -10078,14 +10189,14 @@ class Ed25519KeyHashes {
|
|
|
10078
10189
|
* @returns {Ed25519KeyHashes}
|
|
10079
10190
|
*/
|
|
10080
10191
|
static new() {
|
|
10081
|
-
const ret = wasm.
|
|
10192
|
+
const ret = wasm.credentials_new();
|
|
10082
10193
|
return Ed25519KeyHashes.__wrap(ret);
|
|
10083
10194
|
}
|
|
10084
10195
|
/**
|
|
10085
10196
|
* @returns {number}
|
|
10086
10197
|
*/
|
|
10087
10198
|
len() {
|
|
10088
|
-
const ret = wasm.
|
|
10199
|
+
const ret = wasm.credentials_len(this.__wbg_ptr);
|
|
10089
10200
|
return ret >>> 0;
|
|
10090
10201
|
}
|
|
10091
10202
|
/**
|
|
@@ -13178,7 +13289,7 @@ class GovernanceActionIds {
|
|
|
13178
13289
|
* @returns {number}
|
|
13179
13290
|
*/
|
|
13180
13291
|
len() {
|
|
13181
|
-
const ret = wasm.
|
|
13292
|
+
const ret = wasm.governanceactionids_len(this.__wbg_ptr);
|
|
13182
13293
|
return ret >>> 0;
|
|
13183
13294
|
}
|
|
13184
13295
|
}
|
|
@@ -16373,7 +16484,7 @@ class MintBuilder {
|
|
|
16373
16484
|
* @returns {MintBuilder}
|
|
16374
16485
|
*/
|
|
16375
16486
|
static new() {
|
|
16376
|
-
const ret = wasm.
|
|
16487
|
+
const ret = wasm.costmdls_new();
|
|
16377
16488
|
return MintBuilder.__wrap(ret);
|
|
16378
16489
|
}
|
|
16379
16490
|
/**
|
|
@@ -17917,7 +18028,7 @@ class NativeScripts {
|
|
|
17917
18028
|
* @returns {number}
|
|
17918
18029
|
*/
|
|
17919
18030
|
len() {
|
|
17920
|
-
const ret = wasm.
|
|
18031
|
+
const ret = wasm.costmdls_len(this.__wbg_ptr);
|
|
17921
18032
|
return ret >>> 0;
|
|
17922
18033
|
}
|
|
17923
18034
|
/**
|
|
@@ -18520,7 +18631,7 @@ class NewConstitutionAction {
|
|
|
18520
18631
|
* @returns {GovernanceActionId | undefined}
|
|
18521
18632
|
*/
|
|
18522
18633
|
gov_action_id() {
|
|
18523
|
-
const ret = wasm.
|
|
18634
|
+
const ret = wasm.newconstitutionaction_gov_action_id(this.__wbg_ptr);
|
|
18524
18635
|
return ret === 0 ? undefined : GovernanceActionId.__wrap(ret);
|
|
18525
18636
|
}
|
|
18526
18637
|
/**
|
|
@@ -18733,7 +18844,7 @@ class NoConfidenceAction {
|
|
|
18733
18844
|
* @returns {GovernanceActionId | undefined}
|
|
18734
18845
|
*/
|
|
18735
18846
|
gov_action_id() {
|
|
18736
|
-
const ret = wasm.
|
|
18847
|
+
const ret = wasm.noconfidenceaction_gov_action_id(this.__wbg_ptr);
|
|
18737
18848
|
return ret === 0 ? undefined : GovernanceActionId.__wrap(ret);
|
|
18738
18849
|
}
|
|
18739
18850
|
/**
|
|
@@ -20692,7 +20803,7 @@ class PlutusScripts {
|
|
|
20692
20803
|
* @returns {number}
|
|
20693
20804
|
*/
|
|
20694
20805
|
len() {
|
|
20695
|
-
const ret = wasm.
|
|
20806
|
+
const ret = wasm.certificates_len(this.__wbg_ptr);
|
|
20696
20807
|
return ret >>> 0;
|
|
20697
20808
|
}
|
|
20698
20809
|
/**
|
|
@@ -23836,7 +23947,7 @@ class PublicKeys {
|
|
|
23836
23947
|
/**
|
|
23837
23948
|
*/
|
|
23838
23949
|
constructor() {
|
|
23839
|
-
const ret = wasm.
|
|
23950
|
+
const ret = wasm.genesishashes_new();
|
|
23840
23951
|
this.__wbg_ptr = ret >>> 0;
|
|
23841
23952
|
return this;
|
|
23842
23953
|
}
|
|
@@ -23844,7 +23955,7 @@ class PublicKeys {
|
|
|
23844
23955
|
* @returns {number}
|
|
23845
23956
|
*/
|
|
23846
23957
|
size() {
|
|
23847
|
-
const ret = wasm.
|
|
23958
|
+
const ret = wasm.assetnames_len(this.__wbg_ptr);
|
|
23848
23959
|
return ret >>> 0;
|
|
23849
23960
|
}
|
|
23850
23961
|
/**
|
|
@@ -27533,7 +27644,7 @@ class StakeDelegation {
|
|
|
27533
27644
|
* @returns {Credential}
|
|
27534
27645
|
*/
|
|
27535
27646
|
stake_credential() {
|
|
27536
|
-
const ret = wasm.
|
|
27647
|
+
const ret = wasm.stakedelegation_stake_credential(this.__wbg_ptr);
|
|
27537
27648
|
return Credential.__wrap(ret);
|
|
27538
27649
|
}
|
|
27539
27650
|
/**
|
|
@@ -27558,7 +27669,7 @@ class StakeDelegation {
|
|
|
27558
27669
|
* @returns {boolean}
|
|
27559
27670
|
*/
|
|
27560
27671
|
has_script_credentials() {
|
|
27561
|
-
const ret = wasm.
|
|
27672
|
+
const ret = wasm.stakedelegation_has_script_credentials(this.__wbg_ptr);
|
|
27562
27673
|
return ret !== 0;
|
|
27563
27674
|
}
|
|
27564
27675
|
}
|
|
@@ -27950,14 +28061,14 @@ class StakeRegistration {
|
|
|
27950
28061
|
* @returns {Credential}
|
|
27951
28062
|
*/
|
|
27952
28063
|
stake_credential() {
|
|
27953
|
-
const ret = wasm.
|
|
28064
|
+
const ret = wasm.stakeregistration_stake_credential(this.__wbg_ptr);
|
|
27954
28065
|
return Credential.__wrap(ret);
|
|
27955
28066
|
}
|
|
27956
28067
|
/**
|
|
27957
28068
|
* @returns {BigNum | undefined}
|
|
27958
28069
|
*/
|
|
27959
28070
|
coin() {
|
|
27960
|
-
const ret = wasm.
|
|
28071
|
+
const ret = wasm.stakeregistration_coin(this.__wbg_ptr);
|
|
27961
28072
|
return ret === 0 ? undefined : BigNum.__wrap(ret);
|
|
27962
28073
|
}
|
|
27963
28074
|
/**
|
|
@@ -27966,7 +28077,7 @@ class StakeRegistration {
|
|
|
27966
28077
|
*/
|
|
27967
28078
|
static new(stake_credential) {
|
|
27968
28079
|
_assertClass(stake_credential, Credential);
|
|
27969
|
-
const ret = wasm.
|
|
28080
|
+
const ret = wasm.stakeregistration_new(stake_credential.__wbg_ptr);
|
|
27970
28081
|
return StakeRegistration.__wrap(ret);
|
|
27971
28082
|
}
|
|
27972
28083
|
/**
|
|
@@ -27977,14 +28088,14 @@ class StakeRegistration {
|
|
|
27977
28088
|
static new_with_explicit_deposit(stake_credential, coin) {
|
|
27978
28089
|
_assertClass(stake_credential, Credential);
|
|
27979
28090
|
_assertClass(coin, BigNum);
|
|
27980
|
-
const ret = wasm.
|
|
28091
|
+
const ret = wasm.stakeregistration_new_with_explicit_deposit(stake_credential.__wbg_ptr, coin.__wbg_ptr);
|
|
27981
28092
|
return StakeRegistration.__wrap(ret);
|
|
27982
28093
|
}
|
|
27983
28094
|
/**
|
|
27984
28095
|
* @returns {boolean}
|
|
27985
28096
|
*/
|
|
27986
28097
|
has_script_credentials() {
|
|
27987
|
-
const ret = wasm.
|
|
28098
|
+
const ret = wasm.stakeregistration_has_script_credentials(this.__wbg_ptr);
|
|
27988
28099
|
return ret !== 0;
|
|
27989
28100
|
}
|
|
27990
28101
|
}
|
|
@@ -28455,14 +28566,14 @@ class Strings {
|
|
|
28455
28566
|
* @returns {Strings}
|
|
28456
28567
|
*/
|
|
28457
28568
|
static new() {
|
|
28458
|
-
const ret = wasm.
|
|
28569
|
+
const ret = wasm.strings_new();
|
|
28459
28570
|
return Strings.__wrap(ret);
|
|
28460
28571
|
}
|
|
28461
28572
|
/**
|
|
28462
28573
|
* @returns {number}
|
|
28463
28574
|
*/
|
|
28464
28575
|
len() {
|
|
28465
|
-
const ret = wasm.
|
|
28576
|
+
const ret = wasm.costmodel_len(this.__wbg_ptr);
|
|
28466
28577
|
return ret >>> 0;
|
|
28467
28578
|
}
|
|
28468
28579
|
/**
|
|
@@ -29187,7 +29298,7 @@ class TransactionBatch {
|
|
|
29187
29298
|
* @returns {number}
|
|
29188
29299
|
*/
|
|
29189
29300
|
len() {
|
|
29190
|
-
const ret = wasm.
|
|
29301
|
+
const ret = wasm.costmdls_len(this.__wbg_ptr);
|
|
29191
29302
|
return ret >>> 0;
|
|
29192
29303
|
}
|
|
29193
29304
|
/**
|
|
@@ -29231,7 +29342,7 @@ class TransactionBatchList {
|
|
|
29231
29342
|
* @returns {number}
|
|
29232
29343
|
*/
|
|
29233
29344
|
len() {
|
|
29234
|
-
const ret = wasm.
|
|
29345
|
+
const ret = wasm.costmdls_len(this.__wbg_ptr);
|
|
29235
29346
|
return ret >>> 0;
|
|
29236
29347
|
}
|
|
29237
29348
|
/**
|
|
@@ -31828,7 +31939,7 @@ class TransactionInputs {
|
|
|
31828
31939
|
* @returns {number}
|
|
31829
31940
|
*/
|
|
31830
31941
|
len() {
|
|
31831
|
-
const ret = wasm.
|
|
31942
|
+
const ret = wasm.costmdls_len(this.__wbg_ptr);
|
|
31832
31943
|
return ret >>> 0;
|
|
31833
31944
|
}
|
|
31834
31945
|
/**
|
|
@@ -33455,7 +33566,7 @@ class TransactionWitnessSet {
|
|
|
33455
33566
|
* @returns {NativeScripts | undefined}
|
|
33456
33567
|
*/
|
|
33457
33568
|
native_scripts() {
|
|
33458
|
-
const ret = wasm.
|
|
33569
|
+
const ret = wasm.transactionwitnessset_native_scripts(this.__wbg_ptr);
|
|
33459
33570
|
return ret === 0 ? undefined : NativeScripts.__wrap(ret);
|
|
33460
33571
|
}
|
|
33461
33572
|
/**
|
|
@@ -33704,7 +33815,7 @@ class TransactionWitnessSets {
|
|
|
33704
33815
|
* @returns {number}
|
|
33705
33816
|
*/
|
|
33706
33817
|
len() {
|
|
33707
|
-
const ret = wasm.
|
|
33818
|
+
const ret = wasm.costmdls_len(this.__wbg_ptr);
|
|
33708
33819
|
return ret >>> 0;
|
|
33709
33820
|
}
|
|
33710
33821
|
/**
|
|
@@ -33853,7 +33964,7 @@ class TreasuryWithdrawals {
|
|
|
33853
33964
|
* @returns {number}
|
|
33854
33965
|
*/
|
|
33855
33966
|
len() {
|
|
33856
|
-
const ret = wasm.
|
|
33967
|
+
const ret = wasm.relays_len(this.__wbg_ptr);
|
|
33857
33968
|
return ret >>> 0;
|
|
33858
33969
|
}
|
|
33859
33970
|
}
|
|
@@ -36598,7 +36709,7 @@ class Vkeywitness {
|
|
|
36598
36709
|
* @returns {Ed25519Signature}
|
|
36599
36710
|
*/
|
|
36600
36711
|
signature() {
|
|
36601
|
-
const ret = wasm.
|
|
36712
|
+
const ret = wasm.operationalcert_sigma(this.__wbg_ptr);
|
|
36602
36713
|
return Ed25519Signature.__wrap(ret);
|
|
36603
36714
|
}
|
|
36604
36715
|
}
|
|
@@ -36982,14 +37093,14 @@ class VoteDelegation {
|
|
|
36982
37093
|
* @returns {Credential}
|
|
36983
37094
|
*/
|
|
36984
37095
|
stake_credential() {
|
|
36985
|
-
const ret = wasm.
|
|
37096
|
+
const ret = wasm.stakeandvotedelegation_stake_credential(this.__wbg_ptr);
|
|
36986
37097
|
return Credential.__wrap(ret);
|
|
36987
37098
|
}
|
|
36988
37099
|
/**
|
|
36989
37100
|
* @returns {DRep}
|
|
36990
37101
|
*/
|
|
36991
37102
|
drep() {
|
|
36992
|
-
const ret = wasm.
|
|
37103
|
+
const ret = wasm.stakeandvotedelegation_drep(this.__wbg_ptr);
|
|
36993
37104
|
return DRep.__wrap(ret);
|
|
36994
37105
|
}
|
|
36995
37106
|
/**
|
|
@@ -37007,7 +37118,7 @@ class VoteDelegation {
|
|
|
37007
37118
|
* @returns {boolean}
|
|
37008
37119
|
*/
|
|
37009
37120
|
has_script_credentials() {
|
|
37010
|
-
const ret = wasm.
|
|
37121
|
+
const ret = wasm.stakeandvotedelegation_has_script_credentials(this.__wbg_ptr);
|
|
37011
37122
|
return ret !== 0;
|
|
37012
37123
|
}
|
|
37013
37124
|
}
|
|
@@ -37563,7 +37674,7 @@ class Voters {
|
|
|
37563
37674
|
* @returns {Voters}
|
|
37564
37675
|
*/
|
|
37565
37676
|
static new() {
|
|
37566
|
-
const ret = wasm.
|
|
37677
|
+
const ret = wasm.voters_new();
|
|
37567
37678
|
return Voters.__wrap(ret);
|
|
37568
37679
|
}
|
|
37569
37680
|
/**
|
|
@@ -37585,7 +37696,7 @@ class Voters {
|
|
|
37585
37696
|
* @returns {number}
|
|
37586
37697
|
*/
|
|
37587
37698
|
len() {
|
|
37588
|
-
const ret = wasm.
|
|
37699
|
+
const ret = wasm.costmdls_len(this.__wbg_ptr);
|
|
37589
37700
|
return ret >>> 0;
|
|
37590
37701
|
}
|
|
37591
37702
|
}
|
|
@@ -37621,7 +37732,7 @@ class VotingBuilder {
|
|
|
37621
37732
|
* @returns {VotingBuilder}
|
|
37622
37733
|
*/
|
|
37623
37734
|
static new() {
|
|
37624
|
-
const ret = wasm.
|
|
37735
|
+
const ret = wasm.votingbuilder_new();
|
|
37625
37736
|
return VotingBuilder.__wrap(ret);
|
|
37626
37737
|
}
|
|
37627
37738
|
/**
|
|
@@ -38395,7 +38506,7 @@ class VotingProposalBuilder {
|
|
|
38395
38506
|
* @returns {VotingProposalBuilder}
|
|
38396
38507
|
*/
|
|
38397
38508
|
static new() {
|
|
38398
|
-
const ret = wasm.
|
|
38509
|
+
const ret = wasm.costmdls_new();
|
|
38399
38510
|
return VotingProposalBuilder.__wrap(ret);
|
|
38400
38511
|
}
|
|
38401
38512
|
/**
|
|
@@ -38638,14 +38749,14 @@ class VotingProposals {
|
|
|
38638
38749
|
* @returns {VotingProposals}
|
|
38639
38750
|
*/
|
|
38640
38751
|
static new() {
|
|
38641
|
-
const ret = wasm.
|
|
38752
|
+
const ret = wasm.certificates_new();
|
|
38642
38753
|
return VotingProposals.__wrap(ret);
|
|
38643
38754
|
}
|
|
38644
38755
|
/**
|
|
38645
38756
|
* @returns {number}
|
|
38646
38757
|
*/
|
|
38647
38758
|
len() {
|
|
38648
|
-
const ret = wasm.
|
|
38759
|
+
const ret = wasm.certificates_len(this.__wbg_ptr);
|
|
38649
38760
|
return ret >>> 0;
|
|
38650
38761
|
}
|
|
38651
38762
|
/**
|
|
@@ -39073,6 +39184,21 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
39073
39184
|
return ret;
|
|
39074
39185
|
};
|
|
39075
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
|
+
|
|
39076
39202
|
module.exports.__wbindgen_is_string = function(arg0) {
|
|
39077
39203
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
39078
39204
|
return ret;
|
|
@@ -39215,6 +39341,36 @@ module.exports.__wbg_new_d9bc3a0147634640 = function() {
|
|
|
39215
39341
|
return addHeapObject(ret);
|
|
39216
39342
|
};
|
|
39217
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
|
+
|
|
39218
39374
|
module.exports.__wbg_call_27c0f87801dedf93 = function() { return handleError(function (arg0, arg1) {
|
|
39219
39375
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
39220
39376
|
return addHeapObject(ret);
|
|
@@ -39249,6 +39405,11 @@ module.exports.__wbg_set_d4638f722068f043 = function(arg0, arg1, arg2) {
|
|
|
39249
39405
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
39250
39406
|
};
|
|
39251
39407
|
|
|
39408
|
+
module.exports.__wbg_isArray_2ab64d95e09ea0ae = function(arg0) {
|
|
39409
|
+
const ret = Array.isArray(getObject(arg0));
|
|
39410
|
+
return ret;
|
|
39411
|
+
};
|
|
39412
|
+
|
|
39252
39413
|
module.exports.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2 = function(arg0) {
|
|
39253
39414
|
let result;
|
|
39254
39415
|
try {
|
|
@@ -39335,11 +39496,6 @@ module.exports.__wbg_call_eae29933372a39be = function(arg0, arg1) {
|
|
|
39335
39496
|
return addHeapObject(ret);
|
|
39336
39497
|
};
|
|
39337
39498
|
|
|
39338
|
-
module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
39339
|
-
const ret = getObject(arg0) === getObject(arg1);
|
|
39340
|
-
return ret;
|
|
39341
|
-
};
|
|
39342
|
-
|
|
39343
39499
|
module.exports.__wbg_self_e0b3266d2d9eba1a = function(arg0) {
|
|
39344
39500
|
const ret = getObject(arg0).self;
|
|
39345
39501
|
return addHeapObject(ret);
|
|
@@ -39368,6 +39524,13 @@ module.exports.__wbg_getRandomValues_02639197c8166a96 = function(arg0, arg1, arg
|
|
|
39368
39524
|
getObject(arg0).getRandomValues(getArrayU8FromWasm0(arg1, arg2));
|
|
39369
39525
|
};
|
|
39370
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
|
+
|
|
39371
39534
|
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
39372
39535
|
const ret = debugString(getObject(arg1));
|
|
39373
39536
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|