@logswap/sdk 0.5.100 → 0.5.102
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 +58 -5
- 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 +10 -3
- package/dist/fpool.js +3 -2
- package/dist/generated.d.ts +1569 -2184
- package/dist/generated.js +547 -875
- package/dist/history.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- 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 +0 -23
- package/dist/liquidity.js +5 -32
- package/dist/pools.d.ts +23 -14
- package/dist/pools.js +36 -28
- package/dist/positions.d.ts +2 -7
- package/dist/positions.js +4 -12
- package/package.json +1 -1
- package/src/admin.ts +42 -85
- package/src/chains.ts +1 -1
- package/src/client.ts +12 -5
- package/src/fpool.ts +3 -2
- package/src/generated.ts +549 -877
- package/src/history.ts +1 -1
- package/src/index.ts +1 -1
- package/src/indexer.ts +6 -13
- package/src/keys.ts +80 -74
- package/src/liquidity.ts +5 -46
- package/src/pools.ts +45 -33
- package/src/positions.ts +4 -13
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' },
|
|
@@ -1057,6 +1064,7 @@ export const managerCAbi = [
|
|
|
1057
1064
|
indexed: true,
|
|
1058
1065
|
},
|
|
1059
1066
|
{ name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
1067
|
+
{ name: 'to', internalType: 'address', type: 'address', indexed: false },
|
|
1060
1068
|
{
|
|
1061
1069
|
name: 'fees',
|
|
1062
1070
|
internalType: 'uint256',
|
|
@@ -1126,36 +1134,36 @@ export const managerCAbi = [
|
|
|
1126
1134
|
name: 'creator',
|
|
1127
1135
|
internalType: 'address',
|
|
1128
1136
|
type: 'address',
|
|
1129
|
-
indexed:
|
|
1137
|
+
indexed: false,
|
|
1130
1138
|
},
|
|
1131
1139
|
{
|
|
1132
|
-
name: '
|
|
1140
|
+
name: 'policy',
|
|
1133
1141
|
internalType: 'address',
|
|
1134
1142
|
type: 'address',
|
|
1135
|
-
indexed:
|
|
1143
|
+
indexed: true,
|
|
1136
1144
|
},
|
|
1137
1145
|
{
|
|
1138
|
-
name: '
|
|
1139
|
-
internalType: '
|
|
1140
|
-
type: '
|
|
1146
|
+
name: 'base',
|
|
1147
|
+
internalType: 'address',
|
|
1148
|
+
type: 'address',
|
|
1141
1149
|
indexed: false,
|
|
1142
1150
|
},
|
|
1143
1151
|
{
|
|
1144
|
-
name: '
|
|
1145
|
-
internalType: '
|
|
1146
|
-
type: '
|
|
1152
|
+
name: 'swapFeeIdx',
|
|
1153
|
+
internalType: 'uint8',
|
|
1154
|
+
type: 'uint8',
|
|
1147
1155
|
indexed: false,
|
|
1148
1156
|
},
|
|
1149
1157
|
{
|
|
1150
|
-
name: '
|
|
1151
|
-
internalType: '
|
|
1152
|
-
type: '
|
|
1158
|
+
name: 'spacingIdx',
|
|
1159
|
+
internalType: 'uint8',
|
|
1160
|
+
type: 'uint8',
|
|
1153
1161
|
indexed: false,
|
|
1154
1162
|
},
|
|
1155
1163
|
{
|
|
1156
|
-
name: '
|
|
1157
|
-
internalType: '
|
|
1158
|
-
type: '
|
|
1164
|
+
name: 'salt',
|
|
1165
|
+
internalType: 'bytes32',
|
|
1166
|
+
type: 'bytes32',
|
|
1159
1167
|
indexed: false,
|
|
1160
1168
|
},
|
|
1161
1169
|
{
|
|
@@ -1170,12 +1178,6 @@ export const managerCAbi = [
|
|
|
1170
1178
|
type: 'uint256',
|
|
1171
1179
|
indexed: false,
|
|
1172
1180
|
},
|
|
1173
|
-
{
|
|
1174
|
-
name: 'salt',
|
|
1175
|
-
internalType: 'bytes32',
|
|
1176
|
-
type: 'bytes32',
|
|
1177
|
-
indexed: false,
|
|
1178
|
-
},
|
|
1179
1181
|
],
|
|
1180
1182
|
name: 'PoolCreated',
|
|
1181
1183
|
},
|
|
@@ -1499,8 +1501,6 @@ export const managerCAbi = [
|
|
|
1499
1501
|
name: 'TreasuryProposed',
|
|
1500
1502
|
},
|
|
1501
1503
|
{ type: 'error', inputs: [], name: 'AlreadyUnlocked' },
|
|
1502
|
-
{ type: 'error', inputs: [], name: 'BackstopMustBeUncapped' },
|
|
1503
|
-
{ type: 'error', inputs: [], name: 'BackstopTooSmall' },
|
|
1504
1504
|
{ type: 'error', inputs: [], name: 'BadCap' },
|
|
1505
1505
|
{ type: 'error', inputs: [], name: 'BadParam' },
|
|
1506
1506
|
{ type: 'error', inputs: [], name: 'BadTerms' },
|
|
@@ -1509,7 +1509,6 @@ export const managerCAbi = [
|
|
|
1509
1509
|
{ type: 'error', inputs: [], name: 'CappedOut' },
|
|
1510
1510
|
{ type: 'error', inputs: [], name: 'DrainedToFloor' },
|
|
1511
1511
|
{ type: 'error', inputs: [], name: 'DrainsBase' },
|
|
1512
|
-
{ type: 'error', inputs: [], name: 'IdenticalTokens' },
|
|
1513
1512
|
{ type: 'error', inputs: [], name: 'InsufficientBalance' },
|
|
1514
1513
|
{ type: 'error', inputs: [], name: 'InsufficientPermission' },
|
|
1515
1514
|
{ type: 'error', inputs: [], name: 'InsufficientQuote' },
|
|
@@ -1517,11 +1516,11 @@ export const managerCAbi = [
|
|
|
1517
1516
|
{ type: 'error', inputs: [], name: 'InvalidToken' },
|
|
1518
1517
|
{ type: 'error', inputs: [], name: 'NoLiquidity' },
|
|
1519
1518
|
{ type: 'error', inputs: [], name: 'NotAuthorized' },
|
|
1520
|
-
{ type: 'error', inputs: [], name: 'NotCreator' },
|
|
1521
1519
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
1522
1520
|
{ type: 'error', inputs: [], name: 'NotPolicy' },
|
|
1523
1521
|
{ type: 'error', inputs: [], name: 'NotTreasury' },
|
|
1524
1522
|
{ type: 'error', inputs: [], name: 'OffGrid' },
|
|
1523
|
+
{ type: 'error', inputs: [], name: 'PolicyNotApproved' },
|
|
1525
1524
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
1526
1525
|
{ type: 'error', inputs: [], name: 'PoolLocked' },
|
|
1527
1526
|
{ type: 'error', inputs: [], name: 'PoolNotInitialized' },
|
|
@@ -1533,15 +1532,14 @@ export const managerCAbi = [
|
|
|
1533
1532
|
},
|
|
1534
1533
|
{ type: 'error', inputs: [], name: 'ReserveNotRepresentable' },
|
|
1535
1534
|
{ type: 'error', inputs: [], name: 'Restructured' },
|
|
1535
|
+
{ type: 'error', inputs: [], name: 'SameAsset' },
|
|
1536
1536
|
{ type: 'error', inputs: [], name: 'Slippage' },
|
|
1537
|
-
{ type: 'error', inputs: [], name: 'SpacingZero' },
|
|
1538
1537
|
{ type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
|
|
1539
1538
|
{ type: 'error', inputs: [], name: 'TokensNotSettled' },
|
|
1540
1539
|
{ type: 'error', inputs: [], name: 'TransferShortfall' },
|
|
1541
1540
|
{ type: 'error', inputs: [], name: 'WrongPool' },
|
|
1542
1541
|
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
1543
1542
|
{ type: 'error', inputs: [], name: 'ZeroExposure' },
|
|
1544
|
-
{ type: 'error', inputs: [], name: 'ZeroShares' },
|
|
1545
1543
|
];
|
|
1546
1544
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
1547
1545
|
// ManagerF
|
|
@@ -1697,13 +1695,6 @@ export const managerFAbi = [
|
|
|
1697
1695
|
outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
|
|
1698
1696
|
stateMutability: 'nonpayable',
|
|
1699
1697
|
},
|
|
1700
|
-
{
|
|
1701
|
-
type: 'function',
|
|
1702
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1703
|
-
name: 'dps',
|
|
1704
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1705
|
-
stateMutability: 'view',
|
|
1706
|
-
},
|
|
1707
1698
|
{
|
|
1708
1699
|
type: 'function',
|
|
1709
1700
|
inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -1739,13 +1730,6 @@ export const managerFAbi = [
|
|
|
1739
1730
|
outputs: [],
|
|
1740
1731
|
stateMutability: 'nonpayable',
|
|
1741
1732
|
},
|
|
1742
|
-
{
|
|
1743
|
-
type: 'function',
|
|
1744
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1745
|
-
name: 'incomeHeld',
|
|
1746
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1747
|
-
stateMutability: 'view',
|
|
1748
|
-
},
|
|
1749
1733
|
{
|
|
1750
1734
|
type: 'function',
|
|
1751
1735
|
inputs: [
|
|
@@ -1832,7 +1816,7 @@ export const managerFAbi = [
|
|
|
1832
1816
|
},
|
|
1833
1817
|
{
|
|
1834
1818
|
type: 'function',
|
|
1835
|
-
inputs: [{ name: '
|
|
1819
|
+
inputs: [{ name: 'data', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
1836
1820
|
name: 'multicall',
|
|
1837
1821
|
outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
1838
1822
|
stateMutability: 'nonpayable',
|
|
@@ -2088,13 +2072,13 @@ export const managerFAbi = [
|
|
|
2088
2072
|
type: 'bytes32',
|
|
2089
2073
|
indexed: true,
|
|
2090
2074
|
},
|
|
2091
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2092
2075
|
{
|
|
2093
2076
|
name: 'owner',
|
|
2094
2077
|
internalType: 'address',
|
|
2095
2078
|
type: 'address',
|
|
2096
2079
|
indexed: true,
|
|
2097
2080
|
},
|
|
2081
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2098
2082
|
{ name: 'to', internalType: 'address', type: 'address', indexed: false },
|
|
2099
2083
|
{
|
|
2100
2084
|
name: 'amount',
|
|
@@ -2346,13 +2330,13 @@ export const managerFAbi = [
|
|
|
2346
2330
|
name: 'creator',
|
|
2347
2331
|
internalType: 'address',
|
|
2348
2332
|
type: 'address',
|
|
2349
|
-
indexed:
|
|
2333
|
+
indexed: false,
|
|
2350
2334
|
},
|
|
2351
2335
|
{
|
|
2352
2336
|
name: 'policy',
|
|
2353
2337
|
internalType: 'address',
|
|
2354
2338
|
type: 'address',
|
|
2355
|
-
indexed:
|
|
2339
|
+
indexed: true,
|
|
2356
2340
|
},
|
|
2357
2341
|
{
|
|
2358
2342
|
name: 'bases',
|
|
@@ -2502,13 +2486,13 @@ export const managerFAbi = [
|
|
|
2502
2486
|
type: 'bytes32',
|
|
2503
2487
|
indexed: true,
|
|
2504
2488
|
},
|
|
2505
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2506
2489
|
{
|
|
2507
2490
|
name: 'owner',
|
|
2508
2491
|
internalType: 'address',
|
|
2509
2492
|
type: 'address',
|
|
2510
2493
|
indexed: true,
|
|
2511
2494
|
},
|
|
2495
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2512
2496
|
{
|
|
2513
2497
|
name: 'shares',
|
|
2514
2498
|
internalType: 'uint256',
|
|
@@ -2703,7 +2687,6 @@ export const managerFAbi = [
|
|
|
2703
2687
|
name: 'MulticallFailed',
|
|
2704
2688
|
},
|
|
2705
2689
|
{ type: 'error', inputs: [], name: 'NotAuthorized' },
|
|
2706
|
-
{ type: 'error', inputs: [], name: 'NotCreator' },
|
|
2707
2690
|
{ type: 'error', inputs: [], name: 'NotFrozen' },
|
|
2708
2691
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
2709
2692
|
{ type: 'error', inputs: [], name: 'NotOperator' },
|
|
@@ -2733,27 +2716,22 @@ export const managerFAbi = [
|
|
|
2733
2716
|
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
2734
2717
|
];
|
|
2735
2718
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2736
|
-
//
|
|
2719
|
+
// PolicyC
|
|
2737
2720
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2738
|
-
export const
|
|
2721
|
+
export const policyCAbi = [
|
|
2739
2722
|
{
|
|
2740
2723
|
type: 'constructor',
|
|
2741
2724
|
inputs: [
|
|
2742
2725
|
{ name: 'manager_', internalType: 'address', type: 'address' },
|
|
2743
2726
|
{
|
|
2744
2727
|
name: 'p',
|
|
2745
|
-
internalType: 'struct
|
|
2728
|
+
internalType: 'struct PolicyCParams',
|
|
2746
2729
|
type: 'tuple',
|
|
2747
2730
|
components: [
|
|
2748
2731
|
{ name: 'authority', internalType: 'address', type: 'address' },
|
|
2749
2732
|
{ name: 'open', internalType: 'bool', type: 'bool' },
|
|
2750
|
-
{ name: 'seedToDead', internalType: 'bool', type: 'bool' },
|
|
2751
|
-
{ name: 'incomeHarvestOnly', internalType: 'bool', type: 'bool' },
|
|
2752
|
-
{ name: 'incomeTaxRate', internalType: 'uint256', type: 'uint256' },
|
|
2753
2733
|
{ name: 'feeMask', internalType: 'uint8', type: 'uint8' },
|
|
2754
|
-
{ name: '
|
|
2755
|
-
{ name: 'lnCapMin', internalType: 'uint24', type: 'uint24' },
|
|
2756
|
-
{ name: 'quoteBuffer', internalType: 'uint256', type: 'uint256' },
|
|
2734
|
+
{ name: 'swapFeeTax', internalType: 'uint256', type: 'uint256' },
|
|
2757
2735
|
{ name: 'quotes', internalType: 'address[]', type: 'address[]' },
|
|
2758
2736
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
2759
2737
|
],
|
|
@@ -2820,20 +2798,6 @@ export const policyFAbi = [
|
|
|
2820
2798
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2821
2799
|
stateMutability: 'view',
|
|
2822
2800
|
},
|
|
2823
|
-
{
|
|
2824
|
-
type: 'function',
|
|
2825
|
-
inputs: [],
|
|
2826
|
-
name: 'incomeHarvestOnly',
|
|
2827
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
2828
|
-
stateMutability: 'view',
|
|
2829
|
-
},
|
|
2830
|
-
{
|
|
2831
|
-
type: 'function',
|
|
2832
|
-
inputs: [],
|
|
2833
|
-
name: 'incomeTaxRate',
|
|
2834
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2835
|
-
stateMutability: 'view',
|
|
2836
|
-
},
|
|
2837
2801
|
{
|
|
2838
2802
|
type: 'function',
|
|
2839
2803
|
inputs: [],
|
|
@@ -2841,20 +2805,6 @@ export const policyFAbi = [
|
|
|
2841
2805
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
2842
2806
|
stateMutability: 'pure',
|
|
2843
2807
|
},
|
|
2844
|
-
{
|
|
2845
|
-
type: 'function',
|
|
2846
|
-
inputs: [],
|
|
2847
|
-
name: 'lenMax',
|
|
2848
|
-
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
2849
|
-
stateMutability: 'view',
|
|
2850
|
-
},
|
|
2851
|
-
{
|
|
2852
|
-
type: 'function',
|
|
2853
|
-
inputs: [],
|
|
2854
|
-
name: 'lnCapMin',
|
|
2855
|
-
outputs: [{ name: '', internalType: 'uint24', type: 'uint24' }],
|
|
2856
|
-
stateMutability: 'view',
|
|
2857
|
-
},
|
|
2858
2808
|
{
|
|
2859
2809
|
type: 'function',
|
|
2860
2810
|
inputs: [],
|
|
@@ -2866,46 +2816,24 @@ export const policyFAbi = [
|
|
|
2866
2816
|
type: 'function',
|
|
2867
2817
|
inputs: [
|
|
2868
2818
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2869
|
-
{
|
|
2819
|
+
{
|
|
2820
|
+
name: 'action',
|
|
2821
|
+
internalType: 'enum IPolicyBase.Action',
|
|
2822
|
+
type: 'uint8',
|
|
2823
|
+
},
|
|
2870
2824
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
2871
2825
|
],
|
|
2872
2826
|
name: 'may',
|
|
2873
2827
|
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
2874
2828
|
stateMutability: 'view',
|
|
2875
2829
|
},
|
|
2876
|
-
{
|
|
2877
|
-
type: 'function',
|
|
2878
|
-
inputs: [
|
|
2879
|
-
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
2880
|
-
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
2881
|
-
{ name: 'quoteAmount', internalType: 'uint256', type: 'uint256' },
|
|
2882
|
-
{ name: 'lnCapOverSeed', internalType: 'uint24', type: 'uint24' },
|
|
2883
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2884
|
-
],
|
|
2885
|
-
name: 'mayDeploy',
|
|
2886
|
-
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
2887
|
-
stateMutability: 'view',
|
|
2888
|
-
},
|
|
2889
|
-
{
|
|
2890
|
-
type: 'function',
|
|
2891
|
-
inputs: [
|
|
2892
|
-
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
2893
|
-
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
2894
|
-
{ name: 'extra', internalType: 'uint256', type: 'uint256' },
|
|
2895
|
-
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
2896
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2897
|
-
],
|
|
2898
|
-
name: 'mayHarvest',
|
|
2899
|
-
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
2900
|
-
stateMutability: 'view',
|
|
2901
|
-
},
|
|
2902
2830
|
{
|
|
2903
2831
|
type: 'function',
|
|
2904
2832
|
inputs: [
|
|
2905
2833
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2906
2834
|
{ name: 'caller', internalType: 'address', type: 'address' },
|
|
2907
2835
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2908
|
-
{ name: '
|
|
2836
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2909
2837
|
{ name: 'swapFeeIdx', internalType: 'uint8', type: 'uint8' },
|
|
2910
2838
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
2911
2839
|
],
|
|
@@ -2913,6 +2841,7 @@ export const policyFAbi = [
|
|
|
2913
2841
|
outputs: [
|
|
2914
2842
|
{ name: 'flags', internalType: 'uint8', type: 'uint8' },
|
|
2915
2843
|
{ name: 'op', internalType: 'address', type: 'address' },
|
|
2844
|
+
{ name: 'tax', internalType: 'uint256', type: 'uint256' },
|
|
2916
2845
|
],
|
|
2917
2846
|
stateMutability: 'nonpayable',
|
|
2918
2847
|
},
|
|
@@ -2920,7 +2849,9 @@ export const policyFAbi = [
|
|
|
2920
2849
|
type: 'function',
|
|
2921
2850
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
2922
2851
|
name: 'mintMode',
|
|
2923
|
-
outputs: [
|
|
2852
|
+
outputs: [
|
|
2853
|
+
{ name: '', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
|
|
2854
|
+
],
|
|
2924
2855
|
stateMutability: 'view',
|
|
2925
2856
|
},
|
|
2926
2857
|
{
|
|
@@ -2937,13 +2868,6 @@ export const policyFAbi = [
|
|
|
2937
2868
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2938
2869
|
stateMutability: 'view',
|
|
2939
2870
|
},
|
|
2940
|
-
{
|
|
2941
|
-
type: 'function',
|
|
2942
|
-
inputs: [],
|
|
2943
|
-
name: 'quoteBuffer',
|
|
2944
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2945
|
-
stateMutability: 'view',
|
|
2946
|
-
},
|
|
2947
2871
|
{
|
|
2948
2872
|
type: 'function',
|
|
2949
2873
|
inputs: [],
|
|
@@ -2965,18 +2889,11 @@ export const policyFAbi = [
|
|
|
2965
2889
|
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
2966
2890
|
stateMutability: 'view',
|
|
2967
2891
|
},
|
|
2968
|
-
{
|
|
2969
|
-
type: 'function',
|
|
2970
|
-
inputs: [],
|
|
2971
|
-
name: 'seedToDead',
|
|
2972
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
2973
|
-
stateMutability: 'view',
|
|
2974
|
-
},
|
|
2975
2892
|
{
|
|
2976
2893
|
type: 'function',
|
|
2977
2894
|
inputs: [
|
|
2978
2895
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2979
|
-
{ name: 'mode', internalType: 'enum
|
|
2896
|
+
{ name: 'mode', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
|
|
2980
2897
|
],
|
|
2981
2898
|
name: 'setMintMode',
|
|
2982
2899
|
outputs: [],
|
|
@@ -3006,7 +2923,7 @@ export const policyFAbi = [
|
|
|
3006
2923
|
type: 'function',
|
|
3007
2924
|
inputs: [
|
|
3008
2925
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3009
|
-
{ name: 'mode', internalType: 'enum
|
|
2926
|
+
{ name: 'mode', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
|
|
3010
2927
|
],
|
|
3011
2928
|
name: 'setSwapMode',
|
|
3012
2929
|
outputs: [],
|
|
@@ -3014,18 +2931,17 @@ export const policyFAbi = [
|
|
|
3014
2931
|
},
|
|
3015
2932
|
{
|
|
3016
2933
|
type: 'function',
|
|
3017
|
-
inputs: [
|
|
3018
|
-
name: '
|
|
3019
|
-
outputs: [{ name: '', internalType: '
|
|
2934
|
+
inputs: [],
|
|
2935
|
+
name: 'swapFeeTax',
|
|
2936
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3020
2937
|
stateMutability: 'view',
|
|
3021
2938
|
},
|
|
3022
2939
|
{
|
|
3023
2940
|
type: 'function',
|
|
3024
|
-
inputs: [{ name: '
|
|
3025
|
-
name: '
|
|
2941
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
2942
|
+
name: 'swapMode',
|
|
3026
2943
|
outputs: [
|
|
3027
|
-
{ name: '
|
|
3028
|
-
{ name: 'rate', internalType: 'uint256', type: 'uint256' },
|
|
2944
|
+
{ name: '', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
|
|
3029
2945
|
],
|
|
3030
2946
|
stateMutability: 'view',
|
|
3031
2947
|
},
|
|
@@ -3041,7 +2957,7 @@ export const policyFAbi = [
|
|
|
3041
2957
|
},
|
|
3042
2958
|
{
|
|
3043
2959
|
name: 'mode',
|
|
3044
|
-
internalType: 'enum
|
|
2960
|
+
internalType: 'enum IPolicyBase.Mode',
|
|
3045
2961
|
type: 'uint8',
|
|
3046
2962
|
indexed: false,
|
|
3047
2963
|
},
|
|
@@ -3103,7 +3019,7 @@ export const policyFAbi = [
|
|
|
3103
3019
|
},
|
|
3104
3020
|
{
|
|
3105
3021
|
name: 'mode',
|
|
3106
|
-
internalType: 'enum
|
|
3022
|
+
internalType: 'enum IPolicyBase.Mode',
|
|
3107
3023
|
type: 'uint8',
|
|
3108
3024
|
indexed: false,
|
|
3109
3025
|
},
|
|
@@ -3118,7 +3034,6 @@ export const policyFAbi = [
|
|
|
3118
3034
|
inputs: [{ name: 'base', internalType: 'address', type: 'address' }],
|
|
3119
3035
|
name: 'BaseNotListed',
|
|
3120
3036
|
},
|
|
3121
|
-
{ type: 'error', inputs: [], name: 'CapTooClose' },
|
|
3122
3037
|
{
|
|
3123
3038
|
type: 'error',
|
|
3124
3039
|
inputs: [{ name: 'idx', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -3126,7 +3041,6 @@ export const policyFAbi = [
|
|
|
3126
3041
|
},
|
|
3127
3042
|
{ type: 'error', inputs: [], name: 'GatesUnavailable' },
|
|
3128
3043
|
{ type: 'error', inputs: [], name: 'InactivePool' },
|
|
3129
|
-
{ type: 'error', inputs: [], name: 'IncomeOnly' },
|
|
3130
3044
|
{ type: 'error', inputs: [], name: 'ModeOrder' },
|
|
3131
3045
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
3132
3046
|
{ type: 'error', inputs: [], name: 'NotCanonical' },
|
|
@@ -3137,193 +3051,311 @@ export const policyFAbi = [
|
|
|
3137
3051
|
inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
|
|
3138
3052
|
name: 'QuoteNotListed',
|
|
3139
3053
|
},
|
|
3140
|
-
{ type: 'error', inputs: [], name: 'QuoteTooThin' },
|
|
3141
3054
|
{ type: 'error', inputs: [], name: 'Refused' },
|
|
3142
|
-
{ type: 'error', inputs: [], name: 'TooManyLegs' },
|
|
3143
3055
|
];
|
|
3144
3056
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3145
|
-
//
|
|
3057
|
+
// PolicyF
|
|
3146
3058
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3147
|
-
export const
|
|
3059
|
+
export const policyFAbi = [
|
|
3148
3060
|
{
|
|
3149
3061
|
type: 'constructor',
|
|
3150
3062
|
inputs: [
|
|
3151
|
-
{ name: '
|
|
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
|
+
},
|
|
3152
3082
|
],
|
|
3153
3083
|
stateMutability: 'nonpayable',
|
|
3154
3084
|
},
|
|
3155
3085
|
{
|
|
3156
3086
|
type: 'function',
|
|
3157
3087
|
inputs: [],
|
|
3158
|
-
name: '
|
|
3159
|
-
outputs: [],
|
|
3160
|
-
stateMutability: '
|
|
3088
|
+
name: 'MINT',
|
|
3089
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
3090
|
+
stateMutability: 'view',
|
|
3161
3091
|
},
|
|
3162
3092
|
{
|
|
3163
3093
|
type: 'function',
|
|
3164
|
-
inputs: [
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3168
|
-
],
|
|
3169
|
-
name: 'admit',
|
|
3170
|
-
outputs: [{ name: 'who', internalType: 'address', type: 'address' }],
|
|
3094
|
+
inputs: [],
|
|
3095
|
+
name: 'SWAP',
|
|
3096
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
3171
3097
|
stateMutability: 'view',
|
|
3172
3098
|
},
|
|
3173
3099
|
{
|
|
3174
3100
|
type: 'function',
|
|
3175
3101
|
inputs: [
|
|
3176
|
-
{ name: '
|
|
3177
|
-
{ name: '
|
|
3102
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3103
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3178
3104
|
],
|
|
3179
|
-
name: '
|
|
3105
|
+
name: 'appointOperator',
|
|
3180
3106
|
outputs: [],
|
|
3181
3107
|
stateMutability: 'nonpayable',
|
|
3182
3108
|
},
|
|
3183
3109
|
{
|
|
3184
3110
|
type: 'function',
|
|
3185
|
-
inputs: [
|
|
3186
|
-
name: '
|
|
3187
|
-
outputs: [
|
|
3188
|
-
{
|
|
3189
|
-
name: '',
|
|
3190
|
-
internalType: 'enum PolicyRegistry.CreationMode',
|
|
3191
|
-
type: 'uint8',
|
|
3192
|
-
},
|
|
3193
|
-
],
|
|
3194
|
-
stateMutability: 'view',
|
|
3195
|
-
},
|
|
3196
|
-
{
|
|
3197
|
-
type: 'function',
|
|
3198
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3199
|
-
name: 'entries',
|
|
3200
|
-
outputs: [
|
|
3201
|
-
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
3202
|
-
{ name: 'until', internalType: 'uint64', type: 'uint64' },
|
|
3203
|
-
{ name: 'index', internalType: 'uint32', type: 'uint32' },
|
|
3204
|
-
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
3205
|
-
],
|
|
3111
|
+
inputs: [],
|
|
3112
|
+
name: 'authority',
|
|
3113
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3206
3114
|
stateMutability: 'view',
|
|
3207
3115
|
},
|
|
3208
3116
|
{
|
|
3209
3117
|
type: 'function',
|
|
3210
|
-
inputs: [
|
|
3211
|
-
name: '
|
|
3118
|
+
inputs: [],
|
|
3119
|
+
name: 'baseCurated',
|
|
3212
3120
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3213
3121
|
stateMutability: 'view',
|
|
3214
3122
|
},
|
|
3215
3123
|
{
|
|
3216
3124
|
type: 'function',
|
|
3217
|
-
inputs: [{ name: '
|
|
3218
|
-
name: '
|
|
3125
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3126
|
+
name: 'baseListed',
|
|
3219
3127
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3220
3128
|
stateMutability: 'view',
|
|
3221
3129
|
},
|
|
3222
3130
|
{
|
|
3223
3131
|
type: 'function',
|
|
3224
|
-
inputs: [
|
|
3225
|
-
name: '
|
|
3226
|
-
outputs: [{ name: '', internalType: '
|
|
3132
|
+
inputs: [],
|
|
3133
|
+
name: 'feeMask',
|
|
3134
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
3227
3135
|
stateMutability: 'view',
|
|
3228
3136
|
},
|
|
3229
3137
|
{
|
|
3230
3138
|
type: 'function',
|
|
3231
3139
|
inputs: [],
|
|
3232
|
-
name: '
|
|
3140
|
+
name: 'fixedAuthority',
|
|
3233
3141
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3234
3142
|
stateMutability: 'view',
|
|
3235
3143
|
},
|
|
3236
3144
|
{
|
|
3237
3145
|
type: 'function',
|
|
3238
3146
|
inputs: [],
|
|
3239
|
-
name: '
|
|
3240
|
-
outputs: [{ name: '', internalType: '
|
|
3147
|
+
name: 'incomeHarvestOnly',
|
|
3148
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3241
3149
|
stateMutability: 'view',
|
|
3242
3150
|
},
|
|
3243
3151
|
{
|
|
3244
3152
|
type: 'function',
|
|
3245
3153
|
inputs: [],
|
|
3246
|
-
name: '
|
|
3247
|
-
outputs: [{ name: '', internalType: '
|
|
3154
|
+
name: 'incomeTaxRate',
|
|
3155
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3248
3156
|
stateMutability: 'view',
|
|
3249
3157
|
},
|
|
3250
3158
|
{
|
|
3251
3159
|
type: 'function',
|
|
3252
|
-
inputs: [
|
|
3253
|
-
name: '
|
|
3254
|
-
outputs: [],
|
|
3255
|
-
stateMutability: '
|
|
3160
|
+
inputs: [],
|
|
3161
|
+
name: 'kind',
|
|
3162
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3163
|
+
stateMutability: 'pure',
|
|
3256
3164
|
},
|
|
3257
3165
|
{
|
|
3258
3166
|
type: 'function',
|
|
3259
|
-
inputs: [
|
|
3260
|
-
name: '
|
|
3261
|
-
outputs: [],
|
|
3262
|
-
stateMutability: '
|
|
3167
|
+
inputs: [],
|
|
3168
|
+
name: 'lenMax',
|
|
3169
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
3170
|
+
stateMutability: 'view',
|
|
3171
|
+
},
|
|
3172
|
+
{
|
|
3173
|
+
type: 'function',
|
|
3174
|
+
inputs: [],
|
|
3175
|
+
name: 'lnCapMin',
|
|
3176
|
+
outputs: [{ name: '', internalType: 'uint24', type: 'uint24' }],
|
|
3177
|
+
stateMutability: 'view',
|
|
3178
|
+
},
|
|
3179
|
+
{
|
|
3180
|
+
type: 'function',
|
|
3181
|
+
inputs: [],
|
|
3182
|
+
name: 'manager',
|
|
3183
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3184
|
+
stateMutability: 'view',
|
|
3263
3185
|
},
|
|
3264
3186
|
{
|
|
3265
3187
|
type: 'function',
|
|
3266
3188
|
inputs: [
|
|
3267
|
-
{ name: '
|
|
3189
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3268
3190
|
{
|
|
3269
|
-
name: '
|
|
3270
|
-
internalType: 'enum
|
|
3191
|
+
name: 'action',
|
|
3192
|
+
internalType: 'enum IPolicyBase.Action',
|
|
3271
3193
|
type: 'uint8',
|
|
3272
3194
|
},
|
|
3195
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3273
3196
|
],
|
|
3274
|
-
name: '
|
|
3275
|
-
outputs: [],
|
|
3276
|
-
stateMutability: '
|
|
3197
|
+
name: 'may',
|
|
3198
|
+
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
3199
|
+
stateMutability: 'view',
|
|
3277
3200
|
},
|
|
3278
3201
|
{
|
|
3279
3202
|
type: 'function',
|
|
3280
3203
|
inputs: [
|
|
3281
|
-
{ name: '
|
|
3282
|
-
{ 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' },
|
|
3283
3209
|
],
|
|
3284
|
-
name: '
|
|
3285
|
-
outputs: [],
|
|
3286
|
-
stateMutability: '
|
|
3210
|
+
name: 'mayDeploy',
|
|
3211
|
+
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
3212
|
+
stateMutability: 'view',
|
|
3287
3213
|
},
|
|
3288
3214
|
{
|
|
3289
3215
|
type: 'function',
|
|
3290
3216
|
inputs: [
|
|
3291
|
-
{ name: '
|
|
3292
|
-
{ 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' },
|
|
3293
3241
|
],
|
|
3294
|
-
name: 'setSponsorName',
|
|
3295
|
-
outputs: [],
|
|
3296
3242
|
stateMutability: 'nonpayable',
|
|
3297
3243
|
},
|
|
3298
3244
|
{
|
|
3299
3245
|
type: 'function',
|
|
3300
|
-
inputs: [{ name: '', internalType: '
|
|
3301
|
-
name: '
|
|
3302
|
-
outputs: [
|
|
3246
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3247
|
+
name: 'mintMode',
|
|
3248
|
+
outputs: [
|
|
3249
|
+
{ name: '', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
|
|
3250
|
+
],
|
|
3303
3251
|
stateMutability: 'view',
|
|
3304
3252
|
},
|
|
3305
3253
|
{
|
|
3306
3254
|
type: 'function',
|
|
3307
|
-
inputs: [
|
|
3308
|
-
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',
|
|
3309
3264
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3310
3265
|
stateMutability: 'view',
|
|
3311
3266
|
},
|
|
3267
|
+
{
|
|
3268
|
+
type: 'function',
|
|
3269
|
+
inputs: [],
|
|
3270
|
+
name: 'quoteBuffer',
|
|
3271
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3272
|
+
stateMutability: 'view',
|
|
3273
|
+
},
|
|
3274
|
+
{
|
|
3275
|
+
type: 'function',
|
|
3276
|
+
inputs: [],
|
|
3277
|
+
name: 'quoteCurated',
|
|
3278
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3279
|
+
stateMutability: 'view',
|
|
3280
|
+
},
|
|
3281
|
+
{
|
|
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
|
+
},
|
|
3312
3302
|
{
|
|
3313
3303
|
type: 'function',
|
|
3314
3304
|
inputs: [
|
|
3315
|
-
{ name: '
|
|
3316
|
-
{ name: '
|
|
3305
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3306
|
+
{ name: 'mode', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
|
|
3317
3307
|
],
|
|
3318
|
-
name: '
|
|
3308
|
+
name: 'setMintMode',
|
|
3319
3309
|
outputs: [],
|
|
3320
3310
|
stateMutability: 'nonpayable',
|
|
3321
3311
|
},
|
|
3322
3312
|
{
|
|
3323
3313
|
type: 'function',
|
|
3324
|
-
inputs: [
|
|
3325
|
-
|
|
3326
|
-
|
|
3314
|
+
inputs: [
|
|
3315
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3316
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
3317
|
+
],
|
|
3318
|
+
name: 'setName',
|
|
3319
|
+
outputs: [],
|
|
3320
|
+
stateMutability: 'nonpayable',
|
|
3321
|
+
},
|
|
3322
|
+
{
|
|
3323
|
+
type: 'function',
|
|
3324
|
+
inputs: [
|
|
3325
|
+
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
3326
|
+
{ name: 'bits', internalType: 'uint8', type: 'uint8' },
|
|
3327
|
+
],
|
|
3328
|
+
name: 'setRights',
|
|
3329
|
+
outputs: [],
|
|
3330
|
+
stateMutability: 'nonpayable',
|
|
3331
|
+
},
|
|
3332
|
+
{
|
|
3333
|
+
type: 'function',
|
|
3334
|
+
inputs: [
|
|
3335
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3336
|
+
{ name: 'mode', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
|
|
3337
|
+
],
|
|
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
|
+
],
|
|
3327
3359
|
stateMutability: 'view',
|
|
3328
3360
|
},
|
|
3329
3361
|
{
|
|
@@ -3331,93 +3363,326 @@ export const policyRegistryAbi = [
|
|
|
3331
3363
|
anonymous: false,
|
|
3332
3364
|
inputs: [
|
|
3333
3365
|
{
|
|
3334
|
-
name: '
|
|
3335
|
-
internalType: '
|
|
3336
|
-
type: '
|
|
3366
|
+
name: 'poolId',
|
|
3367
|
+
internalType: 'bytes32',
|
|
3368
|
+
type: 'bytes32',
|
|
3337
3369
|
indexed: true,
|
|
3338
3370
|
},
|
|
3339
3371
|
{
|
|
3340
|
-
name: '
|
|
3341
|
-
internalType: '
|
|
3342
|
-
type: '
|
|
3372
|
+
name: 'mode',
|
|
3373
|
+
internalType: 'enum IPolicyBase.Mode',
|
|
3374
|
+
type: 'uint8',
|
|
3343
3375
|
indexed: false,
|
|
3344
3376
|
},
|
|
3345
3377
|
],
|
|
3346
|
-
name: '
|
|
3378
|
+
name: 'MintModeSet',
|
|
3347
3379
|
},
|
|
3348
3380
|
{
|
|
3349
3381
|
type: 'event',
|
|
3350
3382
|
anonymous: false,
|
|
3351
3383
|
inputs: [
|
|
3352
3384
|
{
|
|
3353
|
-
name: '
|
|
3354
|
-
internalType: '
|
|
3355
|
-
type: '
|
|
3385
|
+
name: 'poolId',
|
|
3386
|
+
internalType: 'bytes32',
|
|
3387
|
+
type: 'bytes32',
|
|
3356
3388
|
indexed: true,
|
|
3357
3389
|
},
|
|
3358
3390
|
{
|
|
3359
|
-
name: '
|
|
3360
|
-
internalType: '
|
|
3361
|
-
type: '
|
|
3391
|
+
name: 'name',
|
|
3392
|
+
internalType: 'bytes32',
|
|
3393
|
+
type: 'bytes32',
|
|
3362
3394
|
indexed: false,
|
|
3363
3395
|
},
|
|
3364
3396
|
],
|
|
3365
|
-
name: '
|
|
3397
|
+
name: 'NameSet',
|
|
3366
3398
|
},
|
|
3367
3399
|
{
|
|
3368
3400
|
type: 'event',
|
|
3369
3401
|
anonymous: false,
|
|
3370
3402
|
inputs: [
|
|
3371
3403
|
{
|
|
3372
|
-
name: '
|
|
3373
|
-
internalType: '
|
|
3374
|
-
type: '
|
|
3404
|
+
name: 'poolId',
|
|
3405
|
+
internalType: 'bytes32',
|
|
3406
|
+
type: 'bytes32',
|
|
3375
3407
|
indexed: true,
|
|
3376
3408
|
},
|
|
3377
|
-
{ name: 'trusted', internalType: 'bool', type: 'bool', indexed: false },
|
|
3378
|
-
],
|
|
3379
|
-
name: 'ForwarderTrusted',
|
|
3380
|
-
},
|
|
3381
|
-
{
|
|
3382
|
-
type: 'event',
|
|
3383
|
-
anonymous: false,
|
|
3384
|
-
inputs: [
|
|
3385
3409
|
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
3386
3410
|
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
3387
3411
|
],
|
|
3388
|
-
name: '
|
|
3412
|
+
name: 'OperatorAppointed',
|
|
3389
3413
|
},
|
|
3390
3414
|
{
|
|
3391
3415
|
type: 'event',
|
|
3392
3416
|
anonymous: false,
|
|
3393
3417
|
inputs: [
|
|
3394
|
-
{
|
|
3395
|
-
|
|
3396
|
-
internalType: 'address',
|
|
3397
|
-
type: 'address',
|
|
3398
|
-
indexed: true,
|
|
3399
|
-
},
|
|
3400
|
-
{
|
|
3401
|
-
name: 'proposed',
|
|
3402
|
-
internalType: 'address',
|
|
3403
|
-
type: 'address',
|
|
3404
|
-
indexed: true,
|
|
3405
|
-
},
|
|
3418
|
+
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
3419
|
+
{ name: 'bits', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
3406
3420
|
],
|
|
3407
|
-
name: '
|
|
3421
|
+
name: 'RightsSet',
|
|
3408
3422
|
},
|
|
3409
3423
|
{
|
|
3410
3424
|
type: 'event',
|
|
3411
3425
|
anonymous: false,
|
|
3412
3426
|
inputs: [
|
|
3413
3427
|
{
|
|
3414
|
-
name: '
|
|
3415
|
-
internalType: '
|
|
3416
|
-
type: '
|
|
3428
|
+
name: 'poolId',
|
|
3429
|
+
internalType: 'bytes32',
|
|
3430
|
+
type: 'bytes32',
|
|
3417
3431
|
indexed: true,
|
|
3418
3432
|
},
|
|
3433
|
+
{
|
|
3434
|
+
name: 'mode',
|
|
3435
|
+
internalType: 'enum IPolicyBase.Mode',
|
|
3436
|
+
type: 'uint8',
|
|
3437
|
+
indexed: false,
|
|
3438
|
+
},
|
|
3419
3439
|
],
|
|
3420
|
-
name: '
|
|
3440
|
+
name: 'SwapModeSet',
|
|
3441
|
+
},
|
|
3442
|
+
{ type: 'error', inputs: [], name: 'AlreadyHeld' },
|
|
3443
|
+
{ type: 'error', inputs: [], name: 'BadParams' },
|
|
3444
|
+
{ type: 'error', inputs: [], name: 'BadRights' },
|
|
3445
|
+
{
|
|
3446
|
+
type: 'error',
|
|
3447
|
+
inputs: [{ name: 'base', internalType: 'address', type: 'address' }],
|
|
3448
|
+
name: 'BaseNotListed',
|
|
3449
|
+
},
|
|
3450
|
+
{ type: 'error', inputs: [], name: 'CapTooClose' },
|
|
3451
|
+
{
|
|
3452
|
+
type: 'error',
|
|
3453
|
+
inputs: [{ name: 'idx', internalType: 'uint256', type: 'uint256' }],
|
|
3454
|
+
name: 'FeeNotListed',
|
|
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' },
|
|
3464
|
+
{
|
|
3465
|
+
type: 'error',
|
|
3466
|
+
inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
|
|
3467
|
+
name: 'QuoteNotListed',
|
|
3468
|
+
},
|
|
3469
|
+
{ type: 'error', inputs: [], name: 'QuoteTooThin' },
|
|
3470
|
+
{ type: 'error', inputs: [], name: 'Refused' },
|
|
3471
|
+
{ type: 'error', inputs: [], name: 'TooManyLegs' },
|
|
3472
|
+
];
|
|
3473
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3474
|
+
// PolicyRegistry
|
|
3475
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3476
|
+
export const policyRegistryAbi = [
|
|
3477
|
+
{
|
|
3478
|
+
type: 'constructor',
|
|
3479
|
+
inputs: [
|
|
3480
|
+
{ name: '_logAuthority', internalType: 'address', type: 'address' },
|
|
3481
|
+
],
|
|
3482
|
+
stateMutability: 'nonpayable',
|
|
3483
|
+
},
|
|
3484
|
+
{
|
|
3485
|
+
type: 'function',
|
|
3486
|
+
inputs: [],
|
|
3487
|
+
name: 'acceptLogAuthority',
|
|
3488
|
+
outputs: [],
|
|
3489
|
+
stateMutability: 'nonpayable',
|
|
3490
|
+
},
|
|
3491
|
+
{
|
|
3492
|
+
type: 'function',
|
|
3493
|
+
inputs: [
|
|
3494
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3495
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
3496
|
+
],
|
|
3497
|
+
name: 'approve',
|
|
3498
|
+
outputs: [],
|
|
3499
|
+
stateMutability: 'nonpayable',
|
|
3500
|
+
},
|
|
3501
|
+
{
|
|
3502
|
+
type: 'function',
|
|
3503
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3504
|
+
name: 'entries',
|
|
3505
|
+
outputs: [
|
|
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' },
|
|
3510
|
+
],
|
|
3511
|
+
stateMutability: 'view',
|
|
3512
|
+
},
|
|
3513
|
+
{
|
|
3514
|
+
type: 'function',
|
|
3515
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3516
|
+
name: 'forwarderTrusted',
|
|
3517
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3518
|
+
stateMutability: 'view',
|
|
3519
|
+
},
|
|
3520
|
+
{
|
|
3521
|
+
type: 'function',
|
|
3522
|
+
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
3523
|
+
name: 'isApproved',
|
|
3524
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3525
|
+
stateMutability: 'view',
|
|
3526
|
+
},
|
|
3527
|
+
{
|
|
3528
|
+
type: 'function',
|
|
3529
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3530
|
+
name: 'kindOf',
|
|
3531
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3532
|
+
stateMutability: 'view',
|
|
3533
|
+
},
|
|
3534
|
+
{
|
|
3535
|
+
type: 'function',
|
|
3536
|
+
inputs: [],
|
|
3537
|
+
name: 'logAuthority',
|
|
3538
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3539
|
+
stateMutability: 'view',
|
|
3540
|
+
},
|
|
3541
|
+
{
|
|
3542
|
+
type: 'function',
|
|
3543
|
+
inputs: [],
|
|
3544
|
+
name: 'pendingLogAuthority',
|
|
3545
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3546
|
+
stateMutability: 'view',
|
|
3547
|
+
},
|
|
3548
|
+
{
|
|
3549
|
+
type: 'function',
|
|
3550
|
+
inputs: [],
|
|
3551
|
+
name: 'policies',
|
|
3552
|
+
outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }],
|
|
3553
|
+
stateMutability: 'view',
|
|
3554
|
+
},
|
|
3555
|
+
{
|
|
3556
|
+
type: 'function',
|
|
3557
|
+
inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
|
|
3558
|
+
name: 'proposeLogAuthority',
|
|
3559
|
+
outputs: [],
|
|
3560
|
+
stateMutability: 'nonpayable',
|
|
3561
|
+
},
|
|
3562
|
+
{
|
|
3563
|
+
type: 'function',
|
|
3564
|
+
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
3565
|
+
name: 'revoke',
|
|
3566
|
+
outputs: [],
|
|
3567
|
+
stateMutability: 'nonpayable',
|
|
3568
|
+
},
|
|
3569
|
+
{
|
|
3570
|
+
type: 'function',
|
|
3571
|
+
inputs: [
|
|
3572
|
+
{ name: 'forwarder', internalType: 'address', type: 'address' },
|
|
3573
|
+
{ name: 'trusted', internalType: 'bool', type: 'bool' },
|
|
3574
|
+
],
|
|
3575
|
+
name: 'setForwarderTrusted',
|
|
3576
|
+
outputs: [],
|
|
3577
|
+
stateMutability: 'nonpayable',
|
|
3578
|
+
},
|
|
3579
|
+
{
|
|
3580
|
+
type: 'function',
|
|
3581
|
+
inputs: [
|
|
3582
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3583
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
3584
|
+
],
|
|
3585
|
+
name: 'setSponsorName',
|
|
3586
|
+
outputs: [],
|
|
3587
|
+
stateMutability: 'nonpayable',
|
|
3588
|
+
},
|
|
3589
|
+
{
|
|
3590
|
+
type: 'function',
|
|
3591
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3592
|
+
name: 'sponsorName',
|
|
3593
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3594
|
+
stateMutability: 'view',
|
|
3595
|
+
},
|
|
3596
|
+
{
|
|
3597
|
+
type: 'function',
|
|
3598
|
+
inputs: [
|
|
3599
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3600
|
+
{ name: 'untilTime', internalType: 'uint64', type: 'uint64' },
|
|
3601
|
+
],
|
|
3602
|
+
name: 'sunset',
|
|
3603
|
+
outputs: [],
|
|
3604
|
+
stateMutability: 'nonpayable',
|
|
3605
|
+
},
|
|
3606
|
+
{
|
|
3607
|
+
type: 'function',
|
|
3608
|
+
inputs: [{ name: 'caller', internalType: 'address', type: 'address' }],
|
|
3609
|
+
name: 'userOf',
|
|
3610
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3611
|
+
stateMutability: 'view',
|
|
3612
|
+
},
|
|
3613
|
+
{
|
|
3614
|
+
type: 'event',
|
|
3615
|
+
anonymous: false,
|
|
3616
|
+
inputs: [
|
|
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
|
+
},
|
|
3629
|
+
],
|
|
3630
|
+
name: 'Approved',
|
|
3631
|
+
},
|
|
3632
|
+
{
|
|
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',
|
|
3645
|
+
},
|
|
3646
|
+
{
|
|
3647
|
+
type: 'event',
|
|
3648
|
+
anonymous: false,
|
|
3649
|
+
inputs: [
|
|
3650
|
+
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
3651
|
+
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
3652
|
+
],
|
|
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
|
+
},
|
|
3671
|
+
],
|
|
3672
|
+
name: 'LogAuthorityProposed',
|
|
3673
|
+
},
|
|
3674
|
+
{
|
|
3675
|
+
type: 'event',
|
|
3676
|
+
anonymous: false,
|
|
3677
|
+
inputs: [
|
|
3678
|
+
{
|
|
3679
|
+
name: 'policy',
|
|
3680
|
+
internalType: 'address',
|
|
3681
|
+
type: 'address',
|
|
3682
|
+
indexed: true,
|
|
3683
|
+
},
|
|
3684
|
+
],
|
|
3685
|
+
name: 'Revoked',
|
|
3421
3686
|
},
|
|
3422
3687
|
{
|
|
3423
3688
|
type: 'event',
|
|
@@ -3453,11 +3718,9 @@ export const policyRegistryAbi = [
|
|
|
3453
3718
|
name: 'SunsetSet',
|
|
3454
3719
|
},
|
|
3455
3720
|
{ type: 'error', inputs: [], name: 'BadSunset' },
|
|
3456
|
-
{ type: 'error', inputs: [], name: 'InvalidForwardedUser' },
|
|
3457
3721
|
{ type: 'error', inputs: [], name: 'NotAPolicy' },
|
|
3458
3722
|
{ type: 'error', inputs: [], name: 'NotListed' },
|
|
3459
3723
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
3460
|
-
{ type: 'error', inputs: [], name: 'SponsorOnly' },
|
|
3461
3724
|
];
|
|
3462
3725
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3463
3726
|
// RouterActions
|
|
@@ -3670,46 +3933,12 @@ export const routerCAbi = [
|
|
|
3670
3933
|
type: 'function',
|
|
3671
3934
|
inputs: [
|
|
3672
3935
|
{
|
|
3673
|
-
name: '
|
|
3674
|
-
internalType: 'struct
|
|
3675
|
-
type: 'tuple',
|
|
3936
|
+
name: 'actions',
|
|
3937
|
+
internalType: 'struct Action[]',
|
|
3938
|
+
type: 'tuple[]',
|
|
3676
3939
|
components: [
|
|
3677
|
-
{ name: '
|
|
3678
|
-
{ name: '
|
|
3679
|
-
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3680
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3681
|
-
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3682
|
-
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
3683
|
-
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3684
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3685
|
-
],
|
|
3686
|
-
},
|
|
3687
|
-
{ name: 'initialLogPrice', internalType: 'int256', type: 'int256' },
|
|
3688
|
-
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
3689
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3690
|
-
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
3691
|
-
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
3692
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
3693
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3694
|
-
],
|
|
3695
|
-
name: 'createMarket',
|
|
3696
|
-
outputs: [
|
|
3697
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3698
|
-
{ name: 'baseIn', internalType: 'uint256', type: 'uint256' },
|
|
3699
|
-
{ name: 'quoteIn', internalType: 'uint256', type: 'uint256' },
|
|
3700
|
-
],
|
|
3701
|
-
stateMutability: 'nonpayable',
|
|
3702
|
-
},
|
|
3703
|
-
{
|
|
3704
|
-
type: 'function',
|
|
3705
|
-
inputs: [
|
|
3706
|
-
{
|
|
3707
|
-
name: 'actions',
|
|
3708
|
-
internalType: 'struct Action[]',
|
|
3709
|
-
type: 'tuple[]',
|
|
3710
|
-
components: [
|
|
3711
|
-
{ name: 'op', internalType: 'enum OpType', type: 'uint8' },
|
|
3712
|
-
{ name: 'data', internalType: 'bytes', type: 'bytes' },
|
|
3940
|
+
{ name: 'op', internalType: 'enum OpType', type: 'uint8' },
|
|
3941
|
+
{ name: 'data', internalType: 'bytes', type: 'bytes' },
|
|
3713
3942
|
],
|
|
3714
3943
|
},
|
|
3715
3944
|
{
|
|
@@ -3896,13 +4125,6 @@ export const routerCAbi = [
|
|
|
3896
4125
|
],
|
|
3897
4126
|
stateMutability: 'nonpayable',
|
|
3898
4127
|
},
|
|
3899
|
-
{
|
|
3900
|
-
type: 'function',
|
|
3901
|
-
inputs: [],
|
|
3902
|
-
name: 'user',
|
|
3903
|
-
outputs: [{ name: 'u', internalType: 'address', type: 'address' }],
|
|
3904
|
-
stateMutability: 'view',
|
|
3905
|
-
},
|
|
3906
4128
|
{
|
|
3907
4129
|
type: 'function',
|
|
3908
4130
|
inputs: [
|
|
@@ -4102,553 +4324,3 @@ export const routerFAbi = [
|
|
|
4102
4324
|
{ type: 'error', inputs: [], name: 'WrongToken' },
|
|
4103
4325
|
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
4104
4326
|
];
|
|
4105
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4106
|
-
// SponsorPolicyC
|
|
4107
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4108
|
-
export const sponsorPolicyCAbi = [
|
|
4109
|
-
{
|
|
4110
|
-
type: 'constructor',
|
|
4111
|
-
inputs: [
|
|
4112
|
-
{ name: 'manager_', internalType: 'contract ManagerC', type: 'address' },
|
|
4113
|
-
{
|
|
4114
|
-
name: 'p',
|
|
4115
|
-
internalType: 'struct SponsorParams',
|
|
4116
|
-
type: 'tuple',
|
|
4117
|
-
components: [
|
|
4118
|
-
{ name: 'sponsor', internalType: 'address', type: 'address' },
|
|
4119
|
-
{ name: 'swapTiers', internalType: 'uint256', type: 'uint256' },
|
|
4120
|
-
{ name: 'mintTiers', internalType: 'uint256', type: 'uint256' },
|
|
4121
|
-
{ name: 'canonical', internalType: 'bool', type: 'bool' },
|
|
4122
|
-
{ name: 'gatesAvailable', internalType: 'bool', type: 'bool' },
|
|
4123
|
-
{ name: 'bornGated', internalType: 'bool', type: 'bool' },
|
|
4124
|
-
{ name: 'quotes', internalType: 'address[]', type: 'address[]' },
|
|
4125
|
-
],
|
|
4126
|
-
},
|
|
4127
|
-
{ name: 'swapFeeTax_', internalType: 'uint256', type: 'uint256' },
|
|
4128
|
-
{ name: 'spacings', internalType: 'int256[]', type: 'int256[]' },
|
|
4129
|
-
],
|
|
4130
|
-
stateMutability: 'nonpayable',
|
|
4131
|
-
},
|
|
4132
|
-
{
|
|
4133
|
-
type: 'function',
|
|
4134
|
-
inputs: [],
|
|
4135
|
-
name: 'SWAP_FEE_TAX_MAX',
|
|
4136
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4137
|
-
stateMutability: 'view',
|
|
4138
|
-
},
|
|
4139
|
-
{
|
|
4140
|
-
type: 'function',
|
|
4141
|
-
inputs: [
|
|
4142
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4143
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4144
|
-
],
|
|
4145
|
-
name: 'appointOperator',
|
|
4146
|
-
outputs: [],
|
|
4147
|
-
stateMutability: 'nonpayable',
|
|
4148
|
-
},
|
|
4149
|
-
{
|
|
4150
|
-
type: 'function',
|
|
4151
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4152
|
-
name: 'authority',
|
|
4153
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4154
|
-
stateMutability: 'view',
|
|
4155
|
-
},
|
|
4156
|
-
{
|
|
4157
|
-
type: 'function',
|
|
4158
|
-
inputs: [],
|
|
4159
|
-
name: 'bornGated',
|
|
4160
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4161
|
-
stateMutability: 'view',
|
|
4162
|
-
},
|
|
4163
|
-
{
|
|
4164
|
-
type: 'function',
|
|
4165
|
-
inputs: [],
|
|
4166
|
-
name: 'canonical',
|
|
4167
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4168
|
-
stateMutability: 'view',
|
|
4169
|
-
},
|
|
4170
|
-
{
|
|
4171
|
-
type: 'function',
|
|
4172
|
-
inputs: [
|
|
4173
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4174
|
-
{
|
|
4175
|
-
name: 'permissions',
|
|
4176
|
-
internalType: 'struct ISponsorMigration.Permissions',
|
|
4177
|
-
type: 'tuple',
|
|
4178
|
-
components: [
|
|
4179
|
-
{ name: 'swapMode', internalType: 'uint8', type: 'uint8' },
|
|
4180
|
-
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
4181
|
-
{ name: 'mintGated', internalType: 'bool', type: 'bool' },
|
|
4182
|
-
{ name: 'listed', internalType: 'address[]', type: 'address[]' },
|
|
4183
|
-
],
|
|
4184
|
-
},
|
|
4185
|
-
],
|
|
4186
|
-
name: 'configureMigration',
|
|
4187
|
-
outputs: [],
|
|
4188
|
-
stateMutability: 'nonpayable',
|
|
4189
|
-
},
|
|
4190
|
-
{
|
|
4191
|
-
type: 'function',
|
|
4192
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4193
|
-
name: 'gateMint',
|
|
4194
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4195
|
-
stateMutability: 'view',
|
|
4196
|
-
},
|
|
4197
|
-
{
|
|
4198
|
-
type: 'function',
|
|
4199
|
-
inputs: [],
|
|
4200
|
-
name: 'gatesAvailable',
|
|
4201
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4202
|
-
stateMutability: 'view',
|
|
4203
|
-
},
|
|
4204
|
-
{
|
|
4205
|
-
type: 'function',
|
|
4206
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4207
|
-
name: 'incomeTax',
|
|
4208
|
-
outputs: [
|
|
4209
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
4210
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4211
|
-
],
|
|
4212
|
-
stateMutability: 'view',
|
|
4213
|
-
},
|
|
4214
|
-
{
|
|
4215
|
-
type: 'function',
|
|
4216
|
-
inputs: [],
|
|
4217
|
-
name: 'kind',
|
|
4218
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4219
|
-
stateMutability: 'pure',
|
|
4220
|
-
},
|
|
4221
|
-
{
|
|
4222
|
-
type: 'function',
|
|
4223
|
-
inputs: [
|
|
4224
|
-
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
4225
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
4226
|
-
],
|
|
4227
|
-
name: 'listed',
|
|
4228
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4229
|
-
stateMutability: 'view',
|
|
4230
|
-
},
|
|
4231
|
-
{
|
|
4232
|
-
type: 'function',
|
|
4233
|
-
inputs: [],
|
|
4234
|
-
name: 'manager',
|
|
4235
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4236
|
-
stateMutability: 'view',
|
|
4237
|
-
},
|
|
4238
|
-
{
|
|
4239
|
-
type: 'function',
|
|
4240
|
-
inputs: [
|
|
4241
|
-
{
|
|
4242
|
-
name: 'a',
|
|
4243
|
-
internalType: 'struct IPolicy.Ask',
|
|
4244
|
-
type: 'tuple',
|
|
4245
|
-
components: [
|
|
4246
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4247
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4248
|
-
{
|
|
4249
|
-
name: 'action',
|
|
4250
|
-
internalType: 'enum IPolicy.Action',
|
|
4251
|
-
type: 'uint8',
|
|
4252
|
-
},
|
|
4253
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4254
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4255
|
-
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
4256
|
-
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
4257
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4258
|
-
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
4259
|
-
],
|
|
4260
|
-
},
|
|
4261
|
-
],
|
|
4262
|
-
name: 'may',
|
|
4263
|
-
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
4264
|
-
stateMutability: 'view',
|
|
4265
|
-
},
|
|
4266
|
-
{
|
|
4267
|
-
type: 'function',
|
|
4268
|
-
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
4269
|
-
name: 'mintFeeListed',
|
|
4270
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4271
|
-
stateMutability: 'view',
|
|
4272
|
-
},
|
|
4273
|
-
{
|
|
4274
|
-
type: 'function',
|
|
4275
|
-
inputs: [],
|
|
4276
|
-
name: 'mintTiers',
|
|
4277
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4278
|
-
stateMutability: 'view',
|
|
4279
|
-
},
|
|
4280
|
-
{
|
|
4281
|
-
type: 'function',
|
|
4282
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4283
|
-
name: 'nameOf',
|
|
4284
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4285
|
-
stateMutability: 'view',
|
|
4286
|
-
},
|
|
4287
|
-
{
|
|
4288
|
-
type: 'function',
|
|
4289
|
-
inputs: [
|
|
4290
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4291
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
4292
|
-
{
|
|
4293
|
-
name: 'key',
|
|
4294
|
-
internalType: 'struct PoolKeyC',
|
|
4295
|
-
type: 'tuple',
|
|
4296
|
-
components: [
|
|
4297
|
-
{ name: 'base', internalType: 'address', type: 'address' },
|
|
4298
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4299
|
-
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
4300
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4301
|
-
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4302
|
-
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4303
|
-
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4304
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
4305
|
-
],
|
|
4306
|
-
},
|
|
4307
|
-
],
|
|
4308
|
-
name: 'onInitialize',
|
|
4309
|
-
outputs: [
|
|
4310
|
-
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
4311
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4312
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
4313
|
-
],
|
|
4314
|
-
stateMutability: 'nonpayable',
|
|
4315
|
-
},
|
|
4316
|
-
{
|
|
4317
|
-
type: 'function',
|
|
4318
|
-
inputs: [
|
|
4319
|
-
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
4320
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
4321
|
-
{
|
|
4322
|
-
name: '',
|
|
4323
|
-
internalType: 'struct PoolKeyF',
|
|
4324
|
-
type: 'tuple',
|
|
4325
|
-
components: [
|
|
4326
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4327
|
-
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
4328
|
-
{ name: 'swapFeeIdx', internalType: 'uint8', type: 'uint8' },
|
|
4329
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4330
|
-
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4331
|
-
],
|
|
4332
|
-
},
|
|
4333
|
-
],
|
|
4334
|
-
name: 'onInitialize',
|
|
4335
|
-
outputs: [
|
|
4336
|
-
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
4337
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4338
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
4339
|
-
],
|
|
4340
|
-
stateMutability: 'pure',
|
|
4341
|
-
},
|
|
4342
|
-
{
|
|
4343
|
-
type: 'function',
|
|
4344
|
-
inputs: [
|
|
4345
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4346
|
-
{ name: 'from', internalType: 'address', type: 'address' },
|
|
4347
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
4348
|
-
{ name: 'authority_', internalType: 'address', type: 'address' },
|
|
4349
|
-
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
4350
|
-
],
|
|
4351
|
-
name: 'onMigrate',
|
|
4352
|
-
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4353
|
-
stateMutability: 'nonpayable',
|
|
4354
|
-
},
|
|
4355
|
-
{
|
|
4356
|
-
type: 'function',
|
|
4357
|
-
inputs: [
|
|
4358
|
-
{
|
|
4359
|
-
name: 'a',
|
|
4360
|
-
internalType: 'struct IPolicy.Ask',
|
|
4361
|
-
type: 'tuple',
|
|
4362
|
-
components: [
|
|
4363
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4364
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4365
|
-
{
|
|
4366
|
-
name: 'action',
|
|
4367
|
-
internalType: 'enum IPolicy.Action',
|
|
4368
|
-
type: 'uint8',
|
|
4369
|
-
},
|
|
4370
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4371
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4372
|
-
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
4373
|
-
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
4374
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4375
|
-
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
4376
|
-
],
|
|
4377
|
-
},
|
|
4378
|
-
],
|
|
4379
|
-
name: 'onRegenerate',
|
|
4380
|
-
outputs: [
|
|
4381
|
-
{
|
|
4382
|
-
name: 't',
|
|
4383
|
-
internalType: 'struct IPolicy.Terms',
|
|
4384
|
-
type: 'tuple',
|
|
4385
|
-
components: [
|
|
4386
|
-
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
4387
|
-
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
4388
|
-
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
4389
|
-
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
4390
|
-
],
|
|
4391
|
-
},
|
|
4392
|
-
],
|
|
4393
|
-
stateMutability: 'nonpayable',
|
|
4394
|
-
},
|
|
4395
|
-
{
|
|
4396
|
-
type: 'function',
|
|
4397
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4398
|
-
name: 'operator',
|
|
4399
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4400
|
-
stateMutability: 'view',
|
|
4401
|
-
},
|
|
4402
|
-
{
|
|
4403
|
-
type: 'function',
|
|
4404
|
-
inputs: [],
|
|
4405
|
-
name: 'quoteCurated',
|
|
4406
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4407
|
-
stateMutability: 'view',
|
|
4408
|
-
},
|
|
4409
|
-
{
|
|
4410
|
-
type: 'function',
|
|
4411
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4412
|
-
name: 'quoteListed',
|
|
4413
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4414
|
-
stateMutability: 'view',
|
|
4415
|
-
},
|
|
4416
|
-
{
|
|
4417
|
-
type: 'function',
|
|
4418
|
-
inputs: [],
|
|
4419
|
-
name: 'registry',
|
|
4420
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4421
|
-
stateMutability: 'view',
|
|
4422
|
-
},
|
|
4423
|
-
{
|
|
4424
|
-
type: 'function',
|
|
4425
|
-
inputs: [
|
|
4426
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4427
|
-
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
4428
|
-
{ name: 'yes', internalType: 'bool', type: 'bool' },
|
|
4429
|
-
],
|
|
4430
|
-
name: 'setListed',
|
|
4431
|
-
outputs: [],
|
|
4432
|
-
stateMutability: 'nonpayable',
|
|
4433
|
-
},
|
|
4434
|
-
{
|
|
4435
|
-
type: 'function',
|
|
4436
|
-
inputs: [
|
|
4437
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4438
|
-
{ name: 'gated', internalType: 'bool', type: 'bool' },
|
|
4439
|
-
],
|
|
4440
|
-
name: 'setMintGate',
|
|
4441
|
-
outputs: [],
|
|
4442
|
-
stateMutability: 'nonpayable',
|
|
4443
|
-
},
|
|
4444
|
-
{
|
|
4445
|
-
type: 'function',
|
|
4446
|
-
inputs: [
|
|
4447
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4448
|
-
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
4449
|
-
],
|
|
4450
|
-
name: 'setName',
|
|
4451
|
-
outputs: [],
|
|
4452
|
-
stateMutability: 'nonpayable',
|
|
4453
|
-
},
|
|
4454
|
-
{
|
|
4455
|
-
type: 'function',
|
|
4456
|
-
inputs: [
|
|
4457
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4458
|
-
{
|
|
4459
|
-
name: 'mode',
|
|
4460
|
-
internalType: 'enum SponsorPolicyBase.SwapMode',
|
|
4461
|
-
type: 'uint8',
|
|
4462
|
-
},
|
|
4463
|
-
],
|
|
4464
|
-
name: 'setSwapMode',
|
|
4465
|
-
outputs: [],
|
|
4466
|
-
stateMutability: 'nonpayable',
|
|
4467
|
-
},
|
|
4468
|
-
{
|
|
4469
|
-
type: 'function',
|
|
4470
|
-
inputs: [],
|
|
4471
|
-
name: 'spacingCurated',
|
|
4472
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4473
|
-
stateMutability: 'view',
|
|
4474
|
-
},
|
|
4475
|
-
{
|
|
4476
|
-
type: 'function',
|
|
4477
|
-
inputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
4478
|
-
name: 'spacingListed',
|
|
4479
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4480
|
-
stateMutability: 'view',
|
|
4481
|
-
},
|
|
4482
|
-
{
|
|
4483
|
-
type: 'function',
|
|
4484
|
-
inputs: [],
|
|
4485
|
-
name: 'sponsor',
|
|
4486
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4487
|
-
stateMutability: 'view',
|
|
4488
|
-
},
|
|
4489
|
-
{
|
|
4490
|
-
type: 'function',
|
|
4491
|
-
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
4492
|
-
name: 'swapFeeListed',
|
|
4493
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4494
|
-
stateMutability: 'view',
|
|
4495
|
-
},
|
|
4496
|
-
{
|
|
4497
|
-
type: 'function',
|
|
4498
|
-
inputs: [],
|
|
4499
|
-
name: 'swapFeeTax',
|
|
4500
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4501
|
-
stateMutability: 'view',
|
|
4502
|
-
},
|
|
4503
|
-
{
|
|
4504
|
-
type: 'function',
|
|
4505
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4506
|
-
name: 'swapMode',
|
|
4507
|
-
outputs: [
|
|
4508
|
-
{
|
|
4509
|
-
name: '',
|
|
4510
|
-
internalType: 'enum SponsorPolicyBase.SwapMode',
|
|
4511
|
-
type: 'uint8',
|
|
4512
|
-
},
|
|
4513
|
-
],
|
|
4514
|
-
stateMutability: 'view',
|
|
4515
|
-
},
|
|
4516
|
-
{
|
|
4517
|
-
type: 'function',
|
|
4518
|
-
inputs: [],
|
|
4519
|
-
name: 'swapTiers',
|
|
4520
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4521
|
-
stateMutability: 'view',
|
|
4522
|
-
},
|
|
4523
|
-
{
|
|
4524
|
-
type: 'event',
|
|
4525
|
-
anonymous: false,
|
|
4526
|
-
inputs: [
|
|
4527
|
-
{
|
|
4528
|
-
name: 'poolId',
|
|
4529
|
-
internalType: 'bytes32',
|
|
4530
|
-
type: 'bytes32',
|
|
4531
|
-
indexed: true,
|
|
4532
|
-
},
|
|
4533
|
-
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
4534
|
-
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
4535
|
-
],
|
|
4536
|
-
name: 'AuthoritySet',
|
|
4537
|
-
},
|
|
4538
|
-
{
|
|
4539
|
-
type: 'event',
|
|
4540
|
-
anonymous: false,
|
|
4541
|
-
inputs: [
|
|
4542
|
-
{
|
|
4543
|
-
name: 'poolId',
|
|
4544
|
-
internalType: 'bytes32',
|
|
4545
|
-
type: 'bytes32',
|
|
4546
|
-
indexed: true,
|
|
4547
|
-
},
|
|
4548
|
-
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
4549
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4550
|
-
],
|
|
4551
|
-
name: 'Listed',
|
|
4552
|
-
},
|
|
4553
|
-
{
|
|
4554
|
-
type: 'event',
|
|
4555
|
-
anonymous: false,
|
|
4556
|
-
inputs: [
|
|
4557
|
-
{
|
|
4558
|
-
name: 'poolId',
|
|
4559
|
-
internalType: 'bytes32',
|
|
4560
|
-
type: 'bytes32',
|
|
4561
|
-
indexed: true,
|
|
4562
|
-
},
|
|
4563
|
-
{ name: 'gated', internalType: 'bool', type: 'bool', indexed: false },
|
|
4564
|
-
],
|
|
4565
|
-
name: 'MintGateSet',
|
|
4566
|
-
},
|
|
4567
|
-
{
|
|
4568
|
-
type: 'event',
|
|
4569
|
-
anonymous: false,
|
|
4570
|
-
inputs: [
|
|
4571
|
-
{
|
|
4572
|
-
name: 'poolId',
|
|
4573
|
-
internalType: 'bytes32',
|
|
4574
|
-
type: 'bytes32',
|
|
4575
|
-
indexed: true,
|
|
4576
|
-
},
|
|
4577
|
-
{
|
|
4578
|
-
name: 'name',
|
|
4579
|
-
internalType: 'bytes32',
|
|
4580
|
-
type: 'bytes32',
|
|
4581
|
-
indexed: false,
|
|
4582
|
-
},
|
|
4583
|
-
],
|
|
4584
|
-
name: 'NameSet',
|
|
4585
|
-
},
|
|
4586
|
-
{
|
|
4587
|
-
type: 'event',
|
|
4588
|
-
anonymous: false,
|
|
4589
|
-
inputs: [
|
|
4590
|
-
{
|
|
4591
|
-
name: 'poolId',
|
|
4592
|
-
internalType: 'bytes32',
|
|
4593
|
-
type: 'bytes32',
|
|
4594
|
-
indexed: true,
|
|
4595
|
-
},
|
|
4596
|
-
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
4597
|
-
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
4598
|
-
],
|
|
4599
|
-
name: 'OperatorAppointed',
|
|
4600
|
-
},
|
|
4601
|
-
{
|
|
4602
|
-
type: 'event',
|
|
4603
|
-
anonymous: false,
|
|
4604
|
-
inputs: [
|
|
4605
|
-
{
|
|
4606
|
-
name: 'poolId',
|
|
4607
|
-
internalType: 'bytes32',
|
|
4608
|
-
type: 'bytes32',
|
|
4609
|
-
indexed: true,
|
|
4610
|
-
},
|
|
4611
|
-
{
|
|
4612
|
-
name: 'mode',
|
|
4613
|
-
internalType: 'enum SponsorPolicyBase.SwapMode',
|
|
4614
|
-
type: 'uint8',
|
|
4615
|
-
indexed: false,
|
|
4616
|
-
},
|
|
4617
|
-
],
|
|
4618
|
-
name: 'SwapModeSet',
|
|
4619
|
-
},
|
|
4620
|
-
{ type: 'error', inputs: [], name: 'AlreadyHeld' },
|
|
4621
|
-
{ type: 'error', inputs: [], name: 'BadParams' },
|
|
4622
|
-
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4623
|
-
{ type: 'error', inputs: [], name: 'BadSwapMode' },
|
|
4624
|
-
{ type: 'error', inputs: [], name: 'BadTax' },
|
|
4625
|
-
{
|
|
4626
|
-
type: 'error',
|
|
4627
|
-
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
4628
|
-
name: 'FeeNotListed',
|
|
4629
|
-
},
|
|
4630
|
-
{ type: 'error', inputs: [], name: 'GatesUnavailable' },
|
|
4631
|
-
{ type: 'error', inputs: [], name: 'InactivePool' },
|
|
4632
|
-
{
|
|
4633
|
-
type: 'error',
|
|
4634
|
-
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
4635
|
-
name: 'MintFeeNotListed',
|
|
4636
|
-
},
|
|
4637
|
-
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
4638
|
-
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
4639
|
-
{ type: 'error', inputs: [], name: 'NotCanonical' },
|
|
4640
|
-
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
4641
|
-
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
4642
|
-
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
4643
|
-
{
|
|
4644
|
-
type: 'error',
|
|
4645
|
-
inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
|
|
4646
|
-
name: 'QuoteNotListed',
|
|
4647
|
-
},
|
|
4648
|
-
{ type: 'error', inputs: [], name: 'Refused' },
|
|
4649
|
-
{
|
|
4650
|
-
type: 'error',
|
|
4651
|
-
inputs: [{ name: 'tickSpacing', internalType: 'int256', type: 'int256' }],
|
|
4652
|
-
name: 'SpacingNotListed',
|
|
4653
|
-
},
|
|
4654
|
-
];
|