@logswap/sdk 0.5.40 → 0.5.42
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 +207 -288
- package/dist/fpool.js +125 -54
- package/dist/generated.d.ts +112 -226
- package/dist/generated.js +91 -167
- package/package.json +1 -1
- package/src/client.ts +11 -1
- package/src/fpool.ts +158 -86
- package/src/generated.ts +91 -167
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' },
|
|
@@ -1306,7 +1299,7 @@ export const fPoolManagerAbi = [
|
|
|
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
|
],
|
|
@@ -2007,9 +2000,9 @@ export const fPoolManagerAbi = [
|
|
|
2007
2000
|
},
|
|
2008
2001
|
{ name: 'phi', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2009
2002
|
{
|
|
2010
|
-
name: '
|
|
2011
|
-
internalType: '
|
|
2012
|
-
type: '
|
|
2003
|
+
name: 'kind',
|
|
2004
|
+
internalType: 'enum Kind',
|
|
2005
|
+
type: 'uint8',
|
|
2013
2006
|
indexed: false,
|
|
2014
2007
|
},
|
|
2015
2008
|
],
|
|
@@ -2025,65 +2018,21 @@ export const fPoolManagerAbi = [
|
|
|
2025
2018
|
type: 'bytes32',
|
|
2026
2019
|
indexed: true,
|
|
2027
2020
|
},
|
|
2028
|
-
{ name: '
|
|
2029
|
-
{
|
|
2030
|
-
name: 'base',
|
|
2031
|
-
internalType: 'address',
|
|
2032
|
-
type: 'address',
|
|
2033
|
-
indexed: false,
|
|
2034
|
-
},
|
|
2035
|
-
{
|
|
2036
|
-
name: 'newLj',
|
|
2037
|
-
internalType: 'uint256',
|
|
2038
|
-
type: 'uint256',
|
|
2039
|
-
indexed: false,
|
|
2040
|
-
},
|
|
2041
|
-
{
|
|
2042
|
-
name: 'reserve',
|
|
2043
|
-
internalType: 'uint256',
|
|
2044
|
-
type: 'uint256',
|
|
2045
|
-
indexed: false,
|
|
2046
|
-
},
|
|
2047
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2048
|
-
{
|
|
2049
|
-
name: 'theta0',
|
|
2050
|
-
internalType: 'int256',
|
|
2051
|
-
type: 'int256',
|
|
2052
|
-
indexed: false,
|
|
2053
|
-
},
|
|
2054
|
-
{
|
|
2055
|
-
name: 'dReserve',
|
|
2056
|
-
internalType: 'int256',
|
|
2057
|
-
type: 'int256',
|
|
2058
|
-
indexed: false,
|
|
2059
|
-
},
|
|
2021
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2060
2022
|
{
|
|
2061
|
-
name: '
|
|
2062
|
-
internalType: '
|
|
2063
|
-
type: '
|
|
2023
|
+
name: 'bases',
|
|
2024
|
+
internalType: 'address[]',
|
|
2025
|
+
type: 'address[]',
|
|
2064
2026
|
indexed: false,
|
|
2065
2027
|
},
|
|
2066
|
-
],
|
|
2067
|
-
name: 'LegSet',
|
|
2068
|
-
},
|
|
2069
|
-
{
|
|
2070
|
-
type: 'event',
|
|
2071
|
-
anonymous: false,
|
|
2072
|
-
inputs: [
|
|
2073
2028
|
{
|
|
2074
|
-
name: '
|
|
2075
|
-
internalType: '
|
|
2076
|
-
type: '
|
|
2077
|
-
indexed: true,
|
|
2078
|
-
},
|
|
2079
|
-
{
|
|
2080
|
-
name: 'minBuffer',
|
|
2081
|
-
internalType: 'uint256',
|
|
2082
|
-
type: 'uint256',
|
|
2029
|
+
name: 'weights',
|
|
2030
|
+
internalType: 'uint256[]',
|
|
2031
|
+
type: 'uint256[]',
|
|
2083
2032
|
indexed: false,
|
|
2084
2033
|
},
|
|
2085
2034
|
],
|
|
2086
|
-
name: '
|
|
2035
|
+
name: 'LegsSet',
|
|
2087
2036
|
},
|
|
2088
2037
|
{
|
|
2089
2038
|
type: 'event',
|
|
@@ -2136,6 +2085,31 @@ export const fPoolManagerAbi = [
|
|
|
2136
2085
|
],
|
|
2137
2086
|
name: 'NameSet',
|
|
2138
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
|
+
},
|
|
2139
2113
|
{
|
|
2140
2114
|
type: 'event',
|
|
2141
2115
|
anonymous: false,
|
|
@@ -2341,14 +2315,14 @@ export const fPoolManagerAbi = [
|
|
|
2341
2315
|
{ type: 'error', inputs: [], name: 'AlreadyUnlocked' },
|
|
2342
2316
|
{ type: 'error', inputs: [], name: 'BadLeg' },
|
|
2343
2317
|
{ type: 'error', inputs: [], name: 'BadParam' },
|
|
2318
|
+
{ type: 'error', inputs: [], name: 'BadWeights' },
|
|
2344
2319
|
{ type: 'error', inputs: [], name: 'BalanceOverflow' },
|
|
2320
|
+
{ type: 'error', inputs: [], name: 'FloorLocked' },
|
|
2345
2321
|
{ type: 'error', inputs: [], name: 'InsufficientBalance' },
|
|
2346
2322
|
{ type: 'error', inputs: [], name: 'InsufficientPermission' },
|
|
2347
2323
|
{ type: 'error', inputs: [], name: 'InsufficientQuote' },
|
|
2348
2324
|
{ type: 'error', inputs: [], name: 'InvalidToken' },
|
|
2349
2325
|
{ type: 'error', inputs: [], name: 'LegHeld' },
|
|
2350
|
-
{ type: 'error', inputs: [], name: 'LegLive' },
|
|
2351
|
-
{ type: 'error', inputs: [], name: 'MinBuffer' },
|
|
2352
2326
|
{
|
|
2353
2327
|
type: 'error',
|
|
2354
2328
|
inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -2361,9 +2335,9 @@ export const fPoolManagerAbi = [
|
|
|
2361
2335
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
2362
2336
|
{ type: 'error', inputs: [], name: 'NotDissolvable' },
|
|
2363
2337
|
{ type: 'error', inputs: [], name: 'NotOperator' },
|
|
2338
|
+
{ type: 'error', inputs: [], name: 'NotPrivate' },
|
|
2364
2339
|
{ type: 'error', inputs: [], name: 'NotRetired' },
|
|
2365
2340
|
{ type: 'error', inputs: [], name: 'NotSeeded' },
|
|
2366
|
-
{ type: 'error', inputs: [], name: 'NotSoleLP' },
|
|
2367
2341
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
2368
2342
|
{ type: 'error', inputs: [], name: 'PoolLocked' },
|
|
2369
2343
|
{ type: 'error', inputs: [], name: 'PoolNotInitialized' },
|
|
@@ -2377,7 +2351,6 @@ export const fPoolManagerAbi = [
|
|
|
2377
2351
|
{ type: 'error', inputs: [], name: 'Restructured' },
|
|
2378
2352
|
{ type: 'error', inputs: [], name: 'SameAsset' },
|
|
2379
2353
|
{ type: 'error', inputs: [], name: 'Slippage' },
|
|
2380
|
-
{ type: 'error', inputs: [], name: 'StrikeLocked' },
|
|
2381
2354
|
{ type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
|
|
2382
2355
|
{ type: 'error', inputs: [], name: 'TokensNotSettled' },
|
|
2383
2356
|
{ type: 'error', inputs: [], name: 'TooManyGenerations' },
|
|
@@ -2404,13 +2377,6 @@ export const fPoolSponsorAbi = [
|
|
|
2404
2377
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2405
2378
|
stateMutability: 'view',
|
|
2406
2379
|
},
|
|
2407
|
-
{
|
|
2408
|
-
type: 'function',
|
|
2409
|
-
inputs: [],
|
|
2410
|
-
name: 'LEVER_FLOOR',
|
|
2411
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2412
|
-
stateMutability: 'view',
|
|
2413
|
-
},
|
|
2414
2380
|
{
|
|
2415
2381
|
type: 'function',
|
|
2416
2382
|
inputs: [],
|
|
@@ -2441,17 +2407,9 @@ export const fPoolSponsorAbi = [
|
|
|
2441
2407
|
},
|
|
2442
2408
|
{
|
|
2443
2409
|
type: 'function',
|
|
2444
|
-
inputs: [
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
{ name: 'Lj', internalType: 'uint256', type: 'uint256' },
|
|
2448
|
-
{ name: 'R', internalType: 'uint256', type: 'uint256' },
|
|
2449
|
-
],
|
|
2450
|
-
name: 'admitLeg',
|
|
2451
|
-
outputs: [
|
|
2452
|
-
{ name: 'dReserve', internalType: 'int256', type: 'int256' },
|
|
2453
|
-
{ name: 'dShares', internalType: 'int256', type: 'int256' },
|
|
2454
|
-
],
|
|
2410
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
2411
|
+
name: 'acceptOperator',
|
|
2412
|
+
outputs: [],
|
|
2455
2413
|
stateMutability: 'nonpayable',
|
|
2456
2414
|
},
|
|
2457
2415
|
{
|
|
@@ -2698,16 +2656,6 @@ export const fPoolSponsorAbi = [
|
|
|
2698
2656
|
outputs: [],
|
|
2699
2657
|
stateMutability: 'nonpayable',
|
|
2700
2658
|
},
|
|
2701
|
-
{
|
|
2702
|
-
type: 'function',
|
|
2703
|
-
inputs: [
|
|
2704
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2705
|
-
{ name: 'minBuffer', internalType: 'uint256', type: 'uint256' },
|
|
2706
|
-
],
|
|
2707
|
-
name: 'raiseMinBuffer',
|
|
2708
|
-
outputs: [],
|
|
2709
|
-
stateMutability: 'nonpayable',
|
|
2710
|
-
},
|
|
2711
2659
|
{
|
|
2712
2660
|
type: 'function',
|
|
2713
2661
|
inputs: [
|
|
@@ -2754,15 +2702,11 @@ export const fPoolSponsorAbi = [
|
|
|
2754
2702
|
type: 'function',
|
|
2755
2703
|
inputs: [
|
|
2756
2704
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2757
|
-
{ name: '
|
|
2758
|
-
{ name: '
|
|
2759
|
-
{ name: 'rIfNew', internalType: 'uint256', type: 'uint256' },
|
|
2760
|
-
],
|
|
2761
|
-
name: 'setLegL',
|
|
2762
|
-
outputs: [
|
|
2763
|
-
{ name: 'dReserve', internalType: 'int256', type: 'int256' },
|
|
2764
|
-
{ name: 'dShares', internalType: 'int256', type: 'int256' },
|
|
2705
|
+
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
2706
|
+
{ name: 'newBases', internalType: 'address[]', type: 'address[]' },
|
|
2765
2707
|
],
|
|
2708
|
+
name: 'setLegs',
|
|
2709
|
+
outputs: [],
|
|
2766
2710
|
stateMutability: 'nonpayable',
|
|
2767
2711
|
},
|
|
2768
2712
|
{
|
|
@@ -3215,9 +3159,9 @@ export const fPoolSponsorAbi = [
|
|
|
3215
3159
|
},
|
|
3216
3160
|
{ name: 'phi', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
3217
3161
|
{
|
|
3218
|
-
name: '
|
|
3219
|
-
internalType: '
|
|
3220
|
-
type: '
|
|
3162
|
+
name: 'kind',
|
|
3163
|
+
internalType: 'enum Kind',
|
|
3164
|
+
type: 'uint8',
|
|
3221
3165
|
indexed: false,
|
|
3222
3166
|
},
|
|
3223
3167
|
],
|
|
@@ -3233,65 +3177,21 @@ export const fPoolSponsorAbi = [
|
|
|
3233
3177
|
type: 'bytes32',
|
|
3234
3178
|
indexed: true,
|
|
3235
3179
|
},
|
|
3236
|
-
{ name: '
|
|
3237
|
-
{
|
|
3238
|
-
name: 'base',
|
|
3239
|
-
internalType: 'address',
|
|
3240
|
-
type: 'address',
|
|
3241
|
-
indexed: false,
|
|
3242
|
-
},
|
|
3243
|
-
{
|
|
3244
|
-
name: 'newLj',
|
|
3245
|
-
internalType: 'uint256',
|
|
3246
|
-
type: 'uint256',
|
|
3247
|
-
indexed: false,
|
|
3248
|
-
},
|
|
3249
|
-
{
|
|
3250
|
-
name: 'reserve',
|
|
3251
|
-
internalType: 'uint256',
|
|
3252
|
-
type: 'uint256',
|
|
3253
|
-
indexed: false,
|
|
3254
|
-
},
|
|
3255
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
3256
|
-
{
|
|
3257
|
-
name: 'theta0',
|
|
3258
|
-
internalType: 'int256',
|
|
3259
|
-
type: 'int256',
|
|
3260
|
-
indexed: false,
|
|
3261
|
-
},
|
|
3262
|
-
{
|
|
3263
|
-
name: 'dReserve',
|
|
3264
|
-
internalType: 'int256',
|
|
3265
|
-
type: 'int256',
|
|
3266
|
-
indexed: false,
|
|
3267
|
-
},
|
|
3180
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
3268
3181
|
{
|
|
3269
|
-
name: '
|
|
3270
|
-
internalType: '
|
|
3271
|
-
type: '
|
|
3182
|
+
name: 'bases',
|
|
3183
|
+
internalType: 'address[]',
|
|
3184
|
+
type: 'address[]',
|
|
3272
3185
|
indexed: false,
|
|
3273
3186
|
},
|
|
3274
|
-
],
|
|
3275
|
-
name: 'LegSet',
|
|
3276
|
-
},
|
|
3277
|
-
{
|
|
3278
|
-
type: 'event',
|
|
3279
|
-
anonymous: false,
|
|
3280
|
-
inputs: [
|
|
3281
3187
|
{
|
|
3282
|
-
name: '
|
|
3283
|
-
internalType: '
|
|
3284
|
-
type: '
|
|
3285
|
-
indexed: true,
|
|
3286
|
-
},
|
|
3287
|
-
{
|
|
3288
|
-
name: 'minBuffer',
|
|
3289
|
-
internalType: 'uint256',
|
|
3290
|
-
type: 'uint256',
|
|
3188
|
+
name: 'weights',
|
|
3189
|
+
internalType: 'uint256[]',
|
|
3190
|
+
type: 'uint256[]',
|
|
3291
3191
|
indexed: false,
|
|
3292
3192
|
},
|
|
3293
3193
|
],
|
|
3294
|
-
name: '
|
|
3194
|
+
name: 'LegsSet',
|
|
3295
3195
|
},
|
|
3296
3196
|
{
|
|
3297
3197
|
type: 'event',
|
|
@@ -3344,6 +3244,31 @@ export const fPoolSponsorAbi = [
|
|
|
3344
3244
|
],
|
|
3345
3245
|
name: 'NameSet',
|
|
3346
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
|
+
},
|
|
3347
3272
|
{
|
|
3348
3273
|
type: 'event',
|
|
3349
3274
|
anonymous: false,
|
|
@@ -3549,14 +3474,14 @@ export const fPoolSponsorAbi = [
|
|
|
3549
3474
|
{ type: 'error', inputs: [], name: 'AlreadyUnlocked' },
|
|
3550
3475
|
{ type: 'error', inputs: [], name: 'BadLeg' },
|
|
3551
3476
|
{ type: 'error', inputs: [], name: 'BadParam' },
|
|
3477
|
+
{ type: 'error', inputs: [], name: 'BadWeights' },
|
|
3552
3478
|
{ type: 'error', inputs: [], name: 'BalanceOverflow' },
|
|
3479
|
+
{ type: 'error', inputs: [], name: 'FloorLocked' },
|
|
3553
3480
|
{ type: 'error', inputs: [], name: 'InsufficientBalance' },
|
|
3554
3481
|
{ type: 'error', inputs: [], name: 'InsufficientPermission' },
|
|
3555
3482
|
{ type: 'error', inputs: [], name: 'InsufficientQuote' },
|
|
3556
3483
|
{ type: 'error', inputs: [], name: 'InvalidToken' },
|
|
3557
3484
|
{ type: 'error', inputs: [], name: 'LegHeld' },
|
|
3558
|
-
{ type: 'error', inputs: [], name: 'LegLive' },
|
|
3559
|
-
{ type: 'error', inputs: [], name: 'MinBuffer' },
|
|
3560
3485
|
{ type: 'error', inputs: [], name: 'NonstandardToken' },
|
|
3561
3486
|
{ type: 'error', inputs: [], name: 'NotAllowed' },
|
|
3562
3487
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
@@ -3565,9 +3490,9 @@ export const fPoolSponsorAbi = [
|
|
|
3565
3490
|
{ type: 'error', inputs: [], name: 'NotDelegated' },
|
|
3566
3491
|
{ type: 'error', inputs: [], name: 'NotDissolvable' },
|
|
3567
3492
|
{ type: 'error', inputs: [], name: 'NotOperator' },
|
|
3493
|
+
{ type: 'error', inputs: [], name: 'NotPrivate' },
|
|
3568
3494
|
{ type: 'error', inputs: [], name: 'NotRetired' },
|
|
3569
3495
|
{ type: 'error', inputs: [], name: 'NotSeeded' },
|
|
3570
|
-
{ type: 'error', inputs: [], name: 'NotSoleLP' },
|
|
3571
3496
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
3572
3497
|
{ type: 'error', inputs: [], name: 'PoolLocked' },
|
|
3573
3498
|
{ type: 'error', inputs: [], name: 'PoolNotInitialized' },
|
|
@@ -3581,7 +3506,6 @@ export const fPoolSponsorAbi = [
|
|
|
3581
3506
|
{ type: 'error', inputs: [], name: 'Restructured' },
|
|
3582
3507
|
{ type: 'error', inputs: [], name: 'SameAsset' },
|
|
3583
3508
|
{ type: 'error', inputs: [], name: 'Slippage' },
|
|
3584
|
-
{ type: 'error', inputs: [], name: 'StrikeLocked' },
|
|
3585
3509
|
{ type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
|
|
3586
3510
|
{ type: 'error', inputs: [], name: 'TokensNotSettled' },
|
|
3587
3511
|
{ type: 'error', inputs: [], name: 'TooManyGenerations' },
|
|
@@ -3761,7 +3685,7 @@ export const logswapLensAbi = [
|
|
|
3761
3685
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3762
3686
|
{ name: 'phi', internalType: 'uint96', type: 'uint96' },
|
|
3763
3687
|
{ name: 'authority', internalType: 'address', type: 'address' },
|
|
3764
|
-
{ name: '
|
|
3688
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
3765
3689
|
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
3766
3690
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
3767
3691
|
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
@@ -3780,7 +3704,7 @@ export const logswapLensAbi = [
|
|
|
3780
3704
|
type: 'address',
|
|
3781
3705
|
},
|
|
3782
3706
|
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
3783
|
-
{ name: '
|
|
3707
|
+
{ name: 'pendingOperator', internalType: 'address', type: 'address' },
|
|
3784
3708
|
{ name: 'incomeTaken', internalType: 'uint256', type: 'uint256' },
|
|
3785
3709
|
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
3786
3710
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logswap/sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.42",
|
|
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");
|