four-flap-meme-sdk 1.2.6 β†’ 1.2.8

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.
@@ -26,6 +26,13 @@ function getGasLimit(config, defaultGas = 800000) {
26
26
  */
27
27
  export async function createTokenWithBundleBuyMerkle(params) {
28
28
  const { chain, privateKeys, buyAmounts, tokenInfo, quoteToken, tokenAddress, config } = params;
29
+ // πŸ” θ°ƒθ―•οΌšζ£€ζŸ₯ config 对豑
30
+ console.log('πŸ” ζŽ₯ζ”Άεˆ°ηš„ params.config:', {
31
+ hasConfig: !!config,
32
+ configKeys: config ? Object.keys(config) : [],
33
+ profitRecipient: config?.profitRecipient,
34
+ profitRateBps: config?.profitRateBps
35
+ });
29
36
  if (privateKeys.length === 0) {
30
37
  throw new Error(getErrorMessage('NO_PRIVATE_KEY'));
31
38
  }
@@ -107,6 +114,9 @@ export async function createTokenWithBundleBuyMerkle(params) {
107
114
  console.log('πŸ” εˆ›ε»Ί+跟买 εˆ©ζΆ¦ζε–ζ£€ζŸ₯:', {
108
115
  extractProfit,
109
116
  profitRecipient: config.profitRecipient,
117
+ profitRecipientType: typeof config.profitRecipient,
118
+ profitRecipientLength: config.profitRecipient?.length,
119
+ isZeroAddress: config.profitRecipient === ethers.ZeroAddress,
110
120
  profitRateBps: config.profitRateBps,
111
121
  buyersCount: privateKeys.length - 1
112
122
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "four-flap-meme-sdk",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "description": "SDK for Flap bonding curve and four.meme TokenManager",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",