@logswap/sdk 0.5.36 → 0.5.37

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
@@ -1079,6 +1079,7 @@ export const fPoolManagerAbi = [
1079
1079
  ],
1080
1080
  stateMutability: 'nonpayable',
1081
1081
  },
1082
+ { type: 'fallback', stateMutability: 'nonpayable' },
1082
1083
  {
1083
1084
  type: 'function',
1084
1085
  inputs: [],
@@ -1096,31 +1097,24 @@ export const fPoolManagerAbi = [
1096
1097
  {
1097
1098
  type: 'function',
1098
1099
  inputs: [],
1099
- name: 'MINT_FEE',
1100
+ name: 'LEVER_FLOOR',
1100
1101
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1101
1102
  stateMutability: 'view',
1102
1103
  },
1103
1104
  {
1104
1105
  type: 'function',
1105
1106
  inputs: [],
1106
- name: 'MINT_FEE_PROTOCOL_CUT',
1107
+ name: 'MINT_FEE',
1107
1108
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1108
1109
  stateMutability: 'view',
1109
1110
  },
1110
1111
  {
1111
1112
  type: 'function',
1112
1113
  inputs: [],
1113
- name: 'NO_X',
1114
- outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
1114
+ name: 'MINT_FEE_PROTOCOL_CUT',
1115
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1115
1116
  stateMutability: 'view',
1116
1117
  },
1117
- {
1118
- type: 'function',
1119
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1120
- name: 'acceptAuthority',
1121
- outputs: [],
1122
- stateMutability: 'nonpayable',
1123
- },
1124
1118
  {
1125
1119
  type: 'function',
1126
1120
  inputs: [],
@@ -1128,21 +1122,6 @@ export const fPoolManagerAbi = [
1128
1122
  outputs: [],
1129
1123
  stateMutability: 'nonpayable',
1130
1124
  },
1131
- {
1132
- type: 'function',
1133
- inputs: [
1134
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1135
- { name: 'base', internalType: 'address', type: 'address' },
1136
- { name: 'Lj', internalType: 'uint256', type: 'uint256' },
1137
- { name: 'x', internalType: 'int256', type: 'int256' },
1138
- ],
1139
- name: 'admitLeg',
1140
- outputs: [
1141
- { name: 'dReserve', internalType: 'int256', type: 'int256' },
1142
- { name: 'dShares', internalType: 'int256', type: 'int256' },
1143
- ],
1144
- stateMutability: 'nonpayable',
1145
- },
1146
1125
  {
1147
1126
  type: 'function',
1148
1127
  inputs: [
@@ -1164,16 +1143,6 @@ export const fPoolManagerAbi = [
1164
1143
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1165
1144
  stateMutability: 'view',
1166
1145
  },
1167
- {
1168
- type: 'function',
1169
- inputs: [
1170
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1171
- { name: 'who', internalType: 'address', type: 'address' },
1172
- ],
1173
- name: 'appointOperator',
1174
- outputs: [],
1175
- stateMutability: 'nonpayable',
1176
- },
1177
1146
  {
1178
1147
  type: 'function',
1179
1148
  inputs: [
@@ -1248,29 +1217,29 @@ export const fPoolManagerAbi = [
1248
1217
  {
1249
1218
  type: 'function',
1250
1219
  inputs: [
1251
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1252
- { name: 'amount', internalType: 'uint256', type: 'uint256' },
1220
+ { name: 'token', internalType: 'address', type: 'address' },
1221
+ { name: 'target', internalType: 'address', type: 'address' },
1253
1222
  ],
1254
- name: 'deepen',
1255
- outputs: [],
1256
- stateMutability: 'nonpayable',
1223
+ name: 'deltaOf',
1224
+ outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
1225
+ stateMutability: 'view',
1257
1226
  },
1258
1227
  {
1259
1228
  type: 'function',
1260
1229
  inputs: [
1261
- { name: 'token', internalType: 'address', type: 'address' },
1262
- { name: 'target', internalType: 'address', type: 'address' },
1230
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1231
+ { name: 'holder', internalType: 'address', type: 'address' },
1263
1232
  ],
1264
- name: 'deltaOf',
1265
- outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
1233
+ name: 'dividendOf',
1234
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1266
1235
  stateMutability: 'view',
1267
1236
  },
1268
1237
  {
1269
1238
  type: 'function',
1270
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1271
- name: 'dissolve',
1272
- outputs: [],
1273
- stateMutability: 'nonpayable',
1239
+ inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1240
+ name: 'dps',
1241
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1242
+ stateMutability: 'view',
1274
1243
  },
1275
1244
  {
1276
1245
  type: 'function',
@@ -1300,13 +1269,13 @@ export const fPoolManagerAbi = [
1300
1269
  outputs: [
1301
1270
  {
1302
1271
  name: '',
1303
- internalType: 'struct FPoolManager.Pool',
1272
+ internalType: 'struct FPoolBase.Pool',
1304
1273
  type: 'tuple',
1305
1274
  components: [
1306
1275
  { name: 'quote', internalType: 'address', type: 'address' },
1307
1276
  { name: 'phi', internalType: 'uint96', type: 'uint96' },
1308
1277
  { name: 'authority', internalType: 'address', type: 'address' },
1309
- { name: 'feesOnly', internalType: 'bool', type: 'bool' },
1278
+ { name: 'lockStrike', internalType: 'bool', type: 'bool' },
1310
1279
  { name: 'seeded', internalType: 'bool', type: 'bool' },
1311
1280
  { name: 'dissolved', internalType: 'bool', type: 'bool' },
1312
1281
  { name: 'n', internalType: 'uint8', type: 'uint8' },
@@ -1328,9 +1297,1268 @@ export const fPoolManagerAbi = [
1328
1297
  { name: 'minBuffer', internalType: 'uint96', type: 'uint96' },
1329
1298
  { name: 'incomeTaken', internalType: 'uint256', type: 'uint256' },
1330
1299
  { name: 'name', internalType: 'bytes32', type: 'bytes32' },
1300
+ { name: 'successor', internalType: 'bytes32', type: 'bytes32' },
1301
+ ],
1302
+ },
1303
+ ],
1304
+ stateMutability: 'view',
1305
+ },
1306
+ {
1307
+ type: 'function',
1308
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
1309
+ name: 'harvestFeeExempt',
1310
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1311
+ stateMutability: 'view',
1312
+ },
1313
+ {
1314
+ type: 'function',
1315
+ inputs: [
1316
+ {
1317
+ name: 'key',
1318
+ internalType: 'struct FPoolKey',
1319
+ type: 'tuple',
1320
+ components: [
1321
+ { name: 'quote', internalType: 'address', type: 'address' },
1322
+ { name: 'bases', internalType: 'address[]', type: 'address[]' },
1323
+ { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
1324
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
1325
+ { name: 'lockStrike', internalType: 'bool', type: 'bool' },
1326
+ { name: 'authority', internalType: 'address', type: 'address' },
1327
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
1328
+ ],
1329
+ },
1330
+ ],
1331
+ name: 'idOf',
1332
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
1333
+ stateMutability: 'pure',
1334
+ },
1335
+ {
1336
+ type: 'function',
1337
+ inputs: [
1338
+ {
1339
+ name: 'key',
1340
+ internalType: 'struct FPoolKey',
1341
+ type: 'tuple',
1342
+ components: [
1343
+ { name: 'quote', internalType: 'address', type: 'address' },
1344
+ { name: 'bases', internalType: 'address[]', type: 'address[]' },
1345
+ { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
1346
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
1347
+ { name: 'lockStrike', internalType: 'bool', type: 'bool' },
1348
+ { name: 'authority', internalType: 'address', type: 'address' },
1349
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
1331
1350
  ],
1332
1351
  },
1333
1352
  ],
1353
+ name: 'initialize',
1354
+ outputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1355
+ stateMutability: 'nonpayable',
1356
+ },
1357
+ {
1358
+ type: 'function',
1359
+ inputs: [
1360
+ { name: 'owner', internalType: 'address', type: 'address' },
1361
+ { name: 'spender', internalType: 'address', type: 'address' },
1362
+ ],
1363
+ name: 'isOperator',
1364
+ outputs: [{ name: 'status', internalType: 'bool', type: 'bool' }],
1365
+ stateMutability: 'view',
1366
+ },
1367
+ {
1368
+ type: 'function',
1369
+ inputs: [],
1370
+ name: 'isUnlocked',
1371
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1372
+ stateMutability: 'view',
1373
+ },
1374
+ {
1375
+ type: 'function',
1376
+ inputs: [
1377
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1378
+ { name: 'j', internalType: 'uint256', type: 'uint256' },
1379
+ ],
1380
+ name: 'legOf',
1381
+ outputs: [
1382
+ { name: 'base', internalType: 'address', type: 'address' },
1383
+ { name: 'weight', internalType: 'uint256', type: 'uint256' },
1384
+ { name: 'x', internalType: 'int256', type: 'int256' },
1385
+ { name: 'reserve', internalType: 'uint256', type: 'uint256' },
1386
+ ],
1387
+ stateMutability: 'view',
1388
+ },
1389
+ {
1390
+ type: 'function',
1391
+ inputs: [
1392
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1393
+ { name: 'to', internalType: 'address', type: 'address' },
1394
+ { name: 'dL', internalType: 'uint256', type: 'uint256' },
1395
+ { name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
1396
+ ],
1397
+ name: 'mint',
1398
+ outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
1399
+ stateMutability: 'nonpayable',
1400
+ },
1401
+ {
1402
+ type: 'function',
1403
+ inputs: [
1404
+ { name: 'token', internalType: 'address', type: 'address' },
1405
+ { name: 'to', internalType: 'address', type: 'address' },
1406
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
1407
+ ],
1408
+ name: 'mintClaims',
1409
+ outputs: [],
1410
+ stateMutability: 'nonpayable',
1411
+ },
1412
+ {
1413
+ type: 'function',
1414
+ inputs: [{ name: 'calls', internalType: 'bytes[]', type: 'bytes[]' }],
1415
+ name: 'multicall',
1416
+ outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }],
1417
+ stateMutability: 'nonpayable',
1418
+ },
1419
+ {
1420
+ type: 'function',
1421
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1422
+ name: 'n',
1423
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1424
+ stateMutability: 'view',
1425
+ },
1426
+ {
1427
+ type: 'function',
1428
+ inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1429
+ name: 'name',
1430
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
1431
+ stateMutability: 'pure',
1432
+ },
1433
+ {
1434
+ type: 'function',
1435
+ inputs: [],
1436
+ name: 'nonzeroDeltaCount',
1437
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1438
+ stateMutability: 'view',
1439
+ },
1440
+ {
1441
+ type: 'function',
1442
+ inputs: [],
1443
+ name: 'pendingCollector',
1444
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1445
+ stateMutability: 'view',
1446
+ },
1447
+ {
1448
+ type: 'function',
1449
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1450
+ name: 'phiB4B',
1451
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1452
+ stateMutability: 'view',
1453
+ },
1454
+ {
1455
+ type: 'function',
1456
+ inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1457
+ name: 'pot',
1458
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1459
+ stateMutability: 'view',
1460
+ },
1461
+ {
1462
+ type: 'function',
1463
+ inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
1464
+ name: 'proposeCollector',
1465
+ outputs: [],
1466
+ stateMutability: 'nonpayable',
1467
+ },
1468
+ {
1469
+ type: 'function',
1470
+ inputs: [
1471
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1472
+ {
1473
+ name: 'kind',
1474
+ internalType: 'enum FPoolManager.QuoteKind',
1475
+ type: 'uint8',
1476
+ },
1477
+ { name: 'j', internalType: 'uint256', type: 'uint256' },
1478
+ { name: 'k', internalType: 'uint256', type: 'uint256' },
1479
+ { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
1480
+ { name: 'taker', internalType: 'address', type: 'address' },
1481
+ ],
1482
+ name: 'quoteSwap',
1483
+ outputs: [],
1484
+ stateMutability: 'nonpayable',
1485
+ },
1486
+ {
1487
+ type: 'function',
1488
+ inputs: [
1489
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1490
+ { name: 'j', internalType: 'uint256', type: 'uint256' },
1491
+ ],
1492
+ name: 'reserveOf',
1493
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1494
+ stateMutability: 'view',
1495
+ },
1496
+ {
1497
+ type: 'function',
1498
+ inputs: [
1499
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1500
+ { name: 'L0', internalType: 'uint256', type: 'uint256' },
1501
+ { name: 'r0', internalType: 'uint256[]', type: 'uint256[]' },
1502
+ { name: 'Q0', internalType: 'uint256', type: 'uint256' },
1503
+ ],
1504
+ name: 'seed',
1505
+ outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
1506
+ stateMutability: 'nonpayable',
1507
+ },
1508
+ {
1509
+ type: 'function',
1510
+ inputs: [
1511
+ { name: 'operator', internalType: 'address', type: 'address' },
1512
+ { name: 'approved', internalType: 'bool', type: 'bool' },
1513
+ ],
1514
+ name: 'setOperator',
1515
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1516
+ stateMutability: 'payable',
1517
+ },
1518
+ {
1519
+ type: 'function',
1520
+ inputs: [],
1521
+ name: 'settle',
1522
+ outputs: [{ name: 'paid', internalType: 'uint256', type: 'uint256' }],
1523
+ stateMutability: 'nonpayable',
1524
+ },
1525
+ {
1526
+ type: 'function',
1527
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1528
+ name: 'shareIdOf',
1529
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1530
+ stateMutability: 'pure',
1531
+ },
1532
+ {
1533
+ type: 'function',
1534
+ inputs: [],
1535
+ name: 'sponsor',
1536
+ outputs: [
1537
+ { name: '', internalType: 'contract FPoolSponsor', type: 'address' },
1538
+ ],
1539
+ stateMutability: 'view',
1540
+ },
1541
+ {
1542
+ type: 'function',
1543
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
1544
+ name: 'sponsorName',
1545
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
1546
+ stateMutability: 'view',
1547
+ },
1548
+ {
1549
+ type: 'function',
1550
+ inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
1551
+ name: 'supportsInterface',
1552
+ outputs: [{ name: 'result', internalType: 'bool', type: 'bool' }],
1553
+ stateMutability: 'view',
1554
+ },
1555
+ {
1556
+ type: 'function',
1557
+ inputs: [
1558
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1559
+ { name: 'j', internalType: 'uint256', type: 'uint256' },
1560
+ { name: 'k', internalType: 'uint256', type: 'uint256' },
1561
+ { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
1562
+ { name: 'minOut', internalType: 'uint256', type: 'uint256' },
1563
+ { name: 'taker', internalType: 'address', type: 'address' },
1564
+ ],
1565
+ name: 'swapBaseForBase',
1566
+ outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
1567
+ stateMutability: 'nonpayable',
1568
+ },
1569
+ {
1570
+ type: 'function',
1571
+ inputs: [
1572
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1573
+ { name: 'j', internalType: 'uint256', type: 'uint256' },
1574
+ { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
1575
+ { name: 'minOut', internalType: 'uint256', type: 'uint256' },
1576
+ { name: 'taker', internalType: 'address', type: 'address' },
1577
+ ],
1578
+ name: 'swapBaseIn',
1579
+ outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
1580
+ stateMutability: 'nonpayable',
1581
+ },
1582
+ {
1583
+ type: 'function',
1584
+ inputs: [
1585
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1586
+ { name: 'j', internalType: 'uint256', type: 'uint256' },
1587
+ { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
1588
+ { name: 'minOut', internalType: 'uint256', type: 'uint256' },
1589
+ { name: 'taker', internalType: 'address', type: 'address' },
1590
+ ],
1591
+ name: 'swapQuoteIn',
1592
+ outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
1593
+ stateMutability: 'nonpayable',
1594
+ },
1595
+ {
1596
+ type: 'function',
1597
+ inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1598
+ name: 'symbol',
1599
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
1600
+ stateMutability: 'pure',
1601
+ },
1602
+ {
1603
+ type: 'function',
1604
+ inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
1605
+ name: 'sync',
1606
+ outputs: [],
1607
+ stateMutability: 'nonpayable',
1608
+ },
1609
+ {
1610
+ type: 'function',
1611
+ inputs: [
1612
+ { name: 'token', internalType: 'address', type: 'address' },
1613
+ { name: 'to', internalType: 'address', type: 'address' },
1614
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
1615
+ ],
1616
+ name: 'take',
1617
+ outputs: [],
1618
+ stateMutability: 'nonpayable',
1619
+ },
1620
+ {
1621
+ type: 'function',
1622
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1623
+ name: 'theta',
1624
+ outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
1625
+ stateMutability: 'view',
1626
+ },
1627
+ {
1628
+ type: 'function',
1629
+ inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1630
+ name: 'tokenURI',
1631
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
1632
+ stateMutability: 'pure',
1633
+ },
1634
+ {
1635
+ type: 'function',
1636
+ inputs: [
1637
+ { name: 'to', internalType: 'address', type: 'address' },
1638
+ { name: 'id', internalType: 'uint256', type: 'uint256' },
1639
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
1640
+ ],
1641
+ name: 'transfer',
1642
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1643
+ stateMutability: 'payable',
1644
+ },
1645
+ {
1646
+ type: 'function',
1647
+ inputs: [
1648
+ { name: 'from', internalType: 'address', type: 'address' },
1649
+ { name: 'to', internalType: 'address', type: 'address' },
1650
+ { name: 'id', internalType: 'uint256', type: 'uint256' },
1651
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
1652
+ ],
1653
+ name: 'transferFrom',
1654
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1655
+ stateMutability: 'payable',
1656
+ },
1657
+ {
1658
+ type: 'function',
1659
+ inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
1660
+ name: 'unlock',
1661
+ outputs: [{ name: 'result', internalType: 'bytes', type: 'bytes' }],
1662
+ stateMutability: 'nonpayable',
1663
+ },
1664
+ {
1665
+ type: 'function',
1666
+ inputs: [],
1667
+ name: 'version',
1668
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1669
+ stateMutability: 'pure',
1670
+ },
1671
+ {
1672
+ type: 'event',
1673
+ anonymous: false,
1674
+ inputs: [
1675
+ {
1676
+ name: 'poolId',
1677
+ internalType: 'bytes32',
1678
+ type: 'bytes32',
1679
+ indexed: true,
1680
+ },
1681
+ { name: 'who', internalType: 'address', type: 'address', indexed: true },
1682
+ { name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
1683
+ ],
1684
+ name: 'Allowed',
1685
+ },
1686
+ {
1687
+ type: 'event',
1688
+ anonymous: false,
1689
+ inputs: [
1690
+ {
1691
+ name: 'owner',
1692
+ internalType: 'address',
1693
+ type: 'address',
1694
+ indexed: true,
1695
+ },
1696
+ {
1697
+ name: 'spender',
1698
+ internalType: 'address',
1699
+ type: 'address',
1700
+ indexed: true,
1701
+ },
1702
+ { name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
1703
+ {
1704
+ name: 'amount',
1705
+ internalType: 'uint256',
1706
+ type: 'uint256',
1707
+ indexed: false,
1708
+ },
1709
+ ],
1710
+ name: 'Approval',
1711
+ },
1712
+ {
1713
+ type: 'event',
1714
+ anonymous: false,
1715
+ inputs: [
1716
+ {
1717
+ name: 'poolId',
1718
+ internalType: 'bytes32',
1719
+ type: 'bytes32',
1720
+ indexed: true,
1721
+ },
1722
+ {
1723
+ name: 'current',
1724
+ internalType: 'address',
1725
+ type: 'address',
1726
+ indexed: true,
1727
+ },
1728
+ {
1729
+ name: 'proposed',
1730
+ internalType: 'address',
1731
+ type: 'address',
1732
+ indexed: true,
1733
+ },
1734
+ ],
1735
+ name: 'AuthorityProposed',
1736
+ },
1737
+ {
1738
+ type: 'event',
1739
+ anonymous: false,
1740
+ inputs: [
1741
+ {
1742
+ name: 'poolId',
1743
+ internalType: 'bytes32',
1744
+ type: 'bytes32',
1745
+ indexed: true,
1746
+ },
1747
+ { name: 'prev', internalType: 'address', type: 'address', indexed: true },
1748
+ { name: 'next', internalType: 'address', type: 'address', indexed: true },
1749
+ ],
1750
+ name: 'AuthoritySet',
1751
+ },
1752
+ {
1753
+ type: 'event',
1754
+ anonymous: false,
1755
+ inputs: [
1756
+ {
1757
+ name: 'poolId',
1758
+ internalType: 'bytes32',
1759
+ type: 'bytes32',
1760
+ indexed: true,
1761
+ },
1762
+ {
1763
+ name: 'sender',
1764
+ internalType: 'address',
1765
+ type: 'address',
1766
+ indexed: true,
1767
+ },
1768
+ { name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
1769
+ {
1770
+ name: 'shares',
1771
+ internalType: 'uint256',
1772
+ type: 'uint256',
1773
+ indexed: false,
1774
+ },
1775
+ {
1776
+ name: 'dQuote',
1777
+ internalType: 'uint256',
1778
+ type: 'uint256',
1779
+ indexed: false,
1780
+ },
1781
+ ],
1782
+ name: 'Burn',
1783
+ },
1784
+ {
1785
+ type: 'event',
1786
+ anonymous: false,
1787
+ inputs: [
1788
+ {
1789
+ name: 'previous',
1790
+ internalType: 'address',
1791
+ type: 'address',
1792
+ indexed: true,
1793
+ },
1794
+ {
1795
+ name: 'current',
1796
+ internalType: 'address',
1797
+ type: 'address',
1798
+ indexed: true,
1799
+ },
1800
+ ],
1801
+ name: 'CollectorAccepted',
1802
+ },
1803
+ {
1804
+ type: 'event',
1805
+ anonymous: false,
1806
+ inputs: [
1807
+ {
1808
+ name: 'current',
1809
+ internalType: 'address',
1810
+ type: 'address',
1811
+ indexed: true,
1812
+ },
1813
+ {
1814
+ name: 'proposed',
1815
+ internalType: 'address',
1816
+ type: 'address',
1817
+ indexed: true,
1818
+ },
1819
+ ],
1820
+ name: 'CollectorProposed',
1821
+ },
1822
+ {
1823
+ type: 'event',
1824
+ anonymous: false,
1825
+ inputs: [
1826
+ {
1827
+ name: 'poolId',
1828
+ internalType: 'bytes32',
1829
+ type: 'bytes32',
1830
+ indexed: true,
1831
+ },
1832
+ { name: 'from', internalType: 'address', type: 'address', indexed: true },
1833
+ {
1834
+ name: 'amount',
1835
+ internalType: 'uint256',
1836
+ type: 'uint256',
1837
+ indexed: false,
1838
+ },
1839
+ ],
1840
+ name: 'Deepen',
1841
+ },
1842
+ {
1843
+ type: 'event',
1844
+ anonymous: false,
1845
+ inputs: [
1846
+ {
1847
+ name: 'poolId',
1848
+ internalType: 'bytes32',
1849
+ type: 'bytes32',
1850
+ indexed: true,
1851
+ },
1852
+ {
1853
+ name: 'successor',
1854
+ internalType: 'bytes32',
1855
+ type: 'bytes32',
1856
+ indexed: true,
1857
+ },
1858
+ ],
1859
+ name: 'Dissolve',
1860
+ },
1861
+ {
1862
+ type: 'event',
1863
+ anonymous: false,
1864
+ inputs: [
1865
+ {
1866
+ name: 'poolId',
1867
+ internalType: 'bytes32',
1868
+ type: 'bytes32',
1869
+ indexed: true,
1870
+ },
1871
+ {
1872
+ name: 'holder',
1873
+ internalType: 'address',
1874
+ type: 'address',
1875
+ indexed: true,
1876
+ },
1877
+ { name: 'to', internalType: 'address', type: 'address', indexed: true },
1878
+ {
1879
+ name: 'amount',
1880
+ internalType: 'uint256',
1881
+ type: 'uint256',
1882
+ indexed: false,
1883
+ },
1884
+ ],
1885
+ name: 'DividendClaimed',
1886
+ },
1887
+ {
1888
+ type: 'event',
1889
+ anonymous: false,
1890
+ inputs: [
1891
+ {
1892
+ name: 'mintFeeProtocolCut',
1893
+ internalType: 'uint256',
1894
+ type: 'uint256',
1895
+ indexed: false,
1896
+ },
1897
+ {
1898
+ name: 'harvestFee',
1899
+ internalType: 'uint256',
1900
+ type: 'uint256',
1901
+ indexed: false,
1902
+ },
1903
+ ],
1904
+ name: 'FeeParamsSet',
1905
+ },
1906
+ {
1907
+ type: 'event',
1908
+ anonymous: false,
1909
+ inputs: [
1910
+ {
1911
+ name: 'poolId',
1912
+ internalType: 'bytes32',
1913
+ type: 'bytes32',
1914
+ indexed: true,
1915
+ },
1916
+ { name: 'gateMint', internalType: 'bool', type: 'bool', indexed: false },
1917
+ { name: 'gateSwap', internalType: 'bool', type: 'bool', indexed: false },
1918
+ ],
1919
+ name: 'GatesSet',
1920
+ },
1921
+ {
1922
+ type: 'event',
1923
+ anonymous: false,
1924
+ inputs: [
1925
+ {
1926
+ name: 'poolId',
1927
+ internalType: 'bytes32',
1928
+ type: 'bytes32',
1929
+ indexed: true,
1930
+ },
1931
+ { name: 'to', internalType: 'address', type: 'address', indexed: true },
1932
+ {
1933
+ name: 'amount',
1934
+ internalType: 'uint256',
1935
+ type: 'uint256',
1936
+ indexed: false,
1937
+ },
1938
+ {
1939
+ name: 'toSponsor',
1940
+ internalType: 'uint256',
1941
+ type: 'uint256',
1942
+ indexed: false,
1943
+ },
1944
+ ],
1945
+ name: 'Harvest',
1946
+ },
1947
+ {
1948
+ type: 'event',
1949
+ anonymous: false,
1950
+ inputs: [
1951
+ {
1952
+ name: 'poolId',
1953
+ internalType: 'bytes32',
1954
+ type: 'bytes32',
1955
+ indexed: true,
1956
+ },
1957
+ { name: 'exempt', internalType: 'bool', type: 'bool', indexed: false },
1958
+ ],
1959
+ name: 'HarvestFeeExemptSet',
1960
+ },
1961
+ {
1962
+ type: 'event',
1963
+ anonymous: false,
1964
+ inputs: [
1965
+ {
1966
+ name: 'poolId',
1967
+ internalType: 'bytes32',
1968
+ type: 'bytes32',
1969
+ indexed: true,
1970
+ },
1971
+ {
1972
+ name: 'quote',
1973
+ internalType: 'address',
1974
+ type: 'address',
1975
+ indexed: true,
1976
+ },
1977
+ {
1978
+ name: 'authority',
1979
+ internalType: 'address',
1980
+ type: 'address',
1981
+ indexed: true,
1982
+ },
1983
+ {
1984
+ name: 'bases',
1985
+ internalType: 'address[]',
1986
+ type: 'address[]',
1987
+ indexed: false,
1988
+ },
1989
+ {
1990
+ name: 'weights',
1991
+ internalType: 'uint256[]',
1992
+ type: 'uint256[]',
1993
+ indexed: false,
1994
+ },
1995
+ { name: 'phi', internalType: 'uint256', type: 'uint256', indexed: false },
1996
+ {
1997
+ name: 'lockStrike',
1998
+ internalType: 'bool',
1999
+ type: 'bool',
2000
+ indexed: false,
2001
+ },
2002
+ ],
2003
+ name: 'Initialize',
2004
+ },
2005
+ {
2006
+ type: 'event',
2007
+ anonymous: false,
2008
+ inputs: [
2009
+ {
2010
+ name: 'poolId',
2011
+ internalType: 'bytes32',
2012
+ type: 'bytes32',
2013
+ indexed: true,
2014
+ },
2015
+ { name: 'j', internalType: 'uint256', type: 'uint256', indexed: true },
2016
+ {
2017
+ name: 'base',
2018
+ internalType: 'address',
2019
+ type: 'address',
2020
+ indexed: false,
2021
+ },
2022
+ {
2023
+ name: 'newLj',
2024
+ internalType: 'uint256',
2025
+ type: 'uint256',
2026
+ indexed: false,
2027
+ },
2028
+ {
2029
+ name: 'reserve',
2030
+ internalType: 'uint256',
2031
+ type: 'uint256',
2032
+ indexed: false,
2033
+ },
2034
+ { name: 'L', internalType: 'uint256', type: 'uint256', indexed: false },
2035
+ {
2036
+ name: 'theta0',
2037
+ internalType: 'int256',
2038
+ type: 'int256',
2039
+ indexed: false,
2040
+ },
2041
+ {
2042
+ name: 'dReserve',
2043
+ internalType: 'int256',
2044
+ type: 'int256',
2045
+ indexed: false,
2046
+ },
2047
+ {
2048
+ name: 'dShares',
2049
+ internalType: 'int256',
2050
+ type: 'int256',
2051
+ indexed: false,
2052
+ },
2053
+ ],
2054
+ name: 'LegSet',
2055
+ },
2056
+ {
2057
+ type: 'event',
2058
+ anonymous: false,
2059
+ inputs: [
2060
+ {
2061
+ name: 'poolId',
2062
+ internalType: 'bytes32',
2063
+ type: 'bytes32',
2064
+ indexed: true,
2065
+ },
2066
+ {
2067
+ name: 'minBuffer',
2068
+ internalType: 'uint256',
2069
+ type: 'uint256',
2070
+ indexed: false,
2071
+ },
2072
+ ],
2073
+ name: 'MinBufferRaised',
2074
+ },
2075
+ {
2076
+ type: 'event',
2077
+ anonymous: false,
2078
+ inputs: [
2079
+ {
2080
+ name: 'poolId',
2081
+ internalType: 'bytes32',
2082
+ type: 'bytes32',
2083
+ indexed: true,
2084
+ },
2085
+ {
2086
+ name: 'sender',
2087
+ internalType: 'address',
2088
+ type: 'address',
2089
+ indexed: true,
2090
+ },
2091
+ { name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
2092
+ {
2093
+ name: 'shares',
2094
+ internalType: 'uint256',
2095
+ type: 'uint256',
2096
+ indexed: false,
2097
+ },
2098
+ {
2099
+ name: 'dQuote',
2100
+ internalType: 'uint256',
2101
+ type: 'uint256',
2102
+ indexed: false,
2103
+ },
2104
+ ],
2105
+ name: 'Mint',
2106
+ },
2107
+ {
2108
+ type: 'event',
2109
+ anonymous: false,
2110
+ inputs: [
2111
+ {
2112
+ name: 'poolId',
2113
+ internalType: 'bytes32',
2114
+ type: 'bytes32',
2115
+ indexed: true,
2116
+ },
2117
+ {
2118
+ name: 'name',
2119
+ internalType: 'bytes32',
2120
+ type: 'bytes32',
2121
+ indexed: false,
2122
+ },
2123
+ ],
2124
+ name: 'NameSet',
2125
+ },
2126
+ {
2127
+ type: 'event',
2128
+ anonymous: false,
2129
+ inputs: [
2130
+ {
2131
+ name: 'owner',
2132
+ internalType: 'address',
2133
+ type: 'address',
2134
+ indexed: true,
2135
+ },
2136
+ {
2137
+ name: 'operator',
2138
+ internalType: 'address',
2139
+ type: 'address',
2140
+ indexed: true,
2141
+ },
2142
+ { name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
2143
+ ],
2144
+ name: 'OperatorSet',
2145
+ },
2146
+ {
2147
+ type: 'event',
2148
+ anonymous: false,
2149
+ inputs: [
2150
+ {
2151
+ name: 'poolId',
2152
+ internalType: 'bytes32',
2153
+ type: 'bytes32',
2154
+ indexed: true,
2155
+ },
2156
+ { name: 'prev', internalType: 'address', type: 'address', indexed: true },
2157
+ { name: 'next', internalType: 'address', type: 'address', indexed: true },
2158
+ ],
2159
+ name: 'OperatorSet',
2160
+ },
2161
+ {
2162
+ type: 'event',
2163
+ anonymous: false,
2164
+ inputs: [
2165
+ {
2166
+ name: 'poolId',
2167
+ internalType: 'bytes32',
2168
+ type: 'bytes32',
2169
+ indexed: true,
2170
+ },
2171
+ { name: 'inShares', internalType: 'bool', type: 'bool', indexed: false },
2172
+ {
2173
+ name: 'amount',
2174
+ internalType: 'uint256',
2175
+ type: 'uint256',
2176
+ indexed: false,
2177
+ },
2178
+ ],
2179
+ name: 'ProtocolFee',
2180
+ },
2181
+ {
2182
+ type: 'event',
2183
+ anonymous: false,
2184
+ inputs: [
2185
+ {
2186
+ name: 'poolId',
2187
+ internalType: 'bytes32',
2188
+ type: 'bytes32',
2189
+ indexed: true,
2190
+ },
2191
+ { name: 'L0', internalType: 'uint256', type: 'uint256', indexed: false },
2192
+ { name: 'Q0', internalType: 'uint256', type: 'uint256', indexed: false },
2193
+ {
2194
+ name: 'theta0',
2195
+ internalType: 'int256',
2196
+ type: 'int256',
2197
+ indexed: false,
2198
+ },
2199
+ {
2200
+ name: 'r0',
2201
+ internalType: 'uint256[]',
2202
+ type: 'uint256[]',
2203
+ indexed: false,
2204
+ },
2205
+ ],
2206
+ name: 'Seeded',
2207
+ },
2208
+ {
2209
+ type: 'event',
2210
+ anonymous: false,
2211
+ inputs: [
2212
+ { name: 'who', internalType: 'address', type: 'address', indexed: true },
2213
+ {
2214
+ name: 'name',
2215
+ internalType: 'bytes32',
2216
+ type: 'bytes32',
2217
+ indexed: false,
2218
+ },
2219
+ ],
2220
+ name: 'SponsorNamed',
2221
+ },
2222
+ {
2223
+ type: 'event',
2224
+ anonymous: false,
2225
+ inputs: [
2226
+ {
2227
+ name: 'poolId',
2228
+ internalType: 'bytes32',
2229
+ type: 'bytes32',
2230
+ indexed: true,
2231
+ },
2232
+ {
2233
+ name: 'sender',
2234
+ internalType: 'address',
2235
+ type: 'address',
2236
+ indexed: true,
2237
+ },
2238
+ {
2239
+ name: 'tokenIn',
2240
+ internalType: 'address',
2241
+ type: 'address',
2242
+ indexed: false,
2243
+ },
2244
+ {
2245
+ name: 'tokenOut',
2246
+ internalType: 'address',
2247
+ type: 'address',
2248
+ indexed: false,
2249
+ },
2250
+ {
2251
+ name: 'amountIn',
2252
+ internalType: 'uint256',
2253
+ type: 'uint256',
2254
+ indexed: false,
2255
+ },
2256
+ {
2257
+ name: 'amountOut',
2258
+ internalType: 'uint256',
2259
+ type: 'uint256',
2260
+ indexed: false,
2261
+ },
2262
+ {
2263
+ name: 'reserveIn',
2264
+ internalType: 'uint256',
2265
+ type: 'uint256',
2266
+ indexed: false,
2267
+ },
2268
+ {
2269
+ name: 'reserveOut',
2270
+ internalType: 'uint256',
2271
+ type: 'uint256',
2272
+ indexed: false,
2273
+ },
2274
+ ],
2275
+ name: 'Swap',
2276
+ },
2277
+ {
2278
+ type: 'event',
2279
+ anonymous: false,
2280
+ inputs: [
2281
+ { name: 'by', internalType: 'address', type: 'address', indexed: false },
2282
+ { name: 'from', internalType: 'address', type: 'address', indexed: true },
2283
+ { name: 'to', internalType: 'address', type: 'address', indexed: true },
2284
+ { name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
2285
+ {
2286
+ name: 'amount',
2287
+ internalType: 'uint256',
2288
+ type: 'uint256',
2289
+ indexed: false,
2290
+ },
2291
+ ],
2292
+ name: 'Transfer',
2293
+ },
2294
+ { type: 'error', inputs: [], name: 'AlreadySeeded' },
2295
+ { type: 'error', inputs: [], name: 'AlreadyUnlocked' },
2296
+ { type: 'error', inputs: [], name: 'BadLeg' },
2297
+ { type: 'error', inputs: [], name: 'BadParam' },
2298
+ { type: 'error', inputs: [], name: 'BadSuccessor' },
2299
+ { type: 'error', inputs: [], name: 'BalanceOverflow' },
2300
+ { type: 'error', inputs: [], name: 'Dissolved_' },
2301
+ { type: 'error', inputs: [], name: 'InsufficientBalance' },
2302
+ { type: 'error', inputs: [], name: 'InsufficientPermission' },
2303
+ { type: 'error', inputs: [], name: 'InsufficientQuote' },
2304
+ { type: 'error', inputs: [], name: 'InvalidToken' },
2305
+ { type: 'error', inputs: [], name: 'LegHeld' },
2306
+ { type: 'error', inputs: [], name: 'LegLive' },
2307
+ { type: 'error', inputs: [], name: 'MinBuffer' },
2308
+ {
2309
+ type: 'error',
2310
+ inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256' }],
2311
+ name: 'MulticallFailed',
2312
+ },
2313
+ { type: 'error', inputs: [], name: 'NonstandardToken' },
2314
+ { type: 'error', inputs: [], name: 'NotAllowed' },
2315
+ { type: 'error', inputs: [], name: 'NotAuthority' },
2316
+ { type: 'error', inputs: [], name: 'NotAuthorized' },
2317
+ { type: 'error', inputs: [], name: 'NotCollector' },
2318
+ { type: 'error', inputs: [], name: 'NotDissolvable' },
2319
+ { type: 'error', inputs: [], name: 'NotOperator' },
2320
+ { type: 'error', inputs: [], name: 'NotSeeded' },
2321
+ { type: 'error', inputs: [], name: 'NotSoleLP' },
2322
+ { type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
2323
+ { type: 'error', inputs: [], name: 'PoolLocked' },
2324
+ { type: 'error', inputs: [], name: 'PoolNotInitialized' },
2325
+ { type: 'error', inputs: [], name: 'PriceOutOfRange' },
2326
+ {
2327
+ type: 'error',
2328
+ inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
2329
+ name: 'QuoteResult',
2330
+ },
2331
+ { type: 'error', inputs: [], name: 'ReserveNotRepresentable' },
2332
+ { type: 'error', inputs: [], name: 'Restructured' },
2333
+ { type: 'error', inputs: [], name: 'SameAsset' },
2334
+ { type: 'error', inputs: [], name: 'Slippage' },
2335
+ { type: 'error', inputs: [], name: 'StrikeLocked' },
2336
+ { type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
2337
+ { type: 'error', inputs: [], name: 'TokensNotSettled' },
2338
+ { type: 'error', inputs: [], name: 'TooManyLegs' },
2339
+ { type: 'error', inputs: [], name: 'TransferShortfall' },
2340
+ { type: 'error', inputs: [], name: 'ZeroAmount' },
2341
+ ] as const
2342
+
2343
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2344
+ // FPoolSponsor
2345
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2346
+
2347
+ export const fPoolSponsorAbi = [
2348
+ { type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
2349
+ {
2350
+ type: 'function',
2351
+ inputs: [],
2352
+ name: 'FEE_MIN',
2353
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2354
+ stateMutability: 'view',
2355
+ },
2356
+ {
2357
+ type: 'function',
2358
+ inputs: [],
2359
+ name: 'HARVEST_FEE',
2360
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2361
+ stateMutability: 'view',
2362
+ },
2363
+ {
2364
+ type: 'function',
2365
+ inputs: [],
2366
+ name: 'LEVER_FLOOR',
2367
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2368
+ stateMutability: 'view',
2369
+ },
2370
+ {
2371
+ type: 'function',
2372
+ inputs: [],
2373
+ name: 'MINT_FEE',
2374
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2375
+ stateMutability: 'view',
2376
+ },
2377
+ {
2378
+ type: 'function',
2379
+ inputs: [],
2380
+ name: 'MINT_FEE_PROTOCOL_CUT',
2381
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2382
+ stateMutability: 'view',
2383
+ },
2384
+ {
2385
+ type: 'function',
2386
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
2387
+ name: 'acceptAuthority',
2388
+ outputs: [],
2389
+ stateMutability: 'nonpayable',
2390
+ },
2391
+ {
2392
+ type: 'function',
2393
+ inputs: [],
2394
+ name: 'acceptCollector',
2395
+ outputs: [],
2396
+ stateMutability: 'nonpayable',
2397
+ },
2398
+ {
2399
+ type: 'function',
2400
+ inputs: [
2401
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
2402
+ { name: 'base', internalType: 'address', type: 'address' },
2403
+ { name: 'Lj', internalType: 'uint256', type: 'uint256' },
2404
+ { name: 'R', internalType: 'uint256', type: 'uint256' },
2405
+ ],
2406
+ name: 'admitLeg',
2407
+ outputs: [
2408
+ { name: 'dReserve', internalType: 'int256', type: 'int256' },
2409
+ { name: 'dShares', internalType: 'int256', type: 'int256' },
2410
+ ],
2411
+ stateMutability: 'nonpayable',
2412
+ },
2413
+ {
2414
+ type: 'function',
2415
+ inputs: [
2416
+ { name: 'owner', internalType: 'address', type: 'address' },
2417
+ { name: 'spender', internalType: 'address', type: 'address' },
2418
+ { name: 'id', internalType: 'uint256', type: 'uint256' },
2419
+ ],
2420
+ name: 'allowance',
2421
+ outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
2422
+ stateMutability: 'view',
2423
+ },
2424
+ {
2425
+ type: 'function',
2426
+ inputs: [
2427
+ { name: '', internalType: 'bytes32', type: 'bytes32' },
2428
+ { name: '', internalType: 'address', type: 'address' },
2429
+ ],
2430
+ name: 'allowed',
2431
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
2432
+ stateMutability: 'view',
2433
+ },
2434
+ {
2435
+ type: 'function',
2436
+ inputs: [
2437
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
2438
+ { name: 'who', internalType: 'address', type: 'address' },
2439
+ ],
2440
+ name: 'appointOperator',
2441
+ outputs: [],
2442
+ stateMutability: 'nonpayable',
2443
+ },
2444
+ {
2445
+ type: 'function',
2446
+ inputs: [
2447
+ { name: 'spender', internalType: 'address', type: 'address' },
2448
+ { name: 'id', internalType: 'uint256', type: 'uint256' },
2449
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
2450
+ ],
2451
+ name: 'approve',
2452
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
2453
+ stateMutability: 'payable',
2454
+ },
2455
+ {
2456
+ type: 'function',
2457
+ inputs: [
2458
+ { name: 'owner', internalType: 'address', type: 'address' },
2459
+ { name: 'id', internalType: 'uint256', type: 'uint256' },
2460
+ ],
2461
+ name: 'balanceOf',
2462
+ outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
2463
+ stateMutability: 'view',
2464
+ },
2465
+ {
2466
+ type: 'function',
2467
+ inputs: [
2468
+ { name: 'token', internalType: 'address', type: 'address' },
2469
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
2470
+ ],
2471
+ name: 'burnClaims',
2472
+ outputs: [],
2473
+ stateMutability: 'nonpayable',
2474
+ },
2475
+ {
2476
+ type: 'function',
2477
+ inputs: [
2478
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
2479
+ { name: 'to', internalType: 'address', type: 'address' },
2480
+ ],
2481
+ name: 'claim',
2482
+ outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
2483
+ stateMutability: 'nonpayable',
2484
+ },
2485
+ {
2486
+ type: 'function',
2487
+ inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
2488
+ name: 'claimIdOf',
2489
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2490
+ stateMutability: 'pure',
2491
+ },
2492
+ {
2493
+ type: 'function',
2494
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
2495
+ name: 'claimsOutstanding',
2496
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2497
+ stateMutability: 'view',
2498
+ },
2499
+ {
2500
+ type: 'function',
2501
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
2502
+ name: 'compositeX',
2503
+ outputs: [{ name: 'X', internalType: 'int256', type: 'int256' }],
2504
+ stateMutability: 'view',
2505
+ },
2506
+ {
2507
+ type: 'function',
2508
+ inputs: [{ name: 'id', internalType: 'uint256', type: 'uint256' }],
2509
+ name: 'decimals',
2510
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
2511
+ stateMutability: 'view',
2512
+ },
2513
+ {
2514
+ type: 'function',
2515
+ inputs: [
2516
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
2517
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
2518
+ ],
2519
+ name: 'deepen',
2520
+ outputs: [],
2521
+ stateMutability: 'nonpayable',
2522
+ },
2523
+ {
2524
+ type: 'function',
2525
+ inputs: [
2526
+ { name: 'token', internalType: 'address', type: 'address' },
2527
+ { name: 'target', internalType: 'address', type: 'address' },
2528
+ ],
2529
+ name: 'deltaOf',
2530
+ outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
2531
+ stateMutability: 'view',
2532
+ },
2533
+ {
2534
+ type: 'function',
2535
+ inputs: [
2536
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
2537
+ { name: 'successor', internalType: 'bytes32', type: 'bytes32' },
2538
+ ],
2539
+ name: 'dissolve',
2540
+ outputs: [],
2541
+ stateMutability: 'nonpayable',
2542
+ },
2543
+ {
2544
+ type: 'function',
2545
+ inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2546
+ name: 'dps',
2547
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2548
+ stateMutability: 'view',
2549
+ },
2550
+ {
2551
+ type: 'function',
2552
+ inputs: [],
2553
+ name: 'feeCollector',
2554
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2555
+ stateMutability: 'view',
2556
+ },
2557
+ {
2558
+ type: 'function',
2559
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
2560
+ name: 'feePerL',
2561
+ outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
1334
2562
  stateMutability: 'view',
1335
2563
  },
1336
2564
  {
@@ -1351,50 +2579,6 @@ export const fPoolManagerAbi = [
1351
2579
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1352
2580
  stateMutability: 'view',
1353
2581
  },
1354
- {
1355
- type: 'function',
1356
- inputs: [
1357
- {
1358
- name: 'key',
1359
- internalType: 'struct FPoolKey',
1360
- type: 'tuple',
1361
- components: [
1362
- { name: 'quote', internalType: 'address', type: 'address' },
1363
- { name: 'bases', internalType: 'address[]', type: 'address[]' },
1364
- { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
1365
- { name: 'phi', internalType: 'uint256', type: 'uint256' },
1366
- { name: 'feesOnly', internalType: 'bool', type: 'bool' },
1367
- { name: 'authority', internalType: 'address', type: 'address' },
1368
- { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
1369
- ],
1370
- },
1371
- ],
1372
- name: 'idOf',
1373
- outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
1374
- stateMutability: 'pure',
1375
- },
1376
- {
1377
- type: 'function',
1378
- inputs: [
1379
- {
1380
- name: 'key',
1381
- internalType: 'struct FPoolKey',
1382
- type: 'tuple',
1383
- components: [
1384
- { name: 'quote', internalType: 'address', type: 'address' },
1385
- { name: 'bases', internalType: 'address[]', type: 'address[]' },
1386
- { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
1387
- { name: 'phi', internalType: 'uint256', type: 'uint256' },
1388
- { name: 'feesOnly', internalType: 'bool', type: 'bool' },
1389
- { name: 'authority', internalType: 'address', type: 'address' },
1390
- { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
1391
- ],
1392
- },
1393
- ],
1394
- name: 'initialize',
1395
- outputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1396
- stateMutability: 'nonpayable',
1397
- },
1398
2582
  {
1399
2583
  type: 'function',
1400
2584
  inputs: [
@@ -1412,33 +2596,6 @@ export const fPoolManagerAbi = [
1412
2596
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1413
2597
  stateMutability: 'view',
1414
2598
  },
1415
- {
1416
- type: 'function',
1417
- inputs: [
1418
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1419
- { name: 'j', internalType: 'uint256', type: 'uint256' },
1420
- ],
1421
- name: 'legOf',
1422
- outputs: [
1423
- { name: 'base', internalType: 'address', type: 'address' },
1424
- { name: 'weight', internalType: 'uint256', type: 'uint256' },
1425
- { name: 'x', internalType: 'int256', type: 'int256' },
1426
- { name: 'reserve', internalType: 'uint256', type: 'uint256' },
1427
- ],
1428
- stateMutability: 'view',
1429
- },
1430
- {
1431
- type: 'function',
1432
- inputs: [
1433
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1434
- { name: 'to', internalType: 'address', type: 'address' },
1435
- { name: 'dL', internalType: 'uint256', type: 'uint256' },
1436
- { name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
1437
- ],
1438
- name: 'mint',
1439
- outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
1440
- stateMutability: 'nonpayable',
1441
- },
1442
2599
  {
1443
2600
  type: 'function',
1444
2601
  inputs: [
@@ -1450,20 +2607,6 @@ export const fPoolManagerAbi = [
1450
2607
  outputs: [],
1451
2608
  stateMutability: 'nonpayable',
1452
2609
  },
1453
- {
1454
- type: 'function',
1455
- inputs: [{ name: 'calls', internalType: 'bytes[]', type: 'bytes[]' }],
1456
- name: 'multicall',
1457
- outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }],
1458
- stateMutability: 'nonpayable',
1459
- },
1460
- {
1461
- type: 'function',
1462
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1463
- name: 'n',
1464
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1465
- stateMutability: 'view',
1466
- },
1467
2610
  {
1468
2611
  type: 'function',
1469
2612
  inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
@@ -1487,8 +2630,8 @@ export const fPoolManagerAbi = [
1487
2630
  },
1488
2631
  {
1489
2632
  type: 'function',
1490
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1491
- name: 'phiB4B',
2633
+ inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2634
+ name: 'pot',
1492
2635
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1493
2636
  stateMutability: 'view',
1494
2637
  },
@@ -1509,24 +2652,6 @@ export const fPoolManagerAbi = [
1509
2652
  outputs: [],
1510
2653
  stateMutability: 'nonpayable',
1511
2654
  },
1512
- {
1513
- type: 'function',
1514
- inputs: [
1515
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1516
- {
1517
- name: 'kind',
1518
- internalType: 'enum FPoolManager.QuoteKind',
1519
- type: 'uint8',
1520
- },
1521
- { name: 'j', internalType: 'uint256', type: 'uint256' },
1522
- { name: 'k', internalType: 'uint256', type: 'uint256' },
1523
- { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
1524
- { name: 'taker', internalType: 'address', type: 'address' },
1525
- ],
1526
- name: 'quoteSwap',
1527
- outputs: [],
1528
- stateMutability: 'nonpayable',
1529
- },
1530
2655
  {
1531
2656
  type: 'function',
1532
2657
  inputs: [
@@ -1537,28 +2662,6 @@ export const fPoolManagerAbi = [
1537
2662
  outputs: [],
1538
2663
  stateMutability: 'nonpayable',
1539
2664
  },
1540
- {
1541
- type: 'function',
1542
- inputs: [
1543
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1544
- { name: 'j', internalType: 'uint256', type: 'uint256' },
1545
- ],
1546
- name: 'reserveOf',
1547
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1548
- stateMutability: 'view',
1549
- },
1550
- {
1551
- type: 'function',
1552
- inputs: [
1553
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1554
- { name: 'L0', internalType: 'uint256', type: 'uint256' },
1555
- { name: 'x0', internalType: 'int256[]', type: 'int256[]' },
1556
- { name: 'Q0', internalType: 'uint256', type: 'uint256' },
1557
- ],
1558
- name: 'seed',
1559
- outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
1560
- stateMutability: 'nonpayable',
1561
- },
1562
2665
  {
1563
2666
  type: 'function',
1564
2667
  inputs: [
@@ -1607,7 +2710,7 @@ export const fPoolManagerAbi = [
1607
2710
  { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1608
2711
  { name: 'j', internalType: 'uint256', type: 'uint256' },
1609
2712
  { name: 'newLj', internalType: 'uint256', type: 'uint256' },
1610
- { name: 'xIfNew', internalType: 'int256', type: 'int256' },
2713
+ { name: 'rIfNew', internalType: 'uint256', type: 'uint256' },
1611
2714
  ],
1612
2715
  name: 'setLegL',
1613
2716
  outputs: [
@@ -1674,46 +2777,6 @@ export const fPoolManagerAbi = [
1674
2777
  outputs: [{ name: 'result', internalType: 'bool', type: 'bool' }],
1675
2778
  stateMutability: 'view',
1676
2779
  },
1677
- {
1678
- type: 'function',
1679
- inputs: [
1680
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1681
- { name: 'j', internalType: 'uint256', type: 'uint256' },
1682
- { name: 'k', internalType: 'uint256', type: 'uint256' },
1683
- { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
1684
- { name: 'minOut', internalType: 'uint256', type: 'uint256' },
1685
- { name: 'taker', internalType: 'address', type: 'address' },
1686
- ],
1687
- name: 'swapBaseForBase',
1688
- outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
1689
- stateMutability: 'nonpayable',
1690
- },
1691
- {
1692
- type: 'function',
1693
- inputs: [
1694
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1695
- { name: 'j', internalType: 'uint256', type: 'uint256' },
1696
- { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
1697
- { name: 'minOut', internalType: 'uint256', type: 'uint256' },
1698
- { name: 'taker', internalType: 'address', type: 'address' },
1699
- ],
1700
- name: 'swapBaseIn',
1701
- outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
1702
- stateMutability: 'nonpayable',
1703
- },
1704
- {
1705
- type: 'function',
1706
- inputs: [
1707
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1708
- { name: 'j', internalType: 'uint256', type: 'uint256' },
1709
- { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
1710
- { name: 'minOut', internalType: 'uint256', type: 'uint256' },
1711
- { name: 'taker', internalType: 'address', type: 'address' },
1712
- ],
1713
- name: 'swapQuoteIn',
1714
- outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
1715
- stateMutability: 'nonpayable',
1716
- },
1717
2780
  {
1718
2781
  type: 'function',
1719
2782
  inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
@@ -1971,9 +3034,41 @@ export const fPoolManagerAbi = [
1971
3034
  type: 'bytes32',
1972
3035
  indexed: true,
1973
3036
  },
3037
+ {
3038
+ name: 'successor',
3039
+ internalType: 'bytes32',
3040
+ type: 'bytes32',
3041
+ indexed: true,
3042
+ },
1974
3043
  ],
1975
3044
  name: 'Dissolve',
1976
3045
  },
3046
+ {
3047
+ type: 'event',
3048
+ anonymous: false,
3049
+ inputs: [
3050
+ {
3051
+ name: 'poolId',
3052
+ internalType: 'bytes32',
3053
+ type: 'bytes32',
3054
+ indexed: true,
3055
+ },
3056
+ {
3057
+ name: 'holder',
3058
+ internalType: 'address',
3059
+ type: 'address',
3060
+ indexed: true,
3061
+ },
3062
+ { name: 'to', internalType: 'address', type: 'address', indexed: true },
3063
+ {
3064
+ name: 'amount',
3065
+ internalType: 'uint256',
3066
+ type: 'uint256',
3067
+ indexed: false,
3068
+ },
3069
+ ],
3070
+ name: 'DividendClaimed',
3071
+ },
1977
3072
  {
1978
3073
  type: 'event',
1979
3074
  anonymous: false,
@@ -2025,6 +3120,12 @@ export const fPoolManagerAbi = [
2025
3120
  type: 'uint256',
2026
3121
  indexed: false,
2027
3122
  },
3123
+ {
3124
+ name: 'toSponsor',
3125
+ internalType: 'uint256',
3126
+ type: 'uint256',
3127
+ indexed: false,
3128
+ },
2028
3129
  ],
2029
3130
  name: 'Harvest',
2030
3131
  },
@@ -2077,7 +3178,12 @@ export const fPoolManagerAbi = [
2077
3178
  indexed: false,
2078
3179
  },
2079
3180
  { name: 'phi', internalType: 'uint256', type: 'uint256', indexed: false },
2080
- { name: 'feesOnly', internalType: 'bool', type: 'bool', indexed: false },
3181
+ {
3182
+ name: 'lockStrike',
3183
+ internalType: 'bool',
3184
+ type: 'bool',
3185
+ indexed: false,
3186
+ },
2081
3187
  ],
2082
3188
  name: 'Initialize',
2083
3189
  },
@@ -2104,7 +3210,12 @@ export const fPoolManagerAbi = [
2104
3210
  type: 'uint256',
2105
3211
  indexed: false,
2106
3212
  },
2107
- { name: 'x', internalType: 'int256', type: 'int256', indexed: false },
3213
+ {
3214
+ name: 'reserve',
3215
+ internalType: 'uint256',
3216
+ type: 'uint256',
3217
+ indexed: false,
3218
+ },
2108
3219
  { name: 'L', internalType: 'uint256', type: 'uint256', indexed: false },
2109
3220
  {
2110
3221
  name: 'theta0',
@@ -2271,9 +3382,9 @@ export const fPoolManagerAbi = [
2271
3382
  indexed: false,
2272
3383
  },
2273
3384
  {
2274
- name: 'x0',
2275
- internalType: 'int256[]',
2276
- type: 'int256[]',
3385
+ name: 'r0',
3386
+ internalType: 'uint256[]',
3387
+ type: 'uint256[]',
2277
3388
  indexed: false,
2278
3389
  },
2279
3390
  ],
@@ -2334,15 +3445,15 @@ export const fPoolManagerAbi = [
2334
3445
  indexed: false,
2335
3446
  },
2336
3447
  {
2337
- name: 'newXIn',
2338
- internalType: 'int256',
2339
- type: 'int256',
3448
+ name: 'reserveIn',
3449
+ internalType: 'uint256',
3450
+ type: 'uint256',
2340
3451
  indexed: false,
2341
3452
  },
2342
3453
  {
2343
- name: 'newXOut',
2344
- internalType: 'int256',
2345
- type: 'int256',
3454
+ name: 'reserveOut',
3455
+ internalType: 'uint256',
3456
+ type: 'uint256',
2346
3457
  indexed: false,
2347
3458
  },
2348
3459
  ],
@@ -2369,9 +3480,9 @@ export const fPoolManagerAbi = [
2369
3480
  { type: 'error', inputs: [], name: 'AlreadyUnlocked' },
2370
3481
  { type: 'error', inputs: [], name: 'BadLeg' },
2371
3482
  { type: 'error', inputs: [], name: 'BadParam' },
3483
+ { type: 'error', inputs: [], name: 'BadSuccessor' },
2372
3484
  { type: 'error', inputs: [], name: 'BalanceOverflow' },
2373
3485
  { type: 'error', inputs: [], name: 'Dissolved_' },
2374
- { type: 'error', inputs: [], name: 'FeesOnly' },
2375
3486
  { type: 'error', inputs: [], name: 'InsufficientBalance' },
2376
3487
  { type: 'error', inputs: [], name: 'InsufficientPermission' },
2377
3488
  { type: 'error', inputs: [], name: 'InsufficientQuote' },
@@ -2379,16 +3490,12 @@ export const fPoolManagerAbi = [
2379
3490
  { type: 'error', inputs: [], name: 'LegHeld' },
2380
3491
  { type: 'error', inputs: [], name: 'LegLive' },
2381
3492
  { type: 'error', inputs: [], name: 'MinBuffer' },
2382
- {
2383
- type: 'error',
2384
- inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256' }],
2385
- name: 'MulticallFailed',
2386
- },
2387
3493
  { type: 'error', inputs: [], name: 'NonstandardToken' },
2388
3494
  { type: 'error', inputs: [], name: 'NotAllowed' },
2389
3495
  { type: 'error', inputs: [], name: 'NotAuthority' },
2390
3496
  { type: 'error', inputs: [], name: 'NotAuthorized' },
2391
3497
  { type: 'error', inputs: [], name: 'NotCollector' },
3498
+ { type: 'error', inputs: [], name: 'NotDelegated' },
2392
3499
  { type: 'error', inputs: [], name: 'NotDissolvable' },
2393
3500
  { type: 'error', inputs: [], name: 'NotOperator' },
2394
3501
  { type: 'error', inputs: [], name: 'NotSeeded' },
@@ -2406,6 +3513,7 @@ export const fPoolManagerAbi = [
2406
3513
  { type: 'error', inputs: [], name: 'Restructured' },
2407
3514
  { type: 'error', inputs: [], name: 'SameAsset' },
2408
3515
  { type: 'error', inputs: [], name: 'Slippage' },
3516
+ { type: 'error', inputs: [], name: 'StrikeLocked' },
2409
3517
  { type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
2410
3518
  { type: 'error', inputs: [], name: 'TokensNotSettled' },
2411
3519
  { type: 'error', inputs: [], name: 'TooManyLegs' },
@@ -2502,6 +3610,7 @@ export const logswapLensAbi = [
2502
3610
  { name: 'quote', internalType: 'address', type: 'address' },
2503
3611
  { name: 'shares', internalType: 'uint256', type: 'uint256' },
2504
3612
  { name: 'value', internalType: 'uint256', type: 'uint256' },
3613
+ { name: 'dividend', internalType: 'uint256', type: 'uint256' },
2505
3614
  ],
2506
3615
  },
2507
3616
  ],
@@ -2556,13 +3665,13 @@ export const logswapLensAbi = [
2556
3665
  outputs: [
2557
3666
  {
2558
3667
  name: 'out',
2559
- internalType: 'struct FPoolManager.Pool[]',
3668
+ internalType: 'struct FPoolBase.Pool[]',
2560
3669
  type: 'tuple[]',
2561
3670
  components: [
2562
3671
  { name: 'quote', internalType: 'address', type: 'address' },
2563
3672
  { name: 'phi', internalType: 'uint96', type: 'uint96' },
2564
3673
  { name: 'authority', internalType: 'address', type: 'address' },
2565
- { name: 'feesOnly', internalType: 'bool', type: 'bool' },
3674
+ { name: 'lockStrike', internalType: 'bool', type: 'bool' },
2566
3675
  { name: 'seeded', internalType: 'bool', type: 'bool' },
2567
3676
  { name: 'dissolved', internalType: 'bool', type: 'bool' },
2568
3677
  { name: 'n', internalType: 'uint8', type: 'uint8' },
@@ -2584,6 +3693,7 @@ export const logswapLensAbi = [
2584
3693
  { name: 'minBuffer', internalType: 'uint96', type: 'uint96' },
2585
3694
  { name: 'incomeTaken', internalType: 'uint256', type: 'uint256' },
2586
3695
  { name: 'name', internalType: 'bytes32', type: 'bytes32' },
3696
+ { name: 'successor', internalType: 'bytes32', type: 'bytes32' },
2587
3697
  ],
2588
3698
  },
2589
3699
  ],
@@ -2901,6 +4011,22 @@ export const logswapLensAbi = [
2901
4011
  ],
2902
4012
  stateMutability: 'pure',
2903
4013
  },
4014
+ {
4015
+ type: 'function',
4016
+ inputs: [
4017
+ { name: 'fromPool', internalType: 'bytes32', type: 'bytes32' },
4018
+ { name: 'toPool', internalType: 'bytes32', type: 'bytes32' },
4019
+ { name: 'holder', internalType: 'address', type: 'address' },
4020
+ { name: 'shares', internalType: 'uint256', type: 'uint256' },
4021
+ ],
4022
+ name: 'previewRollIn',
4023
+ outputs: [
4024
+ { name: 'dL', internalType: 'uint256', type: 'uint256' },
4025
+ { name: 'quoteShort', internalType: 'uint256', type: 'uint256' },
4026
+ { name: 'quoteExcess', internalType: 'uint256', type: 'uint256' },
4027
+ ],
4028
+ stateMutability: 'view',
4029
+ },
2904
4030
  {
2905
4031
  type: 'function',
2906
4032
  inputs: [
@@ -3538,6 +4664,22 @@ export const logswapRouterAbi = [
3538
4664
  outputs: [{ name: '', internalType: 'contract IPermit2', type: 'address' }],
3539
4665
  stateMutability: 'view',
3540
4666
  },
4667
+ {
4668
+ type: 'function',
4669
+ inputs: [
4670
+ { name: '', internalType: 'bytes32', type: 'bytes32' },
4671
+ { name: '', internalType: 'bytes32', type: 'bytes32' },
4672
+ { name: '', internalType: 'uint256', type: 'uint256' },
4673
+ { name: '', internalType: 'uint256', type: 'uint256' },
4674
+ { name: '', internalType: 'uint256', type: 'uint256' },
4675
+ { name: '', internalType: 'uint256', type: 'uint256' },
4676
+ { name: '', internalType: 'address', type: 'address' },
4677
+ { name: '', internalType: 'uint256', type: 'uint256' },
4678
+ ],
4679
+ name: 'rollIn',
4680
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4681
+ stateMutability: 'nonpayable',
4682
+ },
3541
4683
  {
3542
4684
  type: 'function',
3543
4685
  inputs: [