@pear-protocol/symmio-client 0.3.17 → 0.3.19

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/dist/index.mjs CHANGED
@@ -23292,6 +23292,12 @@ function validateAddress(address, name) {
23292
23292
  return address;
23293
23293
  }
23294
23294
  function validateAmount(amount, name) {
23295
+ if (typeof amount !== "bigint") {
23296
+ throw new SymmioSDKError(
23297
+ `${name} must be a bigint, got ${amount === void 0 ? "undefined" : typeof amount} (${amount})`,
23298
+ "INVALID_AMOUNT"
23299
+ );
23300
+ }
23295
23301
  if (amount <= 0n) {
23296
23302
  throw new SymmioSDKError(
23297
23303
  `${name} must be a positive amount, got ${amount}`,
@@ -23317,6 +23323,12 @@ function validateDeadline(deadline) {
23317
23323
  }
23318
23324
  }
23319
23325
  function validateQuantity(quantity) {
23326
+ if (typeof quantity !== "bigint") {
23327
+ throw new SymmioSDKError(
23328
+ `Quantity must be a bigint, got ${quantity === void 0 ? "undefined" : typeof quantity} (${quantity})`,
23329
+ "INVALID_QUANTITY"
23330
+ );
23331
+ }
23320
23332
  if (quantity <= 0n) {
23321
23333
  throw new SymmioSDKError(
23322
23334
  `Quantity must be positive, got ${quantity}`,