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