@logswap/sdk 0.5.36 → 0.5.38

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/generated.js CHANGED
@@ -1076,6 +1076,7 @@ export const fPoolManagerAbi = [
1076
1076
  ],
1077
1077
  stateMutability: 'nonpayable',
1078
1078
  },
1079
+ { type: 'fallback', stateMutability: 'nonpayable' },
1079
1080
  {
1080
1081
  type: 'function',
1081
1082
  inputs: [],
@@ -1093,31 +1094,24 @@ export const fPoolManagerAbi = [
1093
1094
  {
1094
1095
  type: 'function',
1095
1096
  inputs: [],
1096
- name: 'MINT_FEE',
1097
+ name: 'LEVER_FLOOR',
1097
1098
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1098
1099
  stateMutability: 'view',
1099
1100
  },
1100
1101
  {
1101
1102
  type: 'function',
1102
1103
  inputs: [],
1103
- name: 'MINT_FEE_PROTOCOL_CUT',
1104
+ name: 'MINT_FEE',
1104
1105
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1105
1106
  stateMutability: 'view',
1106
1107
  },
1107
1108
  {
1108
1109
  type: 'function',
1109
1110
  inputs: [],
1110
- name: 'NO_X',
1111
- outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
1111
+ name: 'MINT_FEE_PROTOCOL_CUT',
1112
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1112
1113
  stateMutability: 'view',
1113
1114
  },
1114
- {
1115
- type: 'function',
1116
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1117
- name: 'acceptAuthority',
1118
- outputs: [],
1119
- stateMutability: 'nonpayable',
1120
- },
1121
1115
  {
1122
1116
  type: 'function',
1123
1117
  inputs: [],
@@ -1125,21 +1119,6 @@ export const fPoolManagerAbi = [
1125
1119
  outputs: [],
1126
1120
  stateMutability: 'nonpayable',
1127
1121
  },
1128
- {
1129
- type: 'function',
1130
- inputs: [
1131
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1132
- { name: 'base', internalType: 'address', type: 'address' },
1133
- { name: 'Lj', internalType: 'uint256', type: 'uint256' },
1134
- { name: 'x', internalType: 'int256', type: 'int256' },
1135
- ],
1136
- name: 'admitLeg',
1137
- outputs: [
1138
- { name: 'dReserve', internalType: 'int256', type: 'int256' },
1139
- { name: 'dShares', internalType: 'int256', type: 'int256' },
1140
- ],
1141
- stateMutability: 'nonpayable',
1142
- },
1143
1122
  {
1144
1123
  type: 'function',
1145
1124
  inputs: [
@@ -1161,16 +1140,6 @@ export const fPoolManagerAbi = [
1161
1140
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1162
1141
  stateMutability: 'view',
1163
1142
  },
1164
- {
1165
- type: 'function',
1166
- inputs: [
1167
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1168
- { name: 'who', internalType: 'address', type: 'address' },
1169
- ],
1170
- name: 'appointOperator',
1171
- outputs: [],
1172
- stateMutability: 'nonpayable',
1173
- },
1174
1143
  {
1175
1144
  type: 'function',
1176
1145
  inputs: [
@@ -1192,6 +1161,20 @@ export const fPoolManagerAbi = [
1192
1161
  outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
1193
1162
  stateMutability: 'view',
1194
1163
  },
1164
+ {
1165
+ type: 'function',
1166
+ inputs: [
1167
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1168
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
1169
+ ],
1170
+ name: 'bundleOf',
1171
+ outputs: [
1172
+ { name: 'supply', internalType: 'uint256', type: 'uint256' },
1173
+ { name: 'quote', internalType: 'uint256', type: 'uint256' },
1174
+ { name: 'base', internalType: 'uint256[]', type: 'uint256[]' },
1175
+ ],
1176
+ stateMutability: 'view',
1177
+ },
1195
1178
  {
1196
1179
  type: 'function',
1197
1180
  inputs: [
@@ -1245,29 +1228,30 @@ export const fPoolManagerAbi = [
1245
1228
  {
1246
1229
  type: 'function',
1247
1230
  inputs: [
1248
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1249
- { name: 'amount', internalType: 'uint256', type: 'uint256' },
1231
+ { name: 'token', internalType: 'address', type: 'address' },
1232
+ { name: 'target', internalType: 'address', type: 'address' },
1250
1233
  ],
1251
- name: 'deepen',
1252
- outputs: [],
1253
- stateMutability: 'nonpayable',
1234
+ name: 'deltaOf',
1235
+ outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
1236
+ stateMutability: 'view',
1254
1237
  },
1255
1238
  {
1256
1239
  type: 'function',
1257
1240
  inputs: [
1258
- { name: 'token', internalType: 'address', type: 'address' },
1259
- { name: 'target', internalType: 'address', type: 'address' },
1241
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1242
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
1243
+ { name: 'holder', internalType: 'address', type: 'address' },
1260
1244
  ],
1261
- name: 'deltaOf',
1262
- outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
1245
+ name: 'dividendOf',
1246
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1263
1247
  stateMutability: 'view',
1264
1248
  },
1265
1249
  {
1266
1250
  type: 'function',
1267
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1268
- name: 'dissolve',
1269
- outputs: [],
1270
- stateMutability: 'nonpayable',
1251
+ inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1252
+ name: 'dps',
1253
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1254
+ stateMutability: 'view',
1271
1255
  },
1272
1256
  {
1273
1257
  type: 'function',
@@ -1297,15 +1281,15 @@ export const fPoolManagerAbi = [
1297
1281
  outputs: [
1298
1282
  {
1299
1283
  name: '',
1300
- internalType: 'struct FPoolManager.Pool',
1284
+ internalType: 'struct FPoolBase.Pool',
1301
1285
  type: 'tuple',
1302
1286
  components: [
1303
1287
  { name: 'quote', internalType: 'address', type: 'address' },
1304
1288
  { name: 'phi', internalType: 'uint96', type: 'uint96' },
1305
1289
  { name: 'authority', internalType: 'address', type: 'address' },
1306
- { name: 'feesOnly', internalType: 'bool', type: 'bool' },
1290
+ { name: 'lockStrike', internalType: 'bool', type: 'bool' },
1307
1291
  { name: 'seeded', internalType: 'bool', type: 'bool' },
1308
- { name: 'dissolved', internalType: 'bool', type: 'bool' },
1292
+ { name: 'gen', internalType: 'uint16', type: 'uint16' },
1309
1293
  { name: 'n', internalType: 'uint8', type: 'uint8' },
1310
1294
  { name: 'restructureBlock', internalType: 'uint32', type: 'uint32' },
1311
1295
  { name: 'gateMint', internalType: 'bool', type: 'bool' },
@@ -1330,17 +1314,6 @@ export const fPoolManagerAbi = [
1330
1314
  ],
1331
1315
  stateMutability: 'view',
1332
1316
  },
1333
- {
1334
- type: 'function',
1335
- inputs: [
1336
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1337
- { name: 'amount', internalType: 'uint256', type: 'uint256' },
1338
- { name: 'to', internalType: 'address', type: 'address' },
1339
- ],
1340
- name: 'harvest',
1341
- outputs: [],
1342
- stateMutability: 'nonpayable',
1343
- },
1344
1317
  {
1345
1318
  type: 'function',
1346
1319
  inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
@@ -1360,7 +1333,7 @@ export const fPoolManagerAbi = [
1360
1333
  { name: 'bases', internalType: 'address[]', type: 'address[]' },
1361
1334
  { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
1362
1335
  { name: 'phi', internalType: 'uint256', type: 'uint256' },
1363
- { name: 'feesOnly', internalType: 'bool', type: 'bool' },
1336
+ { name: 'lockStrike', internalType: 'bool', type: 'bool' },
1364
1337
  { name: 'authority', internalType: 'address', type: 'address' },
1365
1338
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
1366
1339
  ],
@@ -1382,7 +1355,7 @@ export const fPoolManagerAbi = [
1382
1355
  { name: 'bases', internalType: 'address[]', type: 'address[]' },
1383
1356
  { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
1384
1357
  { name: 'phi', internalType: 'uint256', type: 'uint256' },
1385
- { name: 'feesOnly', internalType: 'bool', type: 'bool' },
1358
+ { name: 'lockStrike', internalType: 'bool', type: 'bool' },
1386
1359
  { name: 'authority', internalType: 'address', type: 'address' },
1387
1360
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
1388
1361
  ],
@@ -1426,15 +1399,1278 @@ export const fPoolManagerAbi = [
1426
1399
  },
1427
1400
  {
1428
1401
  type: 'function',
1429
- inputs: [
1430
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1431
- { name: 'to', internalType: 'address', type: 'address' },
1432
- { name: 'dL', internalType: 'uint256', type: 'uint256' },
1433
- { name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
1434
- ],
1435
- name: 'mint',
1436
- outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
1437
- stateMutability: 'nonpayable',
1402
+ inputs: [
1403
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1404
+ { name: 'to', internalType: 'address', type: 'address' },
1405
+ { name: 'dL', internalType: 'uint256', type: 'uint256' },
1406
+ { name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
1407
+ ],
1408
+ name: 'mint',
1409
+ outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
1410
+ stateMutability: 'nonpayable',
1411
+ },
1412
+ {
1413
+ type: 'function',
1414
+ inputs: [
1415
+ { name: 'token', internalType: 'address', type: 'address' },
1416
+ { name: 'to', internalType: 'address', type: 'address' },
1417
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
1418
+ ],
1419
+ name: 'mintClaims',
1420
+ outputs: [],
1421
+ stateMutability: 'nonpayable',
1422
+ },
1423
+ {
1424
+ type: 'function',
1425
+ inputs: [{ name: 'calls', internalType: 'bytes[]', type: 'bytes[]' }],
1426
+ name: 'multicall',
1427
+ outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }],
1428
+ stateMutability: 'nonpayable',
1429
+ },
1430
+ {
1431
+ type: 'function',
1432
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1433
+ name: 'n',
1434
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1435
+ stateMutability: 'view',
1436
+ },
1437
+ {
1438
+ type: 'function',
1439
+ inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1440
+ name: 'name',
1441
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
1442
+ stateMutability: 'pure',
1443
+ },
1444
+ {
1445
+ type: 'function',
1446
+ inputs: [],
1447
+ name: 'nonzeroDeltaCount',
1448
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1449
+ stateMutability: 'view',
1450
+ },
1451
+ {
1452
+ type: 'function',
1453
+ inputs: [],
1454
+ name: 'pendingCollector',
1455
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1456
+ stateMutability: 'view',
1457
+ },
1458
+ {
1459
+ type: 'function',
1460
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1461
+ name: 'phiB4B',
1462
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1463
+ stateMutability: 'view',
1464
+ },
1465
+ {
1466
+ type: 'function',
1467
+ inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1468
+ name: 'pot',
1469
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1470
+ stateMutability: 'view',
1471
+ },
1472
+ {
1473
+ type: 'function',
1474
+ inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
1475
+ name: 'proposeCollector',
1476
+ outputs: [],
1477
+ stateMutability: 'nonpayable',
1478
+ },
1479
+ {
1480
+ type: 'function',
1481
+ inputs: [
1482
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1483
+ {
1484
+ name: 'kind',
1485
+ internalType: 'enum FPoolManager.QuoteKind',
1486
+ type: 'uint8',
1487
+ },
1488
+ { name: 'j', internalType: 'uint256', type: 'uint256' },
1489
+ { name: 'k', internalType: 'uint256', type: 'uint256' },
1490
+ { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
1491
+ { name: 'taker', internalType: 'address', type: 'address' },
1492
+ ],
1493
+ name: 'quoteSwap',
1494
+ outputs: [],
1495
+ stateMutability: 'nonpayable',
1496
+ },
1497
+ {
1498
+ type: 'function',
1499
+ inputs: [
1500
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1501
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
1502
+ { name: 'owner', internalType: 'address', type: 'address' },
1503
+ { name: 'shares', internalType: 'uint256', type: 'uint256' },
1504
+ ],
1505
+ name: 'redeem',
1506
+ outputs: [{ name: 'quoteOut', internalType: 'uint256', type: 'uint256' }],
1507
+ stateMutability: 'nonpayable',
1508
+ },
1509
+ {
1510
+ type: 'function',
1511
+ inputs: [
1512
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1513
+ { name: 'j', internalType: 'uint256', type: 'uint256' },
1514
+ ],
1515
+ name: 'reserveOf',
1516
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1517
+ stateMutability: 'view',
1518
+ },
1519
+ {
1520
+ type: 'function',
1521
+ inputs: [
1522
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1523
+ { name: 'L0', internalType: 'uint256', type: 'uint256' },
1524
+ { name: 'r0', internalType: 'uint256[]', type: 'uint256[]' },
1525
+ { name: 'Q0', internalType: 'uint256', type: 'uint256' },
1526
+ ],
1527
+ name: 'seed',
1528
+ outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
1529
+ stateMutability: 'nonpayable',
1530
+ },
1531
+ {
1532
+ type: 'function',
1533
+ inputs: [
1534
+ { name: 'operator', internalType: 'address', type: 'address' },
1535
+ { name: 'approved', internalType: 'bool', type: 'bool' },
1536
+ ],
1537
+ name: 'setOperator',
1538
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1539
+ stateMutability: 'payable',
1540
+ },
1541
+ {
1542
+ type: 'function',
1543
+ inputs: [],
1544
+ name: 'settle',
1545
+ outputs: [{ name: 'paid', internalType: 'uint256', type: 'uint256' }],
1546
+ stateMutability: 'nonpayable',
1547
+ },
1548
+ {
1549
+ type: 'function',
1550
+ inputs: [
1551
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1552
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
1553
+ ],
1554
+ name: 'shareIdOf',
1555
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1556
+ stateMutability: 'pure',
1557
+ },
1558
+ {
1559
+ type: 'function',
1560
+ inputs: [],
1561
+ name: 'sponsor',
1562
+ outputs: [
1563
+ { name: '', internalType: 'contract FPoolSponsor', type: 'address' },
1564
+ ],
1565
+ stateMutability: 'view',
1566
+ },
1567
+ {
1568
+ type: 'function',
1569
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
1570
+ name: 'sponsorName',
1571
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
1572
+ stateMutability: 'view',
1573
+ },
1574
+ {
1575
+ type: 'function',
1576
+ inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
1577
+ name: 'supportsInterface',
1578
+ outputs: [{ name: 'result', internalType: 'bool', type: 'bool' }],
1579
+ stateMutability: 'view',
1580
+ },
1581
+ {
1582
+ type: 'function',
1583
+ inputs: [
1584
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1585
+ { name: 'j', internalType: 'uint256', type: 'uint256' },
1586
+ { name: 'k', 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: 'swapBaseForBase',
1592
+ outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
1593
+ stateMutability: 'nonpayable',
1594
+ },
1595
+ {
1596
+ type: 'function',
1597
+ inputs: [
1598
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1599
+ { name: 'j', internalType: 'uint256', type: 'uint256' },
1600
+ { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
1601
+ { name: 'minOut', internalType: 'uint256', type: 'uint256' },
1602
+ { name: 'taker', internalType: 'address', type: 'address' },
1603
+ ],
1604
+ name: 'swapBaseIn',
1605
+ outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
1606
+ stateMutability: 'nonpayable',
1607
+ },
1608
+ {
1609
+ type: 'function',
1610
+ inputs: [
1611
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1612
+ { name: 'j', internalType: 'uint256', type: 'uint256' },
1613
+ { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
1614
+ { name: 'minOut', internalType: 'uint256', type: 'uint256' },
1615
+ { name: 'taker', internalType: 'address', type: 'address' },
1616
+ ],
1617
+ name: 'swapQuoteIn',
1618
+ outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
1619
+ stateMutability: 'nonpayable',
1620
+ },
1621
+ {
1622
+ type: 'function',
1623
+ inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1624
+ name: 'symbol',
1625
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
1626
+ stateMutability: 'pure',
1627
+ },
1628
+ {
1629
+ type: 'function',
1630
+ inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
1631
+ name: 'sync',
1632
+ outputs: [],
1633
+ stateMutability: 'nonpayable',
1634
+ },
1635
+ {
1636
+ type: 'function',
1637
+ inputs: [
1638
+ { name: 'token', internalType: 'address', type: 'address' },
1639
+ { name: 'to', internalType: 'address', type: 'address' },
1640
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
1641
+ ],
1642
+ name: 'take',
1643
+ outputs: [],
1644
+ stateMutability: 'nonpayable',
1645
+ },
1646
+ {
1647
+ type: 'function',
1648
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1649
+ name: 'theta',
1650
+ outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
1651
+ stateMutability: 'view',
1652
+ },
1653
+ {
1654
+ type: 'function',
1655
+ inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1656
+ name: 'tokenURI',
1657
+ outputs: [{ name: '', internalType: 'string', type: 'string' }],
1658
+ stateMutability: 'pure',
1659
+ },
1660
+ {
1661
+ type: 'function',
1662
+ inputs: [
1663
+ { name: 'to', internalType: 'address', type: 'address' },
1664
+ { name: 'id', internalType: 'uint256', type: 'uint256' },
1665
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
1666
+ ],
1667
+ name: 'transfer',
1668
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1669
+ stateMutability: 'payable',
1670
+ },
1671
+ {
1672
+ type: 'function',
1673
+ inputs: [
1674
+ { name: 'from', internalType: 'address', type: 'address' },
1675
+ { name: 'to', internalType: 'address', type: 'address' },
1676
+ { name: 'id', internalType: 'uint256', type: 'uint256' },
1677
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
1678
+ ],
1679
+ name: 'transferFrom',
1680
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1681
+ stateMutability: 'payable',
1682
+ },
1683
+ {
1684
+ type: 'function',
1685
+ inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
1686
+ name: 'unlock',
1687
+ outputs: [{ name: 'result', internalType: 'bytes', type: 'bytes' }],
1688
+ stateMutability: 'nonpayable',
1689
+ },
1690
+ {
1691
+ type: 'function',
1692
+ inputs: [],
1693
+ name: 'version',
1694
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1695
+ stateMutability: 'pure',
1696
+ },
1697
+ {
1698
+ type: 'event',
1699
+ anonymous: false,
1700
+ inputs: [
1701
+ {
1702
+ name: 'poolId',
1703
+ internalType: 'bytes32',
1704
+ type: 'bytes32',
1705
+ indexed: true,
1706
+ },
1707
+ { name: 'who', internalType: 'address', type: 'address', indexed: true },
1708
+ { name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
1709
+ ],
1710
+ name: 'Allowed',
1711
+ },
1712
+ {
1713
+ type: 'event',
1714
+ anonymous: false,
1715
+ inputs: [
1716
+ {
1717
+ name: 'owner',
1718
+ internalType: 'address',
1719
+ type: 'address',
1720
+ indexed: true,
1721
+ },
1722
+ {
1723
+ name: 'spender',
1724
+ internalType: 'address',
1725
+ type: 'address',
1726
+ indexed: true,
1727
+ },
1728
+ { name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
1729
+ {
1730
+ name: 'amount',
1731
+ internalType: 'uint256',
1732
+ type: 'uint256',
1733
+ indexed: false,
1734
+ },
1735
+ ],
1736
+ name: 'Approval',
1737
+ },
1738
+ {
1739
+ type: 'event',
1740
+ anonymous: false,
1741
+ inputs: [
1742
+ {
1743
+ name: 'poolId',
1744
+ internalType: 'bytes32',
1745
+ type: 'bytes32',
1746
+ indexed: true,
1747
+ },
1748
+ {
1749
+ name: 'current',
1750
+ internalType: 'address',
1751
+ type: 'address',
1752
+ indexed: true,
1753
+ },
1754
+ {
1755
+ name: 'proposed',
1756
+ internalType: 'address',
1757
+ type: 'address',
1758
+ indexed: true,
1759
+ },
1760
+ ],
1761
+ name: 'AuthorityProposed',
1762
+ },
1763
+ {
1764
+ type: 'event',
1765
+ anonymous: false,
1766
+ inputs: [
1767
+ {
1768
+ name: 'poolId',
1769
+ internalType: 'bytes32',
1770
+ type: 'bytes32',
1771
+ indexed: true,
1772
+ },
1773
+ { name: 'prev', internalType: 'address', type: 'address', indexed: true },
1774
+ { name: 'next', internalType: 'address', type: 'address', indexed: true },
1775
+ ],
1776
+ name: 'AuthoritySet',
1777
+ },
1778
+ {
1779
+ type: 'event',
1780
+ anonymous: false,
1781
+ inputs: [
1782
+ {
1783
+ name: 'poolId',
1784
+ internalType: 'bytes32',
1785
+ type: 'bytes32',
1786
+ indexed: true,
1787
+ },
1788
+ {
1789
+ name: 'sender',
1790
+ internalType: 'address',
1791
+ type: 'address',
1792
+ indexed: true,
1793
+ },
1794
+ { name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
1795
+ {
1796
+ name: 'shares',
1797
+ internalType: 'uint256',
1798
+ type: 'uint256',
1799
+ indexed: false,
1800
+ },
1801
+ {
1802
+ name: 'dQuote',
1803
+ internalType: 'uint256',
1804
+ type: 'uint256',
1805
+ indexed: false,
1806
+ },
1807
+ ],
1808
+ name: 'Burn',
1809
+ },
1810
+ {
1811
+ type: 'event',
1812
+ anonymous: false,
1813
+ inputs: [
1814
+ {
1815
+ name: 'previous',
1816
+ internalType: 'address',
1817
+ type: 'address',
1818
+ indexed: true,
1819
+ },
1820
+ {
1821
+ name: 'current',
1822
+ internalType: 'address',
1823
+ type: 'address',
1824
+ indexed: true,
1825
+ },
1826
+ ],
1827
+ name: 'CollectorAccepted',
1828
+ },
1829
+ {
1830
+ type: 'event',
1831
+ anonymous: false,
1832
+ inputs: [
1833
+ {
1834
+ name: 'current',
1835
+ internalType: 'address',
1836
+ type: 'address',
1837
+ indexed: true,
1838
+ },
1839
+ {
1840
+ name: 'proposed',
1841
+ internalType: 'address',
1842
+ type: 'address',
1843
+ indexed: true,
1844
+ },
1845
+ ],
1846
+ name: 'CollectorProposed',
1847
+ },
1848
+ {
1849
+ type: 'event',
1850
+ anonymous: false,
1851
+ inputs: [
1852
+ {
1853
+ name: 'poolId',
1854
+ internalType: 'bytes32',
1855
+ type: 'bytes32',
1856
+ indexed: true,
1857
+ },
1858
+ { name: 'from', internalType: 'address', type: 'address', indexed: true },
1859
+ {
1860
+ name: 'amount',
1861
+ internalType: 'uint256',
1862
+ type: 'uint256',
1863
+ indexed: false,
1864
+ },
1865
+ ],
1866
+ name: 'Deepen',
1867
+ },
1868
+ {
1869
+ type: 'event',
1870
+ anonymous: false,
1871
+ inputs: [
1872
+ {
1873
+ name: 'poolId',
1874
+ internalType: 'bytes32',
1875
+ type: 'bytes32',
1876
+ indexed: true,
1877
+ },
1878
+ { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
1879
+ {
1880
+ name: 'supply',
1881
+ internalType: 'uint256',
1882
+ type: 'uint256',
1883
+ indexed: false,
1884
+ },
1885
+ {
1886
+ name: 'quote',
1887
+ internalType: 'uint256',
1888
+ type: 'uint256',
1889
+ indexed: false,
1890
+ },
1891
+ ],
1892
+ name: 'Dissolve',
1893
+ },
1894
+ {
1895
+ type: 'event',
1896
+ anonymous: false,
1897
+ inputs: [
1898
+ {
1899
+ name: 'poolId',
1900
+ internalType: 'bytes32',
1901
+ type: 'bytes32',
1902
+ indexed: true,
1903
+ },
1904
+ {
1905
+ name: 'holder',
1906
+ internalType: 'address',
1907
+ type: 'address',
1908
+ indexed: true,
1909
+ },
1910
+ { name: 'to', internalType: 'address', type: 'address', indexed: true },
1911
+ {
1912
+ name: 'amount',
1913
+ internalType: 'uint256',
1914
+ type: 'uint256',
1915
+ indexed: false,
1916
+ },
1917
+ ],
1918
+ name: 'DividendClaimed',
1919
+ },
1920
+ {
1921
+ type: 'event',
1922
+ anonymous: false,
1923
+ inputs: [
1924
+ {
1925
+ name: 'mintFeeProtocolCut',
1926
+ internalType: 'uint256',
1927
+ type: 'uint256',
1928
+ indexed: false,
1929
+ },
1930
+ {
1931
+ name: 'harvestFee',
1932
+ internalType: 'uint256',
1933
+ type: 'uint256',
1934
+ indexed: false,
1935
+ },
1936
+ ],
1937
+ name: 'FeeParamsSet',
1938
+ },
1939
+ {
1940
+ type: 'event',
1941
+ anonymous: false,
1942
+ inputs: [
1943
+ {
1944
+ name: 'poolId',
1945
+ internalType: 'bytes32',
1946
+ type: 'bytes32',
1947
+ indexed: true,
1948
+ },
1949
+ { name: 'gateMint', internalType: 'bool', type: 'bool', indexed: false },
1950
+ { name: 'gateSwap', internalType: 'bool', type: 'bool', indexed: false },
1951
+ ],
1952
+ name: 'GatesSet',
1953
+ },
1954
+ {
1955
+ type: 'event',
1956
+ anonymous: false,
1957
+ inputs: [
1958
+ {
1959
+ name: 'poolId',
1960
+ internalType: 'bytes32',
1961
+ type: 'bytes32',
1962
+ indexed: true,
1963
+ },
1964
+ { name: 'to', internalType: 'address', type: 'address', indexed: true },
1965
+ {
1966
+ name: 'amount',
1967
+ internalType: 'uint256',
1968
+ type: 'uint256',
1969
+ indexed: false,
1970
+ },
1971
+ {
1972
+ name: 'toSponsor',
1973
+ internalType: 'uint256',
1974
+ type: 'uint256',
1975
+ indexed: false,
1976
+ },
1977
+ ],
1978
+ name: 'Harvest',
1979
+ },
1980
+ {
1981
+ type: 'event',
1982
+ anonymous: false,
1983
+ inputs: [
1984
+ {
1985
+ name: 'poolId',
1986
+ internalType: 'bytes32',
1987
+ type: 'bytes32',
1988
+ indexed: true,
1989
+ },
1990
+ { name: 'exempt', internalType: 'bool', type: 'bool', indexed: false },
1991
+ ],
1992
+ name: 'HarvestFeeExemptSet',
1993
+ },
1994
+ {
1995
+ type: 'event',
1996
+ anonymous: false,
1997
+ inputs: [
1998
+ {
1999
+ name: 'poolId',
2000
+ internalType: 'bytes32',
2001
+ type: 'bytes32',
2002
+ indexed: true,
2003
+ },
2004
+ {
2005
+ name: 'quote',
2006
+ internalType: 'address',
2007
+ type: 'address',
2008
+ indexed: true,
2009
+ },
2010
+ {
2011
+ name: 'authority',
2012
+ internalType: 'address',
2013
+ type: 'address',
2014
+ indexed: true,
2015
+ },
2016
+ {
2017
+ name: 'bases',
2018
+ internalType: 'address[]',
2019
+ type: 'address[]',
2020
+ indexed: false,
2021
+ },
2022
+ {
2023
+ name: 'weights',
2024
+ internalType: 'uint256[]',
2025
+ type: 'uint256[]',
2026
+ indexed: false,
2027
+ },
2028
+ { name: 'phi', internalType: 'uint256', type: 'uint256', indexed: false },
2029
+ {
2030
+ name: 'lockStrike',
2031
+ internalType: 'bool',
2032
+ type: 'bool',
2033
+ indexed: false,
2034
+ },
2035
+ ],
2036
+ name: 'Initialize',
2037
+ },
2038
+ {
2039
+ type: 'event',
2040
+ anonymous: false,
2041
+ inputs: [
2042
+ {
2043
+ name: 'poolId',
2044
+ internalType: 'bytes32',
2045
+ type: 'bytes32',
2046
+ indexed: true,
2047
+ },
2048
+ { name: 'j', internalType: 'uint256', type: 'uint256', indexed: true },
2049
+ {
2050
+ name: 'base',
2051
+ internalType: 'address',
2052
+ type: 'address',
2053
+ indexed: false,
2054
+ },
2055
+ {
2056
+ name: 'newLj',
2057
+ internalType: 'uint256',
2058
+ type: 'uint256',
2059
+ indexed: false,
2060
+ },
2061
+ {
2062
+ name: 'reserve',
2063
+ internalType: 'uint256',
2064
+ type: 'uint256',
2065
+ indexed: false,
2066
+ },
2067
+ { name: 'L', internalType: 'uint256', type: 'uint256', indexed: false },
2068
+ {
2069
+ name: 'theta0',
2070
+ internalType: 'int256',
2071
+ type: 'int256',
2072
+ indexed: false,
2073
+ },
2074
+ {
2075
+ name: 'dReserve',
2076
+ internalType: 'int256',
2077
+ type: 'int256',
2078
+ indexed: false,
2079
+ },
2080
+ {
2081
+ name: 'dShares',
2082
+ internalType: 'int256',
2083
+ type: 'int256',
2084
+ indexed: false,
2085
+ },
2086
+ ],
2087
+ name: 'LegSet',
2088
+ },
2089
+ {
2090
+ type: 'event',
2091
+ anonymous: false,
2092
+ inputs: [
2093
+ {
2094
+ name: 'poolId',
2095
+ internalType: 'bytes32',
2096
+ type: 'bytes32',
2097
+ indexed: true,
2098
+ },
2099
+ {
2100
+ name: 'minBuffer',
2101
+ internalType: 'uint256',
2102
+ type: 'uint256',
2103
+ indexed: false,
2104
+ },
2105
+ ],
2106
+ name: 'MinBufferRaised',
2107
+ },
2108
+ {
2109
+ type: 'event',
2110
+ anonymous: false,
2111
+ inputs: [
2112
+ {
2113
+ name: 'poolId',
2114
+ internalType: 'bytes32',
2115
+ type: 'bytes32',
2116
+ indexed: true,
2117
+ },
2118
+ {
2119
+ name: 'sender',
2120
+ internalType: 'address',
2121
+ type: 'address',
2122
+ indexed: true,
2123
+ },
2124
+ { name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
2125
+ {
2126
+ name: 'shares',
2127
+ internalType: 'uint256',
2128
+ type: 'uint256',
2129
+ indexed: false,
2130
+ },
2131
+ {
2132
+ name: 'dQuote',
2133
+ internalType: 'uint256',
2134
+ type: 'uint256',
2135
+ indexed: false,
2136
+ },
2137
+ ],
2138
+ name: 'Mint',
2139
+ },
2140
+ {
2141
+ type: 'event',
2142
+ anonymous: false,
2143
+ inputs: [
2144
+ {
2145
+ name: 'poolId',
2146
+ internalType: 'bytes32',
2147
+ type: 'bytes32',
2148
+ indexed: true,
2149
+ },
2150
+ {
2151
+ name: 'name',
2152
+ internalType: 'bytes32',
2153
+ type: 'bytes32',
2154
+ indexed: false,
2155
+ },
2156
+ ],
2157
+ name: 'NameSet',
2158
+ },
2159
+ {
2160
+ type: 'event',
2161
+ anonymous: false,
2162
+ inputs: [
2163
+ {
2164
+ name: 'owner',
2165
+ internalType: 'address',
2166
+ type: 'address',
2167
+ indexed: true,
2168
+ },
2169
+ {
2170
+ name: 'operator',
2171
+ internalType: 'address',
2172
+ type: 'address',
2173
+ indexed: true,
2174
+ },
2175
+ { name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
2176
+ ],
2177
+ name: 'OperatorSet',
2178
+ },
2179
+ {
2180
+ type: 'event',
2181
+ anonymous: false,
2182
+ inputs: [
2183
+ {
2184
+ name: 'poolId',
2185
+ internalType: 'bytes32',
2186
+ type: 'bytes32',
2187
+ indexed: true,
2188
+ },
2189
+ { name: 'prev', internalType: 'address', type: 'address', indexed: true },
2190
+ { name: 'next', internalType: 'address', type: 'address', indexed: true },
2191
+ ],
2192
+ name: 'OperatorSet',
2193
+ },
2194
+ {
2195
+ type: 'event',
2196
+ anonymous: false,
2197
+ inputs: [
2198
+ {
2199
+ name: 'poolId',
2200
+ internalType: 'bytes32',
2201
+ type: 'bytes32',
2202
+ indexed: true,
2203
+ },
2204
+ { name: 'inShares', internalType: 'bool', type: 'bool', indexed: false },
2205
+ {
2206
+ name: 'amount',
2207
+ internalType: 'uint256',
2208
+ type: 'uint256',
2209
+ indexed: false,
2210
+ },
2211
+ ],
2212
+ name: 'ProtocolFee',
2213
+ },
2214
+ {
2215
+ type: 'event',
2216
+ anonymous: false,
2217
+ inputs: [
2218
+ {
2219
+ name: 'poolId',
2220
+ internalType: 'bytes32',
2221
+ type: 'bytes32',
2222
+ indexed: true,
2223
+ },
2224
+ { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
2225
+ {
2226
+ name: 'owner',
2227
+ internalType: 'address',
2228
+ type: 'address',
2229
+ indexed: true,
2230
+ },
2231
+ {
2232
+ name: 'shares',
2233
+ internalType: 'uint256',
2234
+ type: 'uint256',
2235
+ indexed: false,
2236
+ },
2237
+ {
2238
+ name: 'quoteOut',
2239
+ internalType: 'uint256',
2240
+ type: 'uint256',
2241
+ indexed: false,
2242
+ },
2243
+ ],
2244
+ name: 'Redeem',
2245
+ },
2246
+ {
2247
+ type: 'event',
2248
+ anonymous: false,
2249
+ inputs: [
2250
+ {
2251
+ name: 'poolId',
2252
+ internalType: 'bytes32',
2253
+ type: 'bytes32',
2254
+ indexed: true,
2255
+ },
2256
+ { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
2257
+ { name: 'L0', internalType: 'uint256', type: 'uint256', indexed: false },
2258
+ { name: 'Q0', internalType: 'uint256', type: 'uint256', indexed: false },
2259
+ {
2260
+ name: 'theta0',
2261
+ internalType: 'int256',
2262
+ type: 'int256',
2263
+ indexed: false,
2264
+ },
2265
+ {
2266
+ name: 'r0',
2267
+ internalType: 'uint256[]',
2268
+ type: 'uint256[]',
2269
+ indexed: false,
2270
+ },
2271
+ ],
2272
+ name: 'Seeded',
2273
+ },
2274
+ {
2275
+ type: 'event',
2276
+ anonymous: false,
2277
+ inputs: [
2278
+ { name: 'who', internalType: 'address', type: 'address', indexed: true },
2279
+ {
2280
+ name: 'name',
2281
+ internalType: 'bytes32',
2282
+ type: 'bytes32',
2283
+ indexed: false,
2284
+ },
2285
+ ],
2286
+ name: 'SponsorNamed',
2287
+ },
2288
+ {
2289
+ type: 'event',
2290
+ anonymous: false,
2291
+ inputs: [
2292
+ {
2293
+ name: 'poolId',
2294
+ internalType: 'bytes32',
2295
+ type: 'bytes32',
2296
+ indexed: true,
2297
+ },
2298
+ {
2299
+ name: 'sender',
2300
+ internalType: 'address',
2301
+ type: 'address',
2302
+ indexed: true,
2303
+ },
2304
+ {
2305
+ name: 'tokenIn',
2306
+ internalType: 'address',
2307
+ type: 'address',
2308
+ indexed: false,
2309
+ },
2310
+ {
2311
+ name: 'tokenOut',
2312
+ internalType: 'address',
2313
+ type: 'address',
2314
+ indexed: false,
2315
+ },
2316
+ {
2317
+ name: 'amountIn',
2318
+ internalType: 'uint256',
2319
+ type: 'uint256',
2320
+ indexed: false,
2321
+ },
2322
+ {
2323
+ name: 'amountOut',
2324
+ internalType: 'uint256',
2325
+ type: 'uint256',
2326
+ indexed: false,
2327
+ },
2328
+ {
2329
+ name: 'reserveIn',
2330
+ internalType: 'uint256',
2331
+ type: 'uint256',
2332
+ indexed: false,
2333
+ },
2334
+ {
2335
+ name: 'reserveOut',
2336
+ internalType: 'uint256',
2337
+ type: 'uint256',
2338
+ indexed: false,
2339
+ },
2340
+ ],
2341
+ name: 'Swap',
2342
+ },
2343
+ {
2344
+ type: 'event',
2345
+ anonymous: false,
2346
+ inputs: [
2347
+ { name: 'by', internalType: 'address', type: 'address', indexed: false },
2348
+ { name: 'from', internalType: 'address', type: 'address', indexed: true },
2349
+ { name: 'to', internalType: 'address', type: 'address', indexed: true },
2350
+ { name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
2351
+ {
2352
+ name: 'amount',
2353
+ internalType: 'uint256',
2354
+ type: 'uint256',
2355
+ indexed: false,
2356
+ },
2357
+ ],
2358
+ name: 'Transfer',
2359
+ },
2360
+ { type: 'error', inputs: [], name: 'AlreadySeeded' },
2361
+ { type: 'error', inputs: [], name: 'AlreadyUnlocked' },
2362
+ { type: 'error', inputs: [], name: 'BadLeg' },
2363
+ { type: 'error', inputs: [], name: 'BadParam' },
2364
+ { type: 'error', inputs: [], name: 'BalanceOverflow' },
2365
+ { type: 'error', inputs: [], name: 'InsufficientBalance' },
2366
+ { type: 'error', inputs: [], name: 'InsufficientPermission' },
2367
+ { type: 'error', inputs: [], name: 'InsufficientQuote' },
2368
+ { type: 'error', inputs: [], name: 'InvalidToken' },
2369
+ { type: 'error', inputs: [], name: 'LegHeld' },
2370
+ { type: 'error', inputs: [], name: 'LegLive' },
2371
+ { type: 'error', inputs: [], name: 'MinBuffer' },
2372
+ {
2373
+ type: 'error',
2374
+ inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256' }],
2375
+ name: 'MulticallFailed',
2376
+ },
2377
+ { type: 'error', inputs: [], name: 'NonstandardToken' },
2378
+ { type: 'error', inputs: [], name: 'NotAllowed' },
2379
+ { type: 'error', inputs: [], name: 'NotAuthority' },
2380
+ { type: 'error', inputs: [], name: 'NotAuthorized' },
2381
+ { type: 'error', inputs: [], name: 'NotCollector' },
2382
+ { type: 'error', inputs: [], name: 'NotDissolvable' },
2383
+ { type: 'error', inputs: [], name: 'NotOperator' },
2384
+ { type: 'error', inputs: [], name: 'NotRetired' },
2385
+ { type: 'error', inputs: [], name: 'NotSeeded' },
2386
+ { type: 'error', inputs: [], name: 'NotSoleLP' },
2387
+ { type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
2388
+ { type: 'error', inputs: [], name: 'PoolLocked' },
2389
+ { type: 'error', inputs: [], name: 'PoolNotInitialized' },
2390
+ { type: 'error', inputs: [], name: 'PriceOutOfRange' },
2391
+ {
2392
+ type: 'error',
2393
+ inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
2394
+ name: 'QuoteResult',
2395
+ },
2396
+ { type: 'error', inputs: [], name: 'ReserveNotRepresentable' },
2397
+ { type: 'error', inputs: [], name: 'Restructured' },
2398
+ { type: 'error', inputs: [], name: 'SameAsset' },
2399
+ { type: 'error', inputs: [], name: 'Slippage' },
2400
+ { type: 'error', inputs: [], name: 'StrikeLocked' },
2401
+ { type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
2402
+ { type: 'error', inputs: [], name: 'TokensNotSettled' },
2403
+ { type: 'error', inputs: [], name: 'TooManyGenerations' },
2404
+ { type: 'error', inputs: [], name: 'TooManyLegs' },
2405
+ { type: 'error', inputs: [], name: 'TransferShortfall' },
2406
+ { type: 'error', inputs: [], name: 'ZeroAmount' },
2407
+ ];
2408
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2409
+ // FPoolSponsor
2410
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2411
+ export const fPoolSponsorAbi = [
2412
+ { type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
2413
+ {
2414
+ type: 'function',
2415
+ inputs: [],
2416
+ name: 'FEE_MIN',
2417
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2418
+ stateMutability: 'view',
2419
+ },
2420
+ {
2421
+ type: 'function',
2422
+ inputs: [],
2423
+ name: 'HARVEST_FEE',
2424
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2425
+ stateMutability: 'view',
2426
+ },
2427
+ {
2428
+ type: 'function',
2429
+ inputs: [],
2430
+ name: 'LEVER_FLOOR',
2431
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2432
+ stateMutability: 'view',
2433
+ },
2434
+ {
2435
+ type: 'function',
2436
+ inputs: [],
2437
+ name: 'MINT_FEE',
2438
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2439
+ stateMutability: 'view',
2440
+ },
2441
+ {
2442
+ type: 'function',
2443
+ inputs: [],
2444
+ name: 'MINT_FEE_PROTOCOL_CUT',
2445
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2446
+ stateMutability: 'view',
2447
+ },
2448
+ {
2449
+ type: 'function',
2450
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
2451
+ name: 'acceptAuthority',
2452
+ outputs: [],
2453
+ stateMutability: 'nonpayable',
2454
+ },
2455
+ {
2456
+ type: 'function',
2457
+ inputs: [],
2458
+ name: 'acceptCollector',
2459
+ outputs: [],
2460
+ stateMutability: 'nonpayable',
2461
+ },
2462
+ {
2463
+ type: 'function',
2464
+ inputs: [
2465
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
2466
+ { name: 'base', internalType: 'address', type: 'address' },
2467
+ { name: 'Lj', internalType: 'uint256', type: 'uint256' },
2468
+ { name: 'R', internalType: 'uint256', type: 'uint256' },
2469
+ ],
2470
+ name: 'admitLeg',
2471
+ outputs: [
2472
+ { name: 'dReserve', internalType: 'int256', type: 'int256' },
2473
+ { name: 'dShares', internalType: 'int256', type: 'int256' },
2474
+ ],
2475
+ stateMutability: 'nonpayable',
2476
+ },
2477
+ {
2478
+ type: 'function',
2479
+ inputs: [
2480
+ { name: 'owner', internalType: 'address', type: 'address' },
2481
+ { name: 'spender', internalType: 'address', type: 'address' },
2482
+ { name: 'id', internalType: 'uint256', type: 'uint256' },
2483
+ ],
2484
+ name: 'allowance',
2485
+ outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
2486
+ stateMutability: 'view',
2487
+ },
2488
+ {
2489
+ type: 'function',
2490
+ inputs: [
2491
+ { name: '', internalType: 'bytes32', type: 'bytes32' },
2492
+ { name: '', internalType: 'address', type: 'address' },
2493
+ ],
2494
+ name: 'allowed',
2495
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
2496
+ stateMutability: 'view',
2497
+ },
2498
+ {
2499
+ type: 'function',
2500
+ inputs: [
2501
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
2502
+ { name: 'who', internalType: 'address', type: 'address' },
2503
+ ],
2504
+ name: 'appointOperator',
2505
+ outputs: [],
2506
+ stateMutability: 'nonpayable',
2507
+ },
2508
+ {
2509
+ type: 'function',
2510
+ inputs: [
2511
+ { name: 'spender', internalType: 'address', type: 'address' },
2512
+ { name: 'id', internalType: 'uint256', type: 'uint256' },
2513
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
2514
+ ],
2515
+ name: 'approve',
2516
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
2517
+ stateMutability: 'payable',
2518
+ },
2519
+ {
2520
+ type: 'function',
2521
+ inputs: [
2522
+ { name: 'owner', internalType: 'address', type: 'address' },
2523
+ { name: 'id', internalType: 'uint256', type: 'uint256' },
2524
+ ],
2525
+ name: 'balanceOf',
2526
+ outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
2527
+ stateMutability: 'view',
2528
+ },
2529
+ {
2530
+ type: 'function',
2531
+ inputs: [
2532
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
2533
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
2534
+ ],
2535
+ name: 'bundleOf',
2536
+ outputs: [
2537
+ { name: 'supply', internalType: 'uint256', type: 'uint256' },
2538
+ { name: 'quote', internalType: 'uint256', type: 'uint256' },
2539
+ { name: 'base', internalType: 'uint256[]', type: 'uint256[]' },
2540
+ ],
2541
+ stateMutability: 'view',
2542
+ },
2543
+ {
2544
+ type: 'function',
2545
+ inputs: [
2546
+ { name: 'token', internalType: 'address', type: 'address' },
2547
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
2548
+ ],
2549
+ name: 'burnClaims',
2550
+ outputs: [],
2551
+ stateMutability: 'nonpayable',
2552
+ },
2553
+ {
2554
+ type: 'function',
2555
+ inputs: [
2556
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
2557
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
2558
+ { name: 'to', internalType: 'address', type: 'address' },
2559
+ ],
2560
+ name: 'claim',
2561
+ outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
2562
+ stateMutability: 'nonpayable',
2563
+ },
2564
+ {
2565
+ type: 'function',
2566
+ inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
2567
+ name: 'claimIdOf',
2568
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2569
+ stateMutability: 'pure',
2570
+ },
2571
+ {
2572
+ type: 'function',
2573
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
2574
+ name: 'claimsOutstanding',
2575
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2576
+ stateMutability: 'view',
2577
+ },
2578
+ {
2579
+ type: 'function',
2580
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
2581
+ name: 'compositeX',
2582
+ outputs: [{ name: 'X', internalType: 'int256', type: 'int256' }],
2583
+ stateMutability: 'view',
2584
+ },
2585
+ {
2586
+ type: 'function',
2587
+ inputs: [{ name: 'id', internalType: 'uint256', type: 'uint256' }],
2588
+ name: 'decimals',
2589
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
2590
+ stateMutability: 'view',
2591
+ },
2592
+ {
2593
+ type: 'function',
2594
+ inputs: [
2595
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
2596
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
2597
+ ],
2598
+ name: 'deepen',
2599
+ outputs: [],
2600
+ stateMutability: 'nonpayable',
2601
+ },
2602
+ {
2603
+ type: 'function',
2604
+ inputs: [
2605
+ { name: 'token', internalType: 'address', type: 'address' },
2606
+ { name: 'target', internalType: 'address', type: 'address' },
2607
+ ],
2608
+ name: 'deltaOf',
2609
+ outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
2610
+ stateMutability: 'view',
2611
+ },
2612
+ {
2613
+ type: 'function',
2614
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
2615
+ name: 'dissolve',
2616
+ outputs: [],
2617
+ stateMutability: 'nonpayable',
2618
+ },
2619
+ {
2620
+ type: 'function',
2621
+ inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2622
+ name: 'dps',
2623
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2624
+ stateMutability: 'view',
2625
+ },
2626
+ {
2627
+ type: 'function',
2628
+ inputs: [],
2629
+ name: 'feeCollector',
2630
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2631
+ stateMutability: 'view',
2632
+ },
2633
+ {
2634
+ type: 'function',
2635
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
2636
+ name: 'feePerL',
2637
+ outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
2638
+ stateMutability: 'view',
2639
+ },
2640
+ {
2641
+ type: 'function',
2642
+ inputs: [
2643
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
2644
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
2645
+ { name: 'to', internalType: 'address', type: 'address' },
2646
+ ],
2647
+ name: 'harvest',
2648
+ outputs: [],
2649
+ stateMutability: 'nonpayable',
2650
+ },
2651
+ {
2652
+ type: 'function',
2653
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
2654
+ name: 'harvestFeeExempt',
2655
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
2656
+ stateMutability: 'view',
2657
+ },
2658
+ {
2659
+ type: 'function',
2660
+ inputs: [
2661
+ { name: 'owner', internalType: 'address', type: 'address' },
2662
+ { name: 'spender', internalType: 'address', type: 'address' },
2663
+ ],
2664
+ name: 'isOperator',
2665
+ outputs: [{ name: 'status', internalType: 'bool', type: 'bool' }],
2666
+ stateMutability: 'view',
2667
+ },
2668
+ {
2669
+ type: 'function',
2670
+ inputs: [],
2671
+ name: 'isUnlocked',
2672
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
2673
+ stateMutability: 'view',
1438
2674
  },
1439
2675
  {
1440
2676
  type: 'function',
@@ -1447,20 +2683,6 @@ export const fPoolManagerAbi = [
1447
2683
  outputs: [],
1448
2684
  stateMutability: 'nonpayable',
1449
2685
  },
1450
- {
1451
- type: 'function',
1452
- inputs: [{ name: 'calls', internalType: 'bytes[]', type: 'bytes[]' }],
1453
- name: 'multicall',
1454
- outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }],
1455
- stateMutability: 'nonpayable',
1456
- },
1457
- {
1458
- type: 'function',
1459
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1460
- name: 'n',
1461
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1462
- stateMutability: 'view',
1463
- },
1464
2686
  {
1465
2687
  type: 'function',
1466
2688
  inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
@@ -1484,8 +2706,8 @@ export const fPoolManagerAbi = [
1484
2706
  },
1485
2707
  {
1486
2708
  type: 'function',
1487
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1488
- name: 'phiB4B',
2709
+ inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2710
+ name: 'pot',
1489
2711
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1490
2712
  stateMutability: 'view',
1491
2713
  },
@@ -1506,24 +2728,6 @@ export const fPoolManagerAbi = [
1506
2728
  outputs: [],
1507
2729
  stateMutability: 'nonpayable',
1508
2730
  },
1509
- {
1510
- type: 'function',
1511
- inputs: [
1512
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1513
- {
1514
- name: 'kind',
1515
- internalType: 'enum FPoolManager.QuoteKind',
1516
- type: 'uint8',
1517
- },
1518
- { name: 'j', internalType: 'uint256', type: 'uint256' },
1519
- { name: 'k', internalType: 'uint256', type: 'uint256' },
1520
- { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
1521
- { name: 'taker', internalType: 'address', type: 'address' },
1522
- ],
1523
- name: 'quoteSwap',
1524
- outputs: [],
1525
- stateMutability: 'nonpayable',
1526
- },
1527
2731
  {
1528
2732
  type: 'function',
1529
2733
  inputs: [
@@ -1534,28 +2738,6 @@ export const fPoolManagerAbi = [
1534
2738
  outputs: [],
1535
2739
  stateMutability: 'nonpayable',
1536
2740
  },
1537
- {
1538
- type: 'function',
1539
- inputs: [
1540
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1541
- { name: 'j', internalType: 'uint256', type: 'uint256' },
1542
- ],
1543
- name: 'reserveOf',
1544
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1545
- stateMutability: 'view',
1546
- },
1547
- {
1548
- type: 'function',
1549
- inputs: [
1550
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1551
- { name: 'L0', internalType: 'uint256', type: 'uint256' },
1552
- { name: 'x0', internalType: 'int256[]', type: 'int256[]' },
1553
- { name: 'Q0', internalType: 'uint256', type: 'uint256' },
1554
- ],
1555
- name: 'seed',
1556
- outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
1557
- stateMutability: 'nonpayable',
1558
- },
1559
2741
  {
1560
2742
  type: 'function',
1561
2743
  inputs: [
@@ -1604,7 +2786,7 @@ export const fPoolManagerAbi = [
1604
2786
  { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1605
2787
  { name: 'j', internalType: 'uint256', type: 'uint256' },
1606
2788
  { name: 'newLj', internalType: 'uint256', type: 'uint256' },
1607
- { name: 'xIfNew', internalType: 'int256', type: 'int256' },
2789
+ { name: 'rIfNew', internalType: 'uint256', type: 'uint256' },
1608
2790
  ],
1609
2791
  name: 'setLegL',
1610
2792
  outputs: [
@@ -1652,7 +2834,10 @@ export const fPoolManagerAbi = [
1652
2834
  },
1653
2835
  {
1654
2836
  type: 'function',
1655
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
2837
+ inputs: [
2838
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
2839
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
2840
+ ],
1656
2841
  name: 'shareIdOf',
1657
2842
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1658
2843
  stateMutability: 'pure',
@@ -1671,46 +2856,6 @@ export const fPoolManagerAbi = [
1671
2856
  outputs: [{ name: 'result', internalType: 'bool', type: 'bool' }],
1672
2857
  stateMutability: 'view',
1673
2858
  },
1674
- {
1675
- type: 'function',
1676
- inputs: [
1677
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1678
- { name: 'j', internalType: 'uint256', type: 'uint256' },
1679
- { name: 'k', internalType: 'uint256', type: 'uint256' },
1680
- { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
1681
- { name: 'minOut', internalType: 'uint256', type: 'uint256' },
1682
- { name: 'taker', internalType: 'address', type: 'address' },
1683
- ],
1684
- name: 'swapBaseForBase',
1685
- outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
1686
- stateMutability: 'nonpayable',
1687
- },
1688
- {
1689
- type: 'function',
1690
- inputs: [
1691
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1692
- { name: 'j', internalType: 'uint256', type: 'uint256' },
1693
- { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
1694
- { name: 'minOut', internalType: 'uint256', type: 'uint256' },
1695
- { name: 'taker', internalType: 'address', type: 'address' },
1696
- ],
1697
- name: 'swapBaseIn',
1698
- outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
1699
- stateMutability: 'nonpayable',
1700
- },
1701
- {
1702
- type: 'function',
1703
- inputs: [
1704
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1705
- { name: 'j', internalType: 'uint256', type: 'uint256' },
1706
- { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
1707
- { name: 'minOut', internalType: 'uint256', type: 'uint256' },
1708
- { name: 'taker', internalType: 'address', type: 'address' },
1709
- ],
1710
- name: 'swapQuoteIn',
1711
- outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
1712
- stateMutability: 'nonpayable',
1713
- },
1714
2859
  {
1715
2860
  type: 'function',
1716
2861
  inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
@@ -1968,9 +3113,48 @@ export const fPoolManagerAbi = [
1968
3113
  type: 'bytes32',
1969
3114
  indexed: true,
1970
3115
  },
3116
+ { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
3117
+ {
3118
+ name: 'supply',
3119
+ internalType: 'uint256',
3120
+ type: 'uint256',
3121
+ indexed: false,
3122
+ },
3123
+ {
3124
+ name: 'quote',
3125
+ internalType: 'uint256',
3126
+ type: 'uint256',
3127
+ indexed: false,
3128
+ },
1971
3129
  ],
1972
3130
  name: 'Dissolve',
1973
3131
  },
3132
+ {
3133
+ type: 'event',
3134
+ anonymous: false,
3135
+ inputs: [
3136
+ {
3137
+ name: 'poolId',
3138
+ internalType: 'bytes32',
3139
+ type: 'bytes32',
3140
+ indexed: true,
3141
+ },
3142
+ {
3143
+ name: 'holder',
3144
+ internalType: 'address',
3145
+ type: 'address',
3146
+ indexed: true,
3147
+ },
3148
+ { name: 'to', internalType: 'address', type: 'address', indexed: true },
3149
+ {
3150
+ name: 'amount',
3151
+ internalType: 'uint256',
3152
+ type: 'uint256',
3153
+ indexed: false,
3154
+ },
3155
+ ],
3156
+ name: 'DividendClaimed',
3157
+ },
1974
3158
  {
1975
3159
  type: 'event',
1976
3160
  anonymous: false,
@@ -2022,6 +3206,12 @@ export const fPoolManagerAbi = [
2022
3206
  type: 'uint256',
2023
3207
  indexed: false,
2024
3208
  },
3209
+ {
3210
+ name: 'toSponsor',
3211
+ internalType: 'uint256',
3212
+ type: 'uint256',
3213
+ indexed: false,
3214
+ },
2025
3215
  ],
2026
3216
  name: 'Harvest',
2027
3217
  },
@@ -2074,7 +3264,12 @@ export const fPoolManagerAbi = [
2074
3264
  indexed: false,
2075
3265
  },
2076
3266
  { name: 'phi', internalType: 'uint256', type: 'uint256', indexed: false },
2077
- { name: 'feesOnly', internalType: 'bool', type: 'bool', indexed: false },
3267
+ {
3268
+ name: 'lockStrike',
3269
+ internalType: 'bool',
3270
+ type: 'bool',
3271
+ indexed: false,
3272
+ },
2078
3273
  ],
2079
3274
  name: 'Initialize',
2080
3275
  },
@@ -2101,7 +3296,12 @@ export const fPoolManagerAbi = [
2101
3296
  type: 'uint256',
2102
3297
  indexed: false,
2103
3298
  },
2104
- { name: 'x', internalType: 'int256', type: 'int256', indexed: false },
3299
+ {
3300
+ name: 'reserve',
3301
+ internalType: 'uint256',
3302
+ type: 'uint256',
3303
+ indexed: false,
3304
+ },
2105
3305
  { name: 'L', internalType: 'uint256', type: 'uint256', indexed: false },
2106
3306
  {
2107
3307
  name: 'theta0',
@@ -2259,6 +3459,39 @@ export const fPoolManagerAbi = [
2259
3459
  type: 'bytes32',
2260
3460
  indexed: true,
2261
3461
  },
3462
+ { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
3463
+ {
3464
+ name: 'owner',
3465
+ internalType: 'address',
3466
+ type: 'address',
3467
+ indexed: true,
3468
+ },
3469
+ {
3470
+ name: 'shares',
3471
+ internalType: 'uint256',
3472
+ type: 'uint256',
3473
+ indexed: false,
3474
+ },
3475
+ {
3476
+ name: 'quoteOut',
3477
+ internalType: 'uint256',
3478
+ type: 'uint256',
3479
+ indexed: false,
3480
+ },
3481
+ ],
3482
+ name: 'Redeem',
3483
+ },
3484
+ {
3485
+ type: 'event',
3486
+ anonymous: false,
3487
+ inputs: [
3488
+ {
3489
+ name: 'poolId',
3490
+ internalType: 'bytes32',
3491
+ type: 'bytes32',
3492
+ indexed: true,
3493
+ },
3494
+ { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
2262
3495
  { name: 'L0', internalType: 'uint256', type: 'uint256', indexed: false },
2263
3496
  { name: 'Q0', internalType: 'uint256', type: 'uint256', indexed: false },
2264
3497
  {
@@ -2268,9 +3501,9 @@ export const fPoolManagerAbi = [
2268
3501
  indexed: false,
2269
3502
  },
2270
3503
  {
2271
- name: 'x0',
2272
- internalType: 'int256[]',
2273
- type: 'int256[]',
3504
+ name: 'r0',
3505
+ internalType: 'uint256[]',
3506
+ type: 'uint256[]',
2274
3507
  indexed: false,
2275
3508
  },
2276
3509
  ],
@@ -2331,15 +3564,15 @@ export const fPoolManagerAbi = [
2331
3564
  indexed: false,
2332
3565
  },
2333
3566
  {
2334
- name: 'newXIn',
2335
- internalType: 'int256',
2336
- type: 'int256',
3567
+ name: 'reserveIn',
3568
+ internalType: 'uint256',
3569
+ type: 'uint256',
2337
3570
  indexed: false,
2338
3571
  },
2339
3572
  {
2340
- name: 'newXOut',
2341
- internalType: 'int256',
2342
- type: 'int256',
3573
+ name: 'reserveOut',
3574
+ internalType: 'uint256',
3575
+ type: 'uint256',
2343
3576
  indexed: false,
2344
3577
  },
2345
3578
  ],
@@ -2367,8 +3600,6 @@ export const fPoolManagerAbi = [
2367
3600
  { type: 'error', inputs: [], name: 'BadLeg' },
2368
3601
  { type: 'error', inputs: [], name: 'BadParam' },
2369
3602
  { type: 'error', inputs: [], name: 'BalanceOverflow' },
2370
- { type: 'error', inputs: [], name: 'Dissolved_' },
2371
- { type: 'error', inputs: [], name: 'FeesOnly' },
2372
3603
  { type: 'error', inputs: [], name: 'InsufficientBalance' },
2373
3604
  { type: 'error', inputs: [], name: 'InsufficientPermission' },
2374
3605
  { type: 'error', inputs: [], name: 'InsufficientQuote' },
@@ -2376,18 +3607,15 @@ export const fPoolManagerAbi = [
2376
3607
  { type: 'error', inputs: [], name: 'LegHeld' },
2377
3608
  { type: 'error', inputs: [], name: 'LegLive' },
2378
3609
  { type: 'error', inputs: [], name: 'MinBuffer' },
2379
- {
2380
- type: 'error',
2381
- inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256' }],
2382
- name: 'MulticallFailed',
2383
- },
2384
3610
  { type: 'error', inputs: [], name: 'NonstandardToken' },
2385
3611
  { type: 'error', inputs: [], name: 'NotAllowed' },
2386
3612
  { type: 'error', inputs: [], name: 'NotAuthority' },
2387
3613
  { type: 'error', inputs: [], name: 'NotAuthorized' },
2388
3614
  { type: 'error', inputs: [], name: 'NotCollector' },
3615
+ { type: 'error', inputs: [], name: 'NotDelegated' },
2389
3616
  { type: 'error', inputs: [], name: 'NotDissolvable' },
2390
3617
  { type: 'error', inputs: [], name: 'NotOperator' },
3618
+ { type: 'error', inputs: [], name: 'NotRetired' },
2391
3619
  { type: 'error', inputs: [], name: 'NotSeeded' },
2392
3620
  { type: 'error', inputs: [], name: 'NotSoleLP' },
2393
3621
  { type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
@@ -2403,8 +3631,10 @@ export const fPoolManagerAbi = [
2403
3631
  { type: 'error', inputs: [], name: 'Restructured' },
2404
3632
  { type: 'error', inputs: [], name: 'SameAsset' },
2405
3633
  { type: 'error', inputs: [], name: 'Slippage' },
3634
+ { type: 'error', inputs: [], name: 'StrikeLocked' },
2406
3635
  { type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
2407
3636
  { type: 'error', inputs: [], name: 'TokensNotSettled' },
3637
+ { type: 'error', inputs: [], name: 'TooManyGenerations' },
2408
3638
  { type: 'error', inputs: [], name: 'TooManyLegs' },
2409
3639
  { type: 'error', inputs: [], name: 'TransferShortfall' },
2410
3640
  { type: 'error', inputs: [], name: 'ZeroAmount' },
@@ -2480,6 +3710,29 @@ export const logswapLensAbi = [
2480
3710
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2481
3711
  stateMutability: 'view',
2482
3712
  },
3713
+ {
3714
+ type: 'function',
3715
+ inputs: [
3716
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3717
+ { name: 'owner', internalType: 'address', type: 'address' },
3718
+ ],
3719
+ name: 'fClaimsOf',
3720
+ outputs: [
3721
+ {
3722
+ name: 'out',
3723
+ internalType: 'struct LogswapLens.FClaim[]',
3724
+ type: 'tuple[]',
3725
+ components: [
3726
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
3727
+ { name: 'shares', internalType: 'uint256', type: 'uint256' },
3728
+ { name: 'base', internalType: 'uint256[]', type: 'uint256[]' },
3729
+ { name: 'quote', internalType: 'uint256', type: 'uint256' },
3730
+ { name: 'dividend', internalType: 'uint256', type: 'uint256' },
3731
+ ],
3732
+ },
3733
+ ],
3734
+ stateMutability: 'view',
3735
+ },
2483
3736
  {
2484
3737
  type: 'function',
2485
3738
  inputs: [
@@ -2497,6 +3750,7 @@ export const logswapLensAbi = [
2497
3750
  { name: 'quote', internalType: 'address', type: 'address' },
2498
3751
  { name: 'shares', internalType: 'uint256', type: 'uint256' },
2499
3752
  { name: 'value', internalType: 'uint256', type: 'uint256' },
3753
+ { name: 'dividend', internalType: 'uint256', type: 'uint256' },
2500
3754
  ],
2501
3755
  },
2502
3756
  ],
@@ -2551,15 +3805,15 @@ export const logswapLensAbi = [
2551
3805
  outputs: [
2552
3806
  {
2553
3807
  name: 'out',
2554
- internalType: 'struct FPoolManager.Pool[]',
3808
+ internalType: 'struct FPoolBase.Pool[]',
2555
3809
  type: 'tuple[]',
2556
3810
  components: [
2557
3811
  { name: 'quote', internalType: 'address', type: 'address' },
2558
3812
  { name: 'phi', internalType: 'uint96', type: 'uint96' },
2559
3813
  { name: 'authority', internalType: 'address', type: 'address' },
2560
- { name: 'feesOnly', internalType: 'bool', type: 'bool' },
3814
+ { name: 'lockStrike', internalType: 'bool', type: 'bool' },
2561
3815
  { name: 'seeded', internalType: 'bool', type: 'bool' },
2562
- { name: 'dissolved', internalType: 'bool', type: 'bool' },
3816
+ { name: 'gen', internalType: 'uint16', type: 'uint16' },
2563
3817
  { name: 'n', internalType: 'uint8', type: 'uint8' },
2564
3818
  { name: 'restructureBlock', internalType: 'uint32', type: 'uint32' },
2565
3819
  { name: 'gateMint', internalType: 'bool', type: 'bool' },
@@ -2896,6 +4150,22 @@ export const logswapLensAbi = [
2896
4150
  ],
2897
4151
  stateMutability: 'pure',
2898
4152
  },
4153
+ {
4154
+ type: 'function',
4155
+ inputs: [
4156
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4157
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
4158
+ { name: 'holder', internalType: 'address', type: 'address' },
4159
+ { name: 'shares', internalType: 'uint256', type: 'uint256' },
4160
+ ],
4161
+ name: 'previewRollIn',
4162
+ outputs: [
4163
+ { name: 'dL', internalType: 'uint256', type: 'uint256' },
4164
+ { name: 'quoteShort', internalType: 'uint256', type: 'uint256' },
4165
+ { name: 'quoteExcess', internalType: 'uint256', type: 'uint256' },
4166
+ ],
4167
+ stateMutability: 'view',
4168
+ },
2899
4169
  {
2900
4170
  type: 'function',
2901
4171
  inputs: [
@@ -3531,6 +4801,22 @@ export const logswapRouterAbi = [
3531
4801
  outputs: [{ name: '', internalType: 'contract IPermit2', type: 'address' }],
3532
4802
  stateMutability: 'view',
3533
4803
  },
4804
+ {
4805
+ type: 'function',
4806
+ inputs: [
4807
+ { name: '', internalType: 'bytes32', type: 'bytes32' },
4808
+ { name: '', internalType: 'uint256', type: 'uint256' },
4809
+ { name: '', internalType: 'uint256', type: 'uint256' },
4810
+ { name: '', internalType: 'uint256', type: 'uint256' },
4811
+ { name: '', internalType: 'uint256', type: 'uint256' },
4812
+ { name: '', internalType: 'uint256', type: 'uint256' },
4813
+ { name: '', internalType: 'address', type: 'address' },
4814
+ { name: '', internalType: 'uint256', type: 'uint256' },
4815
+ ],
4816
+ name: 'rollIn',
4817
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4818
+ stateMutability: 'nonpayable',
4819
+ },
3534
4820
  {
3535
4821
  type: 'function',
3536
4822
  inputs: [