@logswap/sdk 0.5.44 → 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/dist/generated.js CHANGED
@@ -12,7 +12,7 @@ export const cPoolManagerAbi = [
12
12
  {
13
13
  type: 'function',
14
14
  inputs: [],
15
- name: 'PROTOCOL_FEE_CUT',
15
+ name: 'MINT_FEE_PROTOCOL_CUT',
16
16
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
17
17
  stateMutability: 'view',
18
18
  },
@@ -66,9 +66,7 @@ export const cPoolManagerAbi = [
66
66
  { name: 'base', internalType: 'address', type: 'address' },
67
67
  { name: 'quote', internalType: 'address', type: 'address' },
68
68
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
69
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
70
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
71
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
69
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
72
70
  ],
73
71
  },
74
72
  { name: 'owner', internalType: 'address', type: 'address' },
@@ -104,9 +102,7 @@ export const cPoolManagerAbi = [
104
102
  { name: 'base', internalType: 'address', type: 'address' },
105
103
  { name: 'quote', internalType: 'address', type: 'address' },
106
104
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
107
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
108
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
109
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
105
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
110
106
  ],
111
107
  },
112
108
  { name: 'id', internalType: 'uint256', type: 'uint256' },
@@ -134,9 +130,7 @@ export const cPoolManagerAbi = [
134
130
  { name: 'base', internalType: 'address', type: 'address' },
135
131
  { name: 'quote', internalType: 'address', type: 'address' },
136
132
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
137
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
138
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
139
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
133
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
140
134
  ],
141
135
  },
142
136
  { name: 'owner', internalType: 'address', type: 'address' },
@@ -165,9 +159,7 @@ export const cPoolManagerAbi = [
165
159
  { name: 'base', internalType: 'address', type: 'address' },
166
160
  { name: 'quote', internalType: 'address', type: 'address' },
167
161
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
168
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
169
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
170
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
162
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
171
163
  ],
172
164
  },
173
165
  { name: 'to', internalType: 'address', type: 'address' },
@@ -231,7 +223,6 @@ export const cPoolManagerAbi = [
231
223
  { name: 'reserveQuote', internalType: 'uint256', type: 'uint256' },
232
224
  { name: 'F', internalType: 'uint256', type: 'uint256' },
233
225
  { name: 'bigSigma', internalType: 'uint256', type: 'uint256' },
234
- { name: 'sigma2Ema', internalType: 'uint256', type: 'uint256' },
235
226
  { name: 'currentK', internalType: 'int256', type: 'int256' },
236
227
  { name: 'protocolOwed', internalType: 'uint256', type: 'uint256' },
237
228
  { name: 'minBackstopL', internalType: 'uint256', type: 'uint256' },
@@ -262,9 +253,7 @@ export const cPoolManagerAbi = [
262
253
  { name: 'base', internalType: 'address', type: 'address' },
263
254
  { name: 'quote', internalType: 'address', type: 'address' },
264
255
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
265
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
266
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
267
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
256
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
268
257
  ],
269
258
  },
270
259
  { name: 'floor', internalType: 'int256', type: 'int256' },
@@ -284,9 +273,7 @@ export const cPoolManagerAbi = [
284
273
  { name: 'base', internalType: 'address', type: 'address' },
285
274
  { name: 'quote', internalType: 'address', type: 'address' },
286
275
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
287
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
288
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
289
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
276
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
290
277
  ],
291
278
  },
292
279
  { name: 'floor', internalType: 'int256', type: 'int256' },
@@ -307,9 +294,7 @@ export const cPoolManagerAbi = [
307
294
  { name: 'base', internalType: 'address', type: 'address' },
308
295
  { name: 'quote', internalType: 'address', type: 'address' },
309
296
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
310
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
311
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
312
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
297
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
313
298
  ],
314
299
  },
315
300
  { name: 'x0', internalType: 'int256', type: 'int256' },
@@ -346,9 +331,7 @@ export const cPoolManagerAbi = [
346
331
  { name: 'base', internalType: 'address', type: 'address' },
347
332
  { name: 'quote', internalType: 'address', type: 'address' },
348
333
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
349
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
350
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
351
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
334
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
352
335
  ],
353
336
  },
354
337
  { name: 'floor', internalType: 'int256', type: 'int256' },
@@ -403,13 +386,11 @@ export const cPoolManagerAbi = [
403
386
  { name: 'base', internalType: 'address', type: 'address' },
404
387
  { name: 'quote', internalType: 'address', type: 'address' },
405
388
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
406
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
407
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
408
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
389
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
409
390
  ],
410
391
  },
411
392
  ],
412
- name: 'phiEff',
393
+ name: 'phiOf',
413
394
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
414
395
  stateMutability: 'view',
415
396
  },
@@ -443,9 +424,7 @@ export const cPoolManagerAbi = [
443
424
  { name: 'base', internalType: 'address', type: 'address' },
444
425
  { name: 'quote', internalType: 'address', type: 'address' },
445
426
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
446
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
447
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
448
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
427
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
449
428
  ],
450
429
  },
451
430
  { name: 'exactIn', internalType: 'bool', type: 'bool' },
@@ -456,6 +435,15 @@ export const cPoolManagerAbi = [
456
435
  outputs: [],
457
436
  stateMutability: 'nonpayable',
458
437
  },
438
+ {
439
+ type: 'function',
440
+ inputs: [
441
+ { name: 'mintFeeProtocolCut', internalType: 'uint256', type: 'uint256' },
442
+ ],
443
+ name: 'setFeeParams',
444
+ outputs: [],
445
+ stateMutability: 'nonpayable',
446
+ },
459
447
  {
460
448
  type: 'function',
461
449
  inputs: [
@@ -466,13 +454,6 @@ export const cPoolManagerAbi = [
466
454
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
467
455
  stateMutability: 'payable',
468
456
  },
469
- {
470
- type: 'function',
471
- inputs: [{ name: 'cut', internalType: 'uint256', type: 'uint256' }],
472
- name: 'setProtocolFeeCut',
473
- outputs: [],
474
- stateMutability: 'nonpayable',
475
- },
476
457
  {
477
458
  type: 'function',
478
459
  inputs: [],
@@ -498,9 +479,7 @@ export const cPoolManagerAbi = [
498
479
  { name: 'base', internalType: 'address', type: 'address' },
499
480
  { name: 'quote', internalType: 'address', type: 'address' },
500
481
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
501
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
502
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
503
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
482
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
504
483
  ],
505
484
  },
506
485
  { name: 'baseSide', internalType: 'bool', type: 'bool' },
@@ -611,9 +590,7 @@ export const cPoolManagerAbi = [
611
590
  { name: 'base', internalType: 'address', type: 'address' },
612
591
  { name: 'quote', internalType: 'address', type: 'address' },
613
592
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
614
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
615
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
616
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
593
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
617
594
  ],
618
595
  },
619
596
  { name: 'owner', internalType: 'address', type: 'address' },
@@ -770,6 +747,19 @@ export const cPoolManagerAbi = [
770
747
  ],
771
748
  name: 'CollectorProposed',
772
749
  },
750
+ {
751
+ type: 'event',
752
+ anonymous: false,
753
+ inputs: [
754
+ {
755
+ name: 'mintFeeProtocolCut',
756
+ internalType: 'uint256',
757
+ type: 'uint256',
758
+ indexed: false,
759
+ },
760
+ ],
761
+ name: 'FeeParamsSet',
762
+ },
773
763
  {
774
764
  type: 'event',
775
765
  anonymous: false,
@@ -810,24 +800,7 @@ export const cPoolManagerAbi = [
810
800
  type: 'int256',
811
801
  indexed: false,
812
802
  },
813
- {
814
- name: 'phiMin',
815
- internalType: 'uint256',
816
- type: 'uint256',
817
- indexed: false,
818
- },
819
- {
820
- name: 'kappa',
821
- internalType: 'uint256',
822
- type: 'uint256',
823
- indexed: false,
824
- },
825
- {
826
- name: 'alpha',
827
- internalType: 'uint256',
828
- type: 'uint256',
829
- indexed: false,
830
- },
803
+ { name: 'phi', internalType: 'uint256', type: 'uint256', indexed: false },
831
804
  { name: 'x0', internalType: 'int256', type: 'int256', indexed: false },
832
805
  ],
833
806
  name: 'Initialize',
@@ -879,14 +852,6 @@ export const cPoolManagerAbi = [
879
852
  ],
880
853
  name: 'OperatorSet',
881
854
  },
882
- {
883
- type: 'event',
884
- anonymous: false,
885
- inputs: [
886
- { name: 'cut', internalType: 'uint256', type: 'uint256', indexed: false },
887
- ],
888
- name: 'ProtocolFeeCutSet',
889
- },
890
855
  {
891
856
  type: 'event',
892
857
  anonymous: false,
@@ -1076,6 +1041,20 @@ export const fPoolManagerAbi = [
1076
1041
  ],
1077
1042
  stateMutability: 'nonpayable',
1078
1043
  },
1044
+ {
1045
+ type: 'function',
1046
+ inputs: [],
1047
+ name: 'BURN_MAX',
1048
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1049
+ stateMutability: 'view',
1050
+ },
1051
+ {
1052
+ type: 'function',
1053
+ inputs: [],
1054
+ name: 'FEE_MAX',
1055
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1056
+ stateMutability: 'view',
1057
+ },
1079
1058
  {
1080
1059
  type: 'function',
1081
1060
  inputs: [],
@@ -1086,7 +1065,7 @@ export const fPoolManagerAbi = [
1086
1065
  {
1087
1066
  type: 'function',
1088
1067
  inputs: [],
1089
- name: 'HARVEST_PROTOCOL_CUT',
1068
+ name: 'HARVEST_CUT_MAX',
1090
1069
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1091
1070
  stateMutability: 'view',
1092
1071
  },
@@ -1106,10 +1085,10 @@ export const fPoolManagerAbi = [
1106
1085
  },
1107
1086
  {
1108
1087
  type: 'function',
1109
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1110
- name: 'acceptAuthority',
1111
- outputs: [],
1112
- stateMutability: 'nonpayable',
1088
+ inputs: [],
1089
+ name: 'POT_CUT_MAX',
1090
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1091
+ stateMutability: 'view',
1113
1092
  },
1114
1093
  {
1115
1094
  type: 'function',
@@ -1118,13 +1097,6 @@ export const fPoolManagerAbi = [
1118
1097
  outputs: [],
1119
1098
  stateMutability: 'nonpayable',
1120
1099
  },
1121
- {
1122
- type: 'function',
1123
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1124
- name: 'acceptOperator',
1125
- outputs: [],
1126
- stateMutability: 'nonpayable',
1127
- },
1128
1100
  {
1129
1101
  type: 'function',
1130
1102
  inputs: [
@@ -1136,26 +1108,6 @@ export const fPoolManagerAbi = [
1136
1108
  outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
1137
1109
  stateMutability: 'view',
1138
1110
  },
1139
- {
1140
- type: 'function',
1141
- inputs: [
1142
- { name: '', internalType: 'bytes32', type: 'bytes32' },
1143
- { name: '', internalType: 'address', type: 'address' },
1144
- ],
1145
- name: 'allowed',
1146
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1147
- stateMutability: 'view',
1148
- },
1149
- {
1150
- type: 'function',
1151
- inputs: [
1152
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1153
- { name: 'who', internalType: 'address', type: 'address' },
1154
- ],
1155
- name: 'appointOperator',
1156
- outputs: [],
1157
- stateMutability: 'nonpayable',
1158
- },
1159
1111
  {
1160
1112
  type: 'function',
1161
1113
  inputs: [
@@ -1177,6 +1129,15 @@ export const fPoolManagerAbi = [
1177
1129
  outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
1178
1130
  stateMutability: 'view',
1179
1131
  },
1132
+ {
1133
+ type: 'function',
1134
+ inputs: [],
1135
+ name: 'boundary',
1136
+ outputs: [
1137
+ { name: '', internalType: 'contract FPoolBoundary', type: 'address' },
1138
+ ],
1139
+ stateMutability: 'view',
1140
+ },
1180
1141
  {
1181
1142
  type: 'function',
1182
1143
  inputs: [
@@ -1262,13 +1223,6 @@ export const fPoolManagerAbi = [
1262
1223
  outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
1263
1224
  stateMutability: 'view',
1264
1225
  },
1265
- {
1266
- type: 'function',
1267
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1268
- name: 'dissolve',
1269
- outputs: [],
1270
- stateMutability: 'nonpayable',
1271
- },
1272
1226
  {
1273
1227
  type: 'function',
1274
1228
  inputs: [
@@ -1287,13 +1241,6 @@ export const fPoolManagerAbi = [
1287
1241
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1288
1242
  stateMutability: 'view',
1289
1243
  },
1290
- {
1291
- type: 'function',
1292
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1293
- name: 'edgePerL',
1294
- outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
1295
- stateMutability: 'view',
1296
- },
1297
1244
  {
1298
1245
  type: 'function',
1299
1246
  inputs: [],
@@ -1301,13 +1248,6 @@ export const fPoolManagerAbi = [
1301
1248
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
1302
1249
  stateMutability: 'view',
1303
1250
  },
1304
- {
1305
- type: 'function',
1306
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1307
- name: 'feePerL',
1308
- outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
1309
- stateMutability: 'view',
1310
- },
1311
1251
  {
1312
1252
  type: 'function',
1313
1253
  inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
@@ -1320,28 +1260,18 @@ export const fPoolManagerAbi = [
1320
1260
  components: [
1321
1261
  { name: 'quote', internalType: 'address', type: 'address' },
1322
1262
  { name: 'phi', internalType: 'uint96', type: 'uint96' },
1323
- { name: 'authority', internalType: 'address', type: 'address' },
1263
+ { name: 'hook', internalType: 'address', type: 'address' },
1324
1264
  { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
1325
1265
  { name: 'seeded', internalType: 'bool', type: 'bool' },
1326
1266
  { name: 'gen', internalType: 'uint16', type: 'uint16' },
1327
1267
  { name: 'n', internalType: 'uint8', type: 'uint8' },
1328
1268
  { name: 'restructureBlock', internalType: 'uint32', type: 'uint32' },
1329
- { name: 'gateMint', internalType: 'bool', type: 'bool' },
1330
- { name: 'gateSwap', internalType: 'bool', type: 'bool' },
1269
+ { name: 'asks', internalType: 'uint8', type: 'uint8' },
1331
1270
  { name: 'Q', internalType: 'uint128', type: 'uint128' },
1332
1271
  { name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
1333
1272
  { name: 'L', internalType: 'uint256', type: 'uint256' },
1334
1273
  { name: 'shares', internalType: 'uint256', type: 'uint256' },
1335
1274
  { name: 'theta0', internalType: 'int256', type: 'int256' },
1336
- { name: 'harvestedTheta', internalType: 'int256', type: 'int256' },
1337
- {
1338
- name: 'pendingAuthority',
1339
- internalType: 'address',
1340
- type: 'address',
1341
- },
1342
- { name: 'operator', internalType: 'address', type: 'address' },
1343
- { name: 'pendingOperator', internalType: 'address', type: 'address' },
1344
- { name: 'incomeTaken', internalType: 'uint256', type: 'uint256' },
1345
1275
  { name: 'name', internalType: 'bytes32', type: 'bytes32' },
1346
1276
  ],
1347
1277
  },
@@ -1361,8 +1291,18 @@ export const fPoolManagerAbi = [
1361
1291
  },
1362
1292
  {
1363
1293
  type: 'function',
1364
- inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
1365
- name: 'harvestCutExempt',
1294
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1295
+ name: 'harvestable',
1296
+ outputs: [{ name: 'cap', internalType: 'uint256', type: 'uint256' }],
1297
+ stateMutability: 'view',
1298
+ },
1299
+ {
1300
+ type: 'function',
1301
+ inputs: [
1302
+ { name: '', internalType: 'enum Kind', type: 'uint8' },
1303
+ { name: '', internalType: 'address', type: 'address' },
1304
+ ],
1305
+ name: 'hookApproved',
1366
1306
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1367
1307
  stateMutability: 'view',
1368
1308
  },
@@ -1379,7 +1319,8 @@ export const fPoolManagerAbi = [
1379
1319
  { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
1380
1320
  { name: 'phi', internalType: 'uint256', type: 'uint256' },
1381
1321
  { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
1382
- { name: 'authority', internalType: 'address', type: 'address' },
1322
+ { name: 'hook', internalType: 'address', type: 'address' },
1323
+ { name: 'creator', internalType: 'address', type: 'address' },
1383
1324
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
1384
1325
  ],
1385
1326
  },
@@ -1401,7 +1342,8 @@ export const fPoolManagerAbi = [
1401
1342
  { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
1402
1343
  { name: 'phi', internalType: 'uint256', type: 'uint256' },
1403
1344
  { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
1404
- { name: 'authority', internalType: 'address', type: 'address' },
1345
+ { name: 'hook', internalType: 'address', type: 'address' },
1346
+ { name: 'creator', internalType: 'address', type: 'address' },
1405
1347
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
1406
1348
  ],
1407
1349
  },
@@ -1472,13 +1414,6 @@ export const fPoolManagerAbi = [
1472
1414
  outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }],
1473
1415
  stateMutability: 'nonpayable',
1474
1416
  },
1475
- {
1476
- type: 'function',
1477
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1478
- name: 'n',
1479
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1480
- stateMutability: 'view',
1481
- },
1482
1417
  {
1483
1418
  type: 'function',
1484
1419
  inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
@@ -1514,16 +1449,6 @@ export const fPoolManagerAbi = [
1514
1449
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1515
1450
  stateMutability: 'view',
1516
1451
  },
1517
- {
1518
- type: 'function',
1519
- inputs: [
1520
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1521
- { name: 'next', internalType: 'address', type: 'address' },
1522
- ],
1523
- name: 'proposeAuthority',
1524
- outputs: [],
1525
- stateMutability: 'nonpayable',
1526
- },
1527
1452
  {
1528
1453
  type: 'function',
1529
1454
  inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
@@ -1561,6 +1486,16 @@ export const fPoolManagerAbi = [
1561
1486
  outputs: [{ name: 'quoteOut', internalType: 'uint256', type: 'uint256' }],
1562
1487
  stateMutability: 'nonpayable',
1563
1488
  },
1489
+ {
1490
+ type: 'function',
1491
+ inputs: [
1492
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1493
+ { name: 'to', internalType: 'address', type: 'address' },
1494
+ ],
1495
+ name: 'regenerate',
1496
+ outputs: [],
1497
+ stateMutability: 'nonpayable',
1498
+ },
1564
1499
  {
1565
1500
  type: 'function',
1566
1501
  inputs: [
@@ -1571,6 +1506,13 @@ export const fPoolManagerAbi = [
1571
1506
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1572
1507
  stateMutability: 'view',
1573
1508
  },
1509
+ {
1510
+ type: 'function',
1511
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1512
+ name: 'retire',
1513
+ outputs: [],
1514
+ stateMutability: 'nonpayable',
1515
+ },
1574
1516
  {
1575
1517
  type: 'function',
1576
1518
  inputs: [
@@ -1583,22 +1525,10 @@ export const fPoolManagerAbi = [
1583
1525
  outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
1584
1526
  stateMutability: 'nonpayable',
1585
1527
  },
1586
- {
1587
- type: 'function',
1588
- inputs: [
1589
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1590
- { name: 'who', internalType: 'address[]', type: 'address[]' },
1591
- { name: 'yes', internalType: 'bool', type: 'bool' },
1592
- ],
1593
- name: 'setAllowed',
1594
- outputs: [],
1595
- stateMutability: 'nonpayable',
1596
- },
1597
1528
  {
1598
1529
  type: 'function',
1599
1530
  inputs: [
1600
1531
  { name: 'mintFeeProtocolCut', internalType: 'uint256', type: 'uint256' },
1601
- { name: 'harvestProtocolCut', internalType: 'uint256', type: 'uint256' },
1602
1532
  ],
1603
1533
  name: 'setFeeParams',
1604
1534
  outputs: [],
@@ -1607,21 +1537,11 @@ export const fPoolManagerAbi = [
1607
1537
  {
1608
1538
  type: 'function',
1609
1539
  inputs: [
1610
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1611
- { name: 'gateMint', internalType: 'bool', type: 'bool' },
1612
- { name: 'gateSwap', internalType: 'bool', type: 'bool' },
1613
- ],
1614
- name: 'setGates',
1615
- outputs: [],
1616
- stateMutability: 'nonpayable',
1617
- },
1618
- {
1619
- type: 'function',
1620
- inputs: [
1621
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1622
- { name: 'exempt', internalType: 'bool', type: 'bool' },
1540
+ { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
1541
+ { name: 'hook', internalType: 'address', type: 'address' },
1542
+ { name: 'approved', internalType: 'bool', type: 'bool' },
1623
1543
  ],
1624
- name: 'setHarvestCutExempt',
1544
+ name: 'setHookApproved',
1625
1545
  outputs: [],
1626
1546
  stateMutability: 'nonpayable',
1627
1547
  },
@@ -1799,6 +1719,13 @@ export const fPoolManagerAbi = [
1799
1719
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1800
1720
  stateMutability: 'payable',
1801
1721
  },
1722
+ {
1723
+ type: 'function',
1724
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1725
+ name: 'unharvested',
1726
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1727
+ stateMutability: 'view',
1728
+ },
1802
1729
  {
1803
1730
  type: 'function',
1804
1731
  inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
@@ -1813,21 +1740,6 @@ export const fPoolManagerAbi = [
1813
1740
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1814
1741
  stateMutability: 'pure',
1815
1742
  },
1816
- {
1817
- type: 'event',
1818
- anonymous: false,
1819
- inputs: [
1820
- {
1821
- name: 'poolId',
1822
- internalType: 'bytes32',
1823
- type: 'bytes32',
1824
- indexed: true,
1825
- },
1826
- { name: 'who', internalType: 'address', type: 'address', indexed: true },
1827
- { name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
1828
- ],
1829
- name: 'Allowed',
1830
- },
1831
1743
  {
1832
1744
  type: 'event',
1833
1745
  anonymous: false,
@@ -1864,86 +1776,41 @@ export const fPoolManagerAbi = [
1864
1776
  type: 'bytes32',
1865
1777
  indexed: true,
1866
1778
  },
1779
+ { name: 'from', internalType: 'address', type: 'address', indexed: true },
1780
+ { name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
1867
1781
  {
1868
- name: 'current',
1869
- internalType: 'address',
1870
- type: 'address',
1871
- indexed: true,
1782
+ name: 'shares',
1783
+ internalType: 'uint256',
1784
+ type: 'uint256',
1785
+ indexed: false,
1872
1786
  },
1873
1787
  {
1874
- name: 'proposed',
1875
- internalType: 'address',
1876
- type: 'address',
1877
- indexed: true,
1788
+ name: 'dQuote',
1789
+ internalType: 'uint256',
1790
+ type: 'uint256',
1791
+ indexed: false,
1878
1792
  },
1879
1793
  ],
1880
- name: 'AuthorityProposed',
1794
+ name: 'Burn',
1881
1795
  },
1882
1796
  {
1883
1797
  type: 'event',
1884
1798
  anonymous: false,
1885
1799
  inputs: [
1886
1800
  {
1887
- name: 'poolId',
1888
- internalType: 'bytes32',
1889
- type: 'bytes32',
1801
+ name: 'previous',
1802
+ internalType: 'address',
1803
+ type: 'address',
1804
+ indexed: true,
1805
+ },
1806
+ {
1807
+ name: 'current',
1808
+ internalType: 'address',
1809
+ type: 'address',
1890
1810
  indexed: true,
1891
1811
  },
1892
- { name: 'prev', internalType: 'address', type: 'address', indexed: true },
1893
- { name: 'next', internalType: 'address', type: 'address', indexed: true },
1894
1812
  ],
1895
- name: 'AuthoritySet',
1896
- },
1897
- {
1898
- type: 'event',
1899
- anonymous: false,
1900
- inputs: [
1901
- {
1902
- name: 'poolId',
1903
- internalType: 'bytes32',
1904
- type: 'bytes32',
1905
- indexed: true,
1906
- },
1907
- {
1908
- name: 'sender',
1909
- internalType: 'address',
1910
- type: 'address',
1911
- indexed: true,
1912
- },
1913
- { name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
1914
- {
1915
- name: 'shares',
1916
- internalType: 'uint256',
1917
- type: 'uint256',
1918
- indexed: false,
1919
- },
1920
- {
1921
- name: 'dQuote',
1922
- internalType: 'uint256',
1923
- type: 'uint256',
1924
- indexed: false,
1925
- },
1926
- ],
1927
- name: 'Burn',
1928
- },
1929
- {
1930
- type: 'event',
1931
- anonymous: false,
1932
- inputs: [
1933
- {
1934
- name: 'previous',
1935
- internalType: 'address',
1936
- type: 'address',
1937
- indexed: true,
1938
- },
1939
- {
1940
- name: 'current',
1941
- internalType: 'address',
1942
- type: 'address',
1943
- indexed: true,
1944
- },
1945
- ],
1946
- name: 'CollectorAccepted',
1813
+ name: 'CollectorAccepted',
1947
1814
  },
1948
1815
  {
1949
1816
  type: 'event',
@@ -1964,32 +1831,6 @@ export const fPoolManagerAbi = [
1964
1831
  ],
1965
1832
  name: 'CollectorProposed',
1966
1833
  },
1967
- {
1968
- type: 'event',
1969
- anonymous: false,
1970
- inputs: [
1971
- {
1972
- name: 'poolId',
1973
- internalType: 'bytes32',
1974
- type: 'bytes32',
1975
- indexed: true,
1976
- },
1977
- { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
1978
- {
1979
- name: 'supply',
1980
- internalType: 'uint256',
1981
- type: 'uint256',
1982
- indexed: false,
1983
- },
1984
- {
1985
- name: 'quote',
1986
- internalType: 'uint256',
1987
- type: 'uint256',
1988
- indexed: false,
1989
- },
1990
- ],
1991
- name: 'Dissolve',
1992
- },
1993
1834
  {
1994
1835
  type: 'event',
1995
1836
  anonymous: false,
@@ -2026,30 +1867,9 @@ export const fPoolManagerAbi = [
2026
1867
  type: 'uint256',
2027
1868
  indexed: false,
2028
1869
  },
2029
- {
2030
- name: 'harvestProtocolCut',
2031
- internalType: 'uint256',
2032
- type: 'uint256',
2033
- indexed: false,
2034
- },
2035
1870
  ],
2036
1871
  name: 'FeeParamsSet',
2037
1872
  },
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: 'gateMint', internalType: 'bool', type: 'bool', indexed: false },
2049
- { name: 'gateSwap', internalType: 'bool', type: 'bool', indexed: false },
2050
- ],
2051
- name: 'GatesSet',
2052
- },
2053
1873
  {
2054
1874
  type: 'event',
2055
1875
  anonymous: false,
@@ -2067,8 +1887,9 @@ export const fPoolManagerAbi = [
2067
1887
  type: 'uint256',
2068
1888
  indexed: false,
2069
1889
  },
1890
+ { name: 'cut', internalType: 'uint256', type: 'uint256', indexed: false },
2070
1891
  {
2071
- name: 'toSponsor',
1892
+ name: 'toOperator',
2072
1893
  internalType: 'uint256',
2073
1894
  type: 'uint256',
2074
1895
  indexed: false,
@@ -2080,15 +1901,11 @@ export const fPoolManagerAbi = [
2080
1901
  type: 'event',
2081
1902
  anonymous: false,
2082
1903
  inputs: [
2083
- {
2084
- name: 'poolId',
2085
- internalType: 'bytes32',
2086
- type: 'bytes32',
2087
- indexed: true,
2088
- },
2089
- { name: 'exempt', internalType: 'bool', type: 'bool', indexed: false },
1904
+ { name: 'kind', internalType: 'enum Kind', type: 'uint8', indexed: true },
1905
+ { name: 'hook', internalType: 'address', type: 'address', indexed: true },
1906
+ { name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
2090
1907
  ],
2091
- name: 'HarvestCutExemptSet',
1908
+ name: 'HookApproved',
2092
1909
  },
2093
1910
  {
2094
1911
  type: 'event',
@@ -2107,7 +1924,7 @@ export const fPoolManagerAbi = [
2107
1924
  indexed: true,
2108
1925
  },
2109
1926
  {
2110
- name: 'authority',
1927
+ name: 'creator',
2111
1928
  internalType: 'address',
2112
1929
  type: 'address',
2113
1930
  indexed: true,
@@ -2131,6 +1948,12 @@ export const fPoolManagerAbi = [
2131
1948
  type: 'uint8',
2132
1949
  indexed: false,
2133
1950
  },
1951
+ {
1952
+ name: 'hook',
1953
+ internalType: 'address',
1954
+ type: 'address',
1955
+ indexed: false,
1956
+ },
2134
1957
  ],
2135
1958
  name: 'Initialize',
2136
1959
  },
@@ -2170,12 +1993,7 @@ export const fPoolManagerAbi = [
2170
1993
  type: 'bytes32',
2171
1994
  indexed: true,
2172
1995
  },
2173
- {
2174
- name: 'sender',
2175
- internalType: 'address',
2176
- type: 'address',
2177
- indexed: true,
2178
- },
1996
+ { name: 'to', internalType: 'address', type: 'address', indexed: true },
2179
1997
  { name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
2180
1998
  {
2181
1999
  name: 'shares',
@@ -2216,45 +2034,40 @@ export const fPoolManagerAbi = [
2216
2034
  anonymous: false,
2217
2035
  inputs: [
2218
2036
  {
2219
- name: 'poolId',
2220
- internalType: 'bytes32',
2221
- type: 'bytes32',
2222
- indexed: true,
2223
- },
2224
- {
2225
- name: 'current',
2037
+ name: 'owner',
2226
2038
  internalType: 'address',
2227
2039
  type: 'address',
2228
2040
  indexed: true,
2229
2041
  },
2230
2042
  {
2231
- name: 'proposed',
2043
+ name: 'operator',
2232
2044
  internalType: 'address',
2233
2045
  type: 'address',
2234
2046
  indexed: true,
2235
2047
  },
2048
+ { name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
2236
2049
  ],
2237
- name: 'OperatorProposed',
2050
+ name: 'OperatorSet',
2238
2051
  },
2239
2052
  {
2240
2053
  type: 'event',
2241
2054
  anonymous: false,
2242
2055
  inputs: [
2243
2056
  {
2244
- name: 'owner',
2245
- internalType: 'address',
2246
- type: 'address',
2057
+ name: 'poolId',
2058
+ internalType: 'bytes32',
2059
+ type: 'bytes32',
2247
2060
  indexed: true,
2248
2061
  },
2062
+ { name: 'inShares', internalType: 'bool', type: 'bool', indexed: false },
2249
2063
  {
2250
- name: 'operator',
2251
- internalType: 'address',
2252
- type: 'address',
2253
- indexed: true,
2064
+ name: 'amount',
2065
+ internalType: 'uint256',
2066
+ type: 'uint256',
2067
+ indexed: false,
2254
2068
  },
2255
- { name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
2256
2069
  ],
2257
- name: 'OperatorSet',
2070
+ name: 'ProtocolFee',
2258
2071
  },
2259
2072
  {
2260
2073
  type: 'event',
@@ -2266,10 +2079,27 @@ export const fPoolManagerAbi = [
2266
2079
  type: 'bytes32',
2267
2080
  indexed: true,
2268
2081
  },
2269
- { name: 'prev', internalType: 'address', type: 'address', indexed: true },
2270
- { name: 'next', internalType: 'address', type: 'address', indexed: true },
2082
+ { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
2083
+ {
2084
+ name: 'owner',
2085
+ internalType: 'address',
2086
+ type: 'address',
2087
+ indexed: true,
2088
+ },
2089
+ {
2090
+ name: 'shares',
2091
+ internalType: 'uint256',
2092
+ type: 'uint256',
2093
+ indexed: false,
2094
+ },
2095
+ {
2096
+ name: 'quoteOut',
2097
+ internalType: 'uint256',
2098
+ type: 'uint256',
2099
+ indexed: false,
2100
+ },
2271
2101
  ],
2272
- name: 'OperatorSet',
2102
+ name: 'Redeem',
2273
2103
  },
2274
2104
  {
2275
2105
  type: 'event',
@@ -2281,15 +2111,40 @@ export const fPoolManagerAbi = [
2281
2111
  type: 'bytes32',
2282
2112
  indexed: true,
2283
2113
  },
2284
- { name: 'inShares', internalType: 'bool', type: 'bool', indexed: false },
2114
+ { name: 'pot', internalType: 'uint256', type: 'uint256', indexed: false },
2285
2115
  {
2286
- name: 'amount',
2116
+ name: 'payee',
2117
+ internalType: 'address',
2118
+ type: 'address',
2119
+ indexed: false,
2120
+ },
2121
+ {
2122
+ name: 'toPayee',
2123
+ internalType: 'uint256',
2124
+ type: 'uint256',
2125
+ indexed: false,
2126
+ },
2127
+ { name: 'cut', internalType: 'uint256', type: 'uint256', indexed: false },
2128
+ {
2129
+ name: 'boughtIn',
2130
+ internalType: 'uint256',
2131
+ type: 'uint256',
2132
+ indexed: false,
2133
+ },
2134
+ {
2135
+ name: 'shares',
2136
+ internalType: 'uint256',
2137
+ type: 'uint256',
2138
+ indexed: false,
2139
+ },
2140
+ {
2141
+ name: 'burn',
2287
2142
  internalType: 'uint256',
2288
2143
  type: 'uint256',
2289
2144
  indexed: false,
2290
2145
  },
2291
2146
  ],
2292
- name: 'ProtocolFee',
2147
+ name: 'Regenerated',
2293
2148
  },
2294
2149
  {
2295
2150
  type: 'event',
@@ -2303,25 +2158,19 @@ export const fPoolManagerAbi = [
2303
2158
  },
2304
2159
  { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
2305
2160
  {
2306
- name: 'owner',
2307
- internalType: 'address',
2308
- type: 'address',
2309
- indexed: true,
2310
- },
2311
- {
2312
- name: 'shares',
2161
+ name: 'supply',
2313
2162
  internalType: 'uint256',
2314
2163
  type: 'uint256',
2315
2164
  indexed: false,
2316
2165
  },
2317
2166
  {
2318
- name: 'quoteOut',
2167
+ name: 'quote',
2319
2168
  internalType: 'uint256',
2320
2169
  type: 'uint256',
2321
2170
  indexed: false,
2322
2171
  },
2323
2172
  ],
2324
- name: 'Redeem',
2173
+ name: 'Retired',
2325
2174
  },
2326
2175
  {
2327
2176
  type: 'event',
@@ -2336,12 +2185,6 @@ export const fPoolManagerAbi = [
2336
2185
  { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
2337
2186
  { name: 'L0', internalType: 'uint256', type: 'uint256', indexed: false },
2338
2187
  { name: 'Q0', internalType: 'uint256', type: 'uint256', indexed: false },
2339
- {
2340
- name: 'theta0',
2341
- internalType: 'int256',
2342
- type: 'int256',
2343
- indexed: false,
2344
- },
2345
2188
  {
2346
2189
  name: 'r0',
2347
2190
  internalType: 'uint256[]',
@@ -2441,9 +2284,12 @@ export const fPoolManagerAbi = [
2441
2284
  { type: 'error', inputs: [], name: 'AlreadyUnlocked' },
2442
2285
  { type: 'error', inputs: [], name: 'BadLeg' },
2443
2286
  { type: 'error', inputs: [], name: 'BadParam' },
2287
+ { type: 'error', inputs: [], name: 'BadTerms' },
2444
2288
  { type: 'error', inputs: [], name: 'BadWeights' },
2445
2289
  { type: 'error', inputs: [], name: 'BalanceOverflow' },
2446
- { type: 'error', inputs: [], name: 'FloorLocked' },
2290
+ { type: 'error', inputs: [], name: 'BidNotEmpty' },
2291
+ { type: 'error', inputs: [], name: 'HarvestLimit' },
2292
+ { type: 'error', inputs: [], name: 'HookNotApproved' },
2447
2293
  { type: 'error', inputs: [], name: 'InsufficientBalance' },
2448
2294
  { type: 'error', inputs: [], name: 'InsufficientPermission' },
2449
2295
  { type: 'error', inputs: [], name: 'InsufficientQuote' },
@@ -2455,12 +2301,8 @@ export const fPoolManagerAbi = [
2455
2301
  name: 'MulticallFailed',
2456
2302
  },
2457
2303
  { type: 'error', inputs: [], name: 'NonstandardToken' },
2458
- { type: 'error', inputs: [], name: 'NotAllowed' },
2459
- { type: 'error', inputs: [], name: 'NotAuthority' },
2460
2304
  { type: 'error', inputs: [], name: 'NotAuthorized' },
2461
2305
  { type: 'error', inputs: [], name: 'NotCollector' },
2462
- { type: 'error', inputs: [], name: 'NotDissolvable' },
2463
- { type: 'error', inputs: [], name: 'NotOperator' },
2464
2306
  { type: 'error', inputs: [], name: 'NotPrivate' },
2465
2307
  { type: 'error', inputs: [], name: 'NotRetired' },
2466
2308
  { type: 'error', inputs: [], name: 'NotSeeded' },
@@ -2501,11 +2343,9 @@ export const logswapLensAbi = [
2501
2343
  inputs: [],
2502
2344
  name: 'cParams',
2503
2345
  outputs: [
2504
- { name: 'defaultAlpha', internalType: 'uint256', type: 'uint256' },
2505
2346
  { name: 'feeMax', internalType: 'uint256', type: 'uint256' },
2506
2347
  { name: 'feeMin', internalType: 'uint256', type: 'uint256' },
2507
- { name: 'defaultFeeMin', internalType: 'uint256', type: 'uint256' },
2508
- { name: 'maxKappa', internalType: 'uint256', type: 'uint256' },
2348
+ { name: 'defaultFee', internalType: 'uint256', type: 'uint256' },
2509
2349
  { name: 'mintFee', internalType: 'uint256', type: 'uint256' },
2510
2350
  { name: 'minTickSpacing', internalType: 'int256', type: 'int256' },
2511
2351
  { name: 'noCap', internalType: 'int256', type: 'int256' },
@@ -2524,9 +2364,7 @@ export const logswapLensAbi = [
2524
2364
  { name: 'base', internalType: 'address', type: 'address' },
2525
2365
  { name: 'quote', internalType: 'address', type: 'address' },
2526
2366
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2527
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
2528
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
2529
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
2367
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
2530
2368
  ],
2531
2369
  },
2532
2370
  ],
@@ -2545,9 +2383,7 @@ export const logswapLensAbi = [
2545
2383
  { name: 'base', internalType: 'address', type: 'address' },
2546
2384
  { name: 'quote', internalType: 'address', type: 'address' },
2547
2385
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2548
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
2549
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
2550
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
2386
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
2551
2387
  ],
2552
2388
  },
2553
2389
  ],
@@ -2612,9 +2448,7 @@ export const logswapLensAbi = [
2612
2448
  { name: 'base', internalType: 'address', type: 'address' },
2613
2449
  { name: 'quote', internalType: 'address', type: 'address' },
2614
2450
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2615
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
2616
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
2617
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
2451
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
2618
2452
  ],
2619
2453
  },
2620
2454
  { name: 'floor', internalType: 'int256', type: 'int256' },
@@ -2655,28 +2489,18 @@ export const logswapLensAbi = [
2655
2489
  components: [
2656
2490
  { name: 'quote', internalType: 'address', type: 'address' },
2657
2491
  { name: 'phi', internalType: 'uint96', type: 'uint96' },
2658
- { name: 'authority', internalType: 'address', type: 'address' },
2492
+ { name: 'hook', internalType: 'address', type: 'address' },
2659
2493
  { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
2660
2494
  { name: 'seeded', internalType: 'bool', type: 'bool' },
2661
2495
  { name: 'gen', internalType: 'uint16', type: 'uint16' },
2662
2496
  { name: 'n', internalType: 'uint8', type: 'uint8' },
2663
2497
  { name: 'restructureBlock', internalType: 'uint32', type: 'uint32' },
2664
- { name: 'gateMint', internalType: 'bool', type: 'bool' },
2665
- { name: 'gateSwap', internalType: 'bool', type: 'bool' },
2498
+ { name: 'asks', internalType: 'uint8', type: 'uint8' },
2666
2499
  { name: 'Q', internalType: 'uint128', type: 'uint128' },
2667
2500
  { name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
2668
2501
  { name: 'L', internalType: 'uint256', type: 'uint256' },
2669
2502
  { name: 'shares', internalType: 'uint256', type: 'uint256' },
2670
2503
  { name: 'theta0', internalType: 'int256', type: 'int256' },
2671
- { name: 'harvestedTheta', internalType: 'int256', type: 'int256' },
2672
- {
2673
- name: 'pendingAuthority',
2674
- internalType: 'address',
2675
- type: 'address',
2676
- },
2677
- { name: 'operator', internalType: 'address', type: 'address' },
2678
- { name: 'pendingOperator', internalType: 'address', type: 'address' },
2679
- { name: 'incomeTaken', internalType: 'uint256', type: 'uint256' },
2680
2504
  { name: 'name', internalType: 'bytes32', type: 'bytes32' },
2681
2505
  ],
2682
2506
  },
@@ -2701,7 +2525,6 @@ export const logswapLensAbi = [
2701
2525
  { name: 'reserveQuote', internalType: 'uint256', type: 'uint256' },
2702
2526
  { name: 'F', internalType: 'uint256', type: 'uint256' },
2703
2527
  { name: 'bigSigma', internalType: 'uint256', type: 'uint256' },
2704
- { name: 'sigma2Ema', internalType: 'uint256', type: 'uint256' },
2705
2528
  { name: 'currentK', internalType: 'int256', type: 'int256' },
2706
2529
  { name: 'protocolOwed', internalType: 'uint256', type: 'uint256' },
2707
2530
  { name: 'minBackstopL', internalType: 'uint256', type: 'uint256' },
@@ -2722,9 +2545,7 @@ export const logswapLensAbi = [
2722
2545
  { name: 'base', internalType: 'address', type: 'address' },
2723
2546
  { name: 'quote', internalType: 'address', type: 'address' },
2724
2547
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2725
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
2726
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
2727
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
2548
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
2728
2549
  ],
2729
2550
  },
2730
2551
  { name: 'owner', internalType: 'address', type: 'address' },
@@ -2760,9 +2581,7 @@ export const logswapLensAbi = [
2760
2581
  { name: 'base', internalType: 'address', type: 'address' },
2761
2582
  { name: 'quote', internalType: 'address', type: 'address' },
2762
2583
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2763
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
2764
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
2765
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
2584
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
2766
2585
  ],
2767
2586
  },
2768
2587
  { name: 'floor', internalType: 'int256', type: 'int256' },
@@ -2782,9 +2601,7 @@ export const logswapLensAbi = [
2782
2601
  { name: 'base', internalType: 'address', type: 'address' },
2783
2602
  { name: 'quote', internalType: 'address', type: 'address' },
2784
2603
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2785
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
2786
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
2787
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
2604
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
2788
2605
  ],
2789
2606
  },
2790
2607
  ],
@@ -2803,9 +2620,7 @@ export const logswapLensAbi = [
2803
2620
  { name: 'base', internalType: 'address', type: 'address' },
2804
2621
  { name: 'quote', internalType: 'address', type: 'address' },
2805
2622
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2806
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
2807
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
2808
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
2623
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
2809
2624
  ],
2810
2625
  },
2811
2626
  ],
@@ -2824,9 +2639,7 @@ export const logswapLensAbi = [
2824
2639
  { name: 'base', internalType: 'address', type: 'address' },
2825
2640
  { name: 'quote', internalType: 'address', type: 'address' },
2826
2641
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2827
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
2828
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
2829
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
2642
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
2830
2643
  ],
2831
2644
  },
2832
2645
  { name: 'id', internalType: 'uint256', type: 'uint256' },
@@ -2852,9 +2665,7 @@ export const logswapLensAbi = [
2852
2665
  { name: 'base', internalType: 'address', type: 'address' },
2853
2666
  { name: 'quote', internalType: 'address', type: 'address' },
2854
2667
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2855
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
2856
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
2857
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
2668
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
2858
2669
  ],
2859
2670
  },
2860
2671
  ],
@@ -2882,9 +2693,7 @@ export const logswapLensAbi = [
2882
2693
  { name: 'base', internalType: 'address', type: 'address' },
2883
2694
  { name: 'quote', internalType: 'address', type: 'address' },
2884
2695
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2885
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
2886
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
2887
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
2696
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
2888
2697
  ],
2889
2698
  },
2890
2699
  { name: 'owner', internalType: 'address', type: 'address' },
@@ -2922,9 +2731,7 @@ export const logswapLensAbi = [
2922
2731
  { name: 'base', internalType: 'address', type: 'address' },
2923
2732
  { name: 'quote', internalType: 'address', type: 'address' },
2924
2733
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2925
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
2926
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
2927
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
2734
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
2928
2735
  ],
2929
2736
  },
2930
2737
  ],
@@ -2943,9 +2750,7 @@ export const logswapLensAbi = [
2943
2750
  { name: 'base', internalType: 'address', type: 'address' },
2944
2751
  { name: 'quote', internalType: 'address', type: 'address' },
2945
2752
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2946
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
2947
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
2948
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
2753
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
2949
2754
  ],
2950
2755
  },
2951
2756
  { name: 'owner', internalType: 'address', type: 'address' },
@@ -2978,9 +2783,7 @@ export const logswapLensAbi = [
2978
2783
  { name: 'base', internalType: 'address', type: 'address' },
2979
2784
  { name: 'quote', internalType: 'address', type: 'address' },
2980
2785
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2981
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
2982
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
2983
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
2786
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
2984
2787
  ],
2985
2788
  },
2986
2789
  { name: 'targetFloor', internalType: 'int256', type: 'int256' },
@@ -3022,9 +2825,7 @@ export const logswapLensAbi = [
3022
2825
  { name: 'base', internalType: 'address', type: 'address' },
3023
2826
  { name: 'quote', internalType: 'address', type: 'address' },
3024
2827
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3025
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3026
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3027
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
2828
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3028
2829
  ],
3029
2830
  },
3030
2831
  { name: 'baseIn', internalType: 'bool', type: 'bool' },
@@ -3045,9 +2846,7 @@ export const logswapLensAbi = [
3045
2846
  { name: 'base', internalType: 'address', type: 'address' },
3046
2847
  { name: 'quote', internalType: 'address', type: 'address' },
3047
2848
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3048
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3049
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3050
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
2849
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3051
2850
  ],
3052
2851
  },
3053
2852
  { name: 'baseIn', internalType: 'bool', type: 'bool' },
@@ -3068,9 +2867,7 @@ export const logswapLensAbi = [
3068
2867
  { name: 'base', internalType: 'address', type: 'address' },
3069
2868
  { name: 'quote', internalType: 'address', type: 'address' },
3070
2869
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3071
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3072
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3073
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
2870
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3074
2871
  ],
3075
2872
  },
3076
2873
  { name: 'baseOut', internalType: 'bool', type: 'bool' },
@@ -3091,9 +2888,7 @@ export const logswapLensAbi = [
3091
2888
  { name: 'base', internalType: 'address', type: 'address' },
3092
2889
  { name: 'quote', internalType: 'address', type: 'address' },
3093
2890
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3094
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3095
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3096
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
2891
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3097
2892
  ],
3098
2893
  },
3099
2894
  { name: 'fromId', internalType: 'uint256', type: 'uint256' },
@@ -3150,9 +2945,7 @@ export const logswapLensAbi = [
3150
2945
  { name: 'base', internalType: 'address', type: 'address' },
3151
2946
  { name: 'quote', internalType: 'address', type: 'address' },
3152
2947
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3153
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3154
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3155
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
2948
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3156
2949
  ],
3157
2950
  },
3158
2951
  ],
@@ -3174,8 +2967,10 @@ export const logswapLensAbi = [
3174
2967
  },
3175
2968
  { type: 'error', inputs: [], name: 'BelowFloor' },
3176
2969
  { type: 'error', inputs: [], name: 'DrainsBase' },
2970
+ { type: 'error', inputs: [], name: 'InvalidShares' },
3177
2971
  { type: 'error', inputs: [], name: 'UnexpectedQuoteSuccess' },
3178
2972
  { type: 'error', inputs: [], name: 'UnknownId' },
2973
+ { type: 'error', inputs: [], name: 'WrongPool' },
3179
2974
  ];
3180
2975
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3181
2976
  // LogswapRouter
@@ -3238,9 +3033,7 @@ export const logswapRouterAbi = [
3238
3033
  { name: 'base', internalType: 'address', type: 'address' },
3239
3034
  { name: 'quote', internalType: 'address', type: 'address' },
3240
3035
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3241
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3242
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3243
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
3036
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3244
3037
  ],
3245
3038
  },
3246
3039
  { name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
@@ -3268,9 +3061,7 @@ export const logswapRouterAbi = [
3268
3061
  { name: 'base', internalType: 'address', type: 'address' },
3269
3062
  { name: 'quote', internalType: 'address', type: 'address' },
3270
3063
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3271
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3272
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3273
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
3064
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3274
3065
  ],
3275
3066
  },
3276
3067
  { name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
@@ -3292,9 +3083,7 @@ export const logswapRouterAbi = [
3292
3083
  { name: 'base', internalType: 'address', type: 'address' },
3293
3084
  { name: 'quote', internalType: 'address', type: 'address' },
3294
3085
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3295
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3296
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3297
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
3086
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3298
3087
  ],
3299
3088
  },
3300
3089
  { name: 'x0', internalType: 'int256', type: 'int256' },
@@ -3329,9 +3118,7 @@ export const logswapRouterAbi = [
3329
3118
  { name: 'base', internalType: 'address', type: 'address' },
3330
3119
  { name: 'quote', internalType: 'address', type: 'address' },
3331
3120
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3332
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3333
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3334
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
3121
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3335
3122
  ],
3336
3123
  },
3337
3124
  { name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
@@ -3359,9 +3146,7 @@ export const logswapRouterAbi = [
3359
3146
  { name: 'base', internalType: 'address', type: 'address' },
3360
3147
  { name: 'quote', internalType: 'address', type: 'address' },
3361
3148
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3362
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3363
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3364
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
3149
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3365
3150
  ],
3366
3151
  },
3367
3152
  { name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
@@ -3388,9 +3173,7 @@ export const logswapRouterAbi = [
3388
3173
  { name: 'base', internalType: 'address', type: 'address' },
3389
3174
  { name: 'quote', internalType: 'address', type: 'address' },
3390
3175
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3391
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3392
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3393
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
3176
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3394
3177
  ],
3395
3178
  },
3396
3179
  { name: 'targetFloor', internalType: 'int256', type: 'int256' },
@@ -3428,9 +3211,7 @@ export const logswapRouterAbi = [
3428
3211
  internalType: 'int256',
3429
3212
  type: 'int256',
3430
3213
  },
3431
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3432
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3433
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
3214
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3434
3215
  ],
3435
3216
  },
3436
3217
  { name: 'baseIn', internalType: 'bool', type: 'bool' },
@@ -3461,9 +3242,7 @@ export const logswapRouterAbi = [
3461
3242
  { name: 'base', internalType: 'address', type: 'address' },
3462
3243
  { name: 'quote', internalType: 'address', type: 'address' },
3463
3244
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3464
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3465
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3466
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
3245
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3467
3246
  ],
3468
3247
  },
3469
3248
  { name: 'baseSide', internalType: 'bool', type: 'bool' },
@@ -3492,9 +3271,7 @@ export const logswapRouterAbi = [
3492
3271
  { name: 'base', internalType: 'address', type: 'address' },
3493
3272
  { name: 'quote', internalType: 'address', type: 'address' },
3494
3273
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3495
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3496
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3497
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
3274
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3498
3275
  ],
3499
3276
  },
3500
3277
  { name: 'fromId', internalType: 'uint256', type: 'uint256' },
@@ -3579,9 +3356,7 @@ export const logswapRouterAbi = [
3579
3356
  { name: 'base', internalType: 'address', type: 'address' },
3580
3357
  { name: 'quote', internalType: 'address', type: 'address' },
3581
3358
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3582
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3583
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3584
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
3359
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3585
3360
  ],
3586
3361
  },
3587
3362
  { name: 'targetFloor', internalType: 'int256', type: 'int256' },
@@ -3610,9 +3385,7 @@ export const logswapRouterAbi = [
3610
3385
  { name: 'base', internalType: 'address', type: 'address' },
3611
3386
  { name: 'quote', internalType: 'address', type: 'address' },
3612
3387
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3613
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3614
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3615
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
3388
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3616
3389
  ],
3617
3390
  },
3618
3391
  { name: 'fromId', internalType: 'uint256', type: 'uint256' },
@@ -3689,9 +3462,7 @@ export const logswapRouterAbi = [
3689
3462
  { name: 'base', internalType: 'address', type: 'address' },
3690
3463
  { name: 'quote', internalType: 'address', type: 'address' },
3691
3464
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3692
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3693
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3694
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
3465
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3695
3466
  ],
3696
3467
  },
3697
3468
  { name: 'baseIn', internalType: 'bool', type: 'bool' },
@@ -3720,9 +3491,7 @@ export const logswapRouterAbi = [
3720
3491
  { name: 'base', internalType: 'address', type: 'address' },
3721
3492
  { name: 'quote', internalType: 'address', type: 'address' },
3722
3493
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3723
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3724
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3725
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
3494
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3726
3495
  ],
3727
3496
  },
3728
3497
  { name: 'baseIn', internalType: 'bool', type: 'bool' },
@@ -3748,9 +3517,7 @@ export const logswapRouterAbi = [
3748
3517
  { name: 'base', internalType: 'address', type: 'address' },
3749
3518
  { name: 'quote', internalType: 'address', type: 'address' },
3750
3519
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3751
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3752
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3753
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
3520
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3754
3521
  ],
3755
3522
  },
3756
3523
  { name: 'baseOut', internalType: 'bool', type: 'bool' },
@@ -3781,9 +3548,7 @@ export const logswapRouterAbi = [
3781
3548
  { name: 'base', internalType: 'address', type: 'address' },
3782
3549
  { name: 'quote', internalType: 'address', type: 'address' },
3783
3550
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3784
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3785
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3786
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
3551
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3787
3552
  ],
3788
3553
  },
3789
3554
  { name: 'fromId', internalType: 'uint256', type: 'uint256' },
@@ -3815,13 +3580,12 @@ export const logswapRouterAbi = [
3815
3580
  { name: 'base', internalType: 'address', type: 'address' },
3816
3581
  { name: 'quote', internalType: 'address', type: 'address' },
3817
3582
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3818
- { name: 'phiMin', internalType: 'uint256', type: 'uint256' },
3819
- { name: 'kappa', internalType: 'uint256', type: 'uint256' },
3820
- { name: 'alpha', internalType: 'uint256', type: 'uint256' },
3583
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3821
3584
  ],
3822
3585
  },
3823
3586
  { name: 'fundWithBase', internalType: 'bool', type: 'bool' },
3824
3587
  { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
3588
+ { name: 'minSwapOut', internalType: 'uint256', type: 'uint256' },
3825
3589
  { name: 'targetFloor', internalType: 'int256', type: 'int256' },
3826
3590
  { name: 'cap', internalType: 'int256', type: 'int256' },
3827
3591
  { name: 'L', internalType: 'uint256', type: 'uint256' },
@@ -3884,3 +3648,1394 @@ export const logswapRouterAbi = [
3884
3648
  { type: 'error', inputs: [], name: 'UnsupportedOp' },
3885
3649
  { type: 'error', inputs: [], name: 'ZeroAmount' },
3886
3650
  ];
3651
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3652
+ // PadHook
3653
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3654
+ export const padHookAbi = [
3655
+ {
3656
+ type: 'constructor',
3657
+ inputs: [
3658
+ {
3659
+ name: '_manager',
3660
+ internalType: 'contract FPoolManager',
3661
+ type: 'address',
3662
+ },
3663
+ { name: '_thresholdBase', internalType: 'uint256', type: 'uint256' },
3664
+ ],
3665
+ stateMutability: 'nonpayable',
3666
+ },
3667
+ {
3668
+ type: 'function',
3669
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
3670
+ name: 'acceptAuthority',
3671
+ outputs: [],
3672
+ stateMutability: 'nonpayable',
3673
+ },
3674
+ {
3675
+ type: 'function',
3676
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3677
+ name: 'authority',
3678
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3679
+ stateMutability: 'view',
3680
+ },
3681
+ {
3682
+ type: 'function',
3683
+ inputs: [],
3684
+ name: 'burnPerRung',
3685
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3686
+ stateMutability: 'view',
3687
+ },
3688
+ {
3689
+ type: 'function',
3690
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3691
+ name: 'creator',
3692
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3693
+ stateMutability: 'view',
3694
+ },
3695
+ {
3696
+ type: 'function',
3697
+ inputs: [],
3698
+ name: 'creatorShare',
3699
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3700
+ stateMutability: 'view',
3701
+ },
3702
+ {
3703
+ type: 'function',
3704
+ inputs: [],
3705
+ name: 'harvestCut',
3706
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3707
+ stateMutability: 'view',
3708
+ },
3709
+ {
3710
+ type: 'function',
3711
+ inputs: [],
3712
+ name: 'manager',
3713
+ outputs: [
3714
+ { name: '', internalType: 'contract FPoolManager', type: 'address' },
3715
+ ],
3716
+ stateMutability: 'view',
3717
+ },
3718
+ {
3719
+ type: 'function',
3720
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
3721
+ name: 'maxHarvest',
3722
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3723
+ stateMutability: 'view',
3724
+ },
3725
+ {
3726
+ type: 'function',
3727
+ inputs: [
3728
+ {
3729
+ name: 'a',
3730
+ internalType: 'struct IFHook.Ask',
3731
+ type: 'tuple',
3732
+ components: [
3733
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3734
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
3735
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
3736
+ { name: 'who', internalType: 'address', type: 'address' },
3737
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
3738
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
3739
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
3740
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
3741
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
3742
+ ],
3743
+ },
3744
+ ],
3745
+ name: 'may',
3746
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
3747
+ stateMutability: 'view',
3748
+ },
3749
+ {
3750
+ type: 'function',
3751
+ inputs: [
3752
+ {
3753
+ name: 'a',
3754
+ internalType: 'struct IFHook.Ask',
3755
+ type: 'tuple',
3756
+ components: [
3757
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3758
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
3759
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
3760
+ { name: 'who', internalType: 'address', type: 'address' },
3761
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
3762
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
3763
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
3764
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
3765
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
3766
+ ],
3767
+ },
3768
+ ],
3769
+ name: 'onHarvest',
3770
+ outputs: [
3771
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
3772
+ { name: 'cut', internalType: 'uint256', type: 'uint256' },
3773
+ ],
3774
+ stateMutability: 'view',
3775
+ },
3776
+ {
3777
+ type: 'function',
3778
+ inputs: [
3779
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3780
+ {
3781
+ name: 'key',
3782
+ internalType: 'struct FPoolKey',
3783
+ type: 'tuple',
3784
+ components: [
3785
+ { name: 'quote', internalType: 'address', type: 'address' },
3786
+ { name: 'bases', internalType: 'address[]', type: 'address[]' },
3787
+ { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
3788
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
3789
+ { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
3790
+ { name: 'hook', internalType: 'address', type: 'address' },
3791
+ { name: 'creator', internalType: 'address', type: 'address' },
3792
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
3793
+ ],
3794
+ },
3795
+ ],
3796
+ name: 'onInitialize',
3797
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
3798
+ stateMutability: 'nonpayable',
3799
+ },
3800
+ {
3801
+ type: 'function',
3802
+ inputs: [
3803
+ {
3804
+ name: 'a',
3805
+ internalType: 'struct IFHook.Ask',
3806
+ type: 'tuple',
3807
+ components: [
3808
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3809
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
3810
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
3811
+ { name: 'who', internalType: 'address', type: 'address' },
3812
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
3813
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
3814
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
3815
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
3816
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
3817
+ ],
3818
+ },
3819
+ ],
3820
+ name: 'onRegenerate',
3821
+ outputs: [
3822
+ {
3823
+ name: 't',
3824
+ internalType: 'struct IFHook.Terms',
3825
+ type: 'tuple',
3826
+ components: [
3827
+ { name: 'payee', internalType: 'address', type: 'address' },
3828
+ { name: 'toPayee', internalType: 'uint256', type: 'uint256' },
3829
+ { name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
3830
+ { name: 'burn', internalType: 'uint256', type: 'uint256' },
3831
+ ],
3832
+ },
3833
+ ],
3834
+ stateMutability: 'nonpayable',
3835
+ },
3836
+ {
3837
+ type: 'function',
3838
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3839
+ name: 'pendingAuthority',
3840
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3841
+ stateMutability: 'view',
3842
+ },
3843
+ {
3844
+ type: 'function',
3845
+ inputs: [
3846
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3847
+ { name: 'next', internalType: 'address', type: 'address' },
3848
+ ],
3849
+ name: 'proposeAuthority',
3850
+ outputs: [],
3851
+ stateMutability: 'nonpayable',
3852
+ },
3853
+ {
3854
+ type: 'function',
3855
+ inputs: [],
3856
+ name: 'protocolShare',
3857
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3858
+ stateMutability: 'view',
3859
+ },
3860
+ {
3861
+ type: 'function',
3862
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3863
+ name: 'rung',
3864
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3865
+ stateMutability: 'view',
3866
+ },
3867
+ {
3868
+ type: 'function',
3869
+ inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
3870
+ name: 'setHarvestCut',
3871
+ outputs: [],
3872
+ stateMutability: 'nonpayable',
3873
+ },
3874
+ {
3875
+ type: 'function',
3876
+ inputs: [
3877
+ { name: '_thresholdBase', internalType: 'uint256', type: 'uint256' },
3878
+ { name: '_thresholdGrowth', internalType: 'uint256', type: 'uint256' },
3879
+ { name: '_creatorShare', internalType: 'uint256', type: 'uint256' },
3880
+ { name: '_protocolShare', internalType: 'uint256', type: 'uint256' },
3881
+ { name: '_burnPerRung', internalType: 'uint256', type: 'uint256' },
3882
+ ],
3883
+ name: 'setSchedule',
3884
+ outputs: [],
3885
+ stateMutability: 'nonpayable',
3886
+ },
3887
+ {
3888
+ type: 'function',
3889
+ inputs: [{ name: 'r', internalType: 'uint256', type: 'uint256' }],
3890
+ name: 'threshold',
3891
+ outputs: [{ name: 't', internalType: 'uint256', type: 'uint256' }],
3892
+ stateMutability: 'view',
3893
+ },
3894
+ {
3895
+ type: 'function',
3896
+ inputs: [],
3897
+ name: 'thresholdBase',
3898
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3899
+ stateMutability: 'view',
3900
+ },
3901
+ {
3902
+ type: 'function',
3903
+ inputs: [],
3904
+ name: 'thresholdGrowth',
3905
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3906
+ stateMutability: 'view',
3907
+ },
3908
+ {
3909
+ type: 'event',
3910
+ anonymous: false,
3911
+ inputs: [
3912
+ {
3913
+ name: 'poolId',
3914
+ internalType: 'bytes32',
3915
+ type: 'bytes32',
3916
+ indexed: true,
3917
+ },
3918
+ {
3919
+ name: 'current',
3920
+ internalType: 'address',
3921
+ type: 'address',
3922
+ indexed: true,
3923
+ },
3924
+ {
3925
+ name: 'proposed',
3926
+ internalType: 'address',
3927
+ type: 'address',
3928
+ indexed: true,
3929
+ },
3930
+ ],
3931
+ name: 'AuthorityProposed',
3932
+ },
3933
+ {
3934
+ type: 'event',
3935
+ anonymous: false,
3936
+ inputs: [
3937
+ {
3938
+ name: 'poolId',
3939
+ internalType: 'bytes32',
3940
+ type: 'bytes32',
3941
+ indexed: true,
3942
+ },
3943
+ { name: 'prev', internalType: 'address', type: 'address', indexed: true },
3944
+ { name: 'next', internalType: 'address', type: 'address', indexed: true },
3945
+ ],
3946
+ name: 'AuthoritySet',
3947
+ },
3948
+ {
3949
+ type: 'event',
3950
+ anonymous: false,
3951
+ inputs: [
3952
+ {
3953
+ name: 'poolId',
3954
+ internalType: 'bytes32',
3955
+ type: 'bytes32',
3956
+ indexed: true,
3957
+ },
3958
+ { name: 'rung', internalType: 'uint256', type: 'uint256', indexed: true },
3959
+ { name: 'pot', internalType: 'uint256', type: 'uint256', indexed: false },
3960
+ ],
3961
+ name: 'Graduated',
3962
+ },
3963
+ {
3964
+ type: 'event',
3965
+ anonymous: false,
3966
+ inputs: [
3967
+ {
3968
+ name: 'harvestCut',
3969
+ internalType: 'uint256',
3970
+ type: 'uint256',
3971
+ indexed: false,
3972
+ },
3973
+ ],
3974
+ name: 'HarvestCutSet',
3975
+ },
3976
+ {
3977
+ type: 'event',
3978
+ anonymous: false,
3979
+ inputs: [
3980
+ {
3981
+ name: 'thresholdBase',
3982
+ internalType: 'uint256',
3983
+ type: 'uint256',
3984
+ indexed: false,
3985
+ },
3986
+ {
3987
+ name: 'thresholdGrowth',
3988
+ internalType: 'uint256',
3989
+ type: 'uint256',
3990
+ indexed: false,
3991
+ },
3992
+ {
3993
+ name: 'creatorShare',
3994
+ internalType: 'uint256',
3995
+ type: 'uint256',
3996
+ indexed: false,
3997
+ },
3998
+ {
3999
+ name: 'protocolShare',
4000
+ internalType: 'uint256',
4001
+ type: 'uint256',
4002
+ indexed: false,
4003
+ },
4004
+ {
4005
+ name: 'burnPerRung',
4006
+ internalType: 'uint256',
4007
+ type: 'uint256',
4008
+ indexed: false,
4009
+ },
4010
+ ],
4011
+ name: 'ScheduleSet',
4012
+ },
4013
+ { type: 'error', inputs: [], name: 'BadRate' },
4014
+ { type: 'error', inputs: [], name: 'NotAuthority' },
4015
+ { type: 'error', inputs: [], name: 'NotCollector' },
4016
+ { type: 'error', inputs: [], name: 'NotGraduated' },
4017
+ { type: 'error', inputs: [], name: 'NotManager' },
4018
+ { type: 'error', inputs: [], name: 'Refused' },
4019
+ ];
4020
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4021
+ // PolHook
4022
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4023
+ export const polHookAbi = [
4024
+ {
4025
+ type: 'constructor',
4026
+ inputs: [
4027
+ {
4028
+ name: '_manager',
4029
+ internalType: 'contract FPoolManager',
4030
+ type: 'address',
4031
+ },
4032
+ ],
4033
+ stateMutability: 'nonpayable',
4034
+ },
4035
+ {
4036
+ type: 'function',
4037
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
4038
+ name: 'acceptAuthority',
4039
+ outputs: [],
4040
+ stateMutability: 'nonpayable',
4041
+ },
4042
+ {
4043
+ type: 'function',
4044
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4045
+ name: 'authority',
4046
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4047
+ stateMutability: 'view',
4048
+ },
4049
+ {
4050
+ type: 'function',
4051
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4052
+ name: 'creator',
4053
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4054
+ stateMutability: 'view',
4055
+ },
4056
+ {
4057
+ type: 'function',
4058
+ inputs: [],
4059
+ name: 'harvestCut',
4060
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4061
+ stateMutability: 'view',
4062
+ },
4063
+ {
4064
+ type: 'function',
4065
+ inputs: [],
4066
+ name: 'keepQuote',
4067
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4068
+ stateMutability: 'view',
4069
+ },
4070
+ {
4071
+ type: 'function',
4072
+ inputs: [],
4073
+ name: 'manager',
4074
+ outputs: [
4075
+ { name: '', internalType: 'contract FPoolManager', type: 'address' },
4076
+ ],
4077
+ stateMutability: 'view',
4078
+ },
4079
+ {
4080
+ type: 'function',
4081
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
4082
+ name: 'maxHarvest',
4083
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4084
+ stateMutability: 'view',
4085
+ },
4086
+ {
4087
+ type: 'function',
4088
+ inputs: [
4089
+ {
4090
+ name: 'a',
4091
+ internalType: 'struct IFHook.Ask',
4092
+ type: 'tuple',
4093
+ components: [
4094
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4095
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
4096
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
4097
+ { name: 'who', internalType: 'address', type: 'address' },
4098
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4099
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
4100
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
4101
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
4102
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
4103
+ ],
4104
+ },
4105
+ ],
4106
+ name: 'may',
4107
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
4108
+ stateMutability: 'view',
4109
+ },
4110
+ {
4111
+ type: 'function',
4112
+ inputs: [],
4113
+ name: 'minQuoteAtSeed',
4114
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4115
+ stateMutability: 'view',
4116
+ },
4117
+ {
4118
+ type: 'function',
4119
+ inputs: [
4120
+ {
4121
+ name: 'a',
4122
+ internalType: 'struct IFHook.Ask',
4123
+ type: 'tuple',
4124
+ components: [
4125
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4126
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
4127
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
4128
+ { name: 'who', internalType: 'address', type: 'address' },
4129
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4130
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
4131
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
4132
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
4133
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
4134
+ ],
4135
+ },
4136
+ ],
4137
+ name: 'onHarvest',
4138
+ outputs: [
4139
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4140
+ { name: 'cut', internalType: 'uint256', type: 'uint256' },
4141
+ ],
4142
+ stateMutability: 'view',
4143
+ },
4144
+ {
4145
+ type: 'function',
4146
+ inputs: [
4147
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4148
+ {
4149
+ name: 'key',
4150
+ internalType: 'struct FPoolKey',
4151
+ type: 'tuple',
4152
+ components: [
4153
+ { name: 'quote', internalType: 'address', type: 'address' },
4154
+ { name: 'bases', internalType: 'address[]', type: 'address[]' },
4155
+ { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
4156
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
4157
+ { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
4158
+ { name: 'hook', internalType: 'address', type: 'address' },
4159
+ { name: 'creator', internalType: 'address', type: 'address' },
4160
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
4161
+ ],
4162
+ },
4163
+ ],
4164
+ name: 'onInitialize',
4165
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4166
+ stateMutability: 'nonpayable',
4167
+ },
4168
+ {
4169
+ type: 'function',
4170
+ inputs: [
4171
+ {
4172
+ name: 'a',
4173
+ internalType: 'struct IFHook.Ask',
4174
+ type: 'tuple',
4175
+ components: [
4176
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4177
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
4178
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
4179
+ { name: 'who', internalType: 'address', type: 'address' },
4180
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4181
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
4182
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
4183
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
4184
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
4185
+ ],
4186
+ },
4187
+ ],
4188
+ name: 'onRegenerate',
4189
+ outputs: [
4190
+ {
4191
+ name: 't',
4192
+ internalType: 'struct IFHook.Terms',
4193
+ type: 'tuple',
4194
+ components: [
4195
+ { name: 'payee', internalType: 'address', type: 'address' },
4196
+ { name: 'toPayee', internalType: 'uint256', type: 'uint256' },
4197
+ { name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
4198
+ { name: 'burn', internalType: 'uint256', type: 'uint256' },
4199
+ ],
4200
+ },
4201
+ ],
4202
+ stateMutability: 'nonpayable',
4203
+ },
4204
+ {
4205
+ type: 'function',
4206
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4207
+ name: 'pendingAuthority',
4208
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4209
+ stateMutability: 'view',
4210
+ },
4211
+ {
4212
+ type: 'function',
4213
+ inputs: [
4214
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4215
+ { name: 'next', internalType: 'address', type: 'address' },
4216
+ ],
4217
+ name: 'proposeAuthority',
4218
+ outputs: [],
4219
+ stateMutability: 'nonpayable',
4220
+ },
4221
+ {
4222
+ type: 'function',
4223
+ inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
4224
+ name: 'setHarvestCut',
4225
+ outputs: [],
4226
+ stateMutability: 'nonpayable',
4227
+ },
4228
+ {
4229
+ type: 'function',
4230
+ inputs: [
4231
+ { name: '_keepQuote', internalType: 'uint256', type: 'uint256' },
4232
+ { name: '_minQuoteAtSeed', internalType: 'uint256', type: 'uint256' },
4233
+ ],
4234
+ name: 'setPolicy',
4235
+ outputs: [],
4236
+ stateMutability: 'nonpayable',
4237
+ },
4238
+ {
4239
+ type: 'event',
4240
+ anonymous: false,
4241
+ inputs: [
4242
+ {
4243
+ name: 'poolId',
4244
+ internalType: 'bytes32',
4245
+ type: 'bytes32',
4246
+ indexed: true,
4247
+ },
4248
+ {
4249
+ name: 'current',
4250
+ internalType: 'address',
4251
+ type: 'address',
4252
+ indexed: true,
4253
+ },
4254
+ {
4255
+ name: 'proposed',
4256
+ internalType: 'address',
4257
+ type: 'address',
4258
+ indexed: true,
4259
+ },
4260
+ ],
4261
+ name: 'AuthorityProposed',
4262
+ },
4263
+ {
4264
+ type: 'event',
4265
+ anonymous: false,
4266
+ inputs: [
4267
+ {
4268
+ name: 'poolId',
4269
+ internalType: 'bytes32',
4270
+ type: 'bytes32',
4271
+ indexed: true,
4272
+ },
4273
+ { name: 'prev', internalType: 'address', type: 'address', indexed: true },
4274
+ { name: 'next', internalType: 'address', type: 'address', indexed: true },
4275
+ ],
4276
+ name: 'AuthoritySet',
4277
+ },
4278
+ {
4279
+ type: 'event',
4280
+ anonymous: false,
4281
+ inputs: [
4282
+ {
4283
+ name: 'harvestCut',
4284
+ internalType: 'uint256',
4285
+ type: 'uint256',
4286
+ indexed: false,
4287
+ },
4288
+ ],
4289
+ name: 'HarvestCutSet',
4290
+ },
4291
+ {
4292
+ type: 'event',
4293
+ anonymous: false,
4294
+ inputs: [
4295
+ {
4296
+ name: 'keepQuote',
4297
+ internalType: 'uint256',
4298
+ type: 'uint256',
4299
+ indexed: false,
4300
+ },
4301
+ {
4302
+ name: 'minQuoteAtSeed',
4303
+ internalType: 'uint256',
4304
+ type: 'uint256',
4305
+ indexed: false,
4306
+ },
4307
+ ],
4308
+ name: 'PolicySet',
4309
+ },
4310
+ { type: 'error', inputs: [], name: 'BadRate' },
4311
+ { type: 'error', inputs: [], name: 'NotAuthority' },
4312
+ { type: 'error', inputs: [], name: 'NotCollector' },
4313
+ { type: 'error', inputs: [], name: 'NotManager' },
4314
+ { type: 'error', inputs: [], name: 'QuoteTooThin' },
4315
+ { type: 'error', inputs: [], name: 'Refused' },
4316
+ ];
4317
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4318
+ // PrivateHook
4319
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4320
+ export const privateHookAbi = [
4321
+ {
4322
+ type: 'constructor',
4323
+ inputs: [
4324
+ {
4325
+ name: '_manager',
4326
+ internalType: 'contract FPoolManager',
4327
+ type: 'address',
4328
+ },
4329
+ ],
4330
+ stateMutability: 'nonpayable',
4331
+ },
4332
+ {
4333
+ type: 'function',
4334
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
4335
+ name: 'acceptAuthority',
4336
+ outputs: [],
4337
+ stateMutability: 'nonpayable',
4338
+ },
4339
+ {
4340
+ type: 'function',
4341
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
4342
+ name: 'acceptOperator',
4343
+ outputs: [],
4344
+ stateMutability: 'nonpayable',
4345
+ },
4346
+ {
4347
+ type: 'function',
4348
+ inputs: [
4349
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4350
+ { name: 'who', internalType: 'address', type: 'address' },
4351
+ ],
4352
+ name: 'appointOperator',
4353
+ outputs: [],
4354
+ stateMutability: 'nonpayable',
4355
+ },
4356
+ {
4357
+ type: 'function',
4358
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4359
+ name: 'authority',
4360
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4361
+ stateMutability: 'view',
4362
+ },
4363
+ {
4364
+ type: 'function',
4365
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4366
+ name: 'creator',
4367
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4368
+ stateMutability: 'view',
4369
+ },
4370
+ {
4371
+ type: 'function',
4372
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4373
+ name: 'gateMint',
4374
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4375
+ stateMutability: 'view',
4376
+ },
4377
+ {
4378
+ type: 'function',
4379
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4380
+ name: 'gateSwap',
4381
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4382
+ stateMutability: 'view',
4383
+ },
4384
+ {
4385
+ type: 'function',
4386
+ inputs: [],
4387
+ name: 'harvestCut',
4388
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4389
+ stateMutability: 'view',
4390
+ },
4391
+ {
4392
+ type: 'function',
4393
+ inputs: [
4394
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4395
+ { name: 'who', internalType: 'address', type: 'address' },
4396
+ ],
4397
+ name: 'isAllowed',
4398
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4399
+ stateMutability: 'view',
4400
+ },
4401
+ {
4402
+ type: 'function',
4403
+ inputs: [],
4404
+ name: 'manager',
4405
+ outputs: [
4406
+ { name: '', internalType: 'contract FPoolManager', type: 'address' },
4407
+ ],
4408
+ stateMutability: 'view',
4409
+ },
4410
+ {
4411
+ type: 'function',
4412
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
4413
+ name: 'maxHarvest',
4414
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4415
+ stateMutability: 'view',
4416
+ },
4417
+ {
4418
+ type: 'function',
4419
+ inputs: [
4420
+ {
4421
+ name: 'a',
4422
+ internalType: 'struct IFHook.Ask',
4423
+ type: 'tuple',
4424
+ components: [
4425
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4426
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
4427
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
4428
+ { name: 'who', internalType: 'address', type: 'address' },
4429
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4430
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
4431
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
4432
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
4433
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
4434
+ ],
4435
+ },
4436
+ ],
4437
+ name: 'may',
4438
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
4439
+ stateMutability: 'view',
4440
+ },
4441
+ {
4442
+ type: 'function',
4443
+ inputs: [
4444
+ {
4445
+ name: 'a',
4446
+ internalType: 'struct IFHook.Ask',
4447
+ type: 'tuple',
4448
+ components: [
4449
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4450
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
4451
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
4452
+ { name: 'who', internalType: 'address', type: 'address' },
4453
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4454
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
4455
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
4456
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
4457
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
4458
+ ],
4459
+ },
4460
+ ],
4461
+ name: 'onHarvest',
4462
+ outputs: [
4463
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4464
+ { name: 'cut', internalType: 'uint256', type: 'uint256' },
4465
+ ],
4466
+ stateMutability: 'view',
4467
+ },
4468
+ {
4469
+ type: 'function',
4470
+ inputs: [
4471
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4472
+ {
4473
+ name: 'key',
4474
+ internalType: 'struct FPoolKey',
4475
+ type: 'tuple',
4476
+ components: [
4477
+ { name: 'quote', internalType: 'address', type: 'address' },
4478
+ { name: 'bases', internalType: 'address[]', type: 'address[]' },
4479
+ { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
4480
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
4481
+ { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
4482
+ { name: 'hook', internalType: 'address', type: 'address' },
4483
+ { name: 'creator', internalType: 'address', type: 'address' },
4484
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
4485
+ ],
4486
+ },
4487
+ ],
4488
+ name: 'onInitialize',
4489
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4490
+ stateMutability: 'nonpayable',
4491
+ },
4492
+ {
4493
+ type: 'function',
4494
+ inputs: [
4495
+ {
4496
+ name: 'a',
4497
+ internalType: 'struct IFHook.Ask',
4498
+ type: 'tuple',
4499
+ components: [
4500
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4501
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
4502
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
4503
+ { name: 'who', internalType: 'address', type: 'address' },
4504
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4505
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
4506
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
4507
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
4508
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
4509
+ ],
4510
+ },
4511
+ ],
4512
+ name: 'onRegenerate',
4513
+ outputs: [
4514
+ {
4515
+ name: 't',
4516
+ internalType: 'struct IFHook.Terms',
4517
+ type: 'tuple',
4518
+ components: [
4519
+ { name: 'payee', internalType: 'address', type: 'address' },
4520
+ { name: 'toPayee', internalType: 'uint256', type: 'uint256' },
4521
+ { name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
4522
+ { name: 'burn', internalType: 'uint256', type: 'uint256' },
4523
+ ],
4524
+ },
4525
+ ],
4526
+ stateMutability: 'nonpayable',
4527
+ },
4528
+ {
4529
+ type: 'function',
4530
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4531
+ name: 'operator',
4532
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4533
+ stateMutability: 'view',
4534
+ },
4535
+ {
4536
+ type: 'function',
4537
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
4538
+ name: 'operatorOf',
4539
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4540
+ stateMutability: 'view',
4541
+ },
4542
+ {
4543
+ type: 'function',
4544
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4545
+ name: 'pendingAuthority',
4546
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4547
+ stateMutability: 'view',
4548
+ },
4549
+ {
4550
+ type: 'function',
4551
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4552
+ name: 'pendingOperator',
4553
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4554
+ stateMutability: 'view',
4555
+ },
4556
+ {
4557
+ type: 'function',
4558
+ inputs: [
4559
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4560
+ { name: 'next', internalType: 'address', type: 'address' },
4561
+ ],
4562
+ name: 'proposeAuthority',
4563
+ outputs: [],
4564
+ stateMutability: 'nonpayable',
4565
+ },
4566
+ {
4567
+ type: 'function',
4568
+ inputs: [
4569
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4570
+ { name: 'who', internalType: 'address[]', type: 'address[]' },
4571
+ { name: 'yes', internalType: 'bool', type: 'bool' },
4572
+ ],
4573
+ name: 'setAllowed',
4574
+ outputs: [],
4575
+ stateMutability: 'nonpayable',
4576
+ },
4577
+ {
4578
+ type: 'function',
4579
+ inputs: [
4580
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4581
+ { name: '_gateMint', internalType: 'bool', type: 'bool' },
4582
+ { name: '_gateSwap', internalType: 'bool', type: 'bool' },
4583
+ ],
4584
+ name: 'setGates',
4585
+ outputs: [],
4586
+ stateMutability: 'nonpayable',
4587
+ },
4588
+ {
4589
+ type: 'function',
4590
+ inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
4591
+ name: 'setHarvestCut',
4592
+ outputs: [],
4593
+ stateMutability: 'nonpayable',
4594
+ },
4595
+ {
4596
+ type: 'event',
4597
+ anonymous: false,
4598
+ inputs: [
4599
+ {
4600
+ name: 'poolId',
4601
+ internalType: 'bytes32',
4602
+ type: 'bytes32',
4603
+ indexed: true,
4604
+ },
4605
+ {
4606
+ name: 'authority',
4607
+ internalType: 'address',
4608
+ type: 'address',
4609
+ indexed: true,
4610
+ },
4611
+ { name: 'who', internalType: 'address', type: 'address', indexed: true },
4612
+ { name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
4613
+ ],
4614
+ name: 'Allowed',
4615
+ },
4616
+ {
4617
+ type: 'event',
4618
+ anonymous: false,
4619
+ inputs: [
4620
+ {
4621
+ name: 'poolId',
4622
+ internalType: 'bytes32',
4623
+ type: 'bytes32',
4624
+ indexed: true,
4625
+ },
4626
+ {
4627
+ name: 'current',
4628
+ internalType: 'address',
4629
+ type: 'address',
4630
+ indexed: true,
4631
+ },
4632
+ {
4633
+ name: 'proposed',
4634
+ internalType: 'address',
4635
+ type: 'address',
4636
+ indexed: true,
4637
+ },
4638
+ ],
4639
+ name: 'AuthorityProposed',
4640
+ },
4641
+ {
4642
+ type: 'event',
4643
+ anonymous: false,
4644
+ inputs: [
4645
+ {
4646
+ name: 'poolId',
4647
+ internalType: 'bytes32',
4648
+ type: 'bytes32',
4649
+ indexed: true,
4650
+ },
4651
+ { name: 'prev', internalType: 'address', type: 'address', indexed: true },
4652
+ { name: 'next', internalType: 'address', type: 'address', indexed: true },
4653
+ ],
4654
+ name: 'AuthoritySet',
4655
+ },
4656
+ {
4657
+ type: 'event',
4658
+ anonymous: false,
4659
+ inputs: [
4660
+ {
4661
+ name: 'poolId',
4662
+ internalType: 'bytes32',
4663
+ type: 'bytes32',
4664
+ indexed: true,
4665
+ },
4666
+ { name: 'gateMint', internalType: 'bool', type: 'bool', indexed: false },
4667
+ { name: 'gateSwap', internalType: 'bool', type: 'bool', indexed: false },
4668
+ ],
4669
+ name: 'GatesSet',
4670
+ },
4671
+ {
4672
+ type: 'event',
4673
+ anonymous: false,
4674
+ inputs: [
4675
+ {
4676
+ name: 'harvestCut',
4677
+ internalType: 'uint256',
4678
+ type: 'uint256',
4679
+ indexed: false,
4680
+ },
4681
+ ],
4682
+ name: 'HarvestCutSet',
4683
+ },
4684
+ {
4685
+ type: 'event',
4686
+ anonymous: false,
4687
+ inputs: [
4688
+ {
4689
+ name: 'poolId',
4690
+ internalType: 'bytes32',
4691
+ type: 'bytes32',
4692
+ indexed: true,
4693
+ },
4694
+ {
4695
+ name: 'current',
4696
+ internalType: 'address',
4697
+ type: 'address',
4698
+ indexed: true,
4699
+ },
4700
+ {
4701
+ name: 'proposed',
4702
+ internalType: 'address',
4703
+ type: 'address',
4704
+ indexed: true,
4705
+ },
4706
+ ],
4707
+ name: 'OperatorProposed',
4708
+ },
4709
+ {
4710
+ type: 'event',
4711
+ anonymous: false,
4712
+ inputs: [
4713
+ {
4714
+ name: 'poolId',
4715
+ internalType: 'bytes32',
4716
+ type: 'bytes32',
4717
+ indexed: true,
4718
+ },
4719
+ { name: 'prev', internalType: 'address', type: 'address', indexed: true },
4720
+ { name: 'next', internalType: 'address', type: 'address', indexed: true },
4721
+ ],
4722
+ name: 'OperatorSet',
4723
+ },
4724
+ { type: 'error', inputs: [], name: 'BadRate' },
4725
+ { type: 'error', inputs: [], name: 'NotAuthority' },
4726
+ { type: 'error', inputs: [], name: 'NotCollector' },
4727
+ { type: 'error', inputs: [], name: 'NotManager' },
4728
+ { type: 'error', inputs: [], name: 'NotOperator' },
4729
+ { type: 'error', inputs: [], name: 'Refused' },
4730
+ ];
4731
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4732
+ // PublicHook
4733
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4734
+ export const publicHookAbi = [
4735
+ {
4736
+ type: 'constructor',
4737
+ inputs: [
4738
+ {
4739
+ name: '_manager',
4740
+ internalType: 'contract FPoolManager',
4741
+ type: 'address',
4742
+ },
4743
+ ],
4744
+ stateMutability: 'nonpayable',
4745
+ },
4746
+ {
4747
+ type: 'function',
4748
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
4749
+ name: 'acceptAuthority',
4750
+ outputs: [],
4751
+ stateMutability: 'nonpayable',
4752
+ },
4753
+ {
4754
+ type: 'function',
4755
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4756
+ name: 'authority',
4757
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4758
+ stateMutability: 'view',
4759
+ },
4760
+ {
4761
+ type: 'function',
4762
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4763
+ name: 'creator',
4764
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4765
+ stateMutability: 'view',
4766
+ },
4767
+ {
4768
+ type: 'function',
4769
+ inputs: [],
4770
+ name: 'curated',
4771
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4772
+ stateMutability: 'view',
4773
+ },
4774
+ {
4775
+ type: 'function',
4776
+ inputs: [],
4777
+ name: 'harvestCut',
4778
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4779
+ stateMutability: 'view',
4780
+ },
4781
+ {
4782
+ type: 'function',
4783
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
4784
+ name: 'listed',
4785
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4786
+ stateMutability: 'view',
4787
+ },
4788
+ {
4789
+ type: 'function',
4790
+ inputs: [],
4791
+ name: 'manager',
4792
+ outputs: [
4793
+ { name: '', internalType: 'contract FPoolManager', type: 'address' },
4794
+ ],
4795
+ stateMutability: 'view',
4796
+ },
4797
+ {
4798
+ type: 'function',
4799
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
4800
+ name: 'maxHarvest',
4801
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4802
+ stateMutability: 'view',
4803
+ },
4804
+ {
4805
+ type: 'function',
4806
+ inputs: [
4807
+ {
4808
+ name: 'a',
4809
+ internalType: 'struct IFHook.Ask',
4810
+ type: 'tuple',
4811
+ components: [
4812
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4813
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
4814
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
4815
+ { name: 'who', internalType: 'address', type: 'address' },
4816
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4817
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
4818
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
4819
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
4820
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
4821
+ ],
4822
+ },
4823
+ ],
4824
+ name: 'may',
4825
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
4826
+ stateMutability: 'view',
4827
+ },
4828
+ {
4829
+ type: 'function',
4830
+ inputs: [
4831
+ {
4832
+ name: 'a',
4833
+ internalType: 'struct IFHook.Ask',
4834
+ type: 'tuple',
4835
+ components: [
4836
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4837
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
4838
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
4839
+ { name: 'who', internalType: 'address', type: 'address' },
4840
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4841
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
4842
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
4843
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
4844
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
4845
+ ],
4846
+ },
4847
+ ],
4848
+ name: 'onHarvest',
4849
+ outputs: [
4850
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4851
+ { name: 'cut', internalType: 'uint256', type: 'uint256' },
4852
+ ],
4853
+ stateMutability: 'view',
4854
+ },
4855
+ {
4856
+ type: 'function',
4857
+ inputs: [
4858
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4859
+ {
4860
+ name: 'key',
4861
+ internalType: 'struct FPoolKey',
4862
+ type: 'tuple',
4863
+ components: [
4864
+ { name: 'quote', internalType: 'address', type: 'address' },
4865
+ { name: 'bases', internalType: 'address[]', type: 'address[]' },
4866
+ { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
4867
+ { name: 'phi', internalType: 'uint256', type: 'uint256' },
4868
+ { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
4869
+ { name: 'hook', internalType: 'address', type: 'address' },
4870
+ { name: 'creator', internalType: 'address', type: 'address' },
4871
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
4872
+ ],
4873
+ },
4874
+ ],
4875
+ name: 'onInitialize',
4876
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4877
+ stateMutability: 'nonpayable',
4878
+ },
4879
+ {
4880
+ type: 'function',
4881
+ inputs: [
4882
+ {
4883
+ name: 'a',
4884
+ internalType: 'struct IFHook.Ask',
4885
+ type: 'tuple',
4886
+ components: [
4887
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4888
+ { name: 'gen', internalType: 'uint256', type: 'uint256' },
4889
+ { name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
4890
+ { name: 'who', internalType: 'address', type: 'address' },
4891
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
4892
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
4893
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
4894
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
4895
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
4896
+ ],
4897
+ },
4898
+ ],
4899
+ name: 'onRegenerate',
4900
+ outputs: [
4901
+ {
4902
+ name: 't',
4903
+ internalType: 'struct IFHook.Terms',
4904
+ type: 'tuple',
4905
+ components: [
4906
+ { name: 'payee', internalType: 'address', type: 'address' },
4907
+ { name: 'toPayee', internalType: 'uint256', type: 'uint256' },
4908
+ { name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
4909
+ { name: 'burn', internalType: 'uint256', type: 'uint256' },
4910
+ ],
4911
+ },
4912
+ ],
4913
+ stateMutability: 'nonpayable',
4914
+ },
4915
+ {
4916
+ type: 'function',
4917
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4918
+ name: 'pendingAuthority',
4919
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4920
+ stateMutability: 'view',
4921
+ },
4922
+ {
4923
+ type: 'function',
4924
+ inputs: [
4925
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4926
+ { name: 'next', internalType: 'address', type: 'address' },
4927
+ ],
4928
+ name: 'proposeAuthority',
4929
+ outputs: [],
4930
+ stateMutability: 'nonpayable',
4931
+ },
4932
+ {
4933
+ type: 'function',
4934
+ inputs: [{ name: '_curated', internalType: 'bool', type: 'bool' }],
4935
+ name: 'setCurated',
4936
+ outputs: [],
4937
+ stateMutability: 'nonpayable',
4938
+ },
4939
+ {
4940
+ type: 'function',
4941
+ inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
4942
+ name: 'setHarvestCut',
4943
+ outputs: [],
4944
+ stateMutability: 'nonpayable',
4945
+ },
4946
+ {
4947
+ type: 'function',
4948
+ inputs: [
4949
+ { name: 'token', internalType: 'address', type: 'address' },
4950
+ { name: '_listed', internalType: 'bool', type: 'bool' },
4951
+ ],
4952
+ name: 'setListed',
4953
+ outputs: [],
4954
+ stateMutability: 'nonpayable',
4955
+ },
4956
+ {
4957
+ type: 'event',
4958
+ anonymous: false,
4959
+ inputs: [
4960
+ {
4961
+ name: 'poolId',
4962
+ internalType: 'bytes32',
4963
+ type: 'bytes32',
4964
+ indexed: true,
4965
+ },
4966
+ {
4967
+ name: 'current',
4968
+ internalType: 'address',
4969
+ type: 'address',
4970
+ indexed: true,
4971
+ },
4972
+ {
4973
+ name: 'proposed',
4974
+ internalType: 'address',
4975
+ type: 'address',
4976
+ indexed: true,
4977
+ },
4978
+ ],
4979
+ name: 'AuthorityProposed',
4980
+ },
4981
+ {
4982
+ type: 'event',
4983
+ anonymous: false,
4984
+ inputs: [
4985
+ {
4986
+ name: 'poolId',
4987
+ internalType: 'bytes32',
4988
+ type: 'bytes32',
4989
+ indexed: true,
4990
+ },
4991
+ { name: 'prev', internalType: 'address', type: 'address', indexed: true },
4992
+ { name: 'next', internalType: 'address', type: 'address', indexed: true },
4993
+ ],
4994
+ name: 'AuthoritySet',
4995
+ },
4996
+ {
4997
+ type: 'event',
4998
+ anonymous: false,
4999
+ inputs: [
5000
+ { name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
5001
+ ],
5002
+ name: 'CuratedSet',
5003
+ },
5004
+ {
5005
+ type: 'event',
5006
+ anonymous: false,
5007
+ inputs: [
5008
+ {
5009
+ name: 'harvestCut',
5010
+ internalType: 'uint256',
5011
+ type: 'uint256',
5012
+ indexed: false,
5013
+ },
5014
+ ],
5015
+ name: 'HarvestCutSet',
5016
+ },
5017
+ {
5018
+ type: 'event',
5019
+ anonymous: false,
5020
+ inputs: [
5021
+ {
5022
+ name: 'token',
5023
+ internalType: 'address',
5024
+ type: 'address',
5025
+ indexed: true,
5026
+ },
5027
+ { name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
5028
+ ],
5029
+ name: 'Listed',
5030
+ },
5031
+ { type: 'error', inputs: [], name: 'BadRate' },
5032
+ { type: 'error', inputs: [], name: 'NotAuthority' },
5033
+ { type: 'error', inputs: [], name: 'NotCollector' },
5034
+ {
5035
+ type: 'error',
5036
+ inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
5037
+ name: 'NotListed',
5038
+ },
5039
+ { type: 'error', inputs: [], name: 'NotManager' },
5040
+ { type: 'error', inputs: [], name: 'Refused' },
5041
+ ];