@logswap/sdk 0.5.47 → 0.5.49
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 +19 -19
- package/dist/admin.js +29 -29
- package/dist/client.d.ts +6 -6
- package/dist/client.js +11 -8
- package/dist/fpool.d.ts +82 -82
- package/dist/fpool.js +99 -99
- package/dist/generated.d.ts +103 -103
- package/dist/generated.js +132 -79
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/admin.ts +29 -29
- package/src/client.ts +16 -13
- package/src/fpool.ts +133 -133
- package/src/generated.ts +132 -79
- package/src/index.ts +1 -1
package/dist/generated.js
CHANGED
|
@@ -1260,7 +1260,7 @@ export const fPoolManagerAbi = [
|
|
|
1260
1260
|
components: [
|
|
1261
1261
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
1262
1262
|
{ name: 'phi', internalType: 'uint96', type: 'uint96' },
|
|
1263
|
-
{ name: '
|
|
1263
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1264
1264
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1265
1265
|
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
1266
1266
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
@@ -1296,16 +1296,6 @@ export const fPoolManagerAbi = [
|
|
|
1296
1296
|
outputs: [{ name: 'cap', internalType: 'uint256', type: 'uint256' }],
|
|
1297
1297
|
stateMutability: 'view',
|
|
1298
1298
|
},
|
|
1299
|
-
{
|
|
1300
|
-
type: 'function',
|
|
1301
|
-
inputs: [
|
|
1302
|
-
{ name: '', internalType: 'enum Kind', type: 'uint8' },
|
|
1303
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
1304
|
-
],
|
|
1305
|
-
name: 'hookApproved',
|
|
1306
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1307
|
-
stateMutability: 'view',
|
|
1308
|
-
},
|
|
1309
1299
|
{
|
|
1310
1300
|
type: 'function',
|
|
1311
1301
|
inputs: [
|
|
@@ -1319,7 +1309,7 @@ export const fPoolManagerAbi = [
|
|
|
1319
1309
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1320
1310
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
1321
1311
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1322
|
-
{ name: '
|
|
1312
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1323
1313
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
1324
1314
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
1325
1315
|
],
|
|
@@ -1342,7 +1332,7 @@ export const fPoolManagerAbi = [
|
|
|
1342
1332
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1343
1333
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
1344
1334
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1345
|
-
{ name: '
|
|
1335
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1346
1336
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
1347
1337
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
1348
1338
|
],
|
|
@@ -1442,6 +1432,16 @@ export const fPoolManagerAbi = [
|
|
|
1442
1432
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1443
1433
|
stateMutability: 'view',
|
|
1444
1434
|
},
|
|
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
1445
|
{
|
|
1446
1446
|
type: 'function',
|
|
1447
1447
|
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -1534,17 +1534,6 @@ export const fPoolManagerAbi = [
|
|
|
1534
1534
|
outputs: [],
|
|
1535
1535
|
stateMutability: 'nonpayable',
|
|
1536
1536
|
},
|
|
1537
|
-
{
|
|
1538
|
-
type: 'function',
|
|
1539
|
-
inputs: [
|
|
1540
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1541
|
-
{ name: 'hook', internalType: 'address', type: 'address' },
|
|
1542
|
-
{ name: 'approved', internalType: 'bool', type: 'bool' },
|
|
1543
|
-
],
|
|
1544
|
-
name: 'setHookApproved',
|
|
1545
|
-
outputs: [],
|
|
1546
|
-
stateMutability: 'nonpayable',
|
|
1547
|
-
},
|
|
1548
1537
|
{
|
|
1549
1538
|
type: 'function',
|
|
1550
1539
|
inputs: [
|
|
@@ -1576,6 +1565,17 @@ export const fPoolManagerAbi = [
|
|
|
1576
1565
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1577
1566
|
stateMutability: 'payable',
|
|
1578
1567
|
},
|
|
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
1579
|
{
|
|
1580
1580
|
type: 'function',
|
|
1581
1581
|
inputs: [
|
|
@@ -1897,16 +1897,6 @@ export const fPoolManagerAbi = [
|
|
|
1897
1897
|
],
|
|
1898
1898
|
name: 'Harvest',
|
|
1899
1899
|
},
|
|
1900
|
-
{
|
|
1901
|
-
type: 'event',
|
|
1902
|
-
anonymous: false,
|
|
1903
|
-
inputs: [
|
|
1904
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8', indexed: true },
|
|
1905
|
-
{ name: 'hook', internalType: 'address', type: 'address', indexed: true },
|
|
1906
|
-
{ name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
|
|
1907
|
-
],
|
|
1908
|
-
name: 'HookApproved',
|
|
1909
|
-
},
|
|
1910
1900
|
{
|
|
1911
1901
|
type: 'event',
|
|
1912
1902
|
anonymous: false,
|
|
@@ -1949,7 +1939,7 @@ export const fPoolManagerAbi = [
|
|
|
1949
1939
|
indexed: false,
|
|
1950
1940
|
},
|
|
1951
1941
|
{
|
|
1952
|
-
name: '
|
|
1942
|
+
name: 'policy',
|
|
1953
1943
|
internalType: 'address',
|
|
1954
1944
|
type: 'address',
|
|
1955
1945
|
indexed: false,
|
|
@@ -2049,6 +2039,21 @@ export const fPoolManagerAbi = [
|
|
|
2049
2039
|
],
|
|
2050
2040
|
name: 'OperatorSet',
|
|
2051
2041
|
},
|
|
2042
|
+
{
|
|
2043
|
+
type: 'event',
|
|
2044
|
+
anonymous: false,
|
|
2045
|
+
inputs: [
|
|
2046
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8', indexed: true },
|
|
2047
|
+
{
|
|
2048
|
+
name: 'policy',
|
|
2049
|
+
internalType: 'address',
|
|
2050
|
+
type: 'address',
|
|
2051
|
+
indexed: true,
|
|
2052
|
+
},
|
|
2053
|
+
{ name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
|
|
2054
|
+
],
|
|
2055
|
+
name: 'PolicyApproved',
|
|
2056
|
+
},
|
|
2052
2057
|
{
|
|
2053
2058
|
type: 'event',
|
|
2054
2059
|
anonymous: false,
|
|
@@ -2289,7 +2294,6 @@ export const fPoolManagerAbi = [
|
|
|
2289
2294
|
{ type: 'error', inputs: [], name: 'BalanceOverflow' },
|
|
2290
2295
|
{ type: 'error', inputs: [], name: 'BidNotEmpty' },
|
|
2291
2296
|
{ type: 'error', inputs: [], name: 'HarvestLimit' },
|
|
2292
|
-
{ type: 'error', inputs: [], name: 'HookNotApproved' },
|
|
2293
2297
|
{ type: 'error', inputs: [], name: 'InsufficientBalance' },
|
|
2294
2298
|
{ type: 'error', inputs: [], name: 'InsufficientPermission' },
|
|
2295
2299
|
{ type: 'error', inputs: [], name: 'InsufficientQuote' },
|
|
@@ -2306,6 +2310,7 @@ export const fPoolManagerAbi = [
|
|
|
2306
2310
|
{ type: 'error', inputs: [], name: 'NotPrivate' },
|
|
2307
2311
|
{ type: 'error', inputs: [], name: 'NotRetired' },
|
|
2308
2312
|
{ type: 'error', inputs: [], name: 'NotSeeded' },
|
|
2313
|
+
{ type: 'error', inputs: [], name: 'PolicyNotApproved' },
|
|
2309
2314
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
2310
2315
|
{ type: 'error', inputs: [], name: 'PoolLocked' },
|
|
2311
2316
|
{ type: 'error', inputs: [], name: 'PoolNotInitialized' },
|
|
@@ -2489,7 +2494,7 @@ export const logswapLensAbi = [
|
|
|
2489
2494
|
components: [
|
|
2490
2495
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2491
2496
|
{ name: 'phi', internalType: 'uint96', type: 'uint96' },
|
|
2492
|
-
{ name: '
|
|
2497
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2493
2498
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
2494
2499
|
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
2495
2500
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
@@ -3649,9 +3654,9 @@ export const logswapRouterAbi = [
|
|
|
3649
3654
|
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
3650
3655
|
];
|
|
3651
3656
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3652
|
-
//
|
|
3657
|
+
// PadPolicy
|
|
3653
3658
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3654
|
-
export const
|
|
3659
|
+
export const padPolicyAbi = [
|
|
3655
3660
|
{
|
|
3656
3661
|
type: 'constructor',
|
|
3657
3662
|
inputs: [
|
|
@@ -3727,12 +3732,16 @@ export const padHookAbi = [
|
|
|
3727
3732
|
inputs: [
|
|
3728
3733
|
{
|
|
3729
3734
|
name: 'a',
|
|
3730
|
-
internalType: 'struct
|
|
3735
|
+
internalType: 'struct IFPolicy.Ask',
|
|
3731
3736
|
type: 'tuple',
|
|
3732
3737
|
components: [
|
|
3733
3738
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3734
3739
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
3735
|
-
{
|
|
3740
|
+
{
|
|
3741
|
+
name: 'action',
|
|
3742
|
+
internalType: 'enum IFPolicy.Action',
|
|
3743
|
+
type: 'uint8',
|
|
3744
|
+
},
|
|
3736
3745
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3737
3746
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3738
3747
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3751,12 +3760,16 @@ export const padHookAbi = [
|
|
|
3751
3760
|
inputs: [
|
|
3752
3761
|
{
|
|
3753
3762
|
name: 'a',
|
|
3754
|
-
internalType: 'struct
|
|
3763
|
+
internalType: 'struct IFPolicy.Ask',
|
|
3755
3764
|
type: 'tuple',
|
|
3756
3765
|
components: [
|
|
3757
3766
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3758
3767
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
3759
|
-
{
|
|
3768
|
+
{
|
|
3769
|
+
name: 'action',
|
|
3770
|
+
internalType: 'enum IFPolicy.Action',
|
|
3771
|
+
type: 'uint8',
|
|
3772
|
+
},
|
|
3760
3773
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3761
3774
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3762
3775
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3787,7 +3800,7 @@ export const padHookAbi = [
|
|
|
3787
3800
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3788
3801
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3789
3802
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
3790
|
-
{ name: '
|
|
3803
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3791
3804
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3792
3805
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
3793
3806
|
],
|
|
@@ -3802,12 +3815,16 @@ export const padHookAbi = [
|
|
|
3802
3815
|
inputs: [
|
|
3803
3816
|
{
|
|
3804
3817
|
name: 'a',
|
|
3805
|
-
internalType: 'struct
|
|
3818
|
+
internalType: 'struct IFPolicy.Ask',
|
|
3806
3819
|
type: 'tuple',
|
|
3807
3820
|
components: [
|
|
3808
3821
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3809
3822
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
3810
|
-
{
|
|
3823
|
+
{
|
|
3824
|
+
name: 'action',
|
|
3825
|
+
internalType: 'enum IFPolicy.Action',
|
|
3826
|
+
type: 'uint8',
|
|
3827
|
+
},
|
|
3811
3828
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3812
3829
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3813
3830
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3821,7 +3838,7 @@ export const padHookAbi = [
|
|
|
3821
3838
|
outputs: [
|
|
3822
3839
|
{
|
|
3823
3840
|
name: 't',
|
|
3824
|
-
internalType: 'struct
|
|
3841
|
+
internalType: 'struct IFPolicy.Terms',
|
|
3825
3842
|
type: 'tuple',
|
|
3826
3843
|
components: [
|
|
3827
3844
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
@@ -4018,9 +4035,9 @@ export const padHookAbi = [
|
|
|
4018
4035
|
{ type: 'error', inputs: [], name: 'Refused' },
|
|
4019
4036
|
];
|
|
4020
4037
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4021
|
-
//
|
|
4038
|
+
// PolPolicy
|
|
4022
4039
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4023
|
-
export const
|
|
4040
|
+
export const polPolicyAbi = [
|
|
4024
4041
|
{
|
|
4025
4042
|
type: 'constructor',
|
|
4026
4043
|
inputs: [
|
|
@@ -4088,12 +4105,16 @@ export const polHookAbi = [
|
|
|
4088
4105
|
inputs: [
|
|
4089
4106
|
{
|
|
4090
4107
|
name: 'a',
|
|
4091
|
-
internalType: 'struct
|
|
4108
|
+
internalType: 'struct IFPolicy.Ask',
|
|
4092
4109
|
type: 'tuple',
|
|
4093
4110
|
components: [
|
|
4094
4111
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4095
4112
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4096
|
-
{
|
|
4113
|
+
{
|
|
4114
|
+
name: 'action',
|
|
4115
|
+
internalType: 'enum IFPolicy.Action',
|
|
4116
|
+
type: 'uint8',
|
|
4117
|
+
},
|
|
4097
4118
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4098
4119
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4099
4120
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4119,12 +4140,16 @@ export const polHookAbi = [
|
|
|
4119
4140
|
inputs: [
|
|
4120
4141
|
{
|
|
4121
4142
|
name: 'a',
|
|
4122
|
-
internalType: 'struct
|
|
4143
|
+
internalType: 'struct IFPolicy.Ask',
|
|
4123
4144
|
type: 'tuple',
|
|
4124
4145
|
components: [
|
|
4125
4146
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4126
4147
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4127
|
-
{
|
|
4148
|
+
{
|
|
4149
|
+
name: 'action',
|
|
4150
|
+
internalType: 'enum IFPolicy.Action',
|
|
4151
|
+
type: 'uint8',
|
|
4152
|
+
},
|
|
4128
4153
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4129
4154
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4130
4155
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4155,7 +4180,7 @@ export const polHookAbi = [
|
|
|
4155
4180
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4156
4181
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
4157
4182
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4158
|
-
{ name: '
|
|
4183
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4159
4184
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4160
4185
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4161
4186
|
],
|
|
@@ -4170,12 +4195,16 @@ export const polHookAbi = [
|
|
|
4170
4195
|
inputs: [
|
|
4171
4196
|
{
|
|
4172
4197
|
name: 'a',
|
|
4173
|
-
internalType: 'struct
|
|
4198
|
+
internalType: 'struct IFPolicy.Ask',
|
|
4174
4199
|
type: 'tuple',
|
|
4175
4200
|
components: [
|
|
4176
4201
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4177
4202
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4178
|
-
{
|
|
4203
|
+
{
|
|
4204
|
+
name: 'action',
|
|
4205
|
+
internalType: 'enum IFPolicy.Action',
|
|
4206
|
+
type: 'uint8',
|
|
4207
|
+
},
|
|
4179
4208
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4180
4209
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4181
4210
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4189,7 +4218,7 @@ export const polHookAbi = [
|
|
|
4189
4218
|
outputs: [
|
|
4190
4219
|
{
|
|
4191
4220
|
name: 't',
|
|
4192
|
-
internalType: 'struct
|
|
4221
|
+
internalType: 'struct IFPolicy.Terms',
|
|
4193
4222
|
type: 'tuple',
|
|
4194
4223
|
components: [
|
|
4195
4224
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
@@ -4231,7 +4260,7 @@ export const polHookAbi = [
|
|
|
4231
4260
|
{ name: '_keepQuote', internalType: 'uint256', type: 'uint256' },
|
|
4232
4261
|
{ name: '_minQuoteAtSeed', internalType: 'uint256', type: 'uint256' },
|
|
4233
4262
|
],
|
|
4234
|
-
name: '
|
|
4263
|
+
name: 'setRules',
|
|
4235
4264
|
outputs: [],
|
|
4236
4265
|
stateMutability: 'nonpayable',
|
|
4237
4266
|
},
|
|
@@ -4305,7 +4334,7 @@ export const polHookAbi = [
|
|
|
4305
4334
|
indexed: false,
|
|
4306
4335
|
},
|
|
4307
4336
|
],
|
|
4308
|
-
name: '
|
|
4337
|
+
name: 'RulesSet',
|
|
4309
4338
|
},
|
|
4310
4339
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4311
4340
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
@@ -4315,9 +4344,9 @@ export const polHookAbi = [
|
|
|
4315
4344
|
{ type: 'error', inputs: [], name: 'Refused' },
|
|
4316
4345
|
];
|
|
4317
4346
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4318
|
-
//
|
|
4347
|
+
// PrivatePolicy
|
|
4319
4348
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4320
|
-
export const
|
|
4349
|
+
export const privatePolicyAbi = [
|
|
4321
4350
|
{
|
|
4322
4351
|
type: 'constructor',
|
|
4323
4352
|
inputs: [
|
|
@@ -4419,12 +4448,16 @@ export const privateHookAbi = [
|
|
|
4419
4448
|
inputs: [
|
|
4420
4449
|
{
|
|
4421
4450
|
name: 'a',
|
|
4422
|
-
internalType: 'struct
|
|
4451
|
+
internalType: 'struct IFPolicy.Ask',
|
|
4423
4452
|
type: 'tuple',
|
|
4424
4453
|
components: [
|
|
4425
4454
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4426
4455
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4427
|
-
{
|
|
4456
|
+
{
|
|
4457
|
+
name: 'action',
|
|
4458
|
+
internalType: 'enum IFPolicy.Action',
|
|
4459
|
+
type: 'uint8',
|
|
4460
|
+
},
|
|
4428
4461
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4429
4462
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4430
4463
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4443,12 +4476,16 @@ export const privateHookAbi = [
|
|
|
4443
4476
|
inputs: [
|
|
4444
4477
|
{
|
|
4445
4478
|
name: 'a',
|
|
4446
|
-
internalType: 'struct
|
|
4479
|
+
internalType: 'struct IFPolicy.Ask',
|
|
4447
4480
|
type: 'tuple',
|
|
4448
4481
|
components: [
|
|
4449
4482
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4450
4483
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4451
|
-
{
|
|
4484
|
+
{
|
|
4485
|
+
name: 'action',
|
|
4486
|
+
internalType: 'enum IFPolicy.Action',
|
|
4487
|
+
type: 'uint8',
|
|
4488
|
+
},
|
|
4452
4489
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4453
4490
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4454
4491
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4479,7 +4516,7 @@ export const privateHookAbi = [
|
|
|
4479
4516
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4480
4517
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
4481
4518
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4482
|
-
{ name: '
|
|
4519
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4483
4520
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4484
4521
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4485
4522
|
],
|
|
@@ -4494,12 +4531,16 @@ export const privateHookAbi = [
|
|
|
4494
4531
|
inputs: [
|
|
4495
4532
|
{
|
|
4496
4533
|
name: 'a',
|
|
4497
|
-
internalType: 'struct
|
|
4534
|
+
internalType: 'struct IFPolicy.Ask',
|
|
4498
4535
|
type: 'tuple',
|
|
4499
4536
|
components: [
|
|
4500
4537
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4501
4538
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4502
|
-
{
|
|
4539
|
+
{
|
|
4540
|
+
name: 'action',
|
|
4541
|
+
internalType: 'enum IFPolicy.Action',
|
|
4542
|
+
type: 'uint8',
|
|
4543
|
+
},
|
|
4503
4544
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4504
4545
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4505
4546
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4513,7 +4554,7 @@ export const privateHookAbi = [
|
|
|
4513
4554
|
outputs: [
|
|
4514
4555
|
{
|
|
4515
4556
|
name: 't',
|
|
4516
|
-
internalType: 'struct
|
|
4557
|
+
internalType: 'struct IFPolicy.Terms',
|
|
4517
4558
|
type: 'tuple',
|
|
4518
4559
|
components: [
|
|
4519
4560
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
@@ -4729,9 +4770,9 @@ export const privateHookAbi = [
|
|
|
4729
4770
|
{ type: 'error', inputs: [], name: 'Refused' },
|
|
4730
4771
|
];
|
|
4731
4772
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4732
|
-
//
|
|
4773
|
+
// PublicPolicy
|
|
4733
4774
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4734
|
-
export const
|
|
4775
|
+
export const publicPolicyAbi = [
|
|
4735
4776
|
{
|
|
4736
4777
|
type: 'constructor',
|
|
4737
4778
|
inputs: [
|
|
@@ -4806,12 +4847,16 @@ export const publicHookAbi = [
|
|
|
4806
4847
|
inputs: [
|
|
4807
4848
|
{
|
|
4808
4849
|
name: 'a',
|
|
4809
|
-
internalType: 'struct
|
|
4850
|
+
internalType: 'struct IFPolicy.Ask',
|
|
4810
4851
|
type: 'tuple',
|
|
4811
4852
|
components: [
|
|
4812
4853
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4813
4854
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4814
|
-
{
|
|
4855
|
+
{
|
|
4856
|
+
name: 'action',
|
|
4857
|
+
internalType: 'enum IFPolicy.Action',
|
|
4858
|
+
type: 'uint8',
|
|
4859
|
+
},
|
|
4815
4860
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4816
4861
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4817
4862
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4830,12 +4875,16 @@ export const publicHookAbi = [
|
|
|
4830
4875
|
inputs: [
|
|
4831
4876
|
{
|
|
4832
4877
|
name: 'a',
|
|
4833
|
-
internalType: 'struct
|
|
4878
|
+
internalType: 'struct IFPolicy.Ask',
|
|
4834
4879
|
type: 'tuple',
|
|
4835
4880
|
components: [
|
|
4836
4881
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4837
4882
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4838
|
-
{
|
|
4883
|
+
{
|
|
4884
|
+
name: 'action',
|
|
4885
|
+
internalType: 'enum IFPolicy.Action',
|
|
4886
|
+
type: 'uint8',
|
|
4887
|
+
},
|
|
4839
4888
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4840
4889
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4841
4890
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4866,7 +4915,7 @@ export const publicHookAbi = [
|
|
|
4866
4915
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4867
4916
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
4868
4917
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4869
|
-
{ name: '
|
|
4918
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4870
4919
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4871
4920
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4872
4921
|
],
|
|
@@ -4881,12 +4930,16 @@ export const publicHookAbi = [
|
|
|
4881
4930
|
inputs: [
|
|
4882
4931
|
{
|
|
4883
4932
|
name: 'a',
|
|
4884
|
-
internalType: 'struct
|
|
4933
|
+
internalType: 'struct IFPolicy.Ask',
|
|
4885
4934
|
type: 'tuple',
|
|
4886
4935
|
components: [
|
|
4887
4936
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4888
4937
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4889
|
-
{
|
|
4938
|
+
{
|
|
4939
|
+
name: 'action',
|
|
4940
|
+
internalType: 'enum IFPolicy.Action',
|
|
4941
|
+
type: 'uint8',
|
|
4942
|
+
},
|
|
4890
4943
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4891
4944
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4892
4945
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4900,7 +4953,7 @@ export const publicHookAbi = [
|
|
|
4900
4953
|
outputs: [
|
|
4901
4954
|
{
|
|
4902
4955
|
name: 't',
|
|
4903
|
-
internalType: 'struct
|
|
4956
|
+
internalType: 'struct IFPolicy.Terms',
|
|
4904
4957
|
type: 'tuple',
|
|
4905
4958
|
components: [
|
|
4906
4959
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
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,
|
|
22
|
+
export { cPoolManagerAbi, fPoolManagerAbi, logswapLensAbi, logswapRouterAbi, padPolicyAbi, polPolicyAbi, 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,
|
|
22
|
+
export { cPoolManagerAbi, fPoolManagerAbi, logswapLensAbi, logswapRouterAbi, padPolicyAbi, polPolicyAbi, 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.49",
|
|
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",
|