flipmeme-sdk 1.1.3 → 1.1.4
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 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -109,7 +109,7 @@ declare class FlipmemeSDK {
|
|
|
109
109
|
getCollectionPda(): Promise<CollectionInfo>;
|
|
110
110
|
buy(params: BuyParams): Promise<BuyResponse[]>;
|
|
111
111
|
flipSell(params: SellParams): Promise<SellResponse[]>;
|
|
112
|
-
profileSell(data: ProfileSellParams): Promise<
|
|
112
|
+
profileSell(data: ProfileSellParams): Promise<SellResponse[]>;
|
|
113
113
|
buyCredit(params: BuyCreditParams): Promise<string>;
|
|
114
114
|
/**For testing */
|
|
115
115
|
getStateInfo(): Promise<{
|
package/dist/index.d.ts
CHANGED
|
@@ -109,7 +109,7 @@ declare class FlipmemeSDK {
|
|
|
109
109
|
getCollectionPda(): Promise<CollectionInfo>;
|
|
110
110
|
buy(params: BuyParams): Promise<BuyResponse[]>;
|
|
111
111
|
flipSell(params: SellParams): Promise<SellResponse[]>;
|
|
112
|
-
profileSell(data: ProfileSellParams): Promise<
|
|
112
|
+
profileSell(data: ProfileSellParams): Promise<SellResponse[]>;
|
|
113
113
|
buyCredit(params: BuyCreditParams): Promise<string>;
|
|
114
114
|
/**For testing */
|
|
115
115
|
getStateInfo(): Promise<{
|
package/dist/index.js
CHANGED
|
@@ -2341,6 +2341,7 @@ var SolanaConnector = class {
|
|
|
2341
2341
|
}
|
|
2342
2342
|
const successTxns = [];
|
|
2343
2343
|
const failedItems = [];
|
|
2344
|
+
let sellResponse = [];
|
|
2344
2345
|
for (const [instructions, items] of instructionsChunks) {
|
|
2345
2346
|
try {
|
|
2346
2347
|
const { signature, latestBlockhash } = yield this.sendTxn(instructions);
|
|
@@ -2356,6 +2357,17 @@ var SolanaConnector = class {
|
|
|
2356
2357
|
signature
|
|
2357
2358
|
});
|
|
2358
2359
|
console.log("confirmResult", confirmResult);
|
|
2360
|
+
let transactionData = yield this.config.provider.connection.getTransaction(signature, {
|
|
2361
|
+
commitment: "confirmed",
|
|
2362
|
+
maxSupportedTransactionVersion: 0
|
|
2363
|
+
});
|
|
2364
|
+
if (transactionData) {
|
|
2365
|
+
let itemSellResponse = yield analyzeSellTransaction(
|
|
2366
|
+
this.program,
|
|
2367
|
+
transactionData
|
|
2368
|
+
);
|
|
2369
|
+
sellResponse.push(...itemSellResponse);
|
|
2370
|
+
}
|
|
2359
2371
|
} catch (e) {
|
|
2360
2372
|
failedItems.push(...items);
|
|
2361
2373
|
(_c = data.notify) == null ? void 0 : _c.onFailed(failedItems, items.length);
|
|
@@ -2363,6 +2375,7 @@ var SolanaConnector = class {
|
|
|
2363
2375
|
throw e;
|
|
2364
2376
|
}
|
|
2365
2377
|
}
|
|
2378
|
+
return sellResponse;
|
|
2366
2379
|
});
|
|
2367
2380
|
}
|
|
2368
2381
|
buyCredit(params) {
|