@logswap/sdk 0.5.78 → 0.5.80

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
@@ -8,7 +8,6 @@ export const cPoolManagerAbi = [
8
8
  inputs: [
9
9
  { name: '_treasury', internalType: 'address', type: 'address' },
10
10
  { name: '_registry', internalType: 'address', type: 'address' },
11
- { name: 'gate_', internalType: 'address', type: 'address' },
12
11
  ],
13
12
  stateMutability: 'nonpayable',
14
13
  },
@@ -69,6 +68,7 @@ export const cPoolManagerAbi = [
69
68
  { name: 'base', internalType: 'address', type: 'address' },
70
69
  { name: 'quote', internalType: 'address', type: 'address' },
71
70
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
71
+ { name: 'policy', internalType: 'address', type: 'address' },
72
72
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
73
73
  ],
74
74
  },
@@ -105,6 +105,7 @@ export const cPoolManagerAbi = [
105
105
  { name: 'base', internalType: 'address', type: 'address' },
106
106
  { name: 'quote', internalType: 'address', type: 'address' },
107
107
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
108
+ { name: 'policy', internalType: 'address', type: 'address' },
108
109
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
109
110
  ],
110
111
  },
@@ -133,6 +134,7 @@ export const cPoolManagerAbi = [
133
134
  { name: 'base', internalType: 'address', type: 'address' },
134
135
  { name: 'quote', internalType: 'address', type: 'address' },
135
136
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
137
+ { name: 'policy', internalType: 'address', type: 'address' },
136
138
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
137
139
  ],
138
140
  },
@@ -162,6 +164,7 @@ export const cPoolManagerAbi = [
162
164
  { name: 'base', internalType: 'address', type: 'address' },
163
165
  { name: 'quote', internalType: 'address', type: 'address' },
164
166
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
167
+ { name: 'policy', internalType: 'address', type: 'address' },
165
168
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
166
169
  ],
167
170
  },
@@ -211,13 +214,6 @@ export const cPoolManagerAbi = [
211
214
  outputs: [{ name: '', internalType: 'bytes32[]', type: 'bytes32[]' }],
212
215
  stateMutability: 'view',
213
216
  },
214
- {
215
- type: 'function',
216
- inputs: [],
217
- name: 'gate',
218
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
219
- stateMutability: 'view',
220
- },
221
217
  {
222
218
  type: 'function',
223
219
  inputs: [
@@ -229,6 +225,7 @@ export const cPoolManagerAbi = [
229
225
  { name: 'base', internalType: 'address', type: 'address' },
230
226
  { name: 'quote', internalType: 'address', type: 'address' },
231
227
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
228
+ { name: 'policy', internalType: 'address', type: 'address' },
232
229
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
233
230
  ],
234
231
  },
@@ -249,6 +246,7 @@ export const cPoolManagerAbi = [
249
246
  { name: 'base', internalType: 'address', type: 'address' },
250
247
  { name: 'quote', internalType: 'address', type: 'address' },
251
248
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
249
+ { name: 'policy', internalType: 'address', type: 'address' },
252
250
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
253
251
  ],
254
252
  },
@@ -270,6 +268,7 @@ export const cPoolManagerAbi = [
270
268
  { name: 'base', internalType: 'address', type: 'address' },
271
269
  { name: 'quote', internalType: 'address', type: 'address' },
272
270
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
271
+ { name: 'policy', internalType: 'address', type: 'address' },
273
272
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
274
273
  ],
275
274
  },
@@ -308,6 +307,7 @@ export const cPoolManagerAbi = [
308
307
  { name: 'base', internalType: 'address', type: 'address' },
309
308
  { name: 'quote', internalType: 'address', type: 'address' },
310
309
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
310
+ { name: 'policy', internalType: 'address', type: 'address' },
311
311
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
312
312
  ],
313
313
  },
@@ -370,6 +370,7 @@ export const cPoolManagerAbi = [
370
370
  { name: 'base', internalType: 'address', type: 'address' },
371
371
  { name: 'quote', internalType: 'address', type: 'address' },
372
372
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
373
+ { name: 'policy', internalType: 'address', type: 'address' },
373
374
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
374
375
  ],
375
376
  },
@@ -398,6 +399,17 @@ export const cPoolManagerAbi = [
398
399
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
399
400
  stateMutability: 'payable',
400
401
  },
402
+ {
403
+ type: 'function',
404
+ inputs: [
405
+ { name: 'id', internalType: 'bytes32', type: 'bytes32' },
406
+ { name: 'asks', internalType: 'uint8', type: 'uint8' },
407
+ { name: 'executor', internalType: 'address', type: 'address' },
408
+ ],
409
+ name: 'setPermissions',
410
+ outputs: [],
411
+ stateMutability: 'nonpayable',
412
+ },
401
413
  {
402
414
  type: 'function',
403
415
  inputs: [],
@@ -405,6 +417,13 @@ export const cPoolManagerAbi = [
405
417
  outputs: [{ name: 'paid', internalType: 'uint256', type: 'uint256' }],
406
418
  stateMutability: 'nonpayable',
407
419
  },
420
+ {
421
+ type: 'function',
422
+ inputs: [{ name: 'id', internalType: 'bytes32', type: 'bytes32' }],
423
+ name: 'stamp',
424
+ outputs: [],
425
+ stateMutability: 'nonpayable',
426
+ },
408
427
  {
409
428
  type: 'function',
410
429
  inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
@@ -423,6 +442,7 @@ export const cPoolManagerAbi = [
423
442
  { name: 'base', internalType: 'address', type: 'address' },
424
443
  { name: 'quote', internalType: 'address', type: 'address' },
425
444
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
445
+ { name: 'policy', internalType: 'address', type: 'address' },
426
446
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
427
447
  ],
428
448
  },
@@ -525,6 +545,7 @@ export const cPoolManagerAbi = [
525
545
  { name: 'base', internalType: 'address', type: 'address' },
526
546
  { name: 'quote', internalType: 'address', type: 'address' },
527
547
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
548
+ { name: 'policy', internalType: 'address', type: 'address' },
528
549
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
529
550
  ],
530
551
  },
@@ -677,14 +698,6 @@ export const cPoolManagerAbi = [
677
698
  ],
678
699
  name: 'FeesClaimed',
679
700
  },
680
- {
681
- type: 'event',
682
- anonymous: false,
683
- inputs: [
684
- { name: 'gate', internalType: 'address', type: 'address', indexed: true },
685
- ],
686
- name: 'GateSet',
687
- },
688
701
  {
689
702
  type: 'event',
690
703
  anonymous: false,
@@ -733,6 +746,12 @@ export const cPoolManagerAbi = [
733
746
  type: 'uint256',
734
747
  indexed: false,
735
748
  },
749
+ {
750
+ name: 'policy',
751
+ internalType: 'address',
752
+ type: 'address',
753
+ indexed: false,
754
+ },
736
755
  ],
737
756
  name: 'MarketCreated',
738
757
  },
@@ -756,6 +775,26 @@ export const cPoolManagerAbi = [
756
775
  ],
757
776
  name: 'OperatorSet',
758
777
  },
778
+ {
779
+ type: 'event',
780
+ anonymous: false,
781
+ inputs: [
782
+ {
783
+ name: 'poolId',
784
+ internalType: 'bytes32',
785
+ type: 'bytes32',
786
+ indexed: true,
787
+ },
788
+ { name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
789
+ {
790
+ name: 'executor',
791
+ internalType: 'address',
792
+ type: 'address',
793
+ indexed: true,
794
+ },
795
+ ],
796
+ name: 'PermissionsSet',
797
+ },
759
798
  {
760
799
  type: 'event',
761
800
  anonymous: false,
@@ -1055,6 +1094,7 @@ export const cPoolManagerAbi = [
1055
1094
  { type: 'error', inputs: [], name: 'NoLiquidity' },
1056
1095
  { type: 'error', inputs: [], name: 'NotAuthorized' },
1057
1096
  { type: 'error', inputs: [], name: 'NotLogAuthority' },
1097
+ { type: 'error', inputs: [], name: 'NotPolicy' },
1058
1098
  { type: 'error', inputs: [], name: 'NotTreasury' },
1059
1099
  { type: 'error', inputs: [], name: 'OffGrid' },
1060
1100
  { type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
@@ -1067,6 +1107,7 @@ export const cPoolManagerAbi = [
1067
1107
  name: 'QuoteResult',
1068
1108
  },
1069
1109
  { type: 'error', inputs: [], name: 'ReserveNotRepresentable' },
1110
+ { type: 'error', inputs: [], name: 'Restructured' },
1070
1111
  { type: 'error', inputs: [], name: 'Slippage' },
1071
1112
  { type: 'error', inputs: [], name: 'SpacingZero' },
1072
1113
  { type: 'error', inputs: [], name: 'SyncAlreadyOpen' },
@@ -1094,7 +1135,7 @@ export const fPoolManagerAbi = [
1094
1135
  {
1095
1136
  type: 'function',
1096
1137
  inputs: [],
1097
- name: 'PAD_PAYOUT_MAX',
1138
+ name: 'INCOME_FEE_MAX',
1098
1139
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1099
1140
  stateMutability: 'view',
1100
1141
  },
@@ -1105,13 +1146,6 @@ export const fPoolManagerAbi = [
1105
1146
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1106
1147
  stateMutability: 'view',
1107
1148
  },
1108
- {
1109
- type: 'function',
1110
- inputs: [],
1111
- name: 'POT_CUT_MAX',
1112
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1113
- stateMutability: 'view',
1114
- },
1115
1149
  {
1116
1150
  type: 'function',
1117
1151
  inputs: [],
@@ -1305,7 +1339,19 @@ export const fPoolManagerAbi = [
1305
1339
  { name: 'owner', internalType: 'address', type: 'address' },
1306
1340
  { name: 'amount', internalType: 'uint256', type: 'uint256' },
1307
1341
  ],
1308
- name: 'lock',
1342
+ name: 'lienLock',
1343
+ outputs: [],
1344
+ stateMutability: 'nonpayable',
1345
+ },
1346
+ {
1347
+ type: 'function',
1348
+ inputs: [
1349
+ { name: 'id', internalType: 'uint256', type: 'uint256' },
1350
+ { name: 'owner', internalType: 'address', type: 'address' },
1351
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
1352
+ { name: 'to', internalType: 'address', type: 'address' },
1353
+ ],
1354
+ name: 'lienUnlock',
1309
1355
  outputs: [],
1310
1356
  stateMutability: 'nonpayable',
1311
1357
  },
@@ -1422,16 +1468,6 @@ export const fPoolManagerAbi = [
1422
1468
  outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
1423
1469
  stateMutability: 'nonpayable',
1424
1470
  },
1425
- {
1426
- type: 'function',
1427
- inputs: [
1428
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1429
- { name: 'asks', internalType: 'uint8', type: 'uint8' },
1430
- ],
1431
- name: 'setAsks',
1432
- outputs: [],
1433
- stateMutability: 'nonpayable',
1434
- },
1435
1471
  {
1436
1472
  type: 'function',
1437
1473
  inputs: [
@@ -1453,6 +1489,17 @@ export const fPoolManagerAbi = [
1453
1489
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1454
1490
  stateMutability: 'payable',
1455
1491
  },
1492
+ {
1493
+ type: 'function',
1494
+ inputs: [
1495
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1496
+ { name: 'asks', internalType: 'uint8', type: 'uint8' },
1497
+ { name: 'executor', internalType: 'address', type: 'address' },
1498
+ ],
1499
+ name: 'setPermissions',
1500
+ outputs: [],
1501
+ stateMutability: 'nonpayable',
1502
+ },
1456
1503
  {
1457
1504
  type: 'function',
1458
1505
  inputs: [
@@ -1611,18 +1658,6 @@ export const fPoolManagerAbi = [
1611
1658
  outputs: [{ name: 'result', internalType: 'bytes', type: 'bytes' }],
1612
1659
  stateMutability: 'nonpayable',
1613
1660
  },
1614
- {
1615
- type: 'function',
1616
- inputs: [
1617
- { name: 'id', internalType: 'uint256', type: 'uint256' },
1618
- { name: 'owner', internalType: 'address', type: 'address' },
1619
- { name: 'amount', internalType: 'uint256', type: 'uint256' },
1620
- { name: 'to', internalType: 'address', type: 'address' },
1621
- ],
1622
- name: 'unlock',
1623
- outputs: [],
1624
- stateMutability: 'nonpayable',
1625
- },
1626
1661
  {
1627
1662
  type: 'function',
1628
1663
  inputs: [],
@@ -1680,13 +1715,14 @@ export const fPoolManagerAbi = [
1680
1715
  type: 'bytes32',
1681
1716
  indexed: true,
1682
1717
  },
1718
+ { name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
1683
1719
  {
1684
1720
  name: 'holder',
1685
1721
  internalType: 'address',
1686
1722
  type: 'address',
1687
1723
  indexed: true,
1688
1724
  },
1689
- { name: 'to', internalType: 'address', type: 'address', indexed: true },
1725
+ { name: 'to', internalType: 'address', type: 'address', indexed: false },
1690
1726
  {
1691
1727
  name: 'amount',
1692
1728
  internalType: 'uint256',
@@ -1849,6 +1885,71 @@ export const fPoolManagerAbi = [
1849
1885
  ],
1850
1886
  name: 'LegsSet',
1851
1887
  },
1888
+ {
1889
+ type: 'event',
1890
+ anonymous: false,
1891
+ inputs: [
1892
+ { name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
1893
+ {
1894
+ name: 'owner',
1895
+ internalType: 'address',
1896
+ type: 'address',
1897
+ indexed: true,
1898
+ },
1899
+ {
1900
+ name: 'locker',
1901
+ internalType: 'address',
1902
+ type: 'address',
1903
+ indexed: true,
1904
+ },
1905
+ {
1906
+ name: 'amount',
1907
+ internalType: 'uint256',
1908
+ type: 'uint256',
1909
+ indexed: false,
1910
+ },
1911
+ {
1912
+ name: 'total',
1913
+ internalType: 'uint256',
1914
+ type: 'uint256',
1915
+ indexed: false,
1916
+ },
1917
+ ],
1918
+ name: 'LienLocked',
1919
+ },
1920
+ {
1921
+ type: 'event',
1922
+ anonymous: false,
1923
+ inputs: [
1924
+ { name: 'id', internalType: 'uint256', type: 'uint256', indexed: true },
1925
+ {
1926
+ name: 'owner',
1927
+ internalType: 'address',
1928
+ type: 'address',
1929
+ indexed: true,
1930
+ },
1931
+ {
1932
+ name: 'locker',
1933
+ internalType: 'address',
1934
+ type: 'address',
1935
+ indexed: true,
1936
+ },
1937
+ { name: 'to', internalType: 'address', type: 'address', indexed: false },
1938
+ {
1939
+ name: 'amount',
1940
+ internalType: 'uint256',
1941
+ type: 'uint256',
1942
+ indexed: false,
1943
+ },
1944
+ {
1945
+ name: 'owed',
1946
+ internalType: 'uint256',
1947
+ type: 'uint256',
1948
+ indexed: false,
1949
+ },
1950
+ ],
1951
+ name: 'LienUnlocked',
1952
+ },
1852
1953
  {
1853
1954
  type: 'event',
1854
1955
  anonymous: false,
@@ -1869,6 +1970,26 @@ export const fPoolManagerAbi = [
1869
1970
  ],
1870
1971
  name: 'OperatorSet',
1871
1972
  },
1973
+ {
1974
+ type: 'event',
1975
+ anonymous: false,
1976
+ inputs: [
1977
+ {
1978
+ name: 'poolId',
1979
+ internalType: 'bytes32',
1980
+ type: 'bytes32',
1981
+ indexed: true,
1982
+ },
1983
+ { name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
1984
+ {
1985
+ name: 'executor',
1986
+ internalType: 'address',
1987
+ type: 'address',
1988
+ indexed: true,
1989
+ },
1990
+ ],
1991
+ name: 'PermissionsSet',
1992
+ },
1872
1993
  {
1873
1994
  type: 'event',
1874
1995
  anonymous: false,
@@ -2246,7 +2367,6 @@ export const fPoolManagerAbi = [
2246
2367
  inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256' }],
2247
2368
  name: 'MulticallFailed',
2248
2369
  },
2249
- { type: 'error', inputs: [], name: 'NonstandardToken' },
2250
2370
  { type: 'error', inputs: [], name: 'NotAuthorized' },
2251
2371
  { type: 'error', inputs: [], name: 'NotLogAuthority' },
2252
2372
  { type: 'error', inputs: [], name: 'NotPolicy' },
@@ -2339,6 +2459,7 @@ export const logswapLensAbi = [
2339
2459
  { name: 'base', internalType: 'address', type: 'address' },
2340
2460
  { name: 'quote', internalType: 'address', type: 'address' },
2341
2461
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2462
+ { name: 'policy', internalType: 'address', type: 'address' },
2342
2463
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
2343
2464
  ],
2344
2465
  },
@@ -2358,6 +2479,7 @@ export const logswapLensAbi = [
2358
2479
  { name: 'base', internalType: 'address', type: 'address' },
2359
2480
  { name: 'quote', internalType: 'address', type: 'address' },
2360
2481
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2482
+ { name: 'policy', internalType: 'address', type: 'address' },
2361
2483
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
2362
2484
  ],
2363
2485
  },
@@ -2484,10 +2606,15 @@ export const logswapLensAbi = [
2484
2606
  type: 'uint24',
2485
2607
  },
2486
2608
  { name: 'Q', internalType: 'uint128', type: 'uint128' },
2487
- { name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
2609
+ {
2610
+ name: 'realizedVariance',
2611
+ internalType: 'uint128',
2612
+ type: 'uint128',
2613
+ },
2488
2614
  { name: 'L', internalType: 'uint256', type: 'uint256' },
2489
2615
  { name: 'shares', internalType: 'uint256', type: 'uint256' },
2490
2616
  { name: 'refLogFloor', internalType: 'int256', type: 'int256' },
2617
+ { name: 'executor', internalType: 'address', type: 'address' },
2491
2618
  { name: 'mintFee', internalType: 'uint256', type: 'uint256' },
2492
2619
  ],
2493
2620
  },
@@ -2527,6 +2654,7 @@ export const logswapLensAbi = [
2527
2654
  { name: 'base', internalType: 'address', type: 'address' },
2528
2655
  { name: 'quote', internalType: 'address', type: 'address' },
2529
2656
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2657
+ { name: 'policy', internalType: 'address', type: 'address' },
2530
2658
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
2531
2659
  ],
2532
2660
  },
@@ -2576,10 +2704,15 @@ export const logswapLensAbi = [
2576
2704
  { name: 'asks', internalType: 'uint8', type: 'uint8' },
2577
2705
  { name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
2578
2706
  { name: 'Q', internalType: 'uint128', type: 'uint128' },
2579
- { name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
2707
+ {
2708
+ name: 'realizedVariance',
2709
+ internalType: 'uint128',
2710
+ type: 'uint128',
2711
+ },
2580
2712
  { name: 'L', internalType: 'uint256', type: 'uint256' },
2581
2713
  { name: 'shares', internalType: 'uint256', type: 'uint256' },
2582
2714
  { name: 'refLogFloor', internalType: 'int256', type: 'int256' },
2715
+ { name: 'executor', internalType: 'address', type: 'address' },
2583
2716
  { name: 'mintFee', internalType: 'uint256', type: 'uint256' },
2584
2717
  ],
2585
2718
  },
@@ -2603,12 +2736,20 @@ export const logswapLensAbi = [
2603
2736
  { name: 'reserveBase', internalType: 'uint256', type: 'uint256' },
2604
2737
  { name: 'reserveQuote', internalType: 'uint256', type: 'uint256' },
2605
2738
  { name: 'F', internalType: 'uint256', type: 'uint256' },
2606
- { name: 'bigSigma', internalType: 'uint256', type: 'uint256' },
2739
+ {
2740
+ name: 'realizedVariance',
2741
+ internalType: 'uint256',
2742
+ type: 'uint256',
2743
+ },
2607
2744
  { name: 'currentK', internalType: 'int256', type: 'int256' },
2608
2745
  { name: 'protocolOwed', internalType: 'uint256', type: 'uint256' },
2609
2746
  { name: 'minBackstopL', internalType: 'uint256', type: 'uint256' },
2610
2747
  { name: 'backstopFloor', internalType: 'int256', type: 'int256' },
2611
2748
  { name: 'mintFee', internalType: 'uint256', type: 'uint256' },
2749
+ { name: 'policy', internalType: 'address', type: 'address' },
2750
+ { name: 'executor', internalType: 'address', type: 'address' },
2751
+ { name: 'restructureTime', internalType: 'uint32', type: 'uint32' },
2752
+ { name: 'asks', internalType: 'uint8', type: 'uint8' },
2612
2753
  { name: 'swapFeeTax', internalType: 'uint256', type: 'uint256' },
2613
2754
  ],
2614
2755
  },
@@ -2626,6 +2767,7 @@ export const logswapLensAbi = [
2626
2767
  { name: 'base', internalType: 'address', type: 'address' },
2627
2768
  { name: 'quote', internalType: 'address', type: 'address' },
2628
2769
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2770
+ { name: 'policy', internalType: 'address', type: 'address' },
2629
2771
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
2630
2772
  ],
2631
2773
  },
@@ -2662,6 +2804,7 @@ export const logswapLensAbi = [
2662
2804
  { name: 'base', internalType: 'address', type: 'address' },
2663
2805
  { name: 'quote', internalType: 'address', type: 'address' },
2664
2806
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2807
+ { name: 'policy', internalType: 'address', type: 'address' },
2665
2808
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
2666
2809
  ],
2667
2810
  },
@@ -2682,6 +2825,7 @@ export const logswapLensAbi = [
2682
2825
  { name: 'base', internalType: 'address', type: 'address' },
2683
2826
  { name: 'quote', internalType: 'address', type: 'address' },
2684
2827
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2828
+ { name: 'policy', internalType: 'address', type: 'address' },
2685
2829
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
2686
2830
  ],
2687
2831
  },
@@ -2701,6 +2845,7 @@ export const logswapLensAbi = [
2701
2845
  { name: 'base', internalType: 'address', type: 'address' },
2702
2846
  { name: 'quote', internalType: 'address', type: 'address' },
2703
2847
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2848
+ { name: 'policy', internalType: 'address', type: 'address' },
2704
2849
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
2705
2850
  ],
2706
2851
  },
@@ -2720,6 +2865,7 @@ export const logswapLensAbi = [
2720
2865
  { name: 'base', internalType: 'address', type: 'address' },
2721
2866
  { name: 'quote', internalType: 'address', type: 'address' },
2722
2867
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2868
+ { name: 'policy', internalType: 'address', type: 'address' },
2723
2869
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
2724
2870
  ],
2725
2871
  },
@@ -2746,6 +2892,7 @@ export const logswapLensAbi = [
2746
2892
  { name: 'base', internalType: 'address', type: 'address' },
2747
2893
  { name: 'quote', internalType: 'address', type: 'address' },
2748
2894
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2895
+ { name: 'policy', internalType: 'address', type: 'address' },
2749
2896
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
2750
2897
  ],
2751
2898
  },
@@ -2774,6 +2921,7 @@ export const logswapLensAbi = [
2774
2921
  { name: 'base', internalType: 'address', type: 'address' },
2775
2922
  { name: 'quote', internalType: 'address', type: 'address' },
2776
2923
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2924
+ { name: 'policy', internalType: 'address', type: 'address' },
2777
2925
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
2778
2926
  ],
2779
2927
  },
@@ -2812,6 +2960,7 @@ export const logswapLensAbi = [
2812
2960
  { name: 'base', internalType: 'address', type: 'address' },
2813
2961
  { name: 'quote', internalType: 'address', type: 'address' },
2814
2962
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2963
+ { name: 'policy', internalType: 'address', type: 'address' },
2815
2964
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
2816
2965
  ],
2817
2966
  },
@@ -2831,6 +2980,7 @@ export const logswapLensAbi = [
2831
2980
  { name: 'base', internalType: 'address', type: 'address' },
2832
2981
  { name: 'quote', internalType: 'address', type: 'address' },
2833
2982
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
2983
+ { name: 'policy', internalType: 'address', type: 'address' },
2834
2984
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
2835
2985
  ],
2836
2986
  },
@@ -2864,6 +3014,7 @@ export const logswapLensAbi = [
2864
3014
  { name: 'base', internalType: 'address', type: 'address' },
2865
3015
  { name: 'quote', internalType: 'address', type: 'address' },
2866
3016
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3017
+ { name: 'policy', internalType: 'address', type: 'address' },
2867
3018
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
2868
3019
  ],
2869
3020
  },
@@ -2906,6 +3057,7 @@ export const logswapLensAbi = [
2906
3057
  { name: 'base', internalType: 'address', type: 'address' },
2907
3058
  { name: 'quote', internalType: 'address', type: 'address' },
2908
3059
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3060
+ { name: 'policy', internalType: 'address', type: 'address' },
2909
3061
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
2910
3062
  ],
2911
3063
  },
@@ -2927,6 +3079,7 @@ export const logswapLensAbi = [
2927
3079
  { name: 'base', internalType: 'address', type: 'address' },
2928
3080
  { name: 'quote', internalType: 'address', type: 'address' },
2929
3081
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3082
+ { name: 'policy', internalType: 'address', type: 'address' },
2930
3083
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
2931
3084
  ],
2932
3085
  },
@@ -2948,6 +3101,7 @@ export const logswapLensAbi = [
2948
3101
  { name: 'base', internalType: 'address', type: 'address' },
2949
3102
  { name: 'quote', internalType: 'address', type: 'address' },
2950
3103
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3104
+ { name: 'policy', internalType: 'address', type: 'address' },
2951
3105
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
2952
3106
  ],
2953
3107
  },
@@ -2969,6 +3123,7 @@ export const logswapLensAbi = [
2969
3123
  { name: 'base', internalType: 'address', type: 'address' },
2970
3124
  { name: 'quote', internalType: 'address', type: 'address' },
2971
3125
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3126
+ { name: 'policy', internalType: 'address', type: 'address' },
2972
3127
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
2973
3128
  ],
2974
3129
  },
@@ -3026,6 +3181,7 @@ export const logswapLensAbi = [
3026
3181
  { name: 'base', internalType: 'address', type: 'address' },
3027
3182
  { name: 'quote', internalType: 'address', type: 'address' },
3028
3183
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3184
+ { name: 'policy', internalType: 'address', type: 'address' },
3029
3185
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
3030
3186
  ],
3031
3187
  },
@@ -3117,6 +3273,7 @@ export const logswapRouterAbi = [
3117
3273
  { name: 'base', internalType: 'address', type: 'address' },
3118
3274
  { name: 'quote', internalType: 'address', type: 'address' },
3119
3275
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3276
+ { name: 'policy', internalType: 'address', type: 'address' },
3120
3277
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
3121
3278
  ],
3122
3279
  },
@@ -3145,6 +3302,7 @@ export const logswapRouterAbi = [
3145
3302
  { name: 'base', internalType: 'address', type: 'address' },
3146
3303
  { name: 'quote', internalType: 'address', type: 'address' },
3147
3304
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3305
+ { name: 'policy', internalType: 'address', type: 'address' },
3148
3306
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
3149
3307
  ],
3150
3308
  },
@@ -3167,6 +3325,7 @@ export const logswapRouterAbi = [
3167
3325
  { name: 'base', internalType: 'address', type: 'address' },
3168
3326
  { name: 'quote', internalType: 'address', type: 'address' },
3169
3327
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3328
+ { name: 'policy', internalType: 'address', type: 'address' },
3170
3329
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
3171
3330
  ],
3172
3331
  },
@@ -3203,6 +3362,7 @@ export const logswapRouterAbi = [
3203
3362
  { name: 'base', internalType: 'address', type: 'address' },
3204
3363
  { name: 'quote', internalType: 'address', type: 'address' },
3205
3364
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3365
+ { name: 'policy', internalType: 'address', type: 'address' },
3206
3366
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
3207
3367
  ],
3208
3368
  },
@@ -3231,6 +3391,7 @@ export const logswapRouterAbi = [
3231
3391
  { name: 'base', internalType: 'address', type: 'address' },
3232
3392
  { name: 'quote', internalType: 'address', type: 'address' },
3233
3393
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3394
+ { name: 'policy', internalType: 'address', type: 'address' },
3234
3395
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
3235
3396
  ],
3236
3397
  },
@@ -3258,6 +3419,7 @@ export const logswapRouterAbi = [
3258
3419
  { name: 'base', internalType: 'address', type: 'address' },
3259
3420
  { name: 'quote', internalType: 'address', type: 'address' },
3260
3421
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3422
+ { name: 'policy', internalType: 'address', type: 'address' },
3261
3423
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
3262
3424
  ],
3263
3425
  },
@@ -3296,6 +3458,7 @@ export const logswapRouterAbi = [
3296
3458
  internalType: 'int256',
3297
3459
  type: 'int256',
3298
3460
  },
3461
+ { name: 'policy', internalType: 'address', type: 'address' },
3299
3462
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
3300
3463
  ],
3301
3464
  },
@@ -3327,6 +3490,7 @@ export const logswapRouterAbi = [
3327
3490
  { name: 'base', internalType: 'address', type: 'address' },
3328
3491
  { name: 'quote', internalType: 'address', type: 'address' },
3329
3492
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3493
+ { name: 'policy', internalType: 'address', type: 'address' },
3330
3494
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
3331
3495
  ],
3332
3496
  },
@@ -3356,6 +3520,7 @@ export const logswapRouterAbi = [
3356
3520
  { name: 'base', internalType: 'address', type: 'address' },
3357
3521
  { name: 'quote', internalType: 'address', type: 'address' },
3358
3522
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3523
+ { name: 'policy', internalType: 'address', type: 'address' },
3359
3524
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
3360
3525
  ],
3361
3526
  },
@@ -3441,6 +3606,7 @@ export const logswapRouterAbi = [
3441
3606
  { name: 'base', internalType: 'address', type: 'address' },
3442
3607
  { name: 'quote', internalType: 'address', type: 'address' },
3443
3608
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3609
+ { name: 'policy', internalType: 'address', type: 'address' },
3444
3610
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
3445
3611
  ],
3446
3612
  },
@@ -3470,6 +3636,7 @@ export const logswapRouterAbi = [
3470
3636
  { name: 'base', internalType: 'address', type: 'address' },
3471
3637
  { name: 'quote', internalType: 'address', type: 'address' },
3472
3638
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3639
+ { name: 'policy', internalType: 'address', type: 'address' },
3473
3640
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
3474
3641
  ],
3475
3642
  },
@@ -3534,22 +3701,6 @@ export const logswapRouterAbi = [
3534
3701
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3535
3702
  stateMutability: 'nonpayable',
3536
3703
  },
3537
- {
3538
- type: 'function',
3539
- inputs: [
3540
- { name: '', internalType: 'bytes32', type: 'bytes32' },
3541
- { name: '', internalType: 'enum FPoolManager.QuoteKind', type: 'uint8' },
3542
- { name: '', internalType: 'uint256', type: 'uint256' },
3543
- { name: '', internalType: 'uint256', type: 'uint256' },
3544
- { name: '', internalType: 'uint256', type: 'uint256' },
3545
- { name: '', internalType: 'uint256', type: 'uint256' },
3546
- { name: '', internalType: 'address', type: 'address' },
3547
- { name: '', internalType: 'uint256', type: 'uint256' },
3548
- ],
3549
- name: 'swapExactIn',
3550
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3551
- stateMutability: 'nonpayable',
3552
- },
3553
3704
  {
3554
3705
  type: 'function',
3555
3706
  inputs: [
@@ -3561,6 +3712,7 @@ export const logswapRouterAbi = [
3561
3712
  { name: 'base', internalType: 'address', type: 'address' },
3562
3713
  { name: 'quote', internalType: 'address', type: 'address' },
3563
3714
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3715
+ { name: 'policy', internalType: 'address', type: 'address' },
3564
3716
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
3565
3717
  ],
3566
3718
  },
@@ -3577,20 +3729,37 @@ export const logswapRouterAbi = [
3577
3729
  {
3578
3730
  type: 'function',
3579
3731
  inputs: [
3580
- {
3581
- name: 'hops',
3582
- internalType: 'struct Hop[]',
3583
- type: 'tuple[]',
3584
- components: [
3585
- {
3586
- name: 'key',
3587
- internalType: 'struct PoolKey',
3588
- type: 'tuple',
3589
- components: [
3590
- { name: 'base', internalType: 'address', type: 'address' },
3591
- { name: 'quote', internalType: 'address', type: 'address' },
3592
- { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3593
- { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
3732
+ { name: '', internalType: 'bytes32', type: 'bytes32' },
3733
+ { name: '', internalType: 'enum FPoolManager.QuoteKind', type: 'uint8' },
3734
+ { name: '', internalType: 'uint256', type: 'uint256' },
3735
+ { name: '', internalType: 'uint256', type: 'uint256' },
3736
+ { name: '', internalType: 'uint256', type: 'uint256' },
3737
+ { name: '', internalType: 'uint256', type: 'uint256' },
3738
+ { name: '', internalType: 'address', type: 'address' },
3739
+ { name: '', internalType: 'uint256', type: 'uint256' },
3740
+ ],
3741
+ name: 'swapExactIn',
3742
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3743
+ stateMutability: 'nonpayable',
3744
+ },
3745
+ {
3746
+ type: 'function',
3747
+ inputs: [
3748
+ {
3749
+ name: 'hops',
3750
+ internalType: 'struct Hop[]',
3751
+ type: 'tuple[]',
3752
+ components: [
3753
+ {
3754
+ name: 'key',
3755
+ internalType: 'struct PoolKey',
3756
+ type: 'tuple',
3757
+ components: [
3758
+ { name: 'base', internalType: 'address', type: 'address' },
3759
+ { name: 'quote', internalType: 'address', type: 'address' },
3760
+ { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3761
+ { name: 'policy', internalType: 'address', type: 'address' },
3762
+ { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
3594
3763
  ],
3595
3764
  },
3596
3765
  { name: 'baseIn', internalType: 'bool', type: 'bool' },
@@ -3616,6 +3785,7 @@ export const logswapRouterAbi = [
3616
3785
  { name: 'base', internalType: 'address', type: 'address' },
3617
3786
  { name: 'quote', internalType: 'address', type: 'address' },
3618
3787
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3788
+ { name: 'policy', internalType: 'address', type: 'address' },
3619
3789
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
3620
3790
  ],
3621
3791
  },
@@ -3647,6 +3817,7 @@ export const logswapRouterAbi = [
3647
3817
  { name: 'base', internalType: 'address', type: 'address' },
3648
3818
  { name: 'quote', internalType: 'address', type: 'address' },
3649
3819
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3820
+ { name: 'policy', internalType: 'address', type: 'address' },
3650
3821
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
3651
3822
  ],
3652
3823
  },
@@ -3686,6 +3857,7 @@ export const logswapRouterAbi = [
3686
3857
  { name: 'base', internalType: 'address', type: 'address' },
3687
3858
  { name: 'quote', internalType: 'address', type: 'address' },
3688
3859
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
3860
+ { name: 'policy', internalType: 'address', type: 'address' },
3689
3861
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
3690
3862
  ],
3691
3863
  },
@@ -3792,25 +3964,18 @@ export const padPolicyAbi = [
3792
3964
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
3793
3965
  stateMutability: 'view',
3794
3966
  },
3795
- {
3796
- type: 'function',
3797
- inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3798
- name: 'creator',
3799
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
3800
- stateMutability: 'view',
3801
- },
3802
3967
  {
3803
3968
  type: 'function',
3804
3969
  inputs: [],
3805
- name: 'creatorCurated',
3806
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3970
+ name: 'cManager',
3971
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3807
3972
  stateMutability: 'view',
3808
3973
  },
3809
3974
  {
3810
3975
  type: 'function',
3811
- inputs: [{ name: '', internalType: 'address', type: 'address' }],
3812
- name: 'creatorListed',
3813
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3976
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3977
+ name: 'creator',
3978
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
3814
3979
  stateMutability: 'view',
3815
3980
  },
3816
3981
  {
@@ -3827,6 +3992,13 @@ export const padPolicyAbi = [
3827
3992
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3828
3993
  stateMutability: 'view',
3829
3994
  },
3995
+ {
3996
+ type: 'function',
3997
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3998
+ name: 'creatorShareOf',
3999
+ outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
4000
+ stateMutability: 'view',
4001
+ },
3830
4002
  {
3831
4003
  type: 'function',
3832
4004
  inputs: [],
@@ -3841,6 +4013,23 @@ export const padPolicyAbi = [
3841
4013
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3842
4014
  stateMutability: 'view',
3843
4015
  },
4016
+ {
4017
+ type: 'function',
4018
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4019
+ name: 'incomeFee',
4020
+ outputs: [
4021
+ { name: '', internalType: 'address', type: 'address' },
4022
+ { name: '', internalType: 'uint256', type: 'uint256' },
4023
+ ],
4024
+ stateMutability: 'view',
4025
+ },
4026
+ {
4027
+ type: 'function',
4028
+ inputs: [],
4029
+ name: 'incomeFeeRate',
4030
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4031
+ stateMutability: 'view',
4032
+ },
3844
4033
  {
3845
4034
  type: 'function',
3846
4035
  inputs: [],
@@ -3857,6 +4046,13 @@ export const padPolicyAbi = [
3857
4046
  ],
3858
4047
  stateMutability: 'view',
3859
4048
  },
4049
+ {
4050
+ type: 'function',
4051
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4052
+ name: 'managerOf',
4053
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4054
+ stateMutability: 'view',
4055
+ },
3860
4056
  {
3861
4057
  type: 'function',
3862
4058
  inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
@@ -3913,6 +4109,32 @@ export const padPolicyAbi = [
3913
4109
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3914
4110
  stateMutability: 'view',
3915
4111
  },
4112
+ {
4113
+ type: 'function',
4114
+ inputs: [
4115
+ { name: '', internalType: 'address', type: 'address' },
4116
+ {
4117
+ name: '',
4118
+ internalType: 'struct PoolKey',
4119
+ type: 'tuple',
4120
+ components: [
4121
+ { name: 'base', internalType: 'address', type: 'address' },
4122
+ { name: 'quote', internalType: 'address', type: 'address' },
4123
+ { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
4124
+ { name: 'policy', internalType: 'address', type: 'address' },
4125
+ { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
4126
+ ],
4127
+ },
4128
+ { name: '', internalType: 'uint256', type: 'uint256' },
4129
+ ],
4130
+ name: 'onCInitialize',
4131
+ outputs: [
4132
+ { name: '', internalType: 'uint8', type: 'uint8' },
4133
+ { name: '', internalType: 'uint256', type: 'uint256' },
4134
+ { name: '', internalType: 'uint256', type: 'uint256' },
4135
+ ],
4136
+ stateMutability: 'pure',
4137
+ },
3916
4138
  {
3917
4139
  type: 'function',
3918
4140
  inputs: [
@@ -3987,7 +4209,7 @@ export const padPolicyAbi = [
3987
4209
  components: [
3988
4210
  { name: 'payee', internalType: 'address', type: 'address' },
3989
4211
  { name: 'toPayee', internalType: 'uint256', type: 'uint256' },
3990
- { name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
4212
+ { name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
3991
4213
  { name: 'carried', internalType: 'address', type: 'address' },
3992
4214
  ],
3993
4215
  },
@@ -4028,13 +4250,6 @@ export const padPolicyAbi = [
4028
4250
  outputs: [],
4029
4251
  stateMutability: 'nonpayable',
4030
4252
  },
4031
- {
4032
- type: 'function',
4033
- inputs: [],
4034
- name: 'protocolShare',
4035
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4036
- stateMutability: 'view',
4037
- },
4038
4253
  {
4039
4254
  type: 'function',
4040
4255
  inputs: [],
@@ -4051,18 +4266,8 @@ export const padPolicyAbi = [
4051
4266
  },
4052
4267
  {
4053
4268
  type: 'function',
4054
- inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
4055
- name: 'setCreatorCurated',
4056
- outputs: [],
4057
- stateMutability: 'nonpayable',
4058
- },
4059
- {
4060
- type: 'function',
4061
- inputs: [
4062
- { name: 'who', internalType: 'address', type: 'address' },
4063
- { name: 'listed', internalType: 'bool', type: 'bool' },
4064
- ],
4065
- name: 'setCreatorListed',
4269
+ inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
4270
+ name: 'setCManager',
4066
4271
  outputs: [],
4067
4272
  stateMutability: 'nonpayable',
4068
4273
  },
@@ -4083,6 +4288,13 @@ export const padPolicyAbi = [
4083
4288
  outputs: [],
4084
4289
  stateMutability: 'nonpayable',
4085
4290
  },
4291
+ {
4292
+ type: 'function',
4293
+ inputs: [{ name: 'rate', internalType: 'uint256', type: 'uint256' }],
4294
+ name: 'setIncomeFeeRate',
4295
+ outputs: [],
4296
+ stateMutability: 'nonpayable',
4297
+ },
4086
4298
  {
4087
4299
  type: 'function',
4088
4300
  inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
@@ -4130,10 +4342,9 @@ export const padPolicyAbi = [
4130
4342
  {
4131
4343
  type: 'function',
4132
4344
  inputs: [
4133
- { name: '_thresholdGrowth', internalType: 'uint256', type: 'uint256' },
4134
- { name: '_protocolShare', internalType: 'uint256', type: 'uint256' },
4135
- { name: '_creatorShareMin', internalType: 'uint256', type: 'uint256' },
4136
- { name: '_creatorShareMax', internalType: 'uint256', type: 'uint256' },
4345
+ { name: 'growth', internalType: 'uint256', type: 'uint256' },
4346
+ { name: 'minimumCreatorShare', internalType: 'uint256', type: 'uint256' },
4347
+ { name: 'maximumCreatorShare', internalType: 'uint256', type: 'uint256' },
4137
4348
  ],
4138
4349
  name: 'setSchedule',
4139
4350
  outputs: [],
@@ -4151,12 +4362,9 @@ export const padPolicyAbi = [
4151
4362
  },
4152
4363
  {
4153
4364
  type: 'function',
4154
- inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4155
- name: 'splitOf',
4156
- outputs: [
4157
- { name: 'creatorShare', internalType: 'uint64', type: 'uint64' },
4158
- { name: 'protocolShare', internalType: 'uint64', type: 'uint64' },
4159
- ],
4365
+ inputs: [],
4366
+ name: 'sponsor',
4367
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4160
4368
  stateMutability: 'view',
4161
4369
  },
4162
4370
  {
@@ -4240,27 +4448,18 @@ export const padPolicyAbi = [
4240
4448
  ],
4241
4449
  name: 'AuthoritySet',
4242
4450
  },
4243
- {
4244
- type: 'event',
4245
- anonymous: false,
4246
- inputs: [
4247
- { name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
4248
- ],
4249
- name: 'CreatorCuratedSet',
4250
- },
4251
4451
  {
4252
4452
  type: 'event',
4253
4453
  anonymous: false,
4254
4454
  inputs: [
4255
4455
  {
4256
- name: 'creator',
4456
+ name: 'manager',
4257
4457
  internalType: 'address',
4258
4458
  type: 'address',
4259
4459
  indexed: true,
4260
4460
  },
4261
- { name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
4262
4461
  ],
4263
- name: 'CreatorListed',
4462
+ name: 'CManagerSet',
4264
4463
  },
4265
4464
  {
4266
4465
  type: 'event',
@@ -4294,6 +4493,19 @@ export const padPolicyAbi = [
4294
4493
  ],
4295
4494
  name: 'Graduated',
4296
4495
  },
4496
+ {
4497
+ type: 'event',
4498
+ anonymous: false,
4499
+ inputs: [
4500
+ {
4501
+ name: 'rate',
4502
+ internalType: 'uint256',
4503
+ type: 'uint256',
4504
+ indexed: false,
4505
+ },
4506
+ ],
4507
+ name: 'IncomeFeeRateSet',
4508
+ },
4297
4509
  {
4298
4510
  type: 'event',
4299
4511
  anonymous: false,
@@ -4367,12 +4579,6 @@ export const padPolicyAbi = [
4367
4579
  type: 'uint256',
4368
4580
  indexed: false,
4369
4581
  },
4370
- {
4371
- name: 'protocolShare',
4372
- internalType: 'uint256',
4373
- type: 'uint256',
4374
- indexed: false,
4375
- },
4376
4582
  {
4377
4583
  name: 'creatorShareMin',
4378
4584
  internalType: 'uint256',
@@ -4404,12 +4610,6 @@ export const padPolicyAbi = [
4404
4610
  type: 'uint256',
4405
4611
  indexed: false,
4406
4612
  },
4407
- {
4408
- name: 'protocolShare',
4409
- internalType: 'uint256',
4410
- type: 'uint256',
4411
- indexed: false,
4412
- },
4413
4613
  ],
4414
4614
  name: 'SplitSet',
4415
4615
  },
@@ -4434,11 +4634,6 @@ export const padPolicyAbi = [
4434
4634
  },
4435
4635
  { type: 'error', inputs: [], name: 'BadFee' },
4436
4636
  { type: 'error', inputs: [], name: 'BadRate' },
4437
- {
4438
- type: 'error',
4439
- inputs: [{ name: 'creator', internalType: 'address', type: 'address' }],
4440
- name: 'CreatorNotListed',
4441
- },
4442
4637
  {
4443
4638
  type: 'error',
4444
4639
  inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
@@ -4460,6 +4655,7 @@ export const padPolicyAbi = [
4460
4655
  { type: 'error', inputs: [], name: 'NotLogAuthority' },
4461
4656
  { type: 'error', inputs: [], name: 'NotManager' },
4462
4657
  { type: 'error', inputs: [], name: 'NotRegistry' },
4658
+ { type: 'error', inputs: [], name: 'NotSponsor' },
4463
4659
  { type: 'error', inputs: [], name: 'OneBase' },
4464
4660
  { type: 'error', inputs: [], name: 'OutOfRange' },
4465
4661
  {
@@ -4487,7 +4683,7 @@ export const polPolicyAbi = [
4487
4683
  type: 'constructor',
4488
4684
  inputs: [
4489
4685
  {
4490
- name: '_manager',
4686
+ name: 'manager_',
4491
4687
  internalType: 'contract FPoolManager',
4492
4688
  type: 'address',
4493
4689
  },
@@ -4508,25 +4704,18 @@ export const polPolicyAbi = [
4508
4704
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
4509
4705
  stateMutability: 'view',
4510
4706
  },
4511
- {
4512
- type: 'function',
4513
- inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4514
- name: 'creator',
4515
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
4516
- stateMutability: 'view',
4517
- },
4518
4707
  {
4519
4708
  type: 'function',
4520
4709
  inputs: [],
4521
- name: 'creatorCurated',
4522
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4710
+ name: 'cManager',
4711
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4523
4712
  stateMutability: 'view',
4524
4713
  },
4525
4714
  {
4526
4715
  type: 'function',
4527
- inputs: [{ name: '', internalType: 'address', type: 'address' }],
4528
- name: 'creatorListed',
4529
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4716
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4717
+ name: 'creator',
4718
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4530
4719
  stateMutability: 'view',
4531
4720
  },
4532
4721
  {
@@ -4543,10 +4732,20 @@ export const polPolicyAbi = [
4543
4732
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4544
4733
  stateMutability: 'view',
4545
4734
  },
4735
+ {
4736
+ type: 'function',
4737
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
4738
+ name: 'incomeFee',
4739
+ outputs: [
4740
+ { name: '', internalType: 'address', type: 'address' },
4741
+ { name: '', internalType: 'uint256', type: 'uint256' },
4742
+ ],
4743
+ stateMutability: 'view',
4744
+ },
4546
4745
  {
4547
4746
  type: 'function',
4548
4747
  inputs: [],
4549
- name: 'keepQuote',
4748
+ name: 'incomeFeeRate',
4550
4749
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4551
4750
  stateMutability: 'view',
4552
4751
  },
@@ -4566,6 +4765,13 @@ export const polPolicyAbi = [
4566
4765
  ],
4567
4766
  stateMutability: 'view',
4568
4767
  },
4768
+ {
4769
+ type: 'function',
4770
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4771
+ name: 'managerOf',
4772
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4773
+ stateMutability: 'view',
4774
+ },
4569
4775
  {
4570
4776
  type: 'function',
4571
4777
  inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
@@ -4604,7 +4810,7 @@ export const polPolicyAbi = [
4604
4810
  {
4605
4811
  type: 'function',
4606
4812
  inputs: [],
4607
- name: 'minQuoteAtSeed',
4813
+ name: 'minQuoteRatio',
4608
4814
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4609
4815
  stateMutability: 'view',
4610
4816
  },
@@ -4629,6 +4835,32 @@ export const polPolicyAbi = [
4629
4835
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4630
4836
  stateMutability: 'view',
4631
4837
  },
4838
+ {
4839
+ type: 'function',
4840
+ inputs: [
4841
+ { name: '', internalType: 'address', type: 'address' },
4842
+ {
4843
+ name: '',
4844
+ internalType: 'struct PoolKey',
4845
+ type: 'tuple',
4846
+ components: [
4847
+ { name: 'base', internalType: 'address', type: 'address' },
4848
+ { name: 'quote', internalType: 'address', type: 'address' },
4849
+ { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
4850
+ { name: 'policy', internalType: 'address', type: 'address' },
4851
+ { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
4852
+ ],
4853
+ },
4854
+ { name: '', internalType: 'uint256', type: 'uint256' },
4855
+ ],
4856
+ name: 'onCInitialize',
4857
+ outputs: [
4858
+ { name: '', internalType: 'uint8', type: 'uint8' },
4859
+ { name: '', internalType: 'uint256', type: 'uint256' },
4860
+ { name: '', internalType: 'uint256', type: 'uint256' },
4861
+ ],
4862
+ stateMutability: 'pure',
4863
+ },
4632
4864
  {
4633
4865
  type: 'function',
4634
4866
  inputs: [
@@ -4703,7 +4935,7 @@ export const polPolicyAbi = [
4703
4935
  components: [
4704
4936
  { name: 'payee', internalType: 'address', type: 'address' },
4705
4937
  { name: 'toPayee', internalType: 'uint256', type: 'uint256' },
4706
- { name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
4938
+ { name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
4707
4939
  { name: 'carried', internalType: 'address', type: 'address' },
4708
4940
  ],
4709
4941
  },
@@ -4741,37 +4973,41 @@ export const polPolicyAbi = [
4741
4973
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4742
4974
  stateMutability: 'view',
4743
4975
  },
4976
+ {
4977
+ type: 'function',
4978
+ inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
4979
+ name: 'setCManager',
4980
+ outputs: [],
4981
+ stateMutability: 'nonpayable',
4982
+ },
4744
4983
  {
4745
4984
  type: 'function',
4746
4985
  inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
4747
- name: 'setCreatorCurated',
4986
+ name: 'setFeeCurated',
4748
4987
  outputs: [],
4749
4988
  stateMutability: 'nonpayable',
4750
4989
  },
4751
4990
  {
4752
4991
  type: 'function',
4753
4992
  inputs: [
4754
- { name: 'who', internalType: 'address', type: 'address' },
4993
+ { name: 'fee', internalType: 'uint256', type: 'uint256' },
4755
4994
  { name: 'listed', internalType: 'bool', type: 'bool' },
4756
4995
  ],
4757
- name: 'setCreatorListed',
4996
+ name: 'setFeeListed',
4758
4997
  outputs: [],
4759
4998
  stateMutability: 'nonpayable',
4760
4999
  },
4761
5000
  {
4762
5001
  type: 'function',
4763
- inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
4764
- name: 'setFeeCurated',
5002
+ inputs: [{ name: 'rate', internalType: 'uint256', type: 'uint256' }],
5003
+ name: 'setIncomeFeeRate',
4765
5004
  outputs: [],
4766
5005
  stateMutability: 'nonpayable',
4767
5006
  },
4768
5007
  {
4769
5008
  type: 'function',
4770
- inputs: [
4771
- { name: 'fee', internalType: 'uint256', type: 'uint256' },
4772
- { name: 'listed', internalType: 'bool', type: 'bool' },
4773
- ],
4774
- name: 'setFeeListed',
5009
+ inputs: [{ name: 'ratio', internalType: 'uint256', type: 'uint256' }],
5010
+ name: 'setMinQuoteRatio',
4775
5011
  outputs: [],
4776
5012
  stateMutability: 'nonpayable',
4777
5013
  },
@@ -4821,13 +5057,10 @@ export const polPolicyAbi = [
4821
5057
  },
4822
5058
  {
4823
5059
  type: 'function',
4824
- inputs: [
4825
- { name: '_keepQuote', internalType: 'uint256', type: 'uint256' },
4826
- { name: '_minQuoteAtSeed', internalType: 'uint256', type: 'uint256' },
4827
- ],
4828
- name: 'setRules',
4829
- outputs: [],
4830
- stateMutability: 'nonpayable',
5060
+ inputs: [],
5061
+ name: 'sponsor',
5062
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
5063
+ stateMutability: 'view',
4831
5064
  },
4832
5065
  {
4833
5066
  type: 'event',
@@ -4869,27 +5102,18 @@ export const polPolicyAbi = [
4869
5102
  ],
4870
5103
  name: 'AuthoritySet',
4871
5104
  },
4872
- {
4873
- type: 'event',
4874
- anonymous: false,
4875
- inputs: [
4876
- { name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
4877
- ],
4878
- name: 'CreatorCuratedSet',
4879
- },
4880
5105
  {
4881
5106
  type: 'event',
4882
5107
  anonymous: false,
4883
5108
  inputs: [
4884
5109
  {
4885
- name: 'creator',
5110
+ name: 'manager',
4886
5111
  internalType: 'address',
4887
5112
  type: 'address',
4888
5113
  indexed: true,
4889
5114
  },
4890
- { name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
4891
5115
  ],
4892
- name: 'CreatorListed',
5116
+ name: 'CManagerSet',
4893
5117
  },
4894
5118
  {
4895
5119
  type: 'event',
@@ -4912,9 +5136,35 @@ export const polPolicyAbi = [
4912
5136
  type: 'event',
4913
5137
  anonymous: false,
4914
5138
  inputs: [
4915
- { name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
5139
+ {
5140
+ name: 'rate',
5141
+ internalType: 'uint256',
5142
+ type: 'uint256',
5143
+ indexed: false,
5144
+ },
4916
5145
  ],
4917
- name: 'MintFeeCuratedSet',
5146
+ name: 'IncomeFeeRateSet',
5147
+ },
5148
+ {
5149
+ type: 'event',
5150
+ anonymous: false,
5151
+ inputs: [
5152
+ {
5153
+ name: 'ratio',
5154
+ internalType: 'uint256',
5155
+ type: 'uint256',
5156
+ indexed: false,
5157
+ },
5158
+ ],
5159
+ name: 'MinQuoteRatioSet',
5160
+ },
5161
+ {
5162
+ type: 'event',
5163
+ anonymous: false,
5164
+ inputs: [
5165
+ { name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
5166
+ ],
5167
+ name: 'MintFeeCuratedSet',
4918
5168
  },
4919
5169
  {
4920
5170
  type: 'event',
@@ -4971,32 +5221,8 @@ export const polPolicyAbi = [
4971
5221
  ],
4972
5222
  name: 'QuoteListed',
4973
5223
  },
4974
- {
4975
- type: 'event',
4976
- anonymous: false,
4977
- inputs: [
4978
- {
4979
- name: 'keepQuote',
4980
- internalType: 'uint256',
4981
- type: 'uint256',
4982
- indexed: false,
4983
- },
4984
- {
4985
- name: 'minQuoteAtSeed',
4986
- internalType: 'uint256',
4987
- type: 'uint256',
4988
- indexed: false,
4989
- },
4990
- ],
4991
- name: 'RulesSet',
4992
- },
4993
5224
  { type: 'error', inputs: [], name: 'BadFee' },
4994
5225
  { type: 'error', inputs: [], name: 'BadRate' },
4995
- {
4996
- type: 'error',
4997
- inputs: [{ name: 'creator', internalType: 'address', type: 'address' }],
4998
- name: 'CreatorNotListed',
4999
- },
5000
5226
  {
5001
5227
  type: 'error',
5002
5228
  inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
@@ -5012,6 +5238,7 @@ export const polPolicyAbi = [
5012
5238
  { type: 'error', inputs: [], name: 'NotLogAuthority' },
5013
5239
  { type: 'error', inputs: [], name: 'NotManager' },
5014
5240
  { type: 'error', inputs: [], name: 'NotRegistry' },
5241
+ { type: 'error', inputs: [], name: 'NotSponsor' },
5015
5242
  { type: 'error', inputs: [], name: 'OneBase' },
5016
5243
  {
5017
5244
  type: 'error',
@@ -5041,6 +5268,17 @@ export const policyRegistryAbi = [
5041
5268
  outputs: [],
5042
5269
  stateMutability: 'nonpayable',
5043
5270
  },
5271
+ {
5272
+ type: 'function',
5273
+ inputs: [
5274
+ { name: 'policy', internalType: 'address', type: 'address' },
5275
+ { name: 'caller', internalType: 'address', type: 'address' },
5276
+ { name: 'creator', internalType: 'address', type: 'address' },
5277
+ ],
5278
+ name: 'admit',
5279
+ outputs: [{ name: 'who', internalType: 'address', type: 'address' }],
5280
+ stateMutability: 'view',
5281
+ },
5044
5282
  {
5045
5283
  type: 'function',
5046
5284
  inputs: [
@@ -5051,6 +5289,29 @@ export const policyRegistryAbi = [
5051
5289
  outputs: [],
5052
5290
  stateMutability: 'nonpayable',
5053
5291
  },
5292
+ {
5293
+ type: 'function',
5294
+ inputs: [
5295
+ { name: 'policy', internalType: 'address', type: 'address' },
5296
+ { name: 'sponsor', internalType: 'address', type: 'address' },
5297
+ ],
5298
+ name: 'bindSponsor',
5299
+ outputs: [],
5300
+ stateMutability: 'nonpayable',
5301
+ },
5302
+ {
5303
+ type: 'function',
5304
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
5305
+ name: 'creationMode',
5306
+ outputs: [
5307
+ {
5308
+ name: '',
5309
+ internalType: 'enum PolicyRegistry.CreationMode',
5310
+ type: 'uint8',
5311
+ },
5312
+ ],
5313
+ stateMutability: 'view',
5314
+ },
5054
5315
  {
5055
5316
  type: 'function',
5056
5317
  inputs: [{ name: '', internalType: 'address', type: 'address' }],
@@ -5063,6 +5324,23 @@ export const policyRegistryAbi = [
5063
5324
  ],
5064
5325
  stateMutability: 'view',
5065
5326
  },
5327
+ {
5328
+ type: 'function',
5329
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
5330
+ name: 'forwarderTrusted',
5331
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
5332
+ stateMutability: 'view',
5333
+ },
5334
+ {
5335
+ type: 'function',
5336
+ inputs: [
5337
+ { name: '', internalType: 'address', type: 'address' },
5338
+ { name: '', internalType: 'address', type: 'address' },
5339
+ ],
5340
+ name: 'initializerListed',
5341
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
5342
+ stateMutability: 'view',
5343
+ },
5066
5344
  {
5067
5345
  type: 'function',
5068
5346
  inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
@@ -5109,6 +5387,43 @@ export const policyRegistryAbi = [
5109
5387
  outputs: [],
5110
5388
  stateMutability: 'nonpayable',
5111
5389
  },
5390
+ {
5391
+ type: 'function',
5392
+ inputs: [
5393
+ { name: 'manager', internalType: 'address', type: 'address' },
5394
+ {
5395
+ name: 'key',
5396
+ internalType: 'struct FPoolKey',
5397
+ type: 'tuple',
5398
+ components: [
5399
+ { name: 'quote', internalType: 'address', type: 'address' },
5400
+ { name: 'bases', internalType: 'address[]', type: 'address[]' },
5401
+ { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
5402
+ { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
5403
+ { name: 'policy', internalType: 'address', type: 'address' },
5404
+ { name: 'creator', internalType: 'address', type: 'address' },
5405
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
5406
+ { name: 'lnCapOverFloor', internalType: 'uint24', type: 'uint24' },
5407
+ ],
5408
+ },
5409
+ { name: 'to', internalType: 'address', type: 'address' },
5410
+ {
5411
+ name: 'permissions',
5412
+ internalType: 'struct IPrivatePolicyMigration.Permissions',
5413
+ type: 'tuple',
5414
+ components: [
5415
+ { name: 'swapMode', internalType: 'uint8', type: 'uint8' },
5416
+ { name: 'executor', internalType: 'address', type: 'address' },
5417
+ { name: 'mintGated', internalType: 'bool', type: 'bool' },
5418
+ { name: 'minters', internalType: 'address[]', type: 'address[]' },
5419
+ { name: 'takers', internalType: 'address[]', type: 'address[]' },
5420
+ ],
5421
+ },
5422
+ ],
5423
+ name: 'migratePrivate',
5424
+ outputs: [],
5425
+ stateMutability: 'nonpayable',
5426
+ },
5112
5427
  {
5113
5428
  type: 'function',
5114
5429
  inputs: [],
@@ -5137,6 +5452,41 @@ export const policyRegistryAbi = [
5137
5452
  outputs: [],
5138
5453
  stateMutability: 'nonpayable',
5139
5454
  },
5455
+ {
5456
+ type: 'function',
5457
+ inputs: [
5458
+ { name: 'policy', internalType: 'address', type: 'address' },
5459
+ {
5460
+ name: 'mode',
5461
+ internalType: 'enum PolicyRegistry.CreationMode',
5462
+ type: 'uint8',
5463
+ },
5464
+ ],
5465
+ name: 'setCreationMode',
5466
+ outputs: [],
5467
+ stateMutability: 'nonpayable',
5468
+ },
5469
+ {
5470
+ type: 'function',
5471
+ inputs: [
5472
+ { name: 'forwarder', internalType: 'address', type: 'address' },
5473
+ { name: 'trusted', internalType: 'bool', type: 'bool' },
5474
+ ],
5475
+ name: 'setForwarderTrusted',
5476
+ outputs: [],
5477
+ stateMutability: 'nonpayable',
5478
+ },
5479
+ {
5480
+ type: 'function',
5481
+ inputs: [
5482
+ { name: 'policy', internalType: 'address', type: 'address' },
5483
+ { name: 'who', internalType: 'address', type: 'address' },
5484
+ { name: 'allowed', internalType: 'bool', type: 'bool' },
5485
+ ],
5486
+ name: 'setInitializerListed',
5487
+ outputs: [],
5488
+ stateMutability: 'nonpayable',
5489
+ },
5140
5490
  {
5141
5491
  type: 'function',
5142
5492
  inputs: [
@@ -5154,6 +5504,13 @@ export const policyRegistryAbi = [
5154
5504
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
5155
5505
  stateMutability: 'view',
5156
5506
  },
5507
+ {
5508
+ type: 'function',
5509
+ inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
5510
+ name: 'sponsorOf',
5511
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
5512
+ stateMutability: 'view',
5513
+ },
5157
5514
  {
5158
5515
  type: 'function',
5159
5516
  inputs: [
@@ -5183,6 +5540,54 @@ export const policyRegistryAbi = [
5183
5540
  ],
5184
5541
  name: 'Approved',
5185
5542
  },
5543
+ {
5544
+ type: 'event',
5545
+ anonymous: false,
5546
+ inputs: [
5547
+ {
5548
+ name: 'policy',
5549
+ internalType: 'address',
5550
+ type: 'address',
5551
+ indexed: true,
5552
+ },
5553
+ {
5554
+ name: 'mode',
5555
+ internalType: 'enum PolicyRegistry.CreationMode',
5556
+ type: 'uint8',
5557
+ indexed: false,
5558
+ },
5559
+ ],
5560
+ name: 'CreationModeSet',
5561
+ },
5562
+ {
5563
+ type: 'event',
5564
+ anonymous: false,
5565
+ inputs: [
5566
+ {
5567
+ name: 'forwarder',
5568
+ internalType: 'address',
5569
+ type: 'address',
5570
+ indexed: true,
5571
+ },
5572
+ { name: 'trusted', internalType: 'bool', type: 'bool', indexed: false },
5573
+ ],
5574
+ name: 'ForwarderTrusted',
5575
+ },
5576
+ {
5577
+ type: 'event',
5578
+ anonymous: false,
5579
+ inputs: [
5580
+ {
5581
+ name: 'policy',
5582
+ internalType: 'address',
5583
+ type: 'address',
5584
+ indexed: true,
5585
+ },
5586
+ { name: 'who', internalType: 'address', type: 'address', indexed: true },
5587
+ { name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
5588
+ ],
5589
+ name: 'InitializerListed',
5590
+ },
5186
5591
  {
5187
5592
  type: 'event',
5188
5593
  anonymous: false,
@@ -5256,6 +5661,25 @@ export const policyRegistryAbi = [
5256
5661
  ],
5257
5662
  name: 'Revoked',
5258
5663
  },
5664
+ {
5665
+ type: 'event',
5666
+ anonymous: false,
5667
+ inputs: [
5668
+ {
5669
+ name: 'policy',
5670
+ internalType: 'address',
5671
+ type: 'address',
5672
+ indexed: true,
5673
+ },
5674
+ {
5675
+ name: 'sponsor',
5676
+ internalType: 'address',
5677
+ type: 'address',
5678
+ indexed: true,
5679
+ },
5680
+ ],
5681
+ name: 'SponsorBound',
5682
+ },
5259
5683
  {
5260
5684
  type: 'event',
5261
5685
  anonymous: false,
@@ -5290,12 +5714,16 @@ export const policyRegistryAbi = [
5290
5714
  name: 'SunsetSet',
5291
5715
  },
5292
5716
  { type: 'error', inputs: [], name: 'BadSunset' },
5717
+ { type: 'error', inputs: [], name: 'InitializerNotListed' },
5718
+ { type: 'error', inputs: [], name: 'InvalidForwardedUser' },
5293
5719
  { type: 'error', inputs: [], name: 'KindMismatch' },
5294
5720
  { type: 'error', inputs: [], name: 'NoPool' },
5295
5721
  { type: 'error', inputs: [], name: 'NotAPolicy' },
5296
5722
  { type: 'error', inputs: [], name: 'NotListed' },
5297
5723
  { type: 'error', inputs: [], name: 'NotLogAuthority' },
5724
+ { type: 'error', inputs: [], name: 'PrivatePermissionsRequired' },
5298
5725
  { type: 'error', inputs: [], name: 'SamePolicy' },
5726
+ { type: 'error', inputs: [], name: 'SponsorOnly' },
5299
5727
  { type: 'error', inputs: [], name: 'WrongManager' },
5300
5728
  ] as const
5301
5729
 
@@ -5336,23 +5764,6 @@ export const privatePolicyAbi = [
5336
5764
  outputs: [],
5337
5765
  stateMutability: 'nonpayable',
5338
5766
  },
5339
- {
5340
- type: 'function',
5341
- inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
5342
- name: 'acceptOperator',
5343
- outputs: [],
5344
- stateMutability: 'nonpayable',
5345
- },
5346
- {
5347
- type: 'function',
5348
- inputs: [
5349
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
5350
- { name: 'who', internalType: 'address', type: 'address' },
5351
- ],
5352
- name: 'appointOperator',
5353
- outputs: [],
5354
- stateMutability: 'nonpayable',
5355
- },
5356
5767
  {
5357
5768
  type: 'function',
5358
5769
  inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
@@ -5362,23 +5773,37 @@ export const privatePolicyAbi = [
5362
5773
  },
5363
5774
  {
5364
5775
  type: 'function',
5365
- inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
5366
- name: 'creator',
5776
+ inputs: [],
5777
+ name: 'cManager',
5367
5778
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
5368
5779
  stateMutability: 'view',
5369
5780
  },
5370
5781
  {
5371
5782
  type: 'function',
5372
- inputs: [],
5373
- name: 'creatorCurated',
5374
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
5375
- stateMutability: 'view',
5783
+ inputs: [
5784
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
5785
+ {
5786
+ name: 'permissions',
5787
+ internalType: 'struct IPrivatePolicyMigration.Permissions',
5788
+ type: 'tuple',
5789
+ components: [
5790
+ { name: 'swapMode', internalType: 'uint8', type: 'uint8' },
5791
+ { name: 'executor', internalType: 'address', type: 'address' },
5792
+ { name: 'mintGated', internalType: 'bool', type: 'bool' },
5793
+ { name: 'minters', internalType: 'address[]', type: 'address[]' },
5794
+ { name: 'takers', internalType: 'address[]', type: 'address[]' },
5795
+ ],
5796
+ },
5797
+ ],
5798
+ name: 'configureMigration',
5799
+ outputs: [],
5800
+ stateMutability: 'nonpayable',
5376
5801
  },
5377
5802
  {
5378
5803
  type: 'function',
5379
- inputs: [{ name: '', internalType: 'address', type: 'address' }],
5380
- name: 'creatorListed',
5381
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
5804
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
5805
+ name: 'creator',
5806
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
5382
5807
  stateMutability: 'view',
5383
5808
  },
5384
5809
  {
@@ -5405,8 +5830,11 @@ export const privatePolicyAbi = [
5405
5830
  {
5406
5831
  type: 'function',
5407
5832
  inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
5408
- name: 'gateSwap',
5409
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
5833
+ name: 'incomeFee',
5834
+ outputs: [
5835
+ { name: '', internalType: 'address', type: 'address' },
5836
+ { name: '', internalType: 'uint256', type: 'uint256' },
5837
+ ],
5410
5838
  stateMutability: 'view',
5411
5839
  },
5412
5840
  {
@@ -5462,6 +5890,13 @@ export const privatePolicyAbi = [
5462
5890
  ],
5463
5891
  stateMutability: 'view',
5464
5892
  },
5893
+ {
5894
+ type: 'function',
5895
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
5896
+ name: 'managerOf',
5897
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
5898
+ stateMutability: 'view',
5899
+ },
5465
5900
  {
5466
5901
  type: 'function',
5467
5902
  inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
@@ -5518,6 +5953,32 @@ export const privatePolicyAbi = [
5518
5953
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
5519
5954
  stateMutability: 'view',
5520
5955
  },
5956
+ {
5957
+ type: 'function',
5958
+ inputs: [
5959
+ { name: 'initializer', internalType: 'address', type: 'address' },
5960
+ {
5961
+ name: 'key',
5962
+ internalType: 'struct PoolKey',
5963
+ type: 'tuple',
5964
+ components: [
5965
+ { name: 'base', internalType: 'address', type: 'address' },
5966
+ { name: 'quote', internalType: 'address', type: 'address' },
5967
+ { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
5968
+ { name: 'policy', internalType: 'address', type: 'address' },
5969
+ { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
5970
+ ],
5971
+ },
5972
+ { name: 'mintFee', internalType: 'uint256', type: 'uint256' },
5973
+ ],
5974
+ name: 'onCInitialize',
5975
+ outputs: [
5976
+ { name: '', internalType: 'uint8', type: 'uint8' },
5977
+ { name: '', internalType: 'uint256', type: 'uint256' },
5978
+ { name: '', internalType: 'uint256', type: 'uint256' },
5979
+ ],
5980
+ stateMutability: 'nonpayable',
5981
+ },
5521
5982
  {
5522
5983
  type: 'function',
5523
5984
  inputs: [
@@ -5592,7 +6053,7 @@ export const privatePolicyAbi = [
5592
6053
  components: [
5593
6054
  { name: 'payee', internalType: 'address', type: 'address' },
5594
6055
  { name: 'toPayee', internalType: 'uint256', type: 'uint256' },
5595
- { name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
6056
+ { name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
5596
6057
  { name: 'carried', internalType: 'address', type: 'address' },
5597
6058
  ],
5598
6059
  },
@@ -5602,28 +6063,31 @@ export const privatePolicyAbi = [
5602
6063
  {
5603
6064
  type: 'function',
5604
6065
  inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
5605
- name: 'operator',
6066
+ name: 'pendingAuthority',
5606
6067
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
5607
6068
  stateMutability: 'view',
5608
6069
  },
5609
6070
  {
5610
6071
  type: 'function',
5611
6072
  inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
5612
- name: 'operatorOf',
5613
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
5614
- stateMutability: 'view',
5615
- },
5616
- {
5617
- type: 'function',
5618
- inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
5619
- name: 'pendingAuthority',
5620
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
6073
+ name: 'permissionsOf',
6074
+ outputs: [
6075
+ {
6076
+ name: 'mode',
6077
+ internalType: 'enum PrivatePolicy.SwapMode',
6078
+ type: 'uint8',
6079
+ },
6080
+ { name: 'executor', internalType: 'address', type: 'address' },
6081
+ { name: 'mintGated', internalType: 'bool', type: 'bool' },
6082
+ { name: 'authority_', internalType: 'address', type: 'address' },
6083
+ { name: 'operator_', internalType: 'address', type: 'address' },
6084
+ ],
5621
6085
  stateMutability: 'view',
5622
6086
  },
5623
6087
  {
5624
6088
  type: 'function',
5625
6089
  inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
5626
- name: 'pendingOperator',
6090
+ name: 'poolOperator',
5627
6091
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
5628
6092
  stateMutability: 'view',
5629
6093
  },
@@ -5650,21 +6114,11 @@ export const privatePolicyAbi = [
5650
6114
  name: 'quoteListed',
5651
6115
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
5652
6116
  stateMutability: 'view',
5653
- },
5654
- {
5655
- type: 'function',
5656
- inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
5657
- name: 'setCreatorCurated',
5658
- outputs: [],
5659
- stateMutability: 'nonpayable',
5660
- },
5661
- {
5662
- type: 'function',
5663
- inputs: [
5664
- { name: 'who', internalType: 'address', type: 'address' },
5665
- { name: 'listed', internalType: 'bool', type: 'bool' },
5666
- ],
5667
- name: 'setCreatorListed',
6117
+ },
6118
+ {
6119
+ type: 'function',
6120
+ inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
6121
+ name: 'setCManager',
5668
6122
  outputs: [],
5669
6123
  stateMutability: 'nonpayable',
5670
6124
  },
@@ -5685,17 +6139,6 @@ export const privatePolicyAbi = [
5685
6139
  outputs: [],
5686
6140
  stateMutability: 'nonpayable',
5687
6141
  },
5688
- {
5689
- type: 'function',
5690
- inputs: [
5691
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
5692
- { name: '_gateMint', internalType: 'bool', type: 'bool' },
5693
- { name: '_gateSwap', internalType: 'bool', type: 'bool' },
5694
- ],
5695
- name: 'setGates',
5696
- outputs: [],
5697
- stateMutability: 'nonpayable',
5698
- },
5699
6142
  {
5700
6143
  type: 'function',
5701
6144
  inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
@@ -5713,6 +6156,16 @@ export const privatePolicyAbi = [
5713
6156
  outputs: [],
5714
6157
  stateMutability: 'nonpayable',
5715
6158
  },
6159
+ {
6160
+ type: 'function',
6161
+ inputs: [
6162
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
6163
+ { name: 'gated', internalType: 'bool', type: 'bool' },
6164
+ ],
6165
+ name: 'setMintGate',
6166
+ outputs: [],
6167
+ stateMutability: 'nonpayable',
6168
+ },
5716
6169
  {
5717
6170
  type: 'function',
5718
6171
  inputs: [
@@ -5734,6 +6187,16 @@ export const privatePolicyAbi = [
5734
6187
  outputs: [],
5735
6188
  stateMutability: 'nonpayable',
5736
6189
  },
6190
+ {
6191
+ type: 'function',
6192
+ inputs: [
6193
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
6194
+ { name: 'who', internalType: 'address', type: 'address' },
6195
+ ],
6196
+ name: 'setPoolOperator',
6197
+ outputs: [],
6198
+ stateMutability: 'nonpayable',
6199
+ },
5737
6200
  {
5738
6201
  type: 'function',
5739
6202
  inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
@@ -5751,6 +6214,21 @@ export const privatePolicyAbi = [
5751
6214
  outputs: [],
5752
6215
  stateMutability: 'nonpayable',
5753
6216
  },
6217
+ {
6218
+ type: 'function',
6219
+ inputs: [
6220
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
6221
+ {
6222
+ name: 'mode',
6223
+ internalType: 'enum PrivatePolicy.SwapMode',
6224
+ type: 'uint8',
6225
+ },
6226
+ { name: 'executor', internalType: 'address', type: 'address' },
6227
+ ],
6228
+ name: 'setSwapMode',
6229
+ outputs: [],
6230
+ stateMutability: 'nonpayable',
6231
+ },
5754
6232
  {
5755
6233
  type: 'function',
5756
6234
  inputs: [
@@ -5762,6 +6240,27 @@ export const privatePolicyAbi = [
5762
6240
  outputs: [],
5763
6241
  stateMutability: 'nonpayable',
5764
6242
  },
6243
+ {
6244
+ type: 'function',
6245
+ inputs: [],
6246
+ name: 'sponsor',
6247
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
6248
+ stateMutability: 'view',
6249
+ },
6250
+ {
6251
+ type: 'function',
6252
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
6253
+ name: 'swapPermission',
6254
+ outputs: [
6255
+ {
6256
+ name: 'mode',
6257
+ internalType: 'enum PrivatePolicy.SwapMode',
6258
+ type: 'uint8',
6259
+ },
6260
+ { name: 'executor', internalType: 'address', type: 'address' },
6261
+ ],
6262
+ stateMutability: 'view',
6263
+ },
5765
6264
  {
5766
6265
  type: 'event',
5767
6266
  anonymous: false,
@@ -5802,27 +6301,18 @@ export const privatePolicyAbi = [
5802
6301
  ],
5803
6302
  name: 'AuthoritySet',
5804
6303
  },
5805
- {
5806
- type: 'event',
5807
- anonymous: false,
5808
- inputs: [
5809
- { name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
5810
- ],
5811
- name: 'CreatorCuratedSet',
5812
- },
5813
6304
  {
5814
6305
  type: 'event',
5815
6306
  anonymous: false,
5816
6307
  inputs: [
5817
6308
  {
5818
- name: 'creator',
6309
+ name: 'manager',
5819
6310
  internalType: 'address',
5820
6311
  type: 'address',
5821
6312
  indexed: true,
5822
6313
  },
5823
- { name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
5824
6314
  ],
5825
- name: 'CreatorListed',
6315
+ name: 'CManagerSet',
5826
6316
  },
5827
6317
  {
5828
6318
  type: 'event',
@@ -5841,21 +6331,6 @@ export const privatePolicyAbi = [
5841
6331
  ],
5842
6332
  name: 'FeeListed',
5843
6333
  },
5844
- {
5845
- type: 'event',
5846
- anonymous: false,
5847
- inputs: [
5848
- {
5849
- name: 'poolId',
5850
- internalType: 'bytes32',
5851
- type: 'bytes32',
5852
- indexed: true,
5853
- },
5854
- { name: 'gateMint', internalType: 'bool', type: 'bool', indexed: false },
5855
- { name: 'gateSwap', internalType: 'bool', type: 'bool', indexed: false },
5856
- ],
5857
- name: 'GatesSet',
5858
- },
5859
6334
  {
5860
6335
  type: 'event',
5861
6336
  anonymous: false,
@@ -5910,14 +6385,9 @@ export const privatePolicyAbi = [
5910
6385
  type: 'bytes32',
5911
6386
  indexed: true,
5912
6387
  },
5913
- {
5914
- name: 'name',
5915
- internalType: 'bytes32',
5916
- type: 'bytes32',
5917
- indexed: false,
5918
- },
6388
+ { name: 'gated', internalType: 'bool', type: 'bool', indexed: false },
5919
6389
  ],
5920
- name: 'NameSet',
6390
+ name: 'MintGateSet',
5921
6391
  },
5922
6392
  {
5923
6393
  type: 'event',
@@ -5930,19 +6400,13 @@ export const privatePolicyAbi = [
5930
6400
  indexed: true,
5931
6401
  },
5932
6402
  {
5933
- name: 'current',
5934
- internalType: 'address',
5935
- type: 'address',
5936
- indexed: true,
5937
- },
5938
- {
5939
- name: 'proposed',
5940
- internalType: 'address',
5941
- type: 'address',
5942
- indexed: true,
6403
+ name: 'name',
6404
+ internalType: 'bytes32',
6405
+ type: 'bytes32',
6406
+ indexed: false,
5943
6407
  },
5944
6408
  ],
5945
- name: 'OperatorProposed',
6409
+ name: 'NameSet',
5946
6410
  },
5947
6411
  {
5948
6412
  type: 'event',
@@ -5957,7 +6421,7 @@ export const privatePolicyAbi = [
5957
6421
  { name: 'prev', internalType: 'address', type: 'address', indexed: true },
5958
6422
  { name: 'next', internalType: 'address', type: 'address', indexed: true },
5959
6423
  ],
5960
- name: 'OperatorSet',
6424
+ name: 'PoolOperatorSet',
5961
6425
  },
5962
6426
  {
5963
6427
  type: 'event',
@@ -5981,18 +6445,40 @@ export const privatePolicyAbi = [
5981
6445
  ],
5982
6446
  name: 'QuoteListed',
5983
6447
  },
5984
- { type: 'error', inputs: [], name: 'BadFee' },
5985
- { type: 'error', inputs: [], name: 'BadRate' },
5986
6448
  {
5987
- type: 'error',
5988
- inputs: [{ name: 'creator', internalType: 'address', type: 'address' }],
5989
- name: 'CreatorNotListed',
6449
+ type: 'event',
6450
+ anonymous: false,
6451
+ inputs: [
6452
+ {
6453
+ name: 'poolId',
6454
+ internalType: 'bytes32',
6455
+ type: 'bytes32',
6456
+ indexed: true,
6457
+ },
6458
+ {
6459
+ name: 'mode',
6460
+ internalType: 'enum PrivatePolicy.SwapMode',
6461
+ type: 'uint8',
6462
+ indexed: false,
6463
+ },
6464
+ {
6465
+ name: 'executor',
6466
+ internalType: 'address',
6467
+ type: 'address',
6468
+ indexed: true,
6469
+ },
6470
+ ],
6471
+ name: 'SwapModeSet',
5990
6472
  },
6473
+ { type: 'error', inputs: [], name: 'BadFee' },
6474
+ { type: 'error', inputs: [], name: 'BadRate' },
6475
+ { type: 'error', inputs: [], name: 'BadSwapMode' },
5991
6476
  {
5992
6477
  type: 'error',
5993
6478
  inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
5994
6479
  name: 'FeeNotListed',
5995
6480
  },
6481
+ { type: 'error', inputs: [], name: 'InactivePool' },
5996
6482
  {
5997
6483
  type: 'error',
5998
6484
  inputs: [{ name: 'mintFee', internalType: 'uint256', type: 'uint256' }],
@@ -6002,8 +6488,8 @@ export const privatePolicyAbi = [
6002
6488
  { type: 'error', inputs: [], name: 'NotAuthority' },
6003
6489
  { type: 'error', inputs: [], name: 'NotLogAuthority' },
6004
6490
  { type: 'error', inputs: [], name: 'NotManager' },
6005
- { type: 'error', inputs: [], name: 'NotOperator' },
6006
6491
  { type: 'error', inputs: [], name: 'NotRegistry' },
6492
+ { type: 'error', inputs: [], name: 'NotSponsor' },
6007
6493
  { type: 'error', inputs: [], name: 'OneBase' },
6008
6494
  {
6009
6495
  type: 'error',
@@ -6076,27 +6562,6 @@ export const publicPolicyAbi = [
6076
6562
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
6077
6563
  stateMutability: 'view',
6078
6564
  },
6079
- {
6080
- type: 'function',
6081
- inputs: [],
6082
- name: 'creatorCurated',
6083
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
6084
- stateMutability: 'view',
6085
- },
6086
- {
6087
- type: 'function',
6088
- inputs: [{ name: '', internalType: 'address', type: 'address' }],
6089
- name: 'creatorListed',
6090
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
6091
- stateMutability: 'view',
6092
- },
6093
- {
6094
- type: 'function',
6095
- inputs: [],
6096
- name: 'curated',
6097
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
6098
- stateMutability: 'view',
6099
- },
6100
6565
  {
6101
6566
  type: 'function',
6102
6567
  inputs: [],
@@ -6113,9 +6578,12 @@ export const publicPolicyAbi = [
6113
6578
  },
6114
6579
  {
6115
6580
  type: 'function',
6116
- inputs: [{ name: '', internalType: 'address', type: 'address' }],
6117
- name: 'forwarderTrusted',
6118
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
6581
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
6582
+ name: 'incomeFee',
6583
+ outputs: [
6584
+ { name: '', internalType: 'address', type: 'address' },
6585
+ { name: '', internalType: 'uint256', type: 'uint256' },
6586
+ ],
6119
6587
  stateMutability: 'view',
6120
6588
  },
6121
6589
  {
@@ -6125,13 +6593,6 @@ export const publicPolicyAbi = [
6125
6593
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
6126
6594
  stateMutability: 'pure',
6127
6595
  },
6128
- {
6129
- type: 'function',
6130
- inputs: [{ name: '', internalType: 'address', type: 'address' }],
6131
- name: 'listed',
6132
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
6133
- stateMutability: 'view',
6134
- },
6135
6596
  {
6136
6597
  type: 'function',
6137
6598
  inputs: [],
@@ -6141,6 +6602,13 @@ export const publicPolicyAbi = [
6141
6602
  ],
6142
6603
  stateMutability: 'view',
6143
6604
  },
6605
+ {
6606
+ type: 'function',
6607
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
6608
+ name: 'managerOf',
6609
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
6610
+ stateMutability: 'view',
6611
+ },
6144
6612
  {
6145
6613
  type: 'function',
6146
6614
  inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
@@ -6209,6 +6677,7 @@ export const publicPolicyAbi = [
6209
6677
  { name: 'base', internalType: 'address', type: 'address' },
6210
6678
  { name: 'quote', internalType: 'address', type: 'address' },
6211
6679
  { name: 'tickSpacing', internalType: 'int256', type: 'int256' },
6680
+ { name: 'policy', internalType: 'address', type: 'address' },
6212
6681
  { name: 'swapFee', internalType: 'uint256', type: 'uint256' },
6213
6682
  ],
6214
6683
  },
@@ -6216,6 +6685,7 @@ export const publicPolicyAbi = [
6216
6685
  ],
6217
6686
  name: 'onCInitialize',
6218
6687
  outputs: [
6688
+ { name: '', internalType: 'uint8', type: 'uint8' },
6219
6689
  { name: '', internalType: 'uint256', type: 'uint256' },
6220
6690
  { name: '', internalType: 'uint256', type: 'uint256' },
6221
6691
  ],
@@ -6295,7 +6765,7 @@ export const publicPolicyAbi = [
6295
6765
  components: [
6296
6766
  { name: 'payee', internalType: 'address', type: 'address' },
6297
6767
  { name: 'toPayee', internalType: 'uint256', type: 'uint256' },
6298
- { name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
6768
+ { name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
6299
6769
  { name: 'carried', internalType: 'address', type: 'address' },
6300
6770
  ],
6301
6771
  },
@@ -6352,25 +6822,8 @@ export const publicPolicyAbi = [
6352
6822
  },
6353
6823
  {
6354
6824
  type: 'function',
6355
- inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
6356
- name: 'setCreatorCurated',
6357
- outputs: [],
6358
- stateMutability: 'nonpayable',
6359
- },
6360
- {
6361
- type: 'function',
6362
- inputs: [
6363
- { name: 'who', internalType: 'address', type: 'address' },
6364
- { name: 'listed', internalType: 'bool', type: 'bool' },
6365
- ],
6366
- name: 'setCreatorListed',
6367
- outputs: [],
6368
- stateMutability: 'nonpayable',
6369
- },
6370
- {
6371
- type: 'function',
6372
- inputs: [{ name: '_curated', internalType: 'bool', type: 'bool' }],
6373
- name: 'setCurated',
6825
+ inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
6826
+ name: 'setCManager',
6374
6827
  outputs: [],
6375
6828
  stateMutability: 'nonpayable',
6376
6829
  },
@@ -6391,26 +6844,6 @@ export const publicPolicyAbi = [
6391
6844
  outputs: [],
6392
6845
  stateMutability: 'nonpayable',
6393
6846
  },
6394
- {
6395
- type: 'function',
6396
- inputs: [
6397
- { name: 'forwarder', internalType: 'address', type: 'address' },
6398
- { name: 'trusted', internalType: 'bool', type: 'bool' },
6399
- ],
6400
- name: 'setForwarderTrusted',
6401
- outputs: [],
6402
- stateMutability: 'nonpayable',
6403
- },
6404
- {
6405
- type: 'function',
6406
- inputs: [
6407
- { name: 'token', internalType: 'address', type: 'address' },
6408
- { name: '_listed', internalType: 'bool', type: 'bool' },
6409
- ],
6410
- name: 'setListed',
6411
- outputs: [],
6412
- stateMutability: 'nonpayable',
6413
- },
6414
6847
  {
6415
6848
  type: 'function',
6416
6849
  inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
@@ -6497,6 +6930,13 @@ export const publicPolicyAbi = [
6497
6930
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
6498
6931
  stateMutability: 'view',
6499
6932
  },
6933
+ {
6934
+ type: 'function',
6935
+ inputs: [],
6936
+ name: 'sponsor',
6937
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
6938
+ stateMutability: 'view',
6939
+ },
6500
6940
  {
6501
6941
  type: 'function',
6502
6942
  inputs: [],
@@ -6544,35 +6984,18 @@ export const publicPolicyAbi = [
6544
6984
  ],
6545
6985
  name: 'AuthoritySet',
6546
6986
  },
6547
- {
6548
- type: 'event',
6549
- anonymous: false,
6550
- inputs: [
6551
- { name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
6552
- ],
6553
- name: 'CreatorCuratedSet',
6554
- },
6555
6987
  {
6556
6988
  type: 'event',
6557
6989
  anonymous: false,
6558
6990
  inputs: [
6559
6991
  {
6560
- name: 'creator',
6992
+ name: 'manager',
6561
6993
  internalType: 'address',
6562
6994
  type: 'address',
6563
6995
  indexed: true,
6564
6996
  },
6565
- { name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
6566
- ],
6567
- name: 'CreatorListed',
6568
- },
6569
- {
6570
- type: 'event',
6571
- anonymous: false,
6572
- inputs: [
6573
- { name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
6574
6997
  ],
6575
- name: 'CuratedSet',
6998
+ name: 'CManagerSet',
6576
6999
  },
6577
7000
  {
6578
7001
  type: 'event',
@@ -6591,34 +7014,6 @@ export const publicPolicyAbi = [
6591
7014
  ],
6592
7015
  name: 'FeeListed',
6593
7016
  },
6594
- {
6595
- type: 'event',
6596
- anonymous: false,
6597
- inputs: [
6598
- {
6599
- name: 'forwarder',
6600
- internalType: 'address',
6601
- type: 'address',
6602
- indexed: true,
6603
- },
6604
- { name: 'trusted', internalType: 'bool', type: 'bool', indexed: false },
6605
- ],
6606
- name: 'ForwarderTrusted',
6607
- },
6608
- {
6609
- type: 'event',
6610
- anonymous: false,
6611
- inputs: [
6612
- {
6613
- name: 'token',
6614
- internalType: 'address',
6615
- type: 'address',
6616
- indexed: true,
6617
- },
6618
- { name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
6619
- ],
6620
- name: 'Listed',
6621
- },
6622
7017
  {
6623
7018
  type: 'event',
6624
7019
  anonymous: false,
@@ -6729,11 +7124,6 @@ export const publicPolicyAbi = [
6729
7124
  },
6730
7125
  { type: 'error', inputs: [], name: 'BadFee' },
6731
7126
  { type: 'error', inputs: [], name: 'BadRate' },
6732
- {
6733
- type: 'error',
6734
- inputs: [{ name: 'creator', internalType: 'address', type: 'address' }],
6735
- name: 'CreatorNotListed',
6736
- },
6737
7127
  {
6738
7128
  type: 'error',
6739
7129
  inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
@@ -6754,21 +7144,12 @@ export const publicPolicyAbi = [
6754
7144
  name: 'MintFeeNotListed',
6755
7145
  },
6756
7146
  { type: 'error', inputs: [], name: 'NoCreator' },
6757
- {
6758
- type: 'error',
6759
- inputs: [{ name: 'forwarder', internalType: 'address', type: 'address' }],
6760
- name: 'NoForwardedUser',
6761
- },
6762
7147
  { type: 'error', inputs: [], name: 'NotAuthority' },
6763
7148
  { type: 'error', inputs: [], name: 'NotCanonical' },
6764
- {
6765
- type: 'error',
6766
- inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
6767
- name: 'NotListed',
6768
- },
6769
7149
  { type: 'error', inputs: [], name: 'NotLogAuthority' },
6770
7150
  { type: 'error', inputs: [], name: 'NotManager' },
6771
7151
  { type: 'error', inputs: [], name: 'NotRegistry' },
7152
+ { type: 'error', inputs: [], name: 'NotSponsor' },
6772
7153
  { type: 'error', inputs: [], name: 'OneBase' },
6773
7154
  {
6774
7155
  type: 'error',