@anastasia-labs/cardano-multiplatform-lib-nodejs 6.0.0-9 → 6.0.1-1
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/cardano_multiplatform_lib.d.ts +335 -335
- package/cardano_multiplatform_lib.js +847 -845
- package/cardano_multiplatform_lib_bg.wasm +0 -0
- package/package.json +1 -1
|
@@ -217,30 +217,66 @@ function _assertClass(instance, klass) {
|
|
|
217
217
|
}
|
|
218
218
|
return instance.ptr;
|
|
219
219
|
}
|
|
220
|
+
|
|
221
|
+
let cachedUint16ArrayMemory0 = null;
|
|
222
|
+
|
|
223
|
+
function getUint16ArrayMemory0() {
|
|
224
|
+
if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
|
|
225
|
+
cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
|
|
226
|
+
}
|
|
227
|
+
return cachedUint16ArrayMemory0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
function getArrayU16FromWasm0(ptr, len) {
|
|
231
|
+
ptr = ptr >>> 0;
|
|
232
|
+
return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
function passArray16ToWasm0(arg, malloc) {
|
|
236
|
+
const ptr = malloc(arg.length * 2, 2) >>> 0;
|
|
237
|
+
getUint16ArrayMemory0().set(arg, ptr / 2);
|
|
238
|
+
WASM_VECTOR_LEN = arg.length;
|
|
239
|
+
return ptr;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
function isLikeNone(x) {
|
|
243
|
+
return x === undefined || x === null;
|
|
244
|
+
}
|
|
220
245
|
/**
|
|
221
|
-
*
|
|
222
|
-
* @
|
|
246
|
+
* encodes arbitrary bytes into chunks of 64 bytes (the limit for bytes) as a list to be valid Metadata
|
|
247
|
+
* @param {Uint8Array} bytes
|
|
248
|
+
* @returns {TransactionMetadatum}
|
|
223
249
|
*/
|
|
224
|
-
module.exports.
|
|
250
|
+
module.exports.encode_arbitrary_bytes_as_metadatum = function(bytes) {
|
|
251
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
252
|
+
const len0 = WASM_VECTOR_LEN;
|
|
253
|
+
const ret = wasm.encode_arbitrary_bytes_as_metadatum(ptr0, len0);
|
|
254
|
+
return TransactionMetadatum.__wrap(ret);
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* decodes from chunks of bytes in a list to a byte vector if that is the metadata format, otherwise returns None
|
|
259
|
+
* @param {TransactionMetadatum} metadata
|
|
260
|
+
* @returns {Uint8Array | undefined}
|
|
261
|
+
*/
|
|
262
|
+
module.exports.decode_arbitrary_bytes_from_metadatum = function(metadata) {
|
|
225
263
|
try {
|
|
226
264
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
227
|
-
_assertClass(
|
|
228
|
-
wasm.
|
|
265
|
+
_assertClass(metadata, TransactionMetadatum);
|
|
266
|
+
wasm.decode_arbitrary_bytes_from_metadatum(retptr, metadata.__wbg_ptr);
|
|
229
267
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
230
268
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
231
|
-
|
|
232
|
-
if (
|
|
233
|
-
|
|
269
|
+
let v1;
|
|
270
|
+
if (r0 !== 0) {
|
|
271
|
+
v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
272
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
234
273
|
}
|
|
235
|
-
return
|
|
274
|
+
return v1;
|
|
236
275
|
} finally {
|
|
237
276
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
238
277
|
}
|
|
239
278
|
};
|
|
240
279
|
|
|
241
|
-
function isLikeNone(x) {
|
|
242
|
-
return x === undefined || x === null;
|
|
243
|
-
}
|
|
244
280
|
/**
|
|
245
281
|
* @param {AuxiliaryData} auxiliary_data
|
|
246
282
|
* @returns {AuxiliaryDataHash}
|
|
@@ -489,95 +525,6 @@ module.exports.min_fee = function(tx, linear_fee, ex_unit_prices, total_ref_scri
|
|
|
489
525
|
}
|
|
490
526
|
};
|
|
491
527
|
|
|
492
|
-
/**
|
|
493
|
-
* @param {TransactionOutput} output
|
|
494
|
-
* @param {bigint} coins_per_utxo_byte
|
|
495
|
-
* @returns {bigint}
|
|
496
|
-
*/
|
|
497
|
-
module.exports.min_ada_required = function(output, coins_per_utxo_byte) {
|
|
498
|
-
try {
|
|
499
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
500
|
-
_assertClass(output, TransactionOutput);
|
|
501
|
-
wasm.min_ada_required(retptr, output.__wbg_ptr, coins_per_utxo_byte);
|
|
502
|
-
var r0 = getDataViewMemory0().getBigInt64(retptr + 8 * 0, true);
|
|
503
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
504
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
505
|
-
if (r3) {
|
|
506
|
-
throw takeObject(r2);
|
|
507
|
-
}
|
|
508
|
-
return BigInt.asUintN(64, r0);
|
|
509
|
-
} finally {
|
|
510
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
511
|
-
}
|
|
512
|
-
};
|
|
513
|
-
|
|
514
|
-
/**
|
|
515
|
-
* encodes arbitrary bytes into chunks of 64 bytes (the limit for bytes) as a list to be valid Metadata
|
|
516
|
-
* @param {Uint8Array} bytes
|
|
517
|
-
* @returns {TransactionMetadatum}
|
|
518
|
-
*/
|
|
519
|
-
module.exports.encode_arbitrary_bytes_as_metadatum = function(bytes) {
|
|
520
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
521
|
-
const len0 = WASM_VECTOR_LEN;
|
|
522
|
-
const ret = wasm.encode_arbitrary_bytes_as_metadatum(ptr0, len0);
|
|
523
|
-
return TransactionMetadatum.__wrap(ret);
|
|
524
|
-
};
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* decodes from chunks of bytes in a list to a byte vector if that is the metadata format, otherwise returns None
|
|
528
|
-
* @param {TransactionMetadatum} metadata
|
|
529
|
-
* @returns {Uint8Array | undefined}
|
|
530
|
-
*/
|
|
531
|
-
module.exports.decode_arbitrary_bytes_from_metadatum = function(metadata) {
|
|
532
|
-
try {
|
|
533
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
534
|
-
_assertClass(metadata, TransactionMetadatum);
|
|
535
|
-
wasm.decode_arbitrary_bytes_from_metadatum(retptr, metadata.__wbg_ptr);
|
|
536
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
537
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
538
|
-
let v1;
|
|
539
|
-
if (r0 !== 0) {
|
|
540
|
-
v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
541
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
542
|
-
}
|
|
543
|
-
return v1;
|
|
544
|
-
} finally {
|
|
545
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
546
|
-
}
|
|
547
|
-
};
|
|
548
|
-
|
|
549
|
-
let cachedUint16ArrayMemory0 = null;
|
|
550
|
-
|
|
551
|
-
function getUint16ArrayMemory0() {
|
|
552
|
-
if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
|
|
553
|
-
cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
|
|
554
|
-
}
|
|
555
|
-
return cachedUint16ArrayMemory0;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
function getArrayU16FromWasm0(ptr, len) {
|
|
559
|
-
ptr = ptr >>> 0;
|
|
560
|
-
return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
function passArray16ToWasm0(arg, malloc) {
|
|
564
|
-
const ptr = malloc(arg.length * 2, 2) >>> 0;
|
|
565
|
-
getUint16ArrayMemory0().set(arg, ptr / 2);
|
|
566
|
-
WASM_VECTOR_LEN = arg.length;
|
|
567
|
-
return ptr;
|
|
568
|
-
}
|
|
569
|
-
/**
|
|
570
|
-
* @param {TransactionHash} tx_body_hash
|
|
571
|
-
* @param {PrivateKey} sk
|
|
572
|
-
* @returns {Vkeywitness}
|
|
573
|
-
*/
|
|
574
|
-
module.exports.make_vkey_witness = function(tx_body_hash, sk) {
|
|
575
|
-
_assertClass(tx_body_hash, TransactionHash);
|
|
576
|
-
_assertClass(sk, PrivateKey);
|
|
577
|
-
const ret = wasm.make_vkey_witness(tx_body_hash.__wbg_ptr, sk.__wbg_ptr);
|
|
578
|
-
return Vkeywitness.__wrap(ret);
|
|
579
|
-
};
|
|
580
|
-
|
|
581
528
|
/**
|
|
582
529
|
* Converts JSON to Metadata according to MetadataJsonSchema
|
|
583
530
|
* @param {string} json
|
|
@@ -634,6 +581,27 @@ module.exports.decode_metadatum_to_json_str = function(metadatum, schema) {
|
|
|
634
581
|
}
|
|
635
582
|
};
|
|
636
583
|
|
|
584
|
+
/**
|
|
585
|
+
* @param {Redeemers} redeemers
|
|
586
|
+
* @returns {ExUnits}
|
|
587
|
+
*/
|
|
588
|
+
module.exports.compute_total_ex_units = function(redeemers) {
|
|
589
|
+
try {
|
|
590
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
591
|
+
_assertClass(redeemers, Redeemers);
|
|
592
|
+
wasm.compute_total_ex_units(retptr, redeemers.__wbg_ptr);
|
|
593
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
594
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
595
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
596
|
+
if (r2) {
|
|
597
|
+
throw takeObject(r1);
|
|
598
|
+
}
|
|
599
|
+
return ExUnits.__wrap(r0);
|
|
600
|
+
} finally {
|
|
601
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
602
|
+
}
|
|
603
|
+
};
|
|
604
|
+
|
|
637
605
|
/**
|
|
638
606
|
* @param {TransactionHash} tx_body_hash
|
|
639
607
|
* @param {ByronAddress} addr
|
|
@@ -664,6 +632,40 @@ module.exports.make_icarus_bootstrap_witness = function(tx_body_hash, addr, key)
|
|
|
664
632
|
return BootstrapWitness.__wrap(ret);
|
|
665
633
|
};
|
|
666
634
|
|
|
635
|
+
/**
|
|
636
|
+
* @param {TransactionHash} tx_body_hash
|
|
637
|
+
* @param {PrivateKey} sk
|
|
638
|
+
* @returns {Vkeywitness}
|
|
639
|
+
*/
|
|
640
|
+
module.exports.make_vkey_witness = function(tx_body_hash, sk) {
|
|
641
|
+
_assertClass(tx_body_hash, TransactionHash);
|
|
642
|
+
_assertClass(sk, PrivateKey);
|
|
643
|
+
const ret = wasm.make_vkey_witness(tx_body_hash.__wbg_ptr, sk.__wbg_ptr);
|
|
644
|
+
return Vkeywitness.__wrap(ret);
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* @param {TransactionOutput} output
|
|
649
|
+
* @param {bigint} coins_per_utxo_byte
|
|
650
|
+
* @returns {bigint}
|
|
651
|
+
*/
|
|
652
|
+
module.exports.min_ada_required = function(output, coins_per_utxo_byte) {
|
|
653
|
+
try {
|
|
654
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
655
|
+
_assertClass(output, TransactionOutput);
|
|
656
|
+
wasm.min_ada_required(retptr, output.__wbg_ptr, coins_per_utxo_byte);
|
|
657
|
+
var r0 = getDataViewMemory0().getBigInt64(retptr + 8 * 0, true);
|
|
658
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
659
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
660
|
+
if (r3) {
|
|
661
|
+
throw takeObject(r2);
|
|
662
|
+
}
|
|
663
|
+
return BigInt.asUintN(64, r0);
|
|
664
|
+
} finally {
|
|
665
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
666
|
+
}
|
|
667
|
+
};
|
|
668
|
+
|
|
667
669
|
let cachedUint32ArrayMemory0 = null;
|
|
668
670
|
|
|
669
671
|
function getUint32ArrayMemory0() {
|
|
@@ -767,51 +769,59 @@ function getArrayU64FromWasm0(ptr, len) {
|
|
|
767
769
|
}
|
|
768
770
|
/**
|
|
769
771
|
*/
|
|
770
|
-
module.exports.
|
|
772
|
+
module.exports.RedeemersKind = Object.freeze({ ArrLegacyRedeemer:0,"0":"ArrLegacyRedeemer",MapRedeemerKeyToRedeemerVal:1,"1":"MapRedeemerKeyToRedeemerVal", });
|
|
773
|
+
/**
|
|
774
|
+
*/
|
|
775
|
+
module.exports.Language = Object.freeze({ PlutusV1:0,"0":"PlutusV1",PlutusV2:1,"1":"PlutusV2",PlutusV3:2,"2":"PlutusV3", });
|
|
776
|
+
/**
|
|
777
|
+
*/
|
|
778
|
+
module.exports.AuxiliaryDataKind = Object.freeze({ Shelley:0,"0":"Shelley",ShelleyMA:1,"1":"ShelleyMA",Conway:2,"2":"Conway", });
|
|
771
779
|
/**
|
|
772
780
|
*/
|
|
773
781
|
module.exports.MetadataJsonSchema = Object.freeze({ NoConversions:0,"0":"NoConversions",BasicConversions:1,"1":"BasicConversions",DetailedSchema:2,"2":"DetailedSchema", });
|
|
774
782
|
/**
|
|
775
|
-
* Which version of the CIP25 spec to use. See CIP25 for details.
|
|
776
|
-
* This will change how things are encoded but for the most part contains
|
|
777
|
-
* the same information.
|
|
778
783
|
*/
|
|
779
|
-
module.exports.
|
|
784
|
+
module.exports.ScriptKind = Object.freeze({ Native:0,"0":"Native",PlutusV1:1,"1":"PlutusV1",PlutusV2:2,"2":"PlutusV2",PlutusV3:3,"3":"PlutusV3", });
|
|
780
785
|
/**
|
|
781
|
-
*
|
|
786
|
+
* Careful: this enum doesn't include the network ID part of the header
|
|
787
|
+
* ex: base address isn't 0b0000_0000 but instead 0b0000
|
|
788
|
+
* Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
|
|
782
789
|
*/
|
|
783
|
-
|
|
790
|
+
module.exports.AddressHeaderKind = Object.freeze({ BasePaymentKeyStakeKey:0,"0":"BasePaymentKeyStakeKey",BasePaymentScriptStakeKey:1,"1":"BasePaymentScriptStakeKey",BasePaymentKeyStakeScript:2,"2":"BasePaymentKeyStakeScript",BasePaymentScriptStakeScript:3,"3":"BasePaymentScriptStakeScript",PointerKey:4,"4":"PointerKey",PointerScript:5,"5":"PointerScript",EnterpriseKey:6,"6":"EnterpriseKey",EnterpriseScript:7,"7":"EnterpriseScript",Byron:8,"8":"Byron",RewardKey:14,"14":"RewardKey",RewardScript:15,"15":"RewardScript", });
|
|
784
791
|
/**
|
|
785
|
-
* Second version of CIP25. Supports any type of asset names.
|
|
786
792
|
*/
|
|
787
|
-
|
|
793
|
+
module.exports.RedeemerTag = Object.freeze({ Spend:0,"0":"Spend",Mint:1,"1":"Mint",Cert:2,"2":"Cert",Reward:3,"3":"Reward",Voting:4,"4":"Voting",Proposing:5,"5":"Proposing", });
|
|
788
794
|
/**
|
|
789
795
|
*/
|
|
790
|
-
module.exports.
|
|
796
|
+
module.exports.StakeDistributionKind = Object.freeze({ SingleKey:0,"0":"SingleKey",BootstrapEra:1,"1":"BootstrapEra", });
|
|
791
797
|
/**
|
|
792
798
|
*/
|
|
793
|
-
module.exports.
|
|
799
|
+
module.exports.Vote = Object.freeze({ No:0,"0":"No",Yes:1,"1":"Yes",Abstain:2,"2":"Abstain", });
|
|
794
800
|
/**
|
|
795
801
|
*/
|
|
796
|
-
module.exports.
|
|
802
|
+
module.exports.CoinSelectionStrategyCIP2 = Object.freeze({
|
|
797
803
|
/**
|
|
804
|
+
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
798
805
|
*/
|
|
799
|
-
|
|
806
|
+
LargestFirst:0,"0":"LargestFirst",
|
|
800
807
|
/**
|
|
808
|
+
* Performs CIP2's Random Improve ada-only selection. Will error if outputs contain non-ADA assets.
|
|
801
809
|
*/
|
|
802
|
-
|
|
810
|
+
RandomImprove:1,"1":"RandomImprove",
|
|
803
811
|
/**
|
|
812
|
+
* Same as LargestFirst, but before adding ADA, will insert by largest-first for each asset type.
|
|
804
813
|
*/
|
|
805
|
-
|
|
814
|
+
LargestFirstMultiAsset:2,"2":"LargestFirstMultiAsset",
|
|
806
815
|
/**
|
|
816
|
+
* Same as RandomImprove, but before adding ADA, will insert by random-improve for each asset type.
|
|
807
817
|
*/
|
|
808
|
-
|
|
818
|
+
RandomImproveMultiAsset:3,"3":"RandomImproveMultiAsset", });
|
|
809
819
|
/**
|
|
810
820
|
*/
|
|
811
|
-
module.exports.
|
|
821
|
+
module.exports.AddressKind = Object.freeze({ Base:0,"0":"Base",Ptr:1,"1":"Ptr",Enterprise:2,"2":"Enterprise",Reward:3,"3":"Reward",Byron:4,"4":"Byron", });
|
|
812
822
|
/**
|
|
813
823
|
*/
|
|
814
|
-
module.exports.
|
|
824
|
+
module.exports.TransactionMetadatumKind = Object.freeze({ Map:0,"0":"Map",List:1,"1":"List",Int:2,"2":"Int",Bytes:3,"3":"Bytes",Text:4,"4":"Text", });
|
|
815
825
|
/**
|
|
816
826
|
* JSON <-> PlutusData conversion schemas.
|
|
817
827
|
* Follows ScriptDataJsonSchema in cardano-cli defined at:
|
|
@@ -865,74 +875,66 @@ BasicConversions:0,"0":"BasicConversions",
|
|
|
865
875
|
DetailedSchema:1,"1":"DetailedSchema", });
|
|
866
876
|
/**
|
|
867
877
|
*/
|
|
868
|
-
module.exports.
|
|
869
|
-
/**
|
|
870
|
-
*/
|
|
871
|
-
module.exports.RedeemerTag = Object.freeze({ Spend:0,"0":"Spend",Mint:1,"1":"Mint",Cert:2,"2":"Cert",Reward:3,"3":"Reward",Voting:4,"4":"Voting",Proposing:5,"5":"Proposing", });
|
|
872
|
-
/**
|
|
873
|
-
*/
|
|
874
|
-
module.exports.CredentialKind = Object.freeze({ PubKey:0,"0":"PubKey",Script:1,"1":"Script", });
|
|
878
|
+
module.exports.NativeScriptKind = Object.freeze({ ScriptPubkey:0,"0":"ScriptPubkey",ScriptAll:1,"1":"ScriptAll",ScriptAny:2,"2":"ScriptAny",ScriptNOfK:3,"3":"ScriptNOfK",ScriptInvalidBefore:4,"4":"ScriptInvalidBefore",ScriptInvalidHereafter:5,"5":"ScriptInvalidHereafter", });
|
|
875
879
|
/**
|
|
876
880
|
*/
|
|
877
|
-
module.exports.
|
|
881
|
+
module.exports.ChunkableStringKind = Object.freeze({ Single:0,"0":"Single",Chunked:1,"1":"Chunked", });
|
|
878
882
|
/**
|
|
879
883
|
*/
|
|
880
884
|
module.exports.DRepKind = Object.freeze({ Key:0,"0":"Key",Script:1,"1":"Script",AlwaysAbstain:2,"2":"AlwaysAbstain",AlwaysNoConfidence:3,"3":"AlwaysNoConfidence", });
|
|
881
885
|
/**
|
|
882
886
|
*/
|
|
883
|
-
module.exports.
|
|
884
|
-
/**
|
|
885
|
-
* Careful: this enum doesn't include the network ID part of the header
|
|
886
|
-
* ex: base address isn't 0b0000_0000 but instead 0b0000
|
|
887
|
-
* Use `header_matches_kind` if you don't want to implement the bitwise operators yourself
|
|
888
|
-
*/
|
|
889
|
-
module.exports.AddressHeaderKind = Object.freeze({ BasePaymentKeyStakeKey:0,"0":"BasePaymentKeyStakeKey",BasePaymentScriptStakeKey:1,"1":"BasePaymentScriptStakeKey",BasePaymentKeyStakeScript:2,"2":"BasePaymentKeyStakeScript",BasePaymentScriptStakeScript:3,"3":"BasePaymentScriptStakeScript",PointerKey:4,"4":"PointerKey",PointerScript:5,"5":"PointerScript",EnterpriseKey:6,"6":"EnterpriseKey",EnterpriseScript:7,"7":"EnterpriseScript",Byron:8,"8":"Byron",RewardKey:14,"14":"RewardKey",RewardScript:15,"15":"RewardScript", });
|
|
887
|
+
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", });
|
|
890
888
|
/**
|
|
891
889
|
*/
|
|
892
|
-
module.exports.
|
|
890
|
+
module.exports.ByronAddrType = Object.freeze({ PublicKey:0,"0":"PublicKey",Script:1,"1":"Script",Redeem:2,"2":"Redeem", });
|
|
893
891
|
/**
|
|
894
892
|
*/
|
|
895
893
|
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",RegCert:5,"5":"RegCert",UnregCert:6,"6":"UnregCert",VoteDelegCert:7,"7":"VoteDelegCert",StakeVoteDelegCert:8,"8":"StakeVoteDelegCert",StakeRegDelegCert:9,"9":"StakeRegDelegCert",VoteRegDelegCert:10,"10":"VoteRegDelegCert",StakeVoteRegDelegCert:11,"11":"StakeVoteRegDelegCert",AuthCommitteeHotCert:12,"12":"AuthCommitteeHotCert",ResignCommitteeColdCert:13,"13":"ResignCommitteeColdCert",RegDrepCert:14,"14":"RegDrepCert",UnregDrepCert:15,"15":"UnregDrepCert",UpdateDrepCert:16,"16":"UpdateDrepCert", });
|
|
896
894
|
/**
|
|
897
895
|
*/
|
|
898
|
-
module.exports.
|
|
896
|
+
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", });
|
|
899
897
|
/**
|
|
900
898
|
*/
|
|
901
899
|
module.exports.DelegationDistributionKind = Object.freeze({ Weighted:0,"0":"Weighted",Legacy:1,"1":"Legacy", });
|
|
902
900
|
/**
|
|
903
901
|
*/
|
|
904
|
-
module.exports.
|
|
902
|
+
module.exports.RelayKind = Object.freeze({ SingleHostAddr:0,"0":"SingleHostAddr",SingleHostName:1,"1":"SingleHostName",MultiHostName:2,"2":"MultiHostName", });
|
|
905
903
|
/**
|
|
906
904
|
*/
|
|
907
|
-
module.exports.
|
|
905
|
+
module.exports.CredentialKind = Object.freeze({ PubKey:0,"0":"PubKey",Script:1,"1":"Script", });
|
|
908
906
|
/**
|
|
909
907
|
*/
|
|
910
|
-
module.exports.
|
|
908
|
+
module.exports.ChangeSelectionAlgo = Object.freeze({ Default:0,"0":"Default", });
|
|
911
909
|
/**
|
|
912
910
|
*/
|
|
913
|
-
module.exports.
|
|
911
|
+
module.exports.SpendingDataKind = Object.freeze({ SpendingDataPubKey:0,"0":"SpendingDataPubKey",SpendingDataScript:1,"1":"SpendingDataScript",SpendingDataRedeem:2,"2":"SpendingDataRedeem", });
|
|
914
912
|
/**
|
|
915
913
|
*/
|
|
916
|
-
module.exports.
|
|
914
|
+
module.exports.TransactionOutputKind = Object.freeze({ AlonzoFormatTxOut:0,"0":"AlonzoFormatTxOut",ConwayFormatTxOut:1,"1":"ConwayFormatTxOut", });
|
|
917
915
|
/**
|
|
918
|
-
* Performs CIP2's Largest First ada-only selection. Will error if outputs contain non-ADA assets.
|
|
919
916
|
*/
|
|
920
|
-
|
|
917
|
+
module.exports.NonceKind = Object.freeze({ Identity:0,"0":"Identity",Hash:1,"1":"Hash", });
|
|
921
918
|
/**
|
|
922
|
-
*
|
|
919
|
+
* Which version of the CIP25 spec to use. See CIP25 for details.
|
|
920
|
+
* This will change how things are encoded but for the most part contains
|
|
921
|
+
* the same information.
|
|
923
922
|
*/
|
|
924
|
-
|
|
923
|
+
module.exports.CIP25Version = Object.freeze({
|
|
925
924
|
/**
|
|
926
|
-
*
|
|
925
|
+
* Initial version of CIP25 with only string (utf8) asset names allowed.
|
|
927
926
|
*/
|
|
928
|
-
|
|
927
|
+
V1:0,"0":"V1",
|
|
929
928
|
/**
|
|
930
|
-
*
|
|
929
|
+
* Second version of CIP25. Supports any type of asset names.
|
|
931
930
|
*/
|
|
932
|
-
|
|
931
|
+
V2:1,"1":"V2", });
|
|
933
932
|
/**
|
|
934
933
|
*/
|
|
935
|
-
module.exports.
|
|
934
|
+
module.exports.GovActionKind = Object.freeze({ ParameterChangeAction:0,"0":"ParameterChangeAction",HardForkInitiationAction:1,"1":"HardForkInitiationAction",TreasuryWithdrawalsAction:2,"2":"TreasuryWithdrawalsAction",NoConfidence:3,"3":"NoConfidence",UpdateCommittee:4,"4":"UpdateCommittee",NewConstitution:5,"5":"NewConstitution",InfoAction:6,"6":"InfoAction", });
|
|
935
|
+
/**
|
|
936
|
+
*/
|
|
937
|
+
module.exports.DatumOptionKind = Object.freeze({ Hash:0,"0":"Hash",Datum:1,"1":"Datum", });
|
|
936
938
|
|
|
937
939
|
const AddrAttributesFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
938
940
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2630,149 +2632,6 @@ class AssetName {
|
|
|
2630
2632
|
}
|
|
2631
2633
|
/**
|
|
2632
2634
|
*
|
|
2633
|
-
* * Create an AssetName from utf8 string. 64 byte (not char!) maximum.
|
|
2634
|
-
*
|
|
2635
|
-
* @param {string} utf8_str
|
|
2636
|
-
* @returns {AssetName}
|
|
2637
|
-
*/
|
|
2638
|
-
static from_str(utf8_str) {
|
|
2639
|
-
try {
|
|
2640
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2641
|
-
const ptr0 = passStringToWasm0(utf8_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2642
|
-
const len0 = WASM_VECTOR_LEN;
|
|
2643
|
-
wasm.assetname_from_str(retptr, ptr0, len0);
|
|
2644
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2645
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2646
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2647
|
-
if (r2) {
|
|
2648
|
-
throw takeObject(r1);
|
|
2649
|
-
}
|
|
2650
|
-
return AssetName.__wrap(r0);
|
|
2651
|
-
} finally {
|
|
2652
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2653
|
-
}
|
|
2654
|
-
}
|
|
2655
|
-
/**
|
|
2656
|
-
*
|
|
2657
|
-
* * AssetName as a utf8 string if it's possible. Will error if the asset is not utf8
|
|
2658
|
-
*
|
|
2659
|
-
* @returns {string}
|
|
2660
|
-
*/
|
|
2661
|
-
to_str() {
|
|
2662
|
-
let deferred2_0;
|
|
2663
|
-
let deferred2_1;
|
|
2664
|
-
try {
|
|
2665
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2666
|
-
wasm.assetname_to_str(retptr, this.__wbg_ptr);
|
|
2667
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2668
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2669
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2670
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
2671
|
-
var ptr1 = r0;
|
|
2672
|
-
var len1 = r1;
|
|
2673
|
-
if (r3) {
|
|
2674
|
-
ptr1 = 0; len1 = 0;
|
|
2675
|
-
throw takeObject(r2);
|
|
2676
|
-
}
|
|
2677
|
-
deferred2_0 = ptr1;
|
|
2678
|
-
deferred2_1 = len1;
|
|
2679
|
-
return getStringFromWasm0(ptr1, len1);
|
|
2680
|
-
} finally {
|
|
2681
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2682
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
2683
|
-
}
|
|
2684
|
-
}
|
|
2685
|
-
/**
|
|
2686
|
-
*
|
|
2687
|
-
* * Direct raw bytes without any CBOR structure
|
|
2688
|
-
*
|
|
2689
|
-
* @returns {Uint8Array}
|
|
2690
|
-
*/
|
|
2691
|
-
to_raw_bytes() {
|
|
2692
|
-
try {
|
|
2693
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2694
|
-
wasm.assetname_to_raw_bytes(retptr, this.__wbg_ptr);
|
|
2695
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2696
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2697
|
-
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
2698
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
2699
|
-
return v1;
|
|
2700
|
-
} finally {
|
|
2701
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2702
|
-
}
|
|
2703
|
-
}
|
|
2704
|
-
/**
|
|
2705
|
-
*
|
|
2706
|
-
* * Parse from the direct raw bytes, without any CBOR structure
|
|
2707
|
-
*
|
|
2708
|
-
* @param {Uint8Array} bytes
|
|
2709
|
-
* @returns {AssetName}
|
|
2710
|
-
*/
|
|
2711
|
-
static from_raw_bytes(bytes) {
|
|
2712
|
-
try {
|
|
2713
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2714
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
2715
|
-
const len0 = WASM_VECTOR_LEN;
|
|
2716
|
-
wasm.assetname_from_raw_bytes(retptr, ptr0, len0);
|
|
2717
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2718
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2719
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2720
|
-
if (r2) {
|
|
2721
|
-
throw takeObject(r1);
|
|
2722
|
-
}
|
|
2723
|
-
return AssetName.__wrap(r0);
|
|
2724
|
-
} finally {
|
|
2725
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2726
|
-
}
|
|
2727
|
-
}
|
|
2728
|
-
/**
|
|
2729
|
-
*
|
|
2730
|
-
* * Direct raw bytes without any CBOR structure, as a hex-encoded string
|
|
2731
|
-
*
|
|
2732
|
-
* @returns {string}
|
|
2733
|
-
*/
|
|
2734
|
-
to_hex() {
|
|
2735
|
-
let deferred1_0;
|
|
2736
|
-
let deferred1_1;
|
|
2737
|
-
try {
|
|
2738
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2739
|
-
wasm.assetname_to_hex(retptr, this.__wbg_ptr);
|
|
2740
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2741
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2742
|
-
deferred1_0 = r0;
|
|
2743
|
-
deferred1_1 = r1;
|
|
2744
|
-
return getStringFromWasm0(r0, r1);
|
|
2745
|
-
} finally {
|
|
2746
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2747
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2748
|
-
}
|
|
2749
|
-
}
|
|
2750
|
-
/**
|
|
2751
|
-
*
|
|
2752
|
-
* * Parse from a hex string of the direct raw bytes, without any CBOR structure
|
|
2753
|
-
*
|
|
2754
|
-
* @param {string} input
|
|
2755
|
-
* @returns {AssetName}
|
|
2756
|
-
*/
|
|
2757
|
-
static from_hex(input) {
|
|
2758
|
-
try {
|
|
2759
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2760
|
-
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2761
|
-
const len0 = WASM_VECTOR_LEN;
|
|
2762
|
-
wasm.assetname_from_hex(retptr, ptr0, len0);
|
|
2763
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2764
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2765
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2766
|
-
if (r2) {
|
|
2767
|
-
throw takeObject(r1);
|
|
2768
|
-
}
|
|
2769
|
-
return AssetName.__wrap(r0);
|
|
2770
|
-
} finally {
|
|
2771
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2772
|
-
}
|
|
2773
|
-
}
|
|
2774
|
-
/**
|
|
2775
|
-
*
|
|
2776
2635
|
* * Serialize this type to CBOR bytes
|
|
2777
2636
|
* * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
|
|
2778
2637
|
* * If created from scratch the CBOR will be canonical.
|
|
@@ -2972,6 +2831,149 @@ class AssetName {
|
|
|
2972
2831
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2973
2832
|
}
|
|
2974
2833
|
}
|
|
2834
|
+
/**
|
|
2835
|
+
*
|
|
2836
|
+
* * Create an AssetName from utf8 string. 64 byte (not char!) maximum.
|
|
2837
|
+
*
|
|
2838
|
+
* @param {string} utf8_str
|
|
2839
|
+
* @returns {AssetName}
|
|
2840
|
+
*/
|
|
2841
|
+
static from_str(utf8_str) {
|
|
2842
|
+
try {
|
|
2843
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2844
|
+
const ptr0 = passStringToWasm0(utf8_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2845
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2846
|
+
wasm.assetname_from_str(retptr, ptr0, len0);
|
|
2847
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2848
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2849
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2850
|
+
if (r2) {
|
|
2851
|
+
throw takeObject(r1);
|
|
2852
|
+
}
|
|
2853
|
+
return AssetName.__wrap(r0);
|
|
2854
|
+
} finally {
|
|
2855
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2856
|
+
}
|
|
2857
|
+
}
|
|
2858
|
+
/**
|
|
2859
|
+
*
|
|
2860
|
+
* * AssetName as a utf8 string if it's possible. Will error if the asset is not utf8
|
|
2861
|
+
*
|
|
2862
|
+
* @returns {string}
|
|
2863
|
+
*/
|
|
2864
|
+
to_str() {
|
|
2865
|
+
let deferred2_0;
|
|
2866
|
+
let deferred2_1;
|
|
2867
|
+
try {
|
|
2868
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2869
|
+
wasm.assetname_to_str(retptr, this.__wbg_ptr);
|
|
2870
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2871
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2872
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2873
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
2874
|
+
var ptr1 = r0;
|
|
2875
|
+
var len1 = r1;
|
|
2876
|
+
if (r3) {
|
|
2877
|
+
ptr1 = 0; len1 = 0;
|
|
2878
|
+
throw takeObject(r2);
|
|
2879
|
+
}
|
|
2880
|
+
deferred2_0 = ptr1;
|
|
2881
|
+
deferred2_1 = len1;
|
|
2882
|
+
return getStringFromWasm0(ptr1, len1);
|
|
2883
|
+
} finally {
|
|
2884
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2885
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
2886
|
+
}
|
|
2887
|
+
}
|
|
2888
|
+
/**
|
|
2889
|
+
*
|
|
2890
|
+
* * Direct raw bytes without any CBOR structure
|
|
2891
|
+
*
|
|
2892
|
+
* @returns {Uint8Array}
|
|
2893
|
+
*/
|
|
2894
|
+
to_raw_bytes() {
|
|
2895
|
+
try {
|
|
2896
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2897
|
+
wasm.assetname_to_raw_bytes(retptr, this.__wbg_ptr);
|
|
2898
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2899
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2900
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
2901
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
2902
|
+
return v1;
|
|
2903
|
+
} finally {
|
|
2904
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2905
|
+
}
|
|
2906
|
+
}
|
|
2907
|
+
/**
|
|
2908
|
+
*
|
|
2909
|
+
* * Parse from the direct raw bytes, without any CBOR structure
|
|
2910
|
+
*
|
|
2911
|
+
* @param {Uint8Array} bytes
|
|
2912
|
+
* @returns {AssetName}
|
|
2913
|
+
*/
|
|
2914
|
+
static from_raw_bytes(bytes) {
|
|
2915
|
+
try {
|
|
2916
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2917
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
2918
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2919
|
+
wasm.assetname_from_raw_bytes(retptr, ptr0, len0);
|
|
2920
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2921
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2922
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2923
|
+
if (r2) {
|
|
2924
|
+
throw takeObject(r1);
|
|
2925
|
+
}
|
|
2926
|
+
return AssetName.__wrap(r0);
|
|
2927
|
+
} finally {
|
|
2928
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2929
|
+
}
|
|
2930
|
+
}
|
|
2931
|
+
/**
|
|
2932
|
+
*
|
|
2933
|
+
* * Direct raw bytes without any CBOR structure, as a hex-encoded string
|
|
2934
|
+
*
|
|
2935
|
+
* @returns {string}
|
|
2936
|
+
*/
|
|
2937
|
+
to_hex() {
|
|
2938
|
+
let deferred1_0;
|
|
2939
|
+
let deferred1_1;
|
|
2940
|
+
try {
|
|
2941
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2942
|
+
wasm.assetname_to_hex(retptr, this.__wbg_ptr);
|
|
2943
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2944
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2945
|
+
deferred1_0 = r0;
|
|
2946
|
+
deferred1_1 = r1;
|
|
2947
|
+
return getStringFromWasm0(r0, r1);
|
|
2948
|
+
} finally {
|
|
2949
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2950
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2951
|
+
}
|
|
2952
|
+
}
|
|
2953
|
+
/**
|
|
2954
|
+
*
|
|
2955
|
+
* * Parse from a hex string of the direct raw bytes, without any CBOR structure
|
|
2956
|
+
*
|
|
2957
|
+
* @param {string} input
|
|
2958
|
+
* @returns {AssetName}
|
|
2959
|
+
*/
|
|
2960
|
+
static from_hex(input) {
|
|
2961
|
+
try {
|
|
2962
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2963
|
+
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2964
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2965
|
+
wasm.assetname_from_hex(retptr, ptr0, len0);
|
|
2966
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2967
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2968
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2969
|
+
if (r2) {
|
|
2970
|
+
throw takeObject(r1);
|
|
2971
|
+
}
|
|
2972
|
+
return AssetName.__wrap(r0);
|
|
2973
|
+
} finally {
|
|
2974
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2975
|
+
}
|
|
2976
|
+
}
|
|
2975
2977
|
}
|
|
2976
2978
|
module.exports.AssetName = AssetName;
|
|
2977
2979
|
|
|
@@ -3315,262 +3317,6 @@ class AuxiliaryData {
|
|
|
3315
3317
|
wasm.__wbg_auxiliarydata_free(ptr, 0);
|
|
3316
3318
|
}
|
|
3317
3319
|
/**
|
|
3318
|
-
*
|
|
3319
|
-
* * Serialize this type to CBOR bytes
|
|
3320
|
-
* * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
|
|
3321
|
-
* * If created from scratch the CBOR will be canonical.
|
|
3322
|
-
*
|
|
3323
|
-
* @returns {Uint8Array}
|
|
3324
|
-
*/
|
|
3325
|
-
to_cbor_bytes() {
|
|
3326
|
-
try {
|
|
3327
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3328
|
-
wasm.auxiliarydata_to_cbor_bytes(retptr, this.__wbg_ptr);
|
|
3329
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3330
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3331
|
-
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
3332
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
3333
|
-
return v1;
|
|
3334
|
-
} finally {
|
|
3335
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3336
|
-
}
|
|
3337
|
-
}
|
|
3338
|
-
/**
|
|
3339
|
-
*
|
|
3340
|
-
* * Serialize this type to CBOR bytes using canonical CBOR encodings
|
|
3341
|
-
*
|
|
3342
|
-
* @returns {Uint8Array}
|
|
3343
|
-
*/
|
|
3344
|
-
to_canonical_cbor_bytes() {
|
|
3345
|
-
try {
|
|
3346
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3347
|
-
wasm.auxiliarydata_to_canonical_cbor_bytes(retptr, this.__wbg_ptr);
|
|
3348
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3349
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3350
|
-
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
3351
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
3352
|
-
return v1;
|
|
3353
|
-
} finally {
|
|
3354
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3355
|
-
}
|
|
3356
|
-
}
|
|
3357
|
-
/**
|
|
3358
|
-
*
|
|
3359
|
-
* * Create this type from CBOR bytes
|
|
3360
|
-
*
|
|
3361
|
-
* @param {Uint8Array} cbor_bytes
|
|
3362
|
-
* @returns {AuxiliaryData}
|
|
3363
|
-
*/
|
|
3364
|
-
static from_cbor_bytes(cbor_bytes) {
|
|
3365
|
-
try {
|
|
3366
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3367
|
-
const ptr0 = passArray8ToWasm0(cbor_bytes, wasm.__wbindgen_malloc);
|
|
3368
|
-
const len0 = WASM_VECTOR_LEN;
|
|
3369
|
-
wasm.auxiliarydata_from_cbor_bytes(retptr, ptr0, len0);
|
|
3370
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3371
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3372
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
3373
|
-
if (r2) {
|
|
3374
|
-
throw takeObject(r1);
|
|
3375
|
-
}
|
|
3376
|
-
return AuxiliaryData.__wrap(r0);
|
|
3377
|
-
} finally {
|
|
3378
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3379
|
-
}
|
|
3380
|
-
}
|
|
3381
|
-
/**
|
|
3382
|
-
*
|
|
3383
|
-
* * Serialize this type to CBOR bytes encoded as a hex string (useful for working with CIP30).
|
|
3384
|
-
* * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
|
|
3385
|
-
* * If created from scratch the CBOR will be canonical.
|
|
3386
|
-
*
|
|
3387
|
-
* @returns {string}
|
|
3388
|
-
*/
|
|
3389
|
-
to_cbor_hex() {
|
|
3390
|
-
let deferred1_0;
|
|
3391
|
-
let deferred1_1;
|
|
3392
|
-
try {
|
|
3393
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3394
|
-
wasm.auxiliarydata_to_cbor_hex(retptr, this.__wbg_ptr);
|
|
3395
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3396
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3397
|
-
deferred1_0 = r0;
|
|
3398
|
-
deferred1_1 = r1;
|
|
3399
|
-
return getStringFromWasm0(r0, r1);
|
|
3400
|
-
} finally {
|
|
3401
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3402
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3403
|
-
}
|
|
3404
|
-
}
|
|
3405
|
-
/**
|
|
3406
|
-
*
|
|
3407
|
-
* * Serialize this type to CBOR bytes using canonical CBOR encodings as hex bytes
|
|
3408
|
-
*
|
|
3409
|
-
* @returns {string}
|
|
3410
|
-
*/
|
|
3411
|
-
to_canonical_cbor_hex() {
|
|
3412
|
-
let deferred1_0;
|
|
3413
|
-
let deferred1_1;
|
|
3414
|
-
try {
|
|
3415
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3416
|
-
wasm.auxiliarydata_to_canonical_cbor_hex(retptr, this.__wbg_ptr);
|
|
3417
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3418
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3419
|
-
deferred1_0 = r0;
|
|
3420
|
-
deferred1_1 = r1;
|
|
3421
|
-
return getStringFromWasm0(r0, r1);
|
|
3422
|
-
} finally {
|
|
3423
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3424
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3425
|
-
}
|
|
3426
|
-
}
|
|
3427
|
-
/**
|
|
3428
|
-
*
|
|
3429
|
-
* * Create this type from the CBOR bytes encoded as a hex string.
|
|
3430
|
-
* * This is useful for interfacing with CIP30
|
|
3431
|
-
*
|
|
3432
|
-
* @param {string} cbor_bytes
|
|
3433
|
-
* @returns {AuxiliaryData}
|
|
3434
|
-
*/
|
|
3435
|
-
static from_cbor_hex(cbor_bytes) {
|
|
3436
|
-
try {
|
|
3437
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3438
|
-
const ptr0 = passStringToWasm0(cbor_bytes, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3439
|
-
const len0 = WASM_VECTOR_LEN;
|
|
3440
|
-
wasm.auxiliarydata_from_cbor_hex(retptr, ptr0, len0);
|
|
3441
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3442
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3443
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
3444
|
-
if (r2) {
|
|
3445
|
-
throw takeObject(r1);
|
|
3446
|
-
}
|
|
3447
|
-
return AuxiliaryData.__wrap(r0);
|
|
3448
|
-
} finally {
|
|
3449
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3450
|
-
}
|
|
3451
|
-
}
|
|
3452
|
-
/**
|
|
3453
|
-
* @returns {string}
|
|
3454
|
-
*/
|
|
3455
|
-
to_json() {
|
|
3456
|
-
let deferred2_0;
|
|
3457
|
-
let deferred2_1;
|
|
3458
|
-
try {
|
|
3459
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3460
|
-
wasm.auxiliarydata_to_json(retptr, this.__wbg_ptr);
|
|
3461
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3462
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3463
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
3464
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
3465
|
-
var ptr1 = r0;
|
|
3466
|
-
var len1 = r1;
|
|
3467
|
-
if (r3) {
|
|
3468
|
-
ptr1 = 0; len1 = 0;
|
|
3469
|
-
throw takeObject(r2);
|
|
3470
|
-
}
|
|
3471
|
-
deferred2_0 = ptr1;
|
|
3472
|
-
deferred2_1 = len1;
|
|
3473
|
-
return getStringFromWasm0(ptr1, len1);
|
|
3474
|
-
} finally {
|
|
3475
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3476
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
3477
|
-
}
|
|
3478
|
-
}
|
|
3479
|
-
/**
|
|
3480
|
-
* @returns {any}
|
|
3481
|
-
*/
|
|
3482
|
-
to_js_value() {
|
|
3483
|
-
try {
|
|
3484
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3485
|
-
wasm.auxiliarydata_to_js_value(retptr, this.__wbg_ptr);
|
|
3486
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3487
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3488
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
3489
|
-
if (r2) {
|
|
3490
|
-
throw takeObject(r1);
|
|
3491
|
-
}
|
|
3492
|
-
return takeObject(r0);
|
|
3493
|
-
} finally {
|
|
3494
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3495
|
-
}
|
|
3496
|
-
}
|
|
3497
|
-
/**
|
|
3498
|
-
* @param {string} json
|
|
3499
|
-
* @returns {AuxiliaryData}
|
|
3500
|
-
*/
|
|
3501
|
-
static from_json(json) {
|
|
3502
|
-
try {
|
|
3503
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3504
|
-
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3505
|
-
const len0 = WASM_VECTOR_LEN;
|
|
3506
|
-
wasm.auxiliarydata_from_json(retptr, ptr0, len0);
|
|
3507
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3508
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3509
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
3510
|
-
if (r2) {
|
|
3511
|
-
throw takeObject(r1);
|
|
3512
|
-
}
|
|
3513
|
-
return AuxiliaryData.__wrap(r0);
|
|
3514
|
-
} finally {
|
|
3515
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3516
|
-
}
|
|
3517
|
-
}
|
|
3518
|
-
/**
|
|
3519
|
-
* @param {Metadata} shelley
|
|
3520
|
-
* @returns {AuxiliaryData}
|
|
3521
|
-
*/
|
|
3522
|
-
static new_shelley(shelley) {
|
|
3523
|
-
_assertClass(shelley, Metadata);
|
|
3524
|
-
const ret = wasm.auxiliarydata_new_shelley(shelley.__wbg_ptr);
|
|
3525
|
-
return AuxiliaryData.__wrap(ret);
|
|
3526
|
-
}
|
|
3527
|
-
/**
|
|
3528
|
-
* @param {ShelleyMAFormatAuxData} shelley_ma
|
|
3529
|
-
* @returns {AuxiliaryData}
|
|
3530
|
-
*/
|
|
3531
|
-
static new_shelley_ma(shelley_ma) {
|
|
3532
|
-
_assertClass(shelley_ma, ShelleyMAFormatAuxData);
|
|
3533
|
-
const ret = wasm.auxiliarydata_new_shelley_ma(shelley_ma.__wbg_ptr);
|
|
3534
|
-
return AuxiliaryData.__wrap(ret);
|
|
3535
|
-
}
|
|
3536
|
-
/**
|
|
3537
|
-
* @param {ConwayFormatAuxData} conway
|
|
3538
|
-
* @returns {AuxiliaryData}
|
|
3539
|
-
*/
|
|
3540
|
-
static new_conway(conway) {
|
|
3541
|
-
_assertClass(conway, ConwayFormatAuxData);
|
|
3542
|
-
const ret = wasm.auxiliarydata_new_conway(conway.__wbg_ptr);
|
|
3543
|
-
return AuxiliaryData.__wrap(ret);
|
|
3544
|
-
}
|
|
3545
|
-
/**
|
|
3546
|
-
* @returns {AuxiliaryDataKind}
|
|
3547
|
-
*/
|
|
3548
|
-
kind() {
|
|
3549
|
-
const ret = wasm.auxiliarydata_kind(this.__wbg_ptr);
|
|
3550
|
-
return ret;
|
|
3551
|
-
}
|
|
3552
|
-
/**
|
|
3553
|
-
* @returns {Metadata | undefined}
|
|
3554
|
-
*/
|
|
3555
|
-
as_shelley() {
|
|
3556
|
-
const ret = wasm.auxiliarydata_as_shelley(this.__wbg_ptr);
|
|
3557
|
-
return ret === 0 ? undefined : Metadata.__wrap(ret);
|
|
3558
|
-
}
|
|
3559
|
-
/**
|
|
3560
|
-
* @returns {ShelleyMAFormatAuxData | undefined}
|
|
3561
|
-
*/
|
|
3562
|
-
as_shelley_ma() {
|
|
3563
|
-
const ret = wasm.auxiliarydata_as_shelley_ma(this.__wbg_ptr);
|
|
3564
|
-
return ret === 0 ? undefined : ShelleyMAFormatAuxData.__wrap(ret);
|
|
3565
|
-
}
|
|
3566
|
-
/**
|
|
3567
|
-
* @returns {ConwayFormatAuxData | undefined}
|
|
3568
|
-
*/
|
|
3569
|
-
as_conway() {
|
|
3570
|
-
const ret = wasm.auxiliarydata_as_conway(this.__wbg_ptr);
|
|
3571
|
-
return ret === 0 ? undefined : ConwayFormatAuxData.__wrap(ret);
|
|
3572
|
-
}
|
|
3573
|
-
/**
|
|
3574
3320
|
* @returns {AuxiliaryData}
|
|
3575
3321
|
*/
|
|
3576
3322
|
static new() {
|
|
@@ -3648,6 +3394,262 @@ class AuxiliaryData {
|
|
|
3648
3394
|
_assertClass(other, AuxiliaryData);
|
|
3649
3395
|
wasm.auxiliarydata_add(this.__wbg_ptr, other.__wbg_ptr);
|
|
3650
3396
|
}
|
|
3397
|
+
/**
|
|
3398
|
+
*
|
|
3399
|
+
* * Serialize this type to CBOR bytes
|
|
3400
|
+
* * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
|
|
3401
|
+
* * If created from scratch the CBOR will be canonical.
|
|
3402
|
+
*
|
|
3403
|
+
* @returns {Uint8Array}
|
|
3404
|
+
*/
|
|
3405
|
+
to_cbor_bytes() {
|
|
3406
|
+
try {
|
|
3407
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3408
|
+
wasm.auxiliarydata_to_cbor_bytes(retptr, this.__wbg_ptr);
|
|
3409
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3410
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3411
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
3412
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
3413
|
+
return v1;
|
|
3414
|
+
} finally {
|
|
3415
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3416
|
+
}
|
|
3417
|
+
}
|
|
3418
|
+
/**
|
|
3419
|
+
*
|
|
3420
|
+
* * Serialize this type to CBOR bytes using canonical CBOR encodings
|
|
3421
|
+
*
|
|
3422
|
+
* @returns {Uint8Array}
|
|
3423
|
+
*/
|
|
3424
|
+
to_canonical_cbor_bytes() {
|
|
3425
|
+
try {
|
|
3426
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3427
|
+
wasm.auxiliarydata_to_canonical_cbor_bytes(retptr, this.__wbg_ptr);
|
|
3428
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3429
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3430
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
3431
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
3432
|
+
return v1;
|
|
3433
|
+
} finally {
|
|
3434
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3435
|
+
}
|
|
3436
|
+
}
|
|
3437
|
+
/**
|
|
3438
|
+
*
|
|
3439
|
+
* * Create this type from CBOR bytes
|
|
3440
|
+
*
|
|
3441
|
+
* @param {Uint8Array} cbor_bytes
|
|
3442
|
+
* @returns {AuxiliaryData}
|
|
3443
|
+
*/
|
|
3444
|
+
static from_cbor_bytes(cbor_bytes) {
|
|
3445
|
+
try {
|
|
3446
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3447
|
+
const ptr0 = passArray8ToWasm0(cbor_bytes, wasm.__wbindgen_malloc);
|
|
3448
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3449
|
+
wasm.auxiliarydata_from_cbor_bytes(retptr, ptr0, len0);
|
|
3450
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3451
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3452
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
3453
|
+
if (r2) {
|
|
3454
|
+
throw takeObject(r1);
|
|
3455
|
+
}
|
|
3456
|
+
return AuxiliaryData.__wrap(r0);
|
|
3457
|
+
} finally {
|
|
3458
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3459
|
+
}
|
|
3460
|
+
}
|
|
3461
|
+
/**
|
|
3462
|
+
*
|
|
3463
|
+
* * Serialize this type to CBOR bytes encoded as a hex string (useful for working with CIP30).
|
|
3464
|
+
* * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
|
|
3465
|
+
* * If created from scratch the CBOR will be canonical.
|
|
3466
|
+
*
|
|
3467
|
+
* @returns {string}
|
|
3468
|
+
*/
|
|
3469
|
+
to_cbor_hex() {
|
|
3470
|
+
let deferred1_0;
|
|
3471
|
+
let deferred1_1;
|
|
3472
|
+
try {
|
|
3473
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3474
|
+
wasm.auxiliarydata_to_cbor_hex(retptr, this.__wbg_ptr);
|
|
3475
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3476
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3477
|
+
deferred1_0 = r0;
|
|
3478
|
+
deferred1_1 = r1;
|
|
3479
|
+
return getStringFromWasm0(r0, r1);
|
|
3480
|
+
} finally {
|
|
3481
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3482
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3483
|
+
}
|
|
3484
|
+
}
|
|
3485
|
+
/**
|
|
3486
|
+
*
|
|
3487
|
+
* * Serialize this type to CBOR bytes using canonical CBOR encodings as hex bytes
|
|
3488
|
+
*
|
|
3489
|
+
* @returns {string}
|
|
3490
|
+
*/
|
|
3491
|
+
to_canonical_cbor_hex() {
|
|
3492
|
+
let deferred1_0;
|
|
3493
|
+
let deferred1_1;
|
|
3494
|
+
try {
|
|
3495
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3496
|
+
wasm.auxiliarydata_to_canonical_cbor_hex(retptr, this.__wbg_ptr);
|
|
3497
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3498
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3499
|
+
deferred1_0 = r0;
|
|
3500
|
+
deferred1_1 = r1;
|
|
3501
|
+
return getStringFromWasm0(r0, r1);
|
|
3502
|
+
} finally {
|
|
3503
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3504
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3505
|
+
}
|
|
3506
|
+
}
|
|
3507
|
+
/**
|
|
3508
|
+
*
|
|
3509
|
+
* * Create this type from the CBOR bytes encoded as a hex string.
|
|
3510
|
+
* * This is useful for interfacing with CIP30
|
|
3511
|
+
*
|
|
3512
|
+
* @param {string} cbor_bytes
|
|
3513
|
+
* @returns {AuxiliaryData}
|
|
3514
|
+
*/
|
|
3515
|
+
static from_cbor_hex(cbor_bytes) {
|
|
3516
|
+
try {
|
|
3517
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3518
|
+
const ptr0 = passStringToWasm0(cbor_bytes, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3519
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3520
|
+
wasm.auxiliarydata_from_cbor_hex(retptr, ptr0, len0);
|
|
3521
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3522
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3523
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
3524
|
+
if (r2) {
|
|
3525
|
+
throw takeObject(r1);
|
|
3526
|
+
}
|
|
3527
|
+
return AuxiliaryData.__wrap(r0);
|
|
3528
|
+
} finally {
|
|
3529
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3530
|
+
}
|
|
3531
|
+
}
|
|
3532
|
+
/**
|
|
3533
|
+
* @returns {string}
|
|
3534
|
+
*/
|
|
3535
|
+
to_json() {
|
|
3536
|
+
let deferred2_0;
|
|
3537
|
+
let deferred2_1;
|
|
3538
|
+
try {
|
|
3539
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3540
|
+
wasm.auxiliarydata_to_json(retptr, this.__wbg_ptr);
|
|
3541
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3542
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3543
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
3544
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
3545
|
+
var ptr1 = r0;
|
|
3546
|
+
var len1 = r1;
|
|
3547
|
+
if (r3) {
|
|
3548
|
+
ptr1 = 0; len1 = 0;
|
|
3549
|
+
throw takeObject(r2);
|
|
3550
|
+
}
|
|
3551
|
+
deferred2_0 = ptr1;
|
|
3552
|
+
deferred2_1 = len1;
|
|
3553
|
+
return getStringFromWasm0(ptr1, len1);
|
|
3554
|
+
} finally {
|
|
3555
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3556
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
3557
|
+
}
|
|
3558
|
+
}
|
|
3559
|
+
/**
|
|
3560
|
+
* @returns {any}
|
|
3561
|
+
*/
|
|
3562
|
+
to_js_value() {
|
|
3563
|
+
try {
|
|
3564
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3565
|
+
wasm.auxiliarydata_to_js_value(retptr, this.__wbg_ptr);
|
|
3566
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3567
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3568
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
3569
|
+
if (r2) {
|
|
3570
|
+
throw takeObject(r1);
|
|
3571
|
+
}
|
|
3572
|
+
return takeObject(r0);
|
|
3573
|
+
} finally {
|
|
3574
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3575
|
+
}
|
|
3576
|
+
}
|
|
3577
|
+
/**
|
|
3578
|
+
* @param {string} json
|
|
3579
|
+
* @returns {AuxiliaryData}
|
|
3580
|
+
*/
|
|
3581
|
+
static from_json(json) {
|
|
3582
|
+
try {
|
|
3583
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3584
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3585
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3586
|
+
wasm.auxiliarydata_from_json(retptr, ptr0, len0);
|
|
3587
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3588
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3589
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
3590
|
+
if (r2) {
|
|
3591
|
+
throw takeObject(r1);
|
|
3592
|
+
}
|
|
3593
|
+
return AuxiliaryData.__wrap(r0);
|
|
3594
|
+
} finally {
|
|
3595
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3596
|
+
}
|
|
3597
|
+
}
|
|
3598
|
+
/**
|
|
3599
|
+
* @param {Metadata} shelley
|
|
3600
|
+
* @returns {AuxiliaryData}
|
|
3601
|
+
*/
|
|
3602
|
+
static new_shelley(shelley) {
|
|
3603
|
+
_assertClass(shelley, Metadata);
|
|
3604
|
+
const ret = wasm.auxiliarydata_new_shelley(shelley.__wbg_ptr);
|
|
3605
|
+
return AuxiliaryData.__wrap(ret);
|
|
3606
|
+
}
|
|
3607
|
+
/**
|
|
3608
|
+
* @param {ShelleyMAFormatAuxData} shelley_ma
|
|
3609
|
+
* @returns {AuxiliaryData}
|
|
3610
|
+
*/
|
|
3611
|
+
static new_shelley_ma(shelley_ma) {
|
|
3612
|
+
_assertClass(shelley_ma, ShelleyMAFormatAuxData);
|
|
3613
|
+
const ret = wasm.auxiliarydata_new_shelley_ma(shelley_ma.__wbg_ptr);
|
|
3614
|
+
return AuxiliaryData.__wrap(ret);
|
|
3615
|
+
}
|
|
3616
|
+
/**
|
|
3617
|
+
* @param {ConwayFormatAuxData} conway
|
|
3618
|
+
* @returns {AuxiliaryData}
|
|
3619
|
+
*/
|
|
3620
|
+
static new_conway(conway) {
|
|
3621
|
+
_assertClass(conway, ConwayFormatAuxData);
|
|
3622
|
+
const ret = wasm.auxiliarydata_new_conway(conway.__wbg_ptr);
|
|
3623
|
+
return AuxiliaryData.__wrap(ret);
|
|
3624
|
+
}
|
|
3625
|
+
/**
|
|
3626
|
+
* @returns {AuxiliaryDataKind}
|
|
3627
|
+
*/
|
|
3628
|
+
kind() {
|
|
3629
|
+
const ret = wasm.auxiliarydata_kind(this.__wbg_ptr);
|
|
3630
|
+
return ret;
|
|
3631
|
+
}
|
|
3632
|
+
/**
|
|
3633
|
+
* @returns {Metadata | undefined}
|
|
3634
|
+
*/
|
|
3635
|
+
as_shelley() {
|
|
3636
|
+
const ret = wasm.auxiliarydata_as_shelley(this.__wbg_ptr);
|
|
3637
|
+
return ret === 0 ? undefined : Metadata.__wrap(ret);
|
|
3638
|
+
}
|
|
3639
|
+
/**
|
|
3640
|
+
* @returns {ShelleyMAFormatAuxData | undefined}
|
|
3641
|
+
*/
|
|
3642
|
+
as_shelley_ma() {
|
|
3643
|
+
const ret = wasm.auxiliarydata_as_shelley_ma(this.__wbg_ptr);
|
|
3644
|
+
return ret === 0 ? undefined : ShelleyMAFormatAuxData.__wrap(ret);
|
|
3645
|
+
}
|
|
3646
|
+
/**
|
|
3647
|
+
* @returns {ConwayFormatAuxData | undefined}
|
|
3648
|
+
*/
|
|
3649
|
+
as_conway() {
|
|
3650
|
+
const ret = wasm.auxiliarydata_as_conway(this.__wbg_ptr);
|
|
3651
|
+
return ret === 0 ? undefined : ConwayFormatAuxData.__wrap(ret);
|
|
3652
|
+
}
|
|
3651
3653
|
}
|
|
3652
3654
|
module.exports.AuxiliaryData = AuxiliaryData;
|
|
3653
3655
|
|
|
@@ -19917,6 +19919,34 @@ class NativeScript {
|
|
|
19917
19919
|
wasm.__wbg_nativescript_free(ptr, 0);
|
|
19918
19920
|
}
|
|
19919
19921
|
/**
|
|
19922
|
+
* Returns an array of unique Ed25519KeyHashes
|
|
19923
|
+
* contained within this script recursively on any depth level.
|
|
19924
|
+
* The order of the keys in the result is not determined in any way.
|
|
19925
|
+
* @returns {Ed25519KeyHashList}
|
|
19926
|
+
*/
|
|
19927
|
+
get_required_signers() {
|
|
19928
|
+
const ret = wasm.nativescript_get_required_signers(this.__wbg_ptr);
|
|
19929
|
+
return Ed25519KeyHashList.__wrap(ret);
|
|
19930
|
+
}
|
|
19931
|
+
/**
|
|
19932
|
+
* @returns {ScriptHash}
|
|
19933
|
+
*/
|
|
19934
|
+
hash() {
|
|
19935
|
+
const ret = wasm.nativescript_hash(this.__wbg_ptr);
|
|
19936
|
+
return ScriptHash.__wrap(ret);
|
|
19937
|
+
}
|
|
19938
|
+
/**
|
|
19939
|
+
* @param {bigint | undefined} lower_bound
|
|
19940
|
+
* @param {bigint | undefined} upper_bound
|
|
19941
|
+
* @param {Ed25519KeyHashList} key_hashes
|
|
19942
|
+
* @returns {boolean}
|
|
19943
|
+
*/
|
|
19944
|
+
verify(lower_bound, upper_bound, key_hashes) {
|
|
19945
|
+
_assertClass(key_hashes, Ed25519KeyHashList);
|
|
19946
|
+
const ret = wasm.nativescript_verify(this.__wbg_ptr, !isLikeNone(lower_bound), isLikeNone(lower_bound) ? BigInt(0) : lower_bound, !isLikeNone(upper_bound), isLikeNone(upper_bound) ? BigInt(0) : upper_bound, key_hashes.__wbg_ptr);
|
|
19947
|
+
return ret !== 0;
|
|
19948
|
+
}
|
|
19949
|
+
/**
|
|
19920
19950
|
*
|
|
19921
19951
|
* * Serialize this type to CBOR bytes
|
|
19922
19952
|
* * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
|
|
@@ -20221,34 +20251,6 @@ class NativeScript {
|
|
|
20221
20251
|
const ret = wasm.nativescript_as_script_invalid_hereafter(this.__wbg_ptr);
|
|
20222
20252
|
return ret === 0 ? undefined : ScriptInvalidHereafter.__wrap(ret);
|
|
20223
20253
|
}
|
|
20224
|
-
/**
|
|
20225
|
-
* Returns an array of unique Ed25519KeyHashes
|
|
20226
|
-
* contained within this script recursively on any depth level.
|
|
20227
|
-
* The order of the keys in the result is not determined in any way.
|
|
20228
|
-
* @returns {Ed25519KeyHashList}
|
|
20229
|
-
*/
|
|
20230
|
-
get_required_signers() {
|
|
20231
|
-
const ret = wasm.nativescript_get_required_signers(this.__wbg_ptr);
|
|
20232
|
-
return Ed25519KeyHashList.__wrap(ret);
|
|
20233
|
-
}
|
|
20234
|
-
/**
|
|
20235
|
-
* @returns {ScriptHash}
|
|
20236
|
-
*/
|
|
20237
|
-
hash() {
|
|
20238
|
-
const ret = wasm.nativescript_hash(this.__wbg_ptr);
|
|
20239
|
-
return ScriptHash.__wrap(ret);
|
|
20240
|
-
}
|
|
20241
|
-
/**
|
|
20242
|
-
* @param {bigint | undefined} lower_bound
|
|
20243
|
-
* @param {bigint | undefined} upper_bound
|
|
20244
|
-
* @param {Ed25519KeyHashList} key_hashes
|
|
20245
|
-
* @returns {boolean}
|
|
20246
|
-
*/
|
|
20247
|
-
verify(lower_bound, upper_bound, key_hashes) {
|
|
20248
|
-
_assertClass(key_hashes, Ed25519KeyHashList);
|
|
20249
|
-
const ret = wasm.nativescript_verify(this.__wbg_ptr, !isLikeNone(lower_bound), isLikeNone(lower_bound) ? BigInt(0) : lower_bound, !isLikeNone(upper_bound), isLikeNone(upper_bound) ? BigInt(0) : upper_bound, key_hashes.__wbg_ptr);
|
|
20250
|
-
return ret !== 0;
|
|
20251
|
-
}
|
|
20252
20254
|
}
|
|
20253
20255
|
module.exports.NativeScript = NativeScript;
|
|
20254
20256
|
|
|
@@ -38566,246 +38568,6 @@ class TransactionOutput {
|
|
|
38566
38568
|
wasm.__wbg_transactionoutput_free(ptr, 0);
|
|
38567
38569
|
}
|
|
38568
38570
|
/**
|
|
38569
|
-
*
|
|
38570
|
-
* * Serialize this type to CBOR bytes
|
|
38571
|
-
* * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
|
|
38572
|
-
* * If created from scratch the CBOR will be canonical.
|
|
38573
|
-
*
|
|
38574
|
-
* @returns {Uint8Array}
|
|
38575
|
-
*/
|
|
38576
|
-
to_cbor_bytes() {
|
|
38577
|
-
try {
|
|
38578
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
38579
|
-
wasm.transactionoutput_to_cbor_bytes(retptr, this.__wbg_ptr);
|
|
38580
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
38581
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
38582
|
-
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
38583
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
38584
|
-
return v1;
|
|
38585
|
-
} finally {
|
|
38586
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
38587
|
-
}
|
|
38588
|
-
}
|
|
38589
|
-
/**
|
|
38590
|
-
*
|
|
38591
|
-
* * Serialize this type to CBOR bytes using canonical CBOR encodings
|
|
38592
|
-
*
|
|
38593
|
-
* @returns {Uint8Array}
|
|
38594
|
-
*/
|
|
38595
|
-
to_canonical_cbor_bytes() {
|
|
38596
|
-
try {
|
|
38597
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
38598
|
-
wasm.transactionoutput_to_canonical_cbor_bytes(retptr, this.__wbg_ptr);
|
|
38599
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
38600
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
38601
|
-
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
38602
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
38603
|
-
return v1;
|
|
38604
|
-
} finally {
|
|
38605
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
38606
|
-
}
|
|
38607
|
-
}
|
|
38608
|
-
/**
|
|
38609
|
-
*
|
|
38610
|
-
* * Create this type from CBOR bytes
|
|
38611
|
-
*
|
|
38612
|
-
* @param {Uint8Array} cbor_bytes
|
|
38613
|
-
* @returns {TransactionOutput}
|
|
38614
|
-
*/
|
|
38615
|
-
static from_cbor_bytes(cbor_bytes) {
|
|
38616
|
-
try {
|
|
38617
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
38618
|
-
const ptr0 = passArray8ToWasm0(cbor_bytes, wasm.__wbindgen_malloc);
|
|
38619
|
-
const len0 = WASM_VECTOR_LEN;
|
|
38620
|
-
wasm.transactionoutput_from_cbor_bytes(retptr, ptr0, len0);
|
|
38621
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
38622
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
38623
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
38624
|
-
if (r2) {
|
|
38625
|
-
throw takeObject(r1);
|
|
38626
|
-
}
|
|
38627
|
-
return TransactionOutput.__wrap(r0);
|
|
38628
|
-
} finally {
|
|
38629
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
38630
|
-
}
|
|
38631
|
-
}
|
|
38632
|
-
/**
|
|
38633
|
-
*
|
|
38634
|
-
* * Serialize this type to CBOR bytes encoded as a hex string (useful for working with CIP30).
|
|
38635
|
-
* * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
|
|
38636
|
-
* * If created from scratch the CBOR will be canonical.
|
|
38637
|
-
*
|
|
38638
|
-
* @returns {string}
|
|
38639
|
-
*/
|
|
38640
|
-
to_cbor_hex() {
|
|
38641
|
-
let deferred1_0;
|
|
38642
|
-
let deferred1_1;
|
|
38643
|
-
try {
|
|
38644
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
38645
|
-
wasm.transactionoutput_to_cbor_hex(retptr, this.__wbg_ptr);
|
|
38646
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
38647
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
38648
|
-
deferred1_0 = r0;
|
|
38649
|
-
deferred1_1 = r1;
|
|
38650
|
-
return getStringFromWasm0(r0, r1);
|
|
38651
|
-
} finally {
|
|
38652
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
38653
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
38654
|
-
}
|
|
38655
|
-
}
|
|
38656
|
-
/**
|
|
38657
|
-
*
|
|
38658
|
-
* * Serialize this type to CBOR bytes using canonical CBOR encodings as hex bytes
|
|
38659
|
-
*
|
|
38660
|
-
* @returns {string}
|
|
38661
|
-
*/
|
|
38662
|
-
to_canonical_cbor_hex() {
|
|
38663
|
-
let deferred1_0;
|
|
38664
|
-
let deferred1_1;
|
|
38665
|
-
try {
|
|
38666
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
38667
|
-
wasm.transactionoutput_to_canonical_cbor_hex(retptr, this.__wbg_ptr);
|
|
38668
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
38669
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
38670
|
-
deferred1_0 = r0;
|
|
38671
|
-
deferred1_1 = r1;
|
|
38672
|
-
return getStringFromWasm0(r0, r1);
|
|
38673
|
-
} finally {
|
|
38674
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
38675
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
38676
|
-
}
|
|
38677
|
-
}
|
|
38678
|
-
/**
|
|
38679
|
-
*
|
|
38680
|
-
* * Create this type from the CBOR bytes encoded as a hex string.
|
|
38681
|
-
* * This is useful for interfacing with CIP30
|
|
38682
|
-
*
|
|
38683
|
-
* @param {string} cbor_bytes
|
|
38684
|
-
* @returns {TransactionOutput}
|
|
38685
|
-
*/
|
|
38686
|
-
static from_cbor_hex(cbor_bytes) {
|
|
38687
|
-
try {
|
|
38688
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
38689
|
-
const ptr0 = passStringToWasm0(cbor_bytes, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
38690
|
-
const len0 = WASM_VECTOR_LEN;
|
|
38691
|
-
wasm.transactionoutput_from_cbor_hex(retptr, ptr0, len0);
|
|
38692
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
38693
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
38694
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
38695
|
-
if (r2) {
|
|
38696
|
-
throw takeObject(r1);
|
|
38697
|
-
}
|
|
38698
|
-
return TransactionOutput.__wrap(r0);
|
|
38699
|
-
} finally {
|
|
38700
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
38701
|
-
}
|
|
38702
|
-
}
|
|
38703
|
-
/**
|
|
38704
|
-
* @returns {string}
|
|
38705
|
-
*/
|
|
38706
|
-
to_json() {
|
|
38707
|
-
let deferred2_0;
|
|
38708
|
-
let deferred2_1;
|
|
38709
|
-
try {
|
|
38710
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
38711
|
-
wasm.transactionoutput_to_json(retptr, this.__wbg_ptr);
|
|
38712
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
38713
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
38714
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
38715
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
38716
|
-
var ptr1 = r0;
|
|
38717
|
-
var len1 = r1;
|
|
38718
|
-
if (r3) {
|
|
38719
|
-
ptr1 = 0; len1 = 0;
|
|
38720
|
-
throw takeObject(r2);
|
|
38721
|
-
}
|
|
38722
|
-
deferred2_0 = ptr1;
|
|
38723
|
-
deferred2_1 = len1;
|
|
38724
|
-
return getStringFromWasm0(ptr1, len1);
|
|
38725
|
-
} finally {
|
|
38726
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
38727
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
38728
|
-
}
|
|
38729
|
-
}
|
|
38730
|
-
/**
|
|
38731
|
-
* @returns {any}
|
|
38732
|
-
*/
|
|
38733
|
-
to_js_value() {
|
|
38734
|
-
try {
|
|
38735
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
38736
|
-
wasm.transactionoutput_to_js_value(retptr, this.__wbg_ptr);
|
|
38737
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
38738
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
38739
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
38740
|
-
if (r2) {
|
|
38741
|
-
throw takeObject(r1);
|
|
38742
|
-
}
|
|
38743
|
-
return takeObject(r0);
|
|
38744
|
-
} finally {
|
|
38745
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
38746
|
-
}
|
|
38747
|
-
}
|
|
38748
|
-
/**
|
|
38749
|
-
* @param {string} json
|
|
38750
|
-
* @returns {TransactionOutput}
|
|
38751
|
-
*/
|
|
38752
|
-
static from_json(json) {
|
|
38753
|
-
try {
|
|
38754
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
38755
|
-
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
38756
|
-
const len0 = WASM_VECTOR_LEN;
|
|
38757
|
-
wasm.transactionoutput_from_json(retptr, ptr0, len0);
|
|
38758
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
38759
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
38760
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
38761
|
-
if (r2) {
|
|
38762
|
-
throw takeObject(r1);
|
|
38763
|
-
}
|
|
38764
|
-
return TransactionOutput.__wrap(r0);
|
|
38765
|
-
} finally {
|
|
38766
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
38767
|
-
}
|
|
38768
|
-
}
|
|
38769
|
-
/**
|
|
38770
|
-
* @param {AlonzoFormatTxOut} alonzo_format_tx_out
|
|
38771
|
-
* @returns {TransactionOutput}
|
|
38772
|
-
*/
|
|
38773
|
-
static new_alonzo_format_tx_out(alonzo_format_tx_out) {
|
|
38774
|
-
_assertClass(alonzo_format_tx_out, AlonzoFormatTxOut);
|
|
38775
|
-
const ret = wasm.transactionoutput_new_alonzo_format_tx_out(alonzo_format_tx_out.__wbg_ptr);
|
|
38776
|
-
return TransactionOutput.__wrap(ret);
|
|
38777
|
-
}
|
|
38778
|
-
/**
|
|
38779
|
-
* @param {ConwayFormatTxOut} conway_format_tx_out
|
|
38780
|
-
* @returns {TransactionOutput}
|
|
38781
|
-
*/
|
|
38782
|
-
static new_conway_format_tx_out(conway_format_tx_out) {
|
|
38783
|
-
_assertClass(conway_format_tx_out, ConwayFormatTxOut);
|
|
38784
|
-
const ret = wasm.transactionoutput_new_conway_format_tx_out(conway_format_tx_out.__wbg_ptr);
|
|
38785
|
-
return TransactionOutput.__wrap(ret);
|
|
38786
|
-
}
|
|
38787
|
-
/**
|
|
38788
|
-
* @returns {TransactionOutputKind}
|
|
38789
|
-
*/
|
|
38790
|
-
kind() {
|
|
38791
|
-
const ret = wasm.transactionoutput_kind(this.__wbg_ptr);
|
|
38792
|
-
return ret;
|
|
38793
|
-
}
|
|
38794
|
-
/**
|
|
38795
|
-
* @returns {AlonzoFormatTxOut | undefined}
|
|
38796
|
-
*/
|
|
38797
|
-
as_alonzo_format_tx_out() {
|
|
38798
|
-
const ret = wasm.transactionoutput_as_alonzo_format_tx_out(this.__wbg_ptr);
|
|
38799
|
-
return ret === 0 ? undefined : AlonzoFormatTxOut.__wrap(ret);
|
|
38800
|
-
}
|
|
38801
|
-
/**
|
|
38802
|
-
* @returns {ConwayFormatTxOut | undefined}
|
|
38803
|
-
*/
|
|
38804
|
-
as_conway_format_tx_out() {
|
|
38805
|
-
const ret = wasm.transactionoutput_as_conway_format_tx_out(this.__wbg_ptr);
|
|
38806
|
-
return ret === 0 ? undefined : ConwayFormatTxOut.__wrap(ret);
|
|
38807
|
-
}
|
|
38808
|
-
/**
|
|
38809
38571
|
* @param {Address} address
|
|
38810
38572
|
* @param {Value} amount
|
|
38811
38573
|
* @param {DatumOption | undefined} [datum_option]
|
|
@@ -38873,6 +38635,246 @@ class TransactionOutput {
|
|
|
38873
38635
|
const ret = wasm.transactionoutput_script_ref(this.__wbg_ptr);
|
|
38874
38636
|
return ret === 0 ? undefined : Script.__wrap(ret);
|
|
38875
38637
|
}
|
|
38638
|
+
/**
|
|
38639
|
+
*
|
|
38640
|
+
* * Serialize this type to CBOR bytes
|
|
38641
|
+
* * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
|
|
38642
|
+
* * If created from scratch the CBOR will be canonical.
|
|
38643
|
+
*
|
|
38644
|
+
* @returns {Uint8Array}
|
|
38645
|
+
*/
|
|
38646
|
+
to_cbor_bytes() {
|
|
38647
|
+
try {
|
|
38648
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
38649
|
+
wasm.transactionoutput_to_cbor_bytes(retptr, this.__wbg_ptr);
|
|
38650
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
38651
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
38652
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
38653
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
38654
|
+
return v1;
|
|
38655
|
+
} finally {
|
|
38656
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
38657
|
+
}
|
|
38658
|
+
}
|
|
38659
|
+
/**
|
|
38660
|
+
*
|
|
38661
|
+
* * Serialize this type to CBOR bytes using canonical CBOR encodings
|
|
38662
|
+
*
|
|
38663
|
+
* @returns {Uint8Array}
|
|
38664
|
+
*/
|
|
38665
|
+
to_canonical_cbor_bytes() {
|
|
38666
|
+
try {
|
|
38667
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
38668
|
+
wasm.transactionoutput_to_canonical_cbor_bytes(retptr, this.__wbg_ptr);
|
|
38669
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
38670
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
38671
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
38672
|
+
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
38673
|
+
return v1;
|
|
38674
|
+
} finally {
|
|
38675
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
38676
|
+
}
|
|
38677
|
+
}
|
|
38678
|
+
/**
|
|
38679
|
+
*
|
|
38680
|
+
* * Create this type from CBOR bytes
|
|
38681
|
+
*
|
|
38682
|
+
* @param {Uint8Array} cbor_bytes
|
|
38683
|
+
* @returns {TransactionOutput}
|
|
38684
|
+
*/
|
|
38685
|
+
static from_cbor_bytes(cbor_bytes) {
|
|
38686
|
+
try {
|
|
38687
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
38688
|
+
const ptr0 = passArray8ToWasm0(cbor_bytes, wasm.__wbindgen_malloc);
|
|
38689
|
+
const len0 = WASM_VECTOR_LEN;
|
|
38690
|
+
wasm.transactionoutput_from_cbor_bytes(retptr, ptr0, len0);
|
|
38691
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
38692
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
38693
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
38694
|
+
if (r2) {
|
|
38695
|
+
throw takeObject(r1);
|
|
38696
|
+
}
|
|
38697
|
+
return TransactionOutput.__wrap(r0);
|
|
38698
|
+
} finally {
|
|
38699
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
38700
|
+
}
|
|
38701
|
+
}
|
|
38702
|
+
/**
|
|
38703
|
+
*
|
|
38704
|
+
* * Serialize this type to CBOR bytes encoded as a hex string (useful for working with CIP30).
|
|
38705
|
+
* * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
|
|
38706
|
+
* * If created from scratch the CBOR will be canonical.
|
|
38707
|
+
*
|
|
38708
|
+
* @returns {string}
|
|
38709
|
+
*/
|
|
38710
|
+
to_cbor_hex() {
|
|
38711
|
+
let deferred1_0;
|
|
38712
|
+
let deferred1_1;
|
|
38713
|
+
try {
|
|
38714
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
38715
|
+
wasm.transactionoutput_to_cbor_hex(retptr, this.__wbg_ptr);
|
|
38716
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
38717
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
38718
|
+
deferred1_0 = r0;
|
|
38719
|
+
deferred1_1 = r1;
|
|
38720
|
+
return getStringFromWasm0(r0, r1);
|
|
38721
|
+
} finally {
|
|
38722
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
38723
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
38724
|
+
}
|
|
38725
|
+
}
|
|
38726
|
+
/**
|
|
38727
|
+
*
|
|
38728
|
+
* * Serialize this type to CBOR bytes using canonical CBOR encodings as hex bytes
|
|
38729
|
+
*
|
|
38730
|
+
* @returns {string}
|
|
38731
|
+
*/
|
|
38732
|
+
to_canonical_cbor_hex() {
|
|
38733
|
+
let deferred1_0;
|
|
38734
|
+
let deferred1_1;
|
|
38735
|
+
try {
|
|
38736
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
38737
|
+
wasm.transactionoutput_to_canonical_cbor_hex(retptr, this.__wbg_ptr);
|
|
38738
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
38739
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
38740
|
+
deferred1_0 = r0;
|
|
38741
|
+
deferred1_1 = r1;
|
|
38742
|
+
return getStringFromWasm0(r0, r1);
|
|
38743
|
+
} finally {
|
|
38744
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
38745
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
38746
|
+
}
|
|
38747
|
+
}
|
|
38748
|
+
/**
|
|
38749
|
+
*
|
|
38750
|
+
* * Create this type from the CBOR bytes encoded as a hex string.
|
|
38751
|
+
* * This is useful for interfacing with CIP30
|
|
38752
|
+
*
|
|
38753
|
+
* @param {string} cbor_bytes
|
|
38754
|
+
* @returns {TransactionOutput}
|
|
38755
|
+
*/
|
|
38756
|
+
static from_cbor_hex(cbor_bytes) {
|
|
38757
|
+
try {
|
|
38758
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
38759
|
+
const ptr0 = passStringToWasm0(cbor_bytes, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
38760
|
+
const len0 = WASM_VECTOR_LEN;
|
|
38761
|
+
wasm.transactionoutput_from_cbor_hex(retptr, ptr0, len0);
|
|
38762
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
38763
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
38764
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
38765
|
+
if (r2) {
|
|
38766
|
+
throw takeObject(r1);
|
|
38767
|
+
}
|
|
38768
|
+
return TransactionOutput.__wrap(r0);
|
|
38769
|
+
} finally {
|
|
38770
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
38771
|
+
}
|
|
38772
|
+
}
|
|
38773
|
+
/**
|
|
38774
|
+
* @returns {string}
|
|
38775
|
+
*/
|
|
38776
|
+
to_json() {
|
|
38777
|
+
let deferred2_0;
|
|
38778
|
+
let deferred2_1;
|
|
38779
|
+
try {
|
|
38780
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
38781
|
+
wasm.transactionoutput_to_json(retptr, this.__wbg_ptr);
|
|
38782
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
38783
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
38784
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
38785
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
38786
|
+
var ptr1 = r0;
|
|
38787
|
+
var len1 = r1;
|
|
38788
|
+
if (r3) {
|
|
38789
|
+
ptr1 = 0; len1 = 0;
|
|
38790
|
+
throw takeObject(r2);
|
|
38791
|
+
}
|
|
38792
|
+
deferred2_0 = ptr1;
|
|
38793
|
+
deferred2_1 = len1;
|
|
38794
|
+
return getStringFromWasm0(ptr1, len1);
|
|
38795
|
+
} finally {
|
|
38796
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
38797
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
38798
|
+
}
|
|
38799
|
+
}
|
|
38800
|
+
/**
|
|
38801
|
+
* @returns {any}
|
|
38802
|
+
*/
|
|
38803
|
+
to_js_value() {
|
|
38804
|
+
try {
|
|
38805
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
38806
|
+
wasm.transactionoutput_to_js_value(retptr, this.__wbg_ptr);
|
|
38807
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
38808
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
38809
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
38810
|
+
if (r2) {
|
|
38811
|
+
throw takeObject(r1);
|
|
38812
|
+
}
|
|
38813
|
+
return takeObject(r0);
|
|
38814
|
+
} finally {
|
|
38815
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
38816
|
+
}
|
|
38817
|
+
}
|
|
38818
|
+
/**
|
|
38819
|
+
* @param {string} json
|
|
38820
|
+
* @returns {TransactionOutput}
|
|
38821
|
+
*/
|
|
38822
|
+
static from_json(json) {
|
|
38823
|
+
try {
|
|
38824
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
38825
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
38826
|
+
const len0 = WASM_VECTOR_LEN;
|
|
38827
|
+
wasm.transactionoutput_from_json(retptr, ptr0, len0);
|
|
38828
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
38829
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
38830
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
38831
|
+
if (r2) {
|
|
38832
|
+
throw takeObject(r1);
|
|
38833
|
+
}
|
|
38834
|
+
return TransactionOutput.__wrap(r0);
|
|
38835
|
+
} finally {
|
|
38836
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
38837
|
+
}
|
|
38838
|
+
}
|
|
38839
|
+
/**
|
|
38840
|
+
* @param {AlonzoFormatTxOut} alonzo_format_tx_out
|
|
38841
|
+
* @returns {TransactionOutput}
|
|
38842
|
+
*/
|
|
38843
|
+
static new_alonzo_format_tx_out(alonzo_format_tx_out) {
|
|
38844
|
+
_assertClass(alonzo_format_tx_out, AlonzoFormatTxOut);
|
|
38845
|
+
const ret = wasm.transactionoutput_new_alonzo_format_tx_out(alonzo_format_tx_out.__wbg_ptr);
|
|
38846
|
+
return TransactionOutput.__wrap(ret);
|
|
38847
|
+
}
|
|
38848
|
+
/**
|
|
38849
|
+
* @param {ConwayFormatTxOut} conway_format_tx_out
|
|
38850
|
+
* @returns {TransactionOutput}
|
|
38851
|
+
*/
|
|
38852
|
+
static new_conway_format_tx_out(conway_format_tx_out) {
|
|
38853
|
+
_assertClass(conway_format_tx_out, ConwayFormatTxOut);
|
|
38854
|
+
const ret = wasm.transactionoutput_new_conway_format_tx_out(conway_format_tx_out.__wbg_ptr);
|
|
38855
|
+
return TransactionOutput.__wrap(ret);
|
|
38856
|
+
}
|
|
38857
|
+
/**
|
|
38858
|
+
* @returns {TransactionOutputKind}
|
|
38859
|
+
*/
|
|
38860
|
+
kind() {
|
|
38861
|
+
const ret = wasm.transactionoutput_kind(this.__wbg_ptr);
|
|
38862
|
+
return ret;
|
|
38863
|
+
}
|
|
38864
|
+
/**
|
|
38865
|
+
* @returns {AlonzoFormatTxOut | undefined}
|
|
38866
|
+
*/
|
|
38867
|
+
as_alonzo_format_tx_out() {
|
|
38868
|
+
const ret = wasm.transactionoutput_as_alonzo_format_tx_out(this.__wbg_ptr);
|
|
38869
|
+
return ret === 0 ? undefined : AlonzoFormatTxOut.__wrap(ret);
|
|
38870
|
+
}
|
|
38871
|
+
/**
|
|
38872
|
+
* @returns {ConwayFormatTxOut | undefined}
|
|
38873
|
+
*/
|
|
38874
|
+
as_conway_format_tx_out() {
|
|
38875
|
+
const ret = wasm.transactionoutput_as_conway_format_tx_out(this.__wbg_ptr);
|
|
38876
|
+
return ret === 0 ? undefined : ConwayFormatTxOut.__wrap(ret);
|
|
38877
|
+
}
|
|
38876
38878
|
}
|
|
38877
38879
|
module.exports.TransactionOutput = TransactionOutput;
|
|
38878
38880
|
|
|
@@ -39283,6 +39285,20 @@ class TransactionWitnessSet {
|
|
|
39283
39285
|
wasm.__wbg_transactionwitnessset_free(ptr, 0);
|
|
39284
39286
|
}
|
|
39285
39287
|
/**
|
|
39288
|
+
* @param {TransactionWitnessSet} other
|
|
39289
|
+
*/
|
|
39290
|
+
add_all_witnesses(other) {
|
|
39291
|
+
_assertClass(other, TransactionWitnessSet);
|
|
39292
|
+
wasm.transactionwitnessset_add_all_witnesses(this.__wbg_ptr, other.__wbg_ptr);
|
|
39293
|
+
}
|
|
39294
|
+
/**
|
|
39295
|
+
* @returns {LanguageList}
|
|
39296
|
+
*/
|
|
39297
|
+
languages() {
|
|
39298
|
+
const ret = wasm.transactionwitnessset_languages(this.__wbg_ptr);
|
|
39299
|
+
return LanguageList.__wrap(ret);
|
|
39300
|
+
}
|
|
39301
|
+
/**
|
|
39286
39302
|
*
|
|
39287
39303
|
* * Serialize this type to CBOR bytes
|
|
39288
39304
|
* * This type type supports encoding preservation so this will preserve round-trip CBOR formats.
|
|
@@ -39602,20 +39618,6 @@ class TransactionWitnessSet {
|
|
|
39602
39618
|
const ret = wasm.transactionwitnessset_new();
|
|
39603
39619
|
return TransactionWitnessSet.__wrap(ret);
|
|
39604
39620
|
}
|
|
39605
|
-
/**
|
|
39606
|
-
* @param {TransactionWitnessSet} other
|
|
39607
|
-
*/
|
|
39608
|
-
add_all_witnesses(other) {
|
|
39609
|
-
_assertClass(other, TransactionWitnessSet);
|
|
39610
|
-
wasm.transactionwitnessset_add_all_witnesses(this.__wbg_ptr, other.__wbg_ptr);
|
|
39611
|
-
}
|
|
39612
|
-
/**
|
|
39613
|
-
* @returns {LanguageList}
|
|
39614
|
-
*/
|
|
39615
|
-
languages() {
|
|
39616
|
-
const ret = wasm.transactionwitnessset_languages(this.__wbg_ptr);
|
|
39617
|
-
return LanguageList.__wrap(ret);
|
|
39618
|
-
}
|
|
39619
39621
|
}
|
|
39620
39622
|
module.exports.TransactionWitnessSet = TransactionWitnessSet;
|
|
39621
39623
|
|
|
@@ -44506,12 +44508,6 @@ class WithdrawalBuilderResult {
|
|
|
44506
44508
|
}
|
|
44507
44509
|
module.exports.WithdrawalBuilderResult = WithdrawalBuilderResult;
|
|
44508
44510
|
|
|
44509
|
-
module.exports.__wbindgen_is_object = function(arg0) {
|
|
44510
|
-
const val = getObject(arg0);
|
|
44511
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
44512
|
-
return ret;
|
|
44513
|
-
};
|
|
44514
|
-
|
|
44515
44511
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
44516
44512
|
takeObject(arg0);
|
|
44517
44513
|
};
|
|
@@ -44530,14 +44526,10 @@ module.exports.__wbindgen_memory = function() {
|
|
|
44530
44526
|
return addHeapObject(ret);
|
|
44531
44527
|
};
|
|
44532
44528
|
|
|
44533
|
-
module.exports.
|
|
44534
|
-
const
|
|
44535
|
-
|
|
44536
|
-
|
|
44537
|
-
|
|
44538
|
-
module.exports.__wbindgen_number_new = function(arg0) {
|
|
44539
|
-
const ret = arg0;
|
|
44540
|
-
return addHeapObject(ret);
|
|
44529
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
44530
|
+
const val = getObject(arg0);
|
|
44531
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
44532
|
+
return ret;
|
|
44541
44533
|
};
|
|
44542
44534
|
|
|
44543
44535
|
module.exports.__wbindgen_is_string = function(arg0) {
|
|
@@ -44560,6 +44552,16 @@ module.exports.__wbg_buffer_b7b08af79b0b0974 = function(arg0) {
|
|
|
44560
44552
|
return addHeapObject(ret);
|
|
44561
44553
|
};
|
|
44562
44554
|
|
|
44555
|
+
module.exports.__wbg_new_a220cf903aa02ca2 = function() {
|
|
44556
|
+
const ret = new Array();
|
|
44557
|
+
return addHeapObject(ret);
|
|
44558
|
+
};
|
|
44559
|
+
|
|
44560
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
44561
|
+
const ret = arg0;
|
|
44562
|
+
return addHeapObject(ret);
|
|
44563
|
+
};
|
|
44564
|
+
|
|
44563
44565
|
module.exports.__wbg_newnoargs_76313bd6ff35d0f2 = function(arg0, arg1) {
|
|
44564
44566
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
44565
44567
|
return addHeapObject(ret);
|