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.js CHANGED
@@ -145,11 +145,11 @@ var SOLANA_COMMON = {
145
145
  RENT_TOKEN_ID: new import_web3.PublicKey("SysvarRent111111111111111111111111111111111"),
146
146
  SYSTEM_PROGRAM_ID: new import_web3.PublicKey("11111111111111111111111111111111")
147
147
  };
148
- var PLATFORM = /* @__PURE__ */ ((PLATFORM3) => {
149
- PLATFORM3["DEV"] = "Dev";
150
- PLATFORM3["STAGE"] = "Stage";
151
- PLATFORM3["PROD"] = "Prod";
152
- return PLATFORM3;
148
+ var PLATFORM = /* @__PURE__ */ ((PLATFORM2) => {
149
+ PLATFORM2["DEV"] = "Dev";
150
+ PLATFORM2["STAGE"] = "Stage";
151
+ PLATFORM2["PROD"] = "Prod";
152
+ return PLATFORM2;
153
153
  })(PLATFORM || {});
154
154
  var ENV = /* @__PURE__ */ ((ENV2) => {
155
155
  ENV2["Devnet"] = "Devnet";
@@ -34741,9 +34741,11 @@ var EthereumConnector = class {
34741
34741
  return __async(this, null, function* () {
34742
34742
  var _a;
34743
34743
  let endPrice = collection.endPrice;
34744
- let [isAvailable, errorMsg] = this.isPriceAvailable(endPrice);
34745
- if (!isAvailable) {
34746
- throw new Error(`Price ${endPrice} Error: ${errorMsg}`);
34744
+ if (this.platform == "Prod" /* PROD */) {
34745
+ let [isAvailable, errorMsg] = this.isPriceAvailable(endPrice);
34746
+ if (!isAvailable) {
34747
+ throw new Error(`Price ${endPrice} Error: ${errorMsg}`);
34748
+ }
34747
34749
  }
34748
34750
  const startPrice = new import_decimal2.default(endPrice).div(17).toFixed(0);
34749
34751
  console.log(`Creating collection with startPrice: ${startPrice} and endPrice: ${endPrice}`);
@@ -35148,13 +35150,13 @@ var EthereumConnector = class {
35148
35150
  const minPriceForEth = new import_decimal2.default(2).mul(new import_decimal2.default(10).pow(16)).toString();
35149
35151
  const maxPriceForEth = new import_decimal2.default(10).pow(18).toString();
35150
35152
  if (priceInDecimal.lessThan(minPriceForEth) || priceInDecimal.greaterThan(maxPriceForEth)) {
35151
- return [false, `Price ${price} is out of the allowed range [${minPriceForEth}, ${maxPriceForEth}].`];
35153
+ return [false, `Price ${import_ethers62.ethers.utils.formatEther(price)} is out of the allowed range [${import_ethers62.ethers.utils.formatEther(minPriceForEth)} ETH, ${import_ethers62.ethers.utils.formatEther(maxPriceForEth)} ETH].`];
35152
35154
  }
35153
35155
  } else if (this.config.chainId === 8453 /* Base */ || this.config.chainId === 84532 /* BaseSepolia */) {
35154
35156
  const minPriceForEth = new import_decimal2.default(10).pow(16).toString();
35155
35157
  const maxPriceForEth = new import_decimal2.default(5).mul(new import_decimal2.default(10).pow(16)).toString();
35156
35158
  if (priceInDecimal.lessThan(minPriceForEth) || priceInDecimal.greaterThan(maxPriceForEth)) {
35157
- return [false, `Price ${price} is out of the allowed range [${minPriceForEth}, ${maxPriceForEth}].`];
35159
+ return [false, `Price ${import_ethers62.ethers.utils.formatEther(price)} is out of the allowed range [${import_ethers62.ethers.utils.formatEther(minPriceForEth)} ETH, ${import_ethers62.ethers.utils.formatEther(maxPriceForEth)} ETH].`];
35158
35160
  }
35159
35161
  }
35160
35162
  return [true, ""];