flipmeme-sdk 1.3.87 → 1.3.89
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 +10 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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__ */ ((
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
return
|
|
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
|
-
|
|
34691
|
-
|
|
34692
|
-
|
|
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}`);
|