@logswap/sdk 0.5.48 → 0.5.50
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 +44 -4
- package/dist/admin.js +79 -8
- package/dist/client.d.ts +7 -1
- package/dist/client.js +8 -2
- package/dist/fpool.d.ts +40 -8
- package/dist/fpool.js +40 -23
- package/dist/generated.d.ts +597 -130
- package/dist/generated.js +376 -55
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/admin.ts +97 -8
- package/src/client.ts +14 -2
- package/src/fpool.ts +49 -28
- package/src/generated.ts +378 -55
- package/src/index.ts +1 -1
package/src/generated.ts
CHANGED
|
@@ -1041,6 +1041,7 @@ export const fPoolManagerAbi = [
|
|
|
1041
1041
|
type: 'constructor',
|
|
1042
1042
|
inputs: [
|
|
1043
1043
|
{ name: '_feeCollector', internalType: 'address', type: 'address' },
|
|
1044
|
+
{ name: '_registry', internalType: 'address', type: 'address' },
|
|
1044
1045
|
],
|
|
1045
1046
|
stateMutability: 'nonpayable',
|
|
1046
1047
|
},
|
|
@@ -1377,6 +1378,16 @@ export const fPoolManagerAbi = [
|
|
|
1377
1378
|
],
|
|
1378
1379
|
stateMutability: 'view',
|
|
1379
1380
|
},
|
|
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
|
+
},
|
|
1380
1391
|
{
|
|
1381
1392
|
type: 'function',
|
|
1382
1393
|
inputs: [
|
|
@@ -1435,16 +1446,6 @@ export const fPoolManagerAbi = [
|
|
|
1435
1446
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1436
1447
|
stateMutability: 'view',
|
|
1437
1448
|
},
|
|
1438
|
-
{
|
|
1439
|
-
type: 'function',
|
|
1440
|
-
inputs: [
|
|
1441
|
-
{ name: '', internalType: 'enum Kind', type: 'uint8' },
|
|
1442
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
1443
|
-
],
|
|
1444
|
-
name: 'policyApproved',
|
|
1445
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1446
|
-
stateMutability: 'view',
|
|
1447
|
-
},
|
|
1448
1449
|
{
|
|
1449
1450
|
type: 'function',
|
|
1450
1451
|
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -1499,6 +1500,15 @@ export const fPoolManagerAbi = [
|
|
|
1499
1500
|
outputs: [],
|
|
1500
1501
|
stateMutability: 'nonpayable',
|
|
1501
1502
|
},
|
|
1503
|
+
{
|
|
1504
|
+
type: 'function',
|
|
1505
|
+
inputs: [],
|
|
1506
|
+
name: 'registry',
|
|
1507
|
+
outputs: [
|
|
1508
|
+
{ name: '', internalType: 'contract PolicyRegistry', type: 'address' },
|
|
1509
|
+
],
|
|
1510
|
+
stateMutability: 'view',
|
|
1511
|
+
},
|
|
1502
1512
|
{
|
|
1503
1513
|
type: 'function',
|
|
1504
1514
|
inputs: [
|
|
@@ -1528,6 +1538,16 @@ export const fPoolManagerAbi = [
|
|
|
1528
1538
|
outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
|
|
1529
1539
|
stateMutability: 'nonpayable',
|
|
1530
1540
|
},
|
|
1541
|
+
{
|
|
1542
|
+
type: 'function',
|
|
1543
|
+
inputs: [
|
|
1544
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1545
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
1546
|
+
],
|
|
1547
|
+
name: 'setAsks',
|
|
1548
|
+
outputs: [],
|
|
1549
|
+
stateMutability: 'nonpayable',
|
|
1550
|
+
},
|
|
1531
1551
|
{
|
|
1532
1552
|
type: 'function',
|
|
1533
1553
|
inputs: [
|
|
@@ -1568,17 +1588,6 @@ export const fPoolManagerAbi = [
|
|
|
1568
1588
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1569
1589
|
stateMutability: 'payable',
|
|
1570
1590
|
},
|
|
1571
|
-
{
|
|
1572
|
-
type: 'function',
|
|
1573
|
-
inputs: [
|
|
1574
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1575
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1576
|
-
{ name: 'approved', internalType: 'bool', type: 'bool' },
|
|
1577
|
-
],
|
|
1578
|
-
name: 'setPolicyApproved',
|
|
1579
|
-
outputs: [],
|
|
1580
|
-
stateMutability: 'nonpayable',
|
|
1581
|
-
},
|
|
1582
1591
|
{
|
|
1583
1592
|
type: 'function',
|
|
1584
1593
|
inputs: [
|
|
@@ -1613,6 +1622,13 @@ export const fPoolManagerAbi = [
|
|
|
1613
1622
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
1614
1623
|
stateMutability: 'view',
|
|
1615
1624
|
},
|
|
1625
|
+
{
|
|
1626
|
+
type: 'function',
|
|
1627
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1628
|
+
name: 'stamp',
|
|
1629
|
+
outputs: [],
|
|
1630
|
+
stateMutability: 'nonpayable',
|
|
1631
|
+
},
|
|
1616
1632
|
{
|
|
1617
1633
|
type: 'function',
|
|
1618
1634
|
inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
|
|
@@ -1769,6 +1785,20 @@ export const fPoolManagerAbi = [
|
|
|
1769
1785
|
],
|
|
1770
1786
|
name: 'Approval',
|
|
1771
1787
|
},
|
|
1788
|
+
{
|
|
1789
|
+
type: 'event',
|
|
1790
|
+
anonymous: false,
|
|
1791
|
+
inputs: [
|
|
1792
|
+
{
|
|
1793
|
+
name: 'poolId',
|
|
1794
|
+
internalType: 'bytes32',
|
|
1795
|
+
type: 'bytes32',
|
|
1796
|
+
indexed: true,
|
|
1797
|
+
},
|
|
1798
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
1799
|
+
],
|
|
1800
|
+
name: 'AsksSet',
|
|
1801
|
+
},
|
|
1772
1802
|
{
|
|
1773
1803
|
type: 'event',
|
|
1774
1804
|
anonymous: false,
|
|
@@ -2046,16 +2076,17 @@ export const fPoolManagerAbi = [
|
|
|
2046
2076
|
type: 'event',
|
|
2047
2077
|
anonymous: false,
|
|
2048
2078
|
inputs: [
|
|
2049
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8', indexed: true },
|
|
2050
2079
|
{
|
|
2051
|
-
name: '
|
|
2052
|
-
internalType: '
|
|
2053
|
-
type: '
|
|
2080
|
+
name: 'poolId',
|
|
2081
|
+
internalType: 'bytes32',
|
|
2082
|
+
type: 'bytes32',
|
|
2054
2083
|
indexed: true,
|
|
2055
2084
|
},
|
|
2056
|
-
{ name: '
|
|
2085
|
+
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
|
2086
|
+
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
2087
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
2057
2088
|
],
|
|
2058
|
-
name: '
|
|
2089
|
+
name: 'PolicyMigrated',
|
|
2059
2090
|
},
|
|
2060
2091
|
{
|
|
2061
2092
|
type: 'event',
|
|
@@ -2216,6 +2247,19 @@ export const fPoolManagerAbi = [
|
|
|
2216
2247
|
],
|
|
2217
2248
|
name: 'SponsorNamed',
|
|
2218
2249
|
},
|
|
2250
|
+
{
|
|
2251
|
+
type: 'event',
|
|
2252
|
+
anonymous: false,
|
|
2253
|
+
inputs: [
|
|
2254
|
+
{
|
|
2255
|
+
name: 'poolId',
|
|
2256
|
+
internalType: 'bytes32',
|
|
2257
|
+
type: 'bytes32',
|
|
2258
|
+
indexed: true,
|
|
2259
|
+
},
|
|
2260
|
+
],
|
|
2261
|
+
name: 'Stamped',
|
|
2262
|
+
},
|
|
2219
2263
|
{
|
|
2220
2264
|
type: 'event',
|
|
2221
2265
|
anonymous: false,
|
|
@@ -2310,9 +2354,12 @@ export const fPoolManagerAbi = [
|
|
|
2310
2354
|
{ type: 'error', inputs: [], name: 'NonstandardToken' },
|
|
2311
2355
|
{ type: 'error', inputs: [], name: 'NotAuthorized' },
|
|
2312
2356
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
2357
|
+
{ type: 'error', inputs: [], name: 'NotPolicy' },
|
|
2313
2358
|
{ type: 'error', inputs: [], name: 'NotPrivate' },
|
|
2359
|
+
{ type: 'error', inputs: [], name: 'NotRegistryOwner' },
|
|
2314
2360
|
{ type: 'error', inputs: [], name: 'NotRetired' },
|
|
2315
2361
|
{ type: 'error', inputs: [], name: 'NotSeeded' },
|
|
2362
|
+
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
2316
2363
|
{ type: 'error', inputs: [], name: 'PolicyNotApproved' },
|
|
2317
2364
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
2318
2365
|
{ type: 'error', inputs: [], name: 'PoolLocked' },
|
|
@@ -3819,6 +3866,16 @@ export const padPolicyAbi = [
|
|
|
3819
3866
|
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
3820
3867
|
stateMutability: 'nonpayable',
|
|
3821
3868
|
},
|
|
3869
|
+
{
|
|
3870
|
+
type: 'function',
|
|
3871
|
+
inputs: [
|
|
3872
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3873
|
+
{ name: 'from', internalType: 'address', type: 'address' },
|
|
3874
|
+
],
|
|
3875
|
+
name: 'onMigrate',
|
|
3876
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
3877
|
+
stateMutability: 'nonpayable',
|
|
3878
|
+
},
|
|
3822
3879
|
{
|
|
3823
3880
|
type: 'function',
|
|
3824
3881
|
inputs: [
|
|
@@ -4201,6 +4258,16 @@ export const polPolicyAbi = [
|
|
|
4201
4258
|
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4202
4259
|
stateMutability: 'nonpayable',
|
|
4203
4260
|
},
|
|
4261
|
+
{
|
|
4262
|
+
type: 'function',
|
|
4263
|
+
inputs: [
|
|
4264
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4265
|
+
{ name: 'from', internalType: 'address', type: 'address' },
|
|
4266
|
+
],
|
|
4267
|
+
name: 'onMigrate',
|
|
4268
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4269
|
+
stateMutability: 'nonpayable',
|
|
4270
|
+
},
|
|
4204
4271
|
{
|
|
4205
4272
|
type: 'function',
|
|
4206
4273
|
inputs: [
|
|
@@ -4355,6 +4422,196 @@ export const polPolicyAbi = [
|
|
|
4355
4422
|
{ type: 'error', inputs: [], name: 'Refused' },
|
|
4356
4423
|
] as const
|
|
4357
4424
|
|
|
4425
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4426
|
+
// PolicyRegistry
|
|
4427
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4428
|
+
|
|
4429
|
+
export const policyRegistryAbi = [
|
|
4430
|
+
{
|
|
4431
|
+
type: 'constructor',
|
|
4432
|
+
inputs: [{ name: '_owner', internalType: 'address', type: 'address' }],
|
|
4433
|
+
stateMutability: 'nonpayable',
|
|
4434
|
+
},
|
|
4435
|
+
{
|
|
4436
|
+
type: 'function',
|
|
4437
|
+
inputs: [],
|
|
4438
|
+
name: 'acceptOwner',
|
|
4439
|
+
outputs: [],
|
|
4440
|
+
stateMutability: 'nonpayable',
|
|
4441
|
+
},
|
|
4442
|
+
{
|
|
4443
|
+
type: 'function',
|
|
4444
|
+
inputs: [
|
|
4445
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4446
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4447
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
4448
|
+
],
|
|
4449
|
+
name: 'approve',
|
|
4450
|
+
outputs: [],
|
|
4451
|
+
stateMutability: 'nonpayable',
|
|
4452
|
+
},
|
|
4453
|
+
{
|
|
4454
|
+
type: 'function',
|
|
4455
|
+
inputs: [
|
|
4456
|
+
{ name: '', internalType: 'enum Kind', type: 'uint8' },
|
|
4457
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
4458
|
+
],
|
|
4459
|
+
name: 'entries',
|
|
4460
|
+
outputs: [
|
|
4461
|
+
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4462
|
+
{ name: 'until', internalType: 'uint64', type: 'uint64' },
|
|
4463
|
+
{ name: 'index', internalType: 'uint32', type: 'uint32' },
|
|
4464
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
4465
|
+
],
|
|
4466
|
+
stateMutability: 'view',
|
|
4467
|
+
},
|
|
4468
|
+
{
|
|
4469
|
+
type: 'function',
|
|
4470
|
+
inputs: [
|
|
4471
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4472
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4473
|
+
],
|
|
4474
|
+
name: 'isApproved',
|
|
4475
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4476
|
+
stateMutability: 'view',
|
|
4477
|
+
},
|
|
4478
|
+
{
|
|
4479
|
+
type: 'function',
|
|
4480
|
+
inputs: [],
|
|
4481
|
+
name: 'owner',
|
|
4482
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4483
|
+
stateMutability: 'view',
|
|
4484
|
+
},
|
|
4485
|
+
{
|
|
4486
|
+
type: 'function',
|
|
4487
|
+
inputs: [],
|
|
4488
|
+
name: 'pendingOwner',
|
|
4489
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4490
|
+
stateMutability: 'view',
|
|
4491
|
+
},
|
|
4492
|
+
{
|
|
4493
|
+
type: 'function',
|
|
4494
|
+
inputs: [{ name: 'kind', internalType: 'enum Kind', type: 'uint8' }],
|
|
4495
|
+
name: 'policiesOf',
|
|
4496
|
+
outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }],
|
|
4497
|
+
stateMutability: 'view',
|
|
4498
|
+
},
|
|
4499
|
+
{
|
|
4500
|
+
type: 'function',
|
|
4501
|
+
inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
|
|
4502
|
+
name: 'proposeOwner',
|
|
4503
|
+
outputs: [],
|
|
4504
|
+
stateMutability: 'nonpayable',
|
|
4505
|
+
},
|
|
4506
|
+
{
|
|
4507
|
+
type: 'function',
|
|
4508
|
+
inputs: [
|
|
4509
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4510
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4511
|
+
],
|
|
4512
|
+
name: 'revoke',
|
|
4513
|
+
outputs: [],
|
|
4514
|
+
stateMutability: 'nonpayable',
|
|
4515
|
+
},
|
|
4516
|
+
{
|
|
4517
|
+
type: 'function',
|
|
4518
|
+
inputs: [
|
|
4519
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4520
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4521
|
+
{ name: 'untilBlock', internalType: 'uint64', type: 'uint64' },
|
|
4522
|
+
],
|
|
4523
|
+
name: 'sunset',
|
|
4524
|
+
outputs: [],
|
|
4525
|
+
stateMutability: 'nonpayable',
|
|
4526
|
+
},
|
|
4527
|
+
{
|
|
4528
|
+
type: 'event',
|
|
4529
|
+
anonymous: false,
|
|
4530
|
+
inputs: [
|
|
4531
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8', indexed: true },
|
|
4532
|
+
{
|
|
4533
|
+
name: 'policy',
|
|
4534
|
+
internalType: 'address',
|
|
4535
|
+
type: 'address',
|
|
4536
|
+
indexed: true,
|
|
4537
|
+
},
|
|
4538
|
+
{
|
|
4539
|
+
name: 'name',
|
|
4540
|
+
internalType: 'bytes32',
|
|
4541
|
+
type: 'bytes32',
|
|
4542
|
+
indexed: false,
|
|
4543
|
+
},
|
|
4544
|
+
],
|
|
4545
|
+
name: 'Approved',
|
|
4546
|
+
},
|
|
4547
|
+
{
|
|
4548
|
+
type: 'event',
|
|
4549
|
+
anonymous: false,
|
|
4550
|
+
inputs: [
|
|
4551
|
+
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
4552
|
+
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
4553
|
+
],
|
|
4554
|
+
name: 'OwnerAccepted',
|
|
4555
|
+
},
|
|
4556
|
+
{
|
|
4557
|
+
type: 'event',
|
|
4558
|
+
anonymous: false,
|
|
4559
|
+
inputs: [
|
|
4560
|
+
{
|
|
4561
|
+
name: 'current',
|
|
4562
|
+
internalType: 'address',
|
|
4563
|
+
type: 'address',
|
|
4564
|
+
indexed: true,
|
|
4565
|
+
},
|
|
4566
|
+
{
|
|
4567
|
+
name: 'proposed',
|
|
4568
|
+
internalType: 'address',
|
|
4569
|
+
type: 'address',
|
|
4570
|
+
indexed: true,
|
|
4571
|
+
},
|
|
4572
|
+
],
|
|
4573
|
+
name: 'OwnerProposed',
|
|
4574
|
+
},
|
|
4575
|
+
{
|
|
4576
|
+
type: 'event',
|
|
4577
|
+
anonymous: false,
|
|
4578
|
+
inputs: [
|
|
4579
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8', indexed: true },
|
|
4580
|
+
{
|
|
4581
|
+
name: 'policy',
|
|
4582
|
+
internalType: 'address',
|
|
4583
|
+
type: 'address',
|
|
4584
|
+
indexed: true,
|
|
4585
|
+
},
|
|
4586
|
+
],
|
|
4587
|
+
name: 'Revoked',
|
|
4588
|
+
},
|
|
4589
|
+
{
|
|
4590
|
+
type: 'event',
|
|
4591
|
+
anonymous: false,
|
|
4592
|
+
inputs: [
|
|
4593
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8', indexed: true },
|
|
4594
|
+
{
|
|
4595
|
+
name: 'policy',
|
|
4596
|
+
internalType: 'address',
|
|
4597
|
+
type: 'address',
|
|
4598
|
+
indexed: true,
|
|
4599
|
+
},
|
|
4600
|
+
{
|
|
4601
|
+
name: 'untilBlock',
|
|
4602
|
+
internalType: 'uint64',
|
|
4603
|
+
type: 'uint64',
|
|
4604
|
+
indexed: false,
|
|
4605
|
+
},
|
|
4606
|
+
],
|
|
4607
|
+
name: 'SunsetSet',
|
|
4608
|
+
},
|
|
4609
|
+
{ type: 'error', inputs: [], name: 'BadSunset' },
|
|
4610
|
+
{ type: 'error', inputs: [], name: 'NotAPolicy' },
|
|
4611
|
+
{ type: 'error', inputs: [], name: 'NotListed' },
|
|
4612
|
+
{ type: 'error', inputs: [], name: 'NotOwner' },
|
|
4613
|
+
] as const
|
|
4614
|
+
|
|
4358
4615
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4359
4616
|
// PrivatePolicy
|
|
4360
4617
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
@@ -4371,6 +4628,20 @@ export const privatePolicyAbi = [
|
|
|
4371
4628
|
],
|
|
4372
4629
|
stateMutability: 'nonpayable',
|
|
4373
4630
|
},
|
|
4631
|
+
{
|
|
4632
|
+
type: 'function',
|
|
4633
|
+
inputs: [],
|
|
4634
|
+
name: 'MINTER',
|
|
4635
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4636
|
+
stateMutability: 'view',
|
|
4637
|
+
},
|
|
4638
|
+
{
|
|
4639
|
+
type: 'function',
|
|
4640
|
+
inputs: [],
|
|
4641
|
+
name: 'TAKER',
|
|
4642
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4643
|
+
stateMutability: 'view',
|
|
4644
|
+
},
|
|
4374
4645
|
{
|
|
4375
4646
|
type: 'function',
|
|
4376
4647
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -4440,6 +4711,26 @@ export const privatePolicyAbi = [
|
|
|
4440
4711
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4441
4712
|
stateMutability: 'view',
|
|
4442
4713
|
},
|
|
4714
|
+
{
|
|
4715
|
+
type: 'function',
|
|
4716
|
+
inputs: [
|
|
4717
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4718
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4719
|
+
],
|
|
4720
|
+
name: 'isMinter',
|
|
4721
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4722
|
+
stateMutability: 'view',
|
|
4723
|
+
},
|
|
4724
|
+
{
|
|
4725
|
+
type: 'function',
|
|
4726
|
+
inputs: [
|
|
4727
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4728
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4729
|
+
],
|
|
4730
|
+
name: 'isTaker',
|
|
4731
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4732
|
+
stateMutability: 'view',
|
|
4733
|
+
},
|
|
4443
4734
|
{
|
|
4444
4735
|
type: 'function',
|
|
4445
4736
|
inputs: [],
|
|
@@ -4539,6 +4830,16 @@ export const privatePolicyAbi = [
|
|
|
4539
4830
|
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4540
4831
|
stateMutability: 'nonpayable',
|
|
4541
4832
|
},
|
|
4833
|
+
{
|
|
4834
|
+
type: 'function',
|
|
4835
|
+
inputs: [
|
|
4836
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4837
|
+
{ name: 'from', internalType: 'address', type: 'address' },
|
|
4838
|
+
],
|
|
4839
|
+
name: 'onMigrate',
|
|
4840
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4841
|
+
stateMutability: 'nonpayable',
|
|
4842
|
+
},
|
|
4542
4843
|
{
|
|
4543
4844
|
type: 'function',
|
|
4544
4845
|
inputs: [
|
|
@@ -4617,17 +4918,6 @@ export const privatePolicyAbi = [
|
|
|
4617
4918
|
outputs: [],
|
|
4618
4919
|
stateMutability: 'nonpayable',
|
|
4619
4920
|
},
|
|
4620
|
-
{
|
|
4621
|
-
type: 'function',
|
|
4622
|
-
inputs: [
|
|
4623
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4624
|
-
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
4625
|
-
{ name: 'yes', internalType: 'bool', type: 'bool' },
|
|
4626
|
-
],
|
|
4627
|
-
name: 'setAllowed',
|
|
4628
|
-
outputs: [],
|
|
4629
|
-
stateMutability: 'nonpayable',
|
|
4630
|
-
},
|
|
4631
4921
|
{
|
|
4632
4922
|
type: 'function',
|
|
4633
4923
|
inputs: [
|
|
@@ -4647,25 +4937,26 @@ export const privatePolicyAbi = [
|
|
|
4647
4937
|
stateMutability: 'nonpayable',
|
|
4648
4938
|
},
|
|
4649
4939
|
{
|
|
4650
|
-
type: '
|
|
4651
|
-
anonymous: false,
|
|
4940
|
+
type: 'function',
|
|
4652
4941
|
inputs: [
|
|
4653
|
-
{
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
type: 'bytes32',
|
|
4657
|
-
indexed: true,
|
|
4658
|
-
},
|
|
4659
|
-
{
|
|
4660
|
-
name: 'authority',
|
|
4661
|
-
internalType: 'address',
|
|
4662
|
-
type: 'address',
|
|
4663
|
-
indexed: true,
|
|
4664
|
-
},
|
|
4665
|
-
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
4666
|
-
{ name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4942
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4943
|
+
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
4944
|
+
{ name: 'yes', internalType: 'bool', type: 'bool' },
|
|
4667
4945
|
],
|
|
4668
|
-
name: '
|
|
4946
|
+
name: 'setMinters',
|
|
4947
|
+
outputs: [],
|
|
4948
|
+
stateMutability: 'nonpayable',
|
|
4949
|
+
},
|
|
4950
|
+
{
|
|
4951
|
+
type: 'function',
|
|
4952
|
+
inputs: [
|
|
4953
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4954
|
+
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
4955
|
+
{ name: 'yes', internalType: 'bool', type: 'bool' },
|
|
4956
|
+
],
|
|
4957
|
+
name: 'setTakers',
|
|
4958
|
+
outputs: [],
|
|
4959
|
+
stateMutability: 'nonpayable',
|
|
4669
4960
|
},
|
|
4670
4961
|
{
|
|
4671
4962
|
type: 'event',
|
|
@@ -4735,6 +5026,28 @@ export const privatePolicyAbi = [
|
|
|
4735
5026
|
],
|
|
4736
5027
|
name: 'HarvestCutSet',
|
|
4737
5028
|
},
|
|
5029
|
+
{
|
|
5030
|
+
type: 'event',
|
|
5031
|
+
anonymous: false,
|
|
5032
|
+
inputs: [
|
|
5033
|
+
{
|
|
5034
|
+
name: 'poolId',
|
|
5035
|
+
internalType: 'bytes32',
|
|
5036
|
+
type: 'bytes32',
|
|
5037
|
+
indexed: true,
|
|
5038
|
+
},
|
|
5039
|
+
{
|
|
5040
|
+
name: 'authority',
|
|
5041
|
+
internalType: 'address',
|
|
5042
|
+
type: 'address',
|
|
5043
|
+
indexed: true,
|
|
5044
|
+
},
|
|
5045
|
+
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
5046
|
+
{ name: 'role', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
5047
|
+
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5048
|
+
],
|
|
5049
|
+
name: 'Listed',
|
|
5050
|
+
},
|
|
4738
5051
|
{
|
|
4739
5052
|
type: 'event',
|
|
4740
5053
|
anonymous: false,
|
|
@@ -4940,6 +5253,16 @@ export const publicPolicyAbi = [
|
|
|
4940
5253
|
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4941
5254
|
stateMutability: 'nonpayable',
|
|
4942
5255
|
},
|
|
5256
|
+
{
|
|
5257
|
+
type: 'function',
|
|
5258
|
+
inputs: [
|
|
5259
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5260
|
+
{ name: 'from', internalType: 'address', type: 'address' },
|
|
5261
|
+
],
|
|
5262
|
+
name: 'onMigrate',
|
|
5263
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
5264
|
+
stateMutability: 'nonpayable',
|
|
5265
|
+
},
|
|
4943
5266
|
{
|
|
4944
5267
|
type: 'function',
|
|
4945
5268
|
inputs: [
|
package/src/index.ts
CHANGED
|
@@ -19,5 +19,5 @@ export * from "./onboard.js";
|
|
|
19
19
|
export * from "./indexer.js";
|
|
20
20
|
export * from "./tokencache.js";
|
|
21
21
|
export * from "./fpool.js";
|
|
22
|
-
export { cPoolManagerAbi, fPoolManagerAbi, logswapLensAbi, logswapRouterAbi, padPolicyAbi, polPolicyAbi, privatePolicyAbi, publicPolicyAbi } from "./generated.js";
|
|
22
|
+
export { cPoolManagerAbi, fPoolManagerAbi, logswapLensAbi, logswapRouterAbi, padPolicyAbi, polPolicyAbi, policyRegistryAbi, privatePolicyAbi, publicPolicyAbi } from "./generated.js";
|
|
23
23
|
export * from "./admin.js";
|