flipmeme-sdk 1.3.86 → 1.3.88

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
@@ -79,11 +79,11 @@ var SOLANA_COMMON = {
79
79
  RENT_TOKEN_ID: new PublicKey("SysvarRent111111111111111111111111111111111"),
80
80
  SYSTEM_PROGRAM_ID: new PublicKey("11111111111111111111111111111111")
81
81
  };
82
- var PLATFORM = /* @__PURE__ */ ((PLATFORM3) => {
83
- PLATFORM3["DEV"] = "Dev";
84
- PLATFORM3["STAGE"] = "Stage";
85
- PLATFORM3["PROD"] = "Prod";
86
- return PLATFORM3;
82
+ var PLATFORM = /* @__PURE__ */ ((PLATFORM2) => {
83
+ PLATFORM2["DEV"] = "Dev";
84
+ PLATFORM2["STAGE"] = "Stage";
85
+ PLATFORM2["PROD"] = "Prod";
86
+ return PLATFORM2;
87
87
  })(PLATFORM || {});
88
88
  var ENV = /* @__PURE__ */ ((ENV2) => {
89
89
  ENV2["Devnet"] = "Devnet";
@@ -34687,9 +34687,11 @@ var EthereumConnector = class {
34687
34687
  return __async(this, null, function* () {
34688
34688
  var _a;
34689
34689
  let endPrice = collection.endPrice;
34690
- let [isAvailable, errorMsg] = this.isPriceAvailable(endPrice);
34691
- if (!isAvailable) {
34692
- throw new Error(`Price ${endPrice} Error: ${errorMsg}`);
34690
+ if (this.platform == "Prod" /* PROD */) {
34691
+ let [isAvailable, errorMsg] = this.isPriceAvailable(endPrice);
34692
+ if (!isAvailable) {
34693
+ throw new Error(`Price ${endPrice} Error: ${errorMsg}`);
34694
+ }
34693
34695
  }
34694
34696
  const startPrice = new Decimal2(endPrice).div(17).toFixed(0);
34695
34697
  console.log(`Creating collection with startPrice: ${startPrice} and endPrice: ${endPrice}`);
@@ -35094,13 +35096,13 @@ var EthereumConnector = class {
35094
35096
  const minPriceForEth = new Decimal2(2).mul(new Decimal2(10).pow(16)).toString();
35095
35097
  const maxPriceForEth = new Decimal2(10).pow(18).toString();
35096
35098
  if (priceInDecimal.lessThan(minPriceForEth) || priceInDecimal.greaterThan(maxPriceForEth)) {
35097
- return [false, `Price ${price} is out of the allowed range [${minPriceForEth}, ${maxPriceForEth}].`];
35099
+ return [false, `Price ${ethers2.utils.formatEther(price)} is out of the allowed range [${ethers2.utils.formatEther(minPriceForEth)} ETH, ${ethers2.utils.formatEther(maxPriceForEth)} ETH].`];
35098
35100
  }
35099
35101
  } else if (this.config.chainId === 8453 /* Base */ || this.config.chainId === 84532 /* BaseSepolia */) {
35100
35102
  const minPriceForEth = new Decimal2(10).pow(16).toString();
35101
35103
  const maxPriceForEth = new Decimal2(5).mul(new Decimal2(10).pow(16)).toString();
35102
35104
  if (priceInDecimal.lessThan(minPriceForEth) || priceInDecimal.greaterThan(maxPriceForEth)) {
35103
- return [false, `Price ${price} is out of the allowed range [${minPriceForEth}, ${maxPriceForEth}].`];
35105
+ return [false, `Price ${ethers2.utils.formatEther(price)} is out of the allowed range [${ethers2.utils.formatEther(minPriceForEth)} ETH, ${ethers2.utils.formatEther(maxPriceForEth)} ETH].`];
35104
35106
  }
35105
35107
  }
35106
35108
  return [true, ""];