@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/dist/generated.js CHANGED
@@ -1038,6 +1038,7 @@ export const fPoolManagerAbi = [
1038
1038
  type: 'constructor',
1039
1039
  inputs: [
1040
1040
  { name: '_feeCollector', internalType: 'address', type: 'address' },
1041
+ { name: '_registry', internalType: 'address', type: 'address' },
1041
1042
  ],
1042
1043
  stateMutability: 'nonpayable',
1043
1044
  },
@@ -1129,15 +1130,6 @@ export const fPoolManagerAbi = [
1129
1130
  outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
1130
1131
  stateMutability: 'view',
1131
1132
  },
1132
- {
1133
- type: 'function',
1134
- inputs: [],
1135
- name: 'boundary',
1136
- outputs: [
1137
- { name: '', internalType: 'contract FPoolBoundary', type: 'address' },
1138
- ],
1139
- stateMutability: 'view',
1140
- },
1141
1133
  {
1142
1134
  type: 'function',
1143
1135
  inputs: [
@@ -1261,7 +1253,6 @@ export const fPoolManagerAbi = [
1261
1253
  { name: 'quote', internalType: 'address', type: 'address' },
1262
1254
  { name: 'phi', internalType: 'uint96', type: 'uint96' },
1263
1255
  { name: 'policy', internalType: 'address', type: 'address' },
1264
- { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
1265
1256
  { name: 'seeded', internalType: 'bool', type: 'bool' },
1266
1257
  { name: 'gen', internalType: 'uint16', type: 'uint16' },
1267
1258
  { name: 'n', internalType: 'uint8', type: 'uint8' },
@@ -1272,7 +1263,6 @@ export const fPoolManagerAbi = [
1272
1263
  { name: 'L', internalType: 'uint256', type: 'uint256' },
1273
1264
  { name: 'shares', internalType: 'uint256', type: 'uint256' },
1274
1265
  { name: 'theta0', internalType: 'int256', type: 'int256' },
1275
- { name: 'name', internalType: 'bytes32', type: 'bytes32' },
1276
1266
  ],
1277
1267
  },
1278
1268
  ],
@@ -1293,7 +1283,7 @@ export const fPoolManagerAbi = [
1293
1283
  type: 'function',
1294
1284
  inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1295
1285
  name: 'harvestable',
1296
- outputs: [{ name: 'cap', internalType: 'uint256', type: 'uint256' }],
1286
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1297
1287
  stateMutability: 'view',
1298
1288
  },
1299
1289
  {
@@ -1308,7 +1298,6 @@ export const fPoolManagerAbi = [
1308
1298
  { name: 'bases', internalType: 'address[]', type: 'address[]' },
1309
1299
  { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
1310
1300
  { name: 'phi', internalType: 'uint256', type: 'uint256' },
1311
- { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
1312
1301
  { name: 'policy', internalType: 'address', type: 'address' },
1313
1302
  { name: 'creator', internalType: 'address', type: 'address' },
1314
1303
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
@@ -1331,7 +1320,6 @@ export const fPoolManagerAbi = [
1331
1320
  { name: 'bases', internalType: 'address[]', type: 'address[]' },
1332
1321
  { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
1333
1322
  { name: 'phi', internalType: 'uint256', type: 'uint256' },
1334
- { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
1335
1323
  { name: 'policy', internalType: 'address', type: 'address' },
1336
1324
  { name: 'creator', internalType: 'address', type: 'address' },
1337
1325
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
@@ -1432,16 +1420,6 @@ export const fPoolManagerAbi = [
1432
1420
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1433
1421
  stateMutability: 'view',
1434
1422
  },
1435
- {
1436
- type: 'function',
1437
- inputs: [
1438
- { name: '', internalType: 'enum Kind', type: 'uint8' },
1439
- { name: '', internalType: 'address', type: 'address' },
1440
- ],
1441
- name: 'policyApproved',
1442
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1443
- stateMutability: 'view',
1444
- },
1445
1423
  {
1446
1424
  type: 'function',
1447
1425
  inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
@@ -1456,24 +1434,6 @@ export const fPoolManagerAbi = [
1456
1434
  outputs: [],
1457
1435
  stateMutability: 'nonpayable',
1458
1436
  },
1459
- {
1460
- type: 'function',
1461
- inputs: [
1462
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1463
- {
1464
- name: 'kind',
1465
- internalType: 'enum FPoolManager.QuoteKind',
1466
- type: 'uint8',
1467
- },
1468
- { name: 'j', internalType: 'uint256', type: 'uint256' },
1469
- { name: 'k', internalType: 'uint256', type: 'uint256' },
1470
- { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
1471
- { name: 'taker', internalType: 'address', type: 'address' },
1472
- ],
1473
- name: 'quoteSwap',
1474
- outputs: [],
1475
- stateMutability: 'nonpayable',
1476
- },
1477
1437
  {
1478
1438
  type: 'function',
1479
1439
  inputs: [
@@ -1496,6 +1456,15 @@ export const fPoolManagerAbi = [
1496
1456
  outputs: [],
1497
1457
  stateMutability: 'nonpayable',
1498
1458
  },
1459
+ {
1460
+ type: 'function',
1461
+ inputs: [],
1462
+ name: 'registry',
1463
+ outputs: [
1464
+ { name: '', internalType: 'contract PolicyRegistry', type: 'address' },
1465
+ ],
1466
+ stateMutability: 'view',
1467
+ },
1499
1468
  {
1500
1469
  type: 'function',
1501
1470
  inputs: [
@@ -1528,9 +1497,10 @@ export const fPoolManagerAbi = [
1528
1497
  {
1529
1498
  type: 'function',
1530
1499
  inputs: [
1531
- { name: 'mintFeeProtocolCut', internalType: 'uint256', type: 'uint256' },
1500
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1501
+ { name: 'asks', internalType: 'uint8', type: 'uint8' },
1532
1502
  ],
1533
- name: 'setFeeParams',
1503
+ name: 'setAsks',
1534
1504
  outputs: [],
1535
1505
  stateMutability: 'nonpayable',
1536
1506
  },
@@ -1545,16 +1515,6 @@ export const fPoolManagerAbi = [
1545
1515
  outputs: [],
1546
1516
  stateMutability: 'nonpayable',
1547
1517
  },
1548
- {
1549
- type: 'function',
1550
- inputs: [
1551
- { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1552
- { name: 'name_', internalType: 'bytes32', type: 'bytes32' },
1553
- ],
1554
- name: 'setName',
1555
- outputs: [],
1556
- stateMutability: 'nonpayable',
1557
- },
1558
1518
  {
1559
1519
  type: 'function',
1560
1520
  inputs: [
@@ -1568,21 +1528,11 @@ export const fPoolManagerAbi = [
1568
1528
  {
1569
1529
  type: 'function',
1570
1530
  inputs: [
1571
- { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
1572
- { name: 'policy', internalType: 'address', type: 'address' },
1573
- { name: 'approved', internalType: 'bool', type: 'bool' },
1574
- ],
1575
- name: 'setPolicyApproved',
1576
- outputs: [],
1577
- stateMutability: 'nonpayable',
1578
- },
1579
- {
1580
- type: 'function',
1581
- inputs: [
1582
- { name: 'who', internalType: 'address', type: 'address' },
1583
- { name: 'name_', internalType: 'bytes32', type: 'bytes32' },
1531
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
1532
+ { name: 'to', internalType: 'address', type: 'address' },
1533
+ { name: 'asks', internalType: 'uint8', type: 'uint8' },
1584
1534
  ],
1585
- name: 'setSponsorName',
1535
+ name: 'setPolicy',
1586
1536
  outputs: [],
1587
1537
  stateMutability: 'nonpayable',
1588
1538
  },
@@ -1605,10 +1555,10 @@ export const fPoolManagerAbi = [
1605
1555
  },
1606
1556
  {
1607
1557
  type: 'function',
1608
- inputs: [{ name: '', internalType: 'address', type: 'address' }],
1609
- name: 'sponsorName',
1610
- outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
1611
- stateMutability: 'view',
1558
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
1559
+ name: 'stamp',
1560
+ outputs: [],
1561
+ stateMutability: 'nonpayable',
1612
1562
  },
1613
1563
  {
1614
1564
  type: 'function',
@@ -1766,6 +1716,20 @@ export const fPoolManagerAbi = [
1766
1716
  ],
1767
1717
  name: 'Approval',
1768
1718
  },
1719
+ {
1720
+ type: 'event',
1721
+ anonymous: false,
1722
+ inputs: [
1723
+ {
1724
+ name: 'poolId',
1725
+ internalType: 'bytes32',
1726
+ type: 'bytes32',
1727
+ indexed: true,
1728
+ },
1729
+ { name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
1730
+ ],
1731
+ name: 'AsksSet',
1732
+ },
1769
1733
  {
1770
1734
  type: 'event',
1771
1735
  anonymous: false,
@@ -1857,19 +1821,6 @@ export const fPoolManagerAbi = [
1857
1821
  ],
1858
1822
  name: 'DividendClaimed',
1859
1823
  },
1860
- {
1861
- type: 'event',
1862
- anonymous: false,
1863
- inputs: [
1864
- {
1865
- name: 'mintFeeProtocolCut',
1866
- internalType: 'uint256',
1867
- type: 'uint256',
1868
- indexed: false,
1869
- },
1870
- ],
1871
- name: 'FeeParamsSet',
1872
- },
1873
1824
  {
1874
1825
  type: 'event',
1875
1826
  anonymous: false,
@@ -1932,12 +1883,6 @@ export const fPoolManagerAbi = [
1932
1883
  indexed: false,
1933
1884
  },
1934
1885
  { name: 'phi', internalType: 'uint256', type: 'uint256', indexed: false },
1935
- {
1936
- name: 'kind',
1937
- internalType: 'enum Kind',
1938
- type: 'uint8',
1939
- indexed: false,
1940
- },
1941
1886
  {
1942
1887
  name: 'policy',
1943
1888
  internalType: 'address',
@@ -2000,25 +1945,6 @@ export const fPoolManagerAbi = [
2000
1945
  ],
2001
1946
  name: 'Mint',
2002
1947
  },
2003
- {
2004
- type: 'event',
2005
- anonymous: false,
2006
- inputs: [
2007
- {
2008
- name: 'poolId',
2009
- internalType: 'bytes32',
2010
- type: 'bytes32',
2011
- indexed: true,
2012
- },
2013
- {
2014
- name: 'name',
2015
- internalType: 'bytes32',
2016
- type: 'bytes32',
2017
- indexed: false,
2018
- },
2019
- ],
2020
- name: 'NameSet',
2021
- },
2022
1948
  {
2023
1949
  type: 'event',
2024
1950
  anonymous: false,
@@ -2043,16 +1969,17 @@ export const fPoolManagerAbi = [
2043
1969
  type: 'event',
2044
1970
  anonymous: false,
2045
1971
  inputs: [
2046
- { name: 'kind', internalType: 'enum Kind', type: 'uint8', indexed: true },
2047
1972
  {
2048
- name: 'policy',
2049
- internalType: 'address',
2050
- type: 'address',
1973
+ name: 'poolId',
1974
+ internalType: 'bytes32',
1975
+ type: 'bytes32',
2051
1976
  indexed: true,
2052
1977
  },
2053
- { name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
1978
+ { name: 'from', internalType: 'address', type: 'address', indexed: true },
1979
+ { name: 'to', internalType: 'address', type: 'address', indexed: true },
1980
+ { name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
2054
1981
  ],
2055
- name: 'PolicyApproved',
1982
+ name: 'PolicyMigrated',
2056
1983
  },
2057
1984
  {
2058
1985
  type: 'event',
@@ -2203,15 +2130,14 @@ export const fPoolManagerAbi = [
2203
2130
  type: 'event',
2204
2131
  anonymous: false,
2205
2132
  inputs: [
2206
- { name: 'who', internalType: 'address', type: 'address', indexed: true },
2207
2133
  {
2208
- name: 'name',
2134
+ name: 'poolId',
2209
2135
  internalType: 'bytes32',
2210
2136
  type: 'bytes32',
2211
- indexed: false,
2137
+ indexed: true,
2212
2138
  },
2213
2139
  ],
2214
- name: 'SponsorNamed',
2140
+ name: 'Stamped',
2215
2141
  },
2216
2142
  {
2217
2143
  type: 'event',
@@ -2307,7 +2233,8 @@ export const fPoolManagerAbi = [
2307
2233
  { type: 'error', inputs: [], name: 'NonstandardToken' },
2308
2234
  { type: 'error', inputs: [], name: 'NotAuthorized' },
2309
2235
  { type: 'error', inputs: [], name: 'NotCollector' },
2310
- { type: 'error', inputs: [], name: 'NotPrivate' },
2236
+ { type: 'error', inputs: [], name: 'NotPolicy' },
2237
+ { type: 'error', inputs: [], name: 'NotRegistry' },
2311
2238
  { type: 'error', inputs: [], name: 'NotRetired' },
2312
2239
  { type: 'error', inputs: [], name: 'NotSeeded' },
2313
2240
  { type: 'error', inputs: [], name: 'PolicyNotApproved' },
@@ -2332,6 +2259,50 @@ export const fPoolManagerAbi = [
2332
2259
  { type: 'error', inputs: [], name: 'ZeroAmount' },
2333
2260
  ];
2334
2261
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2262
+ // IFPoolManagerMove
2263
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2264
+ export const ifPoolManagerMoveAbi = [
2265
+ {
2266
+ type: 'function',
2267
+ inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
2268
+ name: 'getPool',
2269
+ outputs: [
2270
+ {
2271
+ name: '',
2272
+ internalType: 'struct FPoolBase.Pool',
2273
+ type: 'tuple',
2274
+ components: [
2275
+ { name: 'quote', internalType: 'address', type: 'address' },
2276
+ { name: 'phi', internalType: 'uint96', type: 'uint96' },
2277
+ { name: 'policy', internalType: 'address', type: 'address' },
2278
+ { name: 'seeded', internalType: 'bool', type: 'bool' },
2279
+ { name: 'gen', internalType: 'uint16', type: 'uint16' },
2280
+ { name: 'n', internalType: 'uint8', type: 'uint8' },
2281
+ { name: 'restructureBlock', internalType: 'uint32', type: 'uint32' },
2282
+ { name: 'asks', internalType: 'uint8', type: 'uint8' },
2283
+ { name: 'Q', internalType: 'uint128', type: 'uint128' },
2284
+ { name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
2285
+ { name: 'L', internalType: 'uint256', type: 'uint256' },
2286
+ { name: 'shares', internalType: 'uint256', type: 'uint256' },
2287
+ { name: 'theta0', internalType: 'int256', type: 'int256' },
2288
+ ],
2289
+ },
2290
+ ],
2291
+ stateMutability: 'view',
2292
+ },
2293
+ {
2294
+ type: 'function',
2295
+ inputs: [
2296
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
2297
+ { name: 'to', internalType: 'address', type: 'address' },
2298
+ { name: 'asks', internalType: 'uint8', type: 'uint8' },
2299
+ ],
2300
+ name: 'setPolicy',
2301
+ outputs: [],
2302
+ stateMutability: 'nonpayable',
2303
+ },
2304
+ ];
2305
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2335
2306
  // LogswapLens
2336
2307
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2337
2308
  export const logswapLensAbi = [
@@ -2495,7 +2466,6 @@ export const logswapLensAbi = [
2495
2466
  { name: 'quote', internalType: 'address', type: 'address' },
2496
2467
  { name: 'phi', internalType: 'uint96', type: 'uint96' },
2497
2468
  { name: 'policy', internalType: 'address', type: 'address' },
2498
- { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
2499
2469
  { name: 'seeded', internalType: 'bool', type: 'bool' },
2500
2470
  { name: 'gen', internalType: 'uint16', type: 'uint16' },
2501
2471
  { name: 'n', internalType: 'uint8', type: 'uint8' },
@@ -2506,7 +2476,6 @@ export const logswapLensAbi = [
2506
2476
  { name: 'L', internalType: 'uint256', type: 'uint256' },
2507
2477
  { name: 'shares', internalType: 'uint256', type: 'uint256' },
2508
2478
  { name: 'theta0', internalType: 'int256', type: 'int256' },
2509
- { name: 'name', internalType: 'bytes32', type: 'bytes32' },
2510
2479
  ],
2511
2480
  },
2512
2481
  ],
@@ -3424,6 +3393,20 @@ export const logswapRouterAbi = [
3424
3393
  outputs: [{ name: '', internalType: 'contract IPermit2', type: 'address' }],
3425
3394
  stateMutability: 'view',
3426
3395
  },
3396
+ {
3397
+ type: 'function',
3398
+ inputs: [
3399
+ { name: '', internalType: 'bytes32', type: 'bytes32' },
3400
+ { name: '', internalType: 'enum FPoolManager.QuoteKind', type: 'uint8' },
3401
+ { name: '', internalType: 'uint256', type: 'uint256' },
3402
+ { name: '', internalType: 'uint256', type: 'uint256' },
3403
+ { name: '', internalType: 'uint256', type: 'uint256' },
3404
+ { name: '', internalType: 'address', type: 'address' },
3405
+ ],
3406
+ name: 'quoteSwap',
3407
+ outputs: [],
3408
+ stateMutability: 'nonpayable',
3409
+ },
3427
3410
  {
3428
3411
  type: 'function',
3429
3412
  inputs: [
@@ -3648,6 +3631,11 @@ export const logswapRouterAbi = [
3648
3631
  { type: 'error', inputs: [], name: 'EmptyPath' },
3649
3632
  { type: 'error', inputs: [], name: 'LengthMismatch' },
3650
3633
  { type: 'error', inputs: [], name: 'NotManager' },
3634
+ {
3635
+ type: 'error',
3636
+ inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
3637
+ name: 'QuoteResult',
3638
+ },
3651
3639
  { type: 'error', inputs: [], name: 'SlippageIn' },
3652
3640
  { type: 'error', inputs: [], name: 'SlippageOut' },
3653
3641
  { type: 'error', inputs: [], name: 'UnsupportedOp' },
@@ -3711,6 +3699,13 @@ export const padPolicyAbi = [
3711
3699
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3712
3700
  stateMutability: 'view',
3713
3701
  },
3702
+ {
3703
+ type: 'function',
3704
+ inputs: [],
3705
+ name: 'kind',
3706
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3707
+ stateMutability: 'pure',
3708
+ },
3714
3709
  {
3715
3710
  type: 'function',
3716
3711
  inputs: [],
@@ -3755,6 +3750,13 @@ export const padPolicyAbi = [
3755
3750
  outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
3756
3751
  stateMutability: 'view',
3757
3752
  },
3753
+ {
3754
+ type: 'function',
3755
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3756
+ name: 'nameOf',
3757
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3758
+ stateMutability: 'view',
3759
+ },
3758
3760
  {
3759
3761
  type: 'function',
3760
3762
  inputs: [
@@ -3799,7 +3801,6 @@ export const padPolicyAbi = [
3799
3801
  { name: 'bases', internalType: 'address[]', type: 'address[]' },
3800
3802
  { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
3801
3803
  { name: 'phi', internalType: 'uint256', type: 'uint256' },
3802
- { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
3803
3804
  { name: 'policy', internalType: 'address', type: 'address' },
3804
3805
  { name: 'creator', internalType: 'address', type: 'address' },
3805
3806
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
@@ -3810,6 +3811,16 @@ export const padPolicyAbi = [
3810
3811
  outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
3811
3812
  stateMutability: 'nonpayable',
3812
3813
  },
3814
+ {
3815
+ type: 'function',
3816
+ inputs: [
3817
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3818
+ { name: 'from', internalType: 'address', type: 'address' },
3819
+ ],
3820
+ name: 'onMigrate',
3821
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
3822
+ stateMutability: 'nonpayable',
3823
+ },
3813
3824
  {
3814
3825
  type: 'function',
3815
3826
  inputs: [
@@ -3874,6 +3885,20 @@ export const padPolicyAbi = [
3874
3885
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3875
3886
  stateMutability: 'view',
3876
3887
  },
3888
+ {
3889
+ type: 'function',
3890
+ inputs: [],
3891
+ name: 'quoteCurated',
3892
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3893
+ stateMutability: 'view',
3894
+ },
3895
+ {
3896
+ type: 'function',
3897
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
3898
+ name: 'quoteListed',
3899
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3900
+ stateMutability: 'view',
3901
+ },
3877
3902
  {
3878
3903
  type: 'function',
3879
3904
  inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
@@ -3888,6 +3913,33 @@ export const padPolicyAbi = [
3888
3913
  outputs: [],
3889
3914
  stateMutability: 'nonpayable',
3890
3915
  },
3916
+ {
3917
+ type: 'function',
3918
+ inputs: [
3919
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
3920
+ { name: 'name_', internalType: 'bytes32', type: 'bytes32' },
3921
+ ],
3922
+ name: 'setName',
3923
+ outputs: [],
3924
+ stateMutability: 'nonpayable',
3925
+ },
3926
+ {
3927
+ type: 'function',
3928
+ inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
3929
+ name: 'setQuoteCurated',
3930
+ outputs: [],
3931
+ stateMutability: 'nonpayable',
3932
+ },
3933
+ {
3934
+ type: 'function',
3935
+ inputs: [
3936
+ { name: 'quote', internalType: 'address', type: 'address' },
3937
+ { name: 'listed', internalType: 'bool', type: 'bool' },
3938
+ ],
3939
+ name: 'setQuoteListed',
3940
+ outputs: [],
3941
+ stateMutability: 'nonpayable',
3942
+ },
3891
3943
  {
3892
3944
  type: 'function',
3893
3945
  inputs: [
@@ -3995,10 +4047,51 @@ export const padPolicyAbi = [
3995
4047
  anonymous: false,
3996
4048
  inputs: [
3997
4049
  {
3998
- name: 'thresholdBase',
3999
- internalType: 'uint256',
4000
- type: 'uint256',
4001
- indexed: false,
4050
+ name: 'poolId',
4051
+ internalType: 'bytes32',
4052
+ type: 'bytes32',
4053
+ indexed: true,
4054
+ },
4055
+ {
4056
+ name: 'name',
4057
+ internalType: 'bytes32',
4058
+ type: 'bytes32',
4059
+ indexed: false,
4060
+ },
4061
+ ],
4062
+ name: 'NameSet',
4063
+ },
4064
+ {
4065
+ type: 'event',
4066
+ anonymous: false,
4067
+ inputs: [
4068
+ { name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
4069
+ ],
4070
+ name: 'QuoteCuratedSet',
4071
+ },
4072
+ {
4073
+ type: 'event',
4074
+ anonymous: false,
4075
+ inputs: [
4076
+ {
4077
+ name: 'quote',
4078
+ internalType: 'address',
4079
+ type: 'address',
4080
+ indexed: true,
4081
+ },
4082
+ { name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
4083
+ ],
4084
+ name: 'QuoteListed',
4085
+ },
4086
+ {
4087
+ type: 'event',
4088
+ anonymous: false,
4089
+ inputs: [
4090
+ {
4091
+ name: 'thresholdBase',
4092
+ internalType: 'uint256',
4093
+ type: 'uint256',
4094
+ indexed: false,
4002
4095
  },
4003
4096
  {
4004
4097
  name: 'thresholdGrowth',
@@ -4027,11 +4120,20 @@ export const padPolicyAbi = [
4027
4120
  ],
4028
4121
  name: 'ScheduleSet',
4029
4122
  },
4123
+ { type: 'error', inputs: [], name: 'BadFee' },
4030
4124
  { type: 'error', inputs: [], name: 'BadRate' },
4125
+ { type: 'error', inputs: [], name: 'NoCreator' },
4031
4126
  { type: 'error', inputs: [], name: 'NotAuthority' },
4032
4127
  { type: 'error', inputs: [], name: 'NotCollector' },
4033
4128
  { type: 'error', inputs: [], name: 'NotGraduated' },
4034
4129
  { type: 'error', inputs: [], name: 'NotManager' },
4130
+ { type: 'error', inputs: [], name: 'NotRegistry' },
4131
+ { type: 'error', inputs: [], name: 'OneBase' },
4132
+ {
4133
+ type: 'error',
4134
+ inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
4135
+ name: 'QuoteNotListed',
4136
+ },
4035
4137
  { type: 'error', inputs: [], name: 'Refused' },
4036
4138
  ];
4037
4139
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -4084,6 +4186,13 @@ export const polPolicyAbi = [
4084
4186
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4085
4187
  stateMutability: 'view',
4086
4188
  },
4189
+ {
4190
+ type: 'function',
4191
+ inputs: [],
4192
+ name: 'kind',
4193
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4194
+ stateMutability: 'pure',
4195
+ },
4087
4196
  {
4088
4197
  type: 'function',
4089
4198
  inputs: [],
@@ -4135,6 +4244,13 @@ export const polPolicyAbi = [
4135
4244
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4136
4245
  stateMutability: 'view',
4137
4246
  },
4247
+ {
4248
+ type: 'function',
4249
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4250
+ name: 'nameOf',
4251
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4252
+ stateMutability: 'view',
4253
+ },
4138
4254
  {
4139
4255
  type: 'function',
4140
4256
  inputs: [
@@ -4179,7 +4295,6 @@ export const polPolicyAbi = [
4179
4295
  { name: 'bases', internalType: 'address[]', type: 'address[]' },
4180
4296
  { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
4181
4297
  { name: 'phi', internalType: 'uint256', type: 'uint256' },
4182
- { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
4183
4298
  { name: 'policy', internalType: 'address', type: 'address' },
4184
4299
  { name: 'creator', internalType: 'address', type: 'address' },
4185
4300
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
@@ -4190,6 +4305,16 @@ export const polPolicyAbi = [
4190
4305
  outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4191
4306
  stateMutability: 'nonpayable',
4192
4307
  },
4308
+ {
4309
+ type: 'function',
4310
+ inputs: [
4311
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4312
+ { name: 'from', internalType: 'address', type: 'address' },
4313
+ ],
4314
+ name: 'onMigrate',
4315
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4316
+ stateMutability: 'nonpayable',
4317
+ },
4193
4318
  {
4194
4319
  type: 'function',
4195
4320
  inputs: [
@@ -4247,6 +4372,20 @@ export const polPolicyAbi = [
4247
4372
  outputs: [],
4248
4373
  stateMutability: 'nonpayable',
4249
4374
  },
4375
+ {
4376
+ type: 'function',
4377
+ inputs: [],
4378
+ name: 'quoteCurated',
4379
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4380
+ stateMutability: 'view',
4381
+ },
4382
+ {
4383
+ type: 'function',
4384
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
4385
+ name: 'quoteListed',
4386
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4387
+ stateMutability: 'view',
4388
+ },
4250
4389
  {
4251
4390
  type: 'function',
4252
4391
  inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
@@ -4254,6 +4393,33 @@ export const polPolicyAbi = [
4254
4393
  outputs: [],
4255
4394
  stateMutability: 'nonpayable',
4256
4395
  },
4396
+ {
4397
+ type: 'function',
4398
+ inputs: [
4399
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4400
+ { name: 'name_', internalType: 'bytes32', type: 'bytes32' },
4401
+ ],
4402
+ name: 'setName',
4403
+ outputs: [],
4404
+ stateMutability: 'nonpayable',
4405
+ },
4406
+ {
4407
+ type: 'function',
4408
+ inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
4409
+ name: 'setQuoteCurated',
4410
+ outputs: [],
4411
+ stateMutability: 'nonpayable',
4412
+ },
4413
+ {
4414
+ type: 'function',
4415
+ inputs: [
4416
+ { name: 'quote', internalType: 'address', type: 'address' },
4417
+ { name: 'listed', internalType: 'bool', type: 'bool' },
4418
+ ],
4419
+ name: 'setQuoteListed',
4420
+ outputs: [],
4421
+ stateMutability: 'nonpayable',
4422
+ },
4257
4423
  {
4258
4424
  type: 'function',
4259
4425
  inputs: [
@@ -4317,6 +4483,47 @@ export const polPolicyAbi = [
4317
4483
  ],
4318
4484
  name: 'HarvestCutSet',
4319
4485
  },
4486
+ {
4487
+ type: 'event',
4488
+ anonymous: false,
4489
+ inputs: [
4490
+ {
4491
+ name: 'poolId',
4492
+ internalType: 'bytes32',
4493
+ type: 'bytes32',
4494
+ indexed: true,
4495
+ },
4496
+ {
4497
+ name: 'name',
4498
+ internalType: 'bytes32',
4499
+ type: 'bytes32',
4500
+ indexed: false,
4501
+ },
4502
+ ],
4503
+ name: 'NameSet',
4504
+ },
4505
+ {
4506
+ type: 'event',
4507
+ anonymous: false,
4508
+ inputs: [
4509
+ { name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
4510
+ ],
4511
+ name: 'QuoteCuratedSet',
4512
+ },
4513
+ {
4514
+ type: 'event',
4515
+ anonymous: false,
4516
+ inputs: [
4517
+ {
4518
+ name: 'quote',
4519
+ internalType: 'address',
4520
+ type: 'address',
4521
+ indexed: true,
4522
+ },
4523
+ { name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
4524
+ ],
4525
+ name: 'QuoteListed',
4526
+ },
4320
4527
  {
4321
4528
  type: 'event',
4322
4529
  anonymous: false,
@@ -4336,14 +4543,241 @@ export const polPolicyAbi = [
4336
4543
  ],
4337
4544
  name: 'RulesSet',
4338
4545
  },
4546
+ { type: 'error', inputs: [], name: 'BadFee' },
4339
4547
  { type: 'error', inputs: [], name: 'BadRate' },
4548
+ { type: 'error', inputs: [], name: 'NoCreator' },
4340
4549
  { type: 'error', inputs: [], name: 'NotAuthority' },
4341
4550
  { type: 'error', inputs: [], name: 'NotCollector' },
4342
4551
  { type: 'error', inputs: [], name: 'NotManager' },
4552
+ { type: 'error', inputs: [], name: 'NotRegistry' },
4553
+ { type: 'error', inputs: [], name: 'OneBase' },
4554
+ {
4555
+ type: 'error',
4556
+ inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
4557
+ name: 'QuoteNotListed',
4558
+ },
4343
4559
  { type: 'error', inputs: [], name: 'QuoteTooThin' },
4344
4560
  { type: 'error', inputs: [], name: 'Refused' },
4345
4561
  ];
4346
4562
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4563
+ // PolicyRegistry
4564
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4565
+ export const policyRegistryAbi = [
4566
+ {
4567
+ type: 'constructor',
4568
+ inputs: [{ name: '_owner', internalType: 'address', type: 'address' }],
4569
+ stateMutability: 'nonpayable',
4570
+ },
4571
+ {
4572
+ type: 'function',
4573
+ inputs: [],
4574
+ name: 'acceptOwner',
4575
+ outputs: [],
4576
+ stateMutability: 'nonpayable',
4577
+ },
4578
+ {
4579
+ type: 'function',
4580
+ inputs: [
4581
+ { name: 'policy', internalType: 'address', type: 'address' },
4582
+ { name: 'name', internalType: 'bytes32', type: 'bytes32' },
4583
+ ],
4584
+ name: 'approve',
4585
+ outputs: [],
4586
+ stateMutability: 'nonpayable',
4587
+ },
4588
+ {
4589
+ type: 'function',
4590
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
4591
+ name: 'entries',
4592
+ outputs: [
4593
+ { name: 'listed', internalType: 'bool', type: 'bool' },
4594
+ { name: 'until', internalType: 'uint64', type: 'uint64' },
4595
+ { name: 'index', internalType: 'uint32', type: 'uint32' },
4596
+ { name: 'name', internalType: 'bytes32', type: 'bytes32' },
4597
+ ],
4598
+ stateMutability: 'view',
4599
+ },
4600
+ {
4601
+ type: 'function',
4602
+ inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
4603
+ name: 'isApproved',
4604
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4605
+ stateMutability: 'view',
4606
+ },
4607
+ {
4608
+ type: 'function',
4609
+ inputs: [
4610
+ { name: 'manager', internalType: 'address', type: 'address' },
4611
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4612
+ { name: 'to', internalType: 'address', type: 'address' },
4613
+ ],
4614
+ name: 'migrate',
4615
+ outputs: [],
4616
+ stateMutability: 'nonpayable',
4617
+ },
4618
+ {
4619
+ type: 'function',
4620
+ inputs: [],
4621
+ name: 'owner',
4622
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4623
+ stateMutability: 'view',
4624
+ },
4625
+ {
4626
+ type: 'function',
4627
+ inputs: [],
4628
+ name: 'pendingOwner',
4629
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
4630
+ stateMutability: 'view',
4631
+ },
4632
+ {
4633
+ type: 'function',
4634
+ inputs: [],
4635
+ name: 'policies',
4636
+ outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }],
4637
+ stateMutability: 'view',
4638
+ },
4639
+ {
4640
+ type: 'function',
4641
+ inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
4642
+ name: 'proposeOwner',
4643
+ outputs: [],
4644
+ stateMutability: 'nonpayable',
4645
+ },
4646
+ {
4647
+ type: 'function',
4648
+ inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
4649
+ name: 'revoke',
4650
+ outputs: [],
4651
+ stateMutability: 'nonpayable',
4652
+ },
4653
+ {
4654
+ type: 'function',
4655
+ inputs: [
4656
+ { name: 'who', internalType: 'address', type: 'address' },
4657
+ { name: 'name', internalType: 'bytes32', type: 'bytes32' },
4658
+ ],
4659
+ name: 'setSponsorName',
4660
+ outputs: [],
4661
+ stateMutability: 'nonpayable',
4662
+ },
4663
+ {
4664
+ type: 'function',
4665
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
4666
+ name: 'sponsorName',
4667
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4668
+ stateMutability: 'view',
4669
+ },
4670
+ {
4671
+ type: 'function',
4672
+ inputs: [
4673
+ { name: 'policy', internalType: 'address', type: 'address' },
4674
+ { name: 'untilBlock', internalType: 'uint64', type: 'uint64' },
4675
+ ],
4676
+ name: 'sunset',
4677
+ outputs: [],
4678
+ stateMutability: 'nonpayable',
4679
+ },
4680
+ {
4681
+ type: 'event',
4682
+ anonymous: false,
4683
+ inputs: [
4684
+ {
4685
+ name: 'policy',
4686
+ internalType: 'address',
4687
+ type: 'address',
4688
+ indexed: true,
4689
+ },
4690
+ {
4691
+ name: 'name',
4692
+ internalType: 'bytes32',
4693
+ type: 'bytes32',
4694
+ indexed: false,
4695
+ },
4696
+ ],
4697
+ name: 'Approved',
4698
+ },
4699
+ {
4700
+ type: 'event',
4701
+ anonymous: false,
4702
+ inputs: [
4703
+ { name: 'prev', internalType: 'address', type: 'address', indexed: true },
4704
+ { name: 'next', internalType: 'address', type: 'address', indexed: true },
4705
+ ],
4706
+ name: 'OwnerAccepted',
4707
+ },
4708
+ {
4709
+ type: 'event',
4710
+ anonymous: false,
4711
+ inputs: [
4712
+ {
4713
+ name: 'current',
4714
+ internalType: 'address',
4715
+ type: 'address',
4716
+ indexed: true,
4717
+ },
4718
+ {
4719
+ name: 'proposed',
4720
+ internalType: 'address',
4721
+ type: 'address',
4722
+ indexed: true,
4723
+ },
4724
+ ],
4725
+ name: 'OwnerProposed',
4726
+ },
4727
+ {
4728
+ type: 'event',
4729
+ anonymous: false,
4730
+ inputs: [
4731
+ {
4732
+ name: 'policy',
4733
+ internalType: 'address',
4734
+ type: 'address',
4735
+ indexed: true,
4736
+ },
4737
+ ],
4738
+ name: 'Revoked',
4739
+ },
4740
+ {
4741
+ type: 'event',
4742
+ anonymous: false,
4743
+ inputs: [
4744
+ { name: 'who', internalType: 'address', type: 'address', indexed: true },
4745
+ {
4746
+ name: 'name',
4747
+ internalType: 'bytes32',
4748
+ type: 'bytes32',
4749
+ indexed: false,
4750
+ },
4751
+ ],
4752
+ name: 'SponsorNamed',
4753
+ },
4754
+ {
4755
+ type: 'event',
4756
+ anonymous: false,
4757
+ inputs: [
4758
+ {
4759
+ name: 'policy',
4760
+ internalType: 'address',
4761
+ type: 'address',
4762
+ indexed: true,
4763
+ },
4764
+ {
4765
+ name: 'untilBlock',
4766
+ internalType: 'uint64',
4767
+ type: 'uint64',
4768
+ indexed: false,
4769
+ },
4770
+ ],
4771
+ name: 'SunsetSet',
4772
+ },
4773
+ { type: 'error', inputs: [], name: 'BadSunset' },
4774
+ { type: 'error', inputs: [], name: 'KindMismatch' },
4775
+ { type: 'error', inputs: [], name: 'NotAPolicy' },
4776
+ { type: 'error', inputs: [], name: 'NotListed' },
4777
+ { type: 'error', inputs: [], name: 'NotOwner' },
4778
+ { type: 'error', inputs: [], name: 'SamePolicy' },
4779
+ ];
4780
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4347
4781
  // PrivatePolicy
4348
4782
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4349
4783
  export const privatePolicyAbi = [
@@ -4358,6 +4792,20 @@ export const privatePolicyAbi = [
4358
4792
  ],
4359
4793
  stateMutability: 'nonpayable',
4360
4794
  },
4795
+ {
4796
+ type: 'function',
4797
+ inputs: [],
4798
+ name: 'MINTER',
4799
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4800
+ stateMutability: 'view',
4801
+ },
4802
+ {
4803
+ type: 'function',
4804
+ inputs: [],
4805
+ name: 'TAKER',
4806
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4807
+ stateMutability: 'view',
4808
+ },
4361
4809
  {
4362
4810
  type: 'function',
4363
4811
  inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
@@ -4412,9 +4860,29 @@ export const privatePolicyAbi = [
4412
4860
  },
4413
4861
  {
4414
4862
  type: 'function',
4415
- inputs: [],
4416
- name: 'harvestCut',
4417
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4863
+ inputs: [],
4864
+ name: 'harvestCut',
4865
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4866
+ stateMutability: 'view',
4867
+ },
4868
+ {
4869
+ type: 'function',
4870
+ inputs: [
4871
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4872
+ { name: 'who', internalType: 'address', type: 'address' },
4873
+ ],
4874
+ name: 'isAllowed',
4875
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4876
+ stateMutability: 'view',
4877
+ },
4878
+ {
4879
+ type: 'function',
4880
+ inputs: [
4881
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4882
+ { name: 'who', internalType: 'address', type: 'address' },
4883
+ ],
4884
+ name: 'isMinter',
4885
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4418
4886
  stateMutability: 'view',
4419
4887
  },
4420
4888
  {
@@ -4423,10 +4891,17 @@ export const privatePolicyAbi = [
4423
4891
  { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4424
4892
  { name: 'who', internalType: 'address', type: 'address' },
4425
4893
  ],
4426
- name: 'isAllowed',
4894
+ name: 'isTaker',
4427
4895
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4428
4896
  stateMutability: 'view',
4429
4897
  },
4898
+ {
4899
+ type: 'function',
4900
+ inputs: [],
4901
+ name: 'kind',
4902
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4903
+ stateMutability: 'pure',
4904
+ },
4430
4905
  {
4431
4906
  type: 'function',
4432
4907
  inputs: [],
@@ -4471,6 +4946,13 @@ export const privatePolicyAbi = [
4471
4946
  outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
4472
4947
  stateMutability: 'view',
4473
4948
  },
4949
+ {
4950
+ type: 'function',
4951
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4952
+ name: 'nameOf',
4953
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
4954
+ stateMutability: 'view',
4955
+ },
4474
4956
  {
4475
4957
  type: 'function',
4476
4958
  inputs: [
@@ -4515,7 +4997,6 @@ export const privatePolicyAbi = [
4515
4997
  { name: 'bases', internalType: 'address[]', type: 'address[]' },
4516
4998
  { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
4517
4999
  { name: 'phi', internalType: 'uint256', type: 'uint256' },
4518
- { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
4519
5000
  { name: 'policy', internalType: 'address', type: 'address' },
4520
5001
  { name: 'creator', internalType: 'address', type: 'address' },
4521
5002
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
@@ -4526,6 +5007,16 @@ export const privatePolicyAbi = [
4526
5007
  outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4527
5008
  stateMutability: 'nonpayable',
4528
5009
  },
5010
+ {
5011
+ type: 'function',
5012
+ inputs: [
5013
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
5014
+ { name: 'from', internalType: 'address', type: 'address' },
5015
+ ],
5016
+ name: 'onMigrate',
5017
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
5018
+ stateMutability: 'nonpayable',
5019
+ },
4529
5020
  {
4530
5021
  type: 'function',
4531
5022
  inputs: [
@@ -4604,6 +5095,38 @@ export const privatePolicyAbi = [
4604
5095
  outputs: [],
4605
5096
  stateMutability: 'nonpayable',
4606
5097
  },
5098
+ {
5099
+ type: 'function',
5100
+ inputs: [],
5101
+ name: 'quoteCurated',
5102
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
5103
+ stateMutability: 'view',
5104
+ },
5105
+ {
5106
+ type: 'function',
5107
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
5108
+ name: 'quoteListed',
5109
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
5110
+ stateMutability: 'view',
5111
+ },
5112
+ {
5113
+ type: 'function',
5114
+ inputs: [
5115
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
5116
+ { name: '_gateMint', internalType: 'bool', type: 'bool' },
5117
+ { name: '_gateSwap', internalType: 'bool', type: 'bool' },
5118
+ ],
5119
+ name: 'setGates',
5120
+ outputs: [],
5121
+ stateMutability: 'nonpayable',
5122
+ },
5123
+ {
5124
+ type: 'function',
5125
+ inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
5126
+ name: 'setHarvestCut',
5127
+ outputs: [],
5128
+ stateMutability: 'nonpayable',
5129
+ },
4607
5130
  {
4608
5131
  type: 'function',
4609
5132
  inputs: [
@@ -4611,7 +5134,7 @@ export const privatePolicyAbi = [
4611
5134
  { name: 'who', internalType: 'address[]', type: 'address[]' },
4612
5135
  { name: 'yes', internalType: 'bool', type: 'bool' },
4613
5136
  ],
4614
- name: 'setAllowed',
5137
+ name: 'setMinters',
4615
5138
  outputs: [],
4616
5139
  stateMutability: 'nonpayable',
4617
5140
  },
@@ -4619,40 +5142,39 @@ export const privatePolicyAbi = [
4619
5142
  type: 'function',
4620
5143
  inputs: [
4621
5144
  { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
4622
- { name: '_gateMint', internalType: 'bool', type: 'bool' },
4623
- { name: '_gateSwap', internalType: 'bool', type: 'bool' },
5145
+ { name: 'name_', internalType: 'bytes32', type: 'bytes32' },
4624
5146
  ],
4625
- name: 'setGates',
5147
+ name: 'setName',
4626
5148
  outputs: [],
4627
5149
  stateMutability: 'nonpayable',
4628
5150
  },
4629
5151
  {
4630
5152
  type: 'function',
4631
- inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
4632
- name: 'setHarvestCut',
5153
+ inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
5154
+ name: 'setQuoteCurated',
4633
5155
  outputs: [],
4634
5156
  stateMutability: 'nonpayable',
4635
5157
  },
4636
5158
  {
4637
- type: 'event',
4638
- anonymous: false,
5159
+ type: 'function',
4639
5160
  inputs: [
4640
- {
4641
- name: 'poolId',
4642
- internalType: 'bytes32',
4643
- type: 'bytes32',
4644
- indexed: true,
4645
- },
4646
- {
4647
- name: 'authority',
4648
- internalType: 'address',
4649
- type: 'address',
4650
- indexed: true,
4651
- },
4652
- { name: 'who', internalType: 'address', type: 'address', indexed: true },
4653
- { name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
5161
+ { name: 'quote', internalType: 'address', type: 'address' },
5162
+ { name: 'listed', internalType: 'bool', type: 'bool' },
5163
+ ],
5164
+ name: 'setQuoteListed',
5165
+ outputs: [],
5166
+ stateMutability: 'nonpayable',
5167
+ },
5168
+ {
5169
+ type: 'function',
5170
+ inputs: [
5171
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
5172
+ { name: 'who', internalType: 'address[]', type: 'address[]' },
5173
+ { name: 'yes', internalType: 'bool', type: 'bool' },
4654
5174
  ],
4655
- name: 'Allowed',
5175
+ name: 'setTakers',
5176
+ outputs: [],
5177
+ stateMutability: 'nonpayable',
4656
5178
  },
4657
5179
  {
4658
5180
  type: 'event',
@@ -4722,6 +5244,47 @@ export const privatePolicyAbi = [
4722
5244
  ],
4723
5245
  name: 'HarvestCutSet',
4724
5246
  },
5247
+ {
5248
+ type: 'event',
5249
+ anonymous: false,
5250
+ inputs: [
5251
+ {
5252
+ name: 'poolId',
5253
+ internalType: 'bytes32',
5254
+ type: 'bytes32',
5255
+ indexed: true,
5256
+ },
5257
+ {
5258
+ name: 'authority',
5259
+ internalType: 'address',
5260
+ type: 'address',
5261
+ indexed: true,
5262
+ },
5263
+ { name: 'who', internalType: 'address', type: 'address', indexed: true },
5264
+ { name: 'role', internalType: 'uint8', type: 'uint8', indexed: false },
5265
+ { name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
5266
+ ],
5267
+ name: 'Listed',
5268
+ },
5269
+ {
5270
+ type: 'event',
5271
+ anonymous: false,
5272
+ inputs: [
5273
+ {
5274
+ name: 'poolId',
5275
+ internalType: 'bytes32',
5276
+ type: 'bytes32',
5277
+ indexed: true,
5278
+ },
5279
+ {
5280
+ name: 'name',
5281
+ internalType: 'bytes32',
5282
+ type: 'bytes32',
5283
+ indexed: false,
5284
+ },
5285
+ ],
5286
+ name: 'NameSet',
5287
+ },
4725
5288
  {
4726
5289
  type: 'event',
4727
5290
  anonymous: false,
@@ -4762,11 +5325,42 @@ export const privatePolicyAbi = [
4762
5325
  ],
4763
5326
  name: 'OperatorSet',
4764
5327
  },
5328
+ {
5329
+ type: 'event',
5330
+ anonymous: false,
5331
+ inputs: [
5332
+ { name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
5333
+ ],
5334
+ name: 'QuoteCuratedSet',
5335
+ },
5336
+ {
5337
+ type: 'event',
5338
+ anonymous: false,
5339
+ inputs: [
5340
+ {
5341
+ name: 'quote',
5342
+ internalType: 'address',
5343
+ type: 'address',
5344
+ indexed: true,
5345
+ },
5346
+ { name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
5347
+ ],
5348
+ name: 'QuoteListed',
5349
+ },
5350
+ { type: 'error', inputs: [], name: 'BadFee' },
4765
5351
  { type: 'error', inputs: [], name: 'BadRate' },
5352
+ { type: 'error', inputs: [], name: 'NoCreator' },
4766
5353
  { type: 'error', inputs: [], name: 'NotAuthority' },
4767
5354
  { type: 'error', inputs: [], name: 'NotCollector' },
4768
5355
  { type: 'error', inputs: [], name: 'NotManager' },
4769
5356
  { type: 'error', inputs: [], name: 'NotOperator' },
5357
+ { type: 'error', inputs: [], name: 'NotRegistry' },
5358
+ { type: 'error', inputs: [], name: 'OneBase' },
5359
+ {
5360
+ type: 'error',
5361
+ inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
5362
+ name: 'QuoteNotListed',
5363
+ },
4770
5364
  { type: 'error', inputs: [], name: 'Refused' },
4771
5365
  ];
4772
5366
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -4819,6 +5413,13 @@ export const publicPolicyAbi = [
4819
5413
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
4820
5414
  stateMutability: 'view',
4821
5415
  },
5416
+ {
5417
+ type: 'function',
5418
+ inputs: [],
5419
+ name: 'kind',
5420
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
5421
+ stateMutability: 'pure',
5422
+ },
4822
5423
  {
4823
5424
  type: 'function',
4824
5425
  inputs: [{ name: '', internalType: 'address', type: 'address' }],
@@ -4870,6 +5471,13 @@ export const publicPolicyAbi = [
4870
5471
  outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
4871
5472
  stateMutability: 'view',
4872
5473
  },
5474
+ {
5475
+ type: 'function',
5476
+ inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
5477
+ name: 'nameOf',
5478
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
5479
+ stateMutability: 'view',
5480
+ },
4873
5481
  {
4874
5482
  type: 'function',
4875
5483
  inputs: [
@@ -4914,7 +5522,6 @@ export const publicPolicyAbi = [
4914
5522
  { name: 'bases', internalType: 'address[]', type: 'address[]' },
4915
5523
  { name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
4916
5524
  { name: 'phi', internalType: 'uint256', type: 'uint256' },
4917
- { name: 'kind', internalType: 'enum Kind', type: 'uint8' },
4918
5525
  { name: 'policy', internalType: 'address', type: 'address' },
4919
5526
  { name: 'creator', internalType: 'address', type: 'address' },
4920
5527
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
@@ -4925,6 +5532,16 @@ export const publicPolicyAbi = [
4925
5532
  outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4926
5533
  stateMutability: 'nonpayable',
4927
5534
  },
5535
+ {
5536
+ type: 'function',
5537
+ inputs: [
5538
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
5539
+ { name: 'from', internalType: 'address', type: 'address' },
5540
+ ],
5541
+ name: 'onMigrate',
5542
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
5543
+ stateMutability: 'nonpayable',
5544
+ },
4928
5545
  {
4929
5546
  type: 'function',
4930
5547
  inputs: [
@@ -4982,6 +5599,20 @@ export const publicPolicyAbi = [
4982
5599
  outputs: [],
4983
5600
  stateMutability: 'nonpayable',
4984
5601
  },
5602
+ {
5603
+ type: 'function',
5604
+ inputs: [],
5605
+ name: 'quoteCurated',
5606
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
5607
+ stateMutability: 'view',
5608
+ },
5609
+ {
5610
+ type: 'function',
5611
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
5612
+ name: 'quoteListed',
5613
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
5614
+ stateMutability: 'view',
5615
+ },
4985
5616
  {
4986
5617
  type: 'function',
4987
5618
  inputs: [{ name: '_curated', internalType: 'bool', type: 'bool' }],
@@ -5006,6 +5637,33 @@ export const publicPolicyAbi = [
5006
5637
  outputs: [],
5007
5638
  stateMutability: 'nonpayable',
5008
5639
  },
5640
+ {
5641
+ type: 'function',
5642
+ inputs: [
5643
+ { name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
5644
+ { name: 'name_', internalType: 'bytes32', type: 'bytes32' },
5645
+ ],
5646
+ name: 'setName',
5647
+ outputs: [],
5648
+ stateMutability: 'nonpayable',
5649
+ },
5650
+ {
5651
+ type: 'function',
5652
+ inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
5653
+ name: 'setQuoteCurated',
5654
+ outputs: [],
5655
+ stateMutability: 'nonpayable',
5656
+ },
5657
+ {
5658
+ type: 'function',
5659
+ inputs: [
5660
+ { name: 'quote', internalType: 'address', type: 'address' },
5661
+ { name: 'listed', internalType: 'bool', type: 'bool' },
5662
+ ],
5663
+ name: 'setQuoteListed',
5664
+ outputs: [],
5665
+ stateMutability: 'nonpayable',
5666
+ },
5009
5667
  {
5010
5668
  type: 'event',
5011
5669
  anonymous: false,
@@ -5081,7 +5739,50 @@ export const publicPolicyAbi = [
5081
5739
  ],
5082
5740
  name: 'Listed',
5083
5741
  },
5742
+ {
5743
+ type: 'event',
5744
+ anonymous: false,
5745
+ inputs: [
5746
+ {
5747
+ name: 'poolId',
5748
+ internalType: 'bytes32',
5749
+ type: 'bytes32',
5750
+ indexed: true,
5751
+ },
5752
+ {
5753
+ name: 'name',
5754
+ internalType: 'bytes32',
5755
+ type: 'bytes32',
5756
+ indexed: false,
5757
+ },
5758
+ ],
5759
+ name: 'NameSet',
5760
+ },
5761
+ {
5762
+ type: 'event',
5763
+ anonymous: false,
5764
+ inputs: [
5765
+ { name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
5766
+ ],
5767
+ name: 'QuoteCuratedSet',
5768
+ },
5769
+ {
5770
+ type: 'event',
5771
+ anonymous: false,
5772
+ inputs: [
5773
+ {
5774
+ name: 'quote',
5775
+ internalType: 'address',
5776
+ type: 'address',
5777
+ indexed: true,
5778
+ },
5779
+ { name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
5780
+ ],
5781
+ name: 'QuoteListed',
5782
+ },
5783
+ { type: 'error', inputs: [], name: 'BadFee' },
5084
5784
  { type: 'error', inputs: [], name: 'BadRate' },
5785
+ { type: 'error', inputs: [], name: 'NoCreator' },
5085
5786
  { type: 'error', inputs: [], name: 'NotAuthority' },
5086
5787
  { type: 'error', inputs: [], name: 'NotCollector' },
5087
5788
  {
@@ -5090,5 +5791,12 @@ export const publicPolicyAbi = [
5090
5791
  name: 'NotListed',
5091
5792
  },
5092
5793
  { type: 'error', inputs: [], name: 'NotManager' },
5794
+ { type: 'error', inputs: [], name: 'NotRegistry' },
5795
+ { type: 'error', inputs: [], name: 'OneBase' },
5796
+ {
5797
+ type: 'error',
5798
+ inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
5799
+ name: 'QuoteNotListed',
5800
+ },
5093
5801
  { type: 'error', inputs: [], name: 'Refused' },
5094
5802
  ];