@logswap/sdk 0.5.45 → 0.5.47
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/admin.d.ts +38 -9
- package/dist/admin.js +50 -14
- package/dist/client.d.ts +9 -1
- package/dist/client.js +10 -1
- package/dist/fpool.d.ts +682 -74
- package/dist/fpool.js +251 -113
- package/dist/generated.d.ts +2454 -425
- package/dist/generated.js +1554 -293
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/liquidity.d.ts +2 -0
- package/dist/liquidity.js +1 -0
- package/package.json +1 -1
- package/src/admin.ts +65 -15
- package/src/client.ts +18 -1
- package/src/fpool.ts +365 -162
- package/src/generated.ts +1562 -293
- package/src/index.ts +1 -1
- package/src/liquidity.ts +3 -0
package/dist/generated.js
CHANGED
|
@@ -1041,6 +1041,20 @@ export const fPoolManagerAbi = [
|
|
|
1041
1041
|
],
|
|
1042
1042
|
stateMutability: 'nonpayable',
|
|
1043
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
|
+
},
|
|
1044
1058
|
{
|
|
1045
1059
|
type: 'function',
|
|
1046
1060
|
inputs: [],
|
|
@@ -1051,7 +1065,7 @@ export const fPoolManagerAbi = [
|
|
|
1051
1065
|
{
|
|
1052
1066
|
type: 'function',
|
|
1053
1067
|
inputs: [],
|
|
1054
|
-
name: '
|
|
1068
|
+
name: 'HARVEST_CUT_MAX',
|
|
1055
1069
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1056
1070
|
stateMutability: 'view',
|
|
1057
1071
|
},
|
|
@@ -1071,10 +1085,10 @@ export const fPoolManagerAbi = [
|
|
|
1071
1085
|
},
|
|
1072
1086
|
{
|
|
1073
1087
|
type: 'function',
|
|
1074
|
-
inputs: [
|
|
1075
|
-
name: '
|
|
1076
|
-
outputs: [],
|
|
1077
|
-
stateMutability: '
|
|
1088
|
+
inputs: [],
|
|
1089
|
+
name: 'POT_CUT_MAX',
|
|
1090
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1091
|
+
stateMutability: 'view',
|
|
1078
1092
|
},
|
|
1079
1093
|
{
|
|
1080
1094
|
type: 'function',
|
|
@@ -1083,13 +1097,6 @@ export const fPoolManagerAbi = [
|
|
|
1083
1097
|
outputs: [],
|
|
1084
1098
|
stateMutability: 'nonpayable',
|
|
1085
1099
|
},
|
|
1086
|
-
{
|
|
1087
|
-
type: 'function',
|
|
1088
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1089
|
-
name: 'acceptOperator',
|
|
1090
|
-
outputs: [],
|
|
1091
|
-
stateMutability: 'nonpayable',
|
|
1092
|
-
},
|
|
1093
1100
|
{
|
|
1094
1101
|
type: 'function',
|
|
1095
1102
|
inputs: [
|
|
@@ -1101,26 +1108,6 @@ export const fPoolManagerAbi = [
|
|
|
1101
1108
|
outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
1102
1109
|
stateMutability: 'view',
|
|
1103
1110
|
},
|
|
1104
|
-
{
|
|
1105
|
-
type: 'function',
|
|
1106
|
-
inputs: [
|
|
1107
|
-
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
1108
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
1109
|
-
],
|
|
1110
|
-
name: 'allowed',
|
|
1111
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1112
|
-
stateMutability: 'view',
|
|
1113
|
-
},
|
|
1114
|
-
{
|
|
1115
|
-
type: 'function',
|
|
1116
|
-
inputs: [
|
|
1117
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1118
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
1119
|
-
],
|
|
1120
|
-
name: 'appointOperator',
|
|
1121
|
-
outputs: [],
|
|
1122
|
-
stateMutability: 'nonpayable',
|
|
1123
|
-
},
|
|
1124
1111
|
{
|
|
1125
1112
|
type: 'function',
|
|
1126
1113
|
inputs: [
|
|
@@ -1142,6 +1129,15 @@ export const fPoolManagerAbi = [
|
|
|
1142
1129
|
outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
1143
1130
|
stateMutability: 'view',
|
|
1144
1131
|
},
|
|
1132
|
+
{
|
|
1133
|
+
type: 'function',
|
|
1134
|
+
inputs: [],
|
|
1135
|
+
name: 'boundary',
|
|
1136
|
+
outputs: [
|
|
1137
|
+
{ name: '', internalType: 'contract FPoolBoundary', type: 'address' },
|
|
1138
|
+
],
|
|
1139
|
+
stateMutability: 'view',
|
|
1140
|
+
},
|
|
1145
1141
|
{
|
|
1146
1142
|
type: 'function',
|
|
1147
1143
|
inputs: [
|
|
@@ -1227,13 +1223,6 @@ export const fPoolManagerAbi = [
|
|
|
1227
1223
|
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
1228
1224
|
stateMutability: 'view',
|
|
1229
1225
|
},
|
|
1230
|
-
{
|
|
1231
|
-
type: 'function',
|
|
1232
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1233
|
-
name: 'dissolve',
|
|
1234
|
-
outputs: [],
|
|
1235
|
-
stateMutability: 'nonpayable',
|
|
1236
|
-
},
|
|
1237
1226
|
{
|
|
1238
1227
|
type: 'function',
|
|
1239
1228
|
inputs: [
|
|
@@ -1252,13 +1241,6 @@ export const fPoolManagerAbi = [
|
|
|
1252
1241
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1253
1242
|
stateMutability: 'view',
|
|
1254
1243
|
},
|
|
1255
|
-
{
|
|
1256
|
-
type: 'function',
|
|
1257
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1258
|
-
name: 'edgePerL',
|
|
1259
|
-
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
1260
|
-
stateMutability: 'view',
|
|
1261
|
-
},
|
|
1262
1244
|
{
|
|
1263
1245
|
type: 'function',
|
|
1264
1246
|
inputs: [],
|
|
@@ -1266,13 +1248,6 @@ export const fPoolManagerAbi = [
|
|
|
1266
1248
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1267
1249
|
stateMutability: 'view',
|
|
1268
1250
|
},
|
|
1269
|
-
{
|
|
1270
|
-
type: 'function',
|
|
1271
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1272
|
-
name: 'feePerL',
|
|
1273
|
-
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
1274
|
-
stateMutability: 'view',
|
|
1275
|
-
},
|
|
1276
1251
|
{
|
|
1277
1252
|
type: 'function',
|
|
1278
1253
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -1285,28 +1260,18 @@ export const fPoolManagerAbi = [
|
|
|
1285
1260
|
components: [
|
|
1286
1261
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
1287
1262
|
{ name: 'phi', internalType: 'uint96', type: 'uint96' },
|
|
1288
|
-
{ name: '
|
|
1263
|
+
{ name: 'hook', internalType: 'address', type: 'address' },
|
|
1289
1264
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1290
1265
|
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
1291
1266
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
1292
1267
|
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
1293
1268
|
{ name: 'restructureBlock', internalType: 'uint32', type: 'uint32' },
|
|
1294
|
-
{ name: '
|
|
1295
|
-
{ name: 'gateSwap', internalType: 'bool', type: 'bool' },
|
|
1269
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
1296
1270
|
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
1297
1271
|
{ name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
|
|
1298
1272
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
1299
1273
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
1300
1274
|
{ name: 'theta0', internalType: 'int256', type: 'int256' },
|
|
1301
|
-
{ name: 'harvestedTheta', internalType: 'int256', type: 'int256' },
|
|
1302
|
-
{
|
|
1303
|
-
name: 'pendingAuthority',
|
|
1304
|
-
internalType: 'address',
|
|
1305
|
-
type: 'address',
|
|
1306
|
-
},
|
|
1307
|
-
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
1308
|
-
{ name: 'pendingOperator', internalType: 'address', type: 'address' },
|
|
1309
|
-
{ name: 'incomeTaken', internalType: 'uint256', type: 'uint256' },
|
|
1310
1275
|
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
1311
1276
|
],
|
|
1312
1277
|
},
|
|
@@ -1326,8 +1291,18 @@ export const fPoolManagerAbi = [
|
|
|
1326
1291
|
},
|
|
1327
1292
|
{
|
|
1328
1293
|
type: 'function',
|
|
1329
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
1330
|
-
name: '
|
|
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',
|
|
1331
1306
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1332
1307
|
stateMutability: 'view',
|
|
1333
1308
|
},
|
|
@@ -1344,7 +1319,8 @@ export const fPoolManagerAbi = [
|
|
|
1344
1319
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1345
1320
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
1346
1321
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1347
|
-
{ name: '
|
|
1322
|
+
{ name: 'hook', internalType: 'address', type: 'address' },
|
|
1323
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
1348
1324
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
1349
1325
|
],
|
|
1350
1326
|
},
|
|
@@ -1366,7 +1342,8 @@ export const fPoolManagerAbi = [
|
|
|
1366
1342
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1367
1343
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
1368
1344
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1369
|
-
{ name: '
|
|
1345
|
+
{ name: 'hook', internalType: 'address', type: 'address' },
|
|
1346
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
1370
1347
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
1371
1348
|
],
|
|
1372
1349
|
},
|
|
@@ -1437,13 +1414,6 @@ export const fPoolManagerAbi = [
|
|
|
1437
1414
|
outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
1438
1415
|
stateMutability: 'nonpayable',
|
|
1439
1416
|
},
|
|
1440
|
-
{
|
|
1441
|
-
type: 'function',
|
|
1442
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1443
|
-
name: 'n',
|
|
1444
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1445
|
-
stateMutability: 'view',
|
|
1446
|
-
},
|
|
1447
1417
|
{
|
|
1448
1418
|
type: 'function',
|
|
1449
1419
|
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -1479,16 +1449,6 @@ export const fPoolManagerAbi = [
|
|
|
1479
1449
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1480
1450
|
stateMutability: 'view',
|
|
1481
1451
|
},
|
|
1482
|
-
{
|
|
1483
|
-
type: 'function',
|
|
1484
|
-
inputs: [
|
|
1485
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1486
|
-
{ name: 'next', internalType: 'address', type: 'address' },
|
|
1487
|
-
],
|
|
1488
|
-
name: 'proposeAuthority',
|
|
1489
|
-
outputs: [],
|
|
1490
|
-
stateMutability: 'nonpayable',
|
|
1491
|
-
},
|
|
1492
1452
|
{
|
|
1493
1453
|
type: 'function',
|
|
1494
1454
|
inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
|
|
@@ -1526,6 +1486,16 @@ export const fPoolManagerAbi = [
|
|
|
1526
1486
|
outputs: [{ name: 'quoteOut', internalType: 'uint256', type: 'uint256' }],
|
|
1527
1487
|
stateMutability: 'nonpayable',
|
|
1528
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
|
+
},
|
|
1529
1499
|
{
|
|
1530
1500
|
type: 'function',
|
|
1531
1501
|
inputs: [
|
|
@@ -1536,6 +1506,13 @@ export const fPoolManagerAbi = [
|
|
|
1536
1506
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1537
1507
|
stateMutability: 'view',
|
|
1538
1508
|
},
|
|
1509
|
+
{
|
|
1510
|
+
type: 'function',
|
|
1511
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1512
|
+
name: 'retire',
|
|
1513
|
+
outputs: [],
|
|
1514
|
+
stateMutability: 'nonpayable',
|
|
1515
|
+
},
|
|
1539
1516
|
{
|
|
1540
1517
|
type: 'function',
|
|
1541
1518
|
inputs: [
|
|
@@ -1548,22 +1525,10 @@ export const fPoolManagerAbi = [
|
|
|
1548
1525
|
outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
|
|
1549
1526
|
stateMutability: 'nonpayable',
|
|
1550
1527
|
},
|
|
1551
|
-
{
|
|
1552
|
-
type: 'function',
|
|
1553
|
-
inputs: [
|
|
1554
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1555
|
-
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
1556
|
-
{ name: 'yes', internalType: 'bool', type: 'bool' },
|
|
1557
|
-
],
|
|
1558
|
-
name: 'setAllowed',
|
|
1559
|
-
outputs: [],
|
|
1560
|
-
stateMutability: 'nonpayable',
|
|
1561
|
-
},
|
|
1562
1528
|
{
|
|
1563
1529
|
type: 'function',
|
|
1564
1530
|
inputs: [
|
|
1565
1531
|
{ name: 'mintFeeProtocolCut', internalType: 'uint256', type: 'uint256' },
|
|
1566
|
-
{ name: 'harvestProtocolCut', internalType: 'uint256', type: 'uint256' },
|
|
1567
1532
|
],
|
|
1568
1533
|
name: 'setFeeParams',
|
|
1569
1534
|
outputs: [],
|
|
@@ -1572,21 +1537,11 @@ export const fPoolManagerAbi = [
|
|
|
1572
1537
|
{
|
|
1573
1538
|
type: 'function',
|
|
1574
1539
|
inputs: [
|
|
1575
|
-
{ name: '
|
|
1576
|
-
{ name: '
|
|
1577
|
-
{ name: '
|
|
1578
|
-
],
|
|
1579
|
-
name: 'setGates',
|
|
1580
|
-
outputs: [],
|
|
1581
|
-
stateMutability: 'nonpayable',
|
|
1582
|
-
},
|
|
1583
|
-
{
|
|
1584
|
-
type: 'function',
|
|
1585
|
-
inputs: [
|
|
1586
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1587
|
-
{ 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' },
|
|
1588
1543
|
],
|
|
1589
|
-
name: '
|
|
1544
|
+
name: 'setHookApproved',
|
|
1590
1545
|
outputs: [],
|
|
1591
1546
|
stateMutability: 'nonpayable',
|
|
1592
1547
|
},
|
|
@@ -1764,6 +1719,13 @@ export const fPoolManagerAbi = [
|
|
|
1764
1719
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1765
1720
|
stateMutability: 'payable',
|
|
1766
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
|
+
},
|
|
1767
1729
|
{
|
|
1768
1730
|
type: 'function',
|
|
1769
1731
|
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
@@ -1778,21 +1740,6 @@ export const fPoolManagerAbi = [
|
|
|
1778
1740
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1779
1741
|
stateMutability: 'pure',
|
|
1780
1742
|
},
|
|
1781
|
-
{
|
|
1782
|
-
type: 'event',
|
|
1783
|
-
anonymous: false,
|
|
1784
|
-
inputs: [
|
|
1785
|
-
{
|
|
1786
|
-
name: 'poolId',
|
|
1787
|
-
internalType: 'bytes32',
|
|
1788
|
-
type: 'bytes32',
|
|
1789
|
-
indexed: true,
|
|
1790
|
-
},
|
|
1791
|
-
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
1792
|
-
{ name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
|
|
1793
|
-
],
|
|
1794
|
-
name: 'Allowed',
|
|
1795
|
-
},
|
|
1796
1743
|
{
|
|
1797
1744
|
type: 'event',
|
|
1798
1745
|
anonymous: false,
|
|
@@ -1829,52 +1776,7 @@ export const fPoolManagerAbi = [
|
|
|
1829
1776
|
type: 'bytes32',
|
|
1830
1777
|
indexed: true,
|
|
1831
1778
|
},
|
|
1832
|
-
{
|
|
1833
|
-
name: 'current',
|
|
1834
|
-
internalType: 'address',
|
|
1835
|
-
type: 'address',
|
|
1836
|
-
indexed: true,
|
|
1837
|
-
},
|
|
1838
|
-
{
|
|
1839
|
-
name: 'proposed',
|
|
1840
|
-
internalType: 'address',
|
|
1841
|
-
type: 'address',
|
|
1842
|
-
indexed: true,
|
|
1843
|
-
},
|
|
1844
|
-
],
|
|
1845
|
-
name: 'AuthorityProposed',
|
|
1846
|
-
},
|
|
1847
|
-
{
|
|
1848
|
-
type: 'event',
|
|
1849
|
-
anonymous: false,
|
|
1850
|
-
inputs: [
|
|
1851
|
-
{
|
|
1852
|
-
name: 'poolId',
|
|
1853
|
-
internalType: 'bytes32',
|
|
1854
|
-
type: 'bytes32',
|
|
1855
|
-
indexed: true,
|
|
1856
|
-
},
|
|
1857
|
-
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
1858
|
-
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
1859
|
-
],
|
|
1860
|
-
name: 'AuthoritySet',
|
|
1861
|
-
},
|
|
1862
|
-
{
|
|
1863
|
-
type: 'event',
|
|
1864
|
-
anonymous: false,
|
|
1865
|
-
inputs: [
|
|
1866
|
-
{
|
|
1867
|
-
name: 'poolId',
|
|
1868
|
-
internalType: 'bytes32',
|
|
1869
|
-
type: 'bytes32',
|
|
1870
|
-
indexed: true,
|
|
1871
|
-
},
|
|
1872
|
-
{
|
|
1873
|
-
name: 'sender',
|
|
1874
|
-
internalType: 'address',
|
|
1875
|
-
type: 'address',
|
|
1876
|
-
indexed: true,
|
|
1877
|
-
},
|
|
1779
|
+
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
|
1878
1780
|
{ name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1879
1781
|
{
|
|
1880
1782
|
name: 'shares',
|
|
@@ -1929,32 +1831,6 @@ export const fPoolManagerAbi = [
|
|
|
1929
1831
|
],
|
|
1930
1832
|
name: 'CollectorProposed',
|
|
1931
1833
|
},
|
|
1932
|
-
{
|
|
1933
|
-
type: 'event',
|
|
1934
|
-
anonymous: false,
|
|
1935
|
-
inputs: [
|
|
1936
|
-
{
|
|
1937
|
-
name: 'poolId',
|
|
1938
|
-
internalType: 'bytes32',
|
|
1939
|
-
type: 'bytes32',
|
|
1940
|
-
indexed: true,
|
|
1941
|
-
},
|
|
1942
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
1943
|
-
{
|
|
1944
|
-
name: 'supply',
|
|
1945
|
-
internalType: 'uint256',
|
|
1946
|
-
type: 'uint256',
|
|
1947
|
-
indexed: false,
|
|
1948
|
-
},
|
|
1949
|
-
{
|
|
1950
|
-
name: 'quote',
|
|
1951
|
-
internalType: 'uint256',
|
|
1952
|
-
type: 'uint256',
|
|
1953
|
-
indexed: false,
|
|
1954
|
-
},
|
|
1955
|
-
],
|
|
1956
|
-
name: 'Dissolve',
|
|
1957
|
-
},
|
|
1958
1834
|
{
|
|
1959
1835
|
type: 'event',
|
|
1960
1836
|
anonymous: false,
|
|
@@ -1991,30 +1867,9 @@ export const fPoolManagerAbi = [
|
|
|
1991
1867
|
type: 'uint256',
|
|
1992
1868
|
indexed: false,
|
|
1993
1869
|
},
|
|
1994
|
-
{
|
|
1995
|
-
name: 'harvestProtocolCut',
|
|
1996
|
-
internalType: 'uint256',
|
|
1997
|
-
type: 'uint256',
|
|
1998
|
-
indexed: false,
|
|
1999
|
-
},
|
|
2000
1870
|
],
|
|
2001
1871
|
name: 'FeeParamsSet',
|
|
2002
1872
|
},
|
|
2003
|
-
{
|
|
2004
|
-
type: 'event',
|
|
2005
|
-
anonymous: false,
|
|
2006
|
-
inputs: [
|
|
2007
|
-
{
|
|
2008
|
-
name: 'poolId',
|
|
2009
|
-
internalType: 'bytes32',
|
|
2010
|
-
type: 'bytes32',
|
|
2011
|
-
indexed: true,
|
|
2012
|
-
},
|
|
2013
|
-
{ name: 'gateMint', internalType: 'bool', type: 'bool', indexed: false },
|
|
2014
|
-
{ name: 'gateSwap', internalType: 'bool', type: 'bool', indexed: false },
|
|
2015
|
-
],
|
|
2016
|
-
name: 'GatesSet',
|
|
2017
|
-
},
|
|
2018
1873
|
{
|
|
2019
1874
|
type: 'event',
|
|
2020
1875
|
anonymous: false,
|
|
@@ -2032,8 +1887,9 @@ export const fPoolManagerAbi = [
|
|
|
2032
1887
|
type: 'uint256',
|
|
2033
1888
|
indexed: false,
|
|
2034
1889
|
},
|
|
1890
|
+
{ name: 'cut', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2035
1891
|
{
|
|
2036
|
-
name: '
|
|
1892
|
+
name: 'toOperator',
|
|
2037
1893
|
internalType: 'uint256',
|
|
2038
1894
|
type: 'uint256',
|
|
2039
1895
|
indexed: false,
|
|
@@ -2045,15 +1901,11 @@ export const fPoolManagerAbi = [
|
|
|
2045
1901
|
type: 'event',
|
|
2046
1902
|
anonymous: false,
|
|
2047
1903
|
inputs: [
|
|
2048
|
-
{
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
type: 'bytes32',
|
|
2052
|
-
indexed: true,
|
|
2053
|
-
},
|
|
2054
|
-
{ 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 },
|
|
2055
1907
|
],
|
|
2056
|
-
name: '
|
|
1908
|
+
name: 'HookApproved',
|
|
2057
1909
|
},
|
|
2058
1910
|
{
|
|
2059
1911
|
type: 'event',
|
|
@@ -2072,7 +1924,7 @@ export const fPoolManagerAbi = [
|
|
|
2072
1924
|
indexed: true,
|
|
2073
1925
|
},
|
|
2074
1926
|
{
|
|
2075
|
-
name: '
|
|
1927
|
+
name: 'creator',
|
|
2076
1928
|
internalType: 'address',
|
|
2077
1929
|
type: 'address',
|
|
2078
1930
|
indexed: true,
|
|
@@ -2096,7 +1948,13 @@ export const fPoolManagerAbi = [
|
|
|
2096
1948
|
type: 'uint8',
|
|
2097
1949
|
indexed: false,
|
|
2098
1950
|
},
|
|
2099
|
-
|
|
1951
|
+
{
|
|
1952
|
+
name: 'hook',
|
|
1953
|
+
internalType: 'address',
|
|
1954
|
+
type: 'address',
|
|
1955
|
+
indexed: false,
|
|
1956
|
+
},
|
|
1957
|
+
],
|
|
2100
1958
|
name: 'Initialize',
|
|
2101
1959
|
},
|
|
2102
1960
|
{
|
|
@@ -2135,12 +1993,7 @@ export const fPoolManagerAbi = [
|
|
|
2135
1993
|
type: 'bytes32',
|
|
2136
1994
|
indexed: true,
|
|
2137
1995
|
},
|
|
2138
|
-
{
|
|
2139
|
-
name: 'sender',
|
|
2140
|
-
internalType: 'address',
|
|
2141
|
-
type: 'address',
|
|
2142
|
-
indexed: true,
|
|
2143
|
-
},
|
|
1996
|
+
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
2144
1997
|
{ name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2145
1998
|
{
|
|
2146
1999
|
name: 'shares',
|
|
@@ -2181,45 +2034,40 @@ export const fPoolManagerAbi = [
|
|
|
2181
2034
|
anonymous: false,
|
|
2182
2035
|
inputs: [
|
|
2183
2036
|
{
|
|
2184
|
-
name: '
|
|
2185
|
-
internalType: 'bytes32',
|
|
2186
|
-
type: 'bytes32',
|
|
2187
|
-
indexed: true,
|
|
2188
|
-
},
|
|
2189
|
-
{
|
|
2190
|
-
name: 'current',
|
|
2037
|
+
name: 'owner',
|
|
2191
2038
|
internalType: 'address',
|
|
2192
2039
|
type: 'address',
|
|
2193
2040
|
indexed: true,
|
|
2194
2041
|
},
|
|
2195
2042
|
{
|
|
2196
|
-
name: '
|
|
2043
|
+
name: 'operator',
|
|
2197
2044
|
internalType: 'address',
|
|
2198
2045
|
type: 'address',
|
|
2199
2046
|
indexed: true,
|
|
2200
2047
|
},
|
|
2048
|
+
{ name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
|
|
2201
2049
|
],
|
|
2202
|
-
name: '
|
|
2050
|
+
name: 'OperatorSet',
|
|
2203
2051
|
},
|
|
2204
2052
|
{
|
|
2205
2053
|
type: 'event',
|
|
2206
2054
|
anonymous: false,
|
|
2207
2055
|
inputs: [
|
|
2208
2056
|
{
|
|
2209
|
-
name: '
|
|
2210
|
-
internalType: '
|
|
2211
|
-
type: '
|
|
2057
|
+
name: 'poolId',
|
|
2058
|
+
internalType: 'bytes32',
|
|
2059
|
+
type: 'bytes32',
|
|
2212
2060
|
indexed: true,
|
|
2213
2061
|
},
|
|
2062
|
+
{ name: 'inShares', internalType: 'bool', type: 'bool', indexed: false },
|
|
2214
2063
|
{
|
|
2215
|
-
name: '
|
|
2216
|
-
internalType: '
|
|
2217
|
-
type: '
|
|
2218
|
-
indexed:
|
|
2064
|
+
name: 'amount',
|
|
2065
|
+
internalType: 'uint256',
|
|
2066
|
+
type: 'uint256',
|
|
2067
|
+
indexed: false,
|
|
2219
2068
|
},
|
|
2220
|
-
{ name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
|
|
2221
2069
|
],
|
|
2222
|
-
name: '
|
|
2070
|
+
name: 'ProtocolFee',
|
|
2223
2071
|
},
|
|
2224
2072
|
{
|
|
2225
2073
|
type: 'event',
|
|
@@ -2231,10 +2079,27 @@ export const fPoolManagerAbi = [
|
|
|
2231
2079
|
type: 'bytes32',
|
|
2232
2080
|
indexed: true,
|
|
2233
2081
|
},
|
|
2234
|
-
{ name: '
|
|
2235
|
-
{
|
|
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
|
+
},
|
|
2236
2101
|
],
|
|
2237
|
-
name: '
|
|
2102
|
+
name: 'Redeem',
|
|
2238
2103
|
},
|
|
2239
2104
|
{
|
|
2240
2105
|
type: 'event',
|
|
@@ -2246,15 +2111,40 @@ export const fPoolManagerAbi = [
|
|
|
2246
2111
|
type: 'bytes32',
|
|
2247
2112
|
indexed: true,
|
|
2248
2113
|
},
|
|
2249
|
-
{ name: '
|
|
2114
|
+
{ name: 'pot', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2250
2115
|
{
|
|
2251
|
-
name: '
|
|
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',
|
|
2252
2142
|
internalType: 'uint256',
|
|
2253
2143
|
type: 'uint256',
|
|
2254
2144
|
indexed: false,
|
|
2255
2145
|
},
|
|
2256
2146
|
],
|
|
2257
|
-
name: '
|
|
2147
|
+
name: 'Regenerated',
|
|
2258
2148
|
},
|
|
2259
2149
|
{
|
|
2260
2150
|
type: 'event',
|
|
@@ -2268,25 +2158,19 @@ export const fPoolManagerAbi = [
|
|
|
2268
2158
|
},
|
|
2269
2159
|
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2270
2160
|
{
|
|
2271
|
-
name: '
|
|
2272
|
-
internalType: 'address',
|
|
2273
|
-
type: 'address',
|
|
2274
|
-
indexed: true,
|
|
2275
|
-
},
|
|
2276
|
-
{
|
|
2277
|
-
name: 'shares',
|
|
2161
|
+
name: 'supply',
|
|
2278
2162
|
internalType: 'uint256',
|
|
2279
2163
|
type: 'uint256',
|
|
2280
2164
|
indexed: false,
|
|
2281
2165
|
},
|
|
2282
2166
|
{
|
|
2283
|
-
name: '
|
|
2167
|
+
name: 'quote',
|
|
2284
2168
|
internalType: 'uint256',
|
|
2285
2169
|
type: 'uint256',
|
|
2286
2170
|
indexed: false,
|
|
2287
2171
|
},
|
|
2288
2172
|
],
|
|
2289
|
-
name: '
|
|
2173
|
+
name: 'Retired',
|
|
2290
2174
|
},
|
|
2291
2175
|
{
|
|
2292
2176
|
type: 'event',
|
|
@@ -2301,12 +2185,6 @@ export const fPoolManagerAbi = [
|
|
|
2301
2185
|
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2302
2186
|
{ name: 'L0', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2303
2187
|
{ name: 'Q0', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2304
|
-
{
|
|
2305
|
-
name: 'theta0',
|
|
2306
|
-
internalType: 'int256',
|
|
2307
|
-
type: 'int256',
|
|
2308
|
-
indexed: false,
|
|
2309
|
-
},
|
|
2310
2188
|
{
|
|
2311
2189
|
name: 'r0',
|
|
2312
2190
|
internalType: 'uint256[]',
|
|
@@ -2406,9 +2284,12 @@ export const fPoolManagerAbi = [
|
|
|
2406
2284
|
{ type: 'error', inputs: [], name: 'AlreadyUnlocked' },
|
|
2407
2285
|
{ type: 'error', inputs: [], name: 'BadLeg' },
|
|
2408
2286
|
{ type: 'error', inputs: [], name: 'BadParam' },
|
|
2287
|
+
{ type: 'error', inputs: [], name: 'BadTerms' },
|
|
2409
2288
|
{ type: 'error', inputs: [], name: 'BadWeights' },
|
|
2410
2289
|
{ type: 'error', inputs: [], name: 'BalanceOverflow' },
|
|
2411
|
-
{ type: 'error', inputs: [], name: '
|
|
2290
|
+
{ type: 'error', inputs: [], name: 'BidNotEmpty' },
|
|
2291
|
+
{ type: 'error', inputs: [], name: 'HarvestLimit' },
|
|
2292
|
+
{ type: 'error', inputs: [], name: 'HookNotApproved' },
|
|
2412
2293
|
{ type: 'error', inputs: [], name: 'InsufficientBalance' },
|
|
2413
2294
|
{ type: 'error', inputs: [], name: 'InsufficientPermission' },
|
|
2414
2295
|
{ type: 'error', inputs: [], name: 'InsufficientQuote' },
|
|
@@ -2420,12 +2301,8 @@ export const fPoolManagerAbi = [
|
|
|
2420
2301
|
name: 'MulticallFailed',
|
|
2421
2302
|
},
|
|
2422
2303
|
{ type: 'error', inputs: [], name: 'NonstandardToken' },
|
|
2423
|
-
{ type: 'error', inputs: [], name: 'NotAllowed' },
|
|
2424
|
-
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
2425
2304
|
{ type: 'error', inputs: [], name: 'NotAuthorized' },
|
|
2426
2305
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
2427
|
-
{ type: 'error', inputs: [], name: 'NotDissolvable' },
|
|
2428
|
-
{ type: 'error', inputs: [], name: 'NotOperator' },
|
|
2429
2306
|
{ type: 'error', inputs: [], name: 'NotPrivate' },
|
|
2430
2307
|
{ type: 'error', inputs: [], name: 'NotRetired' },
|
|
2431
2308
|
{ type: 'error', inputs: [], name: 'NotSeeded' },
|
|
@@ -2612,28 +2489,18 @@ export const logswapLensAbi = [
|
|
|
2612
2489
|
components: [
|
|
2613
2490
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2614
2491
|
{ name: 'phi', internalType: 'uint96', type: 'uint96' },
|
|
2615
|
-
{ name: '
|
|
2492
|
+
{ name: 'hook', internalType: 'address', type: 'address' },
|
|
2616
2493
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
2617
2494
|
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
2618
2495
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
2619
2496
|
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
2620
2497
|
{ name: 'restructureBlock', internalType: 'uint32', type: 'uint32' },
|
|
2621
|
-
{ name: '
|
|
2622
|
-
{ name: 'gateSwap', internalType: 'bool', type: 'bool' },
|
|
2498
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2623
2499
|
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2624
2500
|
{ name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
|
|
2625
2501
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2626
2502
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
2627
2503
|
{ name: 'theta0', internalType: 'int256', type: 'int256' },
|
|
2628
|
-
{ name: 'harvestedTheta', internalType: 'int256', type: 'int256' },
|
|
2629
|
-
{
|
|
2630
|
-
name: 'pendingAuthority',
|
|
2631
|
-
internalType: 'address',
|
|
2632
|
-
type: 'address',
|
|
2633
|
-
},
|
|
2634
|
-
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
2635
|
-
{ name: 'pendingOperator', internalType: 'address', type: 'address' },
|
|
2636
|
-
{ name: 'incomeTaken', internalType: 'uint256', type: 'uint256' },
|
|
2637
2504
|
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
2638
2505
|
],
|
|
2639
2506
|
},
|
|
@@ -3100,8 +2967,10 @@ export const logswapLensAbi = [
|
|
|
3100
2967
|
},
|
|
3101
2968
|
{ type: 'error', inputs: [], name: 'BelowFloor' },
|
|
3102
2969
|
{ type: 'error', inputs: [], name: 'DrainsBase' },
|
|
2970
|
+
{ type: 'error', inputs: [], name: 'InvalidShares' },
|
|
3103
2971
|
{ type: 'error', inputs: [], name: 'UnexpectedQuoteSuccess' },
|
|
3104
2972
|
{ type: 'error', inputs: [], name: 'UnknownId' },
|
|
2973
|
+
{ type: 'error', inputs: [], name: 'WrongPool' },
|
|
3105
2974
|
];
|
|
3106
2975
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3107
2976
|
// LogswapRouter
|
|
@@ -3716,6 +3585,7 @@ export const logswapRouterAbi = [
|
|
|
3716
3585
|
},
|
|
3717
3586
|
{ name: 'fundWithBase', internalType: 'bool', type: 'bool' },
|
|
3718
3587
|
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
3588
|
+
{ name: 'minSwapOut', internalType: 'uint256', type: 'uint256' },
|
|
3719
3589
|
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
3720
3590
|
{ name: 'cap', internalType: 'int256', type: 'int256' },
|
|
3721
3591
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3778,3 +3648,1394 @@ export const logswapRouterAbi = [
|
|
|
3778
3648
|
{ type: 'error', inputs: [], name: 'UnsupportedOp' },
|
|
3779
3649
|
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
3780
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
|
+
];
|