@logswap/sdk 0.5.50 → 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/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/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/package.json +1 -1
- package/src/admin.ts +68 -37
- package/src/client.ts +1 -1
- package/src/fpool.ts +122 -77
- package/src/generated.ts +564 -175
package/dist/generated.js
CHANGED
|
@@ -1130,15 +1130,6 @@ export const fPoolManagerAbi = [
|
|
|
1130
1130
|
outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
1131
1131
|
stateMutability: 'view',
|
|
1132
1132
|
},
|
|
1133
|
-
{
|
|
1134
|
-
type: 'function',
|
|
1135
|
-
inputs: [],
|
|
1136
|
-
name: 'boundary',
|
|
1137
|
-
outputs: [
|
|
1138
|
-
{ name: '', internalType: 'contract FPoolBoundary', type: 'address' },
|
|
1139
|
-
],
|
|
1140
|
-
stateMutability: 'view',
|
|
1141
|
-
},
|
|
1142
1133
|
{
|
|
1143
1134
|
type: 'function',
|
|
1144
1135
|
inputs: [
|
|
@@ -1262,7 +1253,6 @@ export const fPoolManagerAbi = [
|
|
|
1262
1253
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
1263
1254
|
{ name: 'phi', internalType: 'uint96', type: 'uint96' },
|
|
1264
1255
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1265
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1266
1256
|
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
1267
1257
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
1268
1258
|
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
@@ -1273,7 +1263,6 @@ export const fPoolManagerAbi = [
|
|
|
1273
1263
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
1274
1264
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
1275
1265
|
{ name: 'theta0', internalType: 'int256', type: 'int256' },
|
|
1276
|
-
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
1277
1266
|
],
|
|
1278
1267
|
},
|
|
1279
1268
|
],
|
|
@@ -1294,7 +1283,7 @@ export const fPoolManagerAbi = [
|
|
|
1294
1283
|
type: 'function',
|
|
1295
1284
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1296
1285
|
name: 'harvestable',
|
|
1297
|
-
outputs: [{ name: '
|
|
1286
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1298
1287
|
stateMutability: 'view',
|
|
1299
1288
|
},
|
|
1300
1289
|
{
|
|
@@ -1309,7 +1298,6 @@ export const fPoolManagerAbi = [
|
|
|
1309
1298
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
1310
1299
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1311
1300
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
1312
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1313
1301
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1314
1302
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
1315
1303
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
@@ -1332,7 +1320,6 @@ export const fPoolManagerAbi = [
|
|
|
1332
1320
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
1333
1321
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1334
1322
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
1335
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1336
1323
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1337
1324
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
1338
1325
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
@@ -1375,16 +1362,6 @@ export const fPoolManagerAbi = [
|
|
|
1375
1362
|
],
|
|
1376
1363
|
stateMutability: 'view',
|
|
1377
1364
|
},
|
|
1378
|
-
{
|
|
1379
|
-
type: 'function',
|
|
1380
|
-
inputs: [
|
|
1381
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1382
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1383
|
-
],
|
|
1384
|
-
name: 'migrate',
|
|
1385
|
-
outputs: [],
|
|
1386
|
-
stateMutability: 'nonpayable',
|
|
1387
|
-
},
|
|
1388
1365
|
{
|
|
1389
1366
|
type: 'function',
|
|
1390
1367
|
inputs: [
|
|
@@ -1457,24 +1434,6 @@ export const fPoolManagerAbi = [
|
|
|
1457
1434
|
outputs: [],
|
|
1458
1435
|
stateMutability: 'nonpayable',
|
|
1459
1436
|
},
|
|
1460
|
-
{
|
|
1461
|
-
type: 'function',
|
|
1462
|
-
inputs: [
|
|
1463
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1464
|
-
{
|
|
1465
|
-
name: 'kind',
|
|
1466
|
-
internalType: 'enum FPoolManager.QuoteKind',
|
|
1467
|
-
type: 'uint8',
|
|
1468
|
-
},
|
|
1469
|
-
{ name: 'j', internalType: 'uint256', type: 'uint256' },
|
|
1470
|
-
{ name: 'k', internalType: 'uint256', type: 'uint256' },
|
|
1471
|
-
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
1472
|
-
{ name: 'taker', internalType: 'address', type: 'address' },
|
|
1473
|
-
],
|
|
1474
|
-
name: 'quoteSwap',
|
|
1475
|
-
outputs: [],
|
|
1476
|
-
stateMutability: 'nonpayable',
|
|
1477
|
-
},
|
|
1478
1437
|
{
|
|
1479
1438
|
type: 'function',
|
|
1480
1439
|
inputs: [
|
|
@@ -1545,15 +1504,6 @@ export const fPoolManagerAbi = [
|
|
|
1545
1504
|
outputs: [],
|
|
1546
1505
|
stateMutability: 'nonpayable',
|
|
1547
1506
|
},
|
|
1548
|
-
{
|
|
1549
|
-
type: 'function',
|
|
1550
|
-
inputs: [
|
|
1551
|
-
{ name: 'mintFeeProtocolCut', internalType: 'uint256', type: 'uint256' },
|
|
1552
|
-
],
|
|
1553
|
-
name: 'setFeeParams',
|
|
1554
|
-
outputs: [],
|
|
1555
|
-
stateMutability: 'nonpayable',
|
|
1556
|
-
},
|
|
1557
1507
|
{
|
|
1558
1508
|
type: 'function',
|
|
1559
1509
|
inputs: [
|
|
@@ -1565,16 +1515,6 @@ export const fPoolManagerAbi = [
|
|
|
1565
1515
|
outputs: [],
|
|
1566
1516
|
stateMutability: 'nonpayable',
|
|
1567
1517
|
},
|
|
1568
|
-
{
|
|
1569
|
-
type: 'function',
|
|
1570
|
-
inputs: [
|
|
1571
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1572
|
-
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
1573
|
-
],
|
|
1574
|
-
name: 'setName',
|
|
1575
|
-
outputs: [],
|
|
1576
|
-
stateMutability: 'nonpayable',
|
|
1577
|
-
},
|
|
1578
1518
|
{
|
|
1579
1519
|
type: 'function',
|
|
1580
1520
|
inputs: [
|
|
@@ -1588,10 +1528,11 @@ export const fPoolManagerAbi = [
|
|
|
1588
1528
|
{
|
|
1589
1529
|
type: 'function',
|
|
1590
1530
|
inputs: [
|
|
1591
|
-
{ name: '
|
|
1592
|
-
{ name: '
|
|
1531
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1532
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1533
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
1593
1534
|
],
|
|
1594
|
-
name: '
|
|
1535
|
+
name: 'setPolicy',
|
|
1595
1536
|
outputs: [],
|
|
1596
1537
|
stateMutability: 'nonpayable',
|
|
1597
1538
|
},
|
|
@@ -1612,13 +1553,6 @@ export const fPoolManagerAbi = [
|
|
|
1612
1553
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1613
1554
|
stateMutability: 'pure',
|
|
1614
1555
|
},
|
|
1615
|
-
{
|
|
1616
|
-
type: 'function',
|
|
1617
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1618
|
-
name: 'sponsorName',
|
|
1619
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
1620
|
-
stateMutability: 'view',
|
|
1621
|
-
},
|
|
1622
1556
|
{
|
|
1623
1557
|
type: 'function',
|
|
1624
1558
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -1887,19 +1821,6 @@ export const fPoolManagerAbi = [
|
|
|
1887
1821
|
],
|
|
1888
1822
|
name: 'DividendClaimed',
|
|
1889
1823
|
},
|
|
1890
|
-
{
|
|
1891
|
-
type: 'event',
|
|
1892
|
-
anonymous: false,
|
|
1893
|
-
inputs: [
|
|
1894
|
-
{
|
|
1895
|
-
name: 'mintFeeProtocolCut',
|
|
1896
|
-
internalType: 'uint256',
|
|
1897
|
-
type: 'uint256',
|
|
1898
|
-
indexed: false,
|
|
1899
|
-
},
|
|
1900
|
-
],
|
|
1901
|
-
name: 'FeeParamsSet',
|
|
1902
|
-
},
|
|
1903
1824
|
{
|
|
1904
1825
|
type: 'event',
|
|
1905
1826
|
anonymous: false,
|
|
@@ -1962,12 +1883,6 @@ export const fPoolManagerAbi = [
|
|
|
1962
1883
|
indexed: false,
|
|
1963
1884
|
},
|
|
1964
1885
|
{ name: 'phi', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1965
|
-
{
|
|
1966
|
-
name: 'kind',
|
|
1967
|
-
internalType: 'enum Kind',
|
|
1968
|
-
type: 'uint8',
|
|
1969
|
-
indexed: false,
|
|
1970
|
-
},
|
|
1971
1886
|
{
|
|
1972
1887
|
name: 'policy',
|
|
1973
1888
|
internalType: 'address',
|
|
@@ -2030,25 +1945,6 @@ export const fPoolManagerAbi = [
|
|
|
2030
1945
|
],
|
|
2031
1946
|
name: 'Mint',
|
|
2032
1947
|
},
|
|
2033
|
-
{
|
|
2034
|
-
type: 'event',
|
|
2035
|
-
anonymous: false,
|
|
2036
|
-
inputs: [
|
|
2037
|
-
{
|
|
2038
|
-
name: 'poolId',
|
|
2039
|
-
internalType: 'bytes32',
|
|
2040
|
-
type: 'bytes32',
|
|
2041
|
-
indexed: true,
|
|
2042
|
-
},
|
|
2043
|
-
{
|
|
2044
|
-
name: 'name',
|
|
2045
|
-
internalType: 'bytes32',
|
|
2046
|
-
type: 'bytes32',
|
|
2047
|
-
indexed: false,
|
|
2048
|
-
},
|
|
2049
|
-
],
|
|
2050
|
-
name: 'NameSet',
|
|
2051
|
-
},
|
|
2052
1948
|
{
|
|
2053
1949
|
type: 'event',
|
|
2054
1950
|
anonymous: false,
|
|
@@ -2230,20 +2126,6 @@ export const fPoolManagerAbi = [
|
|
|
2230
2126
|
],
|
|
2231
2127
|
name: 'Seeded',
|
|
2232
2128
|
},
|
|
2233
|
-
{
|
|
2234
|
-
type: 'event',
|
|
2235
|
-
anonymous: false,
|
|
2236
|
-
inputs: [
|
|
2237
|
-
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
2238
|
-
{
|
|
2239
|
-
name: 'name',
|
|
2240
|
-
internalType: 'bytes32',
|
|
2241
|
-
type: 'bytes32',
|
|
2242
|
-
indexed: false,
|
|
2243
|
-
},
|
|
2244
|
-
],
|
|
2245
|
-
name: 'SponsorNamed',
|
|
2246
|
-
},
|
|
2247
2129
|
{
|
|
2248
2130
|
type: 'event',
|
|
2249
2131
|
anonymous: false,
|
|
@@ -2352,11 +2234,9 @@ export const fPoolManagerAbi = [
|
|
|
2352
2234
|
{ type: 'error', inputs: [], name: 'NotAuthorized' },
|
|
2353
2235
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
2354
2236
|
{ type: 'error', inputs: [], name: 'NotPolicy' },
|
|
2355
|
-
{ type: 'error', inputs: [], name: '
|
|
2356
|
-
{ type: 'error', inputs: [], name: 'NotRegistryOwner' },
|
|
2237
|
+
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
2357
2238
|
{ type: 'error', inputs: [], name: 'NotRetired' },
|
|
2358
2239
|
{ type: 'error', inputs: [], name: 'NotSeeded' },
|
|
2359
|
-
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
2360
2240
|
{ type: 'error', inputs: [], name: 'PolicyNotApproved' },
|
|
2361
2241
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
2362
2242
|
{ type: 'error', inputs: [], name: 'PoolLocked' },
|
|
@@ -2379,6 +2259,50 @@ export const fPoolManagerAbi = [
|
|
|
2379
2259
|
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
2380
2260
|
];
|
|
2381
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
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2382
2306
|
// LogswapLens
|
|
2383
2307
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2384
2308
|
export const logswapLensAbi = [
|
|
@@ -2542,7 +2466,6 @@ export const logswapLensAbi = [
|
|
|
2542
2466
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2543
2467
|
{ name: 'phi', internalType: 'uint96', type: 'uint96' },
|
|
2544
2468
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2545
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
2546
2469
|
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
2547
2470
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
2548
2471
|
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
@@ -2553,7 +2476,6 @@ export const logswapLensAbi = [
|
|
|
2553
2476
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2554
2477
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
2555
2478
|
{ name: 'theta0', internalType: 'int256', type: 'int256' },
|
|
2556
|
-
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
2557
2479
|
],
|
|
2558
2480
|
},
|
|
2559
2481
|
],
|
|
@@ -3471,6 +3393,20 @@ export const logswapRouterAbi = [
|
|
|
3471
3393
|
outputs: [{ name: '', internalType: 'contract IPermit2', type: 'address' }],
|
|
3472
3394
|
stateMutability: 'view',
|
|
3473
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
|
+
},
|
|
3474
3410
|
{
|
|
3475
3411
|
type: 'function',
|
|
3476
3412
|
inputs: [
|
|
@@ -3695,6 +3631,11 @@ export const logswapRouterAbi = [
|
|
|
3695
3631
|
{ type: 'error', inputs: [], name: 'EmptyPath' },
|
|
3696
3632
|
{ type: 'error', inputs: [], name: 'LengthMismatch' },
|
|
3697
3633
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
3634
|
+
{
|
|
3635
|
+
type: 'error',
|
|
3636
|
+
inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
3637
|
+
name: 'QuoteResult',
|
|
3638
|
+
},
|
|
3698
3639
|
{ type: 'error', inputs: [], name: 'SlippageIn' },
|
|
3699
3640
|
{ type: 'error', inputs: [], name: 'SlippageOut' },
|
|
3700
3641
|
{ type: 'error', inputs: [], name: 'UnsupportedOp' },
|
|
@@ -3758,6 +3699,13 @@ export const padPolicyAbi = [
|
|
|
3758
3699
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3759
3700
|
stateMutability: 'view',
|
|
3760
3701
|
},
|
|
3702
|
+
{
|
|
3703
|
+
type: 'function',
|
|
3704
|
+
inputs: [],
|
|
3705
|
+
name: 'kind',
|
|
3706
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3707
|
+
stateMutability: 'pure',
|
|
3708
|
+
},
|
|
3761
3709
|
{
|
|
3762
3710
|
type: 'function',
|
|
3763
3711
|
inputs: [],
|
|
@@ -3802,6 +3750,13 @@ export const padPolicyAbi = [
|
|
|
3802
3750
|
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
3803
3751
|
stateMutability: 'view',
|
|
3804
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
|
+
},
|
|
3805
3760
|
{
|
|
3806
3761
|
type: 'function',
|
|
3807
3762
|
inputs: [
|
|
@@ -3846,7 +3801,6 @@ export const padPolicyAbi = [
|
|
|
3846
3801
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
3847
3802
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3848
3803
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3849
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
3850
3804
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3851
3805
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3852
3806
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
@@ -3931,6 +3885,20 @@ export const padPolicyAbi = [
|
|
|
3931
3885
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3932
3886
|
stateMutability: 'view',
|
|
3933
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
|
+
},
|
|
3934
3902
|
{
|
|
3935
3903
|
type: 'function',
|
|
3936
3904
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -3945,6 +3913,33 @@ export const padPolicyAbi = [
|
|
|
3945
3913
|
outputs: [],
|
|
3946
3914
|
stateMutability: 'nonpayable',
|
|
3947
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
|
+
},
|
|
3948
3943
|
{
|
|
3949
3944
|
type: 'function',
|
|
3950
3945
|
inputs: [
|
|
@@ -4052,43 +4047,93 @@ export const padPolicyAbi = [
|
|
|
4052
4047
|
anonymous: false,
|
|
4053
4048
|
inputs: [
|
|
4054
4049
|
{
|
|
4055
|
-
name: '
|
|
4056
|
-
internalType: '
|
|
4057
|
-
type: '
|
|
4058
|
-
indexed:
|
|
4059
|
-
},
|
|
4060
|
-
{
|
|
4061
|
-
name: 'thresholdGrowth',
|
|
4062
|
-
internalType: 'uint256',
|
|
4063
|
-
type: 'uint256',
|
|
4064
|
-
indexed: false,
|
|
4065
|
-
},
|
|
4066
|
-
{
|
|
4067
|
-
name: 'creatorShare',
|
|
4068
|
-
internalType: 'uint256',
|
|
4069
|
-
type: 'uint256',
|
|
4070
|
-
indexed: false,
|
|
4071
|
-
},
|
|
4072
|
-
{
|
|
4073
|
-
name: 'protocolShare',
|
|
4074
|
-
internalType: 'uint256',
|
|
4075
|
-
type: 'uint256',
|
|
4076
|
-
indexed: false,
|
|
4050
|
+
name: 'poolId',
|
|
4051
|
+
internalType: 'bytes32',
|
|
4052
|
+
type: 'bytes32',
|
|
4053
|
+
indexed: true,
|
|
4077
4054
|
},
|
|
4078
4055
|
{
|
|
4079
|
-
name: '
|
|
4080
|
-
internalType: '
|
|
4081
|
-
type: '
|
|
4056
|
+
name: 'name',
|
|
4057
|
+
internalType: 'bytes32',
|
|
4058
|
+
type: 'bytes32',
|
|
4082
4059
|
indexed: false,
|
|
4083
4060
|
},
|
|
4084
4061
|
],
|
|
4085
|
-
name: '
|
|
4062
|
+
name: 'NameSet',
|
|
4086
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,
|
|
4095
|
+
},
|
|
4096
|
+
{
|
|
4097
|
+
name: 'thresholdGrowth',
|
|
4098
|
+
internalType: 'uint256',
|
|
4099
|
+
type: 'uint256',
|
|
4100
|
+
indexed: false,
|
|
4101
|
+
},
|
|
4102
|
+
{
|
|
4103
|
+
name: 'creatorShare',
|
|
4104
|
+
internalType: 'uint256',
|
|
4105
|
+
type: 'uint256',
|
|
4106
|
+
indexed: false,
|
|
4107
|
+
},
|
|
4108
|
+
{
|
|
4109
|
+
name: 'protocolShare',
|
|
4110
|
+
internalType: 'uint256',
|
|
4111
|
+
type: 'uint256',
|
|
4112
|
+
indexed: false,
|
|
4113
|
+
},
|
|
4114
|
+
{
|
|
4115
|
+
name: 'burnPerRung',
|
|
4116
|
+
internalType: 'uint256',
|
|
4117
|
+
type: 'uint256',
|
|
4118
|
+
indexed: false,
|
|
4119
|
+
},
|
|
4120
|
+
],
|
|
4121
|
+
name: 'ScheduleSet',
|
|
4122
|
+
},
|
|
4123
|
+
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
4087
4124
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4125
|
+
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
4088
4126
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
4089
4127
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
4090
4128
|
{ type: 'error', inputs: [], name: 'NotGraduated' },
|
|
4091
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
|
+
},
|
|
4092
4137
|
{ type: 'error', inputs: [], name: 'Refused' },
|
|
4093
4138
|
];
|
|
4094
4139
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
@@ -4141,6 +4186,13 @@ export const polPolicyAbi = [
|
|
|
4141
4186
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4142
4187
|
stateMutability: 'view',
|
|
4143
4188
|
},
|
|
4189
|
+
{
|
|
4190
|
+
type: 'function',
|
|
4191
|
+
inputs: [],
|
|
4192
|
+
name: 'kind',
|
|
4193
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4194
|
+
stateMutability: 'pure',
|
|
4195
|
+
},
|
|
4144
4196
|
{
|
|
4145
4197
|
type: 'function',
|
|
4146
4198
|
inputs: [],
|
|
@@ -4192,6 +4244,13 @@ export const polPolicyAbi = [
|
|
|
4192
4244
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4193
4245
|
stateMutability: 'view',
|
|
4194
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
|
+
},
|
|
4195
4254
|
{
|
|
4196
4255
|
type: 'function',
|
|
4197
4256
|
inputs: [
|
|
@@ -4236,7 +4295,6 @@ export const polPolicyAbi = [
|
|
|
4236
4295
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
4237
4296
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4238
4297
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
4239
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4240
4298
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4241
4299
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4242
4300
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
@@ -4314,6 +4372,20 @@ export const polPolicyAbi = [
|
|
|
4314
4372
|
outputs: [],
|
|
4315
4373
|
stateMutability: 'nonpayable',
|
|
4316
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
|
+
},
|
|
4317
4389
|
{
|
|
4318
4390
|
type: 'function',
|
|
4319
4391
|
inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -4321,6 +4393,33 @@ export const polPolicyAbi = [
|
|
|
4321
4393
|
outputs: [],
|
|
4322
4394
|
stateMutability: 'nonpayable',
|
|
4323
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
|
+
},
|
|
4324
4423
|
{
|
|
4325
4424
|
type: 'function',
|
|
4326
4425
|
inputs: [
|
|
@@ -4384,6 +4483,47 @@ export const polPolicyAbi = [
|
|
|
4384
4483
|
],
|
|
4385
4484
|
name: 'HarvestCutSet',
|
|
4386
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
|
+
},
|
|
4387
4527
|
{
|
|
4388
4528
|
type: 'event',
|
|
4389
4529
|
anonymous: false,
|
|
@@ -4403,10 +4543,19 @@ export const polPolicyAbi = [
|
|
|
4403
4543
|
],
|
|
4404
4544
|
name: 'RulesSet',
|
|
4405
4545
|
},
|
|
4546
|
+
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
4406
4547
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4548
|
+
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
4407
4549
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
4408
4550
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
4409
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
|
+
},
|
|
4410
4559
|
{ type: 'error', inputs: [], name: 'QuoteTooThin' },
|
|
4411
4560
|
{ type: 'error', inputs: [], name: 'Refused' },
|
|
4412
4561
|
];
|
|
@@ -4429,7 +4578,6 @@ export const policyRegistryAbi = [
|
|
|
4429
4578
|
{
|
|
4430
4579
|
type: 'function',
|
|
4431
4580
|
inputs: [
|
|
4432
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4433
4581
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4434
4582
|
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
4435
4583
|
],
|
|
@@ -4439,10 +4587,7 @@ export const policyRegistryAbi = [
|
|
|
4439
4587
|
},
|
|
4440
4588
|
{
|
|
4441
4589
|
type: 'function',
|
|
4442
|
-
inputs: [
|
|
4443
|
-
{ name: '', internalType: 'enum Kind', type: 'uint8' },
|
|
4444
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
4445
|
-
],
|
|
4590
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4446
4591
|
name: 'entries',
|
|
4447
4592
|
outputs: [
|
|
4448
4593
|
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
@@ -4454,14 +4599,22 @@ export const policyRegistryAbi = [
|
|
|
4454
4599
|
},
|
|
4455
4600
|
{
|
|
4456
4601
|
type: 'function',
|
|
4457
|
-
inputs: [
|
|
4458
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4459
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4460
|
-
],
|
|
4602
|
+
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
4461
4603
|
name: 'isApproved',
|
|
4462
4604
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4463
4605
|
stateMutability: 'view',
|
|
4464
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
|
+
},
|
|
4465
4618
|
{
|
|
4466
4619
|
type: 'function',
|
|
4467
4620
|
inputs: [],
|
|
@@ -4478,8 +4631,8 @@ export const policyRegistryAbi = [
|
|
|
4478
4631
|
},
|
|
4479
4632
|
{
|
|
4480
4633
|
type: 'function',
|
|
4481
|
-
inputs: [
|
|
4482
|
-
name: '
|
|
4634
|
+
inputs: [],
|
|
4635
|
+
name: 'policies',
|
|
4483
4636
|
outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }],
|
|
4484
4637
|
stateMutability: 'view',
|
|
4485
4638
|
},
|
|
@@ -4490,20 +4643,33 @@ export const policyRegistryAbi = [
|
|
|
4490
4643
|
outputs: [],
|
|
4491
4644
|
stateMutability: 'nonpayable',
|
|
4492
4645
|
},
|
|
4646
|
+
{
|
|
4647
|
+
type: 'function',
|
|
4648
|
+
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
4649
|
+
name: 'revoke',
|
|
4650
|
+
outputs: [],
|
|
4651
|
+
stateMutability: 'nonpayable',
|
|
4652
|
+
},
|
|
4493
4653
|
{
|
|
4494
4654
|
type: 'function',
|
|
4495
4655
|
inputs: [
|
|
4496
|
-
{ name: '
|
|
4497
|
-
{ name: '
|
|
4656
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4657
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
4498
4658
|
],
|
|
4499
|
-
name: '
|
|
4659
|
+
name: 'setSponsorName',
|
|
4500
4660
|
outputs: [],
|
|
4501
4661
|
stateMutability: 'nonpayable',
|
|
4502
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
|
+
},
|
|
4503
4670
|
{
|
|
4504
4671
|
type: 'function',
|
|
4505
4672
|
inputs: [
|
|
4506
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4507
4673
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4508
4674
|
{ name: 'untilBlock', internalType: 'uint64', type: 'uint64' },
|
|
4509
4675
|
],
|
|
@@ -4515,7 +4681,6 @@ export const policyRegistryAbi = [
|
|
|
4515
4681
|
type: 'event',
|
|
4516
4682
|
anonymous: false,
|
|
4517
4683
|
inputs: [
|
|
4518
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8', indexed: true },
|
|
4519
4684
|
{
|
|
4520
4685
|
name: 'policy',
|
|
4521
4686
|
internalType: 'address',
|
|
@@ -4563,7 +4728,6 @@ export const policyRegistryAbi = [
|
|
|
4563
4728
|
type: 'event',
|
|
4564
4729
|
anonymous: false,
|
|
4565
4730
|
inputs: [
|
|
4566
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8', indexed: true },
|
|
4567
4731
|
{
|
|
4568
4732
|
name: 'policy',
|
|
4569
4733
|
internalType: 'address',
|
|
@@ -4577,7 +4741,20 @@ export const policyRegistryAbi = [
|
|
|
4577
4741
|
type: 'event',
|
|
4578
4742
|
anonymous: false,
|
|
4579
4743
|
inputs: [
|
|
4580
|
-
{ name: '
|
|
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: [
|
|
4581
4758
|
{
|
|
4582
4759
|
name: 'policy',
|
|
4583
4760
|
internalType: 'address',
|
|
@@ -4594,9 +4771,11 @@ export const policyRegistryAbi = [
|
|
|
4594
4771
|
name: 'SunsetSet',
|
|
4595
4772
|
},
|
|
4596
4773
|
{ type: 'error', inputs: [], name: 'BadSunset' },
|
|
4774
|
+
{ type: 'error', inputs: [], name: 'KindMismatch' },
|
|
4597
4775
|
{ type: 'error', inputs: [], name: 'NotAPolicy' },
|
|
4598
4776
|
{ type: 'error', inputs: [], name: 'NotListed' },
|
|
4599
4777
|
{ type: 'error', inputs: [], name: 'NotOwner' },
|
|
4778
|
+
{ type: 'error', inputs: [], name: 'SamePolicy' },
|
|
4600
4779
|
];
|
|
4601
4780
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4602
4781
|
// PrivatePolicy
|
|
@@ -4716,6 +4895,13 @@ export const privatePolicyAbi = [
|
|
|
4716
4895
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4717
4896
|
stateMutability: 'view',
|
|
4718
4897
|
},
|
|
4898
|
+
{
|
|
4899
|
+
type: 'function',
|
|
4900
|
+
inputs: [],
|
|
4901
|
+
name: 'kind',
|
|
4902
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4903
|
+
stateMutability: 'pure',
|
|
4904
|
+
},
|
|
4719
4905
|
{
|
|
4720
4906
|
type: 'function',
|
|
4721
4907
|
inputs: [],
|
|
@@ -4760,6 +4946,13 @@ export const privatePolicyAbi = [
|
|
|
4760
4946
|
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
4761
4947
|
stateMutability: 'view',
|
|
4762
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
|
+
},
|
|
4763
4956
|
{
|
|
4764
4957
|
type: 'function',
|
|
4765
4958
|
inputs: [
|
|
@@ -4804,7 +4997,6 @@ export const privatePolicyAbi = [
|
|
|
4804
4997
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
4805
4998
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4806
4999
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
4807
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4808
5000
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4809
5001
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4810
5002
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
@@ -4903,6 +5095,20 @@ export const privatePolicyAbi = [
|
|
|
4903
5095
|
outputs: [],
|
|
4904
5096
|
stateMutability: 'nonpayable',
|
|
4905
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
|
+
},
|
|
4906
5112
|
{
|
|
4907
5113
|
type: 'function',
|
|
4908
5114
|
inputs: [
|
|
@@ -4932,6 +5138,33 @@ export const privatePolicyAbi = [
|
|
|
4932
5138
|
outputs: [],
|
|
4933
5139
|
stateMutability: 'nonpayable',
|
|
4934
5140
|
},
|
|
5141
|
+
{
|
|
5142
|
+
type: 'function',
|
|
5143
|
+
inputs: [
|
|
5144
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5145
|
+
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
5146
|
+
],
|
|
5147
|
+
name: 'setName',
|
|
5148
|
+
outputs: [],
|
|
5149
|
+
stateMutability: 'nonpayable',
|
|
5150
|
+
},
|
|
5151
|
+
{
|
|
5152
|
+
type: 'function',
|
|
5153
|
+
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
5154
|
+
name: 'setQuoteCurated',
|
|
5155
|
+
outputs: [],
|
|
5156
|
+
stateMutability: 'nonpayable',
|
|
5157
|
+
},
|
|
5158
|
+
{
|
|
5159
|
+
type: 'function',
|
|
5160
|
+
inputs: [
|
|
5161
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5162
|
+
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
5163
|
+
],
|
|
5164
|
+
name: 'setQuoteListed',
|
|
5165
|
+
outputs: [],
|
|
5166
|
+
stateMutability: 'nonpayable',
|
|
5167
|
+
},
|
|
4935
5168
|
{
|
|
4936
5169
|
type: 'function',
|
|
4937
5170
|
inputs: [
|
|
@@ -5033,6 +5266,25 @@ export const privatePolicyAbi = [
|
|
|
5033
5266
|
],
|
|
5034
5267
|
name: 'Listed',
|
|
5035
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
|
+
},
|
|
5036
5288
|
{
|
|
5037
5289
|
type: 'event',
|
|
5038
5290
|
anonymous: false,
|
|
@@ -5073,11 +5325,42 @@ export const privatePolicyAbi = [
|
|
|
5073
5325
|
],
|
|
5074
5326
|
name: 'OperatorSet',
|
|
5075
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' },
|
|
5076
5351
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
5352
|
+
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
5077
5353
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
5078
5354
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
5079
5355
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
5080
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
|
+
},
|
|
5081
5364
|
{ type: 'error', inputs: [], name: 'Refused' },
|
|
5082
5365
|
];
|
|
5083
5366
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
@@ -5130,6 +5413,13 @@ export const publicPolicyAbi = [
|
|
|
5130
5413
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
5131
5414
|
stateMutability: 'view',
|
|
5132
5415
|
},
|
|
5416
|
+
{
|
|
5417
|
+
type: 'function',
|
|
5418
|
+
inputs: [],
|
|
5419
|
+
name: 'kind',
|
|
5420
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5421
|
+
stateMutability: 'pure',
|
|
5422
|
+
},
|
|
5133
5423
|
{
|
|
5134
5424
|
type: 'function',
|
|
5135
5425
|
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
@@ -5181,6 +5471,13 @@ export const publicPolicyAbi = [
|
|
|
5181
5471
|
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
5182
5472
|
stateMutability: 'view',
|
|
5183
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
|
+
},
|
|
5184
5481
|
{
|
|
5185
5482
|
type: 'function',
|
|
5186
5483
|
inputs: [
|
|
@@ -5225,7 +5522,6 @@ export const publicPolicyAbi = [
|
|
|
5225
5522
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
5226
5523
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
5227
5524
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
5228
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
5229
5525
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5230
5526
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5231
5527
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
@@ -5303,6 +5599,20 @@ export const publicPolicyAbi = [
|
|
|
5303
5599
|
outputs: [],
|
|
5304
5600
|
stateMutability: 'nonpayable',
|
|
5305
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
|
+
},
|
|
5306
5616
|
{
|
|
5307
5617
|
type: 'function',
|
|
5308
5618
|
inputs: [{ name: '_curated', internalType: 'bool', type: 'bool' }],
|
|
@@ -5327,6 +5637,33 @@ export const publicPolicyAbi = [
|
|
|
5327
5637
|
outputs: [],
|
|
5328
5638
|
stateMutability: 'nonpayable',
|
|
5329
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
|
+
},
|
|
5330
5667
|
{
|
|
5331
5668
|
type: 'event',
|
|
5332
5669
|
anonymous: false,
|
|
@@ -5402,7 +5739,50 @@ export const publicPolicyAbi = [
|
|
|
5402
5739
|
],
|
|
5403
5740
|
name: 'Listed',
|
|
5404
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' },
|
|
5405
5784
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
5785
|
+
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
5406
5786
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
5407
5787
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
5408
5788
|
{
|
|
@@ -5411,5 +5791,12 @@ export const publicPolicyAbi = [
|
|
|
5411
5791
|
name: 'NotListed',
|
|
5412
5792
|
},
|
|
5413
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
|
+
},
|
|
5414
5801
|
{ type: 'error', inputs: [], name: 'Refused' },
|
|
5415
5802
|
];
|