@logswap/sdk 0.5.49 → 0.5.51

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
@@ -1041,6 +1041,7 @@ export const fPoolManagerAbi = [
1041
1041
  type: 'constructor',
1042
1042
  inputs: [
1043
1043
  { name: '_feeCollector', internalType: 'address', type: 'address' },
1044
+ { name: '_registry', internalType: 'address', type: 'address' },
1044
1045
  ],
1045
1046
  stateMutability: 'nonpayable',
1046
1047
  },
@@ -1132,15 +1133,6 @@ export const fPoolManagerAbi = [
1132
1133
  outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
1133
1134
  stateMutability: 'view',
1134
1135
  },
1135
- {
1136
- type: 'function',
1137
- inputs: [],
1138
- name: 'boundary',
1139
- outputs: [
1140
- { name: '', internalType: 'contract FPoolBoundary', type: 'address' },
1141
- ],
1142
- stateMutability: 'view',
1143
- },
1144
1136
  {
1145
1137
  type: 'function',
1146
1138
  inputs: [
@@ -1264,7 +1256,6 @@ export const fPoolManagerAbi = [
1264
1256
  { name: 'quote', internalType: 'address', type: 'address' },
1265
1257
  { name: 'phi', internalType: 'uint96', type: 'uint96' },
1266
1258
  { name: 'policy', internalType: 'address', type: 'address' },
1267
- { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
1268
1259
  { name: 'seeded', internalType: 'bool', type: 'bool' },
1269
1260
  { name: 'gen', internalType: 'uint16', type: 'uint16' },
1270
1261
  { name: 'n', internalType: 'uint8', type: 'uint8' },
@@ -1275,7 +1266,6 @@ export const fPoolManagerAbi = [
1275
1266
  { name: 'L', internalType: 'uint256', type: 'uint256' },
1276
1267
  { name: 'shares', internalType: 'uint256', type: 'uint256' },
1277
1268
  { name: 'theta0', internalType: 'int256', type: 'int256' },
1278
- { name: 'name', internalType: 'bytes32', type: 'bytes32' },
1279
1269
  ],
1280
1270
  },
1281
1271
  ],
@@ -1296,7 +1286,7 @@ export const fPoolManagerAbi = [
1296
1286
  type: 'function',
1297
1287
  inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1298
1288
  name: 'harvestable',
1299
- outputs: [{ name: 'cap', internalType: 'uint256', type: 'uint256' }],
1289
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1300
1290
  stateMutability: 'view',
1301
1291
  },
1302
1292
  {
@@ -1311,7 +1301,6 @@ export const fPoolManagerAbi = [
1311
1301
  { name: 'bases', internalType: 'address[]', type: 'address[]' },
1312
1302
  { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
1313
1303
  { name: 'phi', internalType: 'uint256', type: 'uint256' },
1314
- { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
1315
1304
  { name: 'policy', internalType: 'address', type: 'address' },
1316
1305
  { name: 'creator', internalType: 'address', type: 'address' },
1317
1306
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
@@ -1334,7 +1323,6 @@ export const fPoolManagerAbi = [
1334
1323
  { name: 'bases', internalType: 'address[]', type: 'address[]' },
1335
1324
  { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
1336
1325
  { name: 'phi', internalType: 'uint256', type: 'uint256' },
1337
- { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
1338
1326
  { name: 'policy', internalType: 'address', type: 'address' },
1339
1327
  { name: 'creator', internalType: 'address', type: 'address' },
1340
1328
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
@@ -1435,16 +1423,6 @@ export const fPoolManagerAbi = [
1435
1423
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1436
1424
  stateMutability: 'view',
1437
1425
  },
1438
- {
1439
- type: 'function',
1440
- inputs: [
1441
- { name: '', internalType: 'enum Kind', type: 'uint8' },
1442
- { name: '', internalType: 'address', type: 'address' },
1443
- ],
1444
- name: 'policyApproved',
1445
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1446
- stateMutability: 'view',
1447
- },
1448
1426
  {
1449
1427
  type: 'function',
1450
1428
  inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
@@ -1459,24 +1437,6 @@ export const fPoolManagerAbi = [
1459
1437
  outputs: [],
1460
1438
  stateMutability: 'nonpayable',
1461
1439
  },
1462
- {
1463
- type: 'function',
1464
- inputs: [
1465
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1466
- {
1467
- name: 'kind',
1468
- internalType: 'enum FPoolManager.QuoteKind',
1469
- type: 'uint8',
1470
- },
1471
- { name: 'j', internalType: 'uint256', type: 'uint256' },
1472
- { name: 'k', internalType: 'uint256', type: 'uint256' },
1473
- { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
1474
- { name: 'taker', internalType: 'address', type: 'address' },
1475
- ],
1476
- name: 'quoteSwap',
1477
- outputs: [],
1478
- stateMutability: 'nonpayable',
1479
- },
1480
1440
  {
1481
1441
  type: 'function',
1482
1442
  inputs: [
@@ -1499,6 +1459,15 @@ export const fPoolManagerAbi = [
1499
1459
  outputs: [],
1500
1460
  stateMutability: 'nonpayable',
1501
1461
  },
1462
+ {
1463
+ type: 'function',
1464
+ inputs: [],
1465
+ name: 'registry',
1466
+ outputs: [
1467
+ { name: '', internalType: 'contract PolicyRegistry', type: 'address' },
1468
+ ],
1469
+ stateMutability: 'view',
1470
+ },
1502
1471
  {
1503
1472
  type: 'function',
1504
1473
  inputs: [
@@ -1531,9 +1500,10 @@ export const fPoolManagerAbi = [
1531
1500
  {
1532
1501
  type: 'function',
1533
1502
  inputs: [
1534
- { name: 'mintFeeProtocolCut', internalType: 'uint256', type: 'uint256' },
1503
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1504
+ { name: 'asks', internalType: 'uint8', type: 'uint8' },
1535
1505
  ],
1536
- name: 'setFeeParams',
1506
+ name: 'setAsks',
1537
1507
  outputs: [],
1538
1508
  stateMutability: 'nonpayable',
1539
1509
  },
@@ -1548,16 +1518,6 @@ export const fPoolManagerAbi = [
1548
1518
  outputs: [],
1549
1519
  stateMutability: 'nonpayable',
1550
1520
  },
1551
- {
1552
- type: 'function',
1553
- inputs: [
1554
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1555
- { name: 'name_', internalType: 'bytes32', type: 'bytes32' },
1556
- ],
1557
- name: 'setName',
1558
- outputs: [],
1559
- stateMutability: 'nonpayable',
1560
- },
1561
1521
  {
1562
1522
  type: 'function',
1563
1523
  inputs: [
@@ -1571,21 +1531,11 @@ export const fPoolManagerAbi = [
1571
1531
  {
1572
1532
  type: 'function',
1573
1533
  inputs: [
1574
- { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
1575
- { name: 'policy', internalType: 'address', type: 'address' },
1576
- { name: 'approved', internalType: 'bool', type: 'bool' },
1577
- ],
1578
- name: 'setPolicyApproved',
1579
- outputs: [],
1580
- stateMutability: 'nonpayable',
1581
- },
1582
- {
1583
- type: 'function',
1584
- inputs: [
1585
- { name: 'who', internalType: 'address', type: 'address' },
1586
- { name: 'name_', internalType: 'bytes32', type: 'bytes32' },
1534
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1535
+ { name: 'to', internalType: 'address', type: 'address' },
1536
+ { name: 'asks', internalType: 'uint8', type: 'uint8' },
1587
1537
  ],
1588
- name: 'setSponsorName',
1538
+ name: 'setPolicy',
1589
1539
  outputs: [],
1590
1540
  stateMutability: 'nonpayable',
1591
1541
  },
@@ -1608,10 +1558,10 @@ export const fPoolManagerAbi = [
1608
1558
  },
1609
1559
  {
1610
1560
  type: 'function',
1611
- inputs: [{ name: '', internalType: 'address', type: 'address' }],
1612
- name: 'sponsorName',
1613
- outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
1614
- stateMutability: 'view',
1561
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1562
+ name: 'stamp',
1563
+ outputs: [],
1564
+ stateMutability: 'nonpayable',
1615
1565
  },
1616
1566
  {
1617
1567
  type: 'function',
@@ -1769,6 +1719,20 @@ export const fPoolManagerAbi = [
1769
1719
  ],
1770
1720
  name: 'Approval',
1771
1721
  },
1722
+ {
1723
+ type: 'event',
1724
+ anonymous: false,
1725
+ inputs: [
1726
+ {
1727
+ name: 'poolId',
1728
+ internalType: 'bytes32',
1729
+ type: 'bytes32',
1730
+ indexed: true,
1731
+ },
1732
+ { name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
1733
+ ],
1734
+ name: 'AsksSet',
1735
+ },
1772
1736
  {
1773
1737
  type: 'event',
1774
1738
  anonymous: false,
@@ -1860,19 +1824,6 @@ export const fPoolManagerAbi = [
1860
1824
  ],
1861
1825
  name: 'DividendClaimed',
1862
1826
  },
1863
- {
1864
- type: 'event',
1865
- anonymous: false,
1866
- inputs: [
1867
- {
1868
- name: 'mintFeeProtocolCut',
1869
- internalType: 'uint256',
1870
- type: 'uint256',
1871
- indexed: false,
1872
- },
1873
- ],
1874
- name: 'FeeParamsSet',
1875
- },
1876
1827
  {
1877
1828
  type: 'event',
1878
1829
  anonymous: false,
@@ -1935,12 +1886,6 @@ export const fPoolManagerAbi = [
1935
1886
  indexed: false,
1936
1887
  },
1937
1888
  { name: 'phi', internalType: 'uint256', type: 'uint256', indexed: false },
1938
- {
1939
- name: 'kind',
1940
- internalType: 'enum Kind',
1941
- type: 'uint8',
1942
- indexed: false,
1943
- },
1944
1889
  {
1945
1890
  name: 'policy',
1946
1891
  internalType: 'address',
@@ -2003,25 +1948,6 @@ export const fPoolManagerAbi = [
2003
1948
  ],
2004
1949
  name: 'Mint',
2005
1950
  },
2006
- {
2007
- type: 'event',
2008
- anonymous: false,
2009
- inputs: [
2010
- {
2011
- name: 'poolId',
2012
- internalType: 'bytes32',
2013
- type: 'bytes32',
2014
- indexed: true,
2015
- },
2016
- {
2017
- name: 'name',
2018
- internalType: 'bytes32',
2019
- type: 'bytes32',
2020
- indexed: false,
2021
- },
2022
- ],
2023
- name: 'NameSet',
2024
- },
2025
1951
  {
2026
1952
  type: 'event',
2027
1953
  anonymous: false,
@@ -2046,16 +1972,17 @@ export const fPoolManagerAbi = [
2046
1972
  type: 'event',
2047
1973
  anonymous: false,
2048
1974
  inputs: [
2049
- { name: 'kind', internalType: 'enum Kind', type: 'uint8', indexed: true },
2050
1975
  {
2051
- name: 'policy',
2052
- internalType: 'address',
2053
- type: 'address',
1976
+ name: 'poolId',
1977
+ internalType: 'bytes32',
1978
+ type: 'bytes32',
2054
1979
  indexed: true,
2055
1980
  },
2056
- { name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
1981
+ { name: 'from', internalType: 'address', type: 'address', indexed: true },
1982
+ { name: 'to', internalType: 'address', type: 'address', indexed: true },
1983
+ { name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
2057
1984
  ],
2058
- name: 'PolicyApproved',
1985
+ name: 'PolicyMigrated',
2059
1986
  },
2060
1987
  {
2061
1988
  type: 'event',
@@ -2206,15 +2133,14 @@ export const fPoolManagerAbi = [
2206
2133
  type: 'event',
2207
2134
  anonymous: false,
2208
2135
  inputs: [
2209
- { name: 'who', internalType: 'address', type: 'address', indexed: true },
2210
2136
  {
2211
- name: 'name',
2137
+ name: 'poolId',
2212
2138
  internalType: 'bytes32',
2213
2139
  type: 'bytes32',
2214
- indexed: false,
2140
+ indexed: true,
2215
2141
  },
2216
2142
  ],
2217
- name: 'SponsorNamed',
2143
+ name: 'Stamped',
2218
2144
  },
2219
2145
  {
2220
2146
  type: 'event',
@@ -2310,7 +2236,8 @@ export const fPoolManagerAbi = [
2310
2236
  { type: 'error', inputs: [], name: 'NonstandardToken' },
2311
2237
  { type: 'error', inputs: [], name: 'NotAuthorized' },
2312
2238
  { type: 'error', inputs: [], name: 'NotCollector' },
2313
- { type: 'error', inputs: [], name: 'NotPrivate' },
2239
+ { type: 'error', inputs: [], name: 'NotPolicy' },
2240
+ { type: 'error', inputs: [], name: 'NotRegistry' },
2314
2241
  { type: 'error', inputs: [], name: 'NotRetired' },
2315
2242
  { type: 'error', inputs: [], name: 'NotSeeded' },
2316
2243
  { type: 'error', inputs: [], name: 'PolicyNotApproved' },
@@ -2335,6 +2262,52 @@ export const fPoolManagerAbi = [
2335
2262
  { type: 'error', inputs: [], name: 'ZeroAmount' },
2336
2263
  ] as const
2337
2264
 
2265
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2266
+ // IFPoolManagerMove
2267
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2268
+
2269
+ export const ifPoolManagerMoveAbi = [
2270
+ {
2271
+ type: 'function',
2272
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
2273
+ name: 'getPool',
2274
+ outputs: [
2275
+ {
2276
+ name: '',
2277
+ internalType: 'struct FPoolBase.Pool',
2278
+ type: 'tuple',
2279
+ components: [
2280
+ { name: 'quote', internalType: 'address', type: 'address' },
2281
+ { name: 'phi', internalType: 'uint96', type: 'uint96' },
2282
+ { name: 'policy', internalType: 'address', type: 'address' },
2283
+ { name: 'seeded', internalType: 'bool', type: 'bool' },
2284
+ { name: 'gen', internalType: 'uint16', type: 'uint16' },
2285
+ { name: 'n', internalType: 'uint8', type: 'uint8' },
2286
+ { name: 'restructureBlock', internalType: 'uint32', type: 'uint32' },
2287
+ { name: 'asks', internalType: 'uint8', type: 'uint8' },
2288
+ { name: 'Q', internalType: 'uint128', type: 'uint128' },
2289
+ { name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
2290
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
2291
+ { name: 'shares', internalType: 'uint256', type: 'uint256' },
2292
+ { name: 'theta0', internalType: 'int256', type: 'int256' },
2293
+ ],
2294
+ },
2295
+ ],
2296
+ stateMutability: 'view',
2297
+ },
2298
+ {
2299
+ type: 'function',
2300
+ inputs: [
2301
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
2302
+ { name: 'to', internalType: 'address', type: 'address' },
2303
+ { name: 'asks', internalType: 'uint8', type: 'uint8' },
2304
+ ],
2305
+ name: 'setPolicy',
2306
+ outputs: [],
2307
+ stateMutability: 'nonpayable',
2308
+ },
2309
+ ] as const
2310
+
2338
2311
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2339
2312
  // LogswapLens
2340
2313
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -2500,7 +2473,6 @@ export const logswapLensAbi = [
2500
2473
  { name: 'quote', internalType: 'address', type: 'address' },
2501
2474
  { name: 'phi', internalType: 'uint96', type: 'uint96' },
2502
2475
  { name: 'policy', internalType: 'address', type: 'address' },
2503
- { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
2504
2476
  { name: 'seeded', internalType: 'bool', type: 'bool' },
2505
2477
  { name: 'gen', internalType: 'uint16', type: 'uint16' },
2506
2478
  { name: 'n', internalType: 'uint8', type: 'uint8' },
@@ -2511,7 +2483,6 @@ export const logswapLensAbi = [
2511
2483
  { name: 'L', internalType: 'uint256', type: 'uint256' },
2512
2484
  { name: 'shares', internalType: 'uint256', type: 'uint256' },
2513
2485
  { name: 'theta0', internalType: 'int256', type: 'int256' },
2514
- { name: 'name', internalType: 'bytes32', type: 'bytes32' },
2515
2486
  ],
2516
2487
  },
2517
2488
  ],
@@ -3431,6 +3402,20 @@ export const logswapRouterAbi = [
3431
3402
  outputs: [{ name: '', internalType: 'contract IPermit2', type: 'address' }],
3432
3403
  stateMutability: 'view',
3433
3404
  },
3405
+ {
3406
+ type: 'function',
3407
+ inputs: [
3408
+ { name: '', internalType: 'bytes32', type: 'bytes32' },
3409
+ { name: '', internalType: 'enum FPoolManager.QuoteKind', type: 'uint8' },
3410
+ { name: '', internalType: 'uint256', type: 'uint256' },
3411
+ { name: '', internalType: 'uint256', type: 'uint256' },
3412
+ { name: '', internalType: 'uint256', type: 'uint256' },
3413
+ { name: '', internalType: 'address', type: 'address' },
3414
+ ],
3415
+ name: 'quoteSwap',
3416
+ outputs: [],
3417
+ stateMutability: 'nonpayable',
3418
+ },
3434
3419
  {
3435
3420
  type: 'function',
3436
3421
  inputs: [
@@ -3655,6 +3640,11 @@ export const logswapRouterAbi = [
3655
3640
  { type: 'error', inputs: [], name: 'EmptyPath' },
3656
3641
  { type: 'error', inputs: [], name: 'LengthMismatch' },
3657
3642
  { type: 'error', inputs: [], name: 'NotManager' },
3643
+ {
3644
+ type: 'error',
3645
+ inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
3646
+ name: 'QuoteResult',
3647
+ },
3658
3648
  { type: 'error', inputs: [], name: 'SlippageIn' },
3659
3649
  { type: 'error', inputs: [], name: 'SlippageOut' },
3660
3650
  { type: 'error', inputs: [], name: 'UnsupportedOp' },
@@ -3720,6 +3710,13 @@ export const padPolicyAbi = [
3720
3710
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3721
3711
  stateMutability: 'view',
3722
3712
  },
3713
+ {
3714
+ type: 'function',
3715
+ inputs: [],
3716
+ name: 'kind',
3717
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3718
+ stateMutability: 'pure',
3719
+ },
3723
3720
  {
3724
3721
  type: 'function',
3725
3722
  inputs: [],
@@ -3764,6 +3761,13 @@ export const padPolicyAbi = [
3764
3761
  outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
3765
3762
  stateMutability: 'view',
3766
3763
  },
3764
+ {
3765
+ type: 'function',
3766
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3767
+ name: 'nameOf',
3768
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3769
+ stateMutability: 'view',
3770
+ },
3767
3771
  {
3768
3772
  type: 'function',
3769
3773
  inputs: [
@@ -3808,7 +3812,6 @@ export const padPolicyAbi = [
3808
3812
  { name: 'bases', internalType: 'address[]', type: 'address[]' },
3809
3813
  { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
3810
3814
  { name: 'phi', internalType: 'uint256', type: 'uint256' },
3811
- { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
3812
3815
  { name: 'policy', internalType: 'address', type: 'address' },
3813
3816
  { name: 'creator', internalType: 'address', type: 'address' },
3814
3817
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
@@ -3819,6 +3822,16 @@ export const padPolicyAbi = [
3819
3822
  outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
3820
3823
  stateMutability: 'nonpayable',
3821
3824
  },
3825
+ {
3826
+ type: 'function',
3827
+ inputs: [
3828
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3829
+ { name: 'from', internalType: 'address', type: 'address' },
3830
+ ],
3831
+ name: 'onMigrate',
3832
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
3833
+ stateMutability: 'nonpayable',
3834
+ },
3822
3835
  {
3823
3836
  type: 'function',
3824
3837
  inputs: [
@@ -3883,6 +3896,20 @@ export const padPolicyAbi = [
3883
3896
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3884
3897
  stateMutability: 'view',
3885
3898
  },
3899
+ {
3900
+ type: 'function',
3901
+ inputs: [],
3902
+ name: 'quoteCurated',
3903
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3904
+ stateMutability: 'view',
3905
+ },
3906
+ {
3907
+ type: 'function',
3908
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
3909
+ name: 'quoteListed',
3910
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3911
+ stateMutability: 'view',
3912
+ },
3886
3913
  {
3887
3914
  type: 'function',
3888
3915
  inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
@@ -3897,6 +3924,33 @@ export const padPolicyAbi = [
3897
3924
  outputs: [],
3898
3925
  stateMutability: 'nonpayable',
3899
3926
  },
3927
+ {
3928
+ type: 'function',
3929
+ inputs: [
3930
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3931
+ { name: 'name_', internalType: 'bytes32', type: 'bytes32' },
3932
+ ],
3933
+ name: 'setName',
3934
+ outputs: [],
3935
+ stateMutability: 'nonpayable',
3936
+ },
3937
+ {
3938
+ type: 'function',
3939
+ inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
3940
+ name: 'setQuoteCurated',
3941
+ outputs: [],
3942
+ stateMutability: 'nonpayable',
3943
+ },
3944
+ {
3945
+ type: 'function',
3946
+ inputs: [
3947
+ { name: 'quote', internalType: 'address', type: 'address' },
3948
+ { name: 'listed', internalType: 'bool', type: 'bool' },
3949
+ ],
3950
+ name: 'setQuoteListed',
3951
+ outputs: [],
3952
+ stateMutability: 'nonpayable',
3953
+ },
3900
3954
  {
3901
3955
  type: 'function',
3902
3956
  inputs: [
@@ -4004,12 +4058,53 @@ export const padPolicyAbi = [
4004
4058
  anonymous: false,
4005
4059
  inputs: [
4006
4060
  {
4007
- name: 'thresholdBase',
4008
- internalType: 'uint256',
4009
- type: 'uint256',
4010
- indexed: false,
4011
- },
4012
- {
4061
+ name: 'poolId',
4062
+ internalType: 'bytes32',
4063
+ type: 'bytes32',
4064
+ indexed: true,
4065
+ },
4066
+ {
4067
+ name: 'name',
4068
+ internalType: 'bytes32',
4069
+ type: 'bytes32',
4070
+ indexed: false,
4071
+ },
4072
+ ],
4073
+ name: 'NameSet',
4074
+ },
4075
+ {
4076
+ type: 'event',
4077
+ anonymous: false,
4078
+ inputs: [
4079
+ { name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
4080
+ ],
4081
+ name: 'QuoteCuratedSet',
4082
+ },
4083
+ {
4084
+ type: 'event',
4085
+ anonymous: false,
4086
+ inputs: [
4087
+ {
4088
+ name: 'quote',
4089
+ internalType: 'address',
4090
+ type: 'address',
4091
+ indexed: true,
4092
+ },
4093
+ { name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
4094
+ ],
4095
+ name: 'QuoteListed',
4096
+ },
4097
+ {
4098
+ type: 'event',
4099
+ anonymous: false,
4100
+ inputs: [
4101
+ {
4102
+ name: 'thresholdBase',
4103
+ internalType: 'uint256',
4104
+ type: 'uint256',
4105
+ indexed: false,
4106
+ },
4107
+ {
4013
4108
  name: 'thresholdGrowth',
4014
4109
  internalType: 'uint256',
4015
4110
  type: 'uint256',
@@ -4036,11 +4131,20 @@ export const padPolicyAbi = [
4036
4131
  ],
4037
4132
  name: 'ScheduleSet',
4038
4133
  },
4134
+ { type: 'error', inputs: [], name: 'BadFee' },
4039
4135
  { type: 'error', inputs: [], name: 'BadRate' },
4136
+ { type: 'error', inputs: [], name: 'NoCreator' },
4040
4137
  { type: 'error', inputs: [], name: 'NotAuthority' },
4041
4138
  { type: 'error', inputs: [], name: 'NotCollector' },
4042
4139
  { type: 'error', inputs: [], name: 'NotGraduated' },
4043
4140
  { type: 'error', inputs: [], name: 'NotManager' },
4141
+ { type: 'error', inputs: [], name: 'NotRegistry' },
4142
+ { type: 'error', inputs: [], name: 'OneBase' },
4143
+ {
4144
+ type: 'error',
4145
+ inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
4146
+ name: 'QuoteNotListed',
4147
+ },
4044
4148
  { type: 'error', inputs: [], name: 'Refused' },
4045
4149
  ] as const
4046
4150
 
@@ -4095,6 +4199,13 @@ export const polPolicyAbi = [
4095
4199
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4096
4200
  stateMutability: 'view',
4097
4201
  },
4202
+ {
4203
+ type: 'function',
4204
+ inputs: [],
4205
+ name: 'kind',
4206
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4207
+ stateMutability: 'pure',
4208
+ },
4098
4209
  {
4099
4210
  type: 'function',
4100
4211
  inputs: [],
@@ -4146,6 +4257,13 @@ export const polPolicyAbi = [
4146
4257
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4147
4258
  stateMutability: 'view',
4148
4259
  },
4260
+ {
4261
+ type: 'function',
4262
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4263
+ name: 'nameOf',
4264
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4265
+ stateMutability: 'view',
4266
+ },
4149
4267
  {
4150
4268
  type: 'function',
4151
4269
  inputs: [
@@ -4190,7 +4308,6 @@ export const polPolicyAbi = [
4190
4308
  { name: 'bases', internalType: 'address[]', type: 'address[]' },
4191
4309
  { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
4192
4310
  { name: 'phi', internalType: 'uint256', type: 'uint256' },
4193
- { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
4194
4311
  { name: 'policy', internalType: 'address', type: 'address' },
4195
4312
  { name: 'creator', internalType: 'address', type: 'address' },
4196
4313
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
@@ -4201,6 +4318,16 @@ export const polPolicyAbi = [
4201
4318
  outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4202
4319
  stateMutability: 'nonpayable',
4203
4320
  },
4321
+ {
4322
+ type: 'function',
4323
+ inputs: [
4324
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4325
+ { name: 'from', internalType: 'address', type: 'address' },
4326
+ ],
4327
+ name: 'onMigrate',
4328
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4329
+ stateMutability: 'nonpayable',
4330
+ },
4204
4331
  {
4205
4332
  type: 'function',
4206
4333
  inputs: [
@@ -4258,6 +4385,20 @@ export const polPolicyAbi = [
4258
4385
  outputs: [],
4259
4386
  stateMutability: 'nonpayable',
4260
4387
  },
4388
+ {
4389
+ type: 'function',
4390
+ inputs: [],
4391
+ name: 'quoteCurated',
4392
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4393
+ stateMutability: 'view',
4394
+ },
4395
+ {
4396
+ type: 'function',
4397
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
4398
+ name: 'quoteListed',
4399
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4400
+ stateMutability: 'view',
4401
+ },
4261
4402
  {
4262
4403
  type: 'function',
4263
4404
  inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
@@ -4265,6 +4406,33 @@ export const polPolicyAbi = [
4265
4406
  outputs: [],
4266
4407
  stateMutability: 'nonpayable',
4267
4408
  },
4409
+ {
4410
+ type: 'function',
4411
+ inputs: [
4412
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4413
+ { name: 'name_', internalType: 'bytes32', type: 'bytes32' },
4414
+ ],
4415
+ name: 'setName',
4416
+ outputs: [],
4417
+ stateMutability: 'nonpayable',
4418
+ },
4419
+ {
4420
+ type: 'function',
4421
+ inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
4422
+ name: 'setQuoteCurated',
4423
+ outputs: [],
4424
+ stateMutability: 'nonpayable',
4425
+ },
4426
+ {
4427
+ type: 'function',
4428
+ inputs: [
4429
+ { name: 'quote', internalType: 'address', type: 'address' },
4430
+ { name: 'listed', internalType: 'bool', type: 'bool' },
4431
+ ],
4432
+ name: 'setQuoteListed',
4433
+ outputs: [],
4434
+ stateMutability: 'nonpayable',
4435
+ },
4268
4436
  {
4269
4437
  type: 'function',
4270
4438
  inputs: [
@@ -4328,6 +4496,47 @@ export const polPolicyAbi = [
4328
4496
  ],
4329
4497
  name: 'HarvestCutSet',
4330
4498
  },
4499
+ {
4500
+ type: 'event',
4501
+ anonymous: false,
4502
+ inputs: [
4503
+ {
4504
+ name: 'poolId',
4505
+ internalType: 'bytes32',
4506
+ type: 'bytes32',
4507
+ indexed: true,
4508
+ },
4509
+ {
4510
+ name: 'name',
4511
+ internalType: 'bytes32',
4512
+ type: 'bytes32',
4513
+ indexed: false,
4514
+ },
4515
+ ],
4516
+ name: 'NameSet',
4517
+ },
4518
+ {
4519
+ type: 'event',
4520
+ anonymous: false,
4521
+ inputs: [
4522
+ { name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
4523
+ ],
4524
+ name: 'QuoteCuratedSet',
4525
+ },
4526
+ {
4527
+ type: 'event',
4528
+ anonymous: false,
4529
+ inputs: [
4530
+ {
4531
+ name: 'quote',
4532
+ internalType: 'address',
4533
+ type: 'address',
4534
+ indexed: true,
4535
+ },
4536
+ { name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
4537
+ ],
4538
+ name: 'QuoteListed',
4539
+ },
4331
4540
  {
4332
4541
  type: 'event',
4333
4542
  anonymous: false,
@@ -4347,14 +4556,243 @@ export const polPolicyAbi = [
4347
4556
  ],
4348
4557
  name: 'RulesSet',
4349
4558
  },
4559
+ { type: 'error', inputs: [], name: 'BadFee' },
4350
4560
  { type: 'error', inputs: [], name: 'BadRate' },
4561
+ { type: 'error', inputs: [], name: 'NoCreator' },
4351
4562
  { type: 'error', inputs: [], name: 'NotAuthority' },
4352
4563
  { type: 'error', inputs: [], name: 'NotCollector' },
4353
4564
  { type: 'error', inputs: [], name: 'NotManager' },
4565
+ { type: 'error', inputs: [], name: 'NotRegistry' },
4566
+ { type: 'error', inputs: [], name: 'OneBase' },
4567
+ {
4568
+ type: 'error',
4569
+ inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
4570
+ name: 'QuoteNotListed',
4571
+ },
4354
4572
  { type: 'error', inputs: [], name: 'QuoteTooThin' },
4355
4573
  { type: 'error', inputs: [], name: 'Refused' },
4356
4574
  ] as const
4357
4575
 
4576
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4577
+ // PolicyRegistry
4578
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4579
+
4580
+ export const policyRegistryAbi = [
4581
+ {
4582
+ type: 'constructor',
4583
+ inputs: [{ name: '_owner', internalType: 'address', type: 'address' }],
4584
+ stateMutability: 'nonpayable',
4585
+ },
4586
+ {
4587
+ type: 'function',
4588
+ inputs: [],
4589
+ name: 'acceptOwner',
4590
+ outputs: [],
4591
+ stateMutability: 'nonpayable',
4592
+ },
4593
+ {
4594
+ type: 'function',
4595
+ inputs: [
4596
+ { name: 'policy', internalType: 'address', type: 'address' },
4597
+ { name: 'name', internalType: 'bytes32', type: 'bytes32' },
4598
+ ],
4599
+ name: 'approve',
4600
+ outputs: [],
4601
+ stateMutability: 'nonpayable',
4602
+ },
4603
+ {
4604
+ type: 'function',
4605
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
4606
+ name: 'entries',
4607
+ outputs: [
4608
+ { name: 'listed', internalType: 'bool', type: 'bool' },
4609
+ { name: 'until', internalType: 'uint64', type: 'uint64' },
4610
+ { name: 'index', internalType: 'uint32', type: 'uint32' },
4611
+ { name: 'name', internalType: 'bytes32', type: 'bytes32' },
4612
+ ],
4613
+ stateMutability: 'view',
4614
+ },
4615
+ {
4616
+ type: 'function',
4617
+ inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
4618
+ name: 'isApproved',
4619
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4620
+ stateMutability: 'view',
4621
+ },
4622
+ {
4623
+ type: 'function',
4624
+ inputs: [
4625
+ { name: 'manager', internalType: 'address', type: 'address' },
4626
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4627
+ { name: 'to', internalType: 'address', type: 'address' },
4628
+ ],
4629
+ name: 'migrate',
4630
+ outputs: [],
4631
+ stateMutability: 'nonpayable',
4632
+ },
4633
+ {
4634
+ type: 'function',
4635
+ inputs: [],
4636
+ name: 'owner',
4637
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4638
+ stateMutability: 'view',
4639
+ },
4640
+ {
4641
+ type: 'function',
4642
+ inputs: [],
4643
+ name: 'pendingOwner',
4644
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4645
+ stateMutability: 'view',
4646
+ },
4647
+ {
4648
+ type: 'function',
4649
+ inputs: [],
4650
+ name: 'policies',
4651
+ outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }],
4652
+ stateMutability: 'view',
4653
+ },
4654
+ {
4655
+ type: 'function',
4656
+ inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
4657
+ name: 'proposeOwner',
4658
+ outputs: [],
4659
+ stateMutability: 'nonpayable',
4660
+ },
4661
+ {
4662
+ type: 'function',
4663
+ inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
4664
+ name: 'revoke',
4665
+ outputs: [],
4666
+ stateMutability: 'nonpayable',
4667
+ },
4668
+ {
4669
+ type: 'function',
4670
+ inputs: [
4671
+ { name: 'who', internalType: 'address', type: 'address' },
4672
+ { name: 'name', internalType: 'bytes32', type: 'bytes32' },
4673
+ ],
4674
+ name: 'setSponsorName',
4675
+ outputs: [],
4676
+ stateMutability: 'nonpayable',
4677
+ },
4678
+ {
4679
+ type: 'function',
4680
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
4681
+ name: 'sponsorName',
4682
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4683
+ stateMutability: 'view',
4684
+ },
4685
+ {
4686
+ type: 'function',
4687
+ inputs: [
4688
+ { name: 'policy', internalType: 'address', type: 'address' },
4689
+ { name: 'untilBlock', internalType: 'uint64', type: 'uint64' },
4690
+ ],
4691
+ name: 'sunset',
4692
+ outputs: [],
4693
+ stateMutability: 'nonpayable',
4694
+ },
4695
+ {
4696
+ type: 'event',
4697
+ anonymous: false,
4698
+ inputs: [
4699
+ {
4700
+ name: 'policy',
4701
+ internalType: 'address',
4702
+ type: 'address',
4703
+ indexed: true,
4704
+ },
4705
+ {
4706
+ name: 'name',
4707
+ internalType: 'bytes32',
4708
+ type: 'bytes32',
4709
+ indexed: false,
4710
+ },
4711
+ ],
4712
+ name: 'Approved',
4713
+ },
4714
+ {
4715
+ type: 'event',
4716
+ anonymous: false,
4717
+ inputs: [
4718
+ { name: 'prev', internalType: 'address', type: 'address', indexed: true },
4719
+ { name: 'next', internalType: 'address', type: 'address', indexed: true },
4720
+ ],
4721
+ name: 'OwnerAccepted',
4722
+ },
4723
+ {
4724
+ type: 'event',
4725
+ anonymous: false,
4726
+ inputs: [
4727
+ {
4728
+ name: 'current',
4729
+ internalType: 'address',
4730
+ type: 'address',
4731
+ indexed: true,
4732
+ },
4733
+ {
4734
+ name: 'proposed',
4735
+ internalType: 'address',
4736
+ type: 'address',
4737
+ indexed: true,
4738
+ },
4739
+ ],
4740
+ name: 'OwnerProposed',
4741
+ },
4742
+ {
4743
+ type: 'event',
4744
+ anonymous: false,
4745
+ inputs: [
4746
+ {
4747
+ name: 'policy',
4748
+ internalType: 'address',
4749
+ type: 'address',
4750
+ indexed: true,
4751
+ },
4752
+ ],
4753
+ name: 'Revoked',
4754
+ },
4755
+ {
4756
+ type: 'event',
4757
+ anonymous: false,
4758
+ inputs: [
4759
+ { name: 'who', internalType: 'address', type: 'address', indexed: true },
4760
+ {
4761
+ name: 'name',
4762
+ internalType: 'bytes32',
4763
+ type: 'bytes32',
4764
+ indexed: false,
4765
+ },
4766
+ ],
4767
+ name: 'SponsorNamed',
4768
+ },
4769
+ {
4770
+ type: 'event',
4771
+ anonymous: false,
4772
+ inputs: [
4773
+ {
4774
+ name: 'policy',
4775
+ internalType: 'address',
4776
+ type: 'address',
4777
+ indexed: true,
4778
+ },
4779
+ {
4780
+ name: 'untilBlock',
4781
+ internalType: 'uint64',
4782
+ type: 'uint64',
4783
+ indexed: false,
4784
+ },
4785
+ ],
4786
+ name: 'SunsetSet',
4787
+ },
4788
+ { type: 'error', inputs: [], name: 'BadSunset' },
4789
+ { type: 'error', inputs: [], name: 'KindMismatch' },
4790
+ { type: 'error', inputs: [], name: 'NotAPolicy' },
4791
+ { type: 'error', inputs: [], name: 'NotListed' },
4792
+ { type: 'error', inputs: [], name: 'NotOwner' },
4793
+ { type: 'error', inputs: [], name: 'SamePolicy' },
4794
+ ] as const
4795
+
4358
4796
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4359
4797
  // PrivatePolicy
4360
4798
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -4371,6 +4809,20 @@ export const privatePolicyAbi = [
4371
4809
  ],
4372
4810
  stateMutability: 'nonpayable',
4373
4811
  },
4812
+ {
4813
+ type: 'function',
4814
+ inputs: [],
4815
+ name: 'MINTER',
4816
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4817
+ stateMutability: 'view',
4818
+ },
4819
+ {
4820
+ type: 'function',
4821
+ inputs: [],
4822
+ name: 'TAKER',
4823
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4824
+ stateMutability: 'view',
4825
+ },
4374
4826
  {
4375
4827
  type: 'function',
4376
4828
  inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
@@ -4425,9 +4877,29 @@ export const privatePolicyAbi = [
4425
4877
  },
4426
4878
  {
4427
4879
  type: 'function',
4428
- inputs: [],
4429
- name: 'harvestCut',
4430
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4880
+ inputs: [],
4881
+ name: 'harvestCut',
4882
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4883
+ stateMutability: 'view',
4884
+ },
4885
+ {
4886
+ type: 'function',
4887
+ inputs: [
4888
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4889
+ { name: 'who', internalType: 'address', type: 'address' },
4890
+ ],
4891
+ name: 'isAllowed',
4892
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4893
+ stateMutability: 'view',
4894
+ },
4895
+ {
4896
+ type: 'function',
4897
+ inputs: [
4898
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4899
+ { name: 'who', internalType: 'address', type: 'address' },
4900
+ ],
4901
+ name: 'isMinter',
4902
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4431
4903
  stateMutability: 'view',
4432
4904
  },
4433
4905
  {
@@ -4436,10 +4908,17 @@ export const privatePolicyAbi = [
4436
4908
  { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4437
4909
  { name: 'who', internalType: 'address', type: 'address' },
4438
4910
  ],
4439
- name: 'isAllowed',
4911
+ name: 'isTaker',
4440
4912
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4441
4913
  stateMutability: 'view',
4442
4914
  },
4915
+ {
4916
+ type: 'function',
4917
+ inputs: [],
4918
+ name: 'kind',
4919
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4920
+ stateMutability: 'pure',
4921
+ },
4443
4922
  {
4444
4923
  type: 'function',
4445
4924
  inputs: [],
@@ -4484,6 +4963,13 @@ export const privatePolicyAbi = [
4484
4963
  outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
4485
4964
  stateMutability: 'view',
4486
4965
  },
4966
+ {
4967
+ type: 'function',
4968
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4969
+ name: 'nameOf',
4970
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4971
+ stateMutability: 'view',
4972
+ },
4487
4973
  {
4488
4974
  type: 'function',
4489
4975
  inputs: [
@@ -4528,7 +5014,6 @@ export const privatePolicyAbi = [
4528
5014
  { name: 'bases', internalType: 'address[]', type: 'address[]' },
4529
5015
  { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
4530
5016
  { name: 'phi', internalType: 'uint256', type: 'uint256' },
4531
- { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
4532
5017
  { name: 'policy', internalType: 'address', type: 'address' },
4533
5018
  { name: 'creator', internalType: 'address', type: 'address' },
4534
5019
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
@@ -4539,6 +5024,16 @@ export const privatePolicyAbi = [
4539
5024
  outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4540
5025
  stateMutability: 'nonpayable',
4541
5026
  },
5027
+ {
5028
+ type: 'function',
5029
+ inputs: [
5030
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
5031
+ { name: 'from', internalType: 'address', type: 'address' },
5032
+ ],
5033
+ name: 'onMigrate',
5034
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
5035
+ stateMutability: 'nonpayable',
5036
+ },
4542
5037
  {
4543
5038
  type: 'function',
4544
5039
  inputs: [
@@ -4617,6 +5112,38 @@ export const privatePolicyAbi = [
4617
5112
  outputs: [],
4618
5113
  stateMutability: 'nonpayable',
4619
5114
  },
5115
+ {
5116
+ type: 'function',
5117
+ inputs: [],
5118
+ name: 'quoteCurated',
5119
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
5120
+ stateMutability: 'view',
5121
+ },
5122
+ {
5123
+ type: 'function',
5124
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
5125
+ name: 'quoteListed',
5126
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
5127
+ stateMutability: 'view',
5128
+ },
5129
+ {
5130
+ type: 'function',
5131
+ inputs: [
5132
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
5133
+ { name: '_gateMint', internalType: 'bool', type: 'bool' },
5134
+ { name: '_gateSwap', internalType: 'bool', type: 'bool' },
5135
+ ],
5136
+ name: 'setGates',
5137
+ outputs: [],
5138
+ stateMutability: 'nonpayable',
5139
+ },
5140
+ {
5141
+ type: 'function',
5142
+ inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
5143
+ name: 'setHarvestCut',
5144
+ outputs: [],
5145
+ stateMutability: 'nonpayable',
5146
+ },
4620
5147
  {
4621
5148
  type: 'function',
4622
5149
  inputs: [
@@ -4624,7 +5151,7 @@ export const privatePolicyAbi = [
4624
5151
  { name: 'who', internalType: 'address[]', type: 'address[]' },
4625
5152
  { name: 'yes', internalType: 'bool', type: 'bool' },
4626
5153
  ],
4627
- name: 'setAllowed',
5154
+ name: 'setMinters',
4628
5155
  outputs: [],
4629
5156
  stateMutability: 'nonpayable',
4630
5157
  },
@@ -4632,40 +5159,39 @@ export const privatePolicyAbi = [
4632
5159
  type: 'function',
4633
5160
  inputs: [
4634
5161
  { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4635
- { name: '_gateMint', internalType: 'bool', type: 'bool' },
4636
- { name: '_gateSwap', internalType: 'bool', type: 'bool' },
5162
+ { name: 'name_', internalType: 'bytes32', type: 'bytes32' },
4637
5163
  ],
4638
- name: 'setGates',
5164
+ name: 'setName',
4639
5165
  outputs: [],
4640
5166
  stateMutability: 'nonpayable',
4641
5167
  },
4642
5168
  {
4643
5169
  type: 'function',
4644
- inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
4645
- name: 'setHarvestCut',
5170
+ inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
5171
+ name: 'setQuoteCurated',
4646
5172
  outputs: [],
4647
5173
  stateMutability: 'nonpayable',
4648
5174
  },
4649
5175
  {
4650
- type: 'event',
4651
- anonymous: false,
5176
+ type: 'function',
4652
5177
  inputs: [
4653
- {
4654
- name: 'poolId',
4655
- internalType: 'bytes32',
4656
- type: 'bytes32',
4657
- indexed: true,
4658
- },
4659
- {
4660
- name: 'authority',
4661
- internalType: 'address',
4662
- type: 'address',
4663
- indexed: true,
4664
- },
4665
- { name: 'who', internalType: 'address', type: 'address', indexed: true },
4666
- { name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
5178
+ { name: 'quote', internalType: 'address', type: 'address' },
5179
+ { name: 'listed', internalType: 'bool', type: 'bool' },
5180
+ ],
5181
+ name: 'setQuoteListed',
5182
+ outputs: [],
5183
+ stateMutability: 'nonpayable',
5184
+ },
5185
+ {
5186
+ type: 'function',
5187
+ inputs: [
5188
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
5189
+ { name: 'who', internalType: 'address[]', type: 'address[]' },
5190
+ { name: 'yes', internalType: 'bool', type: 'bool' },
4667
5191
  ],
4668
- name: 'Allowed',
5192
+ name: 'setTakers',
5193
+ outputs: [],
5194
+ stateMutability: 'nonpayable',
4669
5195
  },
4670
5196
  {
4671
5197
  type: 'event',
@@ -4735,6 +5261,47 @@ export const privatePolicyAbi = [
4735
5261
  ],
4736
5262
  name: 'HarvestCutSet',
4737
5263
  },
5264
+ {
5265
+ type: 'event',
5266
+ anonymous: false,
5267
+ inputs: [
5268
+ {
5269
+ name: 'poolId',
5270
+ internalType: 'bytes32',
5271
+ type: 'bytes32',
5272
+ indexed: true,
5273
+ },
5274
+ {
5275
+ name: 'authority',
5276
+ internalType: 'address',
5277
+ type: 'address',
5278
+ indexed: true,
5279
+ },
5280
+ { name: 'who', internalType: 'address', type: 'address', indexed: true },
5281
+ { name: 'role', internalType: 'uint8', type: 'uint8', indexed: false },
5282
+ { name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
5283
+ ],
5284
+ name: 'Listed',
5285
+ },
5286
+ {
5287
+ type: 'event',
5288
+ anonymous: false,
5289
+ inputs: [
5290
+ {
5291
+ name: 'poolId',
5292
+ internalType: 'bytes32',
5293
+ type: 'bytes32',
5294
+ indexed: true,
5295
+ },
5296
+ {
5297
+ name: 'name',
5298
+ internalType: 'bytes32',
5299
+ type: 'bytes32',
5300
+ indexed: false,
5301
+ },
5302
+ ],
5303
+ name: 'NameSet',
5304
+ },
4738
5305
  {
4739
5306
  type: 'event',
4740
5307
  anonymous: false,
@@ -4775,11 +5342,42 @@ export const privatePolicyAbi = [
4775
5342
  ],
4776
5343
  name: 'OperatorSet',
4777
5344
  },
5345
+ {
5346
+ type: 'event',
5347
+ anonymous: false,
5348
+ inputs: [
5349
+ { name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
5350
+ ],
5351
+ name: 'QuoteCuratedSet',
5352
+ },
5353
+ {
5354
+ type: 'event',
5355
+ anonymous: false,
5356
+ inputs: [
5357
+ {
5358
+ name: 'quote',
5359
+ internalType: 'address',
5360
+ type: 'address',
5361
+ indexed: true,
5362
+ },
5363
+ { name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
5364
+ ],
5365
+ name: 'QuoteListed',
5366
+ },
5367
+ { type: 'error', inputs: [], name: 'BadFee' },
4778
5368
  { type: 'error', inputs: [], name: 'BadRate' },
5369
+ { type: 'error', inputs: [], name: 'NoCreator' },
4779
5370
  { type: 'error', inputs: [], name: 'NotAuthority' },
4780
5371
  { type: 'error', inputs: [], name: 'NotCollector' },
4781
5372
  { type: 'error', inputs: [], name: 'NotManager' },
4782
5373
  { type: 'error', inputs: [], name: 'NotOperator' },
5374
+ { type: 'error', inputs: [], name: 'NotRegistry' },
5375
+ { type: 'error', inputs: [], name: 'OneBase' },
5376
+ {
5377
+ type: 'error',
5378
+ inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
5379
+ name: 'QuoteNotListed',
5380
+ },
4783
5381
  { type: 'error', inputs: [], name: 'Refused' },
4784
5382
  ] as const
4785
5383
 
@@ -4834,6 +5432,13 @@ export const publicPolicyAbi = [
4834
5432
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4835
5433
  stateMutability: 'view',
4836
5434
  },
5435
+ {
5436
+ type: 'function',
5437
+ inputs: [],
5438
+ name: 'kind',
5439
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
5440
+ stateMutability: 'pure',
5441
+ },
4837
5442
  {
4838
5443
  type: 'function',
4839
5444
  inputs: [{ name: '', internalType: 'address', type: 'address' }],
@@ -4885,6 +5490,13 @@ export const publicPolicyAbi = [
4885
5490
  outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
4886
5491
  stateMutability: 'view',
4887
5492
  },
5493
+ {
5494
+ type: 'function',
5495
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
5496
+ name: 'nameOf',
5497
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
5498
+ stateMutability: 'view',
5499
+ },
4888
5500
  {
4889
5501
  type: 'function',
4890
5502
  inputs: [
@@ -4929,7 +5541,6 @@ export const publicPolicyAbi = [
4929
5541
  { name: 'bases', internalType: 'address[]', type: 'address[]' },
4930
5542
  { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
4931
5543
  { name: 'phi', internalType: 'uint256', type: 'uint256' },
4932
- { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
4933
5544
  { name: 'policy', internalType: 'address', type: 'address' },
4934
5545
  { name: 'creator', internalType: 'address', type: 'address' },
4935
5546
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
@@ -4940,6 +5551,16 @@ export const publicPolicyAbi = [
4940
5551
  outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4941
5552
  stateMutability: 'nonpayable',
4942
5553
  },
5554
+ {
5555
+ type: 'function',
5556
+ inputs: [
5557
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
5558
+ { name: 'from', internalType: 'address', type: 'address' },
5559
+ ],
5560
+ name: 'onMigrate',
5561
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
5562
+ stateMutability: 'nonpayable',
5563
+ },
4943
5564
  {
4944
5565
  type: 'function',
4945
5566
  inputs: [
@@ -4997,6 +5618,20 @@ export const publicPolicyAbi = [
4997
5618
  outputs: [],
4998
5619
  stateMutability: 'nonpayable',
4999
5620
  },
5621
+ {
5622
+ type: 'function',
5623
+ inputs: [],
5624
+ name: 'quoteCurated',
5625
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
5626
+ stateMutability: 'view',
5627
+ },
5628
+ {
5629
+ type: 'function',
5630
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
5631
+ name: 'quoteListed',
5632
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
5633
+ stateMutability: 'view',
5634
+ },
5000
5635
  {
5001
5636
  type: 'function',
5002
5637
  inputs: [{ name: '_curated', internalType: 'bool', type: 'bool' }],
@@ -5021,6 +5656,33 @@ export const publicPolicyAbi = [
5021
5656
  outputs: [],
5022
5657
  stateMutability: 'nonpayable',
5023
5658
  },
5659
+ {
5660
+ type: 'function',
5661
+ inputs: [
5662
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
5663
+ { name: 'name_', internalType: 'bytes32', type: 'bytes32' },
5664
+ ],
5665
+ name: 'setName',
5666
+ outputs: [],
5667
+ stateMutability: 'nonpayable',
5668
+ },
5669
+ {
5670
+ type: 'function',
5671
+ inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
5672
+ name: 'setQuoteCurated',
5673
+ outputs: [],
5674
+ stateMutability: 'nonpayable',
5675
+ },
5676
+ {
5677
+ type: 'function',
5678
+ inputs: [
5679
+ { name: 'quote', internalType: 'address', type: 'address' },
5680
+ { name: 'listed', internalType: 'bool', type: 'bool' },
5681
+ ],
5682
+ name: 'setQuoteListed',
5683
+ outputs: [],
5684
+ stateMutability: 'nonpayable',
5685
+ },
5024
5686
  {
5025
5687
  type: 'event',
5026
5688
  anonymous: false,
@@ -5096,7 +5758,50 @@ export const publicPolicyAbi = [
5096
5758
  ],
5097
5759
  name: 'Listed',
5098
5760
  },
5761
+ {
5762
+ type: 'event',
5763
+ anonymous: false,
5764
+ inputs: [
5765
+ {
5766
+ name: 'poolId',
5767
+ internalType: 'bytes32',
5768
+ type: 'bytes32',
5769
+ indexed: true,
5770
+ },
5771
+ {
5772
+ name: 'name',
5773
+ internalType: 'bytes32',
5774
+ type: 'bytes32',
5775
+ indexed: false,
5776
+ },
5777
+ ],
5778
+ name: 'NameSet',
5779
+ },
5780
+ {
5781
+ type: 'event',
5782
+ anonymous: false,
5783
+ inputs: [
5784
+ { name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
5785
+ ],
5786
+ name: 'QuoteCuratedSet',
5787
+ },
5788
+ {
5789
+ type: 'event',
5790
+ anonymous: false,
5791
+ inputs: [
5792
+ {
5793
+ name: 'quote',
5794
+ internalType: 'address',
5795
+ type: 'address',
5796
+ indexed: true,
5797
+ },
5798
+ { name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
5799
+ ],
5800
+ name: 'QuoteListed',
5801
+ },
5802
+ { type: 'error', inputs: [], name: 'BadFee' },
5099
5803
  { type: 'error', inputs: [], name: 'BadRate' },
5804
+ { type: 'error', inputs: [], name: 'NoCreator' },
5100
5805
  { type: 'error', inputs: [], name: 'NotAuthority' },
5101
5806
  { type: 'error', inputs: [], name: 'NotCollector' },
5102
5807
  {
@@ -5105,5 +5810,12 @@ export const publicPolicyAbi = [
5105
5810
  name: 'NotListed',
5106
5811
  },
5107
5812
  { type: 'error', inputs: [], name: 'NotManager' },
5813
+ { type: 'error', inputs: [], name: 'NotRegistry' },
5814
+ { type: 'error', inputs: [], name: 'OneBase' },
5815
+ {
5816
+ type: 'error',
5817
+ inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
5818
+ name: 'QuoteNotListed',
5819
+ },
5108
5820
  { type: 'error', inputs: [], name: 'Refused' },
5109
5821
  ] as const