flipmeme-sdk 1.3.70 → 1.3.71
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.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -139,7 +139,6 @@ interface ProfileSellParams {
|
|
|
139
139
|
}
|
|
140
140
|
interface EthProfileSellParams {
|
|
141
141
|
data: Record<string, EthSellData>;
|
|
142
|
-
slippage: number;
|
|
143
142
|
minPrice: string;
|
|
144
143
|
}
|
|
145
144
|
declare function isEthereumConfig(config: EthereumConfig | SolanaConfig): config is EthereumConfig;
|
|
@@ -490,7 +489,7 @@ declare class FlipmemeSDK {
|
|
|
490
489
|
}>;
|
|
491
490
|
}>;
|
|
492
491
|
getTotalPrice(type: PurcahseType, collectionId: string, amount: number): Promise<string>;
|
|
493
|
-
profileSellTotalPrice(data:
|
|
492
|
+
profileSellTotalPrice(data: Record<string, EthSellData>): Promise<string>;
|
|
494
493
|
/**
|
|
495
494
|
* create lookup table account with lookuptable addresses and return lookup table account
|
|
496
495
|
* @param lookupTableAddresses addresses to add lookup table
|
package/dist/index.d.ts
CHANGED
|
@@ -139,7 +139,6 @@ interface ProfileSellParams {
|
|
|
139
139
|
}
|
|
140
140
|
interface EthProfileSellParams {
|
|
141
141
|
data: Record<string, EthSellData>;
|
|
142
|
-
slippage: number;
|
|
143
142
|
minPrice: string;
|
|
144
143
|
}
|
|
145
144
|
declare function isEthereumConfig(config: EthereumConfig | SolanaConfig): config is EthereumConfig;
|
|
@@ -490,7 +489,7 @@ declare class FlipmemeSDK {
|
|
|
490
489
|
}>;
|
|
491
490
|
}>;
|
|
492
491
|
getTotalPrice(type: PurcahseType, collectionId: string, amount: number): Promise<string>;
|
|
493
|
-
profileSellTotalPrice(data:
|
|
492
|
+
profileSellTotalPrice(data: Record<string, EthSellData>): Promise<string>;
|
|
494
493
|
/**
|
|
495
494
|
* create lookup table account with lookuptable addresses and return lookup table account
|
|
496
495
|
* @param lookupTableAddresses addresses to add lookup table
|
package/dist/index.js
CHANGED
|
@@ -34667,20 +34667,20 @@ var EthereumConnector = class {
|
|
|
34667
34667
|
return { successCount: totalCount, failedCount: 0 };
|
|
34668
34668
|
});
|
|
34669
34669
|
}
|
|
34670
|
-
|
|
34670
|
+
profileSellPrice(params) {
|
|
34671
34671
|
return __async(this, null, function* () {
|
|
34672
34672
|
let factory = new Factory__factory(this.config.signer).attach(
|
|
34673
34673
|
this.configAddresses.FACTORY
|
|
34674
34674
|
);
|
|
34675
34675
|
let collectionIds = [];
|
|
34676
34676
|
let ids = [];
|
|
34677
|
-
for (const collectionId in params
|
|
34678
|
-
let items = params
|
|
34677
|
+
for (const collectionId in params) {
|
|
34678
|
+
let items = params[collectionId];
|
|
34679
34679
|
collectionIds.push(collectionId);
|
|
34680
34680
|
ids.push(items.tokenIds.length);
|
|
34681
34681
|
}
|
|
34682
|
-
const
|
|
34683
|
-
return
|
|
34682
|
+
const price = yield factory.getTotalPriceOfSell(collectionIds, ids);
|
|
34683
|
+
return price.toString();
|
|
34684
34684
|
});
|
|
34685
34685
|
}
|
|
34686
34686
|
getFactoryInfo() {
|
|
@@ -40323,7 +40323,7 @@ var FlipmemeSDK = class {
|
|
|
40323
40323
|
profileSellTotalPrice(data) {
|
|
40324
40324
|
return __async(this, null, function* () {
|
|
40325
40325
|
if (this.blockchainType === "ethereum" /* ETHEREUM */ && this.ethereum) {
|
|
40326
|
-
return this.ethereum.
|
|
40326
|
+
return this.ethereum.profileSellPrice(data);
|
|
40327
40327
|
} else {
|
|
40328
40328
|
throw new Error("Cannot call this function");
|
|
40329
40329
|
}
|