@cardananium/cquisitor-lib 0.1.0-beta.61 → 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.
@@ -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
- * Otherwise nothing will be returned (undefined).
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