@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/dist/generated.js
CHANGED
|
@@ -1038,6 +1038,7 @@ export const fPoolManagerAbi = [
|
|
|
1038
1038
|
type: 'constructor',
|
|
1039
1039
|
inputs: [
|
|
1040
1040
|
{ name: '_feeCollector', internalType: 'address', type: 'address' },
|
|
1041
|
+
{ name: '_registry', internalType: 'address', type: 'address' },
|
|
1041
1042
|
],
|
|
1042
1043
|
stateMutability: 'nonpayable',
|
|
1043
1044
|
},
|
|
@@ -1374,6 +1375,16 @@ export const fPoolManagerAbi = [
|
|
|
1374
1375
|
],
|
|
1375
1376
|
stateMutability: 'view',
|
|
1376
1377
|
},
|
|
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
|
+
},
|
|
1377
1388
|
{
|
|
1378
1389
|
type: 'function',
|
|
1379
1390
|
inputs: [
|
|
@@ -1432,16 +1443,6 @@ export const fPoolManagerAbi = [
|
|
|
1432
1443
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1433
1444
|
stateMutability: 'view',
|
|
1434
1445
|
},
|
|
1435
|
-
{
|
|
1436
|
-
type: 'function',
|
|
1437
|
-
inputs: [
|
|
1438
|
-
{ name: '', internalType: 'enum Kind', type: 'uint8' },
|
|
1439
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
1440
|
-
],
|
|
1441
|
-
name: 'policyApproved',
|
|
1442
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1443
|
-
stateMutability: 'view',
|
|
1444
|
-
},
|
|
1445
1446
|
{
|
|
1446
1447
|
type: 'function',
|
|
1447
1448
|
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -1496,6 +1497,15 @@ export const fPoolManagerAbi = [
|
|
|
1496
1497
|
outputs: [],
|
|
1497
1498
|
stateMutability: 'nonpayable',
|
|
1498
1499
|
},
|
|
1500
|
+
{
|
|
1501
|
+
type: 'function',
|
|
1502
|
+
inputs: [],
|
|
1503
|
+
name: 'registry',
|
|
1504
|
+
outputs: [
|
|
1505
|
+
{ name: '', internalType: 'contract PolicyRegistry', type: 'address' },
|
|
1506
|
+
],
|
|
1507
|
+
stateMutability: 'view',
|
|
1508
|
+
},
|
|
1499
1509
|
{
|
|
1500
1510
|
type: 'function',
|
|
1501
1511
|
inputs: [
|
|
@@ -1525,6 +1535,16 @@ export const fPoolManagerAbi = [
|
|
|
1525
1535
|
outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
|
|
1526
1536
|
stateMutability: 'nonpayable',
|
|
1527
1537
|
},
|
|
1538
|
+
{
|
|
1539
|
+
type: 'function',
|
|
1540
|
+
inputs: [
|
|
1541
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1542
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
1543
|
+
],
|
|
1544
|
+
name: 'setAsks',
|
|
1545
|
+
outputs: [],
|
|
1546
|
+
stateMutability: 'nonpayable',
|
|
1547
|
+
},
|
|
1528
1548
|
{
|
|
1529
1549
|
type: 'function',
|
|
1530
1550
|
inputs: [
|
|
@@ -1565,17 +1585,6 @@ export const fPoolManagerAbi = [
|
|
|
1565
1585
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1566
1586
|
stateMutability: 'payable',
|
|
1567
1587
|
},
|
|
1568
|
-
{
|
|
1569
|
-
type: 'function',
|
|
1570
|
-
inputs: [
|
|
1571
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1572
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1573
|
-
{ name: 'approved', internalType: 'bool', type: 'bool' },
|
|
1574
|
-
],
|
|
1575
|
-
name: 'setPolicyApproved',
|
|
1576
|
-
outputs: [],
|
|
1577
|
-
stateMutability: 'nonpayable',
|
|
1578
|
-
},
|
|
1579
1588
|
{
|
|
1580
1589
|
type: 'function',
|
|
1581
1590
|
inputs: [
|
|
@@ -1610,6 +1619,13 @@ export const fPoolManagerAbi = [
|
|
|
1610
1619
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
1611
1620
|
stateMutability: 'view',
|
|
1612
1621
|
},
|
|
1622
|
+
{
|
|
1623
|
+
type: 'function',
|
|
1624
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1625
|
+
name: 'stamp',
|
|
1626
|
+
outputs: [],
|
|
1627
|
+
stateMutability: 'nonpayable',
|
|
1628
|
+
},
|
|
1613
1629
|
{
|
|
1614
1630
|
type: 'function',
|
|
1615
1631
|
inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
|
|
@@ -1766,6 +1782,20 @@ export const fPoolManagerAbi = [
|
|
|
1766
1782
|
],
|
|
1767
1783
|
name: 'Approval',
|
|
1768
1784
|
},
|
|
1785
|
+
{
|
|
1786
|
+
type: 'event',
|
|
1787
|
+
anonymous: false,
|
|
1788
|
+
inputs: [
|
|
1789
|
+
{
|
|
1790
|
+
name: 'poolId',
|
|
1791
|
+
internalType: 'bytes32',
|
|
1792
|
+
type: 'bytes32',
|
|
1793
|
+
indexed: true,
|
|
1794
|
+
},
|
|
1795
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
1796
|
+
],
|
|
1797
|
+
name: 'AsksSet',
|
|
1798
|
+
},
|
|
1769
1799
|
{
|
|
1770
1800
|
type: 'event',
|
|
1771
1801
|
anonymous: false,
|
|
@@ -2043,16 +2073,17 @@ export const fPoolManagerAbi = [
|
|
|
2043
2073
|
type: 'event',
|
|
2044
2074
|
anonymous: false,
|
|
2045
2075
|
inputs: [
|
|
2046
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8', indexed: true },
|
|
2047
2076
|
{
|
|
2048
|
-
name: '
|
|
2049
|
-
internalType: '
|
|
2050
|
-
type: '
|
|
2077
|
+
name: 'poolId',
|
|
2078
|
+
internalType: 'bytes32',
|
|
2079
|
+
type: 'bytes32',
|
|
2051
2080
|
indexed: true,
|
|
2052
2081
|
},
|
|
2053
|
-
{ name: '
|
|
2082
|
+
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
|
2083
|
+
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
2084
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
2054
2085
|
],
|
|
2055
|
-
name: '
|
|
2086
|
+
name: 'PolicyMigrated',
|
|
2056
2087
|
},
|
|
2057
2088
|
{
|
|
2058
2089
|
type: 'event',
|
|
@@ -2213,6 +2244,19 @@ export const fPoolManagerAbi = [
|
|
|
2213
2244
|
],
|
|
2214
2245
|
name: 'SponsorNamed',
|
|
2215
2246
|
},
|
|
2247
|
+
{
|
|
2248
|
+
type: 'event',
|
|
2249
|
+
anonymous: false,
|
|
2250
|
+
inputs: [
|
|
2251
|
+
{
|
|
2252
|
+
name: 'poolId',
|
|
2253
|
+
internalType: 'bytes32',
|
|
2254
|
+
type: 'bytes32',
|
|
2255
|
+
indexed: true,
|
|
2256
|
+
},
|
|
2257
|
+
],
|
|
2258
|
+
name: 'Stamped',
|
|
2259
|
+
},
|
|
2216
2260
|
{
|
|
2217
2261
|
type: 'event',
|
|
2218
2262
|
anonymous: false,
|
|
@@ -2307,9 +2351,12 @@ export const fPoolManagerAbi = [
|
|
|
2307
2351
|
{ type: 'error', inputs: [], name: 'NonstandardToken' },
|
|
2308
2352
|
{ type: 'error', inputs: [], name: 'NotAuthorized' },
|
|
2309
2353
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
2354
|
+
{ type: 'error', inputs: [], name: 'NotPolicy' },
|
|
2310
2355
|
{ type: 'error', inputs: [], name: 'NotPrivate' },
|
|
2356
|
+
{ type: 'error', inputs: [], name: 'NotRegistryOwner' },
|
|
2311
2357
|
{ type: 'error', inputs: [], name: 'NotRetired' },
|
|
2312
2358
|
{ type: 'error', inputs: [], name: 'NotSeeded' },
|
|
2359
|
+
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
2313
2360
|
{ type: 'error', inputs: [], name: 'PolicyNotApproved' },
|
|
2314
2361
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
2315
2362
|
{ type: 'error', inputs: [], name: 'PoolLocked' },
|
|
@@ -3810,6 +3857,16 @@ export const padPolicyAbi = [
|
|
|
3810
3857
|
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
3811
3858
|
stateMutability: 'nonpayable',
|
|
3812
3859
|
},
|
|
3860
|
+
{
|
|
3861
|
+
type: 'function',
|
|
3862
|
+
inputs: [
|
|
3863
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3864
|
+
{ name: 'from', internalType: 'address', type: 'address' },
|
|
3865
|
+
],
|
|
3866
|
+
name: 'onMigrate',
|
|
3867
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
3868
|
+
stateMutability: 'nonpayable',
|
|
3869
|
+
},
|
|
3813
3870
|
{
|
|
3814
3871
|
type: 'function',
|
|
3815
3872
|
inputs: [
|
|
@@ -4190,6 +4247,16 @@ export const polPolicyAbi = [
|
|
|
4190
4247
|
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4191
4248
|
stateMutability: 'nonpayable',
|
|
4192
4249
|
},
|
|
4250
|
+
{
|
|
4251
|
+
type: 'function',
|
|
4252
|
+
inputs: [
|
|
4253
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4254
|
+
{ name: 'from', internalType: 'address', type: 'address' },
|
|
4255
|
+
],
|
|
4256
|
+
name: 'onMigrate',
|
|
4257
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4258
|
+
stateMutability: 'nonpayable',
|
|
4259
|
+
},
|
|
4193
4260
|
{
|
|
4194
4261
|
type: 'function',
|
|
4195
4262
|
inputs: [
|
|
@@ -4344,6 +4411,194 @@ export const polPolicyAbi = [
|
|
|
4344
4411
|
{ type: 'error', inputs: [], name: 'Refused' },
|
|
4345
4412
|
];
|
|
4346
4413
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4414
|
+
// PolicyRegistry
|
|
4415
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4416
|
+
export const policyRegistryAbi = [
|
|
4417
|
+
{
|
|
4418
|
+
type: 'constructor',
|
|
4419
|
+
inputs: [{ name: '_owner', internalType: 'address', type: 'address' }],
|
|
4420
|
+
stateMutability: 'nonpayable',
|
|
4421
|
+
},
|
|
4422
|
+
{
|
|
4423
|
+
type: 'function',
|
|
4424
|
+
inputs: [],
|
|
4425
|
+
name: 'acceptOwner',
|
|
4426
|
+
outputs: [],
|
|
4427
|
+
stateMutability: 'nonpayable',
|
|
4428
|
+
},
|
|
4429
|
+
{
|
|
4430
|
+
type: 'function',
|
|
4431
|
+
inputs: [
|
|
4432
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4433
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4434
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
4435
|
+
],
|
|
4436
|
+
name: 'approve',
|
|
4437
|
+
outputs: [],
|
|
4438
|
+
stateMutability: 'nonpayable',
|
|
4439
|
+
},
|
|
4440
|
+
{
|
|
4441
|
+
type: 'function',
|
|
4442
|
+
inputs: [
|
|
4443
|
+
{ name: '', internalType: 'enum Kind', type: 'uint8' },
|
|
4444
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
4445
|
+
],
|
|
4446
|
+
name: 'entries',
|
|
4447
|
+
outputs: [
|
|
4448
|
+
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4449
|
+
{ name: 'until', internalType: 'uint64', type: 'uint64' },
|
|
4450
|
+
{ name: 'index', internalType: 'uint32', type: 'uint32' },
|
|
4451
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
4452
|
+
],
|
|
4453
|
+
stateMutability: 'view',
|
|
4454
|
+
},
|
|
4455
|
+
{
|
|
4456
|
+
type: 'function',
|
|
4457
|
+
inputs: [
|
|
4458
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4459
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4460
|
+
],
|
|
4461
|
+
name: 'isApproved',
|
|
4462
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4463
|
+
stateMutability: 'view',
|
|
4464
|
+
},
|
|
4465
|
+
{
|
|
4466
|
+
type: 'function',
|
|
4467
|
+
inputs: [],
|
|
4468
|
+
name: 'owner',
|
|
4469
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4470
|
+
stateMutability: 'view',
|
|
4471
|
+
},
|
|
4472
|
+
{
|
|
4473
|
+
type: 'function',
|
|
4474
|
+
inputs: [],
|
|
4475
|
+
name: 'pendingOwner',
|
|
4476
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4477
|
+
stateMutability: 'view',
|
|
4478
|
+
},
|
|
4479
|
+
{
|
|
4480
|
+
type: 'function',
|
|
4481
|
+
inputs: [{ name: 'kind', internalType: 'enum Kind', type: 'uint8' }],
|
|
4482
|
+
name: 'policiesOf',
|
|
4483
|
+
outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }],
|
|
4484
|
+
stateMutability: 'view',
|
|
4485
|
+
},
|
|
4486
|
+
{
|
|
4487
|
+
type: 'function',
|
|
4488
|
+
inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
|
|
4489
|
+
name: 'proposeOwner',
|
|
4490
|
+
outputs: [],
|
|
4491
|
+
stateMutability: 'nonpayable',
|
|
4492
|
+
},
|
|
4493
|
+
{
|
|
4494
|
+
type: 'function',
|
|
4495
|
+
inputs: [
|
|
4496
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4497
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4498
|
+
],
|
|
4499
|
+
name: 'revoke',
|
|
4500
|
+
outputs: [],
|
|
4501
|
+
stateMutability: 'nonpayable',
|
|
4502
|
+
},
|
|
4503
|
+
{
|
|
4504
|
+
type: 'function',
|
|
4505
|
+
inputs: [
|
|
4506
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4507
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4508
|
+
{ name: 'untilBlock', internalType: 'uint64', type: 'uint64' },
|
|
4509
|
+
],
|
|
4510
|
+
name: 'sunset',
|
|
4511
|
+
outputs: [],
|
|
4512
|
+
stateMutability: 'nonpayable',
|
|
4513
|
+
},
|
|
4514
|
+
{
|
|
4515
|
+
type: 'event',
|
|
4516
|
+
anonymous: false,
|
|
4517
|
+
inputs: [
|
|
4518
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8', indexed: true },
|
|
4519
|
+
{
|
|
4520
|
+
name: 'policy',
|
|
4521
|
+
internalType: 'address',
|
|
4522
|
+
type: 'address',
|
|
4523
|
+
indexed: true,
|
|
4524
|
+
},
|
|
4525
|
+
{
|
|
4526
|
+
name: 'name',
|
|
4527
|
+
internalType: 'bytes32',
|
|
4528
|
+
type: 'bytes32',
|
|
4529
|
+
indexed: false,
|
|
4530
|
+
},
|
|
4531
|
+
],
|
|
4532
|
+
name: 'Approved',
|
|
4533
|
+
},
|
|
4534
|
+
{
|
|
4535
|
+
type: 'event',
|
|
4536
|
+
anonymous: false,
|
|
4537
|
+
inputs: [
|
|
4538
|
+
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
4539
|
+
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
4540
|
+
],
|
|
4541
|
+
name: 'OwnerAccepted',
|
|
4542
|
+
},
|
|
4543
|
+
{
|
|
4544
|
+
type: 'event',
|
|
4545
|
+
anonymous: false,
|
|
4546
|
+
inputs: [
|
|
4547
|
+
{
|
|
4548
|
+
name: 'current',
|
|
4549
|
+
internalType: 'address',
|
|
4550
|
+
type: 'address',
|
|
4551
|
+
indexed: true,
|
|
4552
|
+
},
|
|
4553
|
+
{
|
|
4554
|
+
name: 'proposed',
|
|
4555
|
+
internalType: 'address',
|
|
4556
|
+
type: 'address',
|
|
4557
|
+
indexed: true,
|
|
4558
|
+
},
|
|
4559
|
+
],
|
|
4560
|
+
name: 'OwnerProposed',
|
|
4561
|
+
},
|
|
4562
|
+
{
|
|
4563
|
+
type: 'event',
|
|
4564
|
+
anonymous: false,
|
|
4565
|
+
inputs: [
|
|
4566
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8', indexed: true },
|
|
4567
|
+
{
|
|
4568
|
+
name: 'policy',
|
|
4569
|
+
internalType: 'address',
|
|
4570
|
+
type: 'address',
|
|
4571
|
+
indexed: true,
|
|
4572
|
+
},
|
|
4573
|
+
],
|
|
4574
|
+
name: 'Revoked',
|
|
4575
|
+
},
|
|
4576
|
+
{
|
|
4577
|
+
type: 'event',
|
|
4578
|
+
anonymous: false,
|
|
4579
|
+
inputs: [
|
|
4580
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8', indexed: true },
|
|
4581
|
+
{
|
|
4582
|
+
name: 'policy',
|
|
4583
|
+
internalType: 'address',
|
|
4584
|
+
type: 'address',
|
|
4585
|
+
indexed: true,
|
|
4586
|
+
},
|
|
4587
|
+
{
|
|
4588
|
+
name: 'untilBlock',
|
|
4589
|
+
internalType: 'uint64',
|
|
4590
|
+
type: 'uint64',
|
|
4591
|
+
indexed: false,
|
|
4592
|
+
},
|
|
4593
|
+
],
|
|
4594
|
+
name: 'SunsetSet',
|
|
4595
|
+
},
|
|
4596
|
+
{ type: 'error', inputs: [], name: 'BadSunset' },
|
|
4597
|
+
{ type: 'error', inputs: [], name: 'NotAPolicy' },
|
|
4598
|
+
{ type: 'error', inputs: [], name: 'NotListed' },
|
|
4599
|
+
{ type: 'error', inputs: [], name: 'NotOwner' },
|
|
4600
|
+
];
|
|
4601
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4347
4602
|
// PrivatePolicy
|
|
4348
4603
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4349
4604
|
export const privatePolicyAbi = [
|
|
@@ -4358,6 +4613,20 @@ export const privatePolicyAbi = [
|
|
|
4358
4613
|
],
|
|
4359
4614
|
stateMutability: 'nonpayable',
|
|
4360
4615
|
},
|
|
4616
|
+
{
|
|
4617
|
+
type: 'function',
|
|
4618
|
+
inputs: [],
|
|
4619
|
+
name: 'MINTER',
|
|
4620
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4621
|
+
stateMutability: 'view',
|
|
4622
|
+
},
|
|
4623
|
+
{
|
|
4624
|
+
type: 'function',
|
|
4625
|
+
inputs: [],
|
|
4626
|
+
name: 'TAKER',
|
|
4627
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4628
|
+
stateMutability: 'view',
|
|
4629
|
+
},
|
|
4361
4630
|
{
|
|
4362
4631
|
type: 'function',
|
|
4363
4632
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -4427,6 +4696,26 @@ export const privatePolicyAbi = [
|
|
|
4427
4696
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4428
4697
|
stateMutability: 'view',
|
|
4429
4698
|
},
|
|
4699
|
+
{
|
|
4700
|
+
type: 'function',
|
|
4701
|
+
inputs: [
|
|
4702
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4703
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4704
|
+
],
|
|
4705
|
+
name: 'isMinter',
|
|
4706
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4707
|
+
stateMutability: 'view',
|
|
4708
|
+
},
|
|
4709
|
+
{
|
|
4710
|
+
type: 'function',
|
|
4711
|
+
inputs: [
|
|
4712
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4713
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4714
|
+
],
|
|
4715
|
+
name: 'isTaker',
|
|
4716
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4717
|
+
stateMutability: 'view',
|
|
4718
|
+
},
|
|
4430
4719
|
{
|
|
4431
4720
|
type: 'function',
|
|
4432
4721
|
inputs: [],
|
|
@@ -4526,6 +4815,16 @@ export const privatePolicyAbi = [
|
|
|
4526
4815
|
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4527
4816
|
stateMutability: 'nonpayable',
|
|
4528
4817
|
},
|
|
4818
|
+
{
|
|
4819
|
+
type: 'function',
|
|
4820
|
+
inputs: [
|
|
4821
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4822
|
+
{ name: 'from', internalType: 'address', type: 'address' },
|
|
4823
|
+
],
|
|
4824
|
+
name: 'onMigrate',
|
|
4825
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4826
|
+
stateMutability: 'nonpayable',
|
|
4827
|
+
},
|
|
4529
4828
|
{
|
|
4530
4829
|
type: 'function',
|
|
4531
4830
|
inputs: [
|
|
@@ -4604,17 +4903,6 @@ export const privatePolicyAbi = [
|
|
|
4604
4903
|
outputs: [],
|
|
4605
4904
|
stateMutability: 'nonpayable',
|
|
4606
4905
|
},
|
|
4607
|
-
{
|
|
4608
|
-
type: 'function',
|
|
4609
|
-
inputs: [
|
|
4610
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4611
|
-
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
4612
|
-
{ name: 'yes', internalType: 'bool', type: 'bool' },
|
|
4613
|
-
],
|
|
4614
|
-
name: 'setAllowed',
|
|
4615
|
-
outputs: [],
|
|
4616
|
-
stateMutability: 'nonpayable',
|
|
4617
|
-
},
|
|
4618
4906
|
{
|
|
4619
4907
|
type: 'function',
|
|
4620
4908
|
inputs: [
|
|
@@ -4634,25 +4922,26 @@ export const privatePolicyAbi = [
|
|
|
4634
4922
|
stateMutability: 'nonpayable',
|
|
4635
4923
|
},
|
|
4636
4924
|
{
|
|
4637
|
-
type: '
|
|
4638
|
-
anonymous: false,
|
|
4925
|
+
type: 'function',
|
|
4639
4926
|
inputs: [
|
|
4640
|
-
{
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
type: 'bytes32',
|
|
4644
|
-
indexed: true,
|
|
4645
|
-
},
|
|
4646
|
-
{
|
|
4647
|
-
name: 'authority',
|
|
4648
|
-
internalType: 'address',
|
|
4649
|
-
type: 'address',
|
|
4650
|
-
indexed: true,
|
|
4651
|
-
},
|
|
4652
|
-
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
4653
|
-
{ name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4927
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4928
|
+
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
4929
|
+
{ name: 'yes', internalType: 'bool', type: 'bool' },
|
|
4654
4930
|
],
|
|
4655
|
-
name: '
|
|
4931
|
+
name: 'setMinters',
|
|
4932
|
+
outputs: [],
|
|
4933
|
+
stateMutability: 'nonpayable',
|
|
4934
|
+
},
|
|
4935
|
+
{
|
|
4936
|
+
type: 'function',
|
|
4937
|
+
inputs: [
|
|
4938
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4939
|
+
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
4940
|
+
{ name: 'yes', internalType: 'bool', type: 'bool' },
|
|
4941
|
+
],
|
|
4942
|
+
name: 'setTakers',
|
|
4943
|
+
outputs: [],
|
|
4944
|
+
stateMutability: 'nonpayable',
|
|
4656
4945
|
},
|
|
4657
4946
|
{
|
|
4658
4947
|
type: 'event',
|
|
@@ -4722,6 +5011,28 @@ export const privatePolicyAbi = [
|
|
|
4722
5011
|
],
|
|
4723
5012
|
name: 'HarvestCutSet',
|
|
4724
5013
|
},
|
|
5014
|
+
{
|
|
5015
|
+
type: 'event',
|
|
5016
|
+
anonymous: false,
|
|
5017
|
+
inputs: [
|
|
5018
|
+
{
|
|
5019
|
+
name: 'poolId',
|
|
5020
|
+
internalType: 'bytes32',
|
|
5021
|
+
type: 'bytes32',
|
|
5022
|
+
indexed: true,
|
|
5023
|
+
},
|
|
5024
|
+
{
|
|
5025
|
+
name: 'authority',
|
|
5026
|
+
internalType: 'address',
|
|
5027
|
+
type: 'address',
|
|
5028
|
+
indexed: true,
|
|
5029
|
+
},
|
|
5030
|
+
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
5031
|
+
{ name: 'role', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
5032
|
+
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5033
|
+
],
|
|
5034
|
+
name: 'Listed',
|
|
5035
|
+
},
|
|
4725
5036
|
{
|
|
4726
5037
|
type: 'event',
|
|
4727
5038
|
anonymous: false,
|
|
@@ -4925,6 +5236,16 @@ export const publicPolicyAbi = [
|
|
|
4925
5236
|
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4926
5237
|
stateMutability: 'nonpayable',
|
|
4927
5238
|
},
|
|
5239
|
+
{
|
|
5240
|
+
type: 'function',
|
|
5241
|
+
inputs: [
|
|
5242
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5243
|
+
{ name: 'from', internalType: 'address', type: 'address' },
|
|
5244
|
+
],
|
|
5245
|
+
name: 'onMigrate',
|
|
5246
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
5247
|
+
stateMutability: 'nonpayable',
|
|
5248
|
+
},
|
|
4928
5249
|
{
|
|
4929
5250
|
type: 'function',
|
|
4930
5251
|
inputs: [
|
package/dist/index.d.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";
|
package/dist/index.js
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";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logswap/sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.50",
|
|
4
4
|
"description": "TypeScript SDK for Logswap, the liquidity primitive introducing the logarithmic invariant — typed wrappers over the CPoolManager / FPoolManager / Router / Lens surface.",
|
|
5
5
|
"license": "GPL-2.0-or-later",
|
|
6
6
|
"type": "module",
|