@logswap/sdk 0.5.45 → 0.5.46

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
@@ -1044,6 +1044,20 @@ export const fPoolManagerAbi = [
1044
1044
  ],
1045
1045
  stateMutability: 'nonpayable',
1046
1046
  },
1047
+ {
1048
+ type: 'function',
1049
+ inputs: [],
1050
+ name: 'BURN_MAX',
1051
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1052
+ stateMutability: 'view',
1053
+ },
1054
+ {
1055
+ type: 'function',
1056
+ inputs: [],
1057
+ name: 'FEE_MAX',
1058
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1059
+ stateMutability: 'view',
1060
+ },
1047
1061
  {
1048
1062
  type: 'function',
1049
1063
  inputs: [],
@@ -1054,7 +1068,7 @@ export const fPoolManagerAbi = [
1054
1068
  {
1055
1069
  type: 'function',
1056
1070
  inputs: [],
1057
- name: 'HARVEST_PROTOCOL_CUT',
1071
+ name: 'HARVEST_CUT_MAX',
1058
1072
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1059
1073
  stateMutability: 'view',
1060
1074
  },
@@ -1074,10 +1088,10 @@ export const fPoolManagerAbi = [
1074
1088
  },
1075
1089
  {
1076
1090
  type: 'function',
1077
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1078
- name: 'acceptAuthority',
1079
- outputs: [],
1080
- stateMutability: 'nonpayable',
1091
+ inputs: [],
1092
+ name: 'POT_CUT_MAX',
1093
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1094
+ stateMutability: 'view',
1081
1095
  },
1082
1096
  {
1083
1097
  type: 'function',
@@ -1086,13 +1100,6 @@ export const fPoolManagerAbi = [
1086
1100
  outputs: [],
1087
1101
  stateMutability: 'nonpayable',
1088
1102
  },
1089
- {
1090
- type: 'function',
1091
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1092
- name: 'acceptOperator',
1093
- outputs: [],
1094
- stateMutability: 'nonpayable',
1095
- },
1096
1103
  {
1097
1104
  type: 'function',
1098
1105
  inputs: [
@@ -1104,26 +1111,6 @@ export const fPoolManagerAbi = [
1104
1111
  outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
1105
1112
  stateMutability: 'view',
1106
1113
  },
1107
- {
1108
- type: 'function',
1109
- inputs: [
1110
- { name: '', internalType: 'bytes32', type: 'bytes32' },
1111
- { name: '', internalType: 'address', type: 'address' },
1112
- ],
1113
- name: 'allowed',
1114
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1115
- stateMutability: 'view',
1116
- },
1117
- {
1118
- type: 'function',
1119
- inputs: [
1120
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1121
- { name: 'who', internalType: 'address', type: 'address' },
1122
- ],
1123
- name: 'appointOperator',
1124
- outputs: [],
1125
- stateMutability: 'nonpayable',
1126
- },
1127
1114
  {
1128
1115
  type: 'function',
1129
1116
  inputs: [
@@ -1145,6 +1132,15 @@ export const fPoolManagerAbi = [
1145
1132
  outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
1146
1133
  stateMutability: 'view',
1147
1134
  },
1135
+ {
1136
+ type: 'function',
1137
+ inputs: [],
1138
+ name: 'boundary',
1139
+ outputs: [
1140
+ { name: '', internalType: 'contract FPoolBoundary', type: 'address' },
1141
+ ],
1142
+ stateMutability: 'view',
1143
+ },
1148
1144
  {
1149
1145
  type: 'function',
1150
1146
  inputs: [
@@ -1230,13 +1226,6 @@ export const fPoolManagerAbi = [
1230
1226
  outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
1231
1227
  stateMutability: 'view',
1232
1228
  },
1233
- {
1234
- type: 'function',
1235
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1236
- name: 'dissolve',
1237
- outputs: [],
1238
- stateMutability: 'nonpayable',
1239
- },
1240
1229
  {
1241
1230
  type: 'function',
1242
1231
  inputs: [
@@ -1255,13 +1244,6 @@ export const fPoolManagerAbi = [
1255
1244
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1256
1245
  stateMutability: 'view',
1257
1246
  },
1258
- {
1259
- type: 'function',
1260
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1261
- name: 'edgePerL',
1262
- outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
1263
- stateMutability: 'view',
1264
- },
1265
1247
  {
1266
1248
  type: 'function',
1267
1249
  inputs: [],
@@ -1269,13 +1251,6 @@ export const fPoolManagerAbi = [
1269
1251
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
1270
1252
  stateMutability: 'view',
1271
1253
  },
1272
- {
1273
- type: 'function',
1274
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1275
- name: 'feePerL',
1276
- outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
1277
- stateMutability: 'view',
1278
- },
1279
1254
  {
1280
1255
  type: 'function',
1281
1256
  inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
@@ -1288,28 +1263,18 @@ export const fPoolManagerAbi = [
1288
1263
  components: [
1289
1264
  { name: 'quote', internalType: 'address', type: 'address' },
1290
1265
  { name: 'phi', internalType: 'uint96', type: 'uint96' },
1291
- { name: 'authority', internalType: 'address', type: 'address' },
1266
+ { name: 'hook', internalType: 'address', type: 'address' },
1292
1267
  { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
1293
1268
  { name: 'seeded', internalType: 'bool', type: 'bool' },
1294
1269
  { name: 'gen', internalType: 'uint16', type: 'uint16' },
1295
1270
  { name: 'n', internalType: 'uint8', type: 'uint8' },
1296
1271
  { name: 'restructureBlock', internalType: 'uint32', type: 'uint32' },
1297
- { name: 'gateMint', internalType: 'bool', type: 'bool' },
1298
- { name: 'gateSwap', internalType: 'bool', type: 'bool' },
1272
+ { name: 'asks', internalType: 'uint8', type: 'uint8' },
1299
1273
  { name: 'Q', internalType: 'uint128', type: 'uint128' },
1300
1274
  { name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
1301
1275
  { name: 'L', internalType: 'uint256', type: 'uint256' },
1302
1276
  { name: 'shares', internalType: 'uint256', type: 'uint256' },
1303
1277
  { name: 'theta0', internalType: 'int256', type: 'int256' },
1304
- { name: 'harvestedTheta', internalType: 'int256', type: 'int256' },
1305
- {
1306
- name: 'pendingAuthority',
1307
- internalType: 'address',
1308
- type: 'address',
1309
- },
1310
- { name: 'operator', internalType: 'address', type: 'address' },
1311
- { name: 'pendingOperator', internalType: 'address', type: 'address' },
1312
- { name: 'incomeTaken', internalType: 'uint256', type: 'uint256' },
1313
1278
  { name: 'name', internalType: 'bytes32', type: 'bytes32' },
1314
1279
  ],
1315
1280
  },
@@ -1329,8 +1294,18 @@ export const fPoolManagerAbi = [
1329
1294
  },
1330
1295
  {
1331
1296
  type: 'function',
1332
- inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
1333
- name: 'harvestCutExempt',
1297
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1298
+ name: 'harvestable',
1299
+ outputs: [{ name: 'cap', internalType: 'uint256', type: 'uint256' }],
1300
+ stateMutability: 'view',
1301
+ },
1302
+ {
1303
+ type: 'function',
1304
+ inputs: [
1305
+ { name: '', internalType: 'enum Kind', type: 'uint8' },
1306
+ { name: '', internalType: 'address', type: 'address' },
1307
+ ],
1308
+ name: 'hookApproved',
1334
1309
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1335
1310
  stateMutability: 'view',
1336
1311
  },
@@ -1347,7 +1322,8 @@ export const fPoolManagerAbi = [
1347
1322
  { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
1348
1323
  { name: 'phi', internalType: 'uint256', type: 'uint256' },
1349
1324
  { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
1350
- { name: 'authority', internalType: 'address', type: 'address' },
1325
+ { name: 'hook', internalType: 'address', type: 'address' },
1326
+ { name: 'creator', internalType: 'address', type: 'address' },
1351
1327
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
1352
1328
  ],
1353
1329
  },
@@ -1369,7 +1345,8 @@ export const fPoolManagerAbi = [
1369
1345
  { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
1370
1346
  { name: 'phi', internalType: 'uint256', type: 'uint256' },
1371
1347
  { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
1372
- { name: 'authority', internalType: 'address', type: 'address' },
1348
+ { name: 'hook', internalType: 'address', type: 'address' },
1349
+ { name: 'creator', internalType: 'address', type: 'address' },
1373
1350
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
1374
1351
  ],
1375
1352
  },
@@ -1440,13 +1417,6 @@ export const fPoolManagerAbi = [
1440
1417
  outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }],
1441
1418
  stateMutability: 'nonpayable',
1442
1419
  },
1443
- {
1444
- type: 'function',
1445
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1446
- name: 'n',
1447
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1448
- stateMutability: 'view',
1449
- },
1450
1420
  {
1451
1421
  type: 'function',
1452
1422
  inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
@@ -1482,16 +1452,6 @@ export const fPoolManagerAbi = [
1482
1452
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1483
1453
  stateMutability: 'view',
1484
1454
  },
1485
- {
1486
- type: 'function',
1487
- inputs: [
1488
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1489
- { name: 'next', internalType: 'address', type: 'address' },
1490
- ],
1491
- name: 'proposeAuthority',
1492
- outputs: [],
1493
- stateMutability: 'nonpayable',
1494
- },
1495
1455
  {
1496
1456
  type: 'function',
1497
1457
  inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
@@ -1529,6 +1489,16 @@ export const fPoolManagerAbi = [
1529
1489
  outputs: [{ name: 'quoteOut', internalType: 'uint256', type: 'uint256' }],
1530
1490
  stateMutability: 'nonpayable',
1531
1491
  },
1492
+ {
1493
+ type: 'function',
1494
+ inputs: [
1495
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1496
+ { name: 'to', internalType: 'address', type: 'address' },
1497
+ ],
1498
+ name: 'regenerate',
1499
+ outputs: [],
1500
+ stateMutability: 'nonpayable',
1501
+ },
1532
1502
  {
1533
1503
  type: 'function',
1534
1504
  inputs: [
@@ -1539,6 +1509,13 @@ export const fPoolManagerAbi = [
1539
1509
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1540
1510
  stateMutability: 'view',
1541
1511
  },
1512
+ {
1513
+ type: 'function',
1514
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1515
+ name: 'retire',
1516
+ outputs: [],
1517
+ stateMutability: 'nonpayable',
1518
+ },
1542
1519
  {
1543
1520
  type: 'function',
1544
1521
  inputs: [
@@ -1551,22 +1528,10 @@ export const fPoolManagerAbi = [
1551
1528
  outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
1552
1529
  stateMutability: 'nonpayable',
1553
1530
  },
1554
- {
1555
- type: 'function',
1556
- inputs: [
1557
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1558
- { name: 'who', internalType: 'address[]', type: 'address[]' },
1559
- { name: 'yes', internalType: 'bool', type: 'bool' },
1560
- ],
1561
- name: 'setAllowed',
1562
- outputs: [],
1563
- stateMutability: 'nonpayable',
1564
- },
1565
1531
  {
1566
1532
  type: 'function',
1567
1533
  inputs: [
1568
1534
  { name: 'mintFeeProtocolCut', internalType: 'uint256', type: 'uint256' },
1569
- { name: 'harvestProtocolCut', internalType: 'uint256', type: 'uint256' },
1570
1535
  ],
1571
1536
  name: 'setFeeParams',
1572
1537
  outputs: [],
@@ -1575,21 +1540,11 @@ export const fPoolManagerAbi = [
1575
1540
  {
1576
1541
  type: 'function',
1577
1542
  inputs: [
1578
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1579
- { name: 'gateMint', internalType: 'bool', type: 'bool' },
1580
- { name: 'gateSwap', internalType: 'bool', type: 'bool' },
1581
- ],
1582
- name: 'setGates',
1583
- outputs: [],
1584
- stateMutability: 'nonpayable',
1585
- },
1586
- {
1587
- type: 'function',
1588
- inputs: [
1589
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1590
- { name: 'exempt', internalType: 'bool', type: 'bool' },
1543
+ { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
1544
+ { name: 'hook', internalType: 'address', type: 'address' },
1545
+ { name: 'approved', internalType: 'bool', type: 'bool' },
1591
1546
  ],
1592
- name: 'setHarvestCutExempt',
1547
+ name: 'setHookApproved',
1593
1548
  outputs: [],
1594
1549
  stateMutability: 'nonpayable',
1595
1550
  },
@@ -1767,6 +1722,13 @@ export const fPoolManagerAbi = [
1767
1722
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1768
1723
  stateMutability: 'payable',
1769
1724
  },
1725
+ {
1726
+ type: 'function',
1727
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1728
+ name: 'unharvested',
1729
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1730
+ stateMutability: 'view',
1731
+ },
1770
1732
  {
1771
1733
  type: 'function',
1772
1734
  inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
@@ -1781,21 +1743,6 @@ export const fPoolManagerAbi = [
1781
1743
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1782
1744
  stateMutability: 'pure',
1783
1745
  },
1784
- {
1785
- type: 'event',
1786
- anonymous: false,
1787
- inputs: [
1788
- {
1789
- name: 'poolId',
1790
- internalType: 'bytes32',
1791
- type: 'bytes32',
1792
- indexed: true,
1793
- },
1794
- { name: 'who', internalType: 'address', type: 'address', indexed: true },
1795
- { name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
1796
- ],
1797
- name: 'Allowed',
1798
- },
1799
1746
  {
1800
1747
  type: 'event',
1801
1748
  anonymous: false,
@@ -1832,52 +1779,7 @@ export const fPoolManagerAbi = [
1832
1779
  type: 'bytes32',
1833
1780
  indexed: true,
1834
1781
  },
1835
- {
1836
- name: 'current',
1837
- internalType: 'address',
1838
- type: 'address',
1839
- indexed: true,
1840
- },
1841
- {
1842
- name: 'proposed',
1843
- internalType: 'address',
1844
- type: 'address',
1845
- indexed: true,
1846
- },
1847
- ],
1848
- name: 'AuthorityProposed',
1849
- },
1850
- {
1851
- type: 'event',
1852
- anonymous: false,
1853
- inputs: [
1854
- {
1855
- name: 'poolId',
1856
- internalType: 'bytes32',
1857
- type: 'bytes32',
1858
- indexed: true,
1859
- },
1860
- { name: 'prev', internalType: 'address', type: 'address', indexed: true },
1861
- { name: 'next', internalType: 'address', type: 'address', indexed: true },
1862
- ],
1863
- name: 'AuthoritySet',
1864
- },
1865
- {
1866
- type: 'event',
1867
- anonymous: false,
1868
- inputs: [
1869
- {
1870
- name: 'poolId',
1871
- internalType: 'bytes32',
1872
- type: 'bytes32',
1873
- indexed: true,
1874
- },
1875
- {
1876
- name: 'sender',
1877
- internalType: 'address',
1878
- type: 'address',
1879
- indexed: true,
1880
- },
1782
+ { name: 'from', internalType: 'address', type: 'address', indexed: true },
1881
1783
  { name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
1882
1784
  {
1883
1785
  name: 'shares',
@@ -1932,32 +1834,6 @@ export const fPoolManagerAbi = [
1932
1834
  ],
1933
1835
  name: 'CollectorProposed',
1934
1836
  },
1935
- {
1936
- type: 'event',
1937
- anonymous: false,
1938
- inputs: [
1939
- {
1940
- name: 'poolId',
1941
- internalType: 'bytes32',
1942
- type: 'bytes32',
1943
- indexed: true,
1944
- },
1945
- { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
1946
- {
1947
- name: 'supply',
1948
- internalType: 'uint256',
1949
- type: 'uint256',
1950
- indexed: false,
1951
- },
1952
- {
1953
- name: 'quote',
1954
- internalType: 'uint256',
1955
- type: 'uint256',
1956
- indexed: false,
1957
- },
1958
- ],
1959
- name: 'Dissolve',
1960
- },
1961
1837
  {
1962
1838
  type: 'event',
1963
1839
  anonymous: false,
@@ -1994,30 +1870,9 @@ export const fPoolManagerAbi = [
1994
1870
  type: 'uint256',
1995
1871
  indexed: false,
1996
1872
  },
1997
- {
1998
- name: 'harvestProtocolCut',
1999
- internalType: 'uint256',
2000
- type: 'uint256',
2001
- indexed: false,
2002
- },
2003
1873
  ],
2004
1874
  name: 'FeeParamsSet',
2005
1875
  },
2006
- {
2007
- type: 'event',
2008
- anonymous: false,
2009
- inputs: [
2010
- {
2011
- name: 'poolId',
2012
- internalType: 'bytes32',
2013
- type: 'bytes32',
2014
- indexed: true,
2015
- },
2016
- { name: 'gateMint', internalType: 'bool', type: 'bool', indexed: false },
2017
- { name: 'gateSwap', internalType: 'bool', type: 'bool', indexed: false },
2018
- ],
2019
- name: 'GatesSet',
2020
- },
2021
1876
  {
2022
1877
  type: 'event',
2023
1878
  anonymous: false,
@@ -2035,8 +1890,9 @@ export const fPoolManagerAbi = [
2035
1890
  type: 'uint256',
2036
1891
  indexed: false,
2037
1892
  },
1893
+ { name: 'cut', internalType: 'uint256', type: 'uint256', indexed: false },
2038
1894
  {
2039
- name: 'toSponsor',
1895
+ name: 'toOperator',
2040
1896
  internalType: 'uint256',
2041
1897
  type: 'uint256',
2042
1898
  indexed: false,
@@ -2048,15 +1904,11 @@ export const fPoolManagerAbi = [
2048
1904
  type: 'event',
2049
1905
  anonymous: false,
2050
1906
  inputs: [
2051
- {
2052
- name: 'poolId',
2053
- internalType: 'bytes32',
2054
- type: 'bytes32',
2055
- indexed: true,
2056
- },
2057
- { name: 'exempt', internalType: 'bool', type: 'bool', indexed: false },
1907
+ { name: 'kind', internalType: 'enum Kind', type: 'uint8', indexed: true },
1908
+ { name: 'hook', internalType: 'address', type: 'address', indexed: true },
1909
+ { name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
2058
1910
  ],
2059
- name: 'HarvestCutExemptSet',
1911
+ name: 'HookApproved',
2060
1912
  },
2061
1913
  {
2062
1914
  type: 'event',
@@ -2075,7 +1927,7 @@ export const fPoolManagerAbi = [
2075
1927
  indexed: true,
2076
1928
  },
2077
1929
  {
2078
- name: 'authority',
1930
+ name: 'creator',
2079
1931
  internalType: 'address',
2080
1932
  type: 'address',
2081
1933
  indexed: true,
@@ -2099,7 +1951,13 @@ export const fPoolManagerAbi = [
2099
1951
  type: 'uint8',
2100
1952
  indexed: false,
2101
1953
  },
2102
- ],
1954
+ {
1955
+ name: 'hook',
1956
+ internalType: 'address',
1957
+ type: 'address',
1958
+ indexed: false,
1959
+ },
1960
+ ],
2103
1961
  name: 'Initialize',
2104
1962
  },
2105
1963
  {
@@ -2138,12 +1996,7 @@ export const fPoolManagerAbi = [
2138
1996
  type: 'bytes32',
2139
1997
  indexed: true,
2140
1998
  },
2141
- {
2142
- name: 'sender',
2143
- internalType: 'address',
2144
- type: 'address',
2145
- indexed: true,
2146
- },
1999
+ { name: 'to', internalType: 'address', type: 'address', indexed: true },
2147
2000
  { name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
2148
2001
  {
2149
2002
  name: 'shares',
@@ -2184,45 +2037,40 @@ export const fPoolManagerAbi = [
2184
2037
  anonymous: false,
2185
2038
  inputs: [
2186
2039
  {
2187
- name: 'poolId',
2188
- internalType: 'bytes32',
2189
- type: 'bytes32',
2190
- indexed: true,
2191
- },
2192
- {
2193
- name: 'current',
2040
+ name: 'owner',
2194
2041
  internalType: 'address',
2195
2042
  type: 'address',
2196
2043
  indexed: true,
2197
2044
  },
2198
2045
  {
2199
- name: 'proposed',
2046
+ name: 'operator',
2200
2047
  internalType: 'address',
2201
2048
  type: 'address',
2202
2049
  indexed: true,
2203
2050
  },
2051
+ { name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
2204
2052
  ],
2205
- name: 'OperatorProposed',
2053
+ name: 'OperatorSet',
2206
2054
  },
2207
2055
  {
2208
2056
  type: 'event',
2209
2057
  anonymous: false,
2210
2058
  inputs: [
2211
2059
  {
2212
- name: 'owner',
2213
- internalType: 'address',
2214
- type: 'address',
2060
+ name: 'poolId',
2061
+ internalType: 'bytes32',
2062
+ type: 'bytes32',
2215
2063
  indexed: true,
2216
2064
  },
2065
+ { name: 'inShares', internalType: 'bool', type: 'bool', indexed: false },
2217
2066
  {
2218
- name: 'operator',
2219
- internalType: 'address',
2220
- type: 'address',
2221
- indexed: true,
2067
+ name: 'amount',
2068
+ internalType: 'uint256',
2069
+ type: 'uint256',
2070
+ indexed: false,
2222
2071
  },
2223
- { name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
2224
2072
  ],
2225
- name: 'OperatorSet',
2073
+ name: 'ProtocolFee',
2226
2074
  },
2227
2075
  {
2228
2076
  type: 'event',
@@ -2234,10 +2082,27 @@ export const fPoolManagerAbi = [
2234
2082
  type: 'bytes32',
2235
2083
  indexed: true,
2236
2084
  },
2237
- { name: 'prev', internalType: 'address', type: 'address', indexed: true },
2238
- { name: 'next', internalType: 'address', type: 'address', indexed: true },
2085
+ { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
2086
+ {
2087
+ name: 'owner',
2088
+ internalType: 'address',
2089
+ type: 'address',
2090
+ indexed: true,
2091
+ },
2092
+ {
2093
+ name: 'shares',
2094
+ internalType: 'uint256',
2095
+ type: 'uint256',
2096
+ indexed: false,
2097
+ },
2098
+ {
2099
+ name: 'quoteOut',
2100
+ internalType: 'uint256',
2101
+ type: 'uint256',
2102
+ indexed: false,
2103
+ },
2239
2104
  ],
2240
- name: 'OperatorSet',
2105
+ name: 'Redeem',
2241
2106
  },
2242
2107
  {
2243
2108
  type: 'event',
@@ -2249,15 +2114,40 @@ export const fPoolManagerAbi = [
2249
2114
  type: 'bytes32',
2250
2115
  indexed: true,
2251
2116
  },
2252
- { name: 'inShares', internalType: 'bool', type: 'bool', indexed: false },
2117
+ { name: 'pot', internalType: 'uint256', type: 'uint256', indexed: false },
2253
2118
  {
2254
- name: 'amount',
2119
+ name: 'payee',
2120
+ internalType: 'address',
2121
+ type: 'address',
2122
+ indexed: false,
2123
+ },
2124
+ {
2125
+ name: 'toPayee',
2126
+ internalType: 'uint256',
2127
+ type: 'uint256',
2128
+ indexed: false,
2129
+ },
2130
+ { name: 'cut', internalType: 'uint256', type: 'uint256', indexed: false },
2131
+ {
2132
+ name: 'boughtIn',
2133
+ internalType: 'uint256',
2134
+ type: 'uint256',
2135
+ indexed: false,
2136
+ },
2137
+ {
2138
+ name: 'shares',
2139
+ internalType: 'uint256',
2140
+ type: 'uint256',
2141
+ indexed: false,
2142
+ },
2143
+ {
2144
+ name: 'burn',
2255
2145
  internalType: 'uint256',
2256
2146
  type: 'uint256',
2257
2147
  indexed: false,
2258
2148
  },
2259
2149
  ],
2260
- name: 'ProtocolFee',
2150
+ name: 'Regenerated',
2261
2151
  },
2262
2152
  {
2263
2153
  type: 'event',
@@ -2271,25 +2161,19 @@ export const fPoolManagerAbi = [
2271
2161
  },
2272
2162
  { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
2273
2163
  {
2274
- name: 'owner',
2275
- internalType: 'address',
2276
- type: 'address',
2277
- indexed: true,
2278
- },
2279
- {
2280
- name: 'shares',
2164
+ name: 'supply',
2281
2165
  internalType: 'uint256',
2282
2166
  type: 'uint256',
2283
2167
  indexed: false,
2284
2168
  },
2285
2169
  {
2286
- name: 'quoteOut',
2170
+ name: 'quote',
2287
2171
  internalType: 'uint256',
2288
2172
  type: 'uint256',
2289
2173
  indexed: false,
2290
2174
  },
2291
2175
  ],
2292
- name: 'Redeem',
2176
+ name: 'Retired',
2293
2177
  },
2294
2178
  {
2295
2179
  type: 'event',
@@ -2304,12 +2188,6 @@ export const fPoolManagerAbi = [
2304
2188
  { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
2305
2189
  { name: 'L0', internalType: 'uint256', type: 'uint256', indexed: false },
2306
2190
  { name: 'Q0', internalType: 'uint256', type: 'uint256', indexed: false },
2307
- {
2308
- name: 'theta0',
2309
- internalType: 'int256',
2310
- type: 'int256',
2311
- indexed: false,
2312
- },
2313
2191
  {
2314
2192
  name: 'r0',
2315
2193
  internalType: 'uint256[]',
@@ -2409,9 +2287,12 @@ export const fPoolManagerAbi = [
2409
2287
  { type: 'error', inputs: [], name: 'AlreadyUnlocked' },
2410
2288
  { type: 'error', inputs: [], name: 'BadLeg' },
2411
2289
  { type: 'error', inputs: [], name: 'BadParam' },
2290
+ { type: 'error', inputs: [], name: 'BadTerms' },
2412
2291
  { type: 'error', inputs: [], name: 'BadWeights' },
2413
2292
  { type: 'error', inputs: [], name: 'BalanceOverflow' },
2414
- { type: 'error', inputs: [], name: 'FloorLocked' },
2293
+ { type: 'error', inputs: [], name: 'BidNotEmpty' },
2294
+ { type: 'error', inputs: [], name: 'HarvestLimit' },
2295
+ { type: 'error', inputs: [], name: 'HookNotApproved' },
2415
2296
  { type: 'error', inputs: [], name: 'InsufficientBalance' },
2416
2297
  { type: 'error', inputs: [], name: 'InsufficientPermission' },
2417
2298
  { type: 'error', inputs: [], name: 'InsufficientQuote' },
@@ -2423,12 +2304,8 @@ export const fPoolManagerAbi = [
2423
2304
  name: 'MulticallFailed',
2424
2305
  },
2425
2306
  { type: 'error', inputs: [], name: 'NonstandardToken' },
2426
- { type: 'error', inputs: [], name: 'NotAllowed' },
2427
- { type: 'error', inputs: [], name: 'NotAuthority' },
2428
2307
  { type: 'error', inputs: [], name: 'NotAuthorized' },
2429
2308
  { type: 'error', inputs: [], name: 'NotCollector' },
2430
- { type: 'error', inputs: [], name: 'NotDissolvable' },
2431
- { type: 'error', inputs: [], name: 'NotOperator' },
2432
2309
  { type: 'error', inputs: [], name: 'NotPrivate' },
2433
2310
  { type: 'error', inputs: [], name: 'NotRetired' },
2434
2311
  { type: 'error', inputs: [], name: 'NotSeeded' },
@@ -2617,28 +2494,18 @@ export const logswapLensAbi = [
2617
2494
  components: [
2618
2495
  { name: 'quote', internalType: 'address', type: 'address' },
2619
2496
  { name: 'phi', internalType: 'uint96', type: 'uint96' },
2620
- { name: 'authority', internalType: 'address', type: 'address' },
2497
+ { name: 'hook', internalType: 'address', type: 'address' },
2621
2498
  { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
2622
2499
  { name: 'seeded', internalType: 'bool', type: 'bool' },
2623
2500
  { name: 'gen', internalType: 'uint16', type: 'uint16' },
2624
2501
  { name: 'n', internalType: 'uint8', type: 'uint8' },
2625
2502
  { name: 'restructureBlock', internalType: 'uint32', type: 'uint32' },
2626
- { name: 'gateMint', internalType: 'bool', type: 'bool' },
2627
- { name: 'gateSwap', internalType: 'bool', type: 'bool' },
2503
+ { name: 'asks', internalType: 'uint8', type: 'uint8' },
2628
2504
  { name: 'Q', internalType: 'uint128', type: 'uint128' },
2629
2505
  { name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
2630
2506
  { name: 'L', internalType: 'uint256', type: 'uint256' },
2631
2507
  { name: 'shares', internalType: 'uint256', type: 'uint256' },
2632
2508
  { name: 'theta0', internalType: 'int256', type: 'int256' },
2633
- { name: 'harvestedTheta', internalType: 'int256', type: 'int256' },
2634
- {
2635
- name: 'pendingAuthority',
2636
- internalType: 'address',
2637
- type: 'address',
2638
- },
2639
- { name: 'operator', internalType: 'address', type: 'address' },
2640
- { name: 'pendingOperator', internalType: 'address', type: 'address' },
2641
- { name: 'incomeTaken', internalType: 'uint256', type: 'uint256' },
2642
2509
  { name: 'name', internalType: 'bytes32', type: 'bytes32' },
2643
2510
  ],
2644
2511
  },
@@ -3105,8 +2972,10 @@ export const logswapLensAbi = [
3105
2972
  },
3106
2973
  { type: 'error', inputs: [], name: 'BelowFloor' },
3107
2974
  { type: 'error', inputs: [], name: 'DrainsBase' },
2975
+ { type: 'error', inputs: [], name: 'InvalidShares' },
3108
2976
  { type: 'error', inputs: [], name: 'UnexpectedQuoteSuccess' },
3109
2977
  { type: 'error', inputs: [], name: 'UnknownId' },
2978
+ { type: 'error', inputs: [], name: 'WrongPool' },
3110
2979
  ] as const
3111
2980
 
3112
2981
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -3723,6 +3592,7 @@ export const logswapRouterAbi = [
3723
3592
  },
3724
3593
  { name: 'fundWithBase', internalType: 'bool', type: 'bool' },
3725
3594
  { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
3595
+ { name: 'minSwapOut', internalType: 'uint256', type: 'uint256' },
3726
3596
  { name: 'targetFloor', internalType: 'int256', type: 'int256' },
3727
3597
  { name: 'cap', internalType: 'int256', type: 'int256' },
3728
3598
  { name: 'L', internalType: 'uint256', type: 'uint256' },
@@ -3785,3 +3655,1402 @@ export const logswapRouterAbi = [
3785
3655
  { type: 'error', inputs: [], name: 'UnsupportedOp' },
3786
3656
  { type: 'error', inputs: [], name: 'ZeroAmount' },
3787
3657
  ] as const
3658
+
3659
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3660
+ // PadHook
3661
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3662
+
3663
+ export const padHookAbi = [
3664
+ {
3665
+ type: 'constructor',
3666
+ inputs: [
3667
+ {
3668
+ name: '_manager',
3669
+ internalType: 'contract FPoolManager',
3670
+ type: 'address',
3671
+ },
3672
+ { name: '_thresholdBase', internalType: 'uint256', type: 'uint256' },
3673
+ ],
3674
+ stateMutability: 'nonpayable',
3675
+ },
3676
+ {
3677
+ type: 'function',
3678
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
3679
+ name: 'acceptAuthority',
3680
+ outputs: [],
3681
+ stateMutability: 'nonpayable',
3682
+ },
3683
+ {
3684
+ type: 'function',
3685
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3686
+ name: 'authority',
3687
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3688
+ stateMutability: 'view',
3689
+ },
3690
+ {
3691
+ type: 'function',
3692
+ inputs: [],
3693
+ name: 'burnPerRung',
3694
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3695
+ stateMutability: 'view',
3696
+ },
3697
+ {
3698
+ type: 'function',
3699
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3700
+ name: 'creator',
3701
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3702
+ stateMutability: 'view',
3703
+ },
3704
+ {
3705
+ type: 'function',
3706
+ inputs: [],
3707
+ name: 'creatorShare',
3708
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3709
+ stateMutability: 'view',
3710
+ },
3711
+ {
3712
+ type: 'function',
3713
+ inputs: [],
3714
+ name: 'harvestCut',
3715
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3716
+ stateMutability: 'view',
3717
+ },
3718
+ {
3719
+ type: 'function',
3720
+ inputs: [],
3721
+ name: 'manager',
3722
+ outputs: [
3723
+ { name: '', internalType: 'contract FPoolManager', type: 'address' },
3724
+ ],
3725
+ stateMutability: 'view',
3726
+ },
3727
+ {
3728
+ type: 'function',
3729
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
3730
+ name: 'maxHarvest',
3731
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3732
+ stateMutability: 'view',
3733
+ },
3734
+ {
3735
+ type: 'function',
3736
+ inputs: [
3737
+ {
3738
+ name: 'a',
3739
+ internalType: 'struct IFHook.Ask',
3740
+ type: 'tuple',
3741
+ components: [
3742
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3743
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
3744
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
3745
+ { name: 'who', internalType: 'address', type: 'address' },
3746
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
3747
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
3748
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
3749
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
3750
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
3751
+ ],
3752
+ },
3753
+ ],
3754
+ name: 'may',
3755
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
3756
+ stateMutability: 'view',
3757
+ },
3758
+ {
3759
+ type: 'function',
3760
+ inputs: [
3761
+ {
3762
+ name: 'a',
3763
+ internalType: 'struct IFHook.Ask',
3764
+ type: 'tuple',
3765
+ components: [
3766
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3767
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
3768
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
3769
+ { name: 'who', internalType: 'address', type: 'address' },
3770
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
3771
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
3772
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
3773
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
3774
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
3775
+ ],
3776
+ },
3777
+ ],
3778
+ name: 'onHarvest',
3779
+ outputs: [
3780
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
3781
+ { name: 'cut', internalType: 'uint256', type: 'uint256' },
3782
+ ],
3783
+ stateMutability: 'view',
3784
+ },
3785
+ {
3786
+ type: 'function',
3787
+ inputs: [
3788
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3789
+ {
3790
+ name: 'key',
3791
+ internalType: 'struct FPoolKey',
3792
+ type: 'tuple',
3793
+ components: [
3794
+ { name: 'quote', internalType: 'address', type: 'address' },
3795
+ { name: 'bases', internalType: 'address[]', type: 'address[]' },
3796
+ { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
3797
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3798
+ { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
3799
+ { name: 'hook', internalType: 'address', type: 'address' },
3800
+ { name: 'creator', internalType: 'address', type: 'address' },
3801
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
3802
+ ],
3803
+ },
3804
+ ],
3805
+ name: 'onInitialize',
3806
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
3807
+ stateMutability: 'nonpayable',
3808
+ },
3809
+ {
3810
+ type: 'function',
3811
+ inputs: [
3812
+ {
3813
+ name: 'a',
3814
+ internalType: 'struct IFHook.Ask',
3815
+ type: 'tuple',
3816
+ components: [
3817
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3818
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
3819
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
3820
+ { name: 'who', internalType: 'address', type: 'address' },
3821
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
3822
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
3823
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
3824
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
3825
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
3826
+ ],
3827
+ },
3828
+ ],
3829
+ name: 'onRegenerate',
3830
+ outputs: [
3831
+ {
3832
+ name: 't',
3833
+ internalType: 'struct IFHook.Terms',
3834
+ type: 'tuple',
3835
+ components: [
3836
+ { name: 'payee', internalType: 'address', type: 'address' },
3837
+ { name: 'toPayee', internalType: 'uint256', type: 'uint256' },
3838
+ { name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
3839
+ { name: 'burn', internalType: 'uint256', type: 'uint256' },
3840
+ ],
3841
+ },
3842
+ ],
3843
+ stateMutability: 'nonpayable',
3844
+ },
3845
+ {
3846
+ type: 'function',
3847
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3848
+ name: 'pendingAuthority',
3849
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3850
+ stateMutability: 'view',
3851
+ },
3852
+ {
3853
+ type: 'function',
3854
+ inputs: [
3855
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3856
+ { name: 'next', internalType: 'address', type: 'address' },
3857
+ ],
3858
+ name: 'proposeAuthority',
3859
+ outputs: [],
3860
+ stateMutability: 'nonpayable',
3861
+ },
3862
+ {
3863
+ type: 'function',
3864
+ inputs: [],
3865
+ name: 'protocolShare',
3866
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3867
+ stateMutability: 'view',
3868
+ },
3869
+ {
3870
+ type: 'function',
3871
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3872
+ name: 'rung',
3873
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3874
+ stateMutability: 'view',
3875
+ },
3876
+ {
3877
+ type: 'function',
3878
+ inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
3879
+ name: 'setHarvestCut',
3880
+ outputs: [],
3881
+ stateMutability: 'nonpayable',
3882
+ },
3883
+ {
3884
+ type: 'function',
3885
+ inputs: [
3886
+ { name: '_thresholdBase', internalType: 'uint256', type: 'uint256' },
3887
+ { name: '_thresholdGrowth', internalType: 'uint256', type: 'uint256' },
3888
+ { name: '_creatorShare', internalType: 'uint256', type: 'uint256' },
3889
+ { name: '_protocolShare', internalType: 'uint256', type: 'uint256' },
3890
+ { name: '_burnPerRung', internalType: 'uint256', type: 'uint256' },
3891
+ ],
3892
+ name: 'setSchedule',
3893
+ outputs: [],
3894
+ stateMutability: 'nonpayable',
3895
+ },
3896
+ {
3897
+ type: 'function',
3898
+ inputs: [{ name: 'r', internalType: 'uint256', type: 'uint256' }],
3899
+ name: 'threshold',
3900
+ outputs: [{ name: 't', internalType: 'uint256', type: 'uint256' }],
3901
+ stateMutability: 'view',
3902
+ },
3903
+ {
3904
+ type: 'function',
3905
+ inputs: [],
3906
+ name: 'thresholdBase',
3907
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3908
+ stateMutability: 'view',
3909
+ },
3910
+ {
3911
+ type: 'function',
3912
+ inputs: [],
3913
+ name: 'thresholdGrowth',
3914
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3915
+ stateMutability: 'view',
3916
+ },
3917
+ {
3918
+ type: 'event',
3919
+ anonymous: false,
3920
+ inputs: [
3921
+ {
3922
+ name: 'poolId',
3923
+ internalType: 'bytes32',
3924
+ type: 'bytes32',
3925
+ indexed: true,
3926
+ },
3927
+ {
3928
+ name: 'current',
3929
+ internalType: 'address',
3930
+ type: 'address',
3931
+ indexed: true,
3932
+ },
3933
+ {
3934
+ name: 'proposed',
3935
+ internalType: 'address',
3936
+ type: 'address',
3937
+ indexed: true,
3938
+ },
3939
+ ],
3940
+ name: 'AuthorityProposed',
3941
+ },
3942
+ {
3943
+ type: 'event',
3944
+ anonymous: false,
3945
+ inputs: [
3946
+ {
3947
+ name: 'poolId',
3948
+ internalType: 'bytes32',
3949
+ type: 'bytes32',
3950
+ indexed: true,
3951
+ },
3952
+ { name: 'prev', internalType: 'address', type: 'address', indexed: true },
3953
+ { name: 'next', internalType: 'address', type: 'address', indexed: true },
3954
+ ],
3955
+ name: 'AuthoritySet',
3956
+ },
3957
+ {
3958
+ type: 'event',
3959
+ anonymous: false,
3960
+ inputs: [
3961
+ {
3962
+ name: 'poolId',
3963
+ internalType: 'bytes32',
3964
+ type: 'bytes32',
3965
+ indexed: true,
3966
+ },
3967
+ { name: 'rung', internalType: 'uint256', type: 'uint256', indexed: true },
3968
+ { name: 'pot', internalType: 'uint256', type: 'uint256', indexed: false },
3969
+ ],
3970
+ name: 'Graduated',
3971
+ },
3972
+ {
3973
+ type: 'event',
3974
+ anonymous: false,
3975
+ inputs: [
3976
+ {
3977
+ name: 'harvestCut',
3978
+ internalType: 'uint256',
3979
+ type: 'uint256',
3980
+ indexed: false,
3981
+ },
3982
+ ],
3983
+ name: 'HarvestCutSet',
3984
+ },
3985
+ {
3986
+ type: 'event',
3987
+ anonymous: false,
3988
+ inputs: [
3989
+ {
3990
+ name: 'thresholdBase',
3991
+ internalType: 'uint256',
3992
+ type: 'uint256',
3993
+ indexed: false,
3994
+ },
3995
+ {
3996
+ name: 'thresholdGrowth',
3997
+ internalType: 'uint256',
3998
+ type: 'uint256',
3999
+ indexed: false,
4000
+ },
4001
+ {
4002
+ name: 'creatorShare',
4003
+ internalType: 'uint256',
4004
+ type: 'uint256',
4005
+ indexed: false,
4006
+ },
4007
+ {
4008
+ name: 'protocolShare',
4009
+ internalType: 'uint256',
4010
+ type: 'uint256',
4011
+ indexed: false,
4012
+ },
4013
+ {
4014
+ name: 'burnPerRung',
4015
+ internalType: 'uint256',
4016
+ type: 'uint256',
4017
+ indexed: false,
4018
+ },
4019
+ ],
4020
+ name: 'ScheduleSet',
4021
+ },
4022
+ { type: 'error', inputs: [], name: 'BadRate' },
4023
+ { type: 'error', inputs: [], name: 'NotAuthority' },
4024
+ { type: 'error', inputs: [], name: 'NotCollector' },
4025
+ { type: 'error', inputs: [], name: 'NotGraduated' },
4026
+ { type: 'error', inputs: [], name: 'NotManager' },
4027
+ { type: 'error', inputs: [], name: 'Refused' },
4028
+ ] as const
4029
+
4030
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4031
+ // PolHook
4032
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4033
+
4034
+ export const polHookAbi = [
4035
+ {
4036
+ type: 'constructor',
4037
+ inputs: [
4038
+ {
4039
+ name: '_manager',
4040
+ internalType: 'contract FPoolManager',
4041
+ type: 'address',
4042
+ },
4043
+ ],
4044
+ stateMutability: 'nonpayable',
4045
+ },
4046
+ {
4047
+ type: 'function',
4048
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
4049
+ name: 'acceptAuthority',
4050
+ outputs: [],
4051
+ stateMutability: 'nonpayable',
4052
+ },
4053
+ {
4054
+ type: 'function',
4055
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4056
+ name: 'authority',
4057
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4058
+ stateMutability: 'view',
4059
+ },
4060
+ {
4061
+ type: 'function',
4062
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4063
+ name: 'creator',
4064
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4065
+ stateMutability: 'view',
4066
+ },
4067
+ {
4068
+ type: 'function',
4069
+ inputs: [],
4070
+ name: 'harvestCut',
4071
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4072
+ stateMutability: 'view',
4073
+ },
4074
+ {
4075
+ type: 'function',
4076
+ inputs: [],
4077
+ name: 'keepQuote',
4078
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4079
+ stateMutability: 'view',
4080
+ },
4081
+ {
4082
+ type: 'function',
4083
+ inputs: [],
4084
+ name: 'manager',
4085
+ outputs: [
4086
+ { name: '', internalType: 'contract FPoolManager', type: 'address' },
4087
+ ],
4088
+ stateMutability: 'view',
4089
+ },
4090
+ {
4091
+ type: 'function',
4092
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
4093
+ name: 'maxHarvest',
4094
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4095
+ stateMutability: 'view',
4096
+ },
4097
+ {
4098
+ type: 'function',
4099
+ inputs: [
4100
+ {
4101
+ name: 'a',
4102
+ internalType: 'struct IFHook.Ask',
4103
+ type: 'tuple',
4104
+ components: [
4105
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4106
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
4107
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
4108
+ { name: 'who', internalType: 'address', type: 'address' },
4109
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4110
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
4111
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
4112
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
4113
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
4114
+ ],
4115
+ },
4116
+ ],
4117
+ name: 'may',
4118
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
4119
+ stateMutability: 'view',
4120
+ },
4121
+ {
4122
+ type: 'function',
4123
+ inputs: [],
4124
+ name: 'minQuoteAtSeed',
4125
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4126
+ stateMutability: 'view',
4127
+ },
4128
+ {
4129
+ type: 'function',
4130
+ inputs: [
4131
+ {
4132
+ name: 'a',
4133
+ internalType: 'struct IFHook.Ask',
4134
+ type: 'tuple',
4135
+ components: [
4136
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4137
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
4138
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
4139
+ { name: 'who', internalType: 'address', type: 'address' },
4140
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4141
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
4142
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
4143
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
4144
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
4145
+ ],
4146
+ },
4147
+ ],
4148
+ name: 'onHarvest',
4149
+ outputs: [
4150
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4151
+ { name: 'cut', internalType: 'uint256', type: 'uint256' },
4152
+ ],
4153
+ stateMutability: 'view',
4154
+ },
4155
+ {
4156
+ type: 'function',
4157
+ inputs: [
4158
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4159
+ {
4160
+ name: 'key',
4161
+ internalType: 'struct FPoolKey',
4162
+ type: 'tuple',
4163
+ components: [
4164
+ { name: 'quote', internalType: 'address', type: 'address' },
4165
+ { name: 'bases', internalType: 'address[]', type: 'address[]' },
4166
+ { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
4167
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
4168
+ { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
4169
+ { name: 'hook', internalType: 'address', type: 'address' },
4170
+ { name: 'creator', internalType: 'address', type: 'address' },
4171
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
4172
+ ],
4173
+ },
4174
+ ],
4175
+ name: 'onInitialize',
4176
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4177
+ stateMutability: 'nonpayable',
4178
+ },
4179
+ {
4180
+ type: 'function',
4181
+ inputs: [
4182
+ {
4183
+ name: 'a',
4184
+ internalType: 'struct IFHook.Ask',
4185
+ type: 'tuple',
4186
+ components: [
4187
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4188
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
4189
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
4190
+ { name: 'who', internalType: 'address', type: 'address' },
4191
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4192
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
4193
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
4194
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
4195
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
4196
+ ],
4197
+ },
4198
+ ],
4199
+ name: 'onRegenerate',
4200
+ outputs: [
4201
+ {
4202
+ name: 't',
4203
+ internalType: 'struct IFHook.Terms',
4204
+ type: 'tuple',
4205
+ components: [
4206
+ { name: 'payee', internalType: 'address', type: 'address' },
4207
+ { name: 'toPayee', internalType: 'uint256', type: 'uint256' },
4208
+ { name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
4209
+ { name: 'burn', internalType: 'uint256', type: 'uint256' },
4210
+ ],
4211
+ },
4212
+ ],
4213
+ stateMutability: 'nonpayable',
4214
+ },
4215
+ {
4216
+ type: 'function',
4217
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4218
+ name: 'pendingAuthority',
4219
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4220
+ stateMutability: 'view',
4221
+ },
4222
+ {
4223
+ type: 'function',
4224
+ inputs: [
4225
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4226
+ { name: 'next', internalType: 'address', type: 'address' },
4227
+ ],
4228
+ name: 'proposeAuthority',
4229
+ outputs: [],
4230
+ stateMutability: 'nonpayable',
4231
+ },
4232
+ {
4233
+ type: 'function',
4234
+ inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
4235
+ name: 'setHarvestCut',
4236
+ outputs: [],
4237
+ stateMutability: 'nonpayable',
4238
+ },
4239
+ {
4240
+ type: 'function',
4241
+ inputs: [
4242
+ { name: '_keepQuote', internalType: 'uint256', type: 'uint256' },
4243
+ { name: '_minQuoteAtSeed', internalType: 'uint256', type: 'uint256' },
4244
+ ],
4245
+ name: 'setPolicy',
4246
+ outputs: [],
4247
+ stateMutability: 'nonpayable',
4248
+ },
4249
+ {
4250
+ type: 'event',
4251
+ anonymous: false,
4252
+ inputs: [
4253
+ {
4254
+ name: 'poolId',
4255
+ internalType: 'bytes32',
4256
+ type: 'bytes32',
4257
+ indexed: true,
4258
+ },
4259
+ {
4260
+ name: 'current',
4261
+ internalType: 'address',
4262
+ type: 'address',
4263
+ indexed: true,
4264
+ },
4265
+ {
4266
+ name: 'proposed',
4267
+ internalType: 'address',
4268
+ type: 'address',
4269
+ indexed: true,
4270
+ },
4271
+ ],
4272
+ name: 'AuthorityProposed',
4273
+ },
4274
+ {
4275
+ type: 'event',
4276
+ anonymous: false,
4277
+ inputs: [
4278
+ {
4279
+ name: 'poolId',
4280
+ internalType: 'bytes32',
4281
+ type: 'bytes32',
4282
+ indexed: true,
4283
+ },
4284
+ { name: 'prev', internalType: 'address', type: 'address', indexed: true },
4285
+ { name: 'next', internalType: 'address', type: 'address', indexed: true },
4286
+ ],
4287
+ name: 'AuthoritySet',
4288
+ },
4289
+ {
4290
+ type: 'event',
4291
+ anonymous: false,
4292
+ inputs: [
4293
+ {
4294
+ name: 'harvestCut',
4295
+ internalType: 'uint256',
4296
+ type: 'uint256',
4297
+ indexed: false,
4298
+ },
4299
+ ],
4300
+ name: 'HarvestCutSet',
4301
+ },
4302
+ {
4303
+ type: 'event',
4304
+ anonymous: false,
4305
+ inputs: [
4306
+ {
4307
+ name: 'keepQuote',
4308
+ internalType: 'uint256',
4309
+ type: 'uint256',
4310
+ indexed: false,
4311
+ },
4312
+ {
4313
+ name: 'minQuoteAtSeed',
4314
+ internalType: 'uint256',
4315
+ type: 'uint256',
4316
+ indexed: false,
4317
+ },
4318
+ ],
4319
+ name: 'PolicySet',
4320
+ },
4321
+ { type: 'error', inputs: [], name: 'BadRate' },
4322
+ { type: 'error', inputs: [], name: 'NotAuthority' },
4323
+ { type: 'error', inputs: [], name: 'NotCollector' },
4324
+ { type: 'error', inputs: [], name: 'NotManager' },
4325
+ { type: 'error', inputs: [], name: 'QuoteTooThin' },
4326
+ { type: 'error', inputs: [], name: 'Refused' },
4327
+ ] as const
4328
+
4329
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4330
+ // PrivateHook
4331
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4332
+
4333
+ export const privateHookAbi = [
4334
+ {
4335
+ type: 'constructor',
4336
+ inputs: [
4337
+ {
4338
+ name: '_manager',
4339
+ internalType: 'contract FPoolManager',
4340
+ type: 'address',
4341
+ },
4342
+ ],
4343
+ stateMutability: 'nonpayable',
4344
+ },
4345
+ {
4346
+ type: 'function',
4347
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
4348
+ name: 'acceptAuthority',
4349
+ outputs: [],
4350
+ stateMutability: 'nonpayable',
4351
+ },
4352
+ {
4353
+ type: 'function',
4354
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
4355
+ name: 'acceptOperator',
4356
+ outputs: [],
4357
+ stateMutability: 'nonpayable',
4358
+ },
4359
+ {
4360
+ type: 'function',
4361
+ inputs: [
4362
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4363
+ { name: 'who', internalType: 'address', type: 'address' },
4364
+ ],
4365
+ name: 'appointOperator',
4366
+ outputs: [],
4367
+ stateMutability: 'nonpayable',
4368
+ },
4369
+ {
4370
+ type: 'function',
4371
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4372
+ name: 'authority',
4373
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4374
+ stateMutability: 'view',
4375
+ },
4376
+ {
4377
+ type: 'function',
4378
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4379
+ name: 'creator',
4380
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4381
+ stateMutability: 'view',
4382
+ },
4383
+ {
4384
+ type: 'function',
4385
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4386
+ name: 'gateMint',
4387
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4388
+ stateMutability: 'view',
4389
+ },
4390
+ {
4391
+ type: 'function',
4392
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4393
+ name: 'gateSwap',
4394
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4395
+ stateMutability: 'view',
4396
+ },
4397
+ {
4398
+ type: 'function',
4399
+ inputs: [],
4400
+ name: 'harvestCut',
4401
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4402
+ stateMutability: 'view',
4403
+ },
4404
+ {
4405
+ type: 'function',
4406
+ inputs: [
4407
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4408
+ { name: 'who', internalType: 'address', type: 'address' },
4409
+ ],
4410
+ name: 'isAllowed',
4411
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4412
+ stateMutability: 'view',
4413
+ },
4414
+ {
4415
+ type: 'function',
4416
+ inputs: [],
4417
+ name: 'manager',
4418
+ outputs: [
4419
+ { name: '', internalType: 'contract FPoolManager', type: 'address' },
4420
+ ],
4421
+ stateMutability: 'view',
4422
+ },
4423
+ {
4424
+ type: 'function',
4425
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
4426
+ name: 'maxHarvest',
4427
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4428
+ stateMutability: 'view',
4429
+ },
4430
+ {
4431
+ type: 'function',
4432
+ inputs: [
4433
+ {
4434
+ name: 'a',
4435
+ internalType: 'struct IFHook.Ask',
4436
+ type: 'tuple',
4437
+ components: [
4438
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4439
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
4440
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
4441
+ { name: 'who', internalType: 'address', type: 'address' },
4442
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4443
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
4444
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
4445
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
4446
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
4447
+ ],
4448
+ },
4449
+ ],
4450
+ name: 'may',
4451
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
4452
+ stateMutability: 'view',
4453
+ },
4454
+ {
4455
+ type: 'function',
4456
+ inputs: [
4457
+ {
4458
+ name: 'a',
4459
+ internalType: 'struct IFHook.Ask',
4460
+ type: 'tuple',
4461
+ components: [
4462
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4463
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
4464
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
4465
+ { name: 'who', internalType: 'address', type: 'address' },
4466
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4467
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
4468
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
4469
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
4470
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
4471
+ ],
4472
+ },
4473
+ ],
4474
+ name: 'onHarvest',
4475
+ outputs: [
4476
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4477
+ { name: 'cut', internalType: 'uint256', type: 'uint256' },
4478
+ ],
4479
+ stateMutability: 'view',
4480
+ },
4481
+ {
4482
+ type: 'function',
4483
+ inputs: [
4484
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4485
+ {
4486
+ name: 'key',
4487
+ internalType: 'struct FPoolKey',
4488
+ type: 'tuple',
4489
+ components: [
4490
+ { name: 'quote', internalType: 'address', type: 'address' },
4491
+ { name: 'bases', internalType: 'address[]', type: 'address[]' },
4492
+ { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
4493
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
4494
+ { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
4495
+ { name: 'hook', internalType: 'address', type: 'address' },
4496
+ { name: 'creator', internalType: 'address', type: 'address' },
4497
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
4498
+ ],
4499
+ },
4500
+ ],
4501
+ name: 'onInitialize',
4502
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4503
+ stateMutability: 'nonpayable',
4504
+ },
4505
+ {
4506
+ type: 'function',
4507
+ inputs: [
4508
+ {
4509
+ name: 'a',
4510
+ internalType: 'struct IFHook.Ask',
4511
+ type: 'tuple',
4512
+ components: [
4513
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4514
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
4515
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
4516
+ { name: 'who', internalType: 'address', type: 'address' },
4517
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4518
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
4519
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
4520
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
4521
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
4522
+ ],
4523
+ },
4524
+ ],
4525
+ name: 'onRegenerate',
4526
+ outputs: [
4527
+ {
4528
+ name: 't',
4529
+ internalType: 'struct IFHook.Terms',
4530
+ type: 'tuple',
4531
+ components: [
4532
+ { name: 'payee', internalType: 'address', type: 'address' },
4533
+ { name: 'toPayee', internalType: 'uint256', type: 'uint256' },
4534
+ { name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
4535
+ { name: 'burn', internalType: 'uint256', type: 'uint256' },
4536
+ ],
4537
+ },
4538
+ ],
4539
+ stateMutability: 'nonpayable',
4540
+ },
4541
+ {
4542
+ type: 'function',
4543
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4544
+ name: 'operator',
4545
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4546
+ stateMutability: 'view',
4547
+ },
4548
+ {
4549
+ type: 'function',
4550
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
4551
+ name: 'operatorOf',
4552
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4553
+ stateMutability: 'view',
4554
+ },
4555
+ {
4556
+ type: 'function',
4557
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4558
+ name: 'pendingAuthority',
4559
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4560
+ stateMutability: 'view',
4561
+ },
4562
+ {
4563
+ type: 'function',
4564
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4565
+ name: 'pendingOperator',
4566
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4567
+ stateMutability: 'view',
4568
+ },
4569
+ {
4570
+ type: 'function',
4571
+ inputs: [
4572
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4573
+ { name: 'next', internalType: 'address', type: 'address' },
4574
+ ],
4575
+ name: 'proposeAuthority',
4576
+ outputs: [],
4577
+ stateMutability: 'nonpayable',
4578
+ },
4579
+ {
4580
+ type: 'function',
4581
+ inputs: [
4582
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4583
+ { name: 'who', internalType: 'address[]', type: 'address[]' },
4584
+ { name: 'yes', internalType: 'bool', type: 'bool' },
4585
+ ],
4586
+ name: 'setAllowed',
4587
+ outputs: [],
4588
+ stateMutability: 'nonpayable',
4589
+ },
4590
+ {
4591
+ type: 'function',
4592
+ inputs: [
4593
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4594
+ { name: '_gateMint', internalType: 'bool', type: 'bool' },
4595
+ { name: '_gateSwap', internalType: 'bool', type: 'bool' },
4596
+ ],
4597
+ name: 'setGates',
4598
+ outputs: [],
4599
+ stateMutability: 'nonpayable',
4600
+ },
4601
+ {
4602
+ type: 'function',
4603
+ inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
4604
+ name: 'setHarvestCut',
4605
+ outputs: [],
4606
+ stateMutability: 'nonpayable',
4607
+ },
4608
+ {
4609
+ type: 'event',
4610
+ anonymous: false,
4611
+ inputs: [
4612
+ {
4613
+ name: 'poolId',
4614
+ internalType: 'bytes32',
4615
+ type: 'bytes32',
4616
+ indexed: true,
4617
+ },
4618
+ {
4619
+ name: 'authority',
4620
+ internalType: 'address',
4621
+ type: 'address',
4622
+ indexed: true,
4623
+ },
4624
+ { name: 'who', internalType: 'address', type: 'address', indexed: true },
4625
+ { name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
4626
+ ],
4627
+ name: 'Allowed',
4628
+ },
4629
+ {
4630
+ type: 'event',
4631
+ anonymous: false,
4632
+ inputs: [
4633
+ {
4634
+ name: 'poolId',
4635
+ internalType: 'bytes32',
4636
+ type: 'bytes32',
4637
+ indexed: true,
4638
+ },
4639
+ {
4640
+ name: 'current',
4641
+ internalType: 'address',
4642
+ type: 'address',
4643
+ indexed: true,
4644
+ },
4645
+ {
4646
+ name: 'proposed',
4647
+ internalType: 'address',
4648
+ type: 'address',
4649
+ indexed: true,
4650
+ },
4651
+ ],
4652
+ name: 'AuthorityProposed',
4653
+ },
4654
+ {
4655
+ type: 'event',
4656
+ anonymous: false,
4657
+ inputs: [
4658
+ {
4659
+ name: 'poolId',
4660
+ internalType: 'bytes32',
4661
+ type: 'bytes32',
4662
+ indexed: true,
4663
+ },
4664
+ { name: 'prev', internalType: 'address', type: 'address', indexed: true },
4665
+ { name: 'next', internalType: 'address', type: 'address', indexed: true },
4666
+ ],
4667
+ name: 'AuthoritySet',
4668
+ },
4669
+ {
4670
+ type: 'event',
4671
+ anonymous: false,
4672
+ inputs: [
4673
+ {
4674
+ name: 'poolId',
4675
+ internalType: 'bytes32',
4676
+ type: 'bytes32',
4677
+ indexed: true,
4678
+ },
4679
+ { name: 'gateMint', internalType: 'bool', type: 'bool', indexed: false },
4680
+ { name: 'gateSwap', internalType: 'bool', type: 'bool', indexed: false },
4681
+ ],
4682
+ name: 'GatesSet',
4683
+ },
4684
+ {
4685
+ type: 'event',
4686
+ anonymous: false,
4687
+ inputs: [
4688
+ {
4689
+ name: 'harvestCut',
4690
+ internalType: 'uint256',
4691
+ type: 'uint256',
4692
+ indexed: false,
4693
+ },
4694
+ ],
4695
+ name: 'HarvestCutSet',
4696
+ },
4697
+ {
4698
+ type: 'event',
4699
+ anonymous: false,
4700
+ inputs: [
4701
+ {
4702
+ name: 'poolId',
4703
+ internalType: 'bytes32',
4704
+ type: 'bytes32',
4705
+ indexed: true,
4706
+ },
4707
+ {
4708
+ name: 'current',
4709
+ internalType: 'address',
4710
+ type: 'address',
4711
+ indexed: true,
4712
+ },
4713
+ {
4714
+ name: 'proposed',
4715
+ internalType: 'address',
4716
+ type: 'address',
4717
+ indexed: true,
4718
+ },
4719
+ ],
4720
+ name: 'OperatorProposed',
4721
+ },
4722
+ {
4723
+ type: 'event',
4724
+ anonymous: false,
4725
+ inputs: [
4726
+ {
4727
+ name: 'poolId',
4728
+ internalType: 'bytes32',
4729
+ type: 'bytes32',
4730
+ indexed: true,
4731
+ },
4732
+ { name: 'prev', internalType: 'address', type: 'address', indexed: true },
4733
+ { name: 'next', internalType: 'address', type: 'address', indexed: true },
4734
+ ],
4735
+ name: 'OperatorSet',
4736
+ },
4737
+ { type: 'error', inputs: [], name: 'BadRate' },
4738
+ { type: 'error', inputs: [], name: 'NotAuthority' },
4739
+ { type: 'error', inputs: [], name: 'NotCollector' },
4740
+ { type: 'error', inputs: [], name: 'NotManager' },
4741
+ { type: 'error', inputs: [], name: 'NotOperator' },
4742
+ { type: 'error', inputs: [], name: 'Refused' },
4743
+ ] as const
4744
+
4745
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4746
+ // PublicHook
4747
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4748
+
4749
+ export const publicHookAbi = [
4750
+ {
4751
+ type: 'constructor',
4752
+ inputs: [
4753
+ {
4754
+ name: '_manager',
4755
+ internalType: 'contract FPoolManager',
4756
+ type: 'address',
4757
+ },
4758
+ ],
4759
+ stateMutability: 'nonpayable',
4760
+ },
4761
+ {
4762
+ type: 'function',
4763
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
4764
+ name: 'acceptAuthority',
4765
+ outputs: [],
4766
+ stateMutability: 'nonpayable',
4767
+ },
4768
+ {
4769
+ type: 'function',
4770
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4771
+ name: 'authority',
4772
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4773
+ stateMutability: 'view',
4774
+ },
4775
+ {
4776
+ type: 'function',
4777
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4778
+ name: 'creator',
4779
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4780
+ stateMutability: 'view',
4781
+ },
4782
+ {
4783
+ type: 'function',
4784
+ inputs: [],
4785
+ name: 'curated',
4786
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4787
+ stateMutability: 'view',
4788
+ },
4789
+ {
4790
+ type: 'function',
4791
+ inputs: [],
4792
+ name: 'harvestCut',
4793
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4794
+ stateMutability: 'view',
4795
+ },
4796
+ {
4797
+ type: 'function',
4798
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
4799
+ name: 'listed',
4800
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4801
+ stateMutability: 'view',
4802
+ },
4803
+ {
4804
+ type: 'function',
4805
+ inputs: [],
4806
+ name: 'manager',
4807
+ outputs: [
4808
+ { name: '', internalType: 'contract FPoolManager', type: 'address' },
4809
+ ],
4810
+ stateMutability: 'view',
4811
+ },
4812
+ {
4813
+ type: 'function',
4814
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
4815
+ name: 'maxHarvest',
4816
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4817
+ stateMutability: 'view',
4818
+ },
4819
+ {
4820
+ type: 'function',
4821
+ inputs: [
4822
+ {
4823
+ name: 'a',
4824
+ internalType: 'struct IFHook.Ask',
4825
+ type: 'tuple',
4826
+ components: [
4827
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4828
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
4829
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
4830
+ { name: 'who', internalType: 'address', type: 'address' },
4831
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4832
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
4833
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
4834
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
4835
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
4836
+ ],
4837
+ },
4838
+ ],
4839
+ name: 'may',
4840
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
4841
+ stateMutability: 'view',
4842
+ },
4843
+ {
4844
+ type: 'function',
4845
+ inputs: [
4846
+ {
4847
+ name: 'a',
4848
+ internalType: 'struct IFHook.Ask',
4849
+ type: 'tuple',
4850
+ components: [
4851
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4852
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
4853
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
4854
+ { name: 'who', internalType: 'address', type: 'address' },
4855
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4856
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
4857
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
4858
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
4859
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
4860
+ ],
4861
+ },
4862
+ ],
4863
+ name: 'onHarvest',
4864
+ outputs: [
4865
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4866
+ { name: 'cut', internalType: 'uint256', type: 'uint256' },
4867
+ ],
4868
+ stateMutability: 'view',
4869
+ },
4870
+ {
4871
+ type: 'function',
4872
+ inputs: [
4873
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4874
+ {
4875
+ name: 'key',
4876
+ internalType: 'struct FPoolKey',
4877
+ type: 'tuple',
4878
+ components: [
4879
+ { name: 'quote', internalType: 'address', type: 'address' },
4880
+ { name: 'bases', internalType: 'address[]', type: 'address[]' },
4881
+ { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
4882
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
4883
+ { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
4884
+ { name: 'hook', internalType: 'address', type: 'address' },
4885
+ { name: 'creator', internalType: 'address', type: 'address' },
4886
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
4887
+ ],
4888
+ },
4889
+ ],
4890
+ name: 'onInitialize',
4891
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4892
+ stateMutability: 'nonpayable',
4893
+ },
4894
+ {
4895
+ type: 'function',
4896
+ inputs: [
4897
+ {
4898
+ name: 'a',
4899
+ internalType: 'struct IFHook.Ask',
4900
+ type: 'tuple',
4901
+ components: [
4902
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4903
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
4904
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
4905
+ { name: 'who', internalType: 'address', type: 'address' },
4906
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4907
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
4908
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
4909
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
4910
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
4911
+ ],
4912
+ },
4913
+ ],
4914
+ name: 'onRegenerate',
4915
+ outputs: [
4916
+ {
4917
+ name: 't',
4918
+ internalType: 'struct IFHook.Terms',
4919
+ type: 'tuple',
4920
+ components: [
4921
+ { name: 'payee', internalType: 'address', type: 'address' },
4922
+ { name: 'toPayee', internalType: 'uint256', type: 'uint256' },
4923
+ { name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
4924
+ { name: 'burn', internalType: 'uint256', type: 'uint256' },
4925
+ ],
4926
+ },
4927
+ ],
4928
+ stateMutability: 'nonpayable',
4929
+ },
4930
+ {
4931
+ type: 'function',
4932
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4933
+ name: 'pendingAuthority',
4934
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4935
+ stateMutability: 'view',
4936
+ },
4937
+ {
4938
+ type: 'function',
4939
+ inputs: [
4940
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4941
+ { name: 'next', internalType: 'address', type: 'address' },
4942
+ ],
4943
+ name: 'proposeAuthority',
4944
+ outputs: [],
4945
+ stateMutability: 'nonpayable',
4946
+ },
4947
+ {
4948
+ type: 'function',
4949
+ inputs: [{ name: '_curated', internalType: 'bool', type: 'bool' }],
4950
+ name: 'setCurated',
4951
+ outputs: [],
4952
+ stateMutability: 'nonpayable',
4953
+ },
4954
+ {
4955
+ type: 'function',
4956
+ inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
4957
+ name: 'setHarvestCut',
4958
+ outputs: [],
4959
+ stateMutability: 'nonpayable',
4960
+ },
4961
+ {
4962
+ type: 'function',
4963
+ inputs: [
4964
+ { name: 'token', internalType: 'address', type: 'address' },
4965
+ { name: '_listed', internalType: 'bool', type: 'bool' },
4966
+ ],
4967
+ name: 'setListed',
4968
+ outputs: [],
4969
+ stateMutability: 'nonpayable',
4970
+ },
4971
+ {
4972
+ type: 'event',
4973
+ anonymous: false,
4974
+ inputs: [
4975
+ {
4976
+ name: 'poolId',
4977
+ internalType: 'bytes32',
4978
+ type: 'bytes32',
4979
+ indexed: true,
4980
+ },
4981
+ {
4982
+ name: 'current',
4983
+ internalType: 'address',
4984
+ type: 'address',
4985
+ indexed: true,
4986
+ },
4987
+ {
4988
+ name: 'proposed',
4989
+ internalType: 'address',
4990
+ type: 'address',
4991
+ indexed: true,
4992
+ },
4993
+ ],
4994
+ name: 'AuthorityProposed',
4995
+ },
4996
+ {
4997
+ type: 'event',
4998
+ anonymous: false,
4999
+ inputs: [
5000
+ {
5001
+ name: 'poolId',
5002
+ internalType: 'bytes32',
5003
+ type: 'bytes32',
5004
+ indexed: true,
5005
+ },
5006
+ { name: 'prev', internalType: 'address', type: 'address', indexed: true },
5007
+ { name: 'next', internalType: 'address', type: 'address', indexed: true },
5008
+ ],
5009
+ name: 'AuthoritySet',
5010
+ },
5011
+ {
5012
+ type: 'event',
5013
+ anonymous: false,
5014
+ inputs: [
5015
+ { name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
5016
+ ],
5017
+ name: 'CuratedSet',
5018
+ },
5019
+ {
5020
+ type: 'event',
5021
+ anonymous: false,
5022
+ inputs: [
5023
+ {
5024
+ name: 'harvestCut',
5025
+ internalType: 'uint256',
5026
+ type: 'uint256',
5027
+ indexed: false,
5028
+ },
5029
+ ],
5030
+ name: 'HarvestCutSet',
5031
+ },
5032
+ {
5033
+ type: 'event',
5034
+ anonymous: false,
5035
+ inputs: [
5036
+ {
5037
+ name: 'token',
5038
+ internalType: 'address',
5039
+ type: 'address',
5040
+ indexed: true,
5041
+ },
5042
+ { name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
5043
+ ],
5044
+ name: 'Listed',
5045
+ },
5046
+ { type: 'error', inputs: [], name: 'BadRate' },
5047
+ { type: 'error', inputs: [], name: 'NotAuthority' },
5048
+ { type: 'error', inputs: [], name: 'NotCollector' },
5049
+ {
5050
+ type: 'error',
5051
+ inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
5052
+ name: 'NotListed',
5053
+ },
5054
+ { type: 'error', inputs: [], name: 'NotManager' },
5055
+ { type: 'error', inputs: [], name: 'Refused' },
5056
+ ] as const