flipmeme-sdk 1.3.87 → 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 +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.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__ */ ((
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
return
|
|
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
|
-
|
|
34745
|
-
|
|
34746
|
-
|
|
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}`);
|