@logswap/sdk 0.5.42 → 0.5.43
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 +4 -1
- package/dist/fpool.d.ts +7 -3548
- package/dist/fpool.js +7 -7
- package/dist/generated.d.ts +208 -1609
- package/dist/generated.js +136 -1165
- package/package.json +1 -1
- package/src/client.ts +4 -1
- package/src/fpool.ts +7 -7
- package/src/generated.ts +136 -1167
package/dist/generated.js
CHANGED
|
@@ -1076,7 +1076,6 @@ export const fPoolManagerAbi = [
|
|
|
1076
1076
|
],
|
|
1077
1077
|
stateMutability: 'nonpayable',
|
|
1078
1078
|
},
|
|
1079
|
-
{ type: 'fallback', stateMutability: 'nonpayable' },
|
|
1080
1079
|
{
|
|
1081
1080
|
type: 'function',
|
|
1082
1081
|
inputs: [],
|
|
@@ -1105,6 +1104,13 @@ export const fPoolManagerAbi = [
|
|
|
1105
1104
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1106
1105
|
stateMutability: 'view',
|
|
1107
1106
|
},
|
|
1107
|
+
{
|
|
1108
|
+
type: 'function',
|
|
1109
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1110
|
+
name: 'acceptAuthority',
|
|
1111
|
+
outputs: [],
|
|
1112
|
+
stateMutability: 'nonpayable',
|
|
1113
|
+
},
|
|
1108
1114
|
{
|
|
1109
1115
|
type: 'function',
|
|
1110
1116
|
inputs: [],
|
|
@@ -1112,6 +1118,13 @@ export const fPoolManagerAbi = [
|
|
|
1112
1118
|
outputs: [],
|
|
1113
1119
|
stateMutability: 'nonpayable',
|
|
1114
1120
|
},
|
|
1121
|
+
{
|
|
1122
|
+
type: 'function',
|
|
1123
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1124
|
+
name: 'acceptOperator',
|
|
1125
|
+
outputs: [],
|
|
1126
|
+
stateMutability: 'nonpayable',
|
|
1127
|
+
},
|
|
1115
1128
|
{
|
|
1116
1129
|
type: 'function',
|
|
1117
1130
|
inputs: [
|
|
@@ -1133,6 +1146,16 @@ export const fPoolManagerAbi = [
|
|
|
1133
1146
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1134
1147
|
stateMutability: 'view',
|
|
1135
1148
|
},
|
|
1149
|
+
{
|
|
1150
|
+
type: 'function',
|
|
1151
|
+
inputs: [
|
|
1152
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1153
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
1154
|
+
],
|
|
1155
|
+
name: 'appointOperator',
|
|
1156
|
+
outputs: [],
|
|
1157
|
+
stateMutability: 'nonpayable',
|
|
1158
|
+
},
|
|
1136
1159
|
{
|
|
1137
1160
|
type: 'function',
|
|
1138
1161
|
inputs: [
|
|
@@ -1190,6 +1213,17 @@ export const fPoolManagerAbi = [
|
|
|
1190
1213
|
outputs: [],
|
|
1191
1214
|
stateMutability: 'nonpayable',
|
|
1192
1215
|
},
|
|
1216
|
+
{
|
|
1217
|
+
type: 'function',
|
|
1218
|
+
inputs: [
|
|
1219
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1220
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
1221
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1222
|
+
],
|
|
1223
|
+
name: 'claim',
|
|
1224
|
+
outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
1225
|
+
stateMutability: 'nonpayable',
|
|
1226
|
+
},
|
|
1193
1227
|
{
|
|
1194
1228
|
type: 'function',
|
|
1195
1229
|
inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
|
|
@@ -1228,6 +1262,13 @@ export const fPoolManagerAbi = [
|
|
|
1228
1262
|
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
1229
1263
|
stateMutability: 'view',
|
|
1230
1264
|
},
|
|
1265
|
+
{
|
|
1266
|
+
type: 'function',
|
|
1267
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1268
|
+
name: 'dissolve',
|
|
1269
|
+
outputs: [],
|
|
1270
|
+
stateMutability: 'nonpayable',
|
|
1271
|
+
},
|
|
1231
1272
|
{
|
|
1232
1273
|
type: 'function',
|
|
1233
1274
|
inputs: [
|
|
@@ -1307,6 +1348,17 @@ export const fPoolManagerAbi = [
|
|
|
1307
1348
|
],
|
|
1308
1349
|
stateMutability: 'view',
|
|
1309
1350
|
},
|
|
1351
|
+
{
|
|
1352
|
+
type: 'function',
|
|
1353
|
+
inputs: [
|
|
1354
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1355
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1356
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1357
|
+
],
|
|
1358
|
+
name: 'harvest',
|
|
1359
|
+
outputs: [],
|
|
1360
|
+
stateMutability: 'nonpayable',
|
|
1361
|
+
},
|
|
1310
1362
|
{
|
|
1311
1363
|
type: 'function',
|
|
1312
1364
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -1462,6 +1514,16 @@ export const fPoolManagerAbi = [
|
|
|
1462
1514
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1463
1515
|
stateMutability: 'view',
|
|
1464
1516
|
},
|
|
1517
|
+
{
|
|
1518
|
+
type: 'function',
|
|
1519
|
+
inputs: [
|
|
1520
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1521
|
+
{ name: 'next', internalType: 'address', type: 'address' },
|
|
1522
|
+
],
|
|
1523
|
+
name: 'proposeAuthority',
|
|
1524
|
+
outputs: [],
|
|
1525
|
+
stateMutability: 'nonpayable',
|
|
1526
|
+
},
|
|
1465
1527
|
{
|
|
1466
1528
|
type: 'function',
|
|
1467
1529
|
inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
|
|
@@ -1521,6 +1583,69 @@ export const fPoolManagerAbi = [
|
|
|
1521
1583
|
outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
|
|
1522
1584
|
stateMutability: 'nonpayable',
|
|
1523
1585
|
},
|
|
1586
|
+
{
|
|
1587
|
+
type: 'function',
|
|
1588
|
+
inputs: [
|
|
1589
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1590
|
+
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
1591
|
+
{ name: 'yes', internalType: 'bool', type: 'bool' },
|
|
1592
|
+
],
|
|
1593
|
+
name: 'setAllowed',
|
|
1594
|
+
outputs: [],
|
|
1595
|
+
stateMutability: 'nonpayable',
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
type: 'function',
|
|
1599
|
+
inputs: [
|
|
1600
|
+
{ name: 'mintFeeProtocolCut', internalType: 'uint256', type: 'uint256' },
|
|
1601
|
+
{ name: 'harvestFee', internalType: 'uint256', type: 'uint256' },
|
|
1602
|
+
],
|
|
1603
|
+
name: 'setFeeParams',
|
|
1604
|
+
outputs: [],
|
|
1605
|
+
stateMutability: 'nonpayable',
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
type: 'function',
|
|
1609
|
+
inputs: [
|
|
1610
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1611
|
+
{ name: 'gateMint', internalType: 'bool', type: 'bool' },
|
|
1612
|
+
{ name: 'gateSwap', internalType: 'bool', type: 'bool' },
|
|
1613
|
+
],
|
|
1614
|
+
name: 'setGates',
|
|
1615
|
+
outputs: [],
|
|
1616
|
+
stateMutability: 'nonpayable',
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
type: 'function',
|
|
1620
|
+
inputs: [
|
|
1621
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1622
|
+
{ name: 'exempt', internalType: 'bool', type: 'bool' },
|
|
1623
|
+
],
|
|
1624
|
+
name: 'setHarvestFeeExempt',
|
|
1625
|
+
outputs: [],
|
|
1626
|
+
stateMutability: 'nonpayable',
|
|
1627
|
+
},
|
|
1628
|
+
{
|
|
1629
|
+
type: 'function',
|
|
1630
|
+
inputs: [
|
|
1631
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1632
|
+
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1633
|
+
{ name: 'newBases', internalType: 'address[]', type: 'address[]' },
|
|
1634
|
+
],
|
|
1635
|
+
name: 'setLegs',
|
|
1636
|
+
outputs: [],
|
|
1637
|
+
stateMutability: 'nonpayable',
|
|
1638
|
+
},
|
|
1639
|
+
{
|
|
1640
|
+
type: 'function',
|
|
1641
|
+
inputs: [
|
|
1642
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1643
|
+
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
1644
|
+
],
|
|
1645
|
+
name: 'setName',
|
|
1646
|
+
outputs: [],
|
|
1647
|
+
stateMutability: 'nonpayable',
|
|
1648
|
+
},
|
|
1524
1649
|
{
|
|
1525
1650
|
type: 'function',
|
|
1526
1651
|
inputs: [
|
|
@@ -1531,6 +1656,16 @@ export const fPoolManagerAbi = [
|
|
|
1531
1656
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1532
1657
|
stateMutability: 'payable',
|
|
1533
1658
|
},
|
|
1659
|
+
{
|
|
1660
|
+
type: 'function',
|
|
1661
|
+
inputs: [
|
|
1662
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
1663
|
+
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
1664
|
+
],
|
|
1665
|
+
name: 'setSponsorName',
|
|
1666
|
+
outputs: [],
|
|
1667
|
+
stateMutability: 'nonpayable',
|
|
1668
|
+
},
|
|
1534
1669
|
{
|
|
1535
1670
|
type: 'function',
|
|
1536
1671
|
inputs: [],
|
|
@@ -1548,15 +1683,6 @@ export const fPoolManagerAbi = [
|
|
|
1548
1683
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1549
1684
|
stateMutability: 'pure',
|
|
1550
1685
|
},
|
|
1551
|
-
{
|
|
1552
|
-
type: 'function',
|
|
1553
|
-
inputs: [],
|
|
1554
|
-
name: 'sponsor',
|
|
1555
|
-
outputs: [
|
|
1556
|
-
{ name: '', internalType: 'contract FPoolSponsor', type: 'address' },
|
|
1557
|
-
],
|
|
1558
|
-
stateMutability: 'view',
|
|
1559
|
-
},
|
|
1560
1686
|
{
|
|
1561
1687
|
type: 'function',
|
|
1562
1688
|
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
@@ -2359,1161 +2485,6 @@ export const fPoolManagerAbi = [
|
|
|
2359
2485
|
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
2360
2486
|
];
|
|
2361
2487
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2362
|
-
// FPoolSponsor
|
|
2363
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2364
|
-
export const fPoolSponsorAbi = [
|
|
2365
|
-
{ type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
|
|
2366
|
-
{
|
|
2367
|
-
type: 'function',
|
|
2368
|
-
inputs: [],
|
|
2369
|
-
name: 'FEE_MIN',
|
|
2370
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2371
|
-
stateMutability: 'view',
|
|
2372
|
-
},
|
|
2373
|
-
{
|
|
2374
|
-
type: 'function',
|
|
2375
|
-
inputs: [],
|
|
2376
|
-
name: 'HARVEST_FEE',
|
|
2377
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2378
|
-
stateMutability: 'view',
|
|
2379
|
-
},
|
|
2380
|
-
{
|
|
2381
|
-
type: 'function',
|
|
2382
|
-
inputs: [],
|
|
2383
|
-
name: 'MINT_FEE',
|
|
2384
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2385
|
-
stateMutability: 'view',
|
|
2386
|
-
},
|
|
2387
|
-
{
|
|
2388
|
-
type: 'function',
|
|
2389
|
-
inputs: [],
|
|
2390
|
-
name: 'MINT_FEE_PROTOCOL_CUT',
|
|
2391
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2392
|
-
stateMutability: 'view',
|
|
2393
|
-
},
|
|
2394
|
-
{
|
|
2395
|
-
type: 'function',
|
|
2396
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
2397
|
-
name: 'acceptAuthority',
|
|
2398
|
-
outputs: [],
|
|
2399
|
-
stateMutability: 'nonpayable',
|
|
2400
|
-
},
|
|
2401
|
-
{
|
|
2402
|
-
type: 'function',
|
|
2403
|
-
inputs: [],
|
|
2404
|
-
name: 'acceptCollector',
|
|
2405
|
-
outputs: [],
|
|
2406
|
-
stateMutability: 'nonpayable',
|
|
2407
|
-
},
|
|
2408
|
-
{
|
|
2409
|
-
type: 'function',
|
|
2410
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
2411
|
-
name: 'acceptOperator',
|
|
2412
|
-
outputs: [],
|
|
2413
|
-
stateMutability: 'nonpayable',
|
|
2414
|
-
},
|
|
2415
|
-
{
|
|
2416
|
-
type: 'function',
|
|
2417
|
-
inputs: [
|
|
2418
|
-
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
2419
|
-
{ name: 'spender', internalType: 'address', type: 'address' },
|
|
2420
|
-
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
2421
|
-
],
|
|
2422
|
-
name: 'allowance',
|
|
2423
|
-
outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
2424
|
-
stateMutability: 'view',
|
|
2425
|
-
},
|
|
2426
|
-
{
|
|
2427
|
-
type: 'function',
|
|
2428
|
-
inputs: [
|
|
2429
|
-
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
2430
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
2431
|
-
],
|
|
2432
|
-
name: 'allowed',
|
|
2433
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
2434
|
-
stateMutability: 'view',
|
|
2435
|
-
},
|
|
2436
|
-
{
|
|
2437
|
-
type: 'function',
|
|
2438
|
-
inputs: [
|
|
2439
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2440
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
2441
|
-
],
|
|
2442
|
-
name: 'appointOperator',
|
|
2443
|
-
outputs: [],
|
|
2444
|
-
stateMutability: 'nonpayable',
|
|
2445
|
-
},
|
|
2446
|
-
{
|
|
2447
|
-
type: 'function',
|
|
2448
|
-
inputs: [
|
|
2449
|
-
{ name: 'spender', internalType: 'address', type: 'address' },
|
|
2450
|
-
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
2451
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
2452
|
-
],
|
|
2453
|
-
name: 'approve',
|
|
2454
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
2455
|
-
stateMutability: 'payable',
|
|
2456
|
-
},
|
|
2457
|
-
{
|
|
2458
|
-
type: 'function',
|
|
2459
|
-
inputs: [
|
|
2460
|
-
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
2461
|
-
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
2462
|
-
],
|
|
2463
|
-
name: 'balanceOf',
|
|
2464
|
-
outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
2465
|
-
stateMutability: 'view',
|
|
2466
|
-
},
|
|
2467
|
-
{
|
|
2468
|
-
type: 'function',
|
|
2469
|
-
inputs: [
|
|
2470
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2471
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
2472
|
-
],
|
|
2473
|
-
name: 'bundleOf',
|
|
2474
|
-
outputs: [
|
|
2475
|
-
{ name: 'supply', internalType: 'uint256', type: 'uint256' },
|
|
2476
|
-
{ name: 'quote', internalType: 'uint256', type: 'uint256' },
|
|
2477
|
-
{ name: 'base', internalType: 'uint256[]', type: 'uint256[]' },
|
|
2478
|
-
],
|
|
2479
|
-
stateMutability: 'view',
|
|
2480
|
-
},
|
|
2481
|
-
{
|
|
2482
|
-
type: 'function',
|
|
2483
|
-
inputs: [
|
|
2484
|
-
{ name: 'token', internalType: 'address', type: 'address' },
|
|
2485
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
2486
|
-
],
|
|
2487
|
-
name: 'burnClaims',
|
|
2488
|
-
outputs: [],
|
|
2489
|
-
stateMutability: 'nonpayable',
|
|
2490
|
-
},
|
|
2491
|
-
{
|
|
2492
|
-
type: 'function',
|
|
2493
|
-
inputs: [
|
|
2494
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2495
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
2496
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
2497
|
-
],
|
|
2498
|
-
name: 'claim',
|
|
2499
|
-
outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
2500
|
-
stateMutability: 'nonpayable',
|
|
2501
|
-
},
|
|
2502
|
-
{
|
|
2503
|
-
type: 'function',
|
|
2504
|
-
inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
|
|
2505
|
-
name: 'claimIdOf',
|
|
2506
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2507
|
-
stateMutability: 'pure',
|
|
2508
|
-
},
|
|
2509
|
-
{
|
|
2510
|
-
type: 'function',
|
|
2511
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2512
|
-
name: 'claimsOutstanding',
|
|
2513
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2514
|
-
stateMutability: 'view',
|
|
2515
|
-
},
|
|
2516
|
-
{
|
|
2517
|
-
type: 'function',
|
|
2518
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
2519
|
-
name: 'compositeX',
|
|
2520
|
-
outputs: [{ name: 'X', internalType: 'int256', type: 'int256' }],
|
|
2521
|
-
stateMutability: 'view',
|
|
2522
|
-
},
|
|
2523
|
-
{
|
|
2524
|
-
type: 'function',
|
|
2525
|
-
inputs: [{ name: 'id', internalType: 'uint256', type: 'uint256' }],
|
|
2526
|
-
name: 'decimals',
|
|
2527
|
-
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
2528
|
-
stateMutability: 'view',
|
|
2529
|
-
},
|
|
2530
|
-
{
|
|
2531
|
-
type: 'function',
|
|
2532
|
-
inputs: [
|
|
2533
|
-
{ name: 'token', internalType: 'address', type: 'address' },
|
|
2534
|
-
{ name: 'target', internalType: 'address', type: 'address' },
|
|
2535
|
-
],
|
|
2536
|
-
name: 'deltaOf',
|
|
2537
|
-
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
2538
|
-
stateMutability: 'view',
|
|
2539
|
-
},
|
|
2540
|
-
{
|
|
2541
|
-
type: 'function',
|
|
2542
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
2543
|
-
name: 'dissolve',
|
|
2544
|
-
outputs: [],
|
|
2545
|
-
stateMutability: 'nonpayable',
|
|
2546
|
-
},
|
|
2547
|
-
{
|
|
2548
|
-
type: 'function',
|
|
2549
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2550
|
-
name: 'dps',
|
|
2551
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2552
|
-
stateMutability: 'view',
|
|
2553
|
-
},
|
|
2554
|
-
{
|
|
2555
|
-
type: 'function',
|
|
2556
|
-
inputs: [],
|
|
2557
|
-
name: 'feeCollector',
|
|
2558
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2559
|
-
stateMutability: 'view',
|
|
2560
|
-
},
|
|
2561
|
-
{
|
|
2562
|
-
type: 'function',
|
|
2563
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
2564
|
-
name: 'feePerL',
|
|
2565
|
-
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
2566
|
-
stateMutability: 'view',
|
|
2567
|
-
},
|
|
2568
|
-
{
|
|
2569
|
-
type: 'function',
|
|
2570
|
-
inputs: [
|
|
2571
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2572
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
2573
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
2574
|
-
],
|
|
2575
|
-
name: 'harvest',
|
|
2576
|
-
outputs: [],
|
|
2577
|
-
stateMutability: 'nonpayable',
|
|
2578
|
-
},
|
|
2579
|
-
{
|
|
2580
|
-
type: 'function',
|
|
2581
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
2582
|
-
name: 'harvestFeeExempt',
|
|
2583
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
2584
|
-
stateMutability: 'view',
|
|
2585
|
-
},
|
|
2586
|
-
{
|
|
2587
|
-
type: 'function',
|
|
2588
|
-
inputs: [
|
|
2589
|
-
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
2590
|
-
{ name: 'spender', internalType: 'address', type: 'address' },
|
|
2591
|
-
],
|
|
2592
|
-
name: 'isOperator',
|
|
2593
|
-
outputs: [{ name: 'status', internalType: 'bool', type: 'bool' }],
|
|
2594
|
-
stateMutability: 'view',
|
|
2595
|
-
},
|
|
2596
|
-
{
|
|
2597
|
-
type: 'function',
|
|
2598
|
-
inputs: [],
|
|
2599
|
-
name: 'isUnlocked',
|
|
2600
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
2601
|
-
stateMutability: 'view',
|
|
2602
|
-
},
|
|
2603
|
-
{
|
|
2604
|
-
type: 'function',
|
|
2605
|
-
inputs: [
|
|
2606
|
-
{ name: 'token', internalType: 'address', type: 'address' },
|
|
2607
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
2608
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
2609
|
-
],
|
|
2610
|
-
name: 'mintClaims',
|
|
2611
|
-
outputs: [],
|
|
2612
|
-
stateMutability: 'nonpayable',
|
|
2613
|
-
},
|
|
2614
|
-
{
|
|
2615
|
-
type: 'function',
|
|
2616
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2617
|
-
name: 'name',
|
|
2618
|
-
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
2619
|
-
stateMutability: 'pure',
|
|
2620
|
-
},
|
|
2621
|
-
{
|
|
2622
|
-
type: 'function',
|
|
2623
|
-
inputs: [],
|
|
2624
|
-
name: 'nonzeroDeltaCount',
|
|
2625
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2626
|
-
stateMutability: 'view',
|
|
2627
|
-
},
|
|
2628
|
-
{
|
|
2629
|
-
type: 'function',
|
|
2630
|
-
inputs: [],
|
|
2631
|
-
name: 'pendingCollector',
|
|
2632
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2633
|
-
stateMutability: 'view',
|
|
2634
|
-
},
|
|
2635
|
-
{
|
|
2636
|
-
type: 'function',
|
|
2637
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2638
|
-
name: 'pot',
|
|
2639
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2640
|
-
stateMutability: 'view',
|
|
2641
|
-
},
|
|
2642
|
-
{
|
|
2643
|
-
type: 'function',
|
|
2644
|
-
inputs: [
|
|
2645
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2646
|
-
{ name: 'next', internalType: 'address', type: 'address' },
|
|
2647
|
-
],
|
|
2648
|
-
name: 'proposeAuthority',
|
|
2649
|
-
outputs: [],
|
|
2650
|
-
stateMutability: 'nonpayable',
|
|
2651
|
-
},
|
|
2652
|
-
{
|
|
2653
|
-
type: 'function',
|
|
2654
|
-
inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
|
|
2655
|
-
name: 'proposeCollector',
|
|
2656
|
-
outputs: [],
|
|
2657
|
-
stateMutability: 'nonpayable',
|
|
2658
|
-
},
|
|
2659
|
-
{
|
|
2660
|
-
type: 'function',
|
|
2661
|
-
inputs: [
|
|
2662
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2663
|
-
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
2664
|
-
{ name: 'yes', internalType: 'bool', type: 'bool' },
|
|
2665
|
-
],
|
|
2666
|
-
name: 'setAllowed',
|
|
2667
|
-
outputs: [],
|
|
2668
|
-
stateMutability: 'nonpayable',
|
|
2669
|
-
},
|
|
2670
|
-
{
|
|
2671
|
-
type: 'function',
|
|
2672
|
-
inputs: [
|
|
2673
|
-
{ name: 'mintFeeProtocolCut', internalType: 'uint256', type: 'uint256' },
|
|
2674
|
-
{ name: 'harvestFee', internalType: 'uint256', type: 'uint256' },
|
|
2675
|
-
],
|
|
2676
|
-
name: 'setFeeParams',
|
|
2677
|
-
outputs: [],
|
|
2678
|
-
stateMutability: 'nonpayable',
|
|
2679
|
-
},
|
|
2680
|
-
{
|
|
2681
|
-
type: 'function',
|
|
2682
|
-
inputs: [
|
|
2683
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2684
|
-
{ name: 'gateMint', internalType: 'bool', type: 'bool' },
|
|
2685
|
-
{ name: 'gateSwap', internalType: 'bool', type: 'bool' },
|
|
2686
|
-
],
|
|
2687
|
-
name: 'setGates',
|
|
2688
|
-
outputs: [],
|
|
2689
|
-
stateMutability: 'nonpayable',
|
|
2690
|
-
},
|
|
2691
|
-
{
|
|
2692
|
-
type: 'function',
|
|
2693
|
-
inputs: [
|
|
2694
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2695
|
-
{ name: 'exempt', internalType: 'bool', type: 'bool' },
|
|
2696
|
-
],
|
|
2697
|
-
name: 'setHarvestFeeExempt',
|
|
2698
|
-
outputs: [],
|
|
2699
|
-
stateMutability: 'nonpayable',
|
|
2700
|
-
},
|
|
2701
|
-
{
|
|
2702
|
-
type: 'function',
|
|
2703
|
-
inputs: [
|
|
2704
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2705
|
-
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
2706
|
-
{ name: 'newBases', internalType: 'address[]', type: 'address[]' },
|
|
2707
|
-
],
|
|
2708
|
-
name: 'setLegs',
|
|
2709
|
-
outputs: [],
|
|
2710
|
-
stateMutability: 'nonpayable',
|
|
2711
|
-
},
|
|
2712
|
-
{
|
|
2713
|
-
type: 'function',
|
|
2714
|
-
inputs: [
|
|
2715
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2716
|
-
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
2717
|
-
],
|
|
2718
|
-
name: 'setName',
|
|
2719
|
-
outputs: [],
|
|
2720
|
-
stateMutability: 'nonpayable',
|
|
2721
|
-
},
|
|
2722
|
-
{
|
|
2723
|
-
type: 'function',
|
|
2724
|
-
inputs: [
|
|
2725
|
-
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
2726
|
-
{ name: 'approved', internalType: 'bool', type: 'bool' },
|
|
2727
|
-
],
|
|
2728
|
-
name: 'setOperator',
|
|
2729
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
2730
|
-
stateMutability: 'payable',
|
|
2731
|
-
},
|
|
2732
|
-
{
|
|
2733
|
-
type: 'function',
|
|
2734
|
-
inputs: [
|
|
2735
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
2736
|
-
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
2737
|
-
],
|
|
2738
|
-
name: 'setSponsorName',
|
|
2739
|
-
outputs: [],
|
|
2740
|
-
stateMutability: 'nonpayable',
|
|
2741
|
-
},
|
|
2742
|
-
{
|
|
2743
|
-
type: 'function',
|
|
2744
|
-
inputs: [],
|
|
2745
|
-
name: 'settle',
|
|
2746
|
-
outputs: [{ name: 'paid', internalType: 'uint256', type: 'uint256' }],
|
|
2747
|
-
stateMutability: 'nonpayable',
|
|
2748
|
-
},
|
|
2749
|
-
{
|
|
2750
|
-
type: 'function',
|
|
2751
|
-
inputs: [
|
|
2752
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2753
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
2754
|
-
],
|
|
2755
|
-
name: 'shareIdOf',
|
|
2756
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2757
|
-
stateMutability: 'pure',
|
|
2758
|
-
},
|
|
2759
|
-
{
|
|
2760
|
-
type: 'function',
|
|
2761
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2762
|
-
name: 'sponsorName',
|
|
2763
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
2764
|
-
stateMutability: 'view',
|
|
2765
|
-
},
|
|
2766
|
-
{
|
|
2767
|
-
type: 'function',
|
|
2768
|
-
inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
|
|
2769
|
-
name: 'supportsInterface',
|
|
2770
|
-
outputs: [{ name: 'result', internalType: 'bool', type: 'bool' }],
|
|
2771
|
-
stateMutability: 'view',
|
|
2772
|
-
},
|
|
2773
|
-
{
|
|
2774
|
-
type: 'function',
|
|
2775
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2776
|
-
name: 'symbol',
|
|
2777
|
-
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
2778
|
-
stateMutability: 'pure',
|
|
2779
|
-
},
|
|
2780
|
-
{
|
|
2781
|
-
type: 'function',
|
|
2782
|
-
inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
|
|
2783
|
-
name: 'sync',
|
|
2784
|
-
outputs: [],
|
|
2785
|
-
stateMutability: 'nonpayable',
|
|
2786
|
-
},
|
|
2787
|
-
{
|
|
2788
|
-
type: 'function',
|
|
2789
|
-
inputs: [
|
|
2790
|
-
{ name: 'token', internalType: 'address', type: 'address' },
|
|
2791
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
2792
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
2793
|
-
],
|
|
2794
|
-
name: 'take',
|
|
2795
|
-
outputs: [],
|
|
2796
|
-
stateMutability: 'nonpayable',
|
|
2797
|
-
},
|
|
2798
|
-
{
|
|
2799
|
-
type: 'function',
|
|
2800
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
2801
|
-
name: 'theta',
|
|
2802
|
-
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
2803
|
-
stateMutability: 'view',
|
|
2804
|
-
},
|
|
2805
|
-
{
|
|
2806
|
-
type: 'function',
|
|
2807
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2808
|
-
name: 'tokenURI',
|
|
2809
|
-
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
2810
|
-
stateMutability: 'pure',
|
|
2811
|
-
},
|
|
2812
|
-
{
|
|
2813
|
-
type: 'function',
|
|
2814
|
-
inputs: [
|
|
2815
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
2816
|
-
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
2817
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
2818
|
-
],
|
|
2819
|
-
name: 'transfer',
|
|
2820
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
2821
|
-
stateMutability: 'payable',
|
|
2822
|
-
},
|
|
2823
|
-
{
|
|
2824
|
-
type: 'function',
|
|
2825
|
-
inputs: [
|
|
2826
|
-
{ name: 'from', internalType: 'address', type: 'address' },
|
|
2827
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
2828
|
-
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
2829
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
2830
|
-
],
|
|
2831
|
-
name: 'transferFrom',
|
|
2832
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
2833
|
-
stateMutability: 'payable',
|
|
2834
|
-
},
|
|
2835
|
-
{
|
|
2836
|
-
type: 'function',
|
|
2837
|
-
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
2838
|
-
name: 'unlock',
|
|
2839
|
-
outputs: [{ name: 'result', internalType: 'bytes', type: 'bytes' }],
|
|
2840
|
-
stateMutability: 'nonpayable',
|
|
2841
|
-
},
|
|
2842
|
-
{
|
|
2843
|
-
type: 'function',
|
|
2844
|
-
inputs: [],
|
|
2845
|
-
name: 'version',
|
|
2846
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2847
|
-
stateMutability: 'pure',
|
|
2848
|
-
},
|
|
2849
|
-
{
|
|
2850
|
-
type: 'event',
|
|
2851
|
-
anonymous: false,
|
|
2852
|
-
inputs: [
|
|
2853
|
-
{
|
|
2854
|
-
name: 'poolId',
|
|
2855
|
-
internalType: 'bytes32',
|
|
2856
|
-
type: 'bytes32',
|
|
2857
|
-
indexed: true,
|
|
2858
|
-
},
|
|
2859
|
-
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
2860
|
-
{ name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
|
|
2861
|
-
],
|
|
2862
|
-
name: 'Allowed',
|
|
2863
|
-
},
|
|
2864
|
-
{
|
|
2865
|
-
type: 'event',
|
|
2866
|
-
anonymous: false,
|
|
2867
|
-
inputs: [
|
|
2868
|
-
{
|
|
2869
|
-
name: 'owner',
|
|
2870
|
-
internalType: 'address',
|
|
2871
|
-
type: 'address',
|
|
2872
|
-
indexed: true,
|
|
2873
|
-
},
|
|
2874
|
-
{
|
|
2875
|
-
name: 'spender',
|
|
2876
|
-
internalType: 'address',
|
|
2877
|
-
type: 'address',
|
|
2878
|
-
indexed: true,
|
|
2879
|
-
},
|
|
2880
|
-
{ name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2881
|
-
{
|
|
2882
|
-
name: 'amount',
|
|
2883
|
-
internalType: 'uint256',
|
|
2884
|
-
type: 'uint256',
|
|
2885
|
-
indexed: false,
|
|
2886
|
-
},
|
|
2887
|
-
],
|
|
2888
|
-
name: 'Approval',
|
|
2889
|
-
},
|
|
2890
|
-
{
|
|
2891
|
-
type: 'event',
|
|
2892
|
-
anonymous: false,
|
|
2893
|
-
inputs: [
|
|
2894
|
-
{
|
|
2895
|
-
name: 'poolId',
|
|
2896
|
-
internalType: 'bytes32',
|
|
2897
|
-
type: 'bytes32',
|
|
2898
|
-
indexed: true,
|
|
2899
|
-
},
|
|
2900
|
-
{
|
|
2901
|
-
name: 'current',
|
|
2902
|
-
internalType: 'address',
|
|
2903
|
-
type: 'address',
|
|
2904
|
-
indexed: true,
|
|
2905
|
-
},
|
|
2906
|
-
{
|
|
2907
|
-
name: 'proposed',
|
|
2908
|
-
internalType: 'address',
|
|
2909
|
-
type: 'address',
|
|
2910
|
-
indexed: true,
|
|
2911
|
-
},
|
|
2912
|
-
],
|
|
2913
|
-
name: 'AuthorityProposed',
|
|
2914
|
-
},
|
|
2915
|
-
{
|
|
2916
|
-
type: 'event',
|
|
2917
|
-
anonymous: false,
|
|
2918
|
-
inputs: [
|
|
2919
|
-
{
|
|
2920
|
-
name: 'poolId',
|
|
2921
|
-
internalType: 'bytes32',
|
|
2922
|
-
type: 'bytes32',
|
|
2923
|
-
indexed: true,
|
|
2924
|
-
},
|
|
2925
|
-
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
2926
|
-
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
2927
|
-
],
|
|
2928
|
-
name: 'AuthoritySet',
|
|
2929
|
-
},
|
|
2930
|
-
{
|
|
2931
|
-
type: 'event',
|
|
2932
|
-
anonymous: false,
|
|
2933
|
-
inputs: [
|
|
2934
|
-
{
|
|
2935
|
-
name: 'poolId',
|
|
2936
|
-
internalType: 'bytes32',
|
|
2937
|
-
type: 'bytes32',
|
|
2938
|
-
indexed: true,
|
|
2939
|
-
},
|
|
2940
|
-
{
|
|
2941
|
-
name: 'sender',
|
|
2942
|
-
internalType: 'address',
|
|
2943
|
-
type: 'address',
|
|
2944
|
-
indexed: true,
|
|
2945
|
-
},
|
|
2946
|
-
{ name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2947
|
-
{
|
|
2948
|
-
name: 'shares',
|
|
2949
|
-
internalType: 'uint256',
|
|
2950
|
-
type: 'uint256',
|
|
2951
|
-
indexed: false,
|
|
2952
|
-
},
|
|
2953
|
-
{
|
|
2954
|
-
name: 'dQuote',
|
|
2955
|
-
internalType: 'uint256',
|
|
2956
|
-
type: 'uint256',
|
|
2957
|
-
indexed: false,
|
|
2958
|
-
},
|
|
2959
|
-
],
|
|
2960
|
-
name: 'Burn',
|
|
2961
|
-
},
|
|
2962
|
-
{
|
|
2963
|
-
type: 'event',
|
|
2964
|
-
anonymous: false,
|
|
2965
|
-
inputs: [
|
|
2966
|
-
{
|
|
2967
|
-
name: 'previous',
|
|
2968
|
-
internalType: 'address',
|
|
2969
|
-
type: 'address',
|
|
2970
|
-
indexed: true,
|
|
2971
|
-
},
|
|
2972
|
-
{
|
|
2973
|
-
name: 'current',
|
|
2974
|
-
internalType: 'address',
|
|
2975
|
-
type: 'address',
|
|
2976
|
-
indexed: true,
|
|
2977
|
-
},
|
|
2978
|
-
],
|
|
2979
|
-
name: 'CollectorAccepted',
|
|
2980
|
-
},
|
|
2981
|
-
{
|
|
2982
|
-
type: 'event',
|
|
2983
|
-
anonymous: false,
|
|
2984
|
-
inputs: [
|
|
2985
|
-
{
|
|
2986
|
-
name: 'current',
|
|
2987
|
-
internalType: 'address',
|
|
2988
|
-
type: 'address',
|
|
2989
|
-
indexed: true,
|
|
2990
|
-
},
|
|
2991
|
-
{
|
|
2992
|
-
name: 'proposed',
|
|
2993
|
-
internalType: 'address',
|
|
2994
|
-
type: 'address',
|
|
2995
|
-
indexed: true,
|
|
2996
|
-
},
|
|
2997
|
-
],
|
|
2998
|
-
name: 'CollectorProposed',
|
|
2999
|
-
},
|
|
3000
|
-
{
|
|
3001
|
-
type: 'event',
|
|
3002
|
-
anonymous: false,
|
|
3003
|
-
inputs: [
|
|
3004
|
-
{
|
|
3005
|
-
name: 'poolId',
|
|
3006
|
-
internalType: 'bytes32',
|
|
3007
|
-
type: 'bytes32',
|
|
3008
|
-
indexed: true,
|
|
3009
|
-
},
|
|
3010
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
3011
|
-
{
|
|
3012
|
-
name: 'supply',
|
|
3013
|
-
internalType: 'uint256',
|
|
3014
|
-
type: 'uint256',
|
|
3015
|
-
indexed: false,
|
|
3016
|
-
},
|
|
3017
|
-
{
|
|
3018
|
-
name: 'quote',
|
|
3019
|
-
internalType: 'uint256',
|
|
3020
|
-
type: 'uint256',
|
|
3021
|
-
indexed: false,
|
|
3022
|
-
},
|
|
3023
|
-
],
|
|
3024
|
-
name: 'Dissolve',
|
|
3025
|
-
},
|
|
3026
|
-
{
|
|
3027
|
-
type: 'event',
|
|
3028
|
-
anonymous: false,
|
|
3029
|
-
inputs: [
|
|
3030
|
-
{
|
|
3031
|
-
name: 'poolId',
|
|
3032
|
-
internalType: 'bytes32',
|
|
3033
|
-
type: 'bytes32',
|
|
3034
|
-
indexed: true,
|
|
3035
|
-
},
|
|
3036
|
-
{
|
|
3037
|
-
name: 'holder',
|
|
3038
|
-
internalType: 'address',
|
|
3039
|
-
type: 'address',
|
|
3040
|
-
indexed: true,
|
|
3041
|
-
},
|
|
3042
|
-
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
3043
|
-
{
|
|
3044
|
-
name: 'amount',
|
|
3045
|
-
internalType: 'uint256',
|
|
3046
|
-
type: 'uint256',
|
|
3047
|
-
indexed: false,
|
|
3048
|
-
},
|
|
3049
|
-
],
|
|
3050
|
-
name: 'DividendClaimed',
|
|
3051
|
-
},
|
|
3052
|
-
{
|
|
3053
|
-
type: 'event',
|
|
3054
|
-
anonymous: false,
|
|
3055
|
-
inputs: [
|
|
3056
|
-
{
|
|
3057
|
-
name: 'mintFeeProtocolCut',
|
|
3058
|
-
internalType: 'uint256',
|
|
3059
|
-
type: 'uint256',
|
|
3060
|
-
indexed: false,
|
|
3061
|
-
},
|
|
3062
|
-
{
|
|
3063
|
-
name: 'harvestFee',
|
|
3064
|
-
internalType: 'uint256',
|
|
3065
|
-
type: 'uint256',
|
|
3066
|
-
indexed: false,
|
|
3067
|
-
},
|
|
3068
|
-
],
|
|
3069
|
-
name: 'FeeParamsSet',
|
|
3070
|
-
},
|
|
3071
|
-
{
|
|
3072
|
-
type: 'event',
|
|
3073
|
-
anonymous: false,
|
|
3074
|
-
inputs: [
|
|
3075
|
-
{
|
|
3076
|
-
name: 'poolId',
|
|
3077
|
-
internalType: 'bytes32',
|
|
3078
|
-
type: 'bytes32',
|
|
3079
|
-
indexed: true,
|
|
3080
|
-
},
|
|
3081
|
-
{ name: 'gateMint', internalType: 'bool', type: 'bool', indexed: false },
|
|
3082
|
-
{ name: 'gateSwap', internalType: 'bool', type: 'bool', indexed: false },
|
|
3083
|
-
],
|
|
3084
|
-
name: 'GatesSet',
|
|
3085
|
-
},
|
|
3086
|
-
{
|
|
3087
|
-
type: 'event',
|
|
3088
|
-
anonymous: false,
|
|
3089
|
-
inputs: [
|
|
3090
|
-
{
|
|
3091
|
-
name: 'poolId',
|
|
3092
|
-
internalType: 'bytes32',
|
|
3093
|
-
type: 'bytes32',
|
|
3094
|
-
indexed: true,
|
|
3095
|
-
},
|
|
3096
|
-
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
3097
|
-
{
|
|
3098
|
-
name: 'amount',
|
|
3099
|
-
internalType: 'uint256',
|
|
3100
|
-
type: 'uint256',
|
|
3101
|
-
indexed: false,
|
|
3102
|
-
},
|
|
3103
|
-
{
|
|
3104
|
-
name: 'toSponsor',
|
|
3105
|
-
internalType: 'uint256',
|
|
3106
|
-
type: 'uint256',
|
|
3107
|
-
indexed: false,
|
|
3108
|
-
},
|
|
3109
|
-
],
|
|
3110
|
-
name: 'Harvest',
|
|
3111
|
-
},
|
|
3112
|
-
{
|
|
3113
|
-
type: 'event',
|
|
3114
|
-
anonymous: false,
|
|
3115
|
-
inputs: [
|
|
3116
|
-
{
|
|
3117
|
-
name: 'poolId',
|
|
3118
|
-
internalType: 'bytes32',
|
|
3119
|
-
type: 'bytes32',
|
|
3120
|
-
indexed: true,
|
|
3121
|
-
},
|
|
3122
|
-
{ name: 'exempt', internalType: 'bool', type: 'bool', indexed: false },
|
|
3123
|
-
],
|
|
3124
|
-
name: 'HarvestFeeExemptSet',
|
|
3125
|
-
},
|
|
3126
|
-
{
|
|
3127
|
-
type: 'event',
|
|
3128
|
-
anonymous: false,
|
|
3129
|
-
inputs: [
|
|
3130
|
-
{
|
|
3131
|
-
name: 'poolId',
|
|
3132
|
-
internalType: 'bytes32',
|
|
3133
|
-
type: 'bytes32',
|
|
3134
|
-
indexed: true,
|
|
3135
|
-
},
|
|
3136
|
-
{
|
|
3137
|
-
name: 'quote',
|
|
3138
|
-
internalType: 'address',
|
|
3139
|
-
type: 'address',
|
|
3140
|
-
indexed: true,
|
|
3141
|
-
},
|
|
3142
|
-
{
|
|
3143
|
-
name: 'authority',
|
|
3144
|
-
internalType: 'address',
|
|
3145
|
-
type: 'address',
|
|
3146
|
-
indexed: true,
|
|
3147
|
-
},
|
|
3148
|
-
{
|
|
3149
|
-
name: 'bases',
|
|
3150
|
-
internalType: 'address[]',
|
|
3151
|
-
type: 'address[]',
|
|
3152
|
-
indexed: false,
|
|
3153
|
-
},
|
|
3154
|
-
{
|
|
3155
|
-
name: 'weights',
|
|
3156
|
-
internalType: 'uint256[]',
|
|
3157
|
-
type: 'uint256[]',
|
|
3158
|
-
indexed: false,
|
|
3159
|
-
},
|
|
3160
|
-
{ name: 'phi', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
3161
|
-
{
|
|
3162
|
-
name: 'kind',
|
|
3163
|
-
internalType: 'enum Kind',
|
|
3164
|
-
type: 'uint8',
|
|
3165
|
-
indexed: false,
|
|
3166
|
-
},
|
|
3167
|
-
],
|
|
3168
|
-
name: 'Initialize',
|
|
3169
|
-
},
|
|
3170
|
-
{
|
|
3171
|
-
type: 'event',
|
|
3172
|
-
anonymous: false,
|
|
3173
|
-
inputs: [
|
|
3174
|
-
{
|
|
3175
|
-
name: 'poolId',
|
|
3176
|
-
internalType: 'bytes32',
|
|
3177
|
-
type: 'bytes32',
|
|
3178
|
-
indexed: true,
|
|
3179
|
-
},
|
|
3180
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
3181
|
-
{
|
|
3182
|
-
name: 'bases',
|
|
3183
|
-
internalType: 'address[]',
|
|
3184
|
-
type: 'address[]',
|
|
3185
|
-
indexed: false,
|
|
3186
|
-
},
|
|
3187
|
-
{
|
|
3188
|
-
name: 'weights',
|
|
3189
|
-
internalType: 'uint256[]',
|
|
3190
|
-
type: 'uint256[]',
|
|
3191
|
-
indexed: false,
|
|
3192
|
-
},
|
|
3193
|
-
],
|
|
3194
|
-
name: 'LegsSet',
|
|
3195
|
-
},
|
|
3196
|
-
{
|
|
3197
|
-
type: 'event',
|
|
3198
|
-
anonymous: false,
|
|
3199
|
-
inputs: [
|
|
3200
|
-
{
|
|
3201
|
-
name: 'poolId',
|
|
3202
|
-
internalType: 'bytes32',
|
|
3203
|
-
type: 'bytes32',
|
|
3204
|
-
indexed: true,
|
|
3205
|
-
},
|
|
3206
|
-
{
|
|
3207
|
-
name: 'sender',
|
|
3208
|
-
internalType: 'address',
|
|
3209
|
-
type: 'address',
|
|
3210
|
-
indexed: true,
|
|
3211
|
-
},
|
|
3212
|
-
{ name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
3213
|
-
{
|
|
3214
|
-
name: 'shares',
|
|
3215
|
-
internalType: 'uint256',
|
|
3216
|
-
type: 'uint256',
|
|
3217
|
-
indexed: false,
|
|
3218
|
-
},
|
|
3219
|
-
{
|
|
3220
|
-
name: 'dQuote',
|
|
3221
|
-
internalType: 'uint256',
|
|
3222
|
-
type: 'uint256',
|
|
3223
|
-
indexed: false,
|
|
3224
|
-
},
|
|
3225
|
-
],
|
|
3226
|
-
name: 'Mint',
|
|
3227
|
-
},
|
|
3228
|
-
{
|
|
3229
|
-
type: 'event',
|
|
3230
|
-
anonymous: false,
|
|
3231
|
-
inputs: [
|
|
3232
|
-
{
|
|
3233
|
-
name: 'poolId',
|
|
3234
|
-
internalType: 'bytes32',
|
|
3235
|
-
type: 'bytes32',
|
|
3236
|
-
indexed: true,
|
|
3237
|
-
},
|
|
3238
|
-
{
|
|
3239
|
-
name: 'name',
|
|
3240
|
-
internalType: 'bytes32',
|
|
3241
|
-
type: 'bytes32',
|
|
3242
|
-
indexed: false,
|
|
3243
|
-
},
|
|
3244
|
-
],
|
|
3245
|
-
name: 'NameSet',
|
|
3246
|
-
},
|
|
3247
|
-
{
|
|
3248
|
-
type: 'event',
|
|
3249
|
-
anonymous: false,
|
|
3250
|
-
inputs: [
|
|
3251
|
-
{
|
|
3252
|
-
name: 'poolId',
|
|
3253
|
-
internalType: 'bytes32',
|
|
3254
|
-
type: 'bytes32',
|
|
3255
|
-
indexed: true,
|
|
3256
|
-
},
|
|
3257
|
-
{
|
|
3258
|
-
name: 'current',
|
|
3259
|
-
internalType: 'address',
|
|
3260
|
-
type: 'address',
|
|
3261
|
-
indexed: true,
|
|
3262
|
-
},
|
|
3263
|
-
{
|
|
3264
|
-
name: 'proposed',
|
|
3265
|
-
internalType: 'address',
|
|
3266
|
-
type: 'address',
|
|
3267
|
-
indexed: true,
|
|
3268
|
-
},
|
|
3269
|
-
],
|
|
3270
|
-
name: 'OperatorProposed',
|
|
3271
|
-
},
|
|
3272
|
-
{
|
|
3273
|
-
type: 'event',
|
|
3274
|
-
anonymous: false,
|
|
3275
|
-
inputs: [
|
|
3276
|
-
{
|
|
3277
|
-
name: 'owner',
|
|
3278
|
-
internalType: 'address',
|
|
3279
|
-
type: 'address',
|
|
3280
|
-
indexed: true,
|
|
3281
|
-
},
|
|
3282
|
-
{
|
|
3283
|
-
name: 'operator',
|
|
3284
|
-
internalType: 'address',
|
|
3285
|
-
type: 'address',
|
|
3286
|
-
indexed: true,
|
|
3287
|
-
},
|
|
3288
|
-
{ name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
|
|
3289
|
-
],
|
|
3290
|
-
name: 'OperatorSet',
|
|
3291
|
-
},
|
|
3292
|
-
{
|
|
3293
|
-
type: 'event',
|
|
3294
|
-
anonymous: false,
|
|
3295
|
-
inputs: [
|
|
3296
|
-
{
|
|
3297
|
-
name: 'poolId',
|
|
3298
|
-
internalType: 'bytes32',
|
|
3299
|
-
type: 'bytes32',
|
|
3300
|
-
indexed: true,
|
|
3301
|
-
},
|
|
3302
|
-
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
3303
|
-
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
3304
|
-
],
|
|
3305
|
-
name: 'OperatorSet',
|
|
3306
|
-
},
|
|
3307
|
-
{
|
|
3308
|
-
type: 'event',
|
|
3309
|
-
anonymous: false,
|
|
3310
|
-
inputs: [
|
|
3311
|
-
{
|
|
3312
|
-
name: 'poolId',
|
|
3313
|
-
internalType: 'bytes32',
|
|
3314
|
-
type: 'bytes32',
|
|
3315
|
-
indexed: true,
|
|
3316
|
-
},
|
|
3317
|
-
{ name: 'inShares', internalType: 'bool', type: 'bool', indexed: false },
|
|
3318
|
-
{
|
|
3319
|
-
name: 'amount',
|
|
3320
|
-
internalType: 'uint256',
|
|
3321
|
-
type: 'uint256',
|
|
3322
|
-
indexed: false,
|
|
3323
|
-
},
|
|
3324
|
-
],
|
|
3325
|
-
name: 'ProtocolFee',
|
|
3326
|
-
},
|
|
3327
|
-
{
|
|
3328
|
-
type: 'event',
|
|
3329
|
-
anonymous: false,
|
|
3330
|
-
inputs: [
|
|
3331
|
-
{
|
|
3332
|
-
name: 'poolId',
|
|
3333
|
-
internalType: 'bytes32',
|
|
3334
|
-
type: 'bytes32',
|
|
3335
|
-
indexed: true,
|
|
3336
|
-
},
|
|
3337
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
3338
|
-
{
|
|
3339
|
-
name: 'owner',
|
|
3340
|
-
internalType: 'address',
|
|
3341
|
-
type: 'address',
|
|
3342
|
-
indexed: true,
|
|
3343
|
-
},
|
|
3344
|
-
{
|
|
3345
|
-
name: 'shares',
|
|
3346
|
-
internalType: 'uint256',
|
|
3347
|
-
type: 'uint256',
|
|
3348
|
-
indexed: false,
|
|
3349
|
-
},
|
|
3350
|
-
{
|
|
3351
|
-
name: 'quoteOut',
|
|
3352
|
-
internalType: 'uint256',
|
|
3353
|
-
type: 'uint256',
|
|
3354
|
-
indexed: false,
|
|
3355
|
-
},
|
|
3356
|
-
],
|
|
3357
|
-
name: 'Redeem',
|
|
3358
|
-
},
|
|
3359
|
-
{
|
|
3360
|
-
type: 'event',
|
|
3361
|
-
anonymous: false,
|
|
3362
|
-
inputs: [
|
|
3363
|
-
{
|
|
3364
|
-
name: 'poolId',
|
|
3365
|
-
internalType: 'bytes32',
|
|
3366
|
-
type: 'bytes32',
|
|
3367
|
-
indexed: true,
|
|
3368
|
-
},
|
|
3369
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
3370
|
-
{ name: 'L0', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
3371
|
-
{ name: 'Q0', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
3372
|
-
{
|
|
3373
|
-
name: 'theta0',
|
|
3374
|
-
internalType: 'int256',
|
|
3375
|
-
type: 'int256',
|
|
3376
|
-
indexed: false,
|
|
3377
|
-
},
|
|
3378
|
-
{
|
|
3379
|
-
name: 'r0',
|
|
3380
|
-
internalType: 'uint256[]',
|
|
3381
|
-
type: 'uint256[]',
|
|
3382
|
-
indexed: false,
|
|
3383
|
-
},
|
|
3384
|
-
],
|
|
3385
|
-
name: 'Seeded',
|
|
3386
|
-
},
|
|
3387
|
-
{
|
|
3388
|
-
type: 'event',
|
|
3389
|
-
anonymous: false,
|
|
3390
|
-
inputs: [
|
|
3391
|
-
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
3392
|
-
{
|
|
3393
|
-
name: 'name',
|
|
3394
|
-
internalType: 'bytes32',
|
|
3395
|
-
type: 'bytes32',
|
|
3396
|
-
indexed: false,
|
|
3397
|
-
},
|
|
3398
|
-
],
|
|
3399
|
-
name: 'SponsorNamed',
|
|
3400
|
-
},
|
|
3401
|
-
{
|
|
3402
|
-
type: 'event',
|
|
3403
|
-
anonymous: false,
|
|
3404
|
-
inputs: [
|
|
3405
|
-
{
|
|
3406
|
-
name: 'poolId',
|
|
3407
|
-
internalType: 'bytes32',
|
|
3408
|
-
type: 'bytes32',
|
|
3409
|
-
indexed: true,
|
|
3410
|
-
},
|
|
3411
|
-
{
|
|
3412
|
-
name: 'sender',
|
|
3413
|
-
internalType: 'address',
|
|
3414
|
-
type: 'address',
|
|
3415
|
-
indexed: true,
|
|
3416
|
-
},
|
|
3417
|
-
{
|
|
3418
|
-
name: 'tokenIn',
|
|
3419
|
-
internalType: 'address',
|
|
3420
|
-
type: 'address',
|
|
3421
|
-
indexed: false,
|
|
3422
|
-
},
|
|
3423
|
-
{
|
|
3424
|
-
name: 'tokenOut',
|
|
3425
|
-
internalType: 'address',
|
|
3426
|
-
type: 'address',
|
|
3427
|
-
indexed: false,
|
|
3428
|
-
},
|
|
3429
|
-
{
|
|
3430
|
-
name: 'amountIn',
|
|
3431
|
-
internalType: 'uint256',
|
|
3432
|
-
type: 'uint256',
|
|
3433
|
-
indexed: false,
|
|
3434
|
-
},
|
|
3435
|
-
{
|
|
3436
|
-
name: 'amountOut',
|
|
3437
|
-
internalType: 'uint256',
|
|
3438
|
-
type: 'uint256',
|
|
3439
|
-
indexed: false,
|
|
3440
|
-
},
|
|
3441
|
-
{
|
|
3442
|
-
name: 'reserveIn',
|
|
3443
|
-
internalType: 'uint256',
|
|
3444
|
-
type: 'uint256',
|
|
3445
|
-
indexed: false,
|
|
3446
|
-
},
|
|
3447
|
-
{
|
|
3448
|
-
name: 'reserveOut',
|
|
3449
|
-
internalType: 'uint256',
|
|
3450
|
-
type: 'uint256',
|
|
3451
|
-
indexed: false,
|
|
3452
|
-
},
|
|
3453
|
-
],
|
|
3454
|
-
name: 'Swap',
|
|
3455
|
-
},
|
|
3456
|
-
{
|
|
3457
|
-
type: 'event',
|
|
3458
|
-
anonymous: false,
|
|
3459
|
-
inputs: [
|
|
3460
|
-
{ name: 'by', internalType: 'address', type: 'address', indexed: false },
|
|
3461
|
-
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
|
3462
|
-
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
3463
|
-
{ name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
3464
|
-
{
|
|
3465
|
-
name: 'amount',
|
|
3466
|
-
internalType: 'uint256',
|
|
3467
|
-
type: 'uint256',
|
|
3468
|
-
indexed: false,
|
|
3469
|
-
},
|
|
3470
|
-
],
|
|
3471
|
-
name: 'Transfer',
|
|
3472
|
-
},
|
|
3473
|
-
{ type: 'error', inputs: [], name: 'AlreadySeeded' },
|
|
3474
|
-
{ type: 'error', inputs: [], name: 'AlreadyUnlocked' },
|
|
3475
|
-
{ type: 'error', inputs: [], name: 'BadLeg' },
|
|
3476
|
-
{ type: 'error', inputs: [], name: 'BadParam' },
|
|
3477
|
-
{ type: 'error', inputs: [], name: 'BadWeights' },
|
|
3478
|
-
{ type: 'error', inputs: [], name: 'BalanceOverflow' },
|
|
3479
|
-
{ type: 'error', inputs: [], name: 'FloorLocked' },
|
|
3480
|
-
{ type: 'error', inputs: [], name: 'InsufficientBalance' },
|
|
3481
|
-
{ type: 'error', inputs: [], name: 'InsufficientPermission' },
|
|
3482
|
-
{ type: 'error', inputs: [], name: 'InsufficientQuote' },
|
|
3483
|
-
{ type: 'error', inputs: [], name: 'InvalidToken' },
|
|
3484
|
-
{ type: 'error', inputs: [], name: 'LegHeld' },
|
|
3485
|
-
{ type: 'error', inputs: [], name: 'NonstandardToken' },
|
|
3486
|
-
{ type: 'error', inputs: [], name: 'NotAllowed' },
|
|
3487
|
-
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
3488
|
-
{ type: 'error', inputs: [], name: 'NotAuthorized' },
|
|
3489
|
-
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
3490
|
-
{ type: 'error', inputs: [], name: 'NotDelegated' },
|
|
3491
|
-
{ type: 'error', inputs: [], name: 'NotDissolvable' },
|
|
3492
|
-
{ type: 'error', inputs: [], name: 'NotOperator' },
|
|
3493
|
-
{ type: 'error', inputs: [], name: 'NotPrivate' },
|
|
3494
|
-
{ type: 'error', inputs: [], name: 'NotRetired' },
|
|
3495
|
-
{ type: 'error', inputs: [], name: 'NotSeeded' },
|
|
3496
|
-
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
3497
|
-
{ type: 'error', inputs: [], name: 'PoolLocked' },
|
|
3498
|
-
{ type: 'error', inputs: [], name: 'PoolNotInitialized' },
|
|
3499
|
-
{ type: 'error', inputs: [], name: 'PriceOutOfRange' },
|
|
3500
|
-
{
|
|
3501
|
-
type: 'error',
|
|
3502
|
-
inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
3503
|
-
name: 'QuoteResult',
|
|
3504
|
-
},
|
|
3505
|
-
{ type: 'error', inputs: [], name: 'ReserveNotRepresentable' },
|
|
3506
|
-
{ type: 'error', inputs: [], name: 'Restructured' },
|
|
3507
|
-
{ type: 'error', inputs: [], name: 'SameAsset' },
|
|
3508
|
-
{ type: 'error', inputs: [], name: 'Slippage' },
|
|
3509
|
-
{ type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
|
|
3510
|
-
{ type: 'error', inputs: [], name: 'TokensNotSettled' },
|
|
3511
|
-
{ type: 'error', inputs: [], name: 'TooManyGenerations' },
|
|
3512
|
-
{ type: 'error', inputs: [], name: 'TooManyLegs' },
|
|
3513
|
-
{ type: 'error', inputs: [], name: 'TransferShortfall' },
|
|
3514
|
-
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
3515
|
-
];
|
|
3516
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3517
2488
|
// LogswapLens
|
|
3518
2489
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3519
2490
|
export const logswapLensAbi = [
|