@logswap/sdk 0.5.86 → 0.5.88
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 +2 -1
- package/dist/fpool.d.ts +1 -1
- package/dist/generated.d.ts +0 -14
- package/dist/generated.js +0 -7
- package/package.json +1 -1
- package/src/client.ts +2 -1
- package/src/fpool.ts +1 -1
- package/src/generated.ts +0 -7
package/dist/client.d.ts
CHANGED
|
@@ -131,7 +131,7 @@ export declare const EXPECTED_VERSION = 12n;
|
|
|
131
131
|
* passes it; when one lands, raise this constant in the same change, which is the discipline
|
|
132
132
|
* `EXPECTED_VERSION` enforces mechanically and this one asks for.
|
|
133
133
|
*/
|
|
134
|
-
export declare const EXPECTED_F_VERSION =
|
|
134
|
+
export declare const EXPECTED_F_VERSION = 39n;
|
|
135
135
|
export declare function assertVersion(c: LogswapClient, expected?: bigint): Promise<void>;
|
|
136
136
|
/**
|
|
137
137
|
* The versions say the managers are the right code; this says the rest of the addresses belong
|
package/dist/client.js
CHANGED
|
@@ -218,8 +218,9 @@ export const EXPECTED_VERSION = 12n;
|
|
|
218
218
|
// `regenerate(poolId, to)`; asset membership is fixed by the key; `LiquidityDeployed` echoes the input,
|
|
219
219
|
// `GenerationSeeded` / `LegsSet` are gone; the lens `fPool` field is `baseLegs`, the cap `lnCapOverSeed`; the pot and the
|
|
220
220
|
// income fee are the income and the income tax (`IncomeReleased`, `incomeHeld`, `incomeTax`); a pad is uncapped.
|
|
221
|
+
// 39 (decision 087): `swapFeeB4B` is gone; base-for-base pays `swapFee` once, not 2·swapFee.
|
|
221
222
|
// A breaking bump: raised in the same change.
|
|
222
|
-
export const EXPECTED_F_VERSION =
|
|
223
|
+
export const EXPECTED_F_VERSION = 39n;
|
|
223
224
|
export async function assertVersion(c, expected = EXPECTED_VERSION) {
|
|
224
225
|
const { cPoolManagerAbi, fPoolManagerAbi } = await import("./generated.js");
|
|
225
226
|
// three independent reads: one round trip, not three in a row
|
package/dist/fpool.d.ts
CHANGED
|
@@ -1285,7 +1285,7 @@ export interface FPoolCreateArgs {
|
|
|
1285
1285
|
quote: Address;
|
|
1286
1286
|
/** The pool's assets, in any order; sorted into the key's canonical order before the call. The set is fixed for the pool's life. */
|
|
1287
1287
|
bases: Address[];
|
|
1288
|
-
/** The swap fee, WAD.
|
|
1288
|
+
/** The swap fee, WAD. Base-for-base pays it once, like any swap (F 39). A curated policy admits only its listed tiers (decisions 059). */
|
|
1289
1289
|
swapFee: bigint;
|
|
1290
1290
|
/**
|
|
1291
1291
|
* The pool's mint fee, WAD of newly-minted L — the creator's pick, a key field fixed for life (F 38, decision
|
package/dist/generated.d.ts
CHANGED
|
@@ -2566,20 +2566,6 @@ export declare const fPoolManagerAbi: readonly [{
|
|
|
2566
2566
|
readonly type: "uint256";
|
|
2567
2567
|
}];
|
|
2568
2568
|
readonly stateMutability: "nonpayable";
|
|
2569
|
-
}, {
|
|
2570
|
-
readonly type: "function";
|
|
2571
|
-
readonly inputs: readonly [{
|
|
2572
|
-
readonly name: "poolId";
|
|
2573
|
-
readonly internalType: "bytes32";
|
|
2574
|
-
readonly type: "bytes32";
|
|
2575
|
-
}];
|
|
2576
|
-
readonly name: "swapFeeB4B";
|
|
2577
|
-
readonly outputs: readonly [{
|
|
2578
|
-
readonly name: "";
|
|
2579
|
-
readonly internalType: "uint256";
|
|
2580
|
-
readonly type: "uint256";
|
|
2581
|
-
}];
|
|
2582
|
-
readonly stateMutability: "view";
|
|
2583
2569
|
}, {
|
|
2584
2570
|
readonly type: "function";
|
|
2585
2571
|
readonly inputs: readonly [{
|
package/dist/generated.js
CHANGED
|
@@ -1586,13 +1586,6 @@ export const fPoolManagerAbi = [
|
|
|
1586
1586
|
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
1587
1587
|
stateMutability: 'nonpayable',
|
|
1588
1588
|
},
|
|
1589
|
-
{
|
|
1590
|
-
type: 'function',
|
|
1591
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1592
|
-
name: 'swapFeeB4B',
|
|
1593
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1594
|
-
stateMutability: 'view',
|
|
1595
|
-
},
|
|
1596
1589
|
{
|
|
1597
1590
|
type: 'function',
|
|
1598
1591
|
inputs: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logswap/sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.88",
|
|
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
|
@@ -285,8 +285,9 @@ export const EXPECTED_VERSION = 12n;
|
|
|
285
285
|
// `regenerate(poolId, to)`; asset membership is fixed by the key; `LiquidityDeployed` echoes the input,
|
|
286
286
|
// `GenerationSeeded` / `LegsSet` are gone; the lens `fPool` field is `baseLegs`, the cap `lnCapOverSeed`; the pot and the
|
|
287
287
|
// income fee are the income and the income tax (`IncomeReleased`, `incomeHeld`, `incomeTax`); a pad is uncapped.
|
|
288
|
+
// 39 (decision 087): `swapFeeB4B` is gone; base-for-base pays `swapFee` once, not 2·swapFee.
|
|
288
289
|
// A breaking bump: raised in the same change.
|
|
289
|
-
export const EXPECTED_F_VERSION =
|
|
290
|
+
export const EXPECTED_F_VERSION = 39n;
|
|
290
291
|
|
|
291
292
|
export async function assertVersion(c: LogswapClient, expected = EXPECTED_VERSION): Promise<void> {
|
|
292
293
|
const { cPoolManagerAbi, fPoolManagerAbi } = await import("./generated.js");
|
package/src/fpool.ts
CHANGED
|
@@ -1004,7 +1004,7 @@ export interface FPoolCreateArgs {
|
|
|
1004
1004
|
quote: Address;
|
|
1005
1005
|
/** The pool's assets, in any order; sorted into the key's canonical order before the call. The set is fixed for the pool's life. */
|
|
1006
1006
|
bases: Address[];
|
|
1007
|
-
/** The swap fee, WAD.
|
|
1007
|
+
/** The swap fee, WAD. Base-for-base pays it once, like any swap (F 39). A curated policy admits only its listed tiers (decisions 059). */
|
|
1008
1008
|
swapFee: bigint;
|
|
1009
1009
|
/**
|
|
1010
1010
|
* The pool's mint fee, WAD of newly-minted L — the creator's pick, a key field fixed for life (F 38, decision
|
package/src/generated.ts
CHANGED
|
@@ -1589,13 +1589,6 @@ export const fPoolManagerAbi = [
|
|
|
1589
1589
|
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
1590
1590
|
stateMutability: 'nonpayable',
|
|
1591
1591
|
},
|
|
1592
|
-
{
|
|
1593
|
-
type: 'function',
|
|
1594
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1595
|
-
name: 'swapFeeB4B',
|
|
1596
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1597
|
-
stateMutability: 'view',
|
|
1598
|
-
},
|
|
1599
1592
|
{
|
|
1600
1593
|
type: 'function',
|
|
1601
1594
|
inputs: [
|