flipmeme-sdk 1.3.8 → 1.3.9

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
@@ -2896,29 +2896,31 @@ var SolanaConnector = class {
2896
2896
  }).compileToV0Message(
2897
2897
  lookupTableAccounts == null ? [] : [lookupTableAccounts]
2898
2898
  );
2899
- console.log("transaction size ", messageV0.serialize().length);
2900
2899
  let versionedTx = new import_web34.VersionedTransaction(messageV0);
2901
2900
  if (sdkTx.additionalSigher) versionedTx.sign(sdkTx.additionalSigher);
2902
2901
  return versionedTx;
2903
2902
  });
2904
2903
  const signedTxs = yield this.config.signAllTransactions(txs);
2905
- let signatures = yield Promise.all(
2906
- signedTxs.map((signedTx, index) => __async(this, null, function* () {
2907
- if (signedTx instanceof import_web34.VersionedTransaction) {
2908
- try {
2909
- let signature = yield this.config.provider.connection.sendTransaction(signedTx, {
2904
+ let signatures = [];
2905
+ for (let i = 0; i < signedTxs.length; i++) {
2906
+ let signedTx = signedTxs[i];
2907
+ if (signedTx instanceof import_web34.VersionedTransaction) {
2908
+ try {
2909
+ let signature = yield this.config.provider.connection.sendTransaction(
2910
+ signedTx,
2911
+ {
2910
2912
  skipPreflight: true,
2911
2913
  preflightCommitment: "confirmed"
2912
- });
2913
- return { signature, index };
2914
- } catch (e) {
2915
- console.log("Transaction submit error:", e);
2916
- return { signature: null, index };
2917
- }
2914
+ }
2915
+ );
2916
+ signatures.push({ signature, i });
2917
+ } catch (e) {
2918
+ console.log("Transaction submit error:", e);
2919
+ signatures.push({ signature: null, i });
2918
2920
  }
2919
- }))
2920
- );
2921
- console.log("signatures from Promisze all ===============", signatures);
2921
+ }
2922
+ }
2923
+ console.log("signatures", signatures);
2922
2924
  return {
2923
2925
  signatures,
2924
2926
  latestBlockhash
@@ -3112,6 +3114,7 @@ var SolanaConnector = class {
3112
3114
  index - 1
3113
3115
  // when mint calculate price and control index
3114
3116
  ).mul(slippage + 0.01).div(100).toFixed(0);
3117
+ console.log(index - 1, "'s slippage price", slippagePrice);
3115
3118
  for (const nftName of chunks) {
3116
3119
  const nftSeedKeypair = import_web34.Keypair.generate();
3117
3120
  const nftPda2 = nftPda(
@@ -3120,7 +3123,6 @@ var SolanaConnector = class {
3120
3123
  nftSeedKeypair.publicKey,
3121
3124
  this.program.programId
3122
3125
  );
3123
- console.log("=======nft seed==========", nftSeedKeypair.publicKey);
3124
3126
  const instruction = yield this.program.methods.mintAndBuy(
3125
3127
  nftSeedKeypair.publicKey,
3126
3128
  nftName,