@cardananium/cquisitor-lib 0.1.0-beta.60 → 0.1.0-beta.62
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 +16 -0
- package/browser/cquisitor_lib_bg.js +18 -3
- package/browser/cquisitor_lib_bg.wasm +0 -0
- package/browser/cquisitor_lib_bg.wasm.d.ts +1888 -1886
- package/node/cquisitor_lib.d.ts +16 -0
- package/node/cquisitor_lib.js +18 -3
- package/node/cquisitor_lib_bg.wasm +0 -0
- package/node/cquisitor_lib_bg.wasm.d.ts +1888 -1886
- package/package.json +1 -1
|
@@ -2530,10 +2530,26 @@ export interface ScriptDataHashDecomposition {
|
|
|
2530
2530
|
|
|
2531
2531
|
export interface EvalRedeemerResult {
|
|
2532
2532
|
calculated_ex_units: ExUnits;
|
|
2533
|
+
/**
|
|
2534
|
+
* Spending datum as PlutusData CBOR hex, when present (V1/V2 spend); None otherwise.
|
|
2535
|
+
*/
|
|
2536
|
+
datum_bytes?: string | null;
|
|
2533
2537
|
error?: string | null;
|
|
2534
2538
|
index: bigint;
|
|
2535
2539
|
logs: string[];
|
|
2540
|
+
/**
|
|
2541
|
+
* Plutus language version of the resolved script: "V1" | "V2" | "V3".
|
|
2542
|
+
*/
|
|
2543
|
+
plutus_version?: string | null;
|
|
2536
2544
|
provided_ex_units: ExUnits;
|
|
2545
|
+
/**
|
|
2546
|
+
* Redeemer datum as PlutusData CBOR hex (the exact bytes applied to the program).
|
|
2547
|
+
*/
|
|
2548
|
+
redeemer_bytes?: string | null;
|
|
2549
|
+
/**
|
|
2550
|
+
* Compiled script bytecode (CBOR hex) the redeemer resolves to — witness or reference script.
|
|
2551
|
+
*/
|
|
2552
|
+
script_bytes?: string | null;
|
|
2537
2553
|
/**
|
|
2538
2554
|
* The mapped script context, serialized as a JSON string.
|
|
2539
2555
|
*/
|
|
@@ -799,6 +799,13 @@ export class Assets {
|
|
|
799
799
|
const ret = wasm.assets_insert(this.__wbg_ptr, key.__wbg_ptr, value.__wbg_ptr);
|
|
800
800
|
return ret === 0 ? undefined : BigNum.__wrap(ret);
|
|
801
801
|
}
|
|
802
|
+
/**
|
|
803
|
+
* @returns {boolean}
|
|
804
|
+
*/
|
|
805
|
+
is_zero() {
|
|
806
|
+
const ret = wasm.assets_is_zero(this.__wbg_ptr);
|
|
807
|
+
return ret !== 0;
|
|
808
|
+
}
|
|
802
809
|
/**
|
|
803
810
|
* @returns {AssetNames}
|
|
804
811
|
*/
|
|
@@ -9709,9 +9716,10 @@ export class Int {
|
|
|
9709
9716
|
* BigNum can only contain unsigned u64 values
|
|
9710
9717
|
*
|
|
9711
9718
|
* This function will return the *absolute* BigNum representation
|
|
9712
|
-
* only in case the underlying i128 value is negative
|
|
9713
|
-
*
|
|
9714
|
-
*
|
|
9719
|
+
* only in case the underlying i128 value is negative AND the
|
|
9720
|
+
* absolute value fits in a u64. The single CBOR-int value -2^64
|
|
9721
|
+
* (i.e. `Int::CBOR_MIN`) has |x| = 2^64, which does not fit a u64,
|
|
9722
|
+
* so `None` is returned in that case as well.
|
|
9715
9723
|
* @returns {BigNum | undefined}
|
|
9716
9724
|
*/
|
|
9717
9725
|
as_negative() {
|
|
@@ -12018,6 +12026,13 @@ export class MultiAsset {
|
|
|
12018
12026
|
const ret = wasm.multiasset_insert(this.__wbg_ptr, policy_id.__wbg_ptr, assets.__wbg_ptr);
|
|
12019
12027
|
return ret === 0 ? undefined : Assets.__wrap(ret);
|
|
12020
12028
|
}
|
|
12029
|
+
/**
|
|
12030
|
+
* @returns {boolean}
|
|
12031
|
+
*/
|
|
12032
|
+
is_zero() {
|
|
12033
|
+
const ret = wasm.multiasset_is_zero(this.__wbg_ptr);
|
|
12034
|
+
return ret !== 0;
|
|
12035
|
+
}
|
|
12021
12036
|
/**
|
|
12022
12037
|
* returns all policy IDs used by assets in this multiasset
|
|
12023
12038
|
* @returns {ScriptHashes}
|
|
Binary file
|