@logswap/sdk 0.5.78 → 0.5.79

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/README.md CHANGED
@@ -187,6 +187,10 @@ What changes for readers:
187
187
  `restructureBlock`), `registrySunset(c, policy, untilTime)` and `RegistryEntry.until` are
188
188
  timestamps. `EXPECTED_F_VERSION` is 29.
189
189
 
190
+ - **F version 31** (decision 072): `DividendClaimed` carries the generation (`gen`, indexed); `lock` and
191
+ `unlock` emit `LienLocked` / `LienUnlocked`, so a lien is readable from the log stream with
192
+ `getEventLogs`. `EXPECTED_F_VERSION` is 31.
193
+
190
194
  ## Conventions
191
195
 
192
196
  - **The SDK hides the manager/router/lens split.** Which contract hosts which action is currently
package/dist/client.d.ts CHANGED
@@ -131,7 +131,7 @@ export declare const EXPECTED_VERSION = 9n;
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 = 30n;
134
+ export declare const EXPECTED_F_VERSION = 31n;
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
@@ -205,8 +205,10 @@ export const EXPECTED_VERSION = 9n;
205
205
  // 30 (decision 071): the events — `FSwap` is the shared `Swap` plus `FSwapState`, object-word names
206
206
  // (`PoolCreated`, `GenerationSeeded`, `SharesMinted`, ...), `PoolCreated` carries the mint fee.
207
207
  // No pool id moved.
208
+ // 31 (decision 072): `DividendClaimed` names the generation (`gen`, indexed, after `poolId`); `lock` / `unlock` emit
209
+ // `LienLocked` / `LienUnlocked`. No selector, storage layout or pool id moved.
208
210
  // A breaking bump: raised in the same change.
209
- export const EXPECTED_F_VERSION = 30n;
211
+ export const EXPECTED_F_VERSION = 31n;
210
212
  export async function assertVersion(c, expected = EXPECTED_VERSION) {
211
213
  const { cPoolManagerAbi, fPoolManagerAbi } = await import("./generated.js");
212
214
  // three independent reads: one round trip, not three in a row
@@ -2672,6 +2672,11 @@ export declare const fPoolManagerAbi: readonly [{
2672
2672
  readonly internalType: "bytes32";
2673
2673
  readonly type: "bytes32";
2674
2674
  readonly indexed: true;
2675
+ }, {
2676
+ readonly name: "gen";
2677
+ readonly internalType: "uint256";
2678
+ readonly type: "uint256";
2679
+ readonly indexed: true;
2675
2680
  }, {
2676
2681
  readonly name: "holder";
2677
2682
  readonly internalType: "address";
@@ -2681,7 +2686,7 @@ export declare const fPoolManagerAbi: readonly [{
2681
2686
  readonly name: "to";
2682
2687
  readonly internalType: "address";
2683
2688
  readonly type: "address";
2684
- readonly indexed: true;
2689
+ readonly indexed: false;
2685
2690
  }, {
2686
2691
  readonly name: "amount";
2687
2692
  readonly internalType: "uint256";
@@ -2854,6 +2859,71 @@ export declare const fPoolManagerAbi: readonly [{
2854
2859
  readonly indexed: false;
2855
2860
  }];
2856
2861
  readonly name: "LegsSet";
2862
+ }, {
2863
+ readonly type: "event";
2864
+ readonly anonymous: false;
2865
+ readonly inputs: readonly [{
2866
+ readonly name: "id";
2867
+ readonly internalType: "uint256";
2868
+ readonly type: "uint256";
2869
+ readonly indexed: true;
2870
+ }, {
2871
+ readonly name: "owner";
2872
+ readonly internalType: "address";
2873
+ readonly type: "address";
2874
+ readonly indexed: true;
2875
+ }, {
2876
+ readonly name: "locker";
2877
+ readonly internalType: "address";
2878
+ readonly type: "address";
2879
+ readonly indexed: true;
2880
+ }, {
2881
+ readonly name: "amount";
2882
+ readonly internalType: "uint256";
2883
+ readonly type: "uint256";
2884
+ readonly indexed: false;
2885
+ }, {
2886
+ readonly name: "total";
2887
+ readonly internalType: "uint256";
2888
+ readonly type: "uint256";
2889
+ readonly indexed: false;
2890
+ }];
2891
+ readonly name: "LienLocked";
2892
+ }, {
2893
+ readonly type: "event";
2894
+ readonly anonymous: false;
2895
+ readonly inputs: readonly [{
2896
+ readonly name: "id";
2897
+ readonly internalType: "uint256";
2898
+ readonly type: "uint256";
2899
+ readonly indexed: true;
2900
+ }, {
2901
+ readonly name: "owner";
2902
+ readonly internalType: "address";
2903
+ readonly type: "address";
2904
+ readonly indexed: true;
2905
+ }, {
2906
+ readonly name: "locker";
2907
+ readonly internalType: "address";
2908
+ readonly type: "address";
2909
+ readonly indexed: true;
2910
+ }, {
2911
+ readonly name: "to";
2912
+ readonly internalType: "address";
2913
+ readonly type: "address";
2914
+ readonly indexed: false;
2915
+ }, {
2916
+ readonly name: "amount";
2917
+ readonly internalType: "uint256";
2918
+ readonly type: "uint256";
2919
+ readonly indexed: false;
2920
+ }, {
2921
+ readonly name: "owed";
2922
+ readonly internalType: "uint256";
2923
+ readonly type: "uint256";
2924
+ readonly indexed: false;
2925
+ }];
2926
+ readonly name: "LienUnlocked";
2857
2927
  }, {
2858
2928
  readonly type: "event";
2859
2929
  readonly anonymous: false;
@@ -3316,10 +3386,6 @@ export declare const fPoolManagerAbi: readonly [{
3316
3386
  readonly type: "uint256";
3317
3387
  }];
3318
3388
  readonly name: "MulticallFailed";
3319
- }, {
3320
- readonly type: "error";
3321
- readonly inputs: readonly [];
3322
- readonly name: "NonstandardToken";
3323
3389
  }, {
3324
3390
  readonly type: "error";
3325
3391
  readonly inputs: readonly [];
package/dist/generated.js CHANGED
@@ -1677,13 +1677,14 @@ export const fPoolManagerAbi = [
1677
1677
  type: 'bytes32',
1678
1678
  indexed: true,
1679
1679
  },
1680
+ { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
1680
1681
  {
1681
1682
  name: 'holder',
1682
1683
  internalType: 'address',
1683
1684
  type: 'address',
1684
1685
  indexed: true,
1685
1686
  },
1686
- { name: 'to', internalType: 'address', type: 'address', indexed: true },
1687
+ { name: 'to', internalType: 'address', type: 'address', indexed: false },
1687
1688
  {
1688
1689
  name: 'amount',
1689
1690
  internalType: 'uint256',
@@ -1846,6 +1847,71 @@ export const fPoolManagerAbi = [
1846
1847
  ],
1847
1848
  name: 'LegsSet',
1848
1849
  },
1850
+ {
1851
+ type: 'event',
1852
+ anonymous: false,
1853
+ inputs: [
1854
+ { name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
1855
+ {
1856
+ name: 'owner',
1857
+ internalType: 'address',
1858
+ type: 'address',
1859
+ indexed: true,
1860
+ },
1861
+ {
1862
+ name: 'locker',
1863
+ internalType: 'address',
1864
+ type: 'address',
1865
+ indexed: true,
1866
+ },
1867
+ {
1868
+ name: 'amount',
1869
+ internalType: 'uint256',
1870
+ type: 'uint256',
1871
+ indexed: false,
1872
+ },
1873
+ {
1874
+ name: 'total',
1875
+ internalType: 'uint256',
1876
+ type: 'uint256',
1877
+ indexed: false,
1878
+ },
1879
+ ],
1880
+ name: 'LienLocked',
1881
+ },
1882
+ {
1883
+ type: 'event',
1884
+ anonymous: false,
1885
+ inputs: [
1886
+ { name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
1887
+ {
1888
+ name: 'owner',
1889
+ internalType: 'address',
1890
+ type: 'address',
1891
+ indexed: true,
1892
+ },
1893
+ {
1894
+ name: 'locker',
1895
+ internalType: 'address',
1896
+ type: 'address',
1897
+ indexed: true,
1898
+ },
1899
+ { name: 'to', internalType: 'address', type: 'address', indexed: false },
1900
+ {
1901
+ name: 'amount',
1902
+ internalType: 'uint256',
1903
+ type: 'uint256',
1904
+ indexed: false,
1905
+ },
1906
+ {
1907
+ name: 'owed',
1908
+ internalType: 'uint256',
1909
+ type: 'uint256',
1910
+ indexed: false,
1911
+ },
1912
+ ],
1913
+ name: 'LienUnlocked',
1914
+ },
1849
1915
  {
1850
1916
  type: 'event',
1851
1917
  anonymous: false,
@@ -2243,7 +2309,6 @@ export const fPoolManagerAbi = [
2243
2309
  inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256' }],
2244
2310
  name: 'MulticallFailed',
2245
2311
  },
2246
- { type: 'error', inputs: [], name: 'NonstandardToken' },
2247
2312
  { type: 'error', inputs: [], name: 'NotAuthorized' },
2248
2313
  { type: 'error', inputs: [], name: 'NotLogAuthority' },
2249
2314
  { type: 'error', inputs: [], name: 'NotPolicy' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logswap/sdk",
3
- "version": "0.5.78",
3
+ "version": "0.5.79",
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
@@ -272,8 +272,10 @@ export const EXPECTED_VERSION = 9n;
272
272
  // 30 (decision 071): the events — `FSwap` is the shared `Swap` plus `FSwapState`, object-word names
273
273
  // (`PoolCreated`, `GenerationSeeded`, `SharesMinted`, ...), `PoolCreated` carries the mint fee.
274
274
  // No pool id moved.
275
+ // 31 (decision 072): `DividendClaimed` names the generation (`gen`, indexed, after `poolId`); `lock` / `unlock` emit
276
+ // `LienLocked` / `LienUnlocked`. No selector, storage layout or pool id moved.
275
277
  // A breaking bump: raised in the same change.
276
- export const EXPECTED_F_VERSION = 30n;
278
+ export const EXPECTED_F_VERSION = 31n;
277
279
 
278
280
  export async function assertVersion(c: LogswapClient, expected = EXPECTED_VERSION): Promise<void> {
279
281
  const { cPoolManagerAbi, fPoolManagerAbi } = await import("./generated.js");
package/src/generated.ts CHANGED
@@ -1680,13 +1680,14 @@ export const fPoolManagerAbi = [
1680
1680
  type: 'bytes32',
1681
1681
  indexed: true,
1682
1682
  },
1683
+ { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
1683
1684
  {
1684
1685
  name: 'holder',
1685
1686
  internalType: 'address',
1686
1687
  type: 'address',
1687
1688
  indexed: true,
1688
1689
  },
1689
- { name: 'to', internalType: 'address', type: 'address', indexed: true },
1690
+ { name: 'to', internalType: 'address', type: 'address', indexed: false },
1690
1691
  {
1691
1692
  name: 'amount',
1692
1693
  internalType: 'uint256',
@@ -1849,6 +1850,71 @@ export const fPoolManagerAbi = [
1849
1850
  ],
1850
1851
  name: 'LegsSet',
1851
1852
  },
1853
+ {
1854
+ type: 'event',
1855
+ anonymous: false,
1856
+ inputs: [
1857
+ { name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
1858
+ {
1859
+ name: 'owner',
1860
+ internalType: 'address',
1861
+ type: 'address',
1862
+ indexed: true,
1863
+ },
1864
+ {
1865
+ name: 'locker',
1866
+ internalType: 'address',
1867
+ type: 'address',
1868
+ indexed: true,
1869
+ },
1870
+ {
1871
+ name: 'amount',
1872
+ internalType: 'uint256',
1873
+ type: 'uint256',
1874
+ indexed: false,
1875
+ },
1876
+ {
1877
+ name: 'total',
1878
+ internalType: 'uint256',
1879
+ type: 'uint256',
1880
+ indexed: false,
1881
+ },
1882
+ ],
1883
+ name: 'LienLocked',
1884
+ },
1885
+ {
1886
+ type: 'event',
1887
+ anonymous: false,
1888
+ inputs: [
1889
+ { name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
1890
+ {
1891
+ name: 'owner',
1892
+ internalType: 'address',
1893
+ type: 'address',
1894
+ indexed: true,
1895
+ },
1896
+ {
1897
+ name: 'locker',
1898
+ internalType: 'address',
1899
+ type: 'address',
1900
+ indexed: true,
1901
+ },
1902
+ { name: 'to', internalType: 'address', type: 'address', indexed: false },
1903
+ {
1904
+ name: 'amount',
1905
+ internalType: 'uint256',
1906
+ type: 'uint256',
1907
+ indexed: false,
1908
+ },
1909
+ {
1910
+ name: 'owed',
1911
+ internalType: 'uint256',
1912
+ type: 'uint256',
1913
+ indexed: false,
1914
+ },
1915
+ ],
1916
+ name: 'LienUnlocked',
1917
+ },
1852
1918
  {
1853
1919
  type: 'event',
1854
1920
  anonymous: false,
@@ -2246,7 +2312,6 @@ export const fPoolManagerAbi = [
2246
2312
  inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256' }],
2247
2313
  name: 'MulticallFailed',
2248
2314
  },
2249
- { type: 'error', inputs: [], name: 'NonstandardToken' },
2250
2315
  { type: 'error', inputs: [], name: 'NotAuthorized' },
2251
2316
  { type: 'error', inputs: [], name: 'NotLogAuthority' },
2252
2317
  { type: 'error', inputs: [], name: 'NotPolicy' },