@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/src/generated.ts CHANGED
@@ -1094,13 +1094,6 @@ export const fPoolManagerAbi = [
1094
1094
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1095
1095
  stateMutability: 'view',
1096
1096
  },
1097
- {
1098
- type: 'function',
1099
- inputs: [],
1100
- name: 'LEVER_FLOOR',
1101
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1102
- stateMutability: 'view',
1103
- },
1104
1097
  {
1105
1098
  type: 'function',
1106
1099
  inputs: [],
@@ -1290,7 +1283,7 @@ export const fPoolManagerAbi = [
1290
1283
  { name: 'quote', internalType: 'address', type: 'address' },
1291
1284
  { name: 'phi', internalType: 'uint96', type: 'uint96' },
1292
1285
  { name: 'authority', internalType: 'address', type: 'address' },
1293
- { name: 'lockStrike', internalType: 'bool', type: 'bool' },
1286
+ { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
1294
1287
  { name: 'seeded', internalType: 'bool', type: 'bool' },
1295
1288
  { name: 'gen', internalType: 'uint16', type: 'uint16' },
1296
1289
  { name: 'n', internalType: 'uint8', type: 'uint8' },
@@ -1309,7 +1302,7 @@ export const fPoolManagerAbi = [
1309
1302
  type: 'address',
1310
1303
  },
1311
1304
  { name: 'operator', internalType: 'address', type: 'address' },
1312
- { name: 'minBuffer', internalType: 'uint96', type: 'uint96' },
1305
+ { name: 'pendingOperator', internalType: 'address', type: 'address' },
1313
1306
  { name: 'incomeTaken', internalType: 'uint256', type: 'uint256' },
1314
1307
  { name: 'name', internalType: 'bytes32', type: 'bytes32' },
1315
1308
  ],
@@ -1336,7 +1329,7 @@ export const fPoolManagerAbi = [
1336
1329
  { name: 'bases', internalType: 'address[]', type: 'address[]' },
1337
1330
  { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
1338
1331
  { name: 'phi', internalType: 'uint256', type: 'uint256' },
1339
- { name: 'lockStrike', internalType: 'bool', type: 'bool' },
1332
+ { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
1340
1333
  { name: 'authority', internalType: 'address', type: 'address' },
1341
1334
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
1342
1335
  ],
@@ -1358,7 +1351,7 @@ export const fPoolManagerAbi = [
1358
1351
  { name: 'bases', internalType: 'address[]', type: 'address[]' },
1359
1352
  { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
1360
1353
  { name: 'phi', internalType: 'uint256', type: 'uint256' },
1361
- { name: 'lockStrike', internalType: 'bool', type: 'bool' },
1354
+ { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
1362
1355
  { name: 'authority', internalType: 'address', type: 'address' },
1363
1356
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
1364
1357
  ],
@@ -2010,9 +2003,9 @@ export const fPoolManagerAbi = [
2010
2003
  },
2011
2004
  { name: 'phi', internalType: 'uint256', type: 'uint256', indexed: false },
2012
2005
  {
2013
- name: 'lockStrike',
2014
- internalType: 'bool',
2015
- type: 'bool',
2006
+ name: 'kind',
2007
+ internalType: 'enum Kind',
2008
+ type: 'uint8',
2016
2009
  indexed: false,
2017
2010
  },
2018
2011
  ],
@@ -2028,65 +2021,21 @@ export const fPoolManagerAbi = [
2028
2021
  type: 'bytes32',
2029
2022
  indexed: true,
2030
2023
  },
2031
- { name: 'j', internalType: 'uint256', type: 'uint256', indexed: true },
2032
- {
2033
- name: 'base',
2034
- internalType: 'address',
2035
- type: 'address',
2036
- indexed: false,
2037
- },
2038
- {
2039
- name: 'newLj',
2040
- internalType: 'uint256',
2041
- type: 'uint256',
2042
- indexed: false,
2043
- },
2044
- {
2045
- name: 'reserve',
2046
- internalType: 'uint256',
2047
- type: 'uint256',
2048
- indexed: false,
2049
- },
2050
- { name: 'L', internalType: 'uint256', type: 'uint256', indexed: false },
2051
- {
2052
- name: 'theta0',
2053
- internalType: 'int256',
2054
- type: 'int256',
2055
- indexed: false,
2056
- },
2057
- {
2058
- name: 'dReserve',
2059
- internalType: 'int256',
2060
- type: 'int256',
2061
- indexed: false,
2062
- },
2024
+ { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
2063
2025
  {
2064
- name: 'dShares',
2065
- internalType: 'int256',
2066
- type: 'int256',
2026
+ name: 'bases',
2027
+ internalType: 'address[]',
2028
+ type: 'address[]',
2067
2029
  indexed: false,
2068
2030
  },
2069
- ],
2070
- name: 'LegSet',
2071
- },
2072
- {
2073
- type: 'event',
2074
- anonymous: false,
2075
- inputs: [
2076
2031
  {
2077
- name: 'poolId',
2078
- internalType: 'bytes32',
2079
- type: 'bytes32',
2080
- indexed: true,
2081
- },
2082
- {
2083
- name: 'minBuffer',
2084
- internalType: 'uint256',
2085
- type: 'uint256',
2032
+ name: 'weights',
2033
+ internalType: 'uint256[]',
2034
+ type: 'uint256[]',
2086
2035
  indexed: false,
2087
2036
  },
2088
2037
  ],
2089
- name: 'MinBufferRaised',
2038
+ name: 'LegsSet',
2090
2039
  },
2091
2040
  {
2092
2041
  type: 'event',
@@ -2139,6 +2088,31 @@ export const fPoolManagerAbi = [
2139
2088
  ],
2140
2089
  name: 'NameSet',
2141
2090
  },
2091
+ {
2092
+ type: 'event',
2093
+ anonymous: false,
2094
+ inputs: [
2095
+ {
2096
+ name: 'poolId',
2097
+ internalType: 'bytes32',
2098
+ type: 'bytes32',
2099
+ indexed: true,
2100
+ },
2101
+ {
2102
+ name: 'current',
2103
+ internalType: 'address',
2104
+ type: 'address',
2105
+ indexed: true,
2106
+ },
2107
+ {
2108
+ name: 'proposed',
2109
+ internalType: 'address',
2110
+ type: 'address',
2111
+ indexed: true,
2112
+ },
2113
+ ],
2114
+ name: 'OperatorProposed',
2115
+ },
2142
2116
  {
2143
2117
  type: 'event',
2144
2118
  anonymous: false,
@@ -2344,14 +2318,14 @@ export const fPoolManagerAbi = [
2344
2318
  { type: 'error', inputs: [], name: 'AlreadyUnlocked' },
2345
2319
  { type: 'error', inputs: [], name: 'BadLeg' },
2346
2320
  { type: 'error', inputs: [], name: 'BadParam' },
2321
+ { type: 'error', inputs: [], name: 'BadWeights' },
2347
2322
  { type: 'error', inputs: [], name: 'BalanceOverflow' },
2323
+ { type: 'error', inputs: [], name: 'FloorLocked' },
2348
2324
  { type: 'error', inputs: [], name: 'InsufficientBalance' },
2349
2325
  { type: 'error', inputs: [], name: 'InsufficientPermission' },
2350
2326
  { type: 'error', inputs: [], name: 'InsufficientQuote' },
2351
2327
  { type: 'error', inputs: [], name: 'InvalidToken' },
2352
2328
  { type: 'error', inputs: [], name: 'LegHeld' },
2353
- { type: 'error', inputs: [], name: 'LegLive' },
2354
- { type: 'error', inputs: [], name: 'MinBuffer' },
2355
2329
  {
2356
2330
  type: 'error',
2357
2331
  inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256' }],
@@ -2364,9 +2338,9 @@ export const fPoolManagerAbi = [
2364
2338
  { type: 'error', inputs: [], name: 'NotCollector' },
2365
2339
  { type: 'error', inputs: [], name: 'NotDissolvable' },
2366
2340
  { type: 'error', inputs: [], name: 'NotOperator' },
2341
+ { type: 'error', inputs: [], name: 'NotPrivate' },
2367
2342
  { type: 'error', inputs: [], name: 'NotRetired' },
2368
2343
  { type: 'error', inputs: [], name: 'NotSeeded' },
2369
- { type: 'error', inputs: [], name: 'NotSoleLP' },
2370
2344
  { type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
2371
2345
  { type: 'error', inputs: [], name: 'PoolLocked' },
2372
2346
  { type: 'error', inputs: [], name: 'PoolNotInitialized' },
@@ -2380,7 +2354,6 @@ export const fPoolManagerAbi = [
2380
2354
  { type: 'error', inputs: [], name: 'Restructured' },
2381
2355
  { type: 'error', inputs: [], name: 'SameAsset' },
2382
2356
  { type: 'error', inputs: [], name: 'Slippage' },
2383
- { type: 'error', inputs: [], name: 'StrikeLocked' },
2384
2357
  { type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
2385
2358
  { type: 'error', inputs: [], name: 'TokensNotSettled' },
2386
2359
  { type: 'error', inputs: [], name: 'TooManyGenerations' },
@@ -2409,13 +2382,6 @@ export const fPoolSponsorAbi = [
2409
2382
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2410
2383
  stateMutability: 'view',
2411
2384
  },
2412
- {
2413
- type: 'function',
2414
- inputs: [],
2415
- name: 'LEVER_FLOOR',
2416
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2417
- stateMutability: 'view',
2418
- },
2419
2385
  {
2420
2386
  type: 'function',
2421
2387
  inputs: [],
@@ -2446,17 +2412,9 @@ export const fPoolSponsorAbi = [
2446
2412
  },
2447
2413
  {
2448
2414
  type: 'function',
2449
- inputs: [
2450
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
2451
- { name: 'base', internalType: 'address', type: 'address' },
2452
- { name: 'Lj', internalType: 'uint256', type: 'uint256' },
2453
- { name: 'R', internalType: 'uint256', type: 'uint256' },
2454
- ],
2455
- name: 'admitLeg',
2456
- outputs: [
2457
- { name: 'dReserve', internalType: 'int256', type: 'int256' },
2458
- { name: 'dShares', internalType: 'int256', type: 'int256' },
2459
- ],
2415
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
2416
+ name: 'acceptOperator',
2417
+ outputs: [],
2460
2418
  stateMutability: 'nonpayable',
2461
2419
  },
2462
2420
  {
@@ -2703,16 +2661,6 @@ export const fPoolSponsorAbi = [
2703
2661
  outputs: [],
2704
2662
  stateMutability: 'nonpayable',
2705
2663
  },
2706
- {
2707
- type: 'function',
2708
- inputs: [
2709
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
2710
- { name: 'minBuffer', internalType: 'uint256', type: 'uint256' },
2711
- ],
2712
- name: 'raiseMinBuffer',
2713
- outputs: [],
2714
- stateMutability: 'nonpayable',
2715
- },
2716
2664
  {
2717
2665
  type: 'function',
2718
2666
  inputs: [
@@ -2759,15 +2707,11 @@ export const fPoolSponsorAbi = [
2759
2707
  type: 'function',
2760
2708
  inputs: [
2761
2709
  { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
2762
- { name: 'j', internalType: 'uint256', type: 'uint256' },
2763
- { name: 'newLj', internalType: 'uint256', type: 'uint256' },
2764
- { name: 'rIfNew', internalType: 'uint256', type: 'uint256' },
2765
- ],
2766
- name: 'setLegL',
2767
- outputs: [
2768
- { name: 'dReserve', internalType: 'int256', type: 'int256' },
2769
- { name: 'dShares', internalType: 'int256', type: 'int256' },
2710
+ { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
2711
+ { name: 'newBases', internalType: 'address[]', type: 'address[]' },
2770
2712
  ],
2713
+ name: 'setLegs',
2714
+ outputs: [],
2771
2715
  stateMutability: 'nonpayable',
2772
2716
  },
2773
2717
  {
@@ -3220,9 +3164,9 @@ export const fPoolSponsorAbi = [
3220
3164
  },
3221
3165
  { name: 'phi', internalType: 'uint256', type: 'uint256', indexed: false },
3222
3166
  {
3223
- name: 'lockStrike',
3224
- internalType: 'bool',
3225
- type: 'bool',
3167
+ name: 'kind',
3168
+ internalType: 'enum Kind',
3169
+ type: 'uint8',
3226
3170
  indexed: false,
3227
3171
  },
3228
3172
  ],
@@ -3238,65 +3182,21 @@ export const fPoolSponsorAbi = [
3238
3182
  type: 'bytes32',
3239
3183
  indexed: true,
3240
3184
  },
3241
- { name: 'j', internalType: 'uint256', type: 'uint256', indexed: true },
3242
- {
3243
- name: 'base',
3244
- internalType: 'address',
3245
- type: 'address',
3246
- indexed: false,
3247
- },
3248
- {
3249
- name: 'newLj',
3250
- internalType: 'uint256',
3251
- type: 'uint256',
3252
- indexed: false,
3253
- },
3254
- {
3255
- name: 'reserve',
3256
- internalType: 'uint256',
3257
- type: 'uint256',
3258
- indexed: false,
3259
- },
3260
- { name: 'L', internalType: 'uint256', type: 'uint256', indexed: false },
3261
- {
3262
- name: 'theta0',
3263
- internalType: 'int256',
3264
- type: 'int256',
3265
- indexed: false,
3266
- },
3267
- {
3268
- name: 'dReserve',
3269
- internalType: 'int256',
3270
- type: 'int256',
3271
- indexed: false,
3272
- },
3185
+ { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
3273
3186
  {
3274
- name: 'dShares',
3275
- internalType: 'int256',
3276
- type: 'int256',
3187
+ name: 'bases',
3188
+ internalType: 'address[]',
3189
+ type: 'address[]',
3277
3190
  indexed: false,
3278
3191
  },
3279
- ],
3280
- name: 'LegSet',
3281
- },
3282
- {
3283
- type: 'event',
3284
- anonymous: false,
3285
- inputs: [
3286
3192
  {
3287
- name: 'poolId',
3288
- internalType: 'bytes32',
3289
- type: 'bytes32',
3290
- indexed: true,
3291
- },
3292
- {
3293
- name: 'minBuffer',
3294
- internalType: 'uint256',
3295
- type: 'uint256',
3193
+ name: 'weights',
3194
+ internalType: 'uint256[]',
3195
+ type: 'uint256[]',
3296
3196
  indexed: false,
3297
3197
  },
3298
3198
  ],
3299
- name: 'MinBufferRaised',
3199
+ name: 'LegsSet',
3300
3200
  },
3301
3201
  {
3302
3202
  type: 'event',
@@ -3349,6 +3249,31 @@ export const fPoolSponsorAbi = [
3349
3249
  ],
3350
3250
  name: 'NameSet',
3351
3251
  },
3252
+ {
3253
+ type: 'event',
3254
+ anonymous: false,
3255
+ inputs: [
3256
+ {
3257
+ name: 'poolId',
3258
+ internalType: 'bytes32',
3259
+ type: 'bytes32',
3260
+ indexed: true,
3261
+ },
3262
+ {
3263
+ name: 'current',
3264
+ internalType: 'address',
3265
+ type: 'address',
3266
+ indexed: true,
3267
+ },
3268
+ {
3269
+ name: 'proposed',
3270
+ internalType: 'address',
3271
+ type: 'address',
3272
+ indexed: true,
3273
+ },
3274
+ ],
3275
+ name: 'OperatorProposed',
3276
+ },
3352
3277
  {
3353
3278
  type: 'event',
3354
3279
  anonymous: false,
@@ -3554,14 +3479,14 @@ export const fPoolSponsorAbi = [
3554
3479
  { type: 'error', inputs: [], name: 'AlreadyUnlocked' },
3555
3480
  { type: 'error', inputs: [], name: 'BadLeg' },
3556
3481
  { type: 'error', inputs: [], name: 'BadParam' },
3482
+ { type: 'error', inputs: [], name: 'BadWeights' },
3557
3483
  { type: 'error', inputs: [], name: 'BalanceOverflow' },
3484
+ { type: 'error', inputs: [], name: 'FloorLocked' },
3558
3485
  { type: 'error', inputs: [], name: 'InsufficientBalance' },
3559
3486
  { type: 'error', inputs: [], name: 'InsufficientPermission' },
3560
3487
  { type: 'error', inputs: [], name: 'InsufficientQuote' },
3561
3488
  { type: 'error', inputs: [], name: 'InvalidToken' },
3562
3489
  { type: 'error', inputs: [], name: 'LegHeld' },
3563
- { type: 'error', inputs: [], name: 'LegLive' },
3564
- { type: 'error', inputs: [], name: 'MinBuffer' },
3565
3490
  { type: 'error', inputs: [], name: 'NonstandardToken' },
3566
3491
  { type: 'error', inputs: [], name: 'NotAllowed' },
3567
3492
  { type: 'error', inputs: [], name: 'NotAuthority' },
@@ -3570,9 +3495,9 @@ export const fPoolSponsorAbi = [
3570
3495
  { type: 'error', inputs: [], name: 'NotDelegated' },
3571
3496
  { type: 'error', inputs: [], name: 'NotDissolvable' },
3572
3497
  { type: 'error', inputs: [], name: 'NotOperator' },
3498
+ { type: 'error', inputs: [], name: 'NotPrivate' },
3573
3499
  { type: 'error', inputs: [], name: 'NotRetired' },
3574
3500
  { type: 'error', inputs: [], name: 'NotSeeded' },
3575
- { type: 'error', inputs: [], name: 'NotSoleLP' },
3576
3501
  { type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
3577
3502
  { type: 'error', inputs: [], name: 'PoolLocked' },
3578
3503
  { type: 'error', inputs: [], name: 'PoolNotInitialized' },
@@ -3586,7 +3511,6 @@ export const fPoolSponsorAbi = [
3586
3511
  { type: 'error', inputs: [], name: 'Restructured' },
3587
3512
  { type: 'error', inputs: [], name: 'SameAsset' },
3588
3513
  { type: 'error', inputs: [], name: 'Slippage' },
3589
- { type: 'error', inputs: [], name: 'StrikeLocked' },
3590
3514
  { type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
3591
3515
  { type: 'error', inputs: [], name: 'TokensNotSettled' },
3592
3516
  { type: 'error', inputs: [], name: 'TooManyGenerations' },
@@ -3768,7 +3692,7 @@ export const logswapLensAbi = [
3768
3692
  { name: 'quote', internalType: 'address', type: 'address' },
3769
3693
  { name: 'phi', internalType: 'uint96', type: 'uint96' },
3770
3694
  { name: 'authority', internalType: 'address', type: 'address' },
3771
- { name: 'lockStrike', internalType: 'bool', type: 'bool' },
3695
+ { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
3772
3696
  { name: 'seeded', internalType: 'bool', type: 'bool' },
3773
3697
  { name: 'gen', internalType: 'uint16', type: 'uint16' },
3774
3698
  { name: 'n', internalType: 'uint8', type: 'uint8' },
@@ -3787,7 +3711,7 @@ export const logswapLensAbi = [
3787
3711
  type: 'address',
3788
3712
  },
3789
3713
  { name: 'operator', internalType: 'address', type: 'address' },
3790
- { name: 'minBuffer', internalType: 'uint96', type: 'uint96' },
3714
+ { name: 'pendingOperator', internalType: 'address', type: 'address' },
3791
3715
  { name: 'incomeTaken', internalType: 'uint256', type: 'uint256' },
3792
3716
  { name: 'name', internalType: 'bytes32', type: 'bytes32' },
3793
3717
  ],