@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/src/generated.ts CHANGED
@@ -56,7 +56,6 @@ export const lensCAbi = [
56
56
  type: 'tuple[]',
57
57
  components: [
58
58
  { name: 'initialized', internalType: 'bool', type: 'bool' },
59
- { name: 'backstopSeeded', internalType: 'bool', type: 'bool' },
60
59
  { name: 'logPrice', internalType: 'int256', type: 'int256' },
61
60
  { name: 'lActive', internalType: 'uint256', type: 'uint256' },
62
61
  { name: 'reserveBase', internalType: 'uint256', type: 'uint256' },
@@ -194,9 +193,8 @@ export const lensCAbi = [
194
193
  inputs: [],
195
194
  name: 'params',
196
195
  outputs: [
197
- { name: 'feeMax', internalType: 'uint256', type: 'uint256' },
198
- { name: 'feeMin', internalType: 'uint256', type: 'uint256' },
199
- { name: 'minTickSpacing', internalType: 'int256', type: 'int256' },
196
+ { name: 'feeList', internalType: 'uint256[]', type: 'uint256[]' },
197
+ { name: 'spacingList', internalType: 'int256[]', type: 'int256[]' },
200
198
  { name: 'noCap', internalType: 'int256', type: 'int256' },
201
199
  { name: 'cVersion', internalType: 'uint256', type: 'uint256' },
202
200
  ],
@@ -431,6 +429,16 @@ export const lensFAbi = [
431
429
  ],
432
430
  stateMutability: 'view',
433
431
  },
432
+ {
433
+ type: 'function',
434
+ inputs: [],
435
+ name: 'params',
436
+ outputs: [
437
+ { name: 'feeList', internalType: 'uint256[]', type: 'uint256[]' },
438
+ { name: 'fVersion', internalType: 'uint256', type: 'uint256' },
439
+ ],
440
+ stateMutability: 'view',
441
+ },
434
442
  {
435
443
  type: 'function',
436
444
  inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
@@ -639,6 +647,7 @@ export const managerCAbi = [
639
647
  inputs: [
640
648
  { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
641
649
  { name: 'id', internalType: 'uint256', type: 'uint256' },
650
+ { name: 'owner', internalType: 'address', type: 'address' },
642
651
  { name: 'to', internalType: 'address', type: 'address' },
643
652
  ],
644
653
  name: 'claim',
@@ -748,14 +757,12 @@ export const managerCAbi = [
748
757
  internalType: 'struct PoolKeyC',
749
758
  type: 'tuple',
750
759
  components: [
751
- { name: 'base', internalType: 'address', type: 'address' },
752
760
  { name: 'quote', internalType: 'address', type: 'address' },
753
- { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
761
+ { name: 'base', internalType: 'address', type: 'address' },
762
+ { name: 'swapFeeIdx', internalType: 'uint8', type: 'uint8' },
763
+ { name: 'spacingIdx', internalType: 'uint8', type: 'uint8' },
754
764
  { name: 'policy', internalType: 'address', type: 'address' },
755
- { name: 'creator', internalType: 'address', type: 'address' },
756
765
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
757
- { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
758
- { name: 'mintFee', internalType: 'uint256', type: 'uint256' },
759
766
  ],
760
767
  },
761
768
  { name: 'initialLogPrice', internalType: 'int256', type: 'int256' },
@@ -1062,6 +1069,7 @@ export const managerCAbi = [
1062
1069
  indexed: true,
1063
1070
  },
1064
1071
  { name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
1072
+ { name: 'to', internalType: 'address', type: 'address', indexed: false },
1065
1073
  {
1066
1074
  name: 'fees',
1067
1075
  internalType: 'uint256',
@@ -1131,36 +1139,36 @@ export const managerCAbi = [
1131
1139
  name: 'creator',
1132
1140
  internalType: 'address',
1133
1141
  type: 'address',
1134
- indexed: true,
1142
+ indexed: false,
1135
1143
  },
1136
1144
  {
1137
- name: 'base',
1145
+ name: 'policy',
1138
1146
  internalType: 'address',
1139
1147
  type: 'address',
1140
- indexed: false,
1148
+ indexed: true,
1141
1149
  },
1142
1150
  {
1143
- name: 'swapFee',
1144
- internalType: 'uint256',
1145
- type: 'uint256',
1151
+ name: 'base',
1152
+ internalType: 'address',
1153
+ type: 'address',
1146
1154
  indexed: false,
1147
1155
  },
1148
1156
  {
1149
- name: 'policy',
1150
- internalType: 'address',
1151
- type: 'address',
1157
+ name: 'swapFeeIdx',
1158
+ internalType: 'uint8',
1159
+ type: 'uint8',
1152
1160
  indexed: false,
1153
1161
  },
1154
1162
  {
1155
- name: 'mintFee',
1156
- internalType: 'uint256',
1157
- type: 'uint256',
1163
+ name: 'spacingIdx',
1164
+ internalType: 'uint8',
1165
+ type: 'uint8',
1158
1166
  indexed: false,
1159
1167
  },
1160
1168
  {
1161
- name: 'tickSpacing',
1162
- internalType: 'int256',
1163
- type: 'int256',
1169
+ name: 'salt',
1170
+ internalType: 'bytes32',
1171
+ type: 'bytes32',
1164
1172
  indexed: false,
1165
1173
  },
1166
1174
  {
@@ -1175,12 +1183,6 @@ export const managerCAbi = [
1175
1183
  type: 'uint256',
1176
1184
  indexed: false,
1177
1185
  },
1178
- {
1179
- name: 'salt',
1180
- internalType: 'bytes32',
1181
- type: 'bytes32',
1182
- indexed: false,
1183
- },
1184
1186
  ],
1185
1187
  name: 'PoolCreated',
1186
1188
  },
@@ -1504,8 +1506,6 @@ export const managerCAbi = [
1504
1506
  name: 'TreasuryProposed',
1505
1507
  },
1506
1508
  { type: 'error', inputs: [], name: 'AlreadyUnlocked' },
1507
- { type: 'error', inputs: [], name: 'BackstopMustBeUncapped' },
1508
- { type: 'error', inputs: [], name: 'BackstopTooSmall' },
1509
1509
  { type: 'error', inputs: [], name: 'BadCap' },
1510
1510
  { type: 'error', inputs: [], name: 'BadParam' },
1511
1511
  { type: 'error', inputs: [], name: 'BadTerms' },
@@ -1514,7 +1514,6 @@ export const managerCAbi = [
1514
1514
  { type: 'error', inputs: [], name: 'CappedOut' },
1515
1515
  { type: 'error', inputs: [], name: 'DrainedToFloor' },
1516
1516
  { type: 'error', inputs: [], name: 'DrainsBase' },
1517
- { type: 'error', inputs: [], name: 'IdenticalTokens' },
1518
1517
  { type: 'error', inputs: [], name: 'InsufficientBalance' },
1519
1518
  { type: 'error', inputs: [], name: 'InsufficientPermission' },
1520
1519
  { type: 'error', inputs: [], name: 'InsufficientQuote' },
@@ -1522,11 +1521,11 @@ export const managerCAbi = [
1522
1521
  { type: 'error', inputs: [], name: 'InvalidToken' },
1523
1522
  { type: 'error', inputs: [], name: 'NoLiquidity' },
1524
1523
  { type: 'error', inputs: [], name: 'NotAuthorized' },
1525
- { type: 'error', inputs: [], name: 'NotCreator' },
1526
1524
  { type: 'error', inputs: [], name: 'NotLogAuthority' },
1527
1525
  { type: 'error', inputs: [], name: 'NotPolicy' },
1528
1526
  { type: 'error', inputs: [], name: 'NotTreasury' },
1529
1527
  { type: 'error', inputs: [], name: 'OffGrid' },
1528
+ { type: 'error', inputs: [], name: 'PolicyNotApproved' },
1530
1529
  { type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
1531
1530
  { type: 'error', inputs: [], name: 'PoolLocked' },
1532
1531
  { type: 'error', inputs: [], name: 'PoolNotInitialized' },
@@ -1538,15 +1537,14 @@ export const managerCAbi = [
1538
1537
  },
1539
1538
  { type: 'error', inputs: [], name: 'ReserveNotRepresentable' },
1540
1539
  { type: 'error', inputs: [], name: 'Restructured' },
1540
+ { type: 'error', inputs: [], name: 'SameAsset' },
1541
1541
  { type: 'error', inputs: [], name: 'Slippage' },
1542
- { type: 'error', inputs: [], name: 'SpacingZero' },
1543
1542
  { type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
1544
1543
  { type: 'error', inputs: [], name: 'TokensNotSettled' },
1545
1544
  { type: 'error', inputs: [], name: 'TransferShortfall' },
1546
1545
  { type: 'error', inputs: [], name: 'WrongPool' },
1547
1546
  { type: 'error', inputs: [], name: 'ZeroAmount' },
1548
1547
  { type: 'error', inputs: [], name: 'ZeroExposure' },
1549
- { type: 'error', inputs: [], name: 'ZeroShares' },
1550
1548
  ] as const
1551
1549
 
1552
1550
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -1704,13 +1702,6 @@ export const managerFAbi = [
1704
1702
  outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
1705
1703
  stateMutability: 'nonpayable',
1706
1704
  },
1707
- {
1708
- type: 'function',
1709
- inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1710
- name: 'dps',
1711
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1712
- stateMutability: 'view',
1713
- },
1714
1705
  {
1715
1706
  type: 'function',
1716
1707
  inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }],
@@ -1746,13 +1737,6 @@ export const managerFAbi = [
1746
1737
  outputs: [],
1747
1738
  stateMutability: 'nonpayable',
1748
1739
  },
1749
- {
1750
- type: 'function',
1751
- inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1752
- name: 'incomeHeld',
1753
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1754
- stateMutability: 'view',
1755
- },
1756
1740
  {
1757
1741
  type: 'function',
1758
1742
  inputs: [
@@ -1839,7 +1823,7 @@ export const managerFAbi = [
1839
1823
  },
1840
1824
  {
1841
1825
  type: 'function',
1842
- inputs: [{ name: 'calls', internalType: 'bytes[]', type: 'bytes[]' }],
1826
+ inputs: [{ name: 'data', internalType: 'bytes[]', type: 'bytes[]' }],
1843
1827
  name: 'multicall',
1844
1828
  outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }],
1845
1829
  stateMutability: 'nonpayable',
@@ -2095,13 +2079,13 @@ export const managerFAbi = [
2095
2079
  type: 'bytes32',
2096
2080
  indexed: true,
2097
2081
  },
2098
- { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
2099
2082
  {
2100
2083
  name: 'owner',
2101
2084
  internalType: 'address',
2102
2085
  type: 'address',
2103
2086
  indexed: true,
2104
2087
  },
2088
+ { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
2105
2089
  { name: 'to', internalType: 'address', type: 'address', indexed: false },
2106
2090
  {
2107
2091
  name: 'amount',
@@ -2353,13 +2337,13 @@ export const managerFAbi = [
2353
2337
  name: 'creator',
2354
2338
  internalType: 'address',
2355
2339
  type: 'address',
2356
- indexed: true,
2340
+ indexed: false,
2357
2341
  },
2358
2342
  {
2359
2343
  name: 'policy',
2360
2344
  internalType: 'address',
2361
2345
  type: 'address',
2362
- indexed: false,
2346
+ indexed: true,
2363
2347
  },
2364
2348
  {
2365
2349
  name: 'bases',
@@ -2509,13 +2493,13 @@ export const managerFAbi = [
2509
2493
  type: 'bytes32',
2510
2494
  indexed: true,
2511
2495
  },
2512
- { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
2513
2496
  {
2514
2497
  name: 'owner',
2515
2498
  internalType: 'address',
2516
2499
  type: 'address',
2517
2500
  indexed: true,
2518
2501
  },
2502
+ { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
2519
2503
  {
2520
2504
  name: 'shares',
2521
2505
  internalType: 'uint256',
@@ -2710,7 +2694,6 @@ export const managerFAbi = [
2710
2694
  name: 'MulticallFailed',
2711
2695
  },
2712
2696
  { type: 'error', inputs: [], name: 'NotAuthorized' },
2713
- { type: 'error', inputs: [], name: 'NotCreator' },
2714
2697
  { type: 'error', inputs: [], name: 'NotFrozen' },
2715
2698
  { type: 'error', inputs: [], name: 'NotLogAuthority' },
2716
2699
  { type: 'error', inputs: [], name: 'NotOperator' },
@@ -2741,28 +2724,23 @@ export const managerFAbi = [
2741
2724
  ] as const
2742
2725
 
2743
2726
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2744
- // PolicyF
2727
+ // PolicyC
2745
2728
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2746
2729
 
2747
- export const policyFAbi = [
2730
+ export const policyCAbi = [
2748
2731
  {
2749
2732
  type: 'constructor',
2750
2733
  inputs: [
2751
2734
  { name: 'manager_', internalType: 'address', type: 'address' },
2752
2735
  {
2753
2736
  name: 'p',
2754
- internalType: 'struct PolicyParams',
2737
+ internalType: 'struct PolicyCParams',
2755
2738
  type: 'tuple',
2756
2739
  components: [
2757
2740
  { name: 'authority', internalType: 'address', type: 'address' },
2758
2741
  { name: 'open', internalType: 'bool', type: 'bool' },
2759
- { name: 'seedToDead', internalType: 'bool', type: 'bool' },
2760
- { name: 'incomeHarvestOnly', internalType: 'bool', type: 'bool' },
2761
- { name: 'incomeTaxRate', internalType: 'uint256', type: 'uint256' },
2762
2742
  { name: 'feeMask', internalType: 'uint8', type: 'uint8' },
2763
- { name: 'lenMax', internalType: 'uint8', type: 'uint8' },
2764
- { name: 'lnCapMin', internalType: 'uint24', type: 'uint24' },
2765
- { name: 'quoteBuffer', internalType: 'uint256', type: 'uint256' },
2743
+ { name: 'swapFeeTax', internalType: 'uint256', type: 'uint256' },
2766
2744
  { name: 'quotes', internalType: 'address[]', type: 'address[]' },
2767
2745
  { name: 'bases', internalType: 'address[]', type: 'address[]' },
2768
2746
  ],
@@ -2829,20 +2807,6 @@ export const policyFAbi = [
2829
2807
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
2830
2808
  stateMutability: 'view',
2831
2809
  },
2832
- {
2833
- type: 'function',
2834
- inputs: [],
2835
- name: 'incomeHarvestOnly',
2836
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
2837
- stateMutability: 'view',
2838
- },
2839
- {
2840
- type: 'function',
2841
- inputs: [],
2842
- name: 'incomeTaxRate',
2843
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2844
- stateMutability: 'view',
2845
- },
2846
2810
  {
2847
2811
  type: 'function',
2848
2812
  inputs: [],
@@ -2850,20 +2814,6 @@ export const policyFAbi = [
2850
2814
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
2851
2815
  stateMutability: 'pure',
2852
2816
  },
2853
- {
2854
- type: 'function',
2855
- inputs: [],
2856
- name: 'lenMax',
2857
- outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
2858
- stateMutability: 'view',
2859
- },
2860
- {
2861
- type: 'function',
2862
- inputs: [],
2863
- name: 'lnCapMin',
2864
- outputs: [{ name: '', internalType: 'uint24', type: 'uint24' }],
2865
- stateMutability: 'view',
2866
- },
2867
2817
  {
2868
2818
  type: 'function',
2869
2819
  inputs: [],
@@ -2875,46 +2825,24 @@ export const policyFAbi = [
2875
2825
  type: 'function',
2876
2826
  inputs: [
2877
2827
  { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
2878
- { name: 'action', internalType: 'enum IPolicyF.Action', type: 'uint8' },
2828
+ {
2829
+ name: 'action',
2830
+ internalType: 'enum IPolicyBase.Action',
2831
+ type: 'uint8',
2832
+ },
2879
2833
  { name: 'who', internalType: 'address', type: 'address' },
2880
2834
  ],
2881
2835
  name: 'may',
2882
2836
  outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
2883
2837
  stateMutability: 'view',
2884
2838
  },
2885
- {
2886
- type: 'function',
2887
- inputs: [
2888
- { name: '', internalType: 'bytes32', type: 'bytes32' },
2889
- { name: 'n', internalType: 'uint256', type: 'uint256' },
2890
- { name: 'quoteAmount', internalType: 'uint256', type: 'uint256' },
2891
- { name: 'lnCapOverSeed', internalType: 'uint24', type: 'uint24' },
2892
- { name: 'L', internalType: 'uint256', type: 'uint256' },
2893
- ],
2894
- name: 'mayDeploy',
2895
- outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
2896
- stateMutability: 'view',
2897
- },
2898
- {
2899
- type: 'function',
2900
- inputs: [
2901
- { name: '', internalType: 'bytes32', type: 'bytes32' },
2902
- { name: 'income', internalType: 'uint256', type: 'uint256' },
2903
- { name: 'extra', internalType: 'uint256', type: 'uint256' },
2904
- { name: 'Q', internalType: 'uint256', type: 'uint256' },
2905
- { name: 'L', internalType: 'uint256', type: 'uint256' },
2906
- ],
2907
- name: 'mayHarvest',
2908
- outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
2909
- stateMutability: 'view',
2910
- },
2911
2839
  {
2912
2840
  type: 'function',
2913
2841
  inputs: [
2914
2842
  { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
2915
2843
  { name: 'caller', internalType: 'address', type: 'address' },
2916
2844
  { name: 'quote', internalType: 'address', type: 'address' },
2917
- { name: 'bases', internalType: 'address[]', type: 'address[]' },
2845
+ { name: 'base', internalType: 'address', type: 'address' },
2918
2846
  { name: 'swapFeeIdx', internalType: 'uint8', type: 'uint8' },
2919
2847
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
2920
2848
  ],
@@ -2922,6 +2850,7 @@ export const policyFAbi = [
2922
2850
  outputs: [
2923
2851
  { name: 'flags', internalType: 'uint8', type: 'uint8' },
2924
2852
  { name: 'op', internalType: 'address', type: 'address' },
2853
+ { name: 'tax', internalType: 'uint256', type: 'uint256' },
2925
2854
  ],
2926
2855
  stateMutability: 'nonpayable',
2927
2856
  },
@@ -2929,7 +2858,9 @@ export const policyFAbi = [
2929
2858
  type: 'function',
2930
2859
  inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
2931
2860
  name: 'mintMode',
2932
- outputs: [{ name: '', internalType: 'enum IPolicyF.Mode', type: 'uint8' }],
2861
+ outputs: [
2862
+ { name: '', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
2863
+ ],
2933
2864
  stateMutability: 'view',
2934
2865
  },
2935
2866
  {
@@ -2946,13 +2877,6 @@ export const policyFAbi = [
2946
2877
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
2947
2878
  stateMutability: 'view',
2948
2879
  },
2949
- {
2950
- type: 'function',
2951
- inputs: [],
2952
- name: 'quoteBuffer',
2953
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2954
- stateMutability: 'view',
2955
- },
2956
2880
  {
2957
2881
  type: 'function',
2958
2882
  inputs: [],
@@ -2974,18 +2898,11 @@ export const policyFAbi = [
2974
2898
  outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
2975
2899
  stateMutability: 'view',
2976
2900
  },
2977
- {
2978
- type: 'function',
2979
- inputs: [],
2980
- name: 'seedToDead',
2981
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
2982
- stateMutability: 'view',
2983
- },
2984
2901
  {
2985
2902
  type: 'function',
2986
2903
  inputs: [
2987
2904
  { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
2988
- { name: 'mode', internalType: 'enum IPolicyF.Mode', type: 'uint8' },
2905
+ { name: 'mode', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
2989
2906
  ],
2990
2907
  name: 'setMintMode',
2991
2908
  outputs: [],
@@ -3015,7 +2932,7 @@ export const policyFAbi = [
3015
2932
  type: 'function',
3016
2933
  inputs: [
3017
2934
  { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3018
- { name: 'mode', internalType: 'enum IPolicyF.Mode', type: 'uint8' },
2935
+ { name: 'mode', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
3019
2936
  ],
3020
2937
  name: 'setSwapMode',
3021
2938
  outputs: [],
@@ -3023,18 +2940,17 @@ export const policyFAbi = [
3023
2940
  },
3024
2941
  {
3025
2942
  type: 'function',
3026
- inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3027
- name: 'swapMode',
3028
- outputs: [{ name: '', internalType: 'enum IPolicyF.Mode', type: 'uint8' }],
2943
+ inputs: [],
2944
+ name: 'swapFeeTax',
2945
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3029
2946
  stateMutability: 'view',
3030
2947
  },
3031
2948
  {
3032
2949
  type: 'function',
3033
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
3034
- name: 'taxOf',
2950
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
2951
+ name: 'swapMode',
3035
2952
  outputs: [
3036
- { name: 'payer', internalType: 'address', type: 'address' },
3037
- { name: 'rate', internalType: 'uint256', type: 'uint256' },
2953
+ { name: '', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
3038
2954
  ],
3039
2955
  stateMutability: 'view',
3040
2956
  },
@@ -3050,7 +2966,7 @@ export const policyFAbi = [
3050
2966
  },
3051
2967
  {
3052
2968
  name: 'mode',
3053
- internalType: 'enum IPolicyF.Mode',
2969
+ internalType: 'enum IPolicyBase.Mode',
3054
2970
  type: 'uint8',
3055
2971
  indexed: false,
3056
2972
  },
@@ -3112,7 +3028,7 @@ export const policyFAbi = [
3112
3028
  },
3113
3029
  {
3114
3030
  name: 'mode',
3115
- internalType: 'enum IPolicyF.Mode',
3031
+ internalType: 'enum IPolicyBase.Mode',
3116
3032
  type: 'uint8',
3117
3033
  indexed: false,
3118
3034
  },
@@ -3127,7 +3043,6 @@ export const policyFAbi = [
3127
3043
  inputs: [{ name: 'base', internalType: 'address', type: 'address' }],
3128
3044
  name: 'BaseNotListed',
3129
3045
  },
3130
- { type: 'error', inputs: [], name: 'CapTooClose' },
3131
3046
  {
3132
3047
  type: 'error',
3133
3048
  inputs: [{ name: 'idx', internalType: 'uint256', type: 'uint256' }],
@@ -3135,7 +3050,6 @@ export const policyFAbi = [
3135
3050
  },
3136
3051
  { type: 'error', inputs: [], name: 'GatesUnavailable' },
3137
3052
  { type: 'error', inputs: [], name: 'InactivePool' },
3138
- { type: 'error', inputs: [], name: 'IncomeOnly' },
3139
3053
  { type: 'error', inputs: [], name: 'ModeOrder' },
3140
3054
  { type: 'error', inputs: [], name: 'NotAuthority' },
3141
3055
  { type: 'error', inputs: [], name: 'NotCanonical' },
@@ -3146,195 +3060,313 @@ export const policyFAbi = [
3146
3060
  inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
3147
3061
  name: 'QuoteNotListed',
3148
3062
  },
3149
- { type: 'error', inputs: [], name: 'QuoteTooThin' },
3150
3063
  { type: 'error', inputs: [], name: 'Refused' },
3151
- { type: 'error', inputs: [], name: 'TooManyLegs' },
3152
3064
  ] as const
3153
3065
 
3154
3066
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3155
- // PolicyRegistry
3067
+ // PolicyF
3156
3068
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3157
3069
 
3158
- export const policyRegistryAbi = [
3070
+ export const policyFAbi = [
3159
3071
  {
3160
3072
  type: 'constructor',
3161
3073
  inputs: [
3162
- { name: '_logAuthority', internalType: 'address', type: 'address' },
3074
+ { name: 'manager_', internalType: 'address', type: 'address' },
3075
+ {
3076
+ name: 'p',
3077
+ internalType: 'struct PolicyParams',
3078
+ type: 'tuple',
3079
+ components: [
3080
+ { name: 'authority', internalType: 'address', type: 'address' },
3081
+ { name: 'open', internalType: 'bool', type: 'bool' },
3082
+ { name: 'seedToDead', internalType: 'bool', type: 'bool' },
3083
+ { name: 'incomeHarvestOnly', internalType: 'bool', type: 'bool' },
3084
+ { name: 'incomeTaxRate', internalType: 'uint256', type: 'uint256' },
3085
+ { name: 'feeMask', internalType: 'uint8', type: 'uint8' },
3086
+ { name: 'lenMax', internalType: 'uint8', type: 'uint8' },
3087
+ { name: 'lnCapMin', internalType: 'uint24', type: 'uint24' },
3088
+ { name: 'quoteBuffer', internalType: 'uint256', type: 'uint256' },
3089
+ { name: 'quotes', internalType: 'address[]', type: 'address[]' },
3090
+ { name: 'bases', internalType: 'address[]', type: 'address[]' },
3091
+ ],
3092
+ },
3163
3093
  ],
3164
3094
  stateMutability: 'nonpayable',
3165
3095
  },
3166
3096
  {
3167
3097
  type: 'function',
3168
3098
  inputs: [],
3169
- name: 'acceptLogAuthority',
3170
- outputs: [],
3171
- stateMutability: 'nonpayable',
3099
+ name: 'MINT',
3100
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
3101
+ stateMutability: 'view',
3172
3102
  },
3173
3103
  {
3174
3104
  type: 'function',
3175
- inputs: [
3176
- { name: 'policy', internalType: 'address', type: 'address' },
3177
- { name: 'caller', internalType: 'address', type: 'address' },
3178
- { name: 'creator', internalType: 'address', type: 'address' },
3179
- ],
3180
- name: 'admit',
3181
- outputs: [{ name: 'who', internalType: 'address', type: 'address' }],
3105
+ inputs: [],
3106
+ name: 'SWAP',
3107
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
3182
3108
  stateMutability: 'view',
3183
3109
  },
3184
3110
  {
3185
3111
  type: 'function',
3186
3112
  inputs: [
3187
- { name: 'policy', internalType: 'address', type: 'address' },
3188
- { name: 'name', internalType: 'bytes32', type: 'bytes32' },
3113
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3114
+ { name: 'who', internalType: 'address', type: 'address' },
3189
3115
  ],
3190
- name: 'approve',
3116
+ name: 'appointOperator',
3191
3117
  outputs: [],
3192
3118
  stateMutability: 'nonpayable',
3193
3119
  },
3194
3120
  {
3195
3121
  type: 'function',
3196
- inputs: [{ name: '', internalType: 'address', type: 'address' }],
3197
- name: 'creationMode',
3198
- outputs: [
3199
- {
3200
- name: '',
3201
- internalType: 'enum PolicyRegistry.CreationMode',
3202
- type: 'uint8',
3203
- },
3204
- ],
3205
- stateMutability: 'view',
3206
- },
3207
- {
3208
- type: 'function',
3209
- inputs: [{ name: '', internalType: 'address', type: 'address' }],
3210
- name: 'entries',
3211
- outputs: [
3212
- { name: 'listed', internalType: 'bool', type: 'bool' },
3213
- { name: 'until', internalType: 'uint64', type: 'uint64' },
3214
- { name: 'index', internalType: 'uint32', type: 'uint32' },
3215
- { name: 'name', internalType: 'bytes32', type: 'bytes32' },
3216
- ],
3122
+ inputs: [],
3123
+ name: 'authority',
3124
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3217
3125
  stateMutability: 'view',
3218
3126
  },
3219
3127
  {
3220
3128
  type: 'function',
3221
- inputs: [{ name: '', internalType: 'address', type: 'address' }],
3222
- name: 'forwarderTrusted',
3129
+ inputs: [],
3130
+ name: 'baseCurated',
3223
3131
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3224
3132
  stateMutability: 'view',
3225
3133
  },
3226
3134
  {
3227
3135
  type: 'function',
3228
- inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
3229
- name: 'isApproved',
3136
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
3137
+ name: 'baseListed',
3230
3138
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3231
3139
  stateMutability: 'view',
3232
3140
  },
3233
3141
  {
3234
3142
  type: 'function',
3235
- inputs: [{ name: '', internalType: 'address', type: 'address' }],
3236
- name: 'kindOf',
3237
- outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3143
+ inputs: [],
3144
+ name: 'feeMask',
3145
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
3238
3146
  stateMutability: 'view',
3239
3147
  },
3240
3148
  {
3241
3149
  type: 'function',
3242
3150
  inputs: [],
3243
- name: 'logAuthority',
3151
+ name: 'fixedAuthority',
3244
3152
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
3245
3153
  stateMutability: 'view',
3246
3154
  },
3247
3155
  {
3248
3156
  type: 'function',
3249
3157
  inputs: [],
3250
- name: 'pendingLogAuthority',
3251
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
3158
+ name: 'incomeHarvestOnly',
3159
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3252
3160
  stateMutability: 'view',
3253
3161
  },
3254
3162
  {
3255
3163
  type: 'function',
3256
3164
  inputs: [],
3257
- name: 'policies',
3258
- outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }],
3165
+ name: 'incomeTaxRate',
3166
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3259
3167
  stateMutability: 'view',
3260
3168
  },
3261
3169
  {
3262
3170
  type: 'function',
3263
- inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
3264
- name: 'proposeLogAuthority',
3265
- outputs: [],
3266
- stateMutability: 'nonpayable',
3171
+ inputs: [],
3172
+ name: 'kind',
3173
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3174
+ stateMutability: 'pure',
3267
3175
  },
3268
3176
  {
3269
3177
  type: 'function',
3270
- inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
3271
- name: 'revoke',
3272
- outputs: [],
3273
- stateMutability: 'nonpayable',
3178
+ inputs: [],
3179
+ name: 'lenMax',
3180
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
3181
+ stateMutability: 'view',
3182
+ },
3183
+ {
3184
+ type: 'function',
3185
+ inputs: [],
3186
+ name: 'lnCapMin',
3187
+ outputs: [{ name: '', internalType: 'uint24', type: 'uint24' }],
3188
+ stateMutability: 'view',
3189
+ },
3190
+ {
3191
+ type: 'function',
3192
+ inputs: [],
3193
+ name: 'manager',
3194
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3195
+ stateMutability: 'view',
3274
3196
  },
3275
3197
  {
3276
3198
  type: 'function',
3277
3199
  inputs: [
3278
- { name: 'policy', internalType: 'address', type: 'address' },
3200
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3279
3201
  {
3280
- name: 'mode',
3281
- internalType: 'enum PolicyRegistry.CreationMode',
3202
+ name: 'action',
3203
+ internalType: 'enum IPolicyBase.Action',
3282
3204
  type: 'uint8',
3283
3205
  },
3206
+ { name: 'who', internalType: 'address', type: 'address' },
3284
3207
  ],
3285
- name: 'setCreationMode',
3286
- outputs: [],
3287
- stateMutability: 'nonpayable',
3208
+ name: 'may',
3209
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
3210
+ stateMutability: 'view',
3288
3211
  },
3289
3212
  {
3290
3213
  type: 'function',
3291
3214
  inputs: [
3292
- { name: 'forwarder', internalType: 'address', type: 'address' },
3293
- { name: 'trusted', internalType: 'bool', type: 'bool' },
3215
+ { name: '', internalType: 'bytes32', type: 'bytes32' },
3216
+ { name: 'n', internalType: 'uint256', type: 'uint256' },
3217
+ { name: 'quoteAmount', internalType: 'uint256', type: 'uint256' },
3218
+ { name: 'lnCapOverSeed', internalType: 'uint24', type: 'uint24' },
3219
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
3294
3220
  ],
3295
- name: 'setForwarderTrusted',
3296
- outputs: [],
3297
- stateMutability: 'nonpayable',
3221
+ name: 'mayDeploy',
3222
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
3223
+ stateMutability: 'view',
3298
3224
  },
3299
3225
  {
3300
3226
  type: 'function',
3301
3227
  inputs: [
3302
- { name: 'who', internalType: 'address', type: 'address' },
3303
- { name: 'name', internalType: 'bytes32', type: 'bytes32' },
3228
+ { name: '', internalType: 'bytes32', type: 'bytes32' },
3229
+ { name: 'income', internalType: 'uint256', type: 'uint256' },
3230
+ { name: 'extra', internalType: 'uint256', type: 'uint256' },
3231
+ { name: 'Q', internalType: 'uint256', type: 'uint256' },
3232
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
3233
+ ],
3234
+ name: 'mayHarvest',
3235
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
3236
+ stateMutability: 'view',
3237
+ },
3238
+ {
3239
+ type: 'function',
3240
+ inputs: [
3241
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3242
+ { name: 'caller', internalType: 'address', type: 'address' },
3243
+ { name: 'quote', internalType: 'address', type: 'address' },
3244
+ { name: 'bases', internalType: 'address[]', type: 'address[]' },
3245
+ { name: 'swapFeeIdx', internalType: 'uint8', type: 'uint8' },
3246
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
3247
+ ],
3248
+ name: 'mayInit',
3249
+ outputs: [
3250
+ { name: 'flags', internalType: 'uint8', type: 'uint8' },
3251
+ { name: 'op', internalType: 'address', type: 'address' },
3304
3252
  ],
3305
- name: 'setSponsorName',
3306
- outputs: [],
3307
3253
  stateMutability: 'nonpayable',
3308
3254
  },
3309
3255
  {
3310
3256
  type: 'function',
3311
- inputs: [{ name: '', internalType: 'address', type: 'address' }],
3312
- name: 'sponsorName',
3313
- outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3257
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3258
+ name: 'mintMode',
3259
+ outputs: [
3260
+ { name: '', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
3261
+ ],
3314
3262
  stateMutability: 'view',
3315
3263
  },
3316
3264
  {
3317
3265
  type: 'function',
3318
- inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
3319
- name: 'sponsorOf',
3266
+ inputs: [],
3267
+ name: 'open',
3268
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3269
+ stateMutability: 'view',
3270
+ },
3271
+ {
3272
+ type: 'function',
3273
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3274
+ name: 'operator',
3320
3275
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
3321
3276
  stateMutability: 'view',
3322
3277
  },
3278
+ {
3279
+ type: 'function',
3280
+ inputs: [],
3281
+ name: 'quoteBuffer',
3282
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3283
+ stateMutability: 'view',
3284
+ },
3285
+ {
3286
+ type: 'function',
3287
+ inputs: [],
3288
+ name: 'quoteCurated',
3289
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3290
+ stateMutability: 'view',
3291
+ },
3292
+ {
3293
+ type: 'function',
3294
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
3295
+ name: 'quoteListed',
3296
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3297
+ stateMutability: 'view',
3298
+ },
3299
+ {
3300
+ type: 'function',
3301
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
3302
+ name: 'rights',
3303
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
3304
+ stateMutability: 'view',
3305
+ },
3306
+ {
3307
+ type: 'function',
3308
+ inputs: [],
3309
+ name: 'seedToDead',
3310
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3311
+ stateMutability: 'view',
3312
+ },
3323
3313
  {
3324
3314
  type: 'function',
3325
3315
  inputs: [
3326
- { name: 'policy', internalType: 'address', type: 'address' },
3327
- { name: 'untilTime', internalType: 'uint64', type: 'uint64' },
3316
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3317
+ { name: 'mode', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
3328
3318
  ],
3329
- name: 'sunset',
3319
+ name: 'setMintMode',
3330
3320
  outputs: [],
3331
3321
  stateMutability: 'nonpayable',
3332
3322
  },
3333
3323
  {
3334
3324
  type: 'function',
3335
- inputs: [{ name: 'caller', internalType: 'address', type: 'address' }],
3336
- name: 'userOf',
3337
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
3325
+ inputs: [
3326
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3327
+ { name: 'name', internalType: 'bytes32', type: 'bytes32' },
3328
+ ],
3329
+ name: 'setName',
3330
+ outputs: [],
3331
+ stateMutability: 'nonpayable',
3332
+ },
3333
+ {
3334
+ type: 'function',
3335
+ inputs: [
3336
+ { name: 'who', internalType: 'address[]', type: 'address[]' },
3337
+ { name: 'bits', internalType: 'uint8', type: 'uint8' },
3338
+ ],
3339
+ name: 'setRights',
3340
+ outputs: [],
3341
+ stateMutability: 'nonpayable',
3342
+ },
3343
+ {
3344
+ type: 'function',
3345
+ inputs: [
3346
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3347
+ { name: 'mode', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
3348
+ ],
3349
+ name: 'setSwapMode',
3350
+ outputs: [],
3351
+ stateMutability: 'nonpayable',
3352
+ },
3353
+ {
3354
+ type: 'function',
3355
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3356
+ name: 'swapMode',
3357
+ outputs: [
3358
+ { name: '', internalType: 'enum IPolicyBase.Mode', type: 'uint8' },
3359
+ ],
3360
+ stateMutability: 'view',
3361
+ },
3362
+ {
3363
+ type: 'function',
3364
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
3365
+ name: 'taxOf',
3366
+ outputs: [
3367
+ { name: 'payer', internalType: 'address', type: 'address' },
3368
+ { name: 'rate', internalType: 'uint256', type: 'uint256' },
3369
+ ],
3338
3370
  stateMutability: 'view',
3339
3371
  },
3340
3372
  {
@@ -3342,93 +3374,328 @@ export const policyRegistryAbi = [
3342
3374
  anonymous: false,
3343
3375
  inputs: [
3344
3376
  {
3345
- name: 'policy',
3346
- internalType: 'address',
3347
- type: 'address',
3377
+ name: 'poolId',
3378
+ internalType: 'bytes32',
3379
+ type: 'bytes32',
3348
3380
  indexed: true,
3349
3381
  },
3350
3382
  {
3351
- name: 'name',
3352
- internalType: 'bytes32',
3353
- type: 'bytes32',
3383
+ name: 'mode',
3384
+ internalType: 'enum IPolicyBase.Mode',
3385
+ type: 'uint8',
3354
3386
  indexed: false,
3355
3387
  },
3356
3388
  ],
3357
- name: 'Approved',
3389
+ name: 'MintModeSet',
3358
3390
  },
3359
3391
  {
3360
3392
  type: 'event',
3361
3393
  anonymous: false,
3362
3394
  inputs: [
3363
3395
  {
3364
- name: 'policy',
3365
- internalType: 'address',
3366
- type: 'address',
3396
+ name: 'poolId',
3397
+ internalType: 'bytes32',
3398
+ type: 'bytes32',
3367
3399
  indexed: true,
3368
3400
  },
3369
3401
  {
3370
- name: 'mode',
3371
- internalType: 'enum PolicyRegistry.CreationMode',
3372
- type: 'uint8',
3402
+ name: 'name',
3403
+ internalType: 'bytes32',
3404
+ type: 'bytes32',
3373
3405
  indexed: false,
3374
3406
  },
3375
3407
  ],
3376
- name: 'CreationModeSet',
3408
+ name: 'NameSet',
3377
3409
  },
3378
3410
  {
3379
3411
  type: 'event',
3380
3412
  anonymous: false,
3381
3413
  inputs: [
3382
3414
  {
3383
- name: 'forwarder',
3384
- internalType: 'address',
3385
- type: 'address',
3415
+ name: 'poolId',
3416
+ internalType: 'bytes32',
3417
+ type: 'bytes32',
3386
3418
  indexed: true,
3387
3419
  },
3388
- { name: 'trusted', internalType: 'bool', type: 'bool', indexed: false },
3389
- ],
3390
- name: 'ForwarderTrusted',
3391
- },
3392
- {
3393
- type: 'event',
3394
- anonymous: false,
3395
- inputs: [
3396
3420
  { name: 'prev', internalType: 'address', type: 'address', indexed: true },
3397
3421
  { name: 'next', internalType: 'address', type: 'address', indexed: true },
3398
3422
  ],
3399
- name: 'LogAuthorityAccepted',
3423
+ name: 'OperatorAppointed',
3400
3424
  },
3401
3425
  {
3402
3426
  type: 'event',
3403
3427
  anonymous: false,
3404
3428
  inputs: [
3405
- {
3406
- name: 'current',
3407
- internalType: 'address',
3408
- type: 'address',
3409
- indexed: true,
3410
- },
3411
- {
3412
- name: 'proposed',
3413
- internalType: 'address',
3414
- type: 'address',
3415
- indexed: true,
3416
- },
3429
+ { name: 'who', internalType: 'address', type: 'address', indexed: true },
3430
+ { name: 'bits', internalType: 'uint8', type: 'uint8', indexed: false },
3417
3431
  ],
3418
- name: 'LogAuthorityProposed',
3432
+ name: 'RightsSet',
3419
3433
  },
3420
3434
  {
3421
3435
  type: 'event',
3422
3436
  anonymous: false,
3423
3437
  inputs: [
3424
3438
  {
3425
- name: 'policy',
3426
- internalType: 'address',
3427
- type: 'address',
3439
+ name: 'poolId',
3440
+ internalType: 'bytes32',
3441
+ type: 'bytes32',
3428
3442
  indexed: true,
3429
3443
  },
3444
+ {
3445
+ name: 'mode',
3446
+ internalType: 'enum IPolicyBase.Mode',
3447
+ type: 'uint8',
3448
+ indexed: false,
3449
+ },
3430
3450
  ],
3431
- name: 'Revoked',
3451
+ name: 'SwapModeSet',
3452
+ },
3453
+ { type: 'error', inputs: [], name: 'AlreadyHeld' },
3454
+ { type: 'error', inputs: [], name: 'BadParams' },
3455
+ { type: 'error', inputs: [], name: 'BadRights' },
3456
+ {
3457
+ type: 'error',
3458
+ inputs: [{ name: 'base', internalType: 'address', type: 'address' }],
3459
+ name: 'BaseNotListed',
3460
+ },
3461
+ { type: 'error', inputs: [], name: 'CapTooClose' },
3462
+ {
3463
+ type: 'error',
3464
+ inputs: [{ name: 'idx', internalType: 'uint256', type: 'uint256' }],
3465
+ name: 'FeeNotListed',
3466
+ },
3467
+ { type: 'error', inputs: [], name: 'GatesUnavailable' },
3468
+ { type: 'error', inputs: [], name: 'InactivePool' },
3469
+ { type: 'error', inputs: [], name: 'IncomeOnly' },
3470
+ { type: 'error', inputs: [], name: 'ModeOrder' },
3471
+ { type: 'error', inputs: [], name: 'NotAuthority' },
3472
+ { type: 'error', inputs: [], name: 'NotCanonical' },
3473
+ { type: 'error', inputs: [], name: 'NotManager' },
3474
+ { type: 'error', inputs: [], name: 'NotOperator' },
3475
+ {
3476
+ type: 'error',
3477
+ inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
3478
+ name: 'QuoteNotListed',
3479
+ },
3480
+ { type: 'error', inputs: [], name: 'QuoteTooThin' },
3481
+ { type: 'error', inputs: [], name: 'Refused' },
3482
+ { type: 'error', inputs: [], name: 'TooManyLegs' },
3483
+ ] as const
3484
+
3485
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3486
+ // PolicyRegistry
3487
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3488
+
3489
+ export const policyRegistryAbi = [
3490
+ {
3491
+ type: 'constructor',
3492
+ inputs: [
3493
+ { name: '_logAuthority', internalType: 'address', type: 'address' },
3494
+ ],
3495
+ stateMutability: 'nonpayable',
3496
+ },
3497
+ {
3498
+ type: 'function',
3499
+ inputs: [],
3500
+ name: 'acceptLogAuthority',
3501
+ outputs: [],
3502
+ stateMutability: 'nonpayable',
3503
+ },
3504
+ {
3505
+ type: 'function',
3506
+ inputs: [
3507
+ { name: 'policy', internalType: 'address', type: 'address' },
3508
+ { name: 'name', internalType: 'bytes32', type: 'bytes32' },
3509
+ ],
3510
+ name: 'approve',
3511
+ outputs: [],
3512
+ stateMutability: 'nonpayable',
3513
+ },
3514
+ {
3515
+ type: 'function',
3516
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
3517
+ name: 'entries',
3518
+ outputs: [
3519
+ { name: 'listed', internalType: 'bool', type: 'bool' },
3520
+ { name: 'until', internalType: 'uint64', type: 'uint64' },
3521
+ { name: 'index', internalType: 'uint32', type: 'uint32' },
3522
+ { name: 'name', internalType: 'bytes32', type: 'bytes32' },
3523
+ ],
3524
+ stateMutability: 'view',
3525
+ },
3526
+ {
3527
+ type: 'function',
3528
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
3529
+ name: 'forwarderTrusted',
3530
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3531
+ stateMutability: 'view',
3532
+ },
3533
+ {
3534
+ type: 'function',
3535
+ inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
3536
+ name: 'isApproved',
3537
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3538
+ stateMutability: 'view',
3539
+ },
3540
+ {
3541
+ type: 'function',
3542
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
3543
+ name: 'kindOf',
3544
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3545
+ stateMutability: 'view',
3546
+ },
3547
+ {
3548
+ type: 'function',
3549
+ inputs: [],
3550
+ name: 'logAuthority',
3551
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3552
+ stateMutability: 'view',
3553
+ },
3554
+ {
3555
+ type: 'function',
3556
+ inputs: [],
3557
+ name: 'pendingLogAuthority',
3558
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3559
+ stateMutability: 'view',
3560
+ },
3561
+ {
3562
+ type: 'function',
3563
+ inputs: [],
3564
+ name: 'policies',
3565
+ outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }],
3566
+ stateMutability: 'view',
3567
+ },
3568
+ {
3569
+ type: 'function',
3570
+ inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
3571
+ name: 'proposeLogAuthority',
3572
+ outputs: [],
3573
+ stateMutability: 'nonpayable',
3574
+ },
3575
+ {
3576
+ type: 'function',
3577
+ inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
3578
+ name: 'revoke',
3579
+ outputs: [],
3580
+ stateMutability: 'nonpayable',
3581
+ },
3582
+ {
3583
+ type: 'function',
3584
+ inputs: [
3585
+ { name: 'forwarder', internalType: 'address', type: 'address' },
3586
+ { name: 'trusted', internalType: 'bool', type: 'bool' },
3587
+ ],
3588
+ name: 'setForwarderTrusted',
3589
+ outputs: [],
3590
+ stateMutability: 'nonpayable',
3591
+ },
3592
+ {
3593
+ type: 'function',
3594
+ inputs: [
3595
+ { name: 'who', internalType: 'address', type: 'address' },
3596
+ { name: 'name', internalType: 'bytes32', type: 'bytes32' },
3597
+ ],
3598
+ name: 'setSponsorName',
3599
+ outputs: [],
3600
+ stateMutability: 'nonpayable',
3601
+ },
3602
+ {
3603
+ type: 'function',
3604
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
3605
+ name: 'sponsorName',
3606
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3607
+ stateMutability: 'view',
3608
+ },
3609
+ {
3610
+ type: 'function',
3611
+ inputs: [
3612
+ { name: 'policy', internalType: 'address', type: 'address' },
3613
+ { name: 'untilTime', internalType: 'uint64', type: 'uint64' },
3614
+ ],
3615
+ name: 'sunset',
3616
+ outputs: [],
3617
+ stateMutability: 'nonpayable',
3618
+ },
3619
+ {
3620
+ type: 'function',
3621
+ inputs: [{ name: 'caller', internalType: 'address', type: 'address' }],
3622
+ name: 'userOf',
3623
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3624
+ stateMutability: 'view',
3625
+ },
3626
+ {
3627
+ type: 'event',
3628
+ anonymous: false,
3629
+ inputs: [
3630
+ {
3631
+ name: 'policy',
3632
+ internalType: 'address',
3633
+ type: 'address',
3634
+ indexed: true,
3635
+ },
3636
+ {
3637
+ name: 'name',
3638
+ internalType: 'bytes32',
3639
+ type: 'bytes32',
3640
+ indexed: false,
3641
+ },
3642
+ ],
3643
+ name: 'Approved',
3644
+ },
3645
+ {
3646
+ type: 'event',
3647
+ anonymous: false,
3648
+ inputs: [
3649
+ {
3650
+ name: 'forwarder',
3651
+ internalType: 'address',
3652
+ type: 'address',
3653
+ indexed: true,
3654
+ },
3655
+ { name: 'trusted', internalType: 'bool', type: 'bool', indexed: false },
3656
+ ],
3657
+ name: 'ForwarderTrusted',
3658
+ },
3659
+ {
3660
+ type: 'event',
3661
+ anonymous: false,
3662
+ inputs: [
3663
+ { name: 'prev', internalType: 'address', type: 'address', indexed: true },
3664
+ { name: 'next', internalType: 'address', type: 'address', indexed: true },
3665
+ ],
3666
+ name: 'LogAuthorityAccepted',
3667
+ },
3668
+ {
3669
+ type: 'event',
3670
+ anonymous: false,
3671
+ inputs: [
3672
+ {
3673
+ name: 'current',
3674
+ internalType: 'address',
3675
+ type: 'address',
3676
+ indexed: true,
3677
+ },
3678
+ {
3679
+ name: 'proposed',
3680
+ internalType: 'address',
3681
+ type: 'address',
3682
+ indexed: true,
3683
+ },
3684
+ ],
3685
+ name: 'LogAuthorityProposed',
3686
+ },
3687
+ {
3688
+ type: 'event',
3689
+ anonymous: false,
3690
+ inputs: [
3691
+ {
3692
+ name: 'policy',
3693
+ internalType: 'address',
3694
+ type: 'address',
3695
+ indexed: true,
3696
+ },
3697
+ ],
3698
+ name: 'Revoked',
3432
3699
  },
3433
3700
  {
3434
3701
  type: 'event',
@@ -3464,11 +3731,9 @@ export const policyRegistryAbi = [
3464
3731
  name: 'SunsetSet',
3465
3732
  },
3466
3733
  { type: 'error', inputs: [], name: 'BadSunset' },
3467
- { type: 'error', inputs: [], name: 'InvalidForwardedUser' },
3468
3734
  { type: 'error', inputs: [], name: 'NotAPolicy' },
3469
3735
  { type: 'error', inputs: [], name: 'NotListed' },
3470
3736
  { type: 'error', inputs: [], name: 'NotLogAuthority' },
3471
- { type: 'error', inputs: [], name: 'SponsorOnly' },
3472
3737
  ] as const
3473
3738
 
3474
3739
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -3685,46 +3950,12 @@ export const routerCAbi = [
3685
3950
  type: 'function',
3686
3951
  inputs: [
3687
3952
  {
3688
- name: 'key',
3689
- internalType: 'struct PoolKeyC',
3690
- type: 'tuple',
3953
+ name: 'actions',
3954
+ internalType: 'struct Action[]',
3955
+ type: 'tuple[]',
3691
3956
  components: [
3692
- { name: 'base', internalType: 'address', type: 'address' },
3693
- { name: 'quote', internalType: 'address', type: 'address' },
3694
- { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3695
- { name: 'policy', internalType: 'address', type: 'address' },
3696
- { name: 'creator', internalType: 'address', type: 'address' },
3697
- { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
3698
- { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
3699
- { name: 'mintFee', internalType: 'uint256', type: 'uint256' },
3700
- ],
3701
- },
3702
- { name: 'initialLogPrice', internalType: 'int256', type: 'int256' },
3703
- { name: 'targetFloor', internalType: 'int256', type: 'int256' },
3704
- { name: 'L', internalType: 'uint256', type: 'uint256' },
3705
- { name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
3706
- { name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
3707
- { name: 'to', internalType: 'address', type: 'address' },
3708
- { name: 'deadline', internalType: 'uint256', type: 'uint256' },
3709
- ],
3710
- name: 'createMarket',
3711
- outputs: [
3712
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3713
- { name: 'baseIn', internalType: 'uint256', type: 'uint256' },
3714
- { name: 'quoteIn', internalType: 'uint256', type: 'uint256' },
3715
- ],
3716
- stateMutability: 'nonpayable',
3717
- },
3718
- {
3719
- type: 'function',
3720
- inputs: [
3721
- {
3722
- name: 'actions',
3723
- internalType: 'struct Action[]',
3724
- type: 'tuple[]',
3725
- components: [
3726
- { name: 'op', internalType: 'enum OpType', type: 'uint8' },
3727
- { name: 'data', internalType: 'bytes', type: 'bytes' },
3957
+ { name: 'op', internalType: 'enum OpType', type: 'uint8' },
3958
+ { name: 'data', internalType: 'bytes', type: 'bytes' },
3728
3959
  ],
3729
3960
  },
3730
3961
  {
@@ -3911,13 +4142,6 @@ export const routerCAbi = [
3911
4142
  ],
3912
4143
  stateMutability: 'nonpayable',
3913
4144
  },
3914
- {
3915
- type: 'function',
3916
- inputs: [],
3917
- name: 'user',
3918
- outputs: [{ name: 'u', internalType: 'address', type: 'address' }],
3919
- stateMutability: 'view',
3920
- },
3921
4145
  {
3922
4146
  type: 'function',
3923
4147
  inputs: [
@@ -4119,555 +4343,3 @@ export const routerFAbi = [
4119
4343
  { type: 'error', inputs: [], name: 'WrongToken' },
4120
4344
  { type: 'error', inputs: [], name: 'ZeroAmount' },
4121
4345
  ] as const
4122
-
4123
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4124
- // SponsorPolicyC
4125
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4126
-
4127
- export const sponsorPolicyCAbi = [
4128
- {
4129
- type: 'constructor',
4130
- inputs: [
4131
- { name: 'manager_', internalType: 'contract ManagerC', type: 'address' },
4132
- {
4133
- name: 'p',
4134
- internalType: 'struct SponsorParams',
4135
- type: 'tuple',
4136
- components: [
4137
- { name: 'sponsor', internalType: 'address', type: 'address' },
4138
- { name: 'swapTiers', internalType: 'uint256', type: 'uint256' },
4139
- { name: 'mintTiers', internalType: 'uint256', type: 'uint256' },
4140
- { name: 'canonical', internalType: 'bool', type: 'bool' },
4141
- { name: 'gatesAvailable', internalType: 'bool', type: 'bool' },
4142
- { name: 'bornGated', internalType: 'bool', type: 'bool' },
4143
- { name: 'quotes', internalType: 'address[]', type: 'address[]' },
4144
- ],
4145
- },
4146
- { name: 'swapFeeTax_', internalType: 'uint256', type: 'uint256' },
4147
- { name: 'spacings', internalType: 'int256[]', type: 'int256[]' },
4148
- ],
4149
- stateMutability: 'nonpayable',
4150
- },
4151
- {
4152
- type: 'function',
4153
- inputs: [],
4154
- name: 'SWAP_FEE_TAX_MAX',
4155
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4156
- stateMutability: 'view',
4157
- },
4158
- {
4159
- type: 'function',
4160
- inputs: [
4161
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4162
- { name: 'who', internalType: 'address', type: 'address' },
4163
- ],
4164
- name: 'appointOperator',
4165
- outputs: [],
4166
- stateMutability: 'nonpayable',
4167
- },
4168
- {
4169
- type: 'function',
4170
- inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4171
- name: 'authority',
4172
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
4173
- stateMutability: 'view',
4174
- },
4175
- {
4176
- type: 'function',
4177
- inputs: [],
4178
- name: 'bornGated',
4179
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4180
- stateMutability: 'view',
4181
- },
4182
- {
4183
- type: 'function',
4184
- inputs: [],
4185
- name: 'canonical',
4186
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4187
- stateMutability: 'view',
4188
- },
4189
- {
4190
- type: 'function',
4191
- inputs: [
4192
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4193
- {
4194
- name: 'permissions',
4195
- internalType: 'struct ISponsorMigration.Permissions',
4196
- type: 'tuple',
4197
- components: [
4198
- { name: 'swapMode', internalType: 'uint8', type: 'uint8' },
4199
- { name: 'operator', internalType: 'address', type: 'address' },
4200
- { name: 'mintGated', internalType: 'bool', type: 'bool' },
4201
- { name: 'listed', internalType: 'address[]', type: 'address[]' },
4202
- ],
4203
- },
4204
- ],
4205
- name: 'configureMigration',
4206
- outputs: [],
4207
- stateMutability: 'nonpayable',
4208
- },
4209
- {
4210
- type: 'function',
4211
- inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4212
- name: 'gateMint',
4213
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4214
- stateMutability: 'view',
4215
- },
4216
- {
4217
- type: 'function',
4218
- inputs: [],
4219
- name: 'gatesAvailable',
4220
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4221
- stateMutability: 'view',
4222
- },
4223
- {
4224
- type: 'function',
4225
- inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4226
- name: 'incomeTax',
4227
- outputs: [
4228
- { name: '', internalType: 'address', type: 'address' },
4229
- { name: '', internalType: 'uint256', type: 'uint256' },
4230
- ],
4231
- stateMutability: 'view',
4232
- },
4233
- {
4234
- type: 'function',
4235
- inputs: [],
4236
- name: 'kind',
4237
- outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4238
- stateMutability: 'pure',
4239
- },
4240
- {
4241
- type: 'function',
4242
- inputs: [
4243
- { name: '', internalType: 'bytes32', type: 'bytes32' },
4244
- { name: '', internalType: 'address', type: 'address' },
4245
- ],
4246
- name: 'listed',
4247
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4248
- stateMutability: 'view',
4249
- },
4250
- {
4251
- type: 'function',
4252
- inputs: [],
4253
- name: 'manager',
4254
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
4255
- stateMutability: 'view',
4256
- },
4257
- {
4258
- type: 'function',
4259
- inputs: [
4260
- {
4261
- name: 'a',
4262
- internalType: 'struct IPolicy.Ask',
4263
- type: 'tuple',
4264
- components: [
4265
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4266
- { name: 'gen', internalType: 'uint256', type: 'uint256' },
4267
- {
4268
- name: 'action',
4269
- internalType: 'enum IPolicy.Action',
4270
- type: 'uint8',
4271
- },
4272
- { name: 'who', internalType: 'address', type: 'address' },
4273
- { name: 'amount', internalType: 'uint256', type: 'uint256' },
4274
- { name: 'income', internalType: 'uint256', type: 'uint256' },
4275
- { name: 'Q', internalType: 'uint256', type: 'uint256' },
4276
- { name: 'L', internalType: 'uint256', type: 'uint256' },
4277
- { name: 'n', internalType: 'uint256', type: 'uint256' },
4278
- ],
4279
- },
4280
- ],
4281
- name: 'may',
4282
- outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
4283
- stateMutability: 'view',
4284
- },
4285
- {
4286
- type: 'function',
4287
- inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
4288
- name: 'mintFeeListed',
4289
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4290
- stateMutability: 'view',
4291
- },
4292
- {
4293
- type: 'function',
4294
- inputs: [],
4295
- name: 'mintTiers',
4296
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4297
- stateMutability: 'view',
4298
- },
4299
- {
4300
- type: 'function',
4301
- inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4302
- name: 'nameOf',
4303
- outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4304
- stateMutability: 'view',
4305
- },
4306
- {
4307
- type: 'function',
4308
- inputs: [
4309
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4310
- { name: '', internalType: 'address', type: 'address' },
4311
- {
4312
- name: 'key',
4313
- internalType: 'struct PoolKeyC',
4314
- type: 'tuple',
4315
- components: [
4316
- { name: 'base', internalType: 'address', type: 'address' },
4317
- { name: 'quote', internalType: 'address', type: 'address' },
4318
- { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
4319
- { name: 'policy', internalType: 'address', type: 'address' },
4320
- { name: 'creator', internalType: 'address', type: 'address' },
4321
- { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
4322
- { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
4323
- { name: 'mintFee', internalType: 'uint256', type: 'uint256' },
4324
- ],
4325
- },
4326
- ],
4327
- name: 'onInitialize',
4328
- outputs: [
4329
- { name: '', internalType: 'uint8', type: 'uint8' },
4330
- { name: '', internalType: 'uint256', type: 'uint256' },
4331
- { name: '', internalType: 'address', type: 'address' },
4332
- ],
4333
- stateMutability: 'nonpayable',
4334
- },
4335
- {
4336
- type: 'function',
4337
- inputs: [
4338
- { name: '', internalType: 'bytes32', type: 'bytes32' },
4339
- { name: '', internalType: 'address', type: 'address' },
4340
- {
4341
- name: '',
4342
- internalType: 'struct PoolKeyF',
4343
- type: 'tuple',
4344
- components: [
4345
- { name: 'quote', internalType: 'address', type: 'address' },
4346
- { name: 'bases', internalType: 'address[]', type: 'address[]' },
4347
- { name: 'swapFeeIdx', internalType: 'uint8', type: 'uint8' },
4348
- { name: 'policy', internalType: 'address', type: 'address' },
4349
- { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
4350
- ],
4351
- },
4352
- ],
4353
- name: 'onInitialize',
4354
- outputs: [
4355
- { name: '', internalType: 'uint8', type: 'uint8' },
4356
- { name: '', internalType: 'uint256', type: 'uint256' },
4357
- { name: '', internalType: 'address', type: 'address' },
4358
- ],
4359
- stateMutability: 'pure',
4360
- },
4361
- {
4362
- type: 'function',
4363
- inputs: [
4364
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4365
- { name: 'from', internalType: 'address', type: 'address' },
4366
- { name: '', internalType: 'address', type: 'address' },
4367
- { name: 'authority_', internalType: 'address', type: 'address' },
4368
- { name: 'name_', internalType: 'bytes32', type: 'bytes32' },
4369
- ],
4370
- name: 'onMigrate',
4371
- outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4372
- stateMutability: 'nonpayable',
4373
- },
4374
- {
4375
- type: 'function',
4376
- inputs: [
4377
- {
4378
- name: 'a',
4379
- internalType: 'struct IPolicy.Ask',
4380
- type: 'tuple',
4381
- components: [
4382
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4383
- { name: 'gen', internalType: 'uint256', type: 'uint256' },
4384
- {
4385
- name: 'action',
4386
- internalType: 'enum IPolicy.Action',
4387
- type: 'uint8',
4388
- },
4389
- { name: 'who', internalType: 'address', type: 'address' },
4390
- { name: 'amount', internalType: 'uint256', type: 'uint256' },
4391
- { name: 'income', internalType: 'uint256', type: 'uint256' },
4392
- { name: 'Q', internalType: 'uint256', type: 'uint256' },
4393
- { name: 'L', internalType: 'uint256', type: 'uint256' },
4394
- { name: 'n', internalType: 'uint256', type: 'uint256' },
4395
- ],
4396
- },
4397
- ],
4398
- name: 'onRegenerate',
4399
- outputs: [
4400
- {
4401
- name: 't',
4402
- internalType: 'struct IPolicy.Terms',
4403
- type: 'tuple',
4404
- components: [
4405
- { name: 'payee', internalType: 'address', type: 'address' },
4406
- { name: 'toPayee', internalType: 'uint256', type: 'uint256' },
4407
- { name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
4408
- { name: 'carried', internalType: 'address', type: 'address' },
4409
- ],
4410
- },
4411
- ],
4412
- stateMutability: 'nonpayable',
4413
- },
4414
- {
4415
- type: 'function',
4416
- inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4417
- name: 'operator',
4418
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
4419
- stateMutability: 'view',
4420
- },
4421
- {
4422
- type: 'function',
4423
- inputs: [],
4424
- name: 'quoteCurated',
4425
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4426
- stateMutability: 'view',
4427
- },
4428
- {
4429
- type: 'function',
4430
- inputs: [{ name: '', internalType: 'address', type: 'address' }],
4431
- name: 'quoteListed',
4432
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4433
- stateMutability: 'view',
4434
- },
4435
- {
4436
- type: 'function',
4437
- inputs: [],
4438
- name: 'registry',
4439
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
4440
- stateMutability: 'view',
4441
- },
4442
- {
4443
- type: 'function',
4444
- inputs: [
4445
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4446
- { name: 'who', internalType: 'address[]', type: 'address[]' },
4447
- { name: 'yes', internalType: 'bool', type: 'bool' },
4448
- ],
4449
- name: 'setListed',
4450
- outputs: [],
4451
- stateMutability: 'nonpayable',
4452
- },
4453
- {
4454
- type: 'function',
4455
- inputs: [
4456
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4457
- { name: 'gated', internalType: 'bool', type: 'bool' },
4458
- ],
4459
- name: 'setMintGate',
4460
- outputs: [],
4461
- stateMutability: 'nonpayable',
4462
- },
4463
- {
4464
- type: 'function',
4465
- inputs: [
4466
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4467
- { name: 'name_', internalType: 'bytes32', type: 'bytes32' },
4468
- ],
4469
- name: 'setName',
4470
- outputs: [],
4471
- stateMutability: 'nonpayable',
4472
- },
4473
- {
4474
- type: 'function',
4475
- inputs: [
4476
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4477
- {
4478
- name: 'mode',
4479
- internalType: 'enum SponsorPolicyBase.SwapMode',
4480
- type: 'uint8',
4481
- },
4482
- ],
4483
- name: 'setSwapMode',
4484
- outputs: [],
4485
- stateMutability: 'nonpayable',
4486
- },
4487
- {
4488
- type: 'function',
4489
- inputs: [],
4490
- name: 'spacingCurated',
4491
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4492
- stateMutability: 'view',
4493
- },
4494
- {
4495
- type: 'function',
4496
- inputs: [{ name: '', internalType: 'int256', type: 'int256' }],
4497
- name: 'spacingListed',
4498
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4499
- stateMutability: 'view',
4500
- },
4501
- {
4502
- type: 'function',
4503
- inputs: [],
4504
- name: 'sponsor',
4505
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
4506
- stateMutability: 'view',
4507
- },
4508
- {
4509
- type: 'function',
4510
- inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
4511
- name: 'swapFeeListed',
4512
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4513
- stateMutability: 'view',
4514
- },
4515
- {
4516
- type: 'function',
4517
- inputs: [],
4518
- name: 'swapFeeTax',
4519
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4520
- stateMutability: 'view',
4521
- },
4522
- {
4523
- type: 'function',
4524
- inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4525
- name: 'swapMode',
4526
- outputs: [
4527
- {
4528
- name: '',
4529
- internalType: 'enum SponsorPolicyBase.SwapMode',
4530
- type: 'uint8',
4531
- },
4532
- ],
4533
- stateMutability: 'view',
4534
- },
4535
- {
4536
- type: 'function',
4537
- inputs: [],
4538
- name: 'swapTiers',
4539
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4540
- stateMutability: 'view',
4541
- },
4542
- {
4543
- type: 'event',
4544
- anonymous: false,
4545
- inputs: [
4546
- {
4547
- name: 'poolId',
4548
- internalType: 'bytes32',
4549
- type: 'bytes32',
4550
- indexed: true,
4551
- },
4552
- { name: 'prev', internalType: 'address', type: 'address', indexed: true },
4553
- { name: 'next', internalType: 'address', type: 'address', indexed: true },
4554
- ],
4555
- name: 'AuthoritySet',
4556
- },
4557
- {
4558
- type: 'event',
4559
- anonymous: false,
4560
- inputs: [
4561
- {
4562
- name: 'poolId',
4563
- internalType: 'bytes32',
4564
- type: 'bytes32',
4565
- indexed: true,
4566
- },
4567
- { name: 'who', internalType: 'address', type: 'address', indexed: true },
4568
- { name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
4569
- ],
4570
- name: 'Listed',
4571
- },
4572
- {
4573
- type: 'event',
4574
- anonymous: false,
4575
- inputs: [
4576
- {
4577
- name: 'poolId',
4578
- internalType: 'bytes32',
4579
- type: 'bytes32',
4580
- indexed: true,
4581
- },
4582
- { name: 'gated', internalType: 'bool', type: 'bool', indexed: false },
4583
- ],
4584
- name: 'MintGateSet',
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
- {
4597
- name: 'name',
4598
- internalType: 'bytes32',
4599
- type: 'bytes32',
4600
- indexed: false,
4601
- },
4602
- ],
4603
- name: 'NameSet',
4604
- },
4605
- {
4606
- type: 'event',
4607
- anonymous: false,
4608
- inputs: [
4609
- {
4610
- name: 'poolId',
4611
- internalType: 'bytes32',
4612
- type: 'bytes32',
4613
- indexed: true,
4614
- },
4615
- { name: 'prev', internalType: 'address', type: 'address', indexed: true },
4616
- { name: 'next', internalType: 'address', type: 'address', indexed: true },
4617
- ],
4618
- name: 'OperatorAppointed',
4619
- },
4620
- {
4621
- type: 'event',
4622
- anonymous: false,
4623
- inputs: [
4624
- {
4625
- name: 'poolId',
4626
- internalType: 'bytes32',
4627
- type: 'bytes32',
4628
- indexed: true,
4629
- },
4630
- {
4631
- name: 'mode',
4632
- internalType: 'enum SponsorPolicyBase.SwapMode',
4633
- type: 'uint8',
4634
- indexed: false,
4635
- },
4636
- ],
4637
- name: 'SwapModeSet',
4638
- },
4639
- { type: 'error', inputs: [], name: 'AlreadyHeld' },
4640
- { type: 'error', inputs: [], name: 'BadParams' },
4641
- { type: 'error', inputs: [], name: 'BadRate' },
4642
- { type: 'error', inputs: [], name: 'BadSwapMode' },
4643
- { type: 'error', inputs: [], name: 'BadTax' },
4644
- {
4645
- type: 'error',
4646
- inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
4647
- name: 'FeeNotListed',
4648
- },
4649
- { type: 'error', inputs: [], name: 'GatesUnavailable' },
4650
- { type: 'error', inputs: [], name: 'InactivePool' },
4651
- {
4652
- type: 'error',
4653
- inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
4654
- name: 'MintFeeNotListed',
4655
- },
4656
- { type: 'error', inputs: [], name: 'NoCreator' },
4657
- { type: 'error', inputs: [], name: 'NotAuthority' },
4658
- { type: 'error', inputs: [], name: 'NotCanonical' },
4659
- { type: 'error', inputs: [], name: 'NotManager' },
4660
- { type: 'error', inputs: [], name: 'NotRegistry' },
4661
- { type: 'error', inputs: [], name: 'OneBase' },
4662
- {
4663
- type: 'error',
4664
- inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
4665
- name: 'QuoteNotListed',
4666
- },
4667
- { type: 'error', inputs: [], name: 'Refused' },
4668
- {
4669
- type: 'error',
4670
- inputs: [{ name: 'tickSpacing', internalType: 'int256', type: 'int256' }],
4671
- name: 'SpacingNotListed',
4672
- },
4673
- ] as const