four-flap-meme-sdk 4.2.0 → 4.3.0

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.
@@ -49,7 +49,7 @@ export declare function encodePonsV2PreviewLaunchEconomics(launchConfigId: bigin
49
49
  export declare function parsePonsV2TokenFromLogs(logs: ReadonlyArray<{
50
50
  topics: readonly string[];
51
51
  address: string;
52
- }>, factory?: string): string | undefined;
52
+ }>, _factory?: string): string | undefined;
53
53
  export declare function buildPonsV2LaunchCall(params: {
54
54
  token: PonsV2TokenParams;
55
55
  launchConfigId: bigint;
@@ -81,14 +81,10 @@ export function encodePonsV2PreviewLaunchEconomics(launchConfigId, pairToken) {
81
81
  const pair = pairToken === ZeroAddress ? ZeroAddress : getAddress(pairToken);
82
82
  return previewIface.encodeFunctionData('previewLaunchEconomics', [launchConfigId, pair]);
83
83
  }
84
- export function parsePonsV2TokenFromLogs(logs, factory = PONS_V2_FACTORY) {
85
- const factoryAddr = getAddress(factory);
84
+ export function parsePonsV2TokenFromLogs(logs, _factory = PONS_V2_FACTORY) {
86
85
  for (const log of logs) {
87
86
  if (log.topics[0] !== PONS_V2_TOKEN_LAUNCHED_TOPIC || log.topics.length < 2)
88
87
  continue;
89
- if (getAddress(log.address) !== factoryAddr && getAddress(log.address) !== getAddress(PONS_V2_LAUNCH_AND_BUY)) {
90
- // TokenLaunched is emitted by the factory; router path still originates there.
91
- }
92
88
  return getAddress(`0x${log.topics[1].slice(26)}`);
93
89
  }
94
90
  return undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "four-flap-meme-sdk",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "description": "SDK for Flap bonding curve and four.meme TokenManager",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",