@logswap/sdk 0.5.50 → 0.5.52
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/admin.d.ts +43 -25
- package/dist/admin.js +61 -35
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/fees.d.ts +52 -0
- package/dist/fees.js +79 -0
- package/dist/fpool.d.ts +194 -38
- package/dist/fpool.js +82 -43
- package/dist/generated.d.ts +837 -264
- package/dist/generated.js +563 -176
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +2 -1
- package/src/admin.ts +68 -37
- package/src/client.ts +1 -1
- package/src/fees.ts +103 -0
- package/src/fpool.ts +122 -77
- package/src/generated.ts +564 -175
- package/src/index.ts +1 -0
package/src/generated.ts
CHANGED
|
@@ -1133,15 +1133,6 @@ export const fPoolManagerAbi = [
|
|
|
1133
1133
|
outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
1134
1134
|
stateMutability: 'view',
|
|
1135
1135
|
},
|
|
1136
|
-
{
|
|
1137
|
-
type: 'function',
|
|
1138
|
-
inputs: [],
|
|
1139
|
-
name: 'boundary',
|
|
1140
|
-
outputs: [
|
|
1141
|
-
{ name: '', internalType: 'contract FPoolBoundary', type: 'address' },
|
|
1142
|
-
],
|
|
1143
|
-
stateMutability: 'view',
|
|
1144
|
-
},
|
|
1145
1136
|
{
|
|
1146
1137
|
type: 'function',
|
|
1147
1138
|
inputs: [
|
|
@@ -1265,7 +1256,6 @@ export const fPoolManagerAbi = [
|
|
|
1265
1256
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
1266
1257
|
{ name: 'phi', internalType: 'uint96', type: 'uint96' },
|
|
1267
1258
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1268
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1269
1259
|
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
1270
1260
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
1271
1261
|
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
@@ -1276,7 +1266,6 @@ export const fPoolManagerAbi = [
|
|
|
1276
1266
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
1277
1267
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
1278
1268
|
{ name: 'theta0', internalType: 'int256', type: 'int256' },
|
|
1279
|
-
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
1280
1269
|
],
|
|
1281
1270
|
},
|
|
1282
1271
|
],
|
|
@@ -1297,7 +1286,7 @@ export const fPoolManagerAbi = [
|
|
|
1297
1286
|
type: 'function',
|
|
1298
1287
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1299
1288
|
name: 'harvestable',
|
|
1300
|
-
outputs: [{ name: '
|
|
1289
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1301
1290
|
stateMutability: 'view',
|
|
1302
1291
|
},
|
|
1303
1292
|
{
|
|
@@ -1312,7 +1301,6 @@ export const fPoolManagerAbi = [
|
|
|
1312
1301
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
1313
1302
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1314
1303
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
1315
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1316
1304
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1317
1305
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
1318
1306
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
@@ -1335,7 +1323,6 @@ export const fPoolManagerAbi = [
|
|
|
1335
1323
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
1336
1324
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1337
1325
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
1338
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1339
1326
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1340
1327
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
1341
1328
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
@@ -1378,16 +1365,6 @@ export const fPoolManagerAbi = [
|
|
|
1378
1365
|
],
|
|
1379
1366
|
stateMutability: 'view',
|
|
1380
1367
|
},
|
|
1381
|
-
{
|
|
1382
|
-
type: 'function',
|
|
1383
|
-
inputs: [
|
|
1384
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1385
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1386
|
-
],
|
|
1387
|
-
name: 'migrate',
|
|
1388
|
-
outputs: [],
|
|
1389
|
-
stateMutability: 'nonpayable',
|
|
1390
|
-
},
|
|
1391
1368
|
{
|
|
1392
1369
|
type: 'function',
|
|
1393
1370
|
inputs: [
|
|
@@ -1460,24 +1437,6 @@ export const fPoolManagerAbi = [
|
|
|
1460
1437
|
outputs: [],
|
|
1461
1438
|
stateMutability: 'nonpayable',
|
|
1462
1439
|
},
|
|
1463
|
-
{
|
|
1464
|
-
type: 'function',
|
|
1465
|
-
inputs: [
|
|
1466
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1467
|
-
{
|
|
1468
|
-
name: 'kind',
|
|
1469
|
-
internalType: 'enum FPoolManager.QuoteKind',
|
|
1470
|
-
type: 'uint8',
|
|
1471
|
-
},
|
|
1472
|
-
{ name: 'j', internalType: 'uint256', type: 'uint256' },
|
|
1473
|
-
{ name: 'k', internalType: 'uint256', type: 'uint256' },
|
|
1474
|
-
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
1475
|
-
{ name: 'taker', internalType: 'address', type: 'address' },
|
|
1476
|
-
],
|
|
1477
|
-
name: 'quoteSwap',
|
|
1478
|
-
outputs: [],
|
|
1479
|
-
stateMutability: 'nonpayable',
|
|
1480
|
-
},
|
|
1481
1440
|
{
|
|
1482
1441
|
type: 'function',
|
|
1483
1442
|
inputs: [
|
|
@@ -1548,15 +1507,6 @@ export const fPoolManagerAbi = [
|
|
|
1548
1507
|
outputs: [],
|
|
1549
1508
|
stateMutability: 'nonpayable',
|
|
1550
1509
|
},
|
|
1551
|
-
{
|
|
1552
|
-
type: 'function',
|
|
1553
|
-
inputs: [
|
|
1554
|
-
{ name: 'mintFeeProtocolCut', internalType: 'uint256', type: 'uint256' },
|
|
1555
|
-
],
|
|
1556
|
-
name: 'setFeeParams',
|
|
1557
|
-
outputs: [],
|
|
1558
|
-
stateMutability: 'nonpayable',
|
|
1559
|
-
},
|
|
1560
1510
|
{
|
|
1561
1511
|
type: 'function',
|
|
1562
1512
|
inputs: [
|
|
@@ -1568,16 +1518,6 @@ export const fPoolManagerAbi = [
|
|
|
1568
1518
|
outputs: [],
|
|
1569
1519
|
stateMutability: 'nonpayable',
|
|
1570
1520
|
},
|
|
1571
|
-
{
|
|
1572
|
-
type: 'function',
|
|
1573
|
-
inputs: [
|
|
1574
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1575
|
-
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
1576
|
-
],
|
|
1577
|
-
name: 'setName',
|
|
1578
|
-
outputs: [],
|
|
1579
|
-
stateMutability: 'nonpayable',
|
|
1580
|
-
},
|
|
1581
1521
|
{
|
|
1582
1522
|
type: 'function',
|
|
1583
1523
|
inputs: [
|
|
@@ -1591,10 +1531,11 @@ export const fPoolManagerAbi = [
|
|
|
1591
1531
|
{
|
|
1592
1532
|
type: 'function',
|
|
1593
1533
|
inputs: [
|
|
1594
|
-
{ name: '
|
|
1595
|
-
{ name: '
|
|
1534
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1535
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1536
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
1596
1537
|
],
|
|
1597
|
-
name: '
|
|
1538
|
+
name: 'setPolicy',
|
|
1598
1539
|
outputs: [],
|
|
1599
1540
|
stateMutability: 'nonpayable',
|
|
1600
1541
|
},
|
|
@@ -1615,13 +1556,6 @@ export const fPoolManagerAbi = [
|
|
|
1615
1556
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1616
1557
|
stateMutability: 'pure',
|
|
1617
1558
|
},
|
|
1618
|
-
{
|
|
1619
|
-
type: 'function',
|
|
1620
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1621
|
-
name: 'sponsorName',
|
|
1622
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
1623
|
-
stateMutability: 'view',
|
|
1624
|
-
},
|
|
1625
1559
|
{
|
|
1626
1560
|
type: 'function',
|
|
1627
1561
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -1890,19 +1824,6 @@ export const fPoolManagerAbi = [
|
|
|
1890
1824
|
],
|
|
1891
1825
|
name: 'DividendClaimed',
|
|
1892
1826
|
},
|
|
1893
|
-
{
|
|
1894
|
-
type: 'event',
|
|
1895
|
-
anonymous: false,
|
|
1896
|
-
inputs: [
|
|
1897
|
-
{
|
|
1898
|
-
name: 'mintFeeProtocolCut',
|
|
1899
|
-
internalType: 'uint256',
|
|
1900
|
-
type: 'uint256',
|
|
1901
|
-
indexed: false,
|
|
1902
|
-
},
|
|
1903
|
-
],
|
|
1904
|
-
name: 'FeeParamsSet',
|
|
1905
|
-
},
|
|
1906
1827
|
{
|
|
1907
1828
|
type: 'event',
|
|
1908
1829
|
anonymous: false,
|
|
@@ -1965,12 +1886,6 @@ export const fPoolManagerAbi = [
|
|
|
1965
1886
|
indexed: false,
|
|
1966
1887
|
},
|
|
1967
1888
|
{ name: 'phi', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1968
|
-
{
|
|
1969
|
-
name: 'kind',
|
|
1970
|
-
internalType: 'enum Kind',
|
|
1971
|
-
type: 'uint8',
|
|
1972
|
-
indexed: false,
|
|
1973
|
-
},
|
|
1974
1889
|
{
|
|
1975
1890
|
name: 'policy',
|
|
1976
1891
|
internalType: 'address',
|
|
@@ -2033,25 +1948,6 @@ export const fPoolManagerAbi = [
|
|
|
2033
1948
|
],
|
|
2034
1949
|
name: 'Mint',
|
|
2035
1950
|
},
|
|
2036
|
-
{
|
|
2037
|
-
type: 'event',
|
|
2038
|
-
anonymous: false,
|
|
2039
|
-
inputs: [
|
|
2040
|
-
{
|
|
2041
|
-
name: 'poolId',
|
|
2042
|
-
internalType: 'bytes32',
|
|
2043
|
-
type: 'bytes32',
|
|
2044
|
-
indexed: true,
|
|
2045
|
-
},
|
|
2046
|
-
{
|
|
2047
|
-
name: 'name',
|
|
2048
|
-
internalType: 'bytes32',
|
|
2049
|
-
type: 'bytes32',
|
|
2050
|
-
indexed: false,
|
|
2051
|
-
},
|
|
2052
|
-
],
|
|
2053
|
-
name: 'NameSet',
|
|
2054
|
-
},
|
|
2055
1951
|
{
|
|
2056
1952
|
type: 'event',
|
|
2057
1953
|
anonymous: false,
|
|
@@ -2233,20 +2129,6 @@ export const fPoolManagerAbi = [
|
|
|
2233
2129
|
],
|
|
2234
2130
|
name: 'Seeded',
|
|
2235
2131
|
},
|
|
2236
|
-
{
|
|
2237
|
-
type: 'event',
|
|
2238
|
-
anonymous: false,
|
|
2239
|
-
inputs: [
|
|
2240
|
-
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
2241
|
-
{
|
|
2242
|
-
name: 'name',
|
|
2243
|
-
internalType: 'bytes32',
|
|
2244
|
-
type: 'bytes32',
|
|
2245
|
-
indexed: false,
|
|
2246
|
-
},
|
|
2247
|
-
],
|
|
2248
|
-
name: 'SponsorNamed',
|
|
2249
|
-
},
|
|
2250
2132
|
{
|
|
2251
2133
|
type: 'event',
|
|
2252
2134
|
anonymous: false,
|
|
@@ -2355,11 +2237,9 @@ export const fPoolManagerAbi = [
|
|
|
2355
2237
|
{ type: 'error', inputs: [], name: 'NotAuthorized' },
|
|
2356
2238
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
2357
2239
|
{ type: 'error', inputs: [], name: 'NotPolicy' },
|
|
2358
|
-
{ type: 'error', inputs: [], name: '
|
|
2359
|
-
{ type: 'error', inputs: [], name: 'NotRegistryOwner' },
|
|
2240
|
+
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
2360
2241
|
{ type: 'error', inputs: [], name: 'NotRetired' },
|
|
2361
2242
|
{ type: 'error', inputs: [], name: 'NotSeeded' },
|
|
2362
|
-
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
2363
2243
|
{ type: 'error', inputs: [], name: 'PolicyNotApproved' },
|
|
2364
2244
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
2365
2245
|
{ type: 'error', inputs: [], name: 'PoolLocked' },
|
|
@@ -2382,6 +2262,52 @@ export const fPoolManagerAbi = [
|
|
|
2382
2262
|
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
2383
2263
|
] as const
|
|
2384
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
|
+
|
|
2385
2311
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2386
2312
|
// LogswapLens
|
|
2387
2313
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
@@ -2547,7 +2473,6 @@ export const logswapLensAbi = [
|
|
|
2547
2473
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2548
2474
|
{ name: 'phi', internalType: 'uint96', type: 'uint96' },
|
|
2549
2475
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2550
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
2551
2476
|
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
2552
2477
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
2553
2478
|
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
@@ -2558,7 +2483,6 @@ export const logswapLensAbi = [
|
|
|
2558
2483
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2559
2484
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
2560
2485
|
{ name: 'theta0', internalType: 'int256', type: 'int256' },
|
|
2561
|
-
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
2562
2486
|
],
|
|
2563
2487
|
},
|
|
2564
2488
|
],
|
|
@@ -3478,6 +3402,20 @@ export const logswapRouterAbi = [
|
|
|
3478
3402
|
outputs: [{ name: '', internalType: 'contract IPermit2', type: 'address' }],
|
|
3479
3403
|
stateMutability: 'view',
|
|
3480
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
|
+
},
|
|
3481
3419
|
{
|
|
3482
3420
|
type: 'function',
|
|
3483
3421
|
inputs: [
|
|
@@ -3702,6 +3640,11 @@ export const logswapRouterAbi = [
|
|
|
3702
3640
|
{ type: 'error', inputs: [], name: 'EmptyPath' },
|
|
3703
3641
|
{ type: 'error', inputs: [], name: 'LengthMismatch' },
|
|
3704
3642
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
3643
|
+
{
|
|
3644
|
+
type: 'error',
|
|
3645
|
+
inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
3646
|
+
name: 'QuoteResult',
|
|
3647
|
+
},
|
|
3705
3648
|
{ type: 'error', inputs: [], name: 'SlippageIn' },
|
|
3706
3649
|
{ type: 'error', inputs: [], name: 'SlippageOut' },
|
|
3707
3650
|
{ type: 'error', inputs: [], name: 'UnsupportedOp' },
|
|
@@ -3767,6 +3710,13 @@ export const padPolicyAbi = [
|
|
|
3767
3710
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3768
3711
|
stateMutability: 'view',
|
|
3769
3712
|
},
|
|
3713
|
+
{
|
|
3714
|
+
type: 'function',
|
|
3715
|
+
inputs: [],
|
|
3716
|
+
name: 'kind',
|
|
3717
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3718
|
+
stateMutability: 'pure',
|
|
3719
|
+
},
|
|
3770
3720
|
{
|
|
3771
3721
|
type: 'function',
|
|
3772
3722
|
inputs: [],
|
|
@@ -3811,6 +3761,13 @@ export const padPolicyAbi = [
|
|
|
3811
3761
|
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
3812
3762
|
stateMutability: 'view',
|
|
3813
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
|
+
},
|
|
3814
3771
|
{
|
|
3815
3772
|
type: 'function',
|
|
3816
3773
|
inputs: [
|
|
@@ -3855,7 +3812,6 @@ export const padPolicyAbi = [
|
|
|
3855
3812
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
3856
3813
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3857
3814
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3858
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
3859
3815
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3860
3816
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3861
3817
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
@@ -3940,6 +3896,20 @@ export const padPolicyAbi = [
|
|
|
3940
3896
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3941
3897
|
stateMutability: 'view',
|
|
3942
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
|
+
},
|
|
3943
3913
|
{
|
|
3944
3914
|
type: 'function',
|
|
3945
3915
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -3954,6 +3924,33 @@ export const padPolicyAbi = [
|
|
|
3954
3924
|
outputs: [],
|
|
3955
3925
|
stateMutability: 'nonpayable',
|
|
3956
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
|
+
},
|
|
3957
3954
|
{
|
|
3958
3955
|
type: 'function',
|
|
3959
3956
|
inputs: [
|
|
@@ -4061,43 +4058,93 @@ export const padPolicyAbi = [
|
|
|
4061
4058
|
anonymous: false,
|
|
4062
4059
|
inputs: [
|
|
4063
4060
|
{
|
|
4064
|
-
name: '
|
|
4065
|
-
internalType: '
|
|
4066
|
-
type: '
|
|
4067
|
-
indexed:
|
|
4068
|
-
},
|
|
4069
|
-
{
|
|
4070
|
-
name: 'thresholdGrowth',
|
|
4071
|
-
internalType: 'uint256',
|
|
4072
|
-
type: 'uint256',
|
|
4073
|
-
indexed: false,
|
|
4074
|
-
},
|
|
4075
|
-
{
|
|
4076
|
-
name: 'creatorShare',
|
|
4077
|
-
internalType: 'uint256',
|
|
4078
|
-
type: 'uint256',
|
|
4079
|
-
indexed: false,
|
|
4080
|
-
},
|
|
4081
|
-
{
|
|
4082
|
-
name: 'protocolShare',
|
|
4083
|
-
internalType: 'uint256',
|
|
4084
|
-
type: 'uint256',
|
|
4085
|
-
indexed: false,
|
|
4061
|
+
name: 'poolId',
|
|
4062
|
+
internalType: 'bytes32',
|
|
4063
|
+
type: 'bytes32',
|
|
4064
|
+
indexed: true,
|
|
4086
4065
|
},
|
|
4087
4066
|
{
|
|
4088
|
-
name: '
|
|
4089
|
-
internalType: '
|
|
4090
|
-
type: '
|
|
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
|
+
{
|
|
4108
|
+
name: 'thresholdGrowth',
|
|
4109
|
+
internalType: 'uint256',
|
|
4110
|
+
type: 'uint256',
|
|
4111
|
+
indexed: false,
|
|
4112
|
+
},
|
|
4113
|
+
{
|
|
4114
|
+
name: 'creatorShare',
|
|
4115
|
+
internalType: 'uint256',
|
|
4116
|
+
type: 'uint256',
|
|
4117
|
+
indexed: false,
|
|
4118
|
+
},
|
|
4119
|
+
{
|
|
4120
|
+
name: 'protocolShare',
|
|
4121
|
+
internalType: 'uint256',
|
|
4122
|
+
type: 'uint256',
|
|
4123
|
+
indexed: false,
|
|
4124
|
+
},
|
|
4125
|
+
{
|
|
4126
|
+
name: 'burnPerRung',
|
|
4127
|
+
internalType: 'uint256',
|
|
4128
|
+
type: 'uint256',
|
|
4091
4129
|
indexed: false,
|
|
4092
4130
|
},
|
|
4093
4131
|
],
|
|
4094
4132
|
name: 'ScheduleSet',
|
|
4095
4133
|
},
|
|
4134
|
+
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
4096
4135
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4136
|
+
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
4097
4137
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
4098
4138
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
4099
4139
|
{ type: 'error', inputs: [], name: 'NotGraduated' },
|
|
4100
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
|
+
},
|
|
4101
4148
|
{ type: 'error', inputs: [], name: 'Refused' },
|
|
4102
4149
|
] as const
|
|
4103
4150
|
|
|
@@ -4152,6 +4199,13 @@ export const polPolicyAbi = [
|
|
|
4152
4199
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4153
4200
|
stateMutability: 'view',
|
|
4154
4201
|
},
|
|
4202
|
+
{
|
|
4203
|
+
type: 'function',
|
|
4204
|
+
inputs: [],
|
|
4205
|
+
name: 'kind',
|
|
4206
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4207
|
+
stateMutability: 'pure',
|
|
4208
|
+
},
|
|
4155
4209
|
{
|
|
4156
4210
|
type: 'function',
|
|
4157
4211
|
inputs: [],
|
|
@@ -4203,6 +4257,13 @@ export const polPolicyAbi = [
|
|
|
4203
4257
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4204
4258
|
stateMutability: 'view',
|
|
4205
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
|
+
},
|
|
4206
4267
|
{
|
|
4207
4268
|
type: 'function',
|
|
4208
4269
|
inputs: [
|
|
@@ -4247,7 +4308,6 @@ export const polPolicyAbi = [
|
|
|
4247
4308
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
4248
4309
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4249
4310
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
4250
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4251
4311
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4252
4312
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4253
4313
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
@@ -4325,6 +4385,20 @@ export const polPolicyAbi = [
|
|
|
4325
4385
|
outputs: [],
|
|
4326
4386
|
stateMutability: 'nonpayable',
|
|
4327
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
|
+
},
|
|
4328
4402
|
{
|
|
4329
4403
|
type: 'function',
|
|
4330
4404
|
inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -4332,6 +4406,33 @@ export const polPolicyAbi = [
|
|
|
4332
4406
|
outputs: [],
|
|
4333
4407
|
stateMutability: 'nonpayable',
|
|
4334
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
|
+
},
|
|
4335
4436
|
{
|
|
4336
4437
|
type: 'function',
|
|
4337
4438
|
inputs: [
|
|
@@ -4395,6 +4496,47 @@ export const polPolicyAbi = [
|
|
|
4395
4496
|
],
|
|
4396
4497
|
name: 'HarvestCutSet',
|
|
4397
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
|
+
},
|
|
4398
4540
|
{
|
|
4399
4541
|
type: 'event',
|
|
4400
4542
|
anonymous: false,
|
|
@@ -4414,10 +4556,19 @@ export const polPolicyAbi = [
|
|
|
4414
4556
|
],
|
|
4415
4557
|
name: 'RulesSet',
|
|
4416
4558
|
},
|
|
4559
|
+
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
4417
4560
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4561
|
+
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
4418
4562
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
4419
4563
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
4420
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
|
+
},
|
|
4421
4572
|
{ type: 'error', inputs: [], name: 'QuoteTooThin' },
|
|
4422
4573
|
{ type: 'error', inputs: [], name: 'Refused' },
|
|
4423
4574
|
] as const
|
|
@@ -4442,7 +4593,6 @@ export const policyRegistryAbi = [
|
|
|
4442
4593
|
{
|
|
4443
4594
|
type: 'function',
|
|
4444
4595
|
inputs: [
|
|
4445
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4446
4596
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4447
4597
|
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
4448
4598
|
],
|
|
@@ -4452,10 +4602,7 @@ export const policyRegistryAbi = [
|
|
|
4452
4602
|
},
|
|
4453
4603
|
{
|
|
4454
4604
|
type: 'function',
|
|
4455
|
-
inputs: [
|
|
4456
|
-
{ name: '', internalType: 'enum Kind', type: 'uint8' },
|
|
4457
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
4458
|
-
],
|
|
4605
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4459
4606
|
name: 'entries',
|
|
4460
4607
|
outputs: [
|
|
4461
4608
|
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
@@ -4467,14 +4614,22 @@ export const policyRegistryAbi = [
|
|
|
4467
4614
|
},
|
|
4468
4615
|
{
|
|
4469
4616
|
type: 'function',
|
|
4470
|
-
inputs: [
|
|
4471
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4472
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4473
|
-
],
|
|
4617
|
+
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
4474
4618
|
name: 'isApproved',
|
|
4475
4619
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4476
4620
|
stateMutability: 'view',
|
|
4477
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
|
+
},
|
|
4478
4633
|
{
|
|
4479
4634
|
type: 'function',
|
|
4480
4635
|
inputs: [],
|
|
@@ -4491,8 +4646,8 @@ export const policyRegistryAbi = [
|
|
|
4491
4646
|
},
|
|
4492
4647
|
{
|
|
4493
4648
|
type: 'function',
|
|
4494
|
-
inputs: [
|
|
4495
|
-
name: '
|
|
4649
|
+
inputs: [],
|
|
4650
|
+
name: 'policies',
|
|
4496
4651
|
outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }],
|
|
4497
4652
|
stateMutability: 'view',
|
|
4498
4653
|
},
|
|
@@ -4503,20 +4658,33 @@ export const policyRegistryAbi = [
|
|
|
4503
4658
|
outputs: [],
|
|
4504
4659
|
stateMutability: 'nonpayable',
|
|
4505
4660
|
},
|
|
4661
|
+
{
|
|
4662
|
+
type: 'function',
|
|
4663
|
+
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
4664
|
+
name: 'revoke',
|
|
4665
|
+
outputs: [],
|
|
4666
|
+
stateMutability: 'nonpayable',
|
|
4667
|
+
},
|
|
4506
4668
|
{
|
|
4507
4669
|
type: 'function',
|
|
4508
4670
|
inputs: [
|
|
4509
|
-
{ name: '
|
|
4510
|
-
{ name: '
|
|
4671
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4672
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
4511
4673
|
],
|
|
4512
|
-
name: '
|
|
4674
|
+
name: 'setSponsorName',
|
|
4513
4675
|
outputs: [],
|
|
4514
4676
|
stateMutability: 'nonpayable',
|
|
4515
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
|
+
},
|
|
4516
4685
|
{
|
|
4517
4686
|
type: 'function',
|
|
4518
4687
|
inputs: [
|
|
4519
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4520
4688
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4521
4689
|
{ name: 'untilBlock', internalType: 'uint64', type: 'uint64' },
|
|
4522
4690
|
],
|
|
@@ -4528,7 +4696,6 @@ export const policyRegistryAbi = [
|
|
|
4528
4696
|
type: 'event',
|
|
4529
4697
|
anonymous: false,
|
|
4530
4698
|
inputs: [
|
|
4531
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8', indexed: true },
|
|
4532
4699
|
{
|
|
4533
4700
|
name: 'policy',
|
|
4534
4701
|
internalType: 'address',
|
|
@@ -4576,7 +4743,6 @@ export const policyRegistryAbi = [
|
|
|
4576
4743
|
type: 'event',
|
|
4577
4744
|
anonymous: false,
|
|
4578
4745
|
inputs: [
|
|
4579
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8', indexed: true },
|
|
4580
4746
|
{
|
|
4581
4747
|
name: 'policy',
|
|
4582
4748
|
internalType: 'address',
|
|
@@ -4590,7 +4756,20 @@ export const policyRegistryAbi = [
|
|
|
4590
4756
|
type: 'event',
|
|
4591
4757
|
anonymous: false,
|
|
4592
4758
|
inputs: [
|
|
4593
|
-
{ name: '
|
|
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: [
|
|
4594
4773
|
{
|
|
4595
4774
|
name: 'policy',
|
|
4596
4775
|
internalType: 'address',
|
|
@@ -4607,9 +4786,11 @@ export const policyRegistryAbi = [
|
|
|
4607
4786
|
name: 'SunsetSet',
|
|
4608
4787
|
},
|
|
4609
4788
|
{ type: 'error', inputs: [], name: 'BadSunset' },
|
|
4789
|
+
{ type: 'error', inputs: [], name: 'KindMismatch' },
|
|
4610
4790
|
{ type: 'error', inputs: [], name: 'NotAPolicy' },
|
|
4611
4791
|
{ type: 'error', inputs: [], name: 'NotListed' },
|
|
4612
4792
|
{ type: 'error', inputs: [], name: 'NotOwner' },
|
|
4793
|
+
{ type: 'error', inputs: [], name: 'SamePolicy' },
|
|
4613
4794
|
] as const
|
|
4614
4795
|
|
|
4615
4796
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
@@ -4731,6 +4912,13 @@ export const privatePolicyAbi = [
|
|
|
4731
4912
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4732
4913
|
stateMutability: 'view',
|
|
4733
4914
|
},
|
|
4915
|
+
{
|
|
4916
|
+
type: 'function',
|
|
4917
|
+
inputs: [],
|
|
4918
|
+
name: 'kind',
|
|
4919
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4920
|
+
stateMutability: 'pure',
|
|
4921
|
+
},
|
|
4734
4922
|
{
|
|
4735
4923
|
type: 'function',
|
|
4736
4924
|
inputs: [],
|
|
@@ -4775,6 +4963,13 @@ export const privatePolicyAbi = [
|
|
|
4775
4963
|
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
4776
4964
|
stateMutability: 'view',
|
|
4777
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
|
+
},
|
|
4778
4973
|
{
|
|
4779
4974
|
type: 'function',
|
|
4780
4975
|
inputs: [
|
|
@@ -4819,7 +5014,6 @@ export const privatePolicyAbi = [
|
|
|
4819
5014
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
4820
5015
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4821
5016
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
4822
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4823
5017
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4824
5018
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4825
5019
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
@@ -4918,6 +5112,20 @@ export const privatePolicyAbi = [
|
|
|
4918
5112
|
outputs: [],
|
|
4919
5113
|
stateMutability: 'nonpayable',
|
|
4920
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
|
+
},
|
|
4921
5129
|
{
|
|
4922
5130
|
type: 'function',
|
|
4923
5131
|
inputs: [
|
|
@@ -4947,6 +5155,33 @@ export const privatePolicyAbi = [
|
|
|
4947
5155
|
outputs: [],
|
|
4948
5156
|
stateMutability: 'nonpayable',
|
|
4949
5157
|
},
|
|
5158
|
+
{
|
|
5159
|
+
type: 'function',
|
|
5160
|
+
inputs: [
|
|
5161
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5162
|
+
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
5163
|
+
],
|
|
5164
|
+
name: 'setName',
|
|
5165
|
+
outputs: [],
|
|
5166
|
+
stateMutability: 'nonpayable',
|
|
5167
|
+
},
|
|
5168
|
+
{
|
|
5169
|
+
type: 'function',
|
|
5170
|
+
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
5171
|
+
name: 'setQuoteCurated',
|
|
5172
|
+
outputs: [],
|
|
5173
|
+
stateMutability: 'nonpayable',
|
|
5174
|
+
},
|
|
5175
|
+
{
|
|
5176
|
+
type: 'function',
|
|
5177
|
+
inputs: [
|
|
5178
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5179
|
+
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
5180
|
+
],
|
|
5181
|
+
name: 'setQuoteListed',
|
|
5182
|
+
outputs: [],
|
|
5183
|
+
stateMutability: 'nonpayable',
|
|
5184
|
+
},
|
|
4950
5185
|
{
|
|
4951
5186
|
type: 'function',
|
|
4952
5187
|
inputs: [
|
|
@@ -5048,6 +5283,25 @@ export const privatePolicyAbi = [
|
|
|
5048
5283
|
],
|
|
5049
5284
|
name: 'Listed',
|
|
5050
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
|
+
},
|
|
5051
5305
|
{
|
|
5052
5306
|
type: 'event',
|
|
5053
5307
|
anonymous: false,
|
|
@@ -5088,11 +5342,42 @@ export const privatePolicyAbi = [
|
|
|
5088
5342
|
],
|
|
5089
5343
|
name: 'OperatorSet',
|
|
5090
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' },
|
|
5091
5368
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
5369
|
+
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
5092
5370
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
5093
5371
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
5094
5372
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
5095
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
|
+
},
|
|
5096
5381
|
{ type: 'error', inputs: [], name: 'Refused' },
|
|
5097
5382
|
] as const
|
|
5098
5383
|
|
|
@@ -5147,6 +5432,13 @@ export const publicPolicyAbi = [
|
|
|
5147
5432
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
5148
5433
|
stateMutability: 'view',
|
|
5149
5434
|
},
|
|
5435
|
+
{
|
|
5436
|
+
type: 'function',
|
|
5437
|
+
inputs: [],
|
|
5438
|
+
name: 'kind',
|
|
5439
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5440
|
+
stateMutability: 'pure',
|
|
5441
|
+
},
|
|
5150
5442
|
{
|
|
5151
5443
|
type: 'function',
|
|
5152
5444
|
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
@@ -5198,6 +5490,13 @@ export const publicPolicyAbi = [
|
|
|
5198
5490
|
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
5199
5491
|
stateMutability: 'view',
|
|
5200
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
|
+
},
|
|
5201
5500
|
{
|
|
5202
5501
|
type: 'function',
|
|
5203
5502
|
inputs: [
|
|
@@ -5242,7 +5541,6 @@ export const publicPolicyAbi = [
|
|
|
5242
5541
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
5243
5542
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
5244
5543
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
5245
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
5246
5544
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5247
5545
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5248
5546
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
@@ -5320,6 +5618,20 @@ export const publicPolicyAbi = [
|
|
|
5320
5618
|
outputs: [],
|
|
5321
5619
|
stateMutability: 'nonpayable',
|
|
5322
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
|
+
},
|
|
5323
5635
|
{
|
|
5324
5636
|
type: 'function',
|
|
5325
5637
|
inputs: [{ name: '_curated', internalType: 'bool', type: 'bool' }],
|
|
@@ -5344,6 +5656,33 @@ export const publicPolicyAbi = [
|
|
|
5344
5656
|
outputs: [],
|
|
5345
5657
|
stateMutability: 'nonpayable',
|
|
5346
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
|
+
},
|
|
5347
5686
|
{
|
|
5348
5687
|
type: 'event',
|
|
5349
5688
|
anonymous: false,
|
|
@@ -5419,7 +5758,50 @@ export const publicPolicyAbi = [
|
|
|
5419
5758
|
],
|
|
5420
5759
|
name: 'Listed',
|
|
5421
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' },
|
|
5422
5803
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
5804
|
+
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
5423
5805
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
5424
5806
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
5425
5807
|
{
|
|
@@ -5428,5 +5810,12 @@ export const publicPolicyAbi = [
|
|
|
5428
5810
|
name: 'NotListed',
|
|
5429
5811
|
},
|
|
5430
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
|
+
},
|
|
5431
5820
|
{ type: 'error', inputs: [], name: 'Refused' },
|
|
5432
5821
|
] as const
|