@logswap/sdk 0.5.42 → 0.5.43

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logswap/sdk",
3
- "version": "0.5.42",
3
+ "version": "0.5.43",
4
4
  "description": "TypeScript SDK for Logswap, the liquidity primitive introducing the logarithmic invariant — typed wrappers over the CPoolManager / FPoolManager / Router / Lens surface.",
5
5
  "license": "GPL-2.0-or-later",
6
6
  "type": "module",
package/src/client.ts CHANGED
@@ -88,7 +88,10 @@ export const EXPECTED_VERSION = 3n;
88
88
  // `Pool.pendingOperator`); `setLegL`/`admitLeg` are gone, `setLegs` edits the next generation's
89
89
  // table while unseeded; `fPoolRelaunch` takes `legs`.
90
90
  // `getPool` decodes one field fewer, so a 9 deployment's struct no longer matches this SDK.
91
- export const EXPECTED_F_VERSION = 11n;
91
+ // 12 (2026-09-17): one contract (decisions 039) — the sponsor facet is folded back into the
92
+ // manager; `sponsor()` and the fallback are gone, every entry, error and event unchanged, so
93
+ // `fPoolManagerAbi` is the manager's own ABI and no longer a union. Layout unchanged.
94
+ export const EXPECTED_F_VERSION = 12n;
92
95
 
93
96
  export async function assertVersion(c: LogswapClient, expected = EXPECTED_VERSION): Promise<void> {
94
97
  const { cPoolManagerAbi } = await import("./generated.js");
package/src/fpool.ts CHANGED
@@ -24,16 +24,16 @@
24
24
  */
25
25
 
26
26
  import { encodeFunctionData, toFunctionSelector, type Address, type Hash, type Hex } from "viem";
27
- import { fPoolManagerAbi as fPoolPrimitiveAbi, fPoolSponsorAbi, logswapRouterAbi } from "./generated.js";
27
+ import { fPoolManagerAbi, logswapRouterAbi } from "./generated.js";
28
28
 
29
29
  /**
30
- * The F manager's ABI is the UNION of its two compiled halves (decisions 031): `FPoolManager`
31
- * holds the primitive and forwards every other selector from its fallback to `FPoolSponsor` —
32
- * the lever, `claim`, `dissolve`, the handover, the gates, the desk, the names — by delegatecall.
33
- * One address from outside, so one ABI here; both halves carry the base's events and errors,
34
- * and viem tolerates the duplicates.
30
+ * One contract, one ABI (decisions 039, F version 12): the sponsor surface — `harvest`, `claim`,
31
+ * `dissolve`, the handover, the gates, the operator, `setLegs`, the names, the fee parameters —
32
+ * is `FPoolManager`'s own code again. From 031 to 038 it was a delegatecall facet
33
+ * (`FPoolSponsor`) and this ABI was the union of the two compiled halves; the union is gone with
34
+ * the facet, and the generated ABI is the whole surface.
35
35
  */
36
- export const fPoolManagerAbi = [...fPoolPrimitiveAbi, ...fPoolSponsorAbi] as const;
36
+ export { fPoolManagerAbi };
37
37
  import type { LogswapClient } from "./client.js";
38
38
 
39
39
  const WAD = 10n ** 18n;