@logswap/sdk 0.5.99 → 0.5.101
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/README.md +104 -36
- package/dist/actions.d.ts +8 -8
- package/dist/actions.js +8 -8
- package/dist/admin.d.ts +16 -36
- package/dist/admin.js +26 -57
- package/dist/chains.d.ts +1 -1
- package/dist/client.d.ts +5 -5
- package/dist/client.js +19 -3
- package/dist/fees.js +2 -24
- package/dist/fpool.d.ts +10 -6
- package/dist/fpool.js +15 -25
- package/dist/generated.d.ts +1611 -2189
- package/dist/generated.js +947 -1224
- package/dist/history.d.ts +1 -1
- package/dist/history.js +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/indexer.d.ts +1 -1
- package/dist/indexer.js +5 -12
- package/dist/keys.d.ts +39 -52
- package/dist/keys.js +59 -38
- package/dist/liquidity.d.ts +2 -24
- package/dist/liquidity.js +7 -33
- package/dist/pools.d.ts +23 -14
- package/dist/pools.js +36 -28
- package/dist/positions.d.ts +2 -7
- package/dist/positions.js +6 -25
- package/package.json +1 -1
- package/src/actions.ts +12 -12
- package/src/admin.ts +42 -85
- package/src/chains.ts +1 -1
- package/src/client.ts +21 -5
- package/src/fees.ts +2 -22
- package/src/fpool.ts +19 -26
- package/src/generated.ts +951 -1228
- package/src/history.ts +2 -2
- package/src/index.ts +1 -2
- package/src/indexer.ts +6 -13
- package/src/keys.ts +80 -74
- package/src/liquidity.ts +7 -47
- package/src/pools.ts +45 -33
- package/src/positions.ts +7 -27
- package/dist/views.d.ts +0 -281
- package/dist/views.js +0 -188
- package/src/views.ts +0 -480
package/dist/generated.js
CHANGED
|
@@ -55,7 +55,6 @@ export const lensCAbi = [
|
|
|
55
55
|
type: 'tuple[]',
|
|
56
56
|
components: [
|
|
57
57
|
{ name: 'initialized', internalType: 'bool', type: 'bool' },
|
|
58
|
-
{ name: 'backstopSeeded', internalType: 'bool', type: 'bool' },
|
|
59
58
|
{ name: 'logPrice', internalType: 'int256', type: 'int256' },
|
|
60
59
|
{ name: 'lActive', internalType: 'uint256', type: 'uint256' },
|
|
61
60
|
{ name: 'reserveBase', internalType: 'uint256', type: 'uint256' },
|
|
@@ -193,9 +192,8 @@ export const lensCAbi = [
|
|
|
193
192
|
inputs: [],
|
|
194
193
|
name: 'params',
|
|
195
194
|
outputs: [
|
|
196
|
-
{ name: '
|
|
197
|
-
{ name: '
|
|
198
|
-
{ name: 'minTickSpacing', internalType: 'int256', type: 'int256' },
|
|
195
|
+
{ name: 'feeList', internalType: 'uint256[]', type: 'uint256[]' },
|
|
196
|
+
{ name: 'spacingList', internalType: 'int256[]', type: 'int256[]' },
|
|
199
197
|
{ name: 'noCap', internalType: 'int256', type: 'int256' },
|
|
200
198
|
{ name: 'cVersion', internalType: 'uint256', type: 'uint256' },
|
|
201
199
|
],
|
|
@@ -428,6 +426,16 @@ export const lensFAbi = [
|
|
|
428
426
|
],
|
|
429
427
|
stateMutability: 'view',
|
|
430
428
|
},
|
|
429
|
+
{
|
|
430
|
+
type: 'function',
|
|
431
|
+
inputs: [],
|
|
432
|
+
name: 'params',
|
|
433
|
+
outputs: [
|
|
434
|
+
{ name: 'feeList', internalType: 'uint256[]', type: 'uint256[]' },
|
|
435
|
+
{ name: 'fVersion', internalType: 'uint256', type: 'uint256' },
|
|
436
|
+
],
|
|
437
|
+
stateMutability: 'view',
|
|
438
|
+
},
|
|
431
439
|
{
|
|
432
440
|
type: 'function',
|
|
433
441
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -634,6 +642,7 @@ export const managerCAbi = [
|
|
|
634
642
|
inputs: [
|
|
635
643
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
636
644
|
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
645
|
+
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
637
646
|
{ name: 'to', internalType: 'address', type: 'address' },
|
|
638
647
|
],
|
|
639
648
|
name: 'claim',
|
|
@@ -743,14 +752,12 @@ export const managerCAbi = [
|
|
|
743
752
|
internalType: 'struct PoolKeyC',
|
|
744
753
|
type: 'tuple',
|
|
745
754
|
components: [
|
|
746
|
-
{ name: 'base', internalType: 'address', type: 'address' },
|
|
747
755
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
748
|
-
{ name: '
|
|
756
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
757
|
+
{ name: 'swapFeeIdx', internalType: 'uint8', type: 'uint8' },
|
|
758
|
+
{ name: 'spacingIdx', internalType: 'uint8', type: 'uint8' },
|
|
749
759
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
750
|
-
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
751
760
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
752
|
-
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
753
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
754
761
|
],
|
|
755
762
|
},
|
|
756
763
|
{ name: 'initialLogPrice', internalType: 'int256', type: 'int256' },
|
|
@@ -780,6 +787,7 @@ export const managerCAbi = [
|
|
|
780
787
|
type: 'function',
|
|
781
788
|
inputs: [
|
|
782
789
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
790
|
+
{ name: 'payer', internalType: 'address', type: 'address' },
|
|
783
791
|
{ name: 'to', internalType: 'address', type: 'address' },
|
|
784
792
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
785
793
|
{ name: 'cap', internalType: 'int256', type: 'int256' },
|
|
@@ -1026,13 +1034,13 @@ export const managerCAbi = [
|
|
|
1026
1034
|
type: 'event',
|
|
1027
1035
|
anonymous: false,
|
|
1028
1036
|
inputs: [
|
|
1029
|
-
{ name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
1030
1037
|
{
|
|
1031
1038
|
name: 'poolId',
|
|
1032
1039
|
internalType: 'bytes32',
|
|
1033
1040
|
type: 'bytes32',
|
|
1034
1041
|
indexed: true,
|
|
1035
1042
|
},
|
|
1043
|
+
{ name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
1036
1044
|
{ name: 'floor', internalType: 'int256', type: 'int256', indexed: false },
|
|
1037
1045
|
{ name: 'cap', internalType: 'int256', type: 'int256', indexed: false },
|
|
1038
1046
|
{ name: 'capped', internalType: 'bool', type: 'bool', indexed: false },
|
|
@@ -1050,12 +1058,13 @@ export const managerCAbi = [
|
|
|
1050
1058
|
indexed: true,
|
|
1051
1059
|
},
|
|
1052
1060
|
{
|
|
1053
|
-
name: '
|
|
1061
|
+
name: 'owner',
|
|
1054
1062
|
internalType: 'address',
|
|
1055
1063
|
type: 'address',
|
|
1056
1064
|
indexed: true,
|
|
1057
1065
|
},
|
|
1058
1066
|
{ name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
1067
|
+
{ name: 'to', internalType: 'address', type: 'address', indexed: false },
|
|
1059
1068
|
{
|
|
1060
1069
|
name: 'fees',
|
|
1061
1070
|
internalType: 'uint256',
|
|
@@ -1125,36 +1134,36 @@ export const managerCAbi = [
|
|
|
1125
1134
|
name: 'creator',
|
|
1126
1135
|
internalType: 'address',
|
|
1127
1136
|
type: 'address',
|
|
1128
|
-
indexed:
|
|
1137
|
+
indexed: false,
|
|
1129
1138
|
},
|
|
1130
1139
|
{
|
|
1131
|
-
name: '
|
|
1140
|
+
name: 'policy',
|
|
1132
1141
|
internalType: 'address',
|
|
1133
1142
|
type: 'address',
|
|
1134
|
-
indexed:
|
|
1143
|
+
indexed: true,
|
|
1135
1144
|
},
|
|
1136
1145
|
{
|
|
1137
|
-
name: '
|
|
1138
|
-
internalType: '
|
|
1139
|
-
type: '
|
|
1146
|
+
name: 'base',
|
|
1147
|
+
internalType: 'address',
|
|
1148
|
+
type: 'address',
|
|
1140
1149
|
indexed: false,
|
|
1141
1150
|
},
|
|
1142
1151
|
{
|
|
1143
|
-
name: '
|
|
1144
|
-
internalType: '
|
|
1145
|
-
type: '
|
|
1152
|
+
name: 'swapFeeIdx',
|
|
1153
|
+
internalType: 'uint8',
|
|
1154
|
+
type: 'uint8',
|
|
1146
1155
|
indexed: false,
|
|
1147
1156
|
},
|
|
1148
1157
|
{
|
|
1149
|
-
name: '
|
|
1150
|
-
internalType: '
|
|
1151
|
-
type: '
|
|
1158
|
+
name: 'spacingIdx',
|
|
1159
|
+
internalType: 'uint8',
|
|
1160
|
+
type: 'uint8',
|
|
1152
1161
|
indexed: false,
|
|
1153
1162
|
},
|
|
1154
1163
|
{
|
|
1155
|
-
name: '
|
|
1156
|
-
internalType: '
|
|
1157
|
-
type: '
|
|
1164
|
+
name: 'salt',
|
|
1165
|
+
internalType: 'bytes32',
|
|
1166
|
+
type: 'bytes32',
|
|
1158
1167
|
indexed: false,
|
|
1159
1168
|
},
|
|
1160
1169
|
{
|
|
@@ -1169,12 +1178,6 @@ export const managerCAbi = [
|
|
|
1169
1178
|
type: 'uint256',
|
|
1170
1179
|
indexed: false,
|
|
1171
1180
|
},
|
|
1172
|
-
{
|
|
1173
|
-
name: 'salt',
|
|
1174
|
-
internalType: 'bytes32',
|
|
1175
|
-
type: 'bytes32',
|
|
1176
|
-
indexed: false,
|
|
1177
|
-
},
|
|
1178
1181
|
],
|
|
1179
1182
|
name: 'PoolCreated',
|
|
1180
1183
|
},
|
|
@@ -1188,7 +1191,12 @@ export const managerCAbi = [
|
|
|
1188
1191
|
type: 'bytes32',
|
|
1189
1192
|
indexed: true,
|
|
1190
1193
|
},
|
|
1191
|
-
{
|
|
1194
|
+
{
|
|
1195
|
+
name: 'owner',
|
|
1196
|
+
internalType: 'address',
|
|
1197
|
+
type: 'address',
|
|
1198
|
+
indexed: true,
|
|
1199
|
+
},
|
|
1192
1200
|
{ name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
1193
1201
|
{
|
|
1194
1202
|
name: 'shares',
|
|
@@ -1229,6 +1237,18 @@ export const managerCAbi = [
|
|
|
1229
1237
|
},
|
|
1230
1238
|
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
1231
1239
|
{ name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
1240
|
+
{
|
|
1241
|
+
name: 'sender',
|
|
1242
|
+
internalType: 'address',
|
|
1243
|
+
type: 'address',
|
|
1244
|
+
indexed: false,
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
name: 'payer',
|
|
1248
|
+
internalType: 'address',
|
|
1249
|
+
type: 'address',
|
|
1250
|
+
indexed: false,
|
|
1251
|
+
},
|
|
1232
1252
|
{
|
|
1233
1253
|
name: 'shares',
|
|
1234
1254
|
internalType: 'uint256',
|
|
@@ -1261,7 +1281,7 @@ export const managerCAbi = [
|
|
|
1261
1281
|
indexed: true,
|
|
1262
1282
|
},
|
|
1263
1283
|
{
|
|
1264
|
-
name: '
|
|
1284
|
+
name: 'owner',
|
|
1265
1285
|
internalType: 'address',
|
|
1266
1286
|
type: 'address',
|
|
1267
1287
|
indexed: true,
|
|
@@ -1316,6 +1336,12 @@ export const managerCAbi = [
|
|
|
1316
1336
|
type: 'bytes32',
|
|
1317
1337
|
indexed: true,
|
|
1318
1338
|
},
|
|
1339
|
+
{
|
|
1340
|
+
name: 'sender',
|
|
1341
|
+
internalType: 'address',
|
|
1342
|
+
type: 'address',
|
|
1343
|
+
indexed: true,
|
|
1344
|
+
},
|
|
1319
1345
|
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
1320
1346
|
{
|
|
1321
1347
|
name: 'amount',
|
|
@@ -1475,8 +1501,6 @@ export const managerCAbi = [
|
|
|
1475
1501
|
name: 'TreasuryProposed',
|
|
1476
1502
|
},
|
|
1477
1503
|
{ type: 'error', inputs: [], name: 'AlreadyUnlocked' },
|
|
1478
|
-
{ type: 'error', inputs: [], name: 'BackstopMustBeUncapped' },
|
|
1479
|
-
{ type: 'error', inputs: [], name: 'BackstopTooSmall' },
|
|
1480
1504
|
{ type: 'error', inputs: [], name: 'BadCap' },
|
|
1481
1505
|
{ type: 'error', inputs: [], name: 'BadParam' },
|
|
1482
1506
|
{ type: 'error', inputs: [], name: 'BadTerms' },
|
|
@@ -1485,7 +1509,6 @@ export const managerCAbi = [
|
|
|
1485
1509
|
{ type: 'error', inputs: [], name: 'CappedOut' },
|
|
1486
1510
|
{ type: 'error', inputs: [], name: 'DrainedToFloor' },
|
|
1487
1511
|
{ type: 'error', inputs: [], name: 'DrainsBase' },
|
|
1488
|
-
{ type: 'error', inputs: [], name: 'IdenticalTokens' },
|
|
1489
1512
|
{ type: 'error', inputs: [], name: 'InsufficientBalance' },
|
|
1490
1513
|
{ type: 'error', inputs: [], name: 'InsufficientPermission' },
|
|
1491
1514
|
{ type: 'error', inputs: [], name: 'InsufficientQuote' },
|
|
@@ -1493,11 +1516,11 @@ export const managerCAbi = [
|
|
|
1493
1516
|
{ type: 'error', inputs: [], name: 'InvalidToken' },
|
|
1494
1517
|
{ type: 'error', inputs: [], name: 'NoLiquidity' },
|
|
1495
1518
|
{ type: 'error', inputs: [], name: 'NotAuthorized' },
|
|
1496
|
-
{ type: 'error', inputs: [], name: 'NotCreator' },
|
|
1497
1519
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
1498
1520
|
{ type: 'error', inputs: [], name: 'NotPolicy' },
|
|
1499
1521
|
{ type: 'error', inputs: [], name: 'NotTreasury' },
|
|
1500
1522
|
{ type: 'error', inputs: [], name: 'OffGrid' },
|
|
1523
|
+
{ type: 'error', inputs: [], name: 'PolicyNotApproved' },
|
|
1501
1524
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
1502
1525
|
{ type: 'error', inputs: [], name: 'PoolLocked' },
|
|
1503
1526
|
{ type: 'error', inputs: [], name: 'PoolNotInitialized' },
|
|
@@ -1509,15 +1532,14 @@ export const managerCAbi = [
|
|
|
1509
1532
|
},
|
|
1510
1533
|
{ type: 'error', inputs: [], name: 'ReserveNotRepresentable' },
|
|
1511
1534
|
{ type: 'error', inputs: [], name: 'Restructured' },
|
|
1535
|
+
{ type: 'error', inputs: [], name: 'SameAsset' },
|
|
1512
1536
|
{ type: 'error', inputs: [], name: 'Slippage' },
|
|
1513
|
-
{ type: 'error', inputs: [], name: 'SpacingZero' },
|
|
1514
1537
|
{ type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
|
|
1515
1538
|
{ type: 'error', inputs: [], name: 'TokensNotSettled' },
|
|
1516
1539
|
{ type: 'error', inputs: [], name: 'TransferShortfall' },
|
|
1517
1540
|
{ type: 'error', inputs: [], name: 'WrongPool' },
|
|
1518
1541
|
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
1519
1542
|
{ type: 'error', inputs: [], name: 'ZeroExposure' },
|
|
1520
|
-
{ type: 'error', inputs: [], name: 'ZeroShares' },
|
|
1521
1543
|
];
|
|
1522
1544
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
1523
1545
|
// ManagerF
|
|
@@ -1604,6 +1626,7 @@ export const managerFAbi = [
|
|
|
1604
1626
|
inputs: [
|
|
1605
1627
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1606
1628
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
1629
|
+
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
1607
1630
|
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1608
1631
|
],
|
|
1609
1632
|
name: 'claim',
|
|
@@ -1672,13 +1695,6 @@ export const managerFAbi = [
|
|
|
1672
1695
|
outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
|
|
1673
1696
|
stateMutability: 'nonpayable',
|
|
1674
1697
|
},
|
|
1675
|
-
{
|
|
1676
|
-
type: 'function',
|
|
1677
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1678
|
-
name: 'dps',
|
|
1679
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1680
|
-
stateMutability: 'view',
|
|
1681
|
-
},
|
|
1682
1698
|
{
|
|
1683
1699
|
type: 'function',
|
|
1684
1700
|
inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -1714,13 +1730,6 @@ export const managerFAbi = [
|
|
|
1714
1730
|
outputs: [],
|
|
1715
1731
|
stateMutability: 'nonpayable',
|
|
1716
1732
|
},
|
|
1717
|
-
{
|
|
1718
|
-
type: 'function',
|
|
1719
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1720
|
-
name: 'incomeHeld',
|
|
1721
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1722
|
-
stateMutability: 'view',
|
|
1723
|
-
},
|
|
1724
1733
|
{
|
|
1725
1734
|
type: 'function',
|
|
1726
1735
|
inputs: [
|
|
@@ -1785,6 +1794,7 @@ export const managerFAbi = [
|
|
|
1785
1794
|
type: 'function',
|
|
1786
1795
|
inputs: [
|
|
1787
1796
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1797
|
+
{ name: 'payer', internalType: 'address', type: 'address' },
|
|
1788
1798
|
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1789
1799
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
1790
1800
|
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
@@ -1806,7 +1816,7 @@ export const managerFAbi = [
|
|
|
1806
1816
|
},
|
|
1807
1817
|
{
|
|
1808
1818
|
type: 'function',
|
|
1809
|
-
inputs: [{ name: '
|
|
1819
|
+
inputs: [{ name: 'data', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
1810
1820
|
name: 'multicall',
|
|
1811
1821
|
outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
1812
1822
|
stateMutability: 'nonpayable',
|
|
@@ -2062,13 +2072,13 @@ export const managerFAbi = [
|
|
|
2062
2072
|
type: 'bytes32',
|
|
2063
2073
|
indexed: true,
|
|
2064
2074
|
},
|
|
2065
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2066
2075
|
{
|
|
2067
|
-
name: '
|
|
2076
|
+
name: 'owner',
|
|
2068
2077
|
internalType: 'address',
|
|
2069
2078
|
type: 'address',
|
|
2070
2079
|
indexed: true,
|
|
2071
2080
|
},
|
|
2081
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2072
2082
|
{ name: 'to', internalType: 'address', type: 'address', indexed: false },
|
|
2073
2083
|
{
|
|
2074
2084
|
name: 'amount',
|
|
@@ -2110,6 +2120,12 @@ export const managerFAbi = [
|
|
|
2110
2120
|
indexed: true,
|
|
2111
2121
|
},
|
|
2112
2122
|
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2123
|
+
{
|
|
2124
|
+
name: 'operator',
|
|
2125
|
+
internalType: 'address',
|
|
2126
|
+
type: 'address',
|
|
2127
|
+
indexed: true,
|
|
2128
|
+
},
|
|
2113
2129
|
{
|
|
2114
2130
|
name: 'supply',
|
|
2115
2131
|
internalType: 'uint256',
|
|
@@ -2136,6 +2152,12 @@ export const managerFAbi = [
|
|
|
2136
2152
|
indexed: true,
|
|
2137
2153
|
},
|
|
2138
2154
|
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
2155
|
+
{
|
|
2156
|
+
name: 'operator',
|
|
2157
|
+
internalType: 'address',
|
|
2158
|
+
type: 'address',
|
|
2159
|
+
indexed: true,
|
|
2160
|
+
},
|
|
2139
2161
|
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2140
2162
|
{
|
|
2141
2163
|
name: 'income',
|
|
@@ -2236,6 +2258,12 @@ export const managerFAbi = [
|
|
|
2236
2258
|
indexed: true,
|
|
2237
2259
|
},
|
|
2238
2260
|
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2261
|
+
{
|
|
2262
|
+
name: 'operator',
|
|
2263
|
+
internalType: 'address',
|
|
2264
|
+
type: 'address',
|
|
2265
|
+
indexed: true,
|
|
2266
|
+
},
|
|
2239
2267
|
{
|
|
2240
2268
|
name: 'quoteAmount',
|
|
2241
2269
|
internalType: 'uint256',
|
|
@@ -2298,6 +2326,12 @@ export const managerFAbi = [
|
|
|
2298
2326
|
type: 'address',
|
|
2299
2327
|
indexed: true,
|
|
2300
2328
|
},
|
|
2329
|
+
{
|
|
2330
|
+
name: 'creator',
|
|
2331
|
+
internalType: 'address',
|
|
2332
|
+
type: 'address',
|
|
2333
|
+
indexed: false,
|
|
2334
|
+
},
|
|
2301
2335
|
{
|
|
2302
2336
|
name: 'policy',
|
|
2303
2337
|
internalType: 'address',
|
|
@@ -2355,8 +2389,13 @@ export const managerFAbi = [
|
|
|
2355
2389
|
type: 'bytes32',
|
|
2356
2390
|
indexed: true,
|
|
2357
2391
|
},
|
|
2358
|
-
{
|
|
2359
|
-
|
|
2392
|
+
{
|
|
2393
|
+
name: 'owner',
|
|
2394
|
+
internalType: 'address',
|
|
2395
|
+
type: 'address',
|
|
2396
|
+
indexed: true,
|
|
2397
|
+
},
|
|
2398
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2360
2399
|
{ name: 'L', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2361
2400
|
{
|
|
2362
2401
|
name: 'shares',
|
|
@@ -2396,7 +2435,19 @@ export const managerFAbi = [
|
|
|
2396
2435
|
indexed: true,
|
|
2397
2436
|
},
|
|
2398
2437
|
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
2399
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed:
|
|
2438
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2439
|
+
{
|
|
2440
|
+
name: 'sender',
|
|
2441
|
+
internalType: 'address',
|
|
2442
|
+
type: 'address',
|
|
2443
|
+
indexed: false,
|
|
2444
|
+
},
|
|
2445
|
+
{
|
|
2446
|
+
name: 'payer',
|
|
2447
|
+
internalType: 'address',
|
|
2448
|
+
type: 'address',
|
|
2449
|
+
indexed: false,
|
|
2450
|
+
},
|
|
2400
2451
|
{ name: 'L', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2401
2452
|
{
|
|
2402
2453
|
name: 'shares',
|
|
@@ -2435,13 +2486,13 @@ export const managerFAbi = [
|
|
|
2435
2486
|
type: 'bytes32',
|
|
2436
2487
|
indexed: true,
|
|
2437
2488
|
},
|
|
2438
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2439
2489
|
{
|
|
2440
2490
|
name: 'owner',
|
|
2441
2491
|
internalType: 'address',
|
|
2442
2492
|
type: 'address',
|
|
2443
2493
|
indexed: true,
|
|
2444
2494
|
},
|
|
2495
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2445
2496
|
{
|
|
2446
2497
|
name: 'shares',
|
|
2447
2498
|
internalType: 'uint256',
|
|
@@ -2636,7 +2687,6 @@ export const managerFAbi = [
|
|
|
2636
2687
|
name: 'MulticallFailed',
|
|
2637
2688
|
},
|
|
2638
2689
|
{ type: 'error', inputs: [], name: 'NotAuthorized' },
|
|
2639
|
-
{ type: 'error', inputs: [], name: 'NotCreator' },
|
|
2640
2690
|
{ type: 'error', inputs: [], name: 'NotFrozen' },
|
|
2641
2691
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
2642
2692
|
{ type: 'error', inputs: [], name: 'NotOperator' },
|
|
@@ -2666,27 +2716,22 @@ export const managerFAbi = [
|
|
|
2666
2716
|
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
2667
2717
|
];
|
|
2668
2718
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2669
|
-
//
|
|
2719
|
+
// PolicyC
|
|
2670
2720
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2671
|
-
export const
|
|
2721
|
+
export const policyCAbi = [
|
|
2672
2722
|
{
|
|
2673
2723
|
type: 'constructor',
|
|
2674
2724
|
inputs: [
|
|
2675
2725
|
{ name: 'manager_', internalType: 'address', type: 'address' },
|
|
2676
2726
|
{
|
|
2677
2727
|
name: 'p',
|
|
2678
|
-
internalType: 'struct
|
|
2728
|
+
internalType: 'struct PolicyCParams',
|
|
2679
2729
|
type: 'tuple',
|
|
2680
2730
|
components: [
|
|
2681
2731
|
{ name: 'authority', internalType: 'address', type: 'address' },
|
|
2682
2732
|
{ name: 'open', internalType: 'bool', type: 'bool' },
|
|
2683
|
-
{ name: 'seedToDead', internalType: 'bool', type: 'bool' },
|
|
2684
|
-
{ name: 'incomeHarvestOnly', internalType: 'bool', type: 'bool' },
|
|
2685
|
-
{ name: 'incomeTaxRate', internalType: 'uint256', type: 'uint256' },
|
|
2686
2733
|
{ name: 'feeMask', internalType: 'uint8', type: 'uint8' },
|
|
2687
|
-
{ name: '
|
|
2688
|
-
{ name: 'lnCapMin', internalType: 'uint24', type: 'uint24' },
|
|
2689
|
-
{ name: 'quoteBuffer', internalType: 'uint256', type: 'uint256' },
|
|
2734
|
+
{ name: 'swapFeeTax', internalType: 'uint256', type: 'uint256' },
|
|
2690
2735
|
{ name: 'quotes', internalType: 'address[]', type: 'address[]' },
|
|
2691
2736
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
2692
2737
|
],
|
|
@@ -2753,20 +2798,6 @@ export const policyFAbi = [
|
|
|
2753
2798
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2754
2799
|
stateMutability: 'view',
|
|
2755
2800
|
},
|
|
2756
|
-
{
|
|
2757
|
-
type: 'function',
|
|
2758
|
-
inputs: [],
|
|
2759
|
-
name: 'incomeHarvestOnly',
|
|
2760
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
2761
|
-
stateMutability: 'view',
|
|
2762
|
-
},
|
|
2763
|
-
{
|
|
2764
|
-
type: 'function',
|
|
2765
|
-
inputs: [],
|
|
2766
|
-
name: 'incomeTaxRate',
|
|
2767
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2768
|
-
stateMutability: 'view',
|
|
2769
|
-
},
|
|
2770
2801
|
{
|
|
2771
2802
|
type: 'function',
|
|
2772
2803
|
inputs: [],
|
|
@@ -2774,20 +2805,6 @@ export const policyFAbi = [
|
|
|
2774
2805
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
2775
2806
|
stateMutability: 'pure',
|
|
2776
2807
|
},
|
|
2777
|
-
{
|
|
2778
|
-
type: 'function',
|
|
2779
|
-
inputs: [],
|
|
2780
|
-
name: 'lenMax',
|
|
2781
|
-
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
2782
|
-
stateMutability: 'view',
|
|
2783
|
-
},
|
|
2784
|
-
{
|
|
2785
|
-
type: 'function',
|
|
2786
|
-
inputs: [],
|
|
2787
|
-
name: 'lnCapMin',
|
|
2788
|
-
outputs: [{ name: '', internalType: 'uint24', type: 'uint24' }],
|
|
2789
|
-
stateMutability: 'view',
|
|
2790
|
-
},
|
|
2791
2808
|
{
|
|
2792
2809
|
type: 'function',
|
|
2793
2810
|
inputs: [],
|
|
@@ -2799,46 +2816,24 @@ export const policyFAbi = [
|
|
|
2799
2816
|
type: 'function',
|
|
2800
2817
|
inputs: [
|
|
2801
2818
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2802
|
-
{
|
|
2819
|
+
{
|
|
2820
|
+
name: 'action',
|
|
2821
|
+
internalType: 'enum IPolicyBase.Action',
|
|
2822
|
+
type: 'uint8',
|
|
2823
|
+
},
|
|
2803
2824
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
2804
2825
|
],
|
|
2805
2826
|
name: 'may',
|
|
2806
2827
|
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
2807
2828
|
stateMutability: 'view',
|
|
2808
2829
|
},
|
|
2809
|
-
{
|
|
2810
|
-
type: 'function',
|
|
2811
|
-
inputs: [
|
|
2812
|
-
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
2813
|
-
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
2814
|
-
{ name: 'quoteAmount', internalType: 'uint256', type: 'uint256' },
|
|
2815
|
-
{ name: 'lnCapOverSeed', internalType: 'uint24', type: 'uint24' },
|
|
2816
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2817
|
-
],
|
|
2818
|
-
name: 'mayDeploy',
|
|
2819
|
-
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
2820
|
-
stateMutability: 'view',
|
|
2821
|
-
},
|
|
2822
|
-
{
|
|
2823
|
-
type: 'function',
|
|
2824
|
-
inputs: [
|
|
2825
|
-
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
2826
|
-
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
2827
|
-
{ name: 'extra', internalType: 'uint256', type: 'uint256' },
|
|
2828
|
-
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
2829
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2830
|
-
],
|
|
2831
|
-
name: 'mayHarvest',
|
|
2832
|
-
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
2833
|
-
stateMutability: 'view',
|
|
2834
|
-
},
|
|
2835
2830
|
{
|
|
2836
2831
|
type: 'function',
|
|
2837
2832
|
inputs: [
|
|
2838
2833
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2839
2834
|
{ name: 'caller', internalType: 'address', type: 'address' },
|
|
2840
2835
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2841
|
-
{ name: '
|
|
2836
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2842
2837
|
{ name: 'swapFeeIdx', internalType: 'uint8', type: 'uint8' },
|
|
2843
2838
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
2844
2839
|
],
|
|
@@ -2846,6 +2841,7 @@ export const policyFAbi = [
|
|
|
2846
2841
|
outputs: [
|
|
2847
2842
|
{ name: 'flags', internalType: 'uint8', type: 'uint8' },
|
|
2848
2843
|
{ name: 'op', internalType: 'address', type: 'address' },
|
|
2844
|
+
{ name: 'tax', internalType: 'uint256', type: 'uint256' },
|
|
2849
2845
|
],
|
|
2850
2846
|
stateMutability: 'nonpayable',
|
|
2851
2847
|
},
|
|
@@ -2853,7 +2849,9 @@ export const policyFAbi = [
|
|
|
2853
2849
|
type: 'function',
|
|
2854
2850
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
2855
2851
|
name: 'mintMode',
|
|
2856
|
-
outputs: [
|
|
2852
|
+
outputs: [
|
|
2853
|
+
{ name: '', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
|
|
2854
|
+
],
|
|
2857
2855
|
stateMutability: 'view',
|
|
2858
2856
|
},
|
|
2859
2857
|
{
|
|
@@ -2870,13 +2868,6 @@ export const policyFAbi = [
|
|
|
2870
2868
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2871
2869
|
stateMutability: 'view',
|
|
2872
2870
|
},
|
|
2873
|
-
{
|
|
2874
|
-
type: 'function',
|
|
2875
|
-
inputs: [],
|
|
2876
|
-
name: 'quoteBuffer',
|
|
2877
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2878
|
-
stateMutability: 'view',
|
|
2879
|
-
},
|
|
2880
2871
|
{
|
|
2881
2872
|
type: 'function',
|
|
2882
2873
|
inputs: [],
|
|
@@ -2898,18 +2889,11 @@ export const policyFAbi = [
|
|
|
2898
2889
|
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
2899
2890
|
stateMutability: 'view',
|
|
2900
2891
|
},
|
|
2901
|
-
{
|
|
2902
|
-
type: 'function',
|
|
2903
|
-
inputs: [],
|
|
2904
|
-
name: 'seedToDead',
|
|
2905
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
2906
|
-
stateMutability: 'view',
|
|
2907
|
-
},
|
|
2908
2892
|
{
|
|
2909
2893
|
type: 'function',
|
|
2910
2894
|
inputs: [
|
|
2911
2895
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2912
|
-
{ name: 'mode', internalType: 'enum
|
|
2896
|
+
{ name: 'mode', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
|
|
2913
2897
|
],
|
|
2914
2898
|
name: 'setMintMode',
|
|
2915
2899
|
outputs: [],
|
|
@@ -2939,7 +2923,7 @@ export const policyFAbi = [
|
|
|
2939
2923
|
type: 'function',
|
|
2940
2924
|
inputs: [
|
|
2941
2925
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2942
|
-
{ name: 'mode', internalType: 'enum
|
|
2926
|
+
{ name: 'mode', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
|
|
2943
2927
|
],
|
|
2944
2928
|
name: 'setSwapMode',
|
|
2945
2929
|
outputs: [],
|
|
@@ -2947,18 +2931,17 @@ export const policyFAbi = [
|
|
|
2947
2931
|
},
|
|
2948
2932
|
{
|
|
2949
2933
|
type: 'function',
|
|
2950
|
-
inputs: [
|
|
2951
|
-
name: '
|
|
2952
|
-
outputs: [{ name: '', internalType: '
|
|
2934
|
+
inputs: [],
|
|
2935
|
+
name: 'swapFeeTax',
|
|
2936
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2953
2937
|
stateMutability: 'view',
|
|
2954
2938
|
},
|
|
2955
2939
|
{
|
|
2956
2940
|
type: 'function',
|
|
2957
|
-
inputs: [{ name: '
|
|
2958
|
-
name: '
|
|
2941
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
2942
|
+
name: 'swapMode',
|
|
2959
2943
|
outputs: [
|
|
2960
|
-
{ name: '
|
|
2961
|
-
{ name: 'rate', internalType: 'uint256', type: 'uint256' },
|
|
2944
|
+
{ name: '', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
|
|
2962
2945
|
],
|
|
2963
2946
|
stateMutability: 'view',
|
|
2964
2947
|
},
|
|
@@ -2974,7 +2957,7 @@ export const policyFAbi = [
|
|
|
2974
2957
|
},
|
|
2975
2958
|
{
|
|
2976
2959
|
name: 'mode',
|
|
2977
|
-
internalType: 'enum
|
|
2960
|
+
internalType: 'enum IPolicyBase.Mode',
|
|
2978
2961
|
type: 'uint8',
|
|
2979
2962
|
indexed: false,
|
|
2980
2963
|
},
|
|
@@ -3036,7 +3019,7 @@ export const policyFAbi = [
|
|
|
3036
3019
|
},
|
|
3037
3020
|
{
|
|
3038
3021
|
name: 'mode',
|
|
3039
|
-
internalType: 'enum
|
|
3022
|
+
internalType: 'enum IPolicyBase.Mode',
|
|
3040
3023
|
type: 'uint8',
|
|
3041
3024
|
indexed: false,
|
|
3042
3025
|
},
|
|
@@ -3051,7 +3034,6 @@ export const policyFAbi = [
|
|
|
3051
3034
|
inputs: [{ name: 'base', internalType: 'address', type: 'address' }],
|
|
3052
3035
|
name: 'BaseNotListed',
|
|
3053
3036
|
},
|
|
3054
|
-
{ type: 'error', inputs: [], name: 'CapTooClose' },
|
|
3055
3037
|
{
|
|
3056
3038
|
type: 'error',
|
|
3057
3039
|
inputs: [{ name: 'idx', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -3059,7 +3041,6 @@ export const policyFAbi = [
|
|
|
3059
3041
|
},
|
|
3060
3042
|
{ type: 'error', inputs: [], name: 'GatesUnavailable' },
|
|
3061
3043
|
{ type: 'error', inputs: [], name: 'InactivePool' },
|
|
3062
|
-
{ type: 'error', inputs: [], name: 'IncomeOnly' },
|
|
3063
3044
|
{ type: 'error', inputs: [], name: 'ModeOrder' },
|
|
3064
3045
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
3065
3046
|
{ type: 'error', inputs: [], name: 'NotCanonical' },
|
|
@@ -3070,293 +3051,342 @@ export const policyFAbi = [
|
|
|
3070
3051
|
inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
|
|
3071
3052
|
name: 'QuoteNotListed',
|
|
3072
3053
|
},
|
|
3073
|
-
{ type: 'error', inputs: [], name: 'QuoteTooThin' },
|
|
3074
3054
|
{ type: 'error', inputs: [], name: 'Refused' },
|
|
3075
|
-
{ type: 'error', inputs: [], name: 'TooManyLegs' },
|
|
3076
3055
|
];
|
|
3077
3056
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3078
|
-
//
|
|
3057
|
+
// PolicyF
|
|
3079
3058
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3080
|
-
export const
|
|
3059
|
+
export const policyFAbi = [
|
|
3081
3060
|
{
|
|
3082
3061
|
type: 'constructor',
|
|
3083
3062
|
inputs: [
|
|
3084
|
-
{ name: '
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3063
|
+
{ name: 'manager_', internalType: 'address', type: 'address' },
|
|
3064
|
+
{
|
|
3065
|
+
name: 'p',
|
|
3066
|
+
internalType: 'struct PolicyParams',
|
|
3067
|
+
type: 'tuple',
|
|
3068
|
+
components: [
|
|
3069
|
+
{ name: 'authority', internalType: 'address', type: 'address' },
|
|
3070
|
+
{ name: 'open', internalType: 'bool', type: 'bool' },
|
|
3071
|
+
{ name: 'seedToDead', internalType: 'bool', type: 'bool' },
|
|
3072
|
+
{ name: 'incomeHarvestOnly', internalType: 'bool', type: 'bool' },
|
|
3073
|
+
{ name: 'incomeTaxRate', internalType: 'uint256', type: 'uint256' },
|
|
3074
|
+
{ name: 'feeMask', internalType: 'uint8', type: 'uint8' },
|
|
3075
|
+
{ name: 'lenMax', internalType: 'uint8', type: 'uint8' },
|
|
3076
|
+
{ name: 'lnCapMin', internalType: 'uint24', type: 'uint24' },
|
|
3077
|
+
{ name: 'quoteBuffer', internalType: 'uint256', type: 'uint256' },
|
|
3078
|
+
{ name: 'quotes', internalType: 'address[]', type: 'address[]' },
|
|
3079
|
+
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
3080
|
+
],
|
|
3081
|
+
},
|
|
3082
|
+
],
|
|
3083
|
+
stateMutability: 'nonpayable',
|
|
3094
3084
|
},
|
|
3095
3085
|
{
|
|
3096
3086
|
type: 'function',
|
|
3097
|
-
inputs: [
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3087
|
+
inputs: [],
|
|
3088
|
+
name: 'MINT',
|
|
3089
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
3090
|
+
stateMutability: 'view',
|
|
3091
|
+
},
|
|
3092
|
+
{
|
|
3093
|
+
type: 'function',
|
|
3094
|
+
inputs: [],
|
|
3095
|
+
name: 'SWAP',
|
|
3096
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
3104
3097
|
stateMutability: 'view',
|
|
3105
3098
|
},
|
|
3106
3099
|
{
|
|
3107
3100
|
type: 'function',
|
|
3108
3101
|
inputs: [
|
|
3109
|
-
{ name: '
|
|
3110
|
-
{ name: '
|
|
3102
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3103
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3111
3104
|
],
|
|
3112
|
-
name: '
|
|
3105
|
+
name: 'appointOperator',
|
|
3113
3106
|
outputs: [],
|
|
3114
3107
|
stateMutability: 'nonpayable',
|
|
3115
3108
|
},
|
|
3116
3109
|
{
|
|
3117
3110
|
type: 'function',
|
|
3118
|
-
inputs: [
|
|
3119
|
-
name: '
|
|
3120
|
-
outputs: [
|
|
3121
|
-
{
|
|
3122
|
-
name: '',
|
|
3123
|
-
internalType: 'enum PolicyRegistry.CreationMode',
|
|
3124
|
-
type: 'uint8',
|
|
3125
|
-
},
|
|
3126
|
-
],
|
|
3111
|
+
inputs: [],
|
|
3112
|
+
name: 'authority',
|
|
3113
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3127
3114
|
stateMutability: 'view',
|
|
3128
3115
|
},
|
|
3129
3116
|
{
|
|
3130
3117
|
type: 'function',
|
|
3131
|
-
inputs: [
|
|
3132
|
-
name: '
|
|
3133
|
-
outputs: [
|
|
3134
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
3135
|
-
{ name: 'until', internalType: 'uint64', type: 'uint64' },
|
|
3136
|
-
{ name: 'index', internalType: 'uint32', type: 'uint32' },
|
|
3137
|
-
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
3138
|
-
],
|
|
3118
|
+
inputs: [],
|
|
3119
|
+
name: 'baseCurated',
|
|
3120
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3139
3121
|
stateMutability: 'view',
|
|
3140
3122
|
},
|
|
3141
3123
|
{
|
|
3142
3124
|
type: 'function',
|
|
3143
3125
|
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3144
|
-
name: '
|
|
3126
|
+
name: 'baseListed',
|
|
3145
3127
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3146
3128
|
stateMutability: 'view',
|
|
3147
3129
|
},
|
|
3148
3130
|
{
|
|
3149
3131
|
type: 'function',
|
|
3150
|
-
inputs: [
|
|
3151
|
-
name: '
|
|
3152
|
-
outputs: [{ name: '', internalType: '
|
|
3132
|
+
inputs: [],
|
|
3133
|
+
name: 'feeMask',
|
|
3134
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
3153
3135
|
stateMutability: 'view',
|
|
3154
3136
|
},
|
|
3155
3137
|
{
|
|
3156
3138
|
type: 'function',
|
|
3157
|
-
inputs: [
|
|
3158
|
-
name: '
|
|
3159
|
-
outputs: [{ name: '', internalType: '
|
|
3139
|
+
inputs: [],
|
|
3140
|
+
name: 'fixedAuthority',
|
|
3141
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3160
3142
|
stateMutability: 'view',
|
|
3161
3143
|
},
|
|
3162
3144
|
{
|
|
3163
3145
|
type: 'function',
|
|
3164
3146
|
inputs: [],
|
|
3165
|
-
name: '
|
|
3166
|
-
outputs: [{ name: '', internalType: '
|
|
3147
|
+
name: 'incomeHarvestOnly',
|
|
3148
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3167
3149
|
stateMutability: 'view',
|
|
3168
3150
|
},
|
|
3169
3151
|
{
|
|
3170
3152
|
type: 'function',
|
|
3171
3153
|
inputs: [],
|
|
3172
|
-
name: '
|
|
3173
|
-
outputs: [{ name: '', internalType: '
|
|
3154
|
+
name: 'incomeTaxRate',
|
|
3155
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3174
3156
|
stateMutability: 'view',
|
|
3175
3157
|
},
|
|
3176
3158
|
{
|
|
3177
3159
|
type: 'function',
|
|
3178
3160
|
inputs: [],
|
|
3179
|
-
name: '
|
|
3180
|
-
outputs: [{ name: '', internalType: '
|
|
3161
|
+
name: 'kind',
|
|
3162
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3163
|
+
stateMutability: 'pure',
|
|
3164
|
+
},
|
|
3165
|
+
{
|
|
3166
|
+
type: 'function',
|
|
3167
|
+
inputs: [],
|
|
3168
|
+
name: 'lenMax',
|
|
3169
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
3181
3170
|
stateMutability: 'view',
|
|
3182
3171
|
},
|
|
3183
3172
|
{
|
|
3184
3173
|
type: 'function',
|
|
3185
|
-
inputs: [
|
|
3186
|
-
name: '
|
|
3187
|
-
outputs: [],
|
|
3188
|
-
stateMutability: '
|
|
3174
|
+
inputs: [],
|
|
3175
|
+
name: 'lnCapMin',
|
|
3176
|
+
outputs: [{ name: '', internalType: 'uint24', type: 'uint24' }],
|
|
3177
|
+
stateMutability: 'view',
|
|
3189
3178
|
},
|
|
3190
3179
|
{
|
|
3191
3180
|
type: 'function',
|
|
3192
|
-
inputs: [
|
|
3193
|
-
name: '
|
|
3194
|
-
outputs: [],
|
|
3195
|
-
stateMutability: '
|
|
3181
|
+
inputs: [],
|
|
3182
|
+
name: 'manager',
|
|
3183
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3184
|
+
stateMutability: 'view',
|
|
3196
3185
|
},
|
|
3197
3186
|
{
|
|
3198
3187
|
type: 'function',
|
|
3199
3188
|
inputs: [
|
|
3200
|
-
{ name: '
|
|
3189
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3201
3190
|
{
|
|
3202
|
-
name: '
|
|
3203
|
-
internalType: 'enum
|
|
3191
|
+
name: 'action',
|
|
3192
|
+
internalType: 'enum IPolicyBase.Action',
|
|
3204
3193
|
type: 'uint8',
|
|
3205
3194
|
},
|
|
3195
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3206
3196
|
],
|
|
3207
|
-
name: '
|
|
3208
|
-
outputs: [],
|
|
3209
|
-
stateMutability: '
|
|
3197
|
+
name: 'may',
|
|
3198
|
+
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
3199
|
+
stateMutability: 'view',
|
|
3210
3200
|
},
|
|
3211
3201
|
{
|
|
3212
3202
|
type: 'function',
|
|
3213
3203
|
inputs: [
|
|
3214
|
-
{ name: '
|
|
3215
|
-
{ name: '
|
|
3204
|
+
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
3205
|
+
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
3206
|
+
{ name: 'quoteAmount', internalType: 'uint256', type: 'uint256' },
|
|
3207
|
+
{ name: 'lnCapOverSeed', internalType: 'uint24', type: 'uint24' },
|
|
3208
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3216
3209
|
],
|
|
3217
|
-
name: '
|
|
3218
|
-
outputs: [],
|
|
3219
|
-
stateMutability: '
|
|
3210
|
+
name: 'mayDeploy',
|
|
3211
|
+
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
3212
|
+
stateMutability: 'view',
|
|
3220
3213
|
},
|
|
3221
3214
|
{
|
|
3222
3215
|
type: 'function',
|
|
3223
3216
|
inputs: [
|
|
3224
|
-
{ name: '
|
|
3225
|
-
{ name: '
|
|
3217
|
+
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
3218
|
+
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
3219
|
+
{ name: 'extra', internalType: 'uint256', type: 'uint256' },
|
|
3220
|
+
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
3221
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3222
|
+
],
|
|
3223
|
+
name: 'mayHarvest',
|
|
3224
|
+
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
3225
|
+
stateMutability: 'view',
|
|
3226
|
+
},
|
|
3227
|
+
{
|
|
3228
|
+
type: 'function',
|
|
3229
|
+
inputs: [
|
|
3230
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3231
|
+
{ name: 'caller', internalType: 'address', type: 'address' },
|
|
3232
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3233
|
+
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
3234
|
+
{ name: 'swapFeeIdx', internalType: 'uint8', type: 'uint8' },
|
|
3235
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
3236
|
+
],
|
|
3237
|
+
name: 'mayInit',
|
|
3238
|
+
outputs: [
|
|
3239
|
+
{ name: 'flags', internalType: 'uint8', type: 'uint8' },
|
|
3240
|
+
{ name: 'op', internalType: 'address', type: 'address' },
|
|
3226
3241
|
],
|
|
3227
|
-
name: 'setSponsorName',
|
|
3228
|
-
outputs: [],
|
|
3229
3242
|
stateMutability: 'nonpayable',
|
|
3230
3243
|
},
|
|
3231
3244
|
{
|
|
3232
3245
|
type: 'function',
|
|
3233
|
-
inputs: [{ name: '', internalType: '
|
|
3234
|
-
name: '
|
|
3235
|
-
outputs: [
|
|
3246
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3247
|
+
name: 'mintMode',
|
|
3248
|
+
outputs: [
|
|
3249
|
+
{ name: '', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
|
|
3250
|
+
],
|
|
3236
3251
|
stateMutability: 'view',
|
|
3237
3252
|
},
|
|
3238
3253
|
{
|
|
3239
3254
|
type: 'function',
|
|
3240
|
-
inputs: [
|
|
3241
|
-
name: '
|
|
3255
|
+
inputs: [],
|
|
3256
|
+
name: 'open',
|
|
3257
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3258
|
+
stateMutability: 'view',
|
|
3259
|
+
},
|
|
3260
|
+
{
|
|
3261
|
+
type: 'function',
|
|
3262
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3263
|
+
name: 'operator',
|
|
3242
3264
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3243
3265
|
stateMutability: 'view',
|
|
3244
3266
|
},
|
|
3245
3267
|
{
|
|
3246
3268
|
type: 'function',
|
|
3247
|
-
inputs: [
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
name: 'sunset',
|
|
3252
|
-
outputs: [],
|
|
3253
|
-
stateMutability: 'nonpayable',
|
|
3269
|
+
inputs: [],
|
|
3270
|
+
name: 'quoteBuffer',
|
|
3271
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3272
|
+
stateMutability: 'view',
|
|
3254
3273
|
},
|
|
3255
3274
|
{
|
|
3256
3275
|
type: 'function',
|
|
3257
|
-
inputs: [
|
|
3258
|
-
name: '
|
|
3259
|
-
outputs: [{ name: '', internalType: '
|
|
3276
|
+
inputs: [],
|
|
3277
|
+
name: 'quoteCurated',
|
|
3278
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3260
3279
|
stateMutability: 'view',
|
|
3261
3280
|
},
|
|
3262
3281
|
{
|
|
3263
|
-
type: '
|
|
3264
|
-
|
|
3282
|
+
type: 'function',
|
|
3283
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3284
|
+
name: 'quoteListed',
|
|
3285
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3286
|
+
stateMutability: 'view',
|
|
3287
|
+
},
|
|
3288
|
+
{
|
|
3289
|
+
type: 'function',
|
|
3290
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3291
|
+
name: 'rights',
|
|
3292
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
3293
|
+
stateMutability: 'view',
|
|
3294
|
+
},
|
|
3295
|
+
{
|
|
3296
|
+
type: 'function',
|
|
3297
|
+
inputs: [],
|
|
3298
|
+
name: 'seedToDead',
|
|
3299
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3300
|
+
stateMutability: 'view',
|
|
3301
|
+
},
|
|
3302
|
+
{
|
|
3303
|
+
type: 'function',
|
|
3265
3304
|
inputs: [
|
|
3266
|
-
{
|
|
3267
|
-
|
|
3268
|
-
internalType: 'address',
|
|
3269
|
-
type: 'address',
|
|
3270
|
-
indexed: true,
|
|
3271
|
-
},
|
|
3272
|
-
{
|
|
3273
|
-
name: 'name',
|
|
3274
|
-
internalType: 'bytes32',
|
|
3275
|
-
type: 'bytes32',
|
|
3276
|
-
indexed: false,
|
|
3277
|
-
},
|
|
3305
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3306
|
+
{ name: 'mode', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
|
|
3278
3307
|
],
|
|
3279
|
-
name: '
|
|
3308
|
+
name: 'setMintMode',
|
|
3309
|
+
outputs: [],
|
|
3310
|
+
stateMutability: 'nonpayable',
|
|
3280
3311
|
},
|
|
3281
3312
|
{
|
|
3282
|
-
type: '
|
|
3283
|
-
anonymous: false,
|
|
3313
|
+
type: 'function',
|
|
3284
3314
|
inputs: [
|
|
3285
|
-
{
|
|
3286
|
-
|
|
3287
|
-
internalType: 'address',
|
|
3288
|
-
type: 'address',
|
|
3289
|
-
indexed: true,
|
|
3290
|
-
},
|
|
3291
|
-
{
|
|
3292
|
-
name: 'mode',
|
|
3293
|
-
internalType: 'enum PolicyRegistry.CreationMode',
|
|
3294
|
-
type: 'uint8',
|
|
3295
|
-
indexed: false,
|
|
3296
|
-
},
|
|
3315
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3316
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
3297
3317
|
],
|
|
3298
|
-
name: '
|
|
3318
|
+
name: 'setName',
|
|
3319
|
+
outputs: [],
|
|
3320
|
+
stateMutability: 'nonpayable',
|
|
3299
3321
|
},
|
|
3300
3322
|
{
|
|
3301
|
-
type: '
|
|
3302
|
-
anonymous: false,
|
|
3323
|
+
type: 'function',
|
|
3303
3324
|
inputs: [
|
|
3304
|
-
{
|
|
3305
|
-
|
|
3306
|
-
internalType: 'address',
|
|
3307
|
-
type: 'address',
|
|
3308
|
-
indexed: true,
|
|
3309
|
-
},
|
|
3310
|
-
{ name: 'trusted', internalType: 'bool', type: 'bool', indexed: false },
|
|
3325
|
+
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
3326
|
+
{ name: 'bits', internalType: 'uint8', type: 'uint8' },
|
|
3311
3327
|
],
|
|
3312
|
-
name: '
|
|
3328
|
+
name: 'setRights',
|
|
3329
|
+
outputs: [],
|
|
3330
|
+
stateMutability: 'nonpayable',
|
|
3313
3331
|
},
|
|
3314
3332
|
{
|
|
3315
|
-
type: '
|
|
3316
|
-
anonymous: false,
|
|
3333
|
+
type: 'function',
|
|
3317
3334
|
inputs: [
|
|
3318
|
-
{ name: '
|
|
3319
|
-
{ name: '
|
|
3335
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3336
|
+
{ name: 'mode', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
|
|
3320
3337
|
],
|
|
3321
|
-
name: '
|
|
3338
|
+
name: 'setSwapMode',
|
|
3339
|
+
outputs: [],
|
|
3340
|
+
stateMutability: 'nonpayable',
|
|
3341
|
+
},
|
|
3342
|
+
{
|
|
3343
|
+
type: 'function',
|
|
3344
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3345
|
+
name: 'swapMode',
|
|
3346
|
+
outputs: [
|
|
3347
|
+
{ name: '', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
|
|
3348
|
+
],
|
|
3349
|
+
stateMutability: 'view',
|
|
3350
|
+
},
|
|
3351
|
+
{
|
|
3352
|
+
type: 'function',
|
|
3353
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
3354
|
+
name: 'taxOf',
|
|
3355
|
+
outputs: [
|
|
3356
|
+
{ name: 'payer', internalType: 'address', type: 'address' },
|
|
3357
|
+
{ name: 'rate', internalType: 'uint256', type: 'uint256' },
|
|
3358
|
+
],
|
|
3359
|
+
stateMutability: 'view',
|
|
3322
3360
|
},
|
|
3323
3361
|
{
|
|
3324
3362
|
type: 'event',
|
|
3325
3363
|
anonymous: false,
|
|
3326
3364
|
inputs: [
|
|
3327
3365
|
{
|
|
3328
|
-
name: '
|
|
3329
|
-
internalType: '
|
|
3330
|
-
type: '
|
|
3366
|
+
name: 'poolId',
|
|
3367
|
+
internalType: 'bytes32',
|
|
3368
|
+
type: 'bytes32',
|
|
3331
3369
|
indexed: true,
|
|
3332
3370
|
},
|
|
3333
3371
|
{
|
|
3334
|
-
name: '
|
|
3335
|
-
internalType: '
|
|
3336
|
-
type: '
|
|
3337
|
-
indexed:
|
|
3372
|
+
name: 'mode',
|
|
3373
|
+
internalType: 'enum IPolicyBase.Mode',
|
|
3374
|
+
type: 'uint8',
|
|
3375
|
+
indexed: false,
|
|
3338
3376
|
},
|
|
3339
3377
|
],
|
|
3340
|
-
name: '
|
|
3378
|
+
name: 'MintModeSet',
|
|
3341
3379
|
},
|
|
3342
3380
|
{
|
|
3343
3381
|
type: 'event',
|
|
3344
3382
|
anonymous: false,
|
|
3345
3383
|
inputs: [
|
|
3346
3384
|
{
|
|
3347
|
-
name: '
|
|
3348
|
-
internalType: '
|
|
3349
|
-
type: '
|
|
3385
|
+
name: 'poolId',
|
|
3386
|
+
internalType: 'bytes32',
|
|
3387
|
+
type: 'bytes32',
|
|
3350
3388
|
indexed: true,
|
|
3351
3389
|
},
|
|
3352
|
-
],
|
|
3353
|
-
name: 'Revoked',
|
|
3354
|
-
},
|
|
3355
|
-
{
|
|
3356
|
-
type: 'event',
|
|
3357
|
-
anonymous: false,
|
|
3358
|
-
inputs: [
|
|
3359
|
-
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
3360
3390
|
{
|
|
3361
3391
|
name: 'name',
|
|
3362
3392
|
internalType: 'bytes32',
|
|
@@ -3364,1240 +3394,933 @@ export const policyRegistryAbi = [
|
|
|
3364
3394
|
indexed: false,
|
|
3365
3395
|
},
|
|
3366
3396
|
],
|
|
3367
|
-
name: '
|
|
3397
|
+
name: 'NameSet',
|
|
3368
3398
|
},
|
|
3369
3399
|
{
|
|
3370
3400
|
type: 'event',
|
|
3371
3401
|
anonymous: false,
|
|
3372
3402
|
inputs: [
|
|
3373
3403
|
{
|
|
3374
|
-
name: '
|
|
3375
|
-
internalType: '
|
|
3376
|
-
type: '
|
|
3404
|
+
name: 'poolId',
|
|
3405
|
+
internalType: 'bytes32',
|
|
3406
|
+
type: 'bytes32',
|
|
3377
3407
|
indexed: true,
|
|
3378
3408
|
},
|
|
3379
|
-
{
|
|
3380
|
-
|
|
3381
|
-
internalType: 'uint64',
|
|
3382
|
-
type: 'uint64',
|
|
3383
|
-
indexed: false,
|
|
3384
|
-
},
|
|
3409
|
+
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
3410
|
+
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
3385
3411
|
],
|
|
3386
|
-
name: '
|
|
3412
|
+
name: 'OperatorAppointed',
|
|
3387
3413
|
},
|
|
3388
|
-
{ type: 'error', inputs: [], name: 'BadSunset' },
|
|
3389
|
-
{ type: 'error', inputs: [], name: 'InvalidForwardedUser' },
|
|
3390
|
-
{ type: 'error', inputs: [], name: 'NotAPolicy' },
|
|
3391
|
-
{ type: 'error', inputs: [], name: 'NotListed' },
|
|
3392
|
-
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
3393
|
-
{ type: 'error', inputs: [], name: 'SponsorOnly' },
|
|
3394
|
-
];
|
|
3395
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3396
|
-
// RouterActions
|
|
3397
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3398
|
-
export const routerActionsAbi = [
|
|
3399
3414
|
{
|
|
3400
|
-
type: '
|
|
3415
|
+
type: 'event',
|
|
3416
|
+
anonymous: false,
|
|
3401
3417
|
inputs: [
|
|
3402
|
-
{
|
|
3403
|
-
|
|
3404
|
-
internalType: 'struct BurnAct',
|
|
3405
|
-
type: 'tuple',
|
|
3406
|
-
components: [
|
|
3407
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3408
|
-
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3409
|
-
{ name: 'shares', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3410
|
-
],
|
|
3411
|
-
},
|
|
3418
|
+
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
3419
|
+
{ name: 'bits', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
3412
3420
|
],
|
|
3413
|
-
name: '
|
|
3414
|
-
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
3415
|
-
stateMutability: 'pure',
|
|
3421
|
+
name: 'RightsSet',
|
|
3416
3422
|
},
|
|
3417
3423
|
{
|
|
3418
|
-
type: '
|
|
3424
|
+
type: 'event',
|
|
3425
|
+
anonymous: false,
|
|
3419
3426
|
inputs: [
|
|
3420
3427
|
{
|
|
3421
|
-
name: '
|
|
3422
|
-
internalType: '
|
|
3423
|
-
type: '
|
|
3424
|
-
|
|
3425
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3426
|
-
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3427
|
-
],
|
|
3428
|
+
name: 'poolId',
|
|
3429
|
+
internalType: 'bytes32',
|
|
3430
|
+
type: 'bytes32',
|
|
3431
|
+
indexed: true,
|
|
3428
3432
|
},
|
|
3429
|
-
],
|
|
3430
|
-
name: 'encodeClaim',
|
|
3431
|
-
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
3432
|
-
stateMutability: 'pure',
|
|
3433
|
-
},
|
|
3434
|
-
{
|
|
3435
|
-
type: 'function',
|
|
3436
|
-
inputs: [
|
|
3437
3433
|
{
|
|
3438
|
-
name: '
|
|
3439
|
-
internalType: '
|
|
3440
|
-
type: '
|
|
3441
|
-
|
|
3442
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3443
|
-
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
3444
|
-
{ name: 'cap', internalType: 'int256', type: 'int256' },
|
|
3445
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3446
|
-
],
|
|
3434
|
+
name: 'mode',
|
|
3435
|
+
internalType: 'enum IPolicyBase.Mode',
|
|
3436
|
+
type: 'uint8',
|
|
3437
|
+
indexed: false,
|
|
3447
3438
|
},
|
|
3448
3439
|
],
|
|
3449
|
-
name: '
|
|
3450
|
-
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
3451
|
-
stateMutability: 'pure',
|
|
3440
|
+
name: 'SwapModeSet',
|
|
3452
3441
|
},
|
|
3442
|
+
{ type: 'error', inputs: [], name: 'AlreadyHeld' },
|
|
3443
|
+
{ type: 'error', inputs: [], name: 'BadParams' },
|
|
3444
|
+
{ type: 'error', inputs: [], name: 'BadRights' },
|
|
3453
3445
|
{
|
|
3454
|
-
type: '
|
|
3455
|
-
inputs: [
|
|
3456
|
-
|
|
3457
|
-
name: 'a',
|
|
3458
|
-
internalType: 'struct PathAct',
|
|
3459
|
-
type: 'tuple',
|
|
3460
|
-
components: [
|
|
3461
|
-
{
|
|
3462
|
-
name: 'hops',
|
|
3463
|
-
internalType: 'struct Hop[]',
|
|
3464
|
-
type: 'tuple[]',
|
|
3465
|
-
components: [
|
|
3466
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3467
|
-
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
3468
|
-
],
|
|
3469
|
-
},
|
|
3470
|
-
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
3471
|
-
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
3472
|
-
],
|
|
3473
|
-
},
|
|
3474
|
-
],
|
|
3475
|
-
name: 'encodePath',
|
|
3476
|
-
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
3477
|
-
stateMutability: 'pure',
|
|
3446
|
+
type: 'error',
|
|
3447
|
+
inputs: [{ name: 'base', internalType: 'address', type: 'address' }],
|
|
3448
|
+
name: 'BaseNotListed',
|
|
3478
3449
|
},
|
|
3450
|
+
{ type: 'error', inputs: [], name: 'CapTooClose' },
|
|
3479
3451
|
{
|
|
3480
|
-
type: '
|
|
3481
|
-
inputs: [
|
|
3482
|
-
|
|
3483
|
-
name: 'a',
|
|
3484
|
-
internalType: 'struct SwapAct',
|
|
3485
|
-
type: 'tuple',
|
|
3486
|
-
components: [
|
|
3487
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3488
|
-
{ name: 'baseSide', internalType: 'bool', type: 'bool' },
|
|
3489
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3490
|
-
{ name: 'limit', internalType: 'uint256', type: 'uint256' },
|
|
3491
|
-
],
|
|
3492
|
-
},
|
|
3493
|
-
],
|
|
3494
|
-
name: 'encodeSwap',
|
|
3495
|
-
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
3496
|
-
stateMutability: 'pure',
|
|
3452
|
+
type: 'error',
|
|
3453
|
+
inputs: [{ name: 'idx', internalType: 'uint256', type: 'uint256' }],
|
|
3454
|
+
name: 'FeeNotListed',
|
|
3497
3455
|
},
|
|
3456
|
+
{ type: 'error', inputs: [], name: 'GatesUnavailable' },
|
|
3457
|
+
{ type: 'error', inputs: [], name: 'InactivePool' },
|
|
3458
|
+
{ type: 'error', inputs: [], name: 'IncomeOnly' },
|
|
3459
|
+
{ type: 'error', inputs: [], name: 'ModeOrder' },
|
|
3460
|
+
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
3461
|
+
{ type: 'error', inputs: [], name: 'NotCanonical' },
|
|
3462
|
+
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
3463
|
+
{ type: 'error', inputs: [], name: 'NotOperator' },
|
|
3498
3464
|
{
|
|
3499
|
-
type: '
|
|
3500
|
-
inputs: [
|
|
3501
|
-
|
|
3502
|
-
name: 'a',
|
|
3503
|
-
internalType: 'struct UpdateAct',
|
|
3504
|
-
type: 'tuple',
|
|
3505
|
-
components: [
|
|
3506
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3507
|
-
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
3508
|
-
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
3509
|
-
{ name: 'toFloor', internalType: 'int256', type: 'int256' },
|
|
3510
|
-
{ name: 'toCap', internalType: 'int256', type: 'int256' },
|
|
3511
|
-
{ name: 'newL', internalType: 'uint256', type: 'uint256' },
|
|
3512
|
-
],
|
|
3513
|
-
},
|
|
3514
|
-
],
|
|
3515
|
-
name: 'encodeUpdate',
|
|
3516
|
-
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
3517
|
-
stateMutability: 'pure',
|
|
3465
|
+
type: 'error',
|
|
3466
|
+
inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
|
|
3467
|
+
name: 'QuoteNotListed',
|
|
3518
3468
|
},
|
|
3469
|
+
{ type: 'error', inputs: [], name: 'QuoteTooThin' },
|
|
3470
|
+
{ type: 'error', inputs: [], name: 'Refused' },
|
|
3471
|
+
{ type: 'error', inputs: [], name: 'TooManyLegs' },
|
|
3519
3472
|
];
|
|
3520
3473
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3521
|
-
//
|
|
3474
|
+
// PolicyRegistry
|
|
3522
3475
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3523
|
-
export const
|
|
3476
|
+
export const policyRegistryAbi = [
|
|
3524
3477
|
{
|
|
3525
3478
|
type: 'constructor',
|
|
3526
3479
|
inputs: [
|
|
3527
|
-
{ name: '
|
|
3528
|
-
{ name: '_permit2', internalType: 'address', type: 'address' },
|
|
3480
|
+
{ name: '_logAuthority', internalType: 'address', type: 'address' },
|
|
3529
3481
|
],
|
|
3530
3482
|
stateMutability: 'nonpayable',
|
|
3531
3483
|
},
|
|
3532
3484
|
{
|
|
3533
3485
|
type: 'function',
|
|
3534
3486
|
inputs: [],
|
|
3535
|
-
name: '
|
|
3536
|
-
outputs: [
|
|
3537
|
-
stateMutability: '
|
|
3487
|
+
name: 'acceptLogAuthority',
|
|
3488
|
+
outputs: [],
|
|
3489
|
+
stateMutability: 'nonpayable',
|
|
3538
3490
|
},
|
|
3539
3491
|
{
|
|
3540
3492
|
type: 'function',
|
|
3541
3493
|
inputs: [
|
|
3542
|
-
{ name: '
|
|
3543
|
-
{
|
|
3544
|
-
name: 'permitSingle',
|
|
3545
|
-
internalType: 'struct IPermit2.PermitSingle',
|
|
3546
|
-
type: 'tuple',
|
|
3547
|
-
components: [
|
|
3548
|
-
{
|
|
3549
|
-
name: 'details',
|
|
3550
|
-
internalType: 'struct IPermit2.PermitDetails',
|
|
3551
|
-
type: 'tuple',
|
|
3552
|
-
components: [
|
|
3553
|
-
{ name: 'token', internalType: 'address', type: 'address' },
|
|
3554
|
-
{ name: 'amount', internalType: 'uint160', type: 'uint160' },
|
|
3555
|
-
{ name: 'expiration', internalType: 'uint48', type: 'uint48' },
|
|
3556
|
-
{ name: 'nonce', internalType: 'uint48', type: 'uint48' },
|
|
3557
|
-
],
|
|
3558
|
-
},
|
|
3559
|
-
{ name: 'spender', internalType: 'address', type: 'address' },
|
|
3560
|
-
{ name: 'sigDeadline', internalType: 'uint256', type: 'uint256' },
|
|
3561
|
-
],
|
|
3562
|
-
},
|
|
3563
|
-
{ name: 'signature', internalType: 'bytes', type: 'bytes' },
|
|
3494
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3495
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
3564
3496
|
],
|
|
3565
|
-
name: '
|
|
3497
|
+
name: 'approve',
|
|
3566
3498
|
outputs: [],
|
|
3567
3499
|
stateMutability: 'nonpayable',
|
|
3568
3500
|
},
|
|
3569
3501
|
{
|
|
3570
3502
|
type: 'function',
|
|
3571
|
-
inputs: [
|
|
3572
|
-
|
|
3573
|
-
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3574
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3575
|
-
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3576
|
-
{ name: 'shares', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3577
|
-
{ name: 'minBaseOut', internalType: 'uint256', type: 'uint256' },
|
|
3578
|
-
{ name: 'minQuoteOut', internalType: 'uint256', type: 'uint256' },
|
|
3579
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3580
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3581
|
-
],
|
|
3582
|
-
name: 'burn',
|
|
3503
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3504
|
+
name: 'entries',
|
|
3583
3505
|
outputs: [
|
|
3584
|
-
{ name: '
|
|
3585
|
-
{ name: '
|
|
3506
|
+
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
3507
|
+
{ name: 'until', internalType: 'uint64', type: 'uint64' },
|
|
3508
|
+
{ name: 'index', internalType: 'uint32', type: 'uint32' },
|
|
3509
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
3586
3510
|
],
|
|
3587
|
-
stateMutability: '
|
|
3511
|
+
stateMutability: 'view',
|
|
3588
3512
|
},
|
|
3589
3513
|
{
|
|
3590
3514
|
type: 'function',
|
|
3591
|
-
inputs: [
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3596
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3597
|
-
],
|
|
3598
|
-
name: 'claim',
|
|
3599
|
-
outputs: [{ name: 'total', internalType: 'uint256', type: 'uint256' }],
|
|
3600
|
-
stateMutability: 'nonpayable',
|
|
3515
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3516
|
+
name: 'forwarderTrusted',
|
|
3517
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3518
|
+
stateMutability: 'view',
|
|
3601
3519
|
},
|
|
3602
3520
|
{
|
|
3603
3521
|
type: 'function',
|
|
3604
|
-
inputs: [
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
type: 'tuple',
|
|
3609
|
-
components: [
|
|
3610
|
-
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3611
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3612
|
-
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3613
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3614
|
-
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3615
|
-
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
3616
|
-
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3617
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3618
|
-
],
|
|
3619
|
-
},
|
|
3620
|
-
{ name: 'initialLogPrice', internalType: 'int256', type: 'int256' },
|
|
3621
|
-
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
3622
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3623
|
-
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
3624
|
-
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
3625
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3626
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3627
|
-
],
|
|
3628
|
-
name: 'createMarket',
|
|
3629
|
-
outputs: [
|
|
3630
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3631
|
-
{ name: 'baseIn', internalType: 'uint256', type: 'uint256' },
|
|
3632
|
-
{ name: 'quoteIn', internalType: 'uint256', type: 'uint256' },
|
|
3633
|
-
],
|
|
3634
|
-
stateMutability: 'nonpayable',
|
|
3522
|
+
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
3523
|
+
name: 'isApproved',
|
|
3524
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3525
|
+
stateMutability: 'view',
|
|
3635
3526
|
},
|
|
3636
3527
|
{
|
|
3637
3528
|
type: 'function',
|
|
3638
|
-
inputs: [
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
type: 'tuple[]',
|
|
3643
|
-
components: [
|
|
3644
|
-
{ name: 'op', internalType: 'enum OpType', type: 'uint8' },
|
|
3645
|
-
{ name: 'data', internalType: 'bytes', type: 'bytes' },
|
|
3646
|
-
],
|
|
3647
|
-
},
|
|
3648
|
-
{
|
|
3649
|
-
name: 'settle',
|
|
3650
|
-
internalType: 'struct Settle',
|
|
3651
|
-
type: 'tuple',
|
|
3652
|
-
components: [
|
|
3653
|
-
{ name: 'tokens', internalType: 'address[]', type: 'address[]' },
|
|
3654
|
-
{ name: 'maxIn', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3655
|
-
{ name: 'minOut', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3656
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3657
|
-
],
|
|
3658
|
-
},
|
|
3659
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3660
|
-
],
|
|
3661
|
-
name: 'execute',
|
|
3662
|
-
outputs: [
|
|
3663
|
-
{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' },
|
|
3664
|
-
{ name: 'flows', internalType: 'int256[]', type: 'int256[]' },
|
|
3665
|
-
],
|
|
3666
|
-
stateMutability: 'nonpayable',
|
|
3529
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3530
|
+
name: 'kindOf',
|
|
3531
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3532
|
+
stateMutability: 'view',
|
|
3667
3533
|
},
|
|
3668
3534
|
{
|
|
3669
3535
|
type: 'function',
|
|
3670
3536
|
inputs: [],
|
|
3671
|
-
name: '
|
|
3672
|
-
outputs: [{ name: '', internalType: '
|
|
3537
|
+
name: 'logAuthority',
|
|
3538
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3673
3539
|
stateMutability: 'view',
|
|
3674
3540
|
},
|
|
3675
3541
|
{
|
|
3676
3542
|
type: 'function',
|
|
3677
|
-
inputs: [
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
3682
|
-
{ name: 'cap', internalType: 'int256', type: 'int256' },
|
|
3683
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3684
|
-
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
3685
|
-
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
3686
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3687
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3688
|
-
],
|
|
3689
|
-
name: 'mintBlended',
|
|
3690
|
-
outputs: [
|
|
3691
|
-
{ name: 'baseIn', internalType: 'uint256', type: 'uint256' },
|
|
3692
|
-
{ name: 'quoteIn', internalType: 'uint256', type: 'uint256' },
|
|
3693
|
-
],
|
|
3694
|
-
stateMutability: 'nonpayable',
|
|
3543
|
+
inputs: [],
|
|
3544
|
+
name: 'pendingLogAuthority',
|
|
3545
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3546
|
+
stateMutability: 'view',
|
|
3695
3547
|
},
|
|
3696
3548
|
{
|
|
3697
3549
|
type: 'function',
|
|
3698
|
-
inputs: [
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
3703
|
-
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
3704
|
-
{ name: 'toFloor', internalType: 'int256', type: 'int256' },
|
|
3705
|
-
{ name: 'toCap', internalType: 'int256', type: 'int256' },
|
|
3706
|
-
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
3707
|
-
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
3708
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3709
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3710
|
-
],
|
|
3711
|
-
name: 'move',
|
|
3712
|
-
outputs: [
|
|
3713
|
-
{ name: 'dBase', internalType: 'int256', type: 'int256' },
|
|
3714
|
-
{ name: 'dQuote', internalType: 'int256', type: 'int256' },
|
|
3715
|
-
{ name: 'newShares', internalType: 'uint256', type: 'uint256' },
|
|
3716
|
-
],
|
|
3717
|
-
stateMutability: 'nonpayable',
|
|
3550
|
+
inputs: [],
|
|
3551
|
+
name: 'policies',
|
|
3552
|
+
outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }],
|
|
3553
|
+
stateMutability: 'view',
|
|
3718
3554
|
},
|
|
3719
3555
|
{
|
|
3720
3556
|
type: 'function',
|
|
3721
|
-
inputs: [{ name: '
|
|
3722
|
-
name: '
|
|
3723
|
-
outputs: [
|
|
3557
|
+
inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
|
|
3558
|
+
name: 'proposeLogAuthority',
|
|
3559
|
+
outputs: [],
|
|
3724
3560
|
stateMutability: 'nonpayable',
|
|
3725
3561
|
},
|
|
3726
3562
|
{
|
|
3727
3563
|
type: 'function',
|
|
3728
|
-
inputs: [],
|
|
3729
|
-
name: '
|
|
3730
|
-
outputs: [
|
|
3731
|
-
stateMutability: '
|
|
3564
|
+
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
3565
|
+
name: 'revoke',
|
|
3566
|
+
outputs: [],
|
|
3567
|
+
stateMutability: 'nonpayable',
|
|
3732
3568
|
},
|
|
3733
3569
|
{
|
|
3734
3570
|
type: 'function',
|
|
3735
3571
|
inputs: [
|
|
3736
|
-
{ name: '
|
|
3737
|
-
{ name: '
|
|
3738
|
-
{ name: 'baseSide', internalType: 'bool', type: 'bool' },
|
|
3739
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3740
|
-
{ name: 'taker', internalType: 'address', type: 'address' },
|
|
3572
|
+
{ name: 'forwarder', internalType: 'address', type: 'address' },
|
|
3573
|
+
{ name: 'trusted', internalType: 'bool', type: 'bool' },
|
|
3741
3574
|
],
|
|
3742
|
-
name: '
|
|
3575
|
+
name: 'setForwarderTrusted',
|
|
3743
3576
|
outputs: [],
|
|
3744
3577
|
stateMutability: 'nonpayable',
|
|
3745
3578
|
},
|
|
3746
3579
|
{
|
|
3747
3580
|
type: 'function',
|
|
3748
3581
|
inputs: [
|
|
3749
|
-
{ name: '
|
|
3750
|
-
{ name: '
|
|
3751
|
-
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
3752
|
-
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
3753
|
-
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
3754
|
-
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
3755
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3756
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3582
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3583
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
3757
3584
|
],
|
|
3758
|
-
name: '
|
|
3759
|
-
outputs: [
|
|
3585
|
+
name: 'setSponsorName',
|
|
3586
|
+
outputs: [],
|
|
3760
3587
|
stateMutability: 'nonpayable',
|
|
3761
3588
|
},
|
|
3762
3589
|
{
|
|
3763
3590
|
type: 'function',
|
|
3764
|
-
inputs: [
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
type: 'tuple[]',
|
|
3769
|
-
components: [
|
|
3770
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3771
|
-
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
3772
|
-
],
|
|
3773
|
-
},
|
|
3774
|
-
{ name: 'tokenIn', internalType: 'address', type: 'address' },
|
|
3775
|
-
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
3776
|
-
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
3777
|
-
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
3778
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3779
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3780
|
-
],
|
|
3781
|
-
name: 'swapExactInPath',
|
|
3782
|
-
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
3783
|
-
stateMutability: 'nonpayable',
|
|
3591
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3592
|
+
name: 'sponsorName',
|
|
3593
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3594
|
+
stateMutability: 'view',
|
|
3784
3595
|
},
|
|
3785
3596
|
{
|
|
3786
3597
|
type: 'function',
|
|
3787
3598
|
inputs: [
|
|
3788
|
-
{ name: '
|
|
3789
|
-
{ name: '
|
|
3790
|
-
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
3791
|
-
{ name: 'baseOut', internalType: 'bool', type: 'bool' },
|
|
3792
|
-
{ name: 'amountOut', internalType: 'uint256', type: 'uint256' },
|
|
3793
|
-
{ name: 'maxIn', internalType: 'uint256', type: 'uint256' },
|
|
3794
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3795
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3599
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3600
|
+
{ name: 'untilTime', internalType: 'uint64', type: 'uint64' },
|
|
3796
3601
|
],
|
|
3797
|
-
name: '
|
|
3798
|
-
outputs: [
|
|
3602
|
+
name: 'sunset',
|
|
3603
|
+
outputs: [],
|
|
3799
3604
|
stateMutability: 'nonpayable',
|
|
3800
3605
|
},
|
|
3801
3606
|
{
|
|
3802
3607
|
type: 'function',
|
|
3803
|
-
inputs: [{ name: '
|
|
3804
|
-
name: '
|
|
3805
|
-
outputs: [{ name: '', internalType: '
|
|
3806
|
-
stateMutability: '
|
|
3608
|
+
inputs: [{ name: 'caller', internalType: 'address', type: 'address' }],
|
|
3609
|
+
name: 'userOf',
|
|
3610
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3611
|
+
stateMutability: 'view',
|
|
3807
3612
|
},
|
|
3808
3613
|
{
|
|
3809
|
-
type: '
|
|
3614
|
+
type: 'event',
|
|
3615
|
+
anonymous: false,
|
|
3810
3616
|
inputs: [
|
|
3811
|
-
{
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
{
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
],
|
|
3824
|
-
name: 'update',
|
|
3825
|
-
outputs: [
|
|
3826
|
-
{ name: 'dBase', internalType: 'int256', type: 'int256' },
|
|
3827
|
-
{ name: 'dQuote', internalType: 'int256', type: 'int256' },
|
|
3828
|
-
{ name: 'newShares', internalType: 'uint256', type: 'uint256' },
|
|
3617
|
+
{
|
|
3618
|
+
name: 'policy',
|
|
3619
|
+
internalType: 'address',
|
|
3620
|
+
type: 'address',
|
|
3621
|
+
indexed: true,
|
|
3622
|
+
},
|
|
3623
|
+
{
|
|
3624
|
+
name: 'name',
|
|
3625
|
+
internalType: 'bytes32',
|
|
3626
|
+
type: 'bytes32',
|
|
3627
|
+
indexed: false,
|
|
3628
|
+
},
|
|
3829
3629
|
],
|
|
3830
|
-
|
|
3630
|
+
name: 'Approved',
|
|
3831
3631
|
},
|
|
3832
3632
|
{
|
|
3833
|
-
type: '
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3633
|
+
type: 'event',
|
|
3634
|
+
anonymous: false,
|
|
3635
|
+
inputs: [
|
|
3636
|
+
{
|
|
3637
|
+
name: 'forwarder',
|
|
3638
|
+
internalType: 'address',
|
|
3639
|
+
type: 'address',
|
|
3640
|
+
indexed: true,
|
|
3641
|
+
},
|
|
3642
|
+
{ name: 'trusted', internalType: 'bool', type: 'bool', indexed: false },
|
|
3643
|
+
],
|
|
3644
|
+
name: 'ForwarderTrusted',
|
|
3838
3645
|
},
|
|
3839
3646
|
{
|
|
3840
|
-
type: '
|
|
3647
|
+
type: 'event',
|
|
3648
|
+
anonymous: false,
|
|
3841
3649
|
inputs: [
|
|
3842
|
-
{ name: '
|
|
3843
|
-
{ name: '
|
|
3844
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3845
|
-
{ name: 'fundWithBase', internalType: 'bool', type: 'bool' },
|
|
3846
|
-
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
3847
|
-
{ name: 'minSwapOut', internalType: 'uint256', type: 'uint256' },
|
|
3848
|
-
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
3849
|
-
{ name: 'cap', internalType: 'int256', type: 'int256' },
|
|
3850
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3851
|
-
{ name: 'maxIn', internalType: 'uint256', type: 'uint256' },
|
|
3852
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3853
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3650
|
+
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
3651
|
+
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
3854
3652
|
],
|
|
3855
|
-
name: '
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3653
|
+
name: 'LogAuthorityAccepted',
|
|
3654
|
+
},
|
|
3655
|
+
{
|
|
3656
|
+
type: 'event',
|
|
3657
|
+
anonymous: false,
|
|
3658
|
+
inputs: [
|
|
3659
|
+
{
|
|
3660
|
+
name: 'current',
|
|
3661
|
+
internalType: 'address',
|
|
3662
|
+
type: 'address',
|
|
3663
|
+
indexed: true,
|
|
3664
|
+
},
|
|
3665
|
+
{
|
|
3666
|
+
name: 'proposed',
|
|
3667
|
+
internalType: 'address',
|
|
3668
|
+
type: 'address',
|
|
3669
|
+
indexed: true,
|
|
3670
|
+
},
|
|
3859
3671
|
],
|
|
3860
|
-
|
|
3672
|
+
name: 'LogAuthorityProposed',
|
|
3861
3673
|
},
|
|
3862
3674
|
{
|
|
3863
3675
|
type: 'event',
|
|
3864
3676
|
anonymous: false,
|
|
3865
3677
|
inputs: [
|
|
3866
|
-
{
|
|
3678
|
+
{
|
|
3679
|
+
name: 'policy',
|
|
3680
|
+
internalType: 'address',
|
|
3681
|
+
type: 'address',
|
|
3682
|
+
indexed: true,
|
|
3683
|
+
},
|
|
3867
3684
|
],
|
|
3868
|
-
name: '
|
|
3685
|
+
name: 'Revoked',
|
|
3869
3686
|
},
|
|
3870
|
-
{ type: 'error', inputs: [], name: 'BadFloor' },
|
|
3871
|
-
{ type: 'error', inputs: [], name: 'BadRecipient' },
|
|
3872
|
-
{ type: 'error', inputs: [], name: 'DeadlineExceeded' },
|
|
3873
|
-
{ type: 'error', inputs: [], name: 'EmptyPath' },
|
|
3874
|
-
{ type: 'error', inputs: [], name: 'LengthMismatch' },
|
|
3875
|
-
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
3876
3687
|
{
|
|
3877
|
-
type: '
|
|
3878
|
-
|
|
3879
|
-
|
|
3688
|
+
type: 'event',
|
|
3689
|
+
anonymous: false,
|
|
3690
|
+
inputs: [
|
|
3691
|
+
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
3692
|
+
{
|
|
3693
|
+
name: 'name',
|
|
3694
|
+
internalType: 'bytes32',
|
|
3695
|
+
type: 'bytes32',
|
|
3696
|
+
indexed: false,
|
|
3697
|
+
},
|
|
3698
|
+
],
|
|
3699
|
+
name: 'SponsorNamed',
|
|
3880
3700
|
},
|
|
3881
|
-
{ type: 'error', inputs: [], name: 'SlippageIn' },
|
|
3882
|
-
{ type: 'error', inputs: [], name: 'SlippageOut' },
|
|
3883
|
-
{ type: 'error', inputs: [], name: 'UnsupportedOp' },
|
|
3884
|
-
{ type: 'error', inputs: [], name: 'WrongToken' },
|
|
3885
|
-
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
3886
|
-
];
|
|
3887
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3888
|
-
// RouterF
|
|
3889
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3890
|
-
export const routerFAbi = [
|
|
3891
3701
|
{
|
|
3892
|
-
type: '
|
|
3702
|
+
type: 'event',
|
|
3703
|
+
anonymous: false,
|
|
3893
3704
|
inputs: [
|
|
3894
|
-
{
|
|
3895
|
-
|
|
3705
|
+
{
|
|
3706
|
+
name: 'policy',
|
|
3707
|
+
internalType: 'address',
|
|
3708
|
+
type: 'address',
|
|
3709
|
+
indexed: true,
|
|
3710
|
+
},
|
|
3711
|
+
{
|
|
3712
|
+
name: 'untilTime',
|
|
3713
|
+
internalType: 'uint64',
|
|
3714
|
+
type: 'uint64',
|
|
3715
|
+
indexed: false,
|
|
3716
|
+
},
|
|
3896
3717
|
],
|
|
3897
|
-
|
|
3718
|
+
name: 'SunsetSet',
|
|
3898
3719
|
},
|
|
3720
|
+
{ type: 'error', inputs: [], name: 'BadSunset' },
|
|
3721
|
+
{ type: 'error', inputs: [], name: 'NotAPolicy' },
|
|
3722
|
+
{ type: 'error', inputs: [], name: 'NotListed' },
|
|
3723
|
+
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
3724
|
+
];
|
|
3725
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3726
|
+
// RouterActions
|
|
3727
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3728
|
+
export const routerActionsAbi = [
|
|
3899
3729
|
{
|
|
3900
3730
|
type: 'function',
|
|
3901
3731
|
inputs: [
|
|
3902
|
-
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
3903
3732
|
{
|
|
3904
|
-
name: '
|
|
3905
|
-
internalType: 'struct
|
|
3733
|
+
name: 'a',
|
|
3734
|
+
internalType: 'struct BurnAct',
|
|
3906
3735
|
type: 'tuple',
|
|
3907
3736
|
components: [
|
|
3908
|
-
{
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
type: 'tuple',
|
|
3912
|
-
components: [
|
|
3913
|
-
{ name: 'token', internalType: 'address', type: 'address' },
|
|
3914
|
-
{ name: 'amount', internalType: 'uint160', type: 'uint160' },
|
|
3915
|
-
{ name: 'expiration', internalType: 'uint48', type: 'uint48' },
|
|
3916
|
-
{ name: 'nonce', internalType: 'uint48', type: 'uint48' },
|
|
3917
|
-
],
|
|
3918
|
-
},
|
|
3919
|
-
{ name: 'spender', internalType: 'address', type: 'address' },
|
|
3920
|
-
{ name: 'sigDeadline', internalType: 'uint256', type: 'uint256' },
|
|
3737
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3738
|
+
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3739
|
+
{ name: 'shares', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3921
3740
|
],
|
|
3922
3741
|
},
|
|
3923
|
-
{ name: 'signature', internalType: 'bytes', type: 'bytes' },
|
|
3924
3742
|
],
|
|
3925
|
-
name: '
|
|
3926
|
-
outputs: [],
|
|
3927
|
-
stateMutability: '
|
|
3928
|
-
},
|
|
3929
|
-
{
|
|
3930
|
-
type: 'function',
|
|
3931
|
-
inputs: [],
|
|
3932
|
-
name: 'mgr',
|
|
3933
|
-
outputs: [{ name: '', internalType: 'contract ManagerF', type: 'address' }],
|
|
3934
|
-
stateMutability: 'view',
|
|
3935
|
-
},
|
|
3936
|
-
{
|
|
3937
|
-
type: 'function',
|
|
3938
|
-
inputs: [{ name: 'data', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
3939
|
-
name: 'multicall',
|
|
3940
|
-
outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
3941
|
-
stateMutability: 'nonpayable',
|
|
3942
|
-
},
|
|
3943
|
-
{
|
|
3944
|
-
type: 'function',
|
|
3945
|
-
inputs: [],
|
|
3946
|
-
name: 'permit2',
|
|
3947
|
-
outputs: [{ name: '', internalType: 'contract IPermit2', type: 'address' }],
|
|
3948
|
-
stateMutability: 'view',
|
|
3743
|
+
name: 'encodeBurn',
|
|
3744
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
3745
|
+
stateMutability: 'pure',
|
|
3949
3746
|
},
|
|
3950
3747
|
{
|
|
3951
3748
|
type: 'function',
|
|
3952
3749
|
inputs: [
|
|
3953
|
-
{
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3750
|
+
{
|
|
3751
|
+
name: 'a',
|
|
3752
|
+
internalType: 'struct ClaimAct',
|
|
3753
|
+
type: 'tuple',
|
|
3754
|
+
components: [
|
|
3755
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3756
|
+
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3757
|
+
],
|
|
3758
|
+
},
|
|
3959
3759
|
],
|
|
3960
|
-
name: '
|
|
3961
|
-
outputs: [],
|
|
3962
|
-
stateMutability: '
|
|
3760
|
+
name: 'encodeClaim',
|
|
3761
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
3762
|
+
stateMutability: 'pure',
|
|
3963
3763
|
},
|
|
3964
3764
|
{
|
|
3965
3765
|
type: 'function',
|
|
3966
3766
|
inputs: [
|
|
3967
|
-
{
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3767
|
+
{
|
|
3768
|
+
name: 'a',
|
|
3769
|
+
internalType: 'struct MintAct',
|
|
3770
|
+
type: 'tuple',
|
|
3771
|
+
components: [
|
|
3772
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3773
|
+
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
3774
|
+
{ name: 'cap', internalType: 'int256', type: 'int256' },
|
|
3775
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3776
|
+
],
|
|
3777
|
+
},
|
|
3975
3778
|
],
|
|
3976
|
-
name: '
|
|
3977
|
-
outputs: [{ name: '
|
|
3978
|
-
stateMutability: '
|
|
3779
|
+
name: 'encodeMint',
|
|
3780
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
3781
|
+
stateMutability: 'pure',
|
|
3979
3782
|
},
|
|
3980
3783
|
{
|
|
3981
3784
|
type: 'function',
|
|
3982
3785
|
inputs: [
|
|
3983
|
-
{
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3786
|
+
{
|
|
3787
|
+
name: 'a',
|
|
3788
|
+
internalType: 'struct PathAct',
|
|
3789
|
+
type: 'tuple',
|
|
3790
|
+
components: [
|
|
3791
|
+
{
|
|
3792
|
+
name: 'hops',
|
|
3793
|
+
internalType: 'struct Hop[]',
|
|
3794
|
+
type: 'tuple[]',
|
|
3795
|
+
components: [
|
|
3796
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3797
|
+
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
3798
|
+
],
|
|
3799
|
+
},
|
|
3800
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
3801
|
+
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
3802
|
+
],
|
|
3803
|
+
},
|
|
3991
3804
|
],
|
|
3992
|
-
name: '
|
|
3993
|
-
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
3994
|
-
stateMutability: 'nonpayable',
|
|
3995
|
-
},
|
|
3996
|
-
{
|
|
3997
|
-
type: 'function',
|
|
3998
|
-
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
3999
|
-
name: 'unlockCallback',
|
|
3805
|
+
name: 'encodePath',
|
|
4000
3806
|
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
4001
|
-
stateMutability: '
|
|
3807
|
+
stateMutability: 'pure',
|
|
4002
3808
|
},
|
|
4003
3809
|
{
|
|
4004
3810
|
type: 'function',
|
|
4005
3811
|
inputs: [
|
|
4006
|
-
{
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
3812
|
+
{
|
|
3813
|
+
name: 'a',
|
|
3814
|
+
internalType: 'struct SwapAct',
|
|
3815
|
+
type: 'tuple',
|
|
3816
|
+
components: [
|
|
3817
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3818
|
+
{ name: 'baseSide', internalType: 'bool', type: 'bool' },
|
|
3819
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3820
|
+
{ name: 'limit', internalType: 'uint256', type: 'uint256' },
|
|
3821
|
+
],
|
|
3822
|
+
},
|
|
4012
3823
|
],
|
|
4013
|
-
name: '
|
|
4014
|
-
outputs: [{ name: '
|
|
4015
|
-
stateMutability: '
|
|
3824
|
+
name: 'encodeSwap',
|
|
3825
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
3826
|
+
stateMutability: 'pure',
|
|
4016
3827
|
},
|
|
4017
3828
|
{
|
|
4018
3829
|
type: 'function',
|
|
4019
3830
|
inputs: [
|
|
4020
|
-
{
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
anonymous: false,
|
|
4034
|
-
inputs: [
|
|
4035
|
-
{ name: 'user', internalType: 'address', type: 'address', indexed: true },
|
|
3831
|
+
{
|
|
3832
|
+
name: 'a',
|
|
3833
|
+
internalType: 'struct UpdateAct',
|
|
3834
|
+
type: 'tuple',
|
|
3835
|
+
components: [
|
|
3836
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3837
|
+
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
3838
|
+
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
3839
|
+
{ name: 'toFloor', internalType: 'int256', type: 'int256' },
|
|
3840
|
+
{ name: 'toCap', internalType: 'int256', type: 'int256' },
|
|
3841
|
+
{ name: 'newL', internalType: 'uint256', type: 'uint256' },
|
|
3842
|
+
],
|
|
3843
|
+
},
|
|
4036
3844
|
],
|
|
4037
|
-
name: '
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
{ type: 'error', inputs: [], name: 'BadToken' },
|
|
4041
|
-
{ type: 'error', inputs: [], name: 'DeadlineExceeded' },
|
|
4042
|
-
{ type: 'error', inputs: [], name: 'DrainsBase' },
|
|
4043
|
-
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
4044
|
-
{
|
|
4045
|
-
type: 'error',
|
|
4046
|
-
inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
4047
|
-
name: 'QuoteResult',
|
|
3845
|
+
name: 'encodeUpdate',
|
|
3846
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
3847
|
+
stateMutability: 'pure',
|
|
4048
3848
|
},
|
|
4049
|
-
{ type: 'error', inputs: [], name: 'SlippageIn' },
|
|
4050
|
-
{ type: 'error', inputs: [], name: 'SlippageOut' },
|
|
4051
|
-
{ type: 'error', inputs: [], name: 'UnsupportedOp' },
|
|
4052
|
-
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
4053
3849
|
];
|
|
4054
3850
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4055
|
-
//
|
|
3851
|
+
// RouterC
|
|
4056
3852
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4057
|
-
export const
|
|
3853
|
+
export const routerCAbi = [
|
|
4058
3854
|
{
|
|
4059
3855
|
type: 'constructor',
|
|
4060
3856
|
inputs: [
|
|
4061
|
-
{ name: '
|
|
4062
|
-
{
|
|
4063
|
-
name: 'p',
|
|
4064
|
-
internalType: 'struct SponsorParams',
|
|
4065
|
-
type: 'tuple',
|
|
4066
|
-
components: [
|
|
4067
|
-
{ name: 'sponsor', internalType: 'address', type: 'address' },
|
|
4068
|
-
{ name: 'swapTiers', internalType: 'uint256', type: 'uint256' },
|
|
4069
|
-
{ name: 'mintTiers', internalType: 'uint256', type: 'uint256' },
|
|
4070
|
-
{ name: 'canonical', internalType: 'bool', type: 'bool' },
|
|
4071
|
-
{ name: 'gatesAvailable', internalType: 'bool', type: 'bool' },
|
|
4072
|
-
{ name: 'bornGated', internalType: 'bool', type: 'bool' },
|
|
4073
|
-
{ name: 'quotes', internalType: 'address[]', type: 'address[]' },
|
|
4074
|
-
],
|
|
4075
|
-
},
|
|
4076
|
-
{ name: 'swapFeeTax_', internalType: 'uint256', type: 'uint256' },
|
|
4077
|
-
{ name: 'spacings', internalType: 'int256[]', type: 'int256[]' },
|
|
3857
|
+
{ name: '_mgr', internalType: 'contract ManagerC', type: 'address' },
|
|
3858
|
+
{ name: '_permit2', internalType: 'address', type: 'address' },
|
|
4078
3859
|
],
|
|
4079
3860
|
stateMutability: 'nonpayable',
|
|
4080
3861
|
},
|
|
4081
3862
|
{
|
|
4082
3863
|
type: 'function',
|
|
4083
3864
|
inputs: [],
|
|
4084
|
-
name: '
|
|
4085
|
-
outputs: [{ name: '', internalType: '
|
|
3865
|
+
name: 'NO_CAP',
|
|
3866
|
+
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
4086
3867
|
stateMutability: 'view',
|
|
4087
3868
|
},
|
|
4088
3869
|
{
|
|
4089
3870
|
type: 'function',
|
|
4090
3871
|
inputs: [
|
|
4091
|
-
{ name: '
|
|
4092
|
-
{
|
|
3872
|
+
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
3873
|
+
{
|
|
3874
|
+
name: 'permitSingle',
|
|
3875
|
+
internalType: 'struct IPermit2.PermitSingle',
|
|
3876
|
+
type: 'tuple',
|
|
3877
|
+
components: [
|
|
3878
|
+
{
|
|
3879
|
+
name: 'details',
|
|
3880
|
+
internalType: 'struct IPermit2.PermitDetails',
|
|
3881
|
+
type: 'tuple',
|
|
3882
|
+
components: [
|
|
3883
|
+
{ name: 'token', internalType: 'address', type: 'address' },
|
|
3884
|
+
{ name: 'amount', internalType: 'uint160', type: 'uint160' },
|
|
3885
|
+
{ name: 'expiration', internalType: 'uint48', type: 'uint48' },
|
|
3886
|
+
{ name: 'nonce', internalType: 'uint48', type: 'uint48' },
|
|
3887
|
+
],
|
|
3888
|
+
},
|
|
3889
|
+
{ name: 'spender', internalType: 'address', type: 'address' },
|
|
3890
|
+
{ name: 'sigDeadline', internalType: 'uint256', type: 'uint256' },
|
|
3891
|
+
],
|
|
3892
|
+
},
|
|
3893
|
+
{ name: 'signature', internalType: 'bytes', type: 'bytes' },
|
|
4093
3894
|
],
|
|
4094
|
-
name: '
|
|
3895
|
+
name: 'applyPermit2',
|
|
4095
3896
|
outputs: [],
|
|
4096
3897
|
stateMutability: 'nonpayable',
|
|
4097
3898
|
},
|
|
4098
3899
|
{
|
|
4099
3900
|
type: 'function',
|
|
4100
|
-
inputs: [
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
3901
|
+
inputs: [
|
|
3902
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3903
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3904
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3905
|
+
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3906
|
+
{ name: 'shares', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3907
|
+
{ name: 'minBaseOut', internalType: 'uint256', type: 'uint256' },
|
|
3908
|
+
{ name: 'minQuoteOut', internalType: 'uint256', type: 'uint256' },
|
|
3909
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
3910
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3911
|
+
],
|
|
3912
|
+
name: 'burn',
|
|
3913
|
+
outputs: [
|
|
3914
|
+
{ name: 'baseOut', internalType: 'uint256', type: 'uint256' },
|
|
3915
|
+
{ name: 'quoteOut', internalType: 'uint256', type: 'uint256' },
|
|
3916
|
+
],
|
|
3917
|
+
stateMutability: 'nonpayable',
|
|
4111
3918
|
},
|
|
4112
3919
|
{
|
|
4113
3920
|
type: 'function',
|
|
4114
|
-
inputs: [
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
3921
|
+
inputs: [
|
|
3922
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3923
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3924
|
+
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3925
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
3926
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3927
|
+
],
|
|
3928
|
+
name: 'claim',
|
|
3929
|
+
outputs: [{ name: 'total', internalType: 'uint256', type: 'uint256' }],
|
|
3930
|
+
stateMutability: 'nonpayable',
|
|
4118
3931
|
},
|
|
4119
3932
|
{
|
|
4120
3933
|
type: 'function',
|
|
4121
3934
|
inputs: [
|
|
4122
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4123
3935
|
{
|
|
4124
|
-
name: '
|
|
4125
|
-
internalType: 'struct
|
|
3936
|
+
name: 'actions',
|
|
3937
|
+
internalType: 'struct Action[]',
|
|
3938
|
+
type: 'tuple[]',
|
|
3939
|
+
components: [
|
|
3940
|
+
{ name: 'op', internalType: 'enum OpType', type: 'uint8' },
|
|
3941
|
+
{ name: 'data', internalType: 'bytes', type: 'bytes' },
|
|
3942
|
+
],
|
|
3943
|
+
},
|
|
3944
|
+
{
|
|
3945
|
+
name: 'settle',
|
|
3946
|
+
internalType: 'struct Settle',
|
|
4126
3947
|
type: 'tuple',
|
|
4127
3948
|
components: [
|
|
4128
|
-
{ name: '
|
|
4129
|
-
{ name: '
|
|
4130
|
-
{ name: '
|
|
4131
|
-
{ name: '
|
|
3949
|
+
{ name: 'tokens', internalType: 'address[]', type: 'address[]' },
|
|
3950
|
+
{ name: 'maxIn', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3951
|
+
{ name: 'minOut', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3952
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4132
3953
|
],
|
|
4133
3954
|
},
|
|
3955
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3956
|
+
],
|
|
3957
|
+
name: 'execute',
|
|
3958
|
+
outputs: [
|
|
3959
|
+
{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' },
|
|
3960
|
+
{ name: 'flows', internalType: 'int256[]', type: 'int256[]' },
|
|
4134
3961
|
],
|
|
4135
|
-
name: 'configureMigration',
|
|
4136
|
-
outputs: [],
|
|
4137
3962
|
stateMutability: 'nonpayable',
|
|
4138
3963
|
},
|
|
4139
|
-
{
|
|
4140
|
-
type: 'function',
|
|
4141
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4142
|
-
name: 'gateMint',
|
|
4143
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4144
|
-
stateMutability: 'view',
|
|
4145
|
-
},
|
|
4146
3964
|
{
|
|
4147
3965
|
type: 'function',
|
|
4148
3966
|
inputs: [],
|
|
4149
|
-
name: '
|
|
4150
|
-
outputs: [{ name: '', internalType: '
|
|
3967
|
+
name: 'mgr',
|
|
3968
|
+
outputs: [{ name: '', internalType: 'contract ManagerC', type: 'address' }],
|
|
4151
3969
|
stateMutability: 'view',
|
|
4152
3970
|
},
|
|
4153
3971
|
{
|
|
4154
3972
|
type: 'function',
|
|
4155
|
-
inputs: [
|
|
4156
|
-
|
|
3973
|
+
inputs: [
|
|
3974
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3975
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3976
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3977
|
+
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
3978
|
+
{ name: 'cap', internalType: 'int256', type: 'int256' },
|
|
3979
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3980
|
+
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
3981
|
+
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
3982
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
3983
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3984
|
+
],
|
|
3985
|
+
name: 'mintBlended',
|
|
4157
3986
|
outputs: [
|
|
4158
|
-
{ name: '', internalType: '
|
|
4159
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3987
|
+
{ name: 'baseIn', internalType: 'uint256', type: 'uint256' },
|
|
3988
|
+
{ name: 'quoteIn', internalType: 'uint256', type: 'uint256' },
|
|
4160
3989
|
],
|
|
4161
|
-
stateMutability: '
|
|
4162
|
-
},
|
|
4163
|
-
{
|
|
4164
|
-
type: 'function',
|
|
4165
|
-
inputs: [],
|
|
4166
|
-
name: 'kind',
|
|
4167
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4168
|
-
stateMutability: 'pure',
|
|
3990
|
+
stateMutability: 'nonpayable',
|
|
4169
3991
|
},
|
|
4170
3992
|
{
|
|
4171
3993
|
type: 'function',
|
|
4172
3994
|
inputs: [
|
|
4173
|
-
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
4174
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3995
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3996
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3997
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3998
|
+
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
3999
|
+
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
4000
|
+
{ name: 'toFloor', internalType: 'int256', type: 'int256' },
|
|
4001
|
+
{ name: 'toCap', internalType: 'int256', type: 'int256' },
|
|
4002
|
+
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
4003
|
+
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
4004
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4005
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4175
4006
|
],
|
|
4176
|
-
name: '
|
|
4177
|
-
outputs: [
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
type: 'function',
|
|
4182
|
-
inputs: [],
|
|
4183
|
-
name: 'manager',
|
|
4184
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4185
|
-
stateMutability: 'view',
|
|
4186
|
-
},
|
|
4187
|
-
{
|
|
4188
|
-
type: 'function',
|
|
4189
|
-
inputs: [
|
|
4190
|
-
{
|
|
4191
|
-
name: 'a',
|
|
4192
|
-
internalType: 'struct IPolicy.Ask',
|
|
4193
|
-
type: 'tuple',
|
|
4194
|
-
components: [
|
|
4195
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4196
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4197
|
-
{
|
|
4198
|
-
name: 'action',
|
|
4199
|
-
internalType: 'enum IPolicy.Action',
|
|
4200
|
-
type: 'uint8',
|
|
4201
|
-
},
|
|
4202
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4203
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4204
|
-
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
4205
|
-
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
4206
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4207
|
-
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
4208
|
-
],
|
|
4209
|
-
},
|
|
4007
|
+
name: 'move',
|
|
4008
|
+
outputs: [
|
|
4009
|
+
{ name: 'dBase', internalType: 'int256', type: 'int256' },
|
|
4010
|
+
{ name: 'dQuote', internalType: 'int256', type: 'int256' },
|
|
4011
|
+
{ name: 'newShares', internalType: 'uint256', type: 'uint256' },
|
|
4210
4012
|
],
|
|
4211
|
-
|
|
4212
|
-
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
4213
|
-
stateMutability: 'view',
|
|
4013
|
+
stateMutability: 'nonpayable',
|
|
4214
4014
|
},
|
|
4215
4015
|
{
|
|
4216
4016
|
type: 'function',
|
|
4217
|
-
inputs: [{ name: '
|
|
4218
|
-
name: '
|
|
4219
|
-
outputs: [{ name: '', internalType: '
|
|
4220
|
-
stateMutability: '
|
|
4017
|
+
inputs: [{ name: 'data', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
4018
|
+
name: 'multicall',
|
|
4019
|
+
outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
4020
|
+
stateMutability: 'nonpayable',
|
|
4221
4021
|
},
|
|
4222
4022
|
{
|
|
4223
4023
|
type: 'function',
|
|
4224
4024
|
inputs: [],
|
|
4225
|
-
name: '
|
|
4226
|
-
outputs: [{ name: '', internalType: '
|
|
4227
|
-
stateMutability: 'view',
|
|
4228
|
-
},
|
|
4229
|
-
{
|
|
4230
|
-
type: 'function',
|
|
4231
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4232
|
-
name: 'nameOf',
|
|
4233
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4025
|
+
name: 'permit2',
|
|
4026
|
+
outputs: [{ name: '', internalType: 'contract IPermit2', type: 'address' }],
|
|
4234
4027
|
stateMutability: 'view',
|
|
4235
4028
|
},
|
|
4236
4029
|
{
|
|
4237
4030
|
type: 'function',
|
|
4238
4031
|
inputs: [
|
|
4239
4032
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4240
|
-
{ name: '', internalType: '
|
|
4241
|
-
{
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
type: 'tuple',
|
|
4245
|
-
components: [
|
|
4246
|
-
{ name: 'base', internalType: 'address', type: 'address' },
|
|
4247
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4248
|
-
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
4249
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4250
|
-
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4251
|
-
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4252
|
-
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4253
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
4254
|
-
],
|
|
4255
|
-
},
|
|
4256
|
-
],
|
|
4257
|
-
name: 'onInitialize',
|
|
4258
|
-
outputs: [
|
|
4259
|
-
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
4260
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4261
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
4033
|
+
{ name: 'exactIn', internalType: 'bool', type: 'bool' },
|
|
4034
|
+
{ name: 'baseSide', internalType: 'bool', type: 'bool' },
|
|
4035
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4036
|
+
{ name: 'taker', internalType: 'address', type: 'address' },
|
|
4262
4037
|
],
|
|
4038
|
+
name: 'quoteSwap',
|
|
4039
|
+
outputs: [],
|
|
4263
4040
|
stateMutability: 'nonpayable',
|
|
4264
4041
|
},
|
|
4265
|
-
{
|
|
4266
|
-
type: 'function',
|
|
4267
|
-
inputs: [
|
|
4268
|
-
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
4269
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
4270
|
-
{
|
|
4271
|
-
name: '',
|
|
4272
|
-
internalType: 'struct PoolKeyF',
|
|
4273
|
-
type: 'tuple',
|
|
4274
|
-
components: [
|
|
4275
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4276
|
-
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
4277
|
-
{ name: 'swapFeeIdx', internalType: 'uint8', type: 'uint8' },
|
|
4278
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4279
|
-
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4280
|
-
],
|
|
4281
|
-
},
|
|
4282
|
-
],
|
|
4283
|
-
name: 'onInitialize',
|
|
4284
|
-
outputs: [
|
|
4285
|
-
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
4286
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4287
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
4288
|
-
],
|
|
4289
|
-
stateMutability: 'pure',
|
|
4290
|
-
},
|
|
4291
4042
|
{
|
|
4292
4043
|
type: 'function',
|
|
4293
4044
|
inputs: [
|
|
4294
4045
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4295
|
-
{ name: '
|
|
4296
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
4297
|
-
{ name: '
|
|
4298
|
-
{ name: '
|
|
4046
|
+
{ name: 'tokenIn', internalType: 'address', type: 'address' },
|
|
4047
|
+
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
4048
|
+
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
4049
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
4050
|
+
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
4051
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4052
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4299
4053
|
],
|
|
4300
|
-
name: '
|
|
4301
|
-
outputs: [{ name: '', internalType: '
|
|
4054
|
+
name: 'swapExactIn',
|
|
4055
|
+
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
4302
4056
|
stateMutability: 'nonpayable',
|
|
4303
4057
|
},
|
|
4304
4058
|
{
|
|
4305
4059
|
type: 'function',
|
|
4306
4060
|
inputs: [
|
|
4307
4061
|
{
|
|
4308
|
-
name: '
|
|
4309
|
-
internalType: 'struct
|
|
4310
|
-
type: 'tuple',
|
|
4062
|
+
name: 'hops',
|
|
4063
|
+
internalType: 'struct Hop[]',
|
|
4064
|
+
type: 'tuple[]',
|
|
4311
4065
|
components: [
|
|
4312
4066
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4313
|
-
{ name: '
|
|
4314
|
-
{
|
|
4315
|
-
name: 'action',
|
|
4316
|
-
internalType: 'enum IPolicy.Action',
|
|
4317
|
-
type: 'uint8',
|
|
4318
|
-
},
|
|
4319
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4320
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4321
|
-
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
4322
|
-
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
4323
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4324
|
-
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
4325
|
-
],
|
|
4326
|
-
},
|
|
4327
|
-
],
|
|
4328
|
-
name: 'onRegenerate',
|
|
4329
|
-
outputs: [
|
|
4330
|
-
{
|
|
4331
|
-
name: 't',
|
|
4332
|
-
internalType: 'struct IPolicy.Terms',
|
|
4333
|
-
type: 'tuple',
|
|
4334
|
-
components: [
|
|
4335
|
-
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
4336
|
-
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
4337
|
-
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
4338
|
-
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
4067
|
+
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
4339
4068
|
],
|
|
4340
4069
|
},
|
|
4070
|
+
{ name: 'tokenIn', internalType: 'address', type: 'address' },
|
|
4071
|
+
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
4072
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
4073
|
+
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
4074
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4075
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4341
4076
|
],
|
|
4077
|
+
name: 'swapExactInPath',
|
|
4078
|
+
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
4342
4079
|
stateMutability: 'nonpayable',
|
|
4343
4080
|
},
|
|
4344
4081
|
{
|
|
4345
4082
|
type: 'function',
|
|
4346
|
-
inputs: [
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4083
|
+
inputs: [
|
|
4084
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4085
|
+
{ name: 'tokenIn', internalType: 'address', type: 'address' },
|
|
4086
|
+
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
4087
|
+
{ name: 'baseOut', internalType: 'bool', type: 'bool' },
|
|
4088
|
+
{ name: 'amountOut', internalType: 'uint256', type: 'uint256' },
|
|
4089
|
+
{ name: 'maxIn', internalType: 'uint256', type: 'uint256' },
|
|
4090
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4091
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4092
|
+
],
|
|
4093
|
+
name: 'swapExactOut',
|
|
4094
|
+
outputs: [{ name: 'amountIn', internalType: 'uint256', type: 'uint256' }],
|
|
4095
|
+
stateMutability: 'nonpayable',
|
|
4357
4096
|
},
|
|
4358
4097
|
{
|
|
4359
4098
|
type: 'function',
|
|
4360
|
-
inputs: [{ name: '', internalType: '
|
|
4361
|
-
name: '
|
|
4362
|
-
outputs: [{ name: '', internalType: '
|
|
4363
|
-
stateMutability: '
|
|
4099
|
+
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
4100
|
+
name: 'unlockCallback',
|
|
4101
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
4102
|
+
stateMutability: 'nonpayable',
|
|
4364
4103
|
},
|
|
4365
4104
|
{
|
|
4366
4105
|
type: 'function',
|
|
4367
|
-
inputs: [
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4106
|
+
inputs: [
|
|
4107
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4108
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
4109
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4110
|
+
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
4111
|
+
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
4112
|
+
{ name: 'toFloor', internalType: 'int256', type: 'int256' },
|
|
4113
|
+
{ name: 'toCap', internalType: 'int256', type: 'int256' },
|
|
4114
|
+
{ name: 'newL', internalType: 'uint256', type: 'uint256' },
|
|
4115
|
+
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
4116
|
+
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
4117
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4118
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4119
|
+
],
|
|
4120
|
+
name: 'update',
|
|
4121
|
+
outputs: [
|
|
4122
|
+
{ name: 'dBase', internalType: 'int256', type: 'int256' },
|
|
4123
|
+
{ name: 'dQuote', internalType: 'int256', type: 'int256' },
|
|
4124
|
+
{ name: 'newShares', internalType: 'uint256', type: 'uint256' },
|
|
4125
|
+
],
|
|
4126
|
+
stateMutability: 'nonpayable',
|
|
4371
4127
|
},
|
|
4372
4128
|
{
|
|
4373
4129
|
type: 'function',
|
|
4374
4130
|
inputs: [
|
|
4375
4131
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4376
|
-
{ name: '
|
|
4377
|
-
{ name: '
|
|
4132
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
4133
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4134
|
+
{ name: 'fundWithBase', internalType: 'bool', type: 'bool' },
|
|
4135
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
4136
|
+
{ name: 'minSwapOut', internalType: 'uint256', type: 'uint256' },
|
|
4137
|
+
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
4138
|
+
{ name: 'cap', internalType: 'int256', type: 'int256' },
|
|
4139
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4140
|
+
{ name: 'maxIn', internalType: 'uint256', type: 'uint256' },
|
|
4141
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4142
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4143
|
+
],
|
|
4144
|
+
name: 'zapIn',
|
|
4145
|
+
outputs: [
|
|
4146
|
+
{ name: 'baseIn', internalType: 'uint256', type: 'uint256' },
|
|
4147
|
+
{ name: 'quoteIn', internalType: 'uint256', type: 'uint256' },
|
|
4378
4148
|
],
|
|
4379
|
-
name: 'setListed',
|
|
4380
|
-
outputs: [],
|
|
4381
4149
|
stateMutability: 'nonpayable',
|
|
4382
4150
|
},
|
|
4151
|
+
{ type: 'error', inputs: [], name: 'BadFloor' },
|
|
4152
|
+
{ type: 'error', inputs: [], name: 'BadRecipient' },
|
|
4153
|
+
{ type: 'error', inputs: [], name: 'DeadlineExceeded' },
|
|
4154
|
+
{ type: 'error', inputs: [], name: 'EmptyPath' },
|
|
4155
|
+
{ type: 'error', inputs: [], name: 'LengthMismatch' },
|
|
4156
|
+
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
4383
4157
|
{
|
|
4384
|
-
type: '
|
|
4385
|
-
inputs: [
|
|
4386
|
-
|
|
4387
|
-
{ name: 'gated', internalType: 'bool', type: 'bool' },
|
|
4388
|
-
],
|
|
4389
|
-
name: 'setMintGate',
|
|
4390
|
-
outputs: [],
|
|
4391
|
-
stateMutability: 'nonpayable',
|
|
4158
|
+
type: 'error',
|
|
4159
|
+
inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
4160
|
+
name: 'QuoteResult',
|
|
4392
4161
|
},
|
|
4162
|
+
{ type: 'error', inputs: [], name: 'SlippageIn' },
|
|
4163
|
+
{ type: 'error', inputs: [], name: 'SlippageOut' },
|
|
4164
|
+
{ type: 'error', inputs: [], name: 'UnsupportedOp' },
|
|
4165
|
+
{ type: 'error', inputs: [], name: 'WrongToken' },
|
|
4166
|
+
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
4167
|
+
];
|
|
4168
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4169
|
+
// RouterF
|
|
4170
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4171
|
+
export const routerFAbi = [
|
|
4393
4172
|
{
|
|
4394
|
-
type: '
|
|
4173
|
+
type: 'constructor',
|
|
4395
4174
|
inputs: [
|
|
4396
|
-
{ name: '
|
|
4397
|
-
{ name: '
|
|
4175
|
+
{ name: '_mgr', internalType: 'contract ManagerF', type: 'address' },
|
|
4176
|
+
{ name: '_permit2', internalType: 'address', type: 'address' },
|
|
4398
4177
|
],
|
|
4399
|
-
name: 'setName',
|
|
4400
|
-
outputs: [],
|
|
4401
4178
|
stateMutability: 'nonpayable',
|
|
4402
4179
|
},
|
|
4403
4180
|
{
|
|
4404
4181
|
type: 'function',
|
|
4405
4182
|
inputs: [
|
|
4406
|
-
{ name: '
|
|
4183
|
+
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
4407
4184
|
{
|
|
4408
|
-
name: '
|
|
4409
|
-
internalType: '
|
|
4410
|
-
type: '
|
|
4185
|
+
name: 'permitSingle',
|
|
4186
|
+
internalType: 'struct IPermit2.PermitSingle',
|
|
4187
|
+
type: 'tuple',
|
|
4188
|
+
components: [
|
|
4189
|
+
{
|
|
4190
|
+
name: 'details',
|
|
4191
|
+
internalType: 'struct IPermit2.PermitDetails',
|
|
4192
|
+
type: 'tuple',
|
|
4193
|
+
components: [
|
|
4194
|
+
{ name: 'token', internalType: 'address', type: 'address' },
|
|
4195
|
+
{ name: 'amount', internalType: 'uint160', type: 'uint160' },
|
|
4196
|
+
{ name: 'expiration', internalType: 'uint48', type: 'uint48' },
|
|
4197
|
+
{ name: 'nonce', internalType: 'uint48', type: 'uint48' },
|
|
4198
|
+
],
|
|
4199
|
+
},
|
|
4200
|
+
{ name: 'spender', internalType: 'address', type: 'address' },
|
|
4201
|
+
{ name: 'sigDeadline', internalType: 'uint256', type: 'uint256' },
|
|
4202
|
+
],
|
|
4411
4203
|
},
|
|
4204
|
+
{ name: 'signature', internalType: 'bytes', type: 'bytes' },
|
|
4412
4205
|
],
|
|
4413
|
-
name: '
|
|
4206
|
+
name: 'applyPermit2',
|
|
4414
4207
|
outputs: [],
|
|
4415
4208
|
stateMutability: 'nonpayable',
|
|
4416
4209
|
},
|
|
4417
4210
|
{
|
|
4418
4211
|
type: 'function',
|
|
4419
4212
|
inputs: [],
|
|
4420
|
-
name: '
|
|
4421
|
-
outputs: [{ name: '', internalType: '
|
|
4422
|
-
stateMutability: 'view',
|
|
4423
|
-
},
|
|
4424
|
-
{
|
|
4425
|
-
type: 'function',
|
|
4426
|
-
inputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
4427
|
-
name: 'spacingListed',
|
|
4428
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4429
|
-
stateMutability: 'view',
|
|
4430
|
-
},
|
|
4431
|
-
{
|
|
4432
|
-
type: 'function',
|
|
4433
|
-
inputs: [],
|
|
4434
|
-
name: 'sponsor',
|
|
4435
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4213
|
+
name: 'mgr',
|
|
4214
|
+
outputs: [{ name: '', internalType: 'contract ManagerF', type: 'address' }],
|
|
4436
4215
|
stateMutability: 'view',
|
|
4437
4216
|
},
|
|
4438
4217
|
{
|
|
4439
4218
|
type: 'function',
|
|
4440
|
-
inputs: [{ name: '
|
|
4441
|
-
name: '
|
|
4442
|
-
outputs: [{ name: '', internalType: '
|
|
4443
|
-
stateMutability: '
|
|
4219
|
+
inputs: [{ name: 'data', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
4220
|
+
name: 'multicall',
|
|
4221
|
+
outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
4222
|
+
stateMutability: 'nonpayable',
|
|
4444
4223
|
},
|
|
4445
4224
|
{
|
|
4446
4225
|
type: 'function',
|
|
4447
4226
|
inputs: [],
|
|
4448
|
-
name: '
|
|
4449
|
-
outputs: [{ name: '', internalType: '
|
|
4450
|
-
stateMutability: 'view',
|
|
4451
|
-
},
|
|
4452
|
-
{
|
|
4453
|
-
type: 'function',
|
|
4454
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4455
|
-
name: 'swapMode',
|
|
4456
|
-
outputs: [
|
|
4457
|
-
{
|
|
4458
|
-
name: '',
|
|
4459
|
-
internalType: 'enum SponsorPolicyBase.SwapMode',
|
|
4460
|
-
type: 'uint8',
|
|
4461
|
-
},
|
|
4462
|
-
],
|
|
4227
|
+
name: 'permit2',
|
|
4228
|
+
outputs: [{ name: '', internalType: 'contract IPermit2', type: 'address' }],
|
|
4463
4229
|
stateMutability: 'view',
|
|
4464
4230
|
},
|
|
4465
4231
|
{
|
|
4466
4232
|
type: 'function',
|
|
4467
|
-
inputs: [],
|
|
4468
|
-
name: 'swapTiers',
|
|
4469
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4470
|
-
stateMutability: 'view',
|
|
4471
|
-
},
|
|
4472
|
-
{
|
|
4473
|
-
type: 'event',
|
|
4474
|
-
anonymous: false,
|
|
4475
4233
|
inputs: [
|
|
4476
|
-
{
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
},
|
|
4482
|
-
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
4483
|
-
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
4234
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4235
|
+
{ name: 'kind', internalType: 'enum QuoteKind', type: 'uint8' },
|
|
4236
|
+
{ name: 'j', internalType: 'uint256', type: 'uint256' },
|
|
4237
|
+
{ name: 'k', internalType: 'uint256', type: 'uint256' },
|
|
4238
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
4239
|
+
{ name: 'taker', internalType: 'address', type: 'address' },
|
|
4484
4240
|
],
|
|
4485
|
-
name: '
|
|
4241
|
+
name: 'quoteSwap',
|
|
4242
|
+
outputs: [],
|
|
4243
|
+
stateMutability: 'nonpayable',
|
|
4486
4244
|
},
|
|
4487
4245
|
{
|
|
4488
|
-
type: '
|
|
4489
|
-
anonymous: false,
|
|
4246
|
+
type: 'function',
|
|
4490
4247
|
inputs: [
|
|
4491
|
-
{
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
},
|
|
4497
|
-
{ name: '
|
|
4498
|
-
{ name: '
|
|
4248
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4249
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4250
|
+
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
4251
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4252
|
+
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
4253
|
+
{ name: 'minShares', internalType: 'uint256', type: 'uint256' },
|
|
4254
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4255
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4499
4256
|
],
|
|
4500
|
-
name: '
|
|
4257
|
+
name: 'rollIn',
|
|
4258
|
+
outputs: [{ name: 'sharesOut', internalType: 'uint256', type: 'uint256' }],
|
|
4259
|
+
stateMutability: 'nonpayable',
|
|
4501
4260
|
},
|
|
4502
4261
|
{
|
|
4503
|
-
type: '
|
|
4504
|
-
anonymous: false,
|
|
4262
|
+
type: 'function',
|
|
4505
4263
|
inputs: [
|
|
4506
|
-
{
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
},
|
|
4512
|
-
{ name: '
|
|
4264
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4265
|
+
{ name: 'kind', internalType: 'enum QuoteKind', type: 'uint8' },
|
|
4266
|
+
{ name: 'j', internalType: 'uint256', type: 'uint256' },
|
|
4267
|
+
{ name: 'k', internalType: 'uint256', type: 'uint256' },
|
|
4268
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
4269
|
+
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
4270
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4271
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4513
4272
|
],
|
|
4514
|
-
name: '
|
|
4273
|
+
name: 'swapExactIn',
|
|
4274
|
+
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
4275
|
+
stateMutability: 'nonpayable',
|
|
4515
4276
|
},
|
|
4516
4277
|
{
|
|
4517
|
-
type: '
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
internalType: 'bytes32',
|
|
4523
|
-
type: 'bytes32',
|
|
4524
|
-
indexed: true,
|
|
4525
|
-
},
|
|
4526
|
-
{
|
|
4527
|
-
name: 'name',
|
|
4528
|
-
internalType: 'bytes32',
|
|
4529
|
-
type: 'bytes32',
|
|
4530
|
-
indexed: false,
|
|
4531
|
-
},
|
|
4532
|
-
],
|
|
4533
|
-
name: 'NameSet',
|
|
4278
|
+
type: 'function',
|
|
4279
|
+
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
4280
|
+
name: 'unlockCallback',
|
|
4281
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
4282
|
+
stateMutability: 'nonpayable',
|
|
4534
4283
|
},
|
|
4535
4284
|
{
|
|
4536
|
-
type: '
|
|
4537
|
-
anonymous: false,
|
|
4285
|
+
type: 'function',
|
|
4538
4286
|
inputs: [
|
|
4539
|
-
{
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
},
|
|
4545
|
-
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
4546
|
-
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
4287
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4288
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4289
|
+
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
4290
|
+
{ name: 'minShares', internalType: 'uint256', type: 'uint256' },
|
|
4291
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4292
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4547
4293
|
],
|
|
4548
|
-
name: '
|
|
4294
|
+
name: 'zapIn',
|
|
4295
|
+
outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
|
|
4296
|
+
stateMutability: 'nonpayable',
|
|
4549
4297
|
},
|
|
4550
4298
|
{
|
|
4551
|
-
type: '
|
|
4552
|
-
anonymous: false,
|
|
4299
|
+
type: 'function',
|
|
4553
4300
|
inputs: [
|
|
4554
|
-
{
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
},
|
|
4560
|
-
{
|
|
4561
|
-
name: 'mode',
|
|
4562
|
-
internalType: 'enum SponsorPolicyBase.SwapMode',
|
|
4563
|
-
type: 'uint8',
|
|
4564
|
-
indexed: false,
|
|
4565
|
-
},
|
|
4301
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4302
|
+
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
4303
|
+
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
4304
|
+
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
4305
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4306
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4566
4307
|
],
|
|
4567
|
-
name: '
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
{ type: 'error', inputs: [], name: 'BadParams' },
|
|
4571
|
-
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4572
|
-
{ type: 'error', inputs: [], name: 'BadSwapMode' },
|
|
4573
|
-
{ type: 'error', inputs: [], name: 'BadTax' },
|
|
4574
|
-
{
|
|
4575
|
-
type: 'error',
|
|
4576
|
-
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
4577
|
-
name: 'FeeNotListed',
|
|
4578
|
-
},
|
|
4579
|
-
{ type: 'error', inputs: [], name: 'GatesUnavailable' },
|
|
4580
|
-
{ type: 'error', inputs: [], name: 'InactivePool' },
|
|
4581
|
-
{
|
|
4582
|
-
type: 'error',
|
|
4583
|
-
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
4584
|
-
name: 'MintFeeNotListed',
|
|
4308
|
+
name: 'zapOut',
|
|
4309
|
+
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
4310
|
+
stateMutability: 'nonpayable',
|
|
4585
4311
|
},
|
|
4586
|
-
{ type: 'error', inputs: [], name: '
|
|
4587
|
-
{ type: 'error', inputs: [], name: '
|
|
4588
|
-
{ type: 'error', inputs: [], name: '
|
|
4312
|
+
{ type: 'error', inputs: [], name: 'BadRecipient' },
|
|
4313
|
+
{ type: 'error', inputs: [], name: 'DeadlineExceeded' },
|
|
4314
|
+
{ type: 'error', inputs: [], name: 'DrainsBase' },
|
|
4589
4315
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
4590
|
-
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
4591
|
-
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
4592
|
-
{
|
|
4593
|
-
type: 'error',
|
|
4594
|
-
inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
|
|
4595
|
-
name: 'QuoteNotListed',
|
|
4596
|
-
},
|
|
4597
|
-
{ type: 'error', inputs: [], name: 'Refused' },
|
|
4598
4316
|
{
|
|
4599
4317
|
type: 'error',
|
|
4600
|
-
inputs: [{ name: '
|
|
4601
|
-
name: '
|
|
4318
|
+
inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
4319
|
+
name: 'QuoteResult',
|
|
4602
4320
|
},
|
|
4321
|
+
{ type: 'error', inputs: [], name: 'SlippageIn' },
|
|
4322
|
+
{ type: 'error', inputs: [], name: 'SlippageOut' },
|
|
4323
|
+
{ type: 'error', inputs: [], name: 'UnsupportedOp' },
|
|
4324
|
+
{ type: 'error', inputs: [], name: 'WrongToken' },
|
|
4325
|
+
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
4603
4326
|
];
|