@logswap/sdk 0.5.39 → 0.5.41
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 +11 -1
- package/dist/fpool.d.ts +208 -349
- package/dist/fpool.js +125 -58
- package/dist/generated.d.ts +114 -282
- package/dist/generated.js +93 -219
- package/package.json +1 -1
- package/src/client.ts +11 -1
- package/src/fpool.ts +159 -92
- package/src/generated.ts +93 -219
package/dist/generated.js
CHANGED
|
@@ -1091,13 +1091,6 @@ export const fPoolManagerAbi = [
|
|
|
1091
1091
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1092
1092
|
stateMutability: 'view',
|
|
1093
1093
|
},
|
|
1094
|
-
{
|
|
1095
|
-
type: 'function',
|
|
1096
|
-
inputs: [],
|
|
1097
|
-
name: 'LEVER_FLOOR',
|
|
1098
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1099
|
-
stateMutability: 'view',
|
|
1100
|
-
},
|
|
1101
1094
|
{
|
|
1102
1095
|
type: 'function',
|
|
1103
1096
|
inputs: [],
|
|
@@ -1287,7 +1280,7 @@ export const fPoolManagerAbi = [
|
|
|
1287
1280
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
1288
1281
|
{ name: 'phi', internalType: 'uint96', type: 'uint96' },
|
|
1289
1282
|
{ name: 'authority', internalType: 'address', type: 'address' },
|
|
1290
|
-
{ name: '
|
|
1283
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1291
1284
|
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
1292
1285
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
1293
1286
|
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
@@ -1299,14 +1292,14 @@ export const fPoolManagerAbi = [
|
|
|
1299
1292
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
1300
1293
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
1301
1294
|
{ name: 'theta0', internalType: 'int256', type: 'int256' },
|
|
1302
|
-
{ name: '
|
|
1295
|
+
{ name: 'harvestedTheta', internalType: 'int256', type: 'int256' },
|
|
1303
1296
|
{
|
|
1304
1297
|
name: 'pendingAuthority',
|
|
1305
1298
|
internalType: 'address',
|
|
1306
1299
|
type: 'address',
|
|
1307
1300
|
},
|
|
1308
1301
|
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
1309
|
-
{ name: '
|
|
1302
|
+
{ name: 'pendingOperator', internalType: 'address', type: 'address' },
|
|
1310
1303
|
{ name: 'incomeTaken', internalType: 'uint256', type: 'uint256' },
|
|
1311
1304
|
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
1312
1305
|
],
|
|
@@ -1333,7 +1326,7 @@ export const fPoolManagerAbi = [
|
|
|
1333
1326
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
1334
1327
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1335
1328
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
1336
|
-
{ name: '
|
|
1329
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1337
1330
|
{ name: 'authority', internalType: 'address', type: 'address' },
|
|
1338
1331
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
1339
1332
|
],
|
|
@@ -1355,7 +1348,7 @@ export const fPoolManagerAbi = [
|
|
|
1355
1348
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
1356
1349
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1357
1350
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
1358
|
-
{ name: '
|
|
1351
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1359
1352
|
{ name: 'authority', internalType: 'address', type: 'address' },
|
|
1360
1353
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
1361
1354
|
],
|
|
@@ -1845,26 +1838,6 @@ export const fPoolManagerAbi = [
|
|
|
1845
1838
|
],
|
|
1846
1839
|
name: 'CollectorProposed',
|
|
1847
1840
|
},
|
|
1848
|
-
{
|
|
1849
|
-
type: 'event',
|
|
1850
|
-
anonymous: false,
|
|
1851
|
-
inputs: [
|
|
1852
|
-
{
|
|
1853
|
-
name: 'poolId',
|
|
1854
|
-
internalType: 'bytes32',
|
|
1855
|
-
type: 'bytes32',
|
|
1856
|
-
indexed: true,
|
|
1857
|
-
},
|
|
1858
|
-
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
|
1859
|
-
{
|
|
1860
|
-
name: 'amount',
|
|
1861
|
-
internalType: 'uint256',
|
|
1862
|
-
type: 'uint256',
|
|
1863
|
-
indexed: false,
|
|
1864
|
-
},
|
|
1865
|
-
],
|
|
1866
|
-
name: 'Deepen',
|
|
1867
|
-
},
|
|
1868
1841
|
{
|
|
1869
1842
|
type: 'event',
|
|
1870
1843
|
anonymous: false,
|
|
@@ -2027,9 +2000,9 @@ export const fPoolManagerAbi = [
|
|
|
2027
2000
|
},
|
|
2028
2001
|
{ name: 'phi', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2029
2002
|
{
|
|
2030
|
-
name: '
|
|
2031
|
-
internalType: '
|
|
2032
|
-
type: '
|
|
2003
|
+
name: 'kind',
|
|
2004
|
+
internalType: 'enum Kind',
|
|
2005
|
+
type: 'uint8',
|
|
2033
2006
|
indexed: false,
|
|
2034
2007
|
},
|
|
2035
2008
|
],
|
|
@@ -2045,65 +2018,21 @@ export const fPoolManagerAbi = [
|
|
|
2045
2018
|
type: 'bytes32',
|
|
2046
2019
|
indexed: true,
|
|
2047
2020
|
},
|
|
2048
|
-
{ name: '
|
|
2049
|
-
{
|
|
2050
|
-
name: 'base',
|
|
2051
|
-
internalType: 'address',
|
|
2052
|
-
type: 'address',
|
|
2053
|
-
indexed: false,
|
|
2054
|
-
},
|
|
2055
|
-
{
|
|
2056
|
-
name: 'newLj',
|
|
2057
|
-
internalType: 'uint256',
|
|
2058
|
-
type: 'uint256',
|
|
2059
|
-
indexed: false,
|
|
2060
|
-
},
|
|
2061
|
-
{
|
|
2062
|
-
name: 'reserve',
|
|
2063
|
-
internalType: 'uint256',
|
|
2064
|
-
type: 'uint256',
|
|
2065
|
-
indexed: false,
|
|
2066
|
-
},
|
|
2067
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2068
|
-
{
|
|
2069
|
-
name: 'theta0',
|
|
2070
|
-
internalType: 'int256',
|
|
2071
|
-
type: 'int256',
|
|
2072
|
-
indexed: false,
|
|
2073
|
-
},
|
|
2074
|
-
{
|
|
2075
|
-
name: 'dReserve',
|
|
2076
|
-
internalType: 'int256',
|
|
2077
|
-
type: 'int256',
|
|
2078
|
-
indexed: false,
|
|
2079
|
-
},
|
|
2021
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2080
2022
|
{
|
|
2081
|
-
name: '
|
|
2082
|
-
internalType: '
|
|
2083
|
-
type: '
|
|
2023
|
+
name: 'bases',
|
|
2024
|
+
internalType: 'address[]',
|
|
2025
|
+
type: 'address[]',
|
|
2084
2026
|
indexed: false,
|
|
2085
2027
|
},
|
|
2086
|
-
],
|
|
2087
|
-
name: 'LegSet',
|
|
2088
|
-
},
|
|
2089
|
-
{
|
|
2090
|
-
type: 'event',
|
|
2091
|
-
anonymous: false,
|
|
2092
|
-
inputs: [
|
|
2093
2028
|
{
|
|
2094
|
-
name: '
|
|
2095
|
-
internalType: '
|
|
2096
|
-
type: '
|
|
2097
|
-
indexed: true,
|
|
2098
|
-
},
|
|
2099
|
-
{
|
|
2100
|
-
name: 'minBuffer',
|
|
2101
|
-
internalType: 'uint256',
|
|
2102
|
-
type: 'uint256',
|
|
2029
|
+
name: 'weights',
|
|
2030
|
+
internalType: 'uint256[]',
|
|
2031
|
+
type: 'uint256[]',
|
|
2103
2032
|
indexed: false,
|
|
2104
2033
|
},
|
|
2105
2034
|
],
|
|
2106
|
-
name: '
|
|
2035
|
+
name: 'LegsSet',
|
|
2107
2036
|
},
|
|
2108
2037
|
{
|
|
2109
2038
|
type: 'event',
|
|
@@ -2156,6 +2085,31 @@ export const fPoolManagerAbi = [
|
|
|
2156
2085
|
],
|
|
2157
2086
|
name: 'NameSet',
|
|
2158
2087
|
},
|
|
2088
|
+
{
|
|
2089
|
+
type: 'event',
|
|
2090
|
+
anonymous: false,
|
|
2091
|
+
inputs: [
|
|
2092
|
+
{
|
|
2093
|
+
name: 'poolId',
|
|
2094
|
+
internalType: 'bytes32',
|
|
2095
|
+
type: 'bytes32',
|
|
2096
|
+
indexed: true,
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
name: 'current',
|
|
2100
|
+
internalType: 'address',
|
|
2101
|
+
type: 'address',
|
|
2102
|
+
indexed: true,
|
|
2103
|
+
},
|
|
2104
|
+
{
|
|
2105
|
+
name: 'proposed',
|
|
2106
|
+
internalType: 'address',
|
|
2107
|
+
type: 'address',
|
|
2108
|
+
indexed: true,
|
|
2109
|
+
},
|
|
2110
|
+
],
|
|
2111
|
+
name: 'OperatorProposed',
|
|
2112
|
+
},
|
|
2159
2113
|
{
|
|
2160
2114
|
type: 'event',
|
|
2161
2115
|
anonymous: false,
|
|
@@ -2361,14 +2315,14 @@ export const fPoolManagerAbi = [
|
|
|
2361
2315
|
{ type: 'error', inputs: [], name: 'AlreadyUnlocked' },
|
|
2362
2316
|
{ type: 'error', inputs: [], name: 'BadLeg' },
|
|
2363
2317
|
{ type: 'error', inputs: [], name: 'BadParam' },
|
|
2318
|
+
{ type: 'error', inputs: [], name: 'BadWeights' },
|
|
2364
2319
|
{ type: 'error', inputs: [], name: 'BalanceOverflow' },
|
|
2320
|
+
{ type: 'error', inputs: [], name: 'FloorLocked' },
|
|
2365
2321
|
{ type: 'error', inputs: [], name: 'InsufficientBalance' },
|
|
2366
2322
|
{ type: 'error', inputs: [], name: 'InsufficientPermission' },
|
|
2367
2323
|
{ type: 'error', inputs: [], name: 'InsufficientQuote' },
|
|
2368
2324
|
{ type: 'error', inputs: [], name: 'InvalidToken' },
|
|
2369
2325
|
{ type: 'error', inputs: [], name: 'LegHeld' },
|
|
2370
|
-
{ type: 'error', inputs: [], name: 'LegLive' },
|
|
2371
|
-
{ type: 'error', inputs: [], name: 'MinBuffer' },
|
|
2372
2326
|
{
|
|
2373
2327
|
type: 'error',
|
|
2374
2328
|
inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -2381,9 +2335,9 @@ export const fPoolManagerAbi = [
|
|
|
2381
2335
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
2382
2336
|
{ type: 'error', inputs: [], name: 'NotDissolvable' },
|
|
2383
2337
|
{ type: 'error', inputs: [], name: 'NotOperator' },
|
|
2338
|
+
{ type: 'error', inputs: [], name: 'NotPrivate' },
|
|
2384
2339
|
{ type: 'error', inputs: [], name: 'NotRetired' },
|
|
2385
2340
|
{ type: 'error', inputs: [], name: 'NotSeeded' },
|
|
2386
|
-
{ type: 'error', inputs: [], name: 'NotSoleLP' },
|
|
2387
2341
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
2388
2342
|
{ type: 'error', inputs: [], name: 'PoolLocked' },
|
|
2389
2343
|
{ type: 'error', inputs: [], name: 'PoolNotInitialized' },
|
|
@@ -2397,7 +2351,6 @@ export const fPoolManagerAbi = [
|
|
|
2397
2351
|
{ type: 'error', inputs: [], name: 'Restructured' },
|
|
2398
2352
|
{ type: 'error', inputs: [], name: 'SameAsset' },
|
|
2399
2353
|
{ type: 'error', inputs: [], name: 'Slippage' },
|
|
2400
|
-
{ type: 'error', inputs: [], name: 'StrikeLocked' },
|
|
2401
2354
|
{ type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
|
|
2402
2355
|
{ type: 'error', inputs: [], name: 'TokensNotSettled' },
|
|
2403
2356
|
{ type: 'error', inputs: [], name: 'TooManyGenerations' },
|
|
@@ -2424,13 +2377,6 @@ export const fPoolSponsorAbi = [
|
|
|
2424
2377
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2425
2378
|
stateMutability: 'view',
|
|
2426
2379
|
},
|
|
2427
|
-
{
|
|
2428
|
-
type: 'function',
|
|
2429
|
-
inputs: [],
|
|
2430
|
-
name: 'LEVER_FLOOR',
|
|
2431
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2432
|
-
stateMutability: 'view',
|
|
2433
|
-
},
|
|
2434
2380
|
{
|
|
2435
2381
|
type: 'function',
|
|
2436
2382
|
inputs: [],
|
|
@@ -2461,17 +2407,9 @@ export const fPoolSponsorAbi = [
|
|
|
2461
2407
|
},
|
|
2462
2408
|
{
|
|
2463
2409
|
type: 'function',
|
|
2464
|
-
inputs: [
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
{ name: 'Lj', internalType: 'uint256', type: 'uint256' },
|
|
2468
|
-
{ name: 'R', internalType: 'uint256', type: 'uint256' },
|
|
2469
|
-
],
|
|
2470
|
-
name: 'admitLeg',
|
|
2471
|
-
outputs: [
|
|
2472
|
-
{ name: 'dReserve', internalType: 'int256', type: 'int256' },
|
|
2473
|
-
{ name: 'dShares', internalType: 'int256', type: 'int256' },
|
|
2474
|
-
],
|
|
2410
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
2411
|
+
name: 'acceptOperator',
|
|
2412
|
+
outputs: [],
|
|
2475
2413
|
stateMutability: 'nonpayable',
|
|
2476
2414
|
},
|
|
2477
2415
|
{
|
|
@@ -2589,16 +2527,6 @@ export const fPoolSponsorAbi = [
|
|
|
2589
2527
|
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
2590
2528
|
stateMutability: 'view',
|
|
2591
2529
|
},
|
|
2592
|
-
{
|
|
2593
|
-
type: 'function',
|
|
2594
|
-
inputs: [
|
|
2595
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2596
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
2597
|
-
],
|
|
2598
|
-
name: 'deepen',
|
|
2599
|
-
outputs: [],
|
|
2600
|
-
stateMutability: 'nonpayable',
|
|
2601
|
-
},
|
|
2602
2530
|
{
|
|
2603
2531
|
type: 'function',
|
|
2604
2532
|
inputs: [
|
|
@@ -2728,16 +2656,6 @@ export const fPoolSponsorAbi = [
|
|
|
2728
2656
|
outputs: [],
|
|
2729
2657
|
stateMutability: 'nonpayable',
|
|
2730
2658
|
},
|
|
2731
|
-
{
|
|
2732
|
-
type: 'function',
|
|
2733
|
-
inputs: [
|
|
2734
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2735
|
-
{ name: 'minBuffer', internalType: 'uint256', type: 'uint256' },
|
|
2736
|
-
],
|
|
2737
|
-
name: 'raiseMinBuffer',
|
|
2738
|
-
outputs: [],
|
|
2739
|
-
stateMutability: 'nonpayable',
|
|
2740
|
-
},
|
|
2741
2659
|
{
|
|
2742
2660
|
type: 'function',
|
|
2743
2661
|
inputs: [
|
|
@@ -2784,15 +2702,11 @@ export const fPoolSponsorAbi = [
|
|
|
2784
2702
|
type: 'function',
|
|
2785
2703
|
inputs: [
|
|
2786
2704
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2787
|
-
{ name: '
|
|
2788
|
-
{ name: '
|
|
2789
|
-
{ name: 'rIfNew', internalType: 'uint256', type: 'uint256' },
|
|
2790
|
-
],
|
|
2791
|
-
name: 'setLegL',
|
|
2792
|
-
outputs: [
|
|
2793
|
-
{ name: 'dReserve', internalType: 'int256', type: 'int256' },
|
|
2794
|
-
{ name: 'dShares', internalType: 'int256', type: 'int256' },
|
|
2705
|
+
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
2706
|
+
{ name: 'newBases', internalType: 'address[]', type: 'address[]' },
|
|
2795
2707
|
],
|
|
2708
|
+
name: 'setLegs',
|
|
2709
|
+
outputs: [],
|
|
2796
2710
|
stateMutability: 'nonpayable',
|
|
2797
2711
|
},
|
|
2798
2712
|
{
|
|
@@ -3083,26 +2997,6 @@ export const fPoolSponsorAbi = [
|
|
|
3083
2997
|
],
|
|
3084
2998
|
name: 'CollectorProposed',
|
|
3085
2999
|
},
|
|
3086
|
-
{
|
|
3087
|
-
type: 'event',
|
|
3088
|
-
anonymous: false,
|
|
3089
|
-
inputs: [
|
|
3090
|
-
{
|
|
3091
|
-
name: 'poolId',
|
|
3092
|
-
internalType: 'bytes32',
|
|
3093
|
-
type: 'bytes32',
|
|
3094
|
-
indexed: true,
|
|
3095
|
-
},
|
|
3096
|
-
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
|
3097
|
-
{
|
|
3098
|
-
name: 'amount',
|
|
3099
|
-
internalType: 'uint256',
|
|
3100
|
-
type: 'uint256',
|
|
3101
|
-
indexed: false,
|
|
3102
|
-
},
|
|
3103
|
-
],
|
|
3104
|
-
name: 'Deepen',
|
|
3105
|
-
},
|
|
3106
3000
|
{
|
|
3107
3001
|
type: 'event',
|
|
3108
3002
|
anonymous: false,
|
|
@@ -3265,9 +3159,9 @@ export const fPoolSponsorAbi = [
|
|
|
3265
3159
|
},
|
|
3266
3160
|
{ name: 'phi', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
3267
3161
|
{
|
|
3268
|
-
name: '
|
|
3269
|
-
internalType: '
|
|
3270
|
-
type: '
|
|
3162
|
+
name: 'kind',
|
|
3163
|
+
internalType: 'enum Kind',
|
|
3164
|
+
type: 'uint8',
|
|
3271
3165
|
indexed: false,
|
|
3272
3166
|
},
|
|
3273
3167
|
],
|
|
@@ -3283,65 +3177,21 @@ export const fPoolSponsorAbi = [
|
|
|
3283
3177
|
type: 'bytes32',
|
|
3284
3178
|
indexed: true,
|
|
3285
3179
|
},
|
|
3286
|
-
{ name: '
|
|
3287
|
-
{
|
|
3288
|
-
name: 'base',
|
|
3289
|
-
internalType: 'address',
|
|
3290
|
-
type: 'address',
|
|
3291
|
-
indexed: false,
|
|
3292
|
-
},
|
|
3293
|
-
{
|
|
3294
|
-
name: 'newLj',
|
|
3295
|
-
internalType: 'uint256',
|
|
3296
|
-
type: 'uint256',
|
|
3297
|
-
indexed: false,
|
|
3298
|
-
},
|
|
3299
|
-
{
|
|
3300
|
-
name: 'reserve',
|
|
3301
|
-
internalType: 'uint256',
|
|
3302
|
-
type: 'uint256',
|
|
3303
|
-
indexed: false,
|
|
3304
|
-
},
|
|
3305
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
3306
|
-
{
|
|
3307
|
-
name: 'theta0',
|
|
3308
|
-
internalType: 'int256',
|
|
3309
|
-
type: 'int256',
|
|
3310
|
-
indexed: false,
|
|
3311
|
-
},
|
|
3312
|
-
{
|
|
3313
|
-
name: 'dReserve',
|
|
3314
|
-
internalType: 'int256',
|
|
3315
|
-
type: 'int256',
|
|
3316
|
-
indexed: false,
|
|
3317
|
-
},
|
|
3180
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
3318
3181
|
{
|
|
3319
|
-
name: '
|
|
3320
|
-
internalType: '
|
|
3321
|
-
type: '
|
|
3182
|
+
name: 'bases',
|
|
3183
|
+
internalType: 'address[]',
|
|
3184
|
+
type: 'address[]',
|
|
3322
3185
|
indexed: false,
|
|
3323
3186
|
},
|
|
3324
|
-
],
|
|
3325
|
-
name: 'LegSet',
|
|
3326
|
-
},
|
|
3327
|
-
{
|
|
3328
|
-
type: 'event',
|
|
3329
|
-
anonymous: false,
|
|
3330
|
-
inputs: [
|
|
3331
|
-
{
|
|
3332
|
-
name: 'poolId',
|
|
3333
|
-
internalType: 'bytes32',
|
|
3334
|
-
type: 'bytes32',
|
|
3335
|
-
indexed: true,
|
|
3336
|
-
},
|
|
3337
3187
|
{
|
|
3338
|
-
name: '
|
|
3339
|
-
internalType: 'uint256',
|
|
3340
|
-
type: 'uint256',
|
|
3188
|
+
name: 'weights',
|
|
3189
|
+
internalType: 'uint256[]',
|
|
3190
|
+
type: 'uint256[]',
|
|
3341
3191
|
indexed: false,
|
|
3342
3192
|
},
|
|
3343
3193
|
],
|
|
3344
|
-
name: '
|
|
3194
|
+
name: 'LegsSet',
|
|
3345
3195
|
},
|
|
3346
3196
|
{
|
|
3347
3197
|
type: 'event',
|
|
@@ -3394,6 +3244,31 @@ export const fPoolSponsorAbi = [
|
|
|
3394
3244
|
],
|
|
3395
3245
|
name: 'NameSet',
|
|
3396
3246
|
},
|
|
3247
|
+
{
|
|
3248
|
+
type: 'event',
|
|
3249
|
+
anonymous: false,
|
|
3250
|
+
inputs: [
|
|
3251
|
+
{
|
|
3252
|
+
name: 'poolId',
|
|
3253
|
+
internalType: 'bytes32',
|
|
3254
|
+
type: 'bytes32',
|
|
3255
|
+
indexed: true,
|
|
3256
|
+
},
|
|
3257
|
+
{
|
|
3258
|
+
name: 'current',
|
|
3259
|
+
internalType: 'address',
|
|
3260
|
+
type: 'address',
|
|
3261
|
+
indexed: true,
|
|
3262
|
+
},
|
|
3263
|
+
{
|
|
3264
|
+
name: 'proposed',
|
|
3265
|
+
internalType: 'address',
|
|
3266
|
+
type: 'address',
|
|
3267
|
+
indexed: true,
|
|
3268
|
+
},
|
|
3269
|
+
],
|
|
3270
|
+
name: 'OperatorProposed',
|
|
3271
|
+
},
|
|
3397
3272
|
{
|
|
3398
3273
|
type: 'event',
|
|
3399
3274
|
anonymous: false,
|
|
@@ -3599,14 +3474,14 @@ export const fPoolSponsorAbi = [
|
|
|
3599
3474
|
{ type: 'error', inputs: [], name: 'AlreadyUnlocked' },
|
|
3600
3475
|
{ type: 'error', inputs: [], name: 'BadLeg' },
|
|
3601
3476
|
{ type: 'error', inputs: [], name: 'BadParam' },
|
|
3477
|
+
{ type: 'error', inputs: [], name: 'BadWeights' },
|
|
3602
3478
|
{ type: 'error', inputs: [], name: 'BalanceOverflow' },
|
|
3479
|
+
{ type: 'error', inputs: [], name: 'FloorLocked' },
|
|
3603
3480
|
{ type: 'error', inputs: [], name: 'InsufficientBalance' },
|
|
3604
3481
|
{ type: 'error', inputs: [], name: 'InsufficientPermission' },
|
|
3605
3482
|
{ type: 'error', inputs: [], name: 'InsufficientQuote' },
|
|
3606
3483
|
{ type: 'error', inputs: [], name: 'InvalidToken' },
|
|
3607
3484
|
{ type: 'error', inputs: [], name: 'LegHeld' },
|
|
3608
|
-
{ type: 'error', inputs: [], name: 'LegLive' },
|
|
3609
|
-
{ type: 'error', inputs: [], name: 'MinBuffer' },
|
|
3610
3485
|
{ type: 'error', inputs: [], name: 'NonstandardToken' },
|
|
3611
3486
|
{ type: 'error', inputs: [], name: 'NotAllowed' },
|
|
3612
3487
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
@@ -3615,9 +3490,9 @@ export const fPoolSponsorAbi = [
|
|
|
3615
3490
|
{ type: 'error', inputs: [], name: 'NotDelegated' },
|
|
3616
3491
|
{ type: 'error', inputs: [], name: 'NotDissolvable' },
|
|
3617
3492
|
{ type: 'error', inputs: [], name: 'NotOperator' },
|
|
3493
|
+
{ type: 'error', inputs: [], name: 'NotPrivate' },
|
|
3618
3494
|
{ type: 'error', inputs: [], name: 'NotRetired' },
|
|
3619
3495
|
{ type: 'error', inputs: [], name: 'NotSeeded' },
|
|
3620
|
-
{ type: 'error', inputs: [], name: 'NotSoleLP' },
|
|
3621
3496
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
3622
3497
|
{ type: 'error', inputs: [], name: 'PoolLocked' },
|
|
3623
3498
|
{ type: 'error', inputs: [], name: 'PoolNotInitialized' },
|
|
@@ -3631,7 +3506,6 @@ export const fPoolSponsorAbi = [
|
|
|
3631
3506
|
{ type: 'error', inputs: [], name: 'Restructured' },
|
|
3632
3507
|
{ type: 'error', inputs: [], name: 'SameAsset' },
|
|
3633
3508
|
{ type: 'error', inputs: [], name: 'Slippage' },
|
|
3634
|
-
{ type: 'error', inputs: [], name: 'StrikeLocked' },
|
|
3635
3509
|
{ type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
|
|
3636
3510
|
{ type: 'error', inputs: [], name: 'TokensNotSettled' },
|
|
3637
3511
|
{ type: 'error', inputs: [], name: 'TooManyGenerations' },
|
|
@@ -3811,7 +3685,7 @@ export const logswapLensAbi = [
|
|
|
3811
3685
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3812
3686
|
{ name: 'phi', internalType: 'uint96', type: 'uint96' },
|
|
3813
3687
|
{ name: 'authority', internalType: 'address', type: 'address' },
|
|
3814
|
-
{ name: '
|
|
3688
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
3815
3689
|
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
3816
3690
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
3817
3691
|
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
@@ -3823,14 +3697,14 @@ export const logswapLensAbi = [
|
|
|
3823
3697
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3824
3698
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
3825
3699
|
{ name: 'theta0', internalType: 'int256', type: 'int256' },
|
|
3826
|
-
{ name: '
|
|
3700
|
+
{ name: 'harvestedTheta', internalType: 'int256', type: 'int256' },
|
|
3827
3701
|
{
|
|
3828
3702
|
name: 'pendingAuthority',
|
|
3829
3703
|
internalType: 'address',
|
|
3830
3704
|
type: 'address',
|
|
3831
3705
|
},
|
|
3832
3706
|
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
3833
|
-
{ name: '
|
|
3707
|
+
{ name: 'pendingOperator', internalType: 'address', type: 'address' },
|
|
3834
3708
|
{ name: 'incomeTaken', internalType: 'uint256', type: 'uint256' },
|
|
3835
3709
|
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
3836
3710
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logswap/sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.41",
|
|
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
|
@@ -78,7 +78,17 @@ export const EXPECTED_VERSION = 3n;
|
|
|
78
78
|
// generation (`fPoolShareId(poolId, gen)`), `dissolve(poolId)`, `redeem`, `claim` / `dividendOf`
|
|
79
79
|
// / `rollIn` / `previewRollIn` take the generation, `Pool.gen` replaces `dissolved` and
|
|
80
80
|
// `successor`. A 7 deployment's share ids do not even resolve with this SDK.
|
|
81
|
-
|
|
81
|
+
// 9 (2026-09-16): `deepen` is gone, `Pool.leverTheta` is `harvestedTheta` (decisions 034).
|
|
82
|
+
// 10 (2026-09-17): no floor guard — `Pool.minBuffer`, `raiseMinBuffer`, `LEVER_FLOOR` gone;
|
|
83
|
+
// `dissolve` needs an empty bid on every pool (decisions 035); the key bit is the CLASS, `pad`
|
|
84
|
+
// (036): `seed` mints a pad's shares to 0xdead, and the operator, the gates and the list are
|
|
85
|
+
// refused on it — `fPoolLaunch` no longer transfers the seed itself.
|
|
86
|
+
// 11 (2026-09-17): roles and entries (decisions 037) — the operator runs the pool (`harvest`,
|
|
87
|
+
// `dissolve`, `setLegs`) and is the authority until appointed, two-step (`acceptOperator`,
|
|
88
|
+
// `Pool.pendingOperator`); `setLegL`/`admitLeg` are gone, `setLegs` edits the next generation's
|
|
89
|
+
// table while unseeded; `fPoolRelaunch` takes `legs`.
|
|
90
|
+
// `getPool` decodes one field fewer, so a 9 deployment's struct no longer matches this SDK.
|
|
91
|
+
export const EXPECTED_F_VERSION = 11n;
|
|
82
92
|
|
|
83
93
|
export async function assertVersion(c: LogswapClient, expected = EXPECTED_VERSION): Promise<void> {
|
|
84
94
|
const { cPoolManagerAbi } = await import("./generated.js");
|