@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/dist/client.d.ts +1 -1
- package/dist/client.js +4 -1
- package/dist/fpool.d.ts +7 -3548
- package/dist/fpool.js +7 -7
- package/dist/generated.d.ts +208 -1609
- package/dist/generated.js +136 -1165
- package/package.json +1 -1
- package/src/client.ts +4 -1
- package/src/fpool.ts +7 -7
- package/src/generated.ts +136 -1167
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logswap/sdk",
|
|
3
|
-
"version": "0.5.
|
|
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
|
-
|
|
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
|
|
27
|
+
import { fPoolManagerAbi, logswapRouterAbi } from "./generated.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* and
|
|
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
|
|
36
|
+
export { fPoolManagerAbi };
|
|
37
37
|
import type { LogswapClient } from "./client.js";
|
|
38
38
|
|
|
39
39
|
const WAD = 10n ** 18n;
|