@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/src/generated.ts
CHANGED
|
@@ -1263,7 +1263,7 @@ export const fPoolManagerAbi = [
|
|
|
1263
1263
|
components: [
|
|
1264
1264
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
1265
1265
|
{ name: 'phi', internalType: 'uint96', type: 'uint96' },
|
|
1266
|
-
{ name: '
|
|
1266
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1267
1267
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1268
1268
|
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
1269
1269
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
@@ -1299,16 +1299,6 @@ export const fPoolManagerAbi = [
|
|
|
1299
1299
|
outputs: [{ name: 'cap', internalType: 'uint256', type: 'uint256' }],
|
|
1300
1300
|
stateMutability: 'view',
|
|
1301
1301
|
},
|
|
1302
|
-
{
|
|
1303
|
-
type: 'function',
|
|
1304
|
-
inputs: [
|
|
1305
|
-
{ name: '', internalType: 'enum Kind', type: 'uint8' },
|
|
1306
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
1307
|
-
],
|
|
1308
|
-
name: 'hookApproved',
|
|
1309
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1310
|
-
stateMutability: 'view',
|
|
1311
|
-
},
|
|
1312
1302
|
{
|
|
1313
1303
|
type: 'function',
|
|
1314
1304
|
inputs: [
|
|
@@ -1322,7 +1312,7 @@ export const fPoolManagerAbi = [
|
|
|
1322
1312
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1323
1313
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
1324
1314
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1325
|
-
{ name: '
|
|
1315
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1326
1316
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
1327
1317
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
1328
1318
|
],
|
|
@@ -1345,7 +1335,7 @@ export const fPoolManagerAbi = [
|
|
|
1345
1335
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1346
1336
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
1347
1337
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1348
|
-
{ name: '
|
|
1338
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1349
1339
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
1350
1340
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
1351
1341
|
],
|
|
@@ -1445,6 +1435,16 @@ export const fPoolManagerAbi = [
|
|
|
1445
1435
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1446
1436
|
stateMutability: 'view',
|
|
1447
1437
|
},
|
|
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
1448
|
{
|
|
1449
1449
|
type: 'function',
|
|
1450
1450
|
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -1537,17 +1537,6 @@ export const fPoolManagerAbi = [
|
|
|
1537
1537
|
outputs: [],
|
|
1538
1538
|
stateMutability: 'nonpayable',
|
|
1539
1539
|
},
|
|
1540
|
-
{
|
|
1541
|
-
type: 'function',
|
|
1542
|
-
inputs: [
|
|
1543
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1544
|
-
{ name: 'hook', internalType: 'address', type: 'address' },
|
|
1545
|
-
{ name: 'approved', internalType: 'bool', type: 'bool' },
|
|
1546
|
-
],
|
|
1547
|
-
name: 'setHookApproved',
|
|
1548
|
-
outputs: [],
|
|
1549
|
-
stateMutability: 'nonpayable',
|
|
1550
|
-
},
|
|
1551
1540
|
{
|
|
1552
1541
|
type: 'function',
|
|
1553
1542
|
inputs: [
|
|
@@ -1579,6 +1568,17 @@ export const fPoolManagerAbi = [
|
|
|
1579
1568
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1580
1569
|
stateMutability: 'payable',
|
|
1581
1570
|
},
|
|
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
1582
|
{
|
|
1583
1583
|
type: 'function',
|
|
1584
1584
|
inputs: [
|
|
@@ -1900,16 +1900,6 @@ export const fPoolManagerAbi = [
|
|
|
1900
1900
|
],
|
|
1901
1901
|
name: 'Harvest',
|
|
1902
1902
|
},
|
|
1903
|
-
{
|
|
1904
|
-
type: 'event',
|
|
1905
|
-
anonymous: false,
|
|
1906
|
-
inputs: [
|
|
1907
|
-
{ name: 'kind', internalType: 'enum Kind', type: 'uint8', indexed: true },
|
|
1908
|
-
{ name: 'hook', internalType: 'address', type: 'address', indexed: true },
|
|
1909
|
-
{ name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
|
|
1910
|
-
],
|
|
1911
|
-
name: 'HookApproved',
|
|
1912
|
-
},
|
|
1913
1903
|
{
|
|
1914
1904
|
type: 'event',
|
|
1915
1905
|
anonymous: false,
|
|
@@ -1952,7 +1942,7 @@ export const fPoolManagerAbi = [
|
|
|
1952
1942
|
indexed: false,
|
|
1953
1943
|
},
|
|
1954
1944
|
{
|
|
1955
|
-
name: '
|
|
1945
|
+
name: 'policy',
|
|
1956
1946
|
internalType: 'address',
|
|
1957
1947
|
type: 'address',
|
|
1958
1948
|
indexed: false,
|
|
@@ -2052,6 +2042,21 @@ export const fPoolManagerAbi = [
|
|
|
2052
2042
|
],
|
|
2053
2043
|
name: 'OperatorSet',
|
|
2054
2044
|
},
|
|
2045
|
+
{
|
|
2046
|
+
type: 'event',
|
|
2047
|
+
anonymous: false,
|
|
2048
|
+
inputs: [
|
|
2049
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8', indexed: true },
|
|
2050
|
+
{
|
|
2051
|
+
name: 'policy',
|
|
2052
|
+
internalType: 'address',
|
|
2053
|
+
type: 'address',
|
|
2054
|
+
indexed: true,
|
|
2055
|
+
},
|
|
2056
|
+
{ name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
|
|
2057
|
+
],
|
|
2058
|
+
name: 'PolicyApproved',
|
|
2059
|
+
},
|
|
2055
2060
|
{
|
|
2056
2061
|
type: 'event',
|
|
2057
2062
|
anonymous: false,
|
|
@@ -2292,7 +2297,6 @@ export const fPoolManagerAbi = [
|
|
|
2292
2297
|
{ type: 'error', inputs: [], name: 'BalanceOverflow' },
|
|
2293
2298
|
{ type: 'error', inputs: [], name: 'BidNotEmpty' },
|
|
2294
2299
|
{ type: 'error', inputs: [], name: 'HarvestLimit' },
|
|
2295
|
-
{ type: 'error', inputs: [], name: 'HookNotApproved' },
|
|
2296
2300
|
{ type: 'error', inputs: [], name: 'InsufficientBalance' },
|
|
2297
2301
|
{ type: 'error', inputs: [], name: 'InsufficientPermission' },
|
|
2298
2302
|
{ type: 'error', inputs: [], name: 'InsufficientQuote' },
|
|
@@ -2309,6 +2313,7 @@ export const fPoolManagerAbi = [
|
|
|
2309
2313
|
{ type: 'error', inputs: [], name: 'NotPrivate' },
|
|
2310
2314
|
{ type: 'error', inputs: [], name: 'NotRetired' },
|
|
2311
2315
|
{ type: 'error', inputs: [], name: 'NotSeeded' },
|
|
2316
|
+
{ type: 'error', inputs: [], name: 'PolicyNotApproved' },
|
|
2312
2317
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
2313
2318
|
{ type: 'error', inputs: [], name: 'PoolLocked' },
|
|
2314
2319
|
{ type: 'error', inputs: [], name: 'PoolNotInitialized' },
|
|
@@ -2494,7 +2499,7 @@ export const logswapLensAbi = [
|
|
|
2494
2499
|
components: [
|
|
2495
2500
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2496
2501
|
{ name: 'phi', internalType: 'uint96', type: 'uint96' },
|
|
2497
|
-
{ name: '
|
|
2502
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2498
2503
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
2499
2504
|
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
2500
2505
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
@@ -3657,10 +3662,10 @@ export const logswapRouterAbi = [
|
|
|
3657
3662
|
] as const
|
|
3658
3663
|
|
|
3659
3664
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3660
|
-
//
|
|
3665
|
+
// PadPolicy
|
|
3661
3666
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3662
3667
|
|
|
3663
|
-
export const
|
|
3668
|
+
export const padPolicyAbi = [
|
|
3664
3669
|
{
|
|
3665
3670
|
type: 'constructor',
|
|
3666
3671
|
inputs: [
|
|
@@ -3736,12 +3741,16 @@ export const padHookAbi = [
|
|
|
3736
3741
|
inputs: [
|
|
3737
3742
|
{
|
|
3738
3743
|
name: 'a',
|
|
3739
|
-
internalType: 'struct
|
|
3744
|
+
internalType: 'struct IFPolicy.Ask',
|
|
3740
3745
|
type: 'tuple',
|
|
3741
3746
|
components: [
|
|
3742
3747
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3743
3748
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
3744
|
-
{
|
|
3749
|
+
{
|
|
3750
|
+
name: 'action',
|
|
3751
|
+
internalType: 'enum IFPolicy.Action',
|
|
3752
|
+
type: 'uint8',
|
|
3753
|
+
},
|
|
3745
3754
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3746
3755
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3747
3756
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3760,12 +3769,16 @@ export const padHookAbi = [
|
|
|
3760
3769
|
inputs: [
|
|
3761
3770
|
{
|
|
3762
3771
|
name: 'a',
|
|
3763
|
-
internalType: 'struct
|
|
3772
|
+
internalType: 'struct IFPolicy.Ask',
|
|
3764
3773
|
type: 'tuple',
|
|
3765
3774
|
components: [
|
|
3766
3775
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3767
3776
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
3768
|
-
{
|
|
3777
|
+
{
|
|
3778
|
+
name: 'action',
|
|
3779
|
+
internalType: 'enum IFPolicy.Action',
|
|
3780
|
+
type: 'uint8',
|
|
3781
|
+
},
|
|
3769
3782
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3770
3783
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3771
3784
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3796,7 +3809,7 @@ export const padHookAbi = [
|
|
|
3796
3809
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3797
3810
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3798
3811
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
3799
|
-
{ name: '
|
|
3812
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3800
3813
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3801
3814
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
3802
3815
|
],
|
|
@@ -3811,12 +3824,16 @@ export const padHookAbi = [
|
|
|
3811
3824
|
inputs: [
|
|
3812
3825
|
{
|
|
3813
3826
|
name: 'a',
|
|
3814
|
-
internalType: 'struct
|
|
3827
|
+
internalType: 'struct IFPolicy.Ask',
|
|
3815
3828
|
type: 'tuple',
|
|
3816
3829
|
components: [
|
|
3817
3830
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3818
3831
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
3819
|
-
{
|
|
3832
|
+
{
|
|
3833
|
+
name: 'action',
|
|
3834
|
+
internalType: 'enum IFPolicy.Action',
|
|
3835
|
+
type: 'uint8',
|
|
3836
|
+
},
|
|
3820
3837
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3821
3838
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3822
3839
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3830,7 +3847,7 @@ export const padHookAbi = [
|
|
|
3830
3847
|
outputs: [
|
|
3831
3848
|
{
|
|
3832
3849
|
name: 't',
|
|
3833
|
-
internalType: 'struct
|
|
3850
|
+
internalType: 'struct IFPolicy.Terms',
|
|
3834
3851
|
type: 'tuple',
|
|
3835
3852
|
components: [
|
|
3836
3853
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
@@ -4028,10 +4045,10 @@ export const padHookAbi = [
|
|
|
4028
4045
|
] as const
|
|
4029
4046
|
|
|
4030
4047
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4031
|
-
//
|
|
4048
|
+
// PolPolicy
|
|
4032
4049
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4033
4050
|
|
|
4034
|
-
export const
|
|
4051
|
+
export const polPolicyAbi = [
|
|
4035
4052
|
{
|
|
4036
4053
|
type: 'constructor',
|
|
4037
4054
|
inputs: [
|
|
@@ -4099,12 +4116,16 @@ export const polHookAbi = [
|
|
|
4099
4116
|
inputs: [
|
|
4100
4117
|
{
|
|
4101
4118
|
name: 'a',
|
|
4102
|
-
internalType: 'struct
|
|
4119
|
+
internalType: 'struct IFPolicy.Ask',
|
|
4103
4120
|
type: 'tuple',
|
|
4104
4121
|
components: [
|
|
4105
4122
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4106
4123
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4107
|
-
{
|
|
4124
|
+
{
|
|
4125
|
+
name: 'action',
|
|
4126
|
+
internalType: 'enum IFPolicy.Action',
|
|
4127
|
+
type: 'uint8',
|
|
4128
|
+
},
|
|
4108
4129
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4109
4130
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4110
4131
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4130,12 +4151,16 @@ export const polHookAbi = [
|
|
|
4130
4151
|
inputs: [
|
|
4131
4152
|
{
|
|
4132
4153
|
name: 'a',
|
|
4133
|
-
internalType: 'struct
|
|
4154
|
+
internalType: 'struct IFPolicy.Ask',
|
|
4134
4155
|
type: 'tuple',
|
|
4135
4156
|
components: [
|
|
4136
4157
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4137
4158
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4138
|
-
{
|
|
4159
|
+
{
|
|
4160
|
+
name: 'action',
|
|
4161
|
+
internalType: 'enum IFPolicy.Action',
|
|
4162
|
+
type: 'uint8',
|
|
4163
|
+
},
|
|
4139
4164
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4140
4165
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4141
4166
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4166,7 +4191,7 @@ export const polHookAbi = [
|
|
|
4166
4191
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4167
4192
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
4168
4193
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4169
|
-
{ name: '
|
|
4194
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4170
4195
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4171
4196
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4172
4197
|
],
|
|
@@ -4181,12 +4206,16 @@ export const polHookAbi = [
|
|
|
4181
4206
|
inputs: [
|
|
4182
4207
|
{
|
|
4183
4208
|
name: 'a',
|
|
4184
|
-
internalType: 'struct
|
|
4209
|
+
internalType: 'struct IFPolicy.Ask',
|
|
4185
4210
|
type: 'tuple',
|
|
4186
4211
|
components: [
|
|
4187
4212
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4188
4213
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4189
|
-
{
|
|
4214
|
+
{
|
|
4215
|
+
name: 'action',
|
|
4216
|
+
internalType: 'enum IFPolicy.Action',
|
|
4217
|
+
type: 'uint8',
|
|
4218
|
+
},
|
|
4190
4219
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4191
4220
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4192
4221
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4200,7 +4229,7 @@ export const polHookAbi = [
|
|
|
4200
4229
|
outputs: [
|
|
4201
4230
|
{
|
|
4202
4231
|
name: 't',
|
|
4203
|
-
internalType: 'struct
|
|
4232
|
+
internalType: 'struct IFPolicy.Terms',
|
|
4204
4233
|
type: 'tuple',
|
|
4205
4234
|
components: [
|
|
4206
4235
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
@@ -4242,7 +4271,7 @@ export const polHookAbi = [
|
|
|
4242
4271
|
{ name: '_keepQuote', internalType: 'uint256', type: 'uint256' },
|
|
4243
4272
|
{ name: '_minQuoteAtSeed', internalType: 'uint256', type: 'uint256' },
|
|
4244
4273
|
],
|
|
4245
|
-
name: '
|
|
4274
|
+
name: 'setRules',
|
|
4246
4275
|
outputs: [],
|
|
4247
4276
|
stateMutability: 'nonpayable',
|
|
4248
4277
|
},
|
|
@@ -4316,7 +4345,7 @@ export const polHookAbi = [
|
|
|
4316
4345
|
indexed: false,
|
|
4317
4346
|
},
|
|
4318
4347
|
],
|
|
4319
|
-
name: '
|
|
4348
|
+
name: 'RulesSet',
|
|
4320
4349
|
},
|
|
4321
4350
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4322
4351
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
@@ -4327,10 +4356,10 @@ export const polHookAbi = [
|
|
|
4327
4356
|
] as const
|
|
4328
4357
|
|
|
4329
4358
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4330
|
-
//
|
|
4359
|
+
// PrivatePolicy
|
|
4331
4360
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4332
4361
|
|
|
4333
|
-
export const
|
|
4362
|
+
export const privatePolicyAbi = [
|
|
4334
4363
|
{
|
|
4335
4364
|
type: 'constructor',
|
|
4336
4365
|
inputs: [
|
|
@@ -4432,12 +4461,16 @@ export const privateHookAbi = [
|
|
|
4432
4461
|
inputs: [
|
|
4433
4462
|
{
|
|
4434
4463
|
name: 'a',
|
|
4435
|
-
internalType: 'struct
|
|
4464
|
+
internalType: 'struct IFPolicy.Ask',
|
|
4436
4465
|
type: 'tuple',
|
|
4437
4466
|
components: [
|
|
4438
4467
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4439
4468
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4440
|
-
{
|
|
4469
|
+
{
|
|
4470
|
+
name: 'action',
|
|
4471
|
+
internalType: 'enum IFPolicy.Action',
|
|
4472
|
+
type: 'uint8',
|
|
4473
|
+
},
|
|
4441
4474
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4442
4475
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4443
4476
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4456,12 +4489,16 @@ export const privateHookAbi = [
|
|
|
4456
4489
|
inputs: [
|
|
4457
4490
|
{
|
|
4458
4491
|
name: 'a',
|
|
4459
|
-
internalType: 'struct
|
|
4492
|
+
internalType: 'struct IFPolicy.Ask',
|
|
4460
4493
|
type: 'tuple',
|
|
4461
4494
|
components: [
|
|
4462
4495
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4463
4496
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4464
|
-
{
|
|
4497
|
+
{
|
|
4498
|
+
name: 'action',
|
|
4499
|
+
internalType: 'enum IFPolicy.Action',
|
|
4500
|
+
type: 'uint8',
|
|
4501
|
+
},
|
|
4465
4502
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4466
4503
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4467
4504
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4492,7 +4529,7 @@ export const privateHookAbi = [
|
|
|
4492
4529
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4493
4530
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
4494
4531
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4495
|
-
{ name: '
|
|
4532
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4496
4533
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4497
4534
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4498
4535
|
],
|
|
@@ -4507,12 +4544,16 @@ export const privateHookAbi = [
|
|
|
4507
4544
|
inputs: [
|
|
4508
4545
|
{
|
|
4509
4546
|
name: 'a',
|
|
4510
|
-
internalType: 'struct
|
|
4547
|
+
internalType: 'struct IFPolicy.Ask',
|
|
4511
4548
|
type: 'tuple',
|
|
4512
4549
|
components: [
|
|
4513
4550
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4514
4551
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4515
|
-
{
|
|
4552
|
+
{
|
|
4553
|
+
name: 'action',
|
|
4554
|
+
internalType: 'enum IFPolicy.Action',
|
|
4555
|
+
type: 'uint8',
|
|
4556
|
+
},
|
|
4516
4557
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4517
4558
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4518
4559
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4526,7 +4567,7 @@ export const privateHookAbi = [
|
|
|
4526
4567
|
outputs: [
|
|
4527
4568
|
{
|
|
4528
4569
|
name: 't',
|
|
4529
|
-
internalType: 'struct
|
|
4570
|
+
internalType: 'struct IFPolicy.Terms',
|
|
4530
4571
|
type: 'tuple',
|
|
4531
4572
|
components: [
|
|
4532
4573
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
@@ -4743,10 +4784,10 @@ export const privateHookAbi = [
|
|
|
4743
4784
|
] as const
|
|
4744
4785
|
|
|
4745
4786
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4746
|
-
//
|
|
4787
|
+
// PublicPolicy
|
|
4747
4788
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4748
4789
|
|
|
4749
|
-
export const
|
|
4790
|
+
export const publicPolicyAbi = [
|
|
4750
4791
|
{
|
|
4751
4792
|
type: 'constructor',
|
|
4752
4793
|
inputs: [
|
|
@@ -4821,12 +4862,16 @@ export const publicHookAbi = [
|
|
|
4821
4862
|
inputs: [
|
|
4822
4863
|
{
|
|
4823
4864
|
name: 'a',
|
|
4824
|
-
internalType: 'struct
|
|
4865
|
+
internalType: 'struct IFPolicy.Ask',
|
|
4825
4866
|
type: 'tuple',
|
|
4826
4867
|
components: [
|
|
4827
4868
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4828
4869
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4829
|
-
{
|
|
4870
|
+
{
|
|
4871
|
+
name: 'action',
|
|
4872
|
+
internalType: 'enum IFPolicy.Action',
|
|
4873
|
+
type: 'uint8',
|
|
4874
|
+
},
|
|
4830
4875
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4831
4876
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4832
4877
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4845,12 +4890,16 @@ export const publicHookAbi = [
|
|
|
4845
4890
|
inputs: [
|
|
4846
4891
|
{
|
|
4847
4892
|
name: 'a',
|
|
4848
|
-
internalType: 'struct
|
|
4893
|
+
internalType: 'struct IFPolicy.Ask',
|
|
4849
4894
|
type: 'tuple',
|
|
4850
4895
|
components: [
|
|
4851
4896
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4852
4897
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4853
|
-
{
|
|
4898
|
+
{
|
|
4899
|
+
name: 'action',
|
|
4900
|
+
internalType: 'enum IFPolicy.Action',
|
|
4901
|
+
type: 'uint8',
|
|
4902
|
+
},
|
|
4854
4903
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4855
4904
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4856
4905
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4881,7 +4930,7 @@ export const publicHookAbi = [
|
|
|
4881
4930
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4882
4931
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
4883
4932
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4884
|
-
{ name: '
|
|
4933
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4885
4934
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4886
4935
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4887
4936
|
],
|
|
@@ -4896,12 +4945,16 @@ export const publicHookAbi = [
|
|
|
4896
4945
|
inputs: [
|
|
4897
4946
|
{
|
|
4898
4947
|
name: 'a',
|
|
4899
|
-
internalType: 'struct
|
|
4948
|
+
internalType: 'struct IFPolicy.Ask',
|
|
4900
4949
|
type: 'tuple',
|
|
4901
4950
|
components: [
|
|
4902
4951
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4903
4952
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4904
|
-
{
|
|
4953
|
+
{
|
|
4954
|
+
name: 'action',
|
|
4955
|
+
internalType: 'enum IFPolicy.Action',
|
|
4956
|
+
type: 'uint8',
|
|
4957
|
+
},
|
|
4905
4958
|
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4906
4959
|
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4907
4960
|
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
@@ -4915,7 +4968,7 @@ export const publicHookAbi = [
|
|
|
4915
4968
|
outputs: [
|
|
4916
4969
|
{
|
|
4917
4970
|
name: 't',
|
|
4918
|
-
internalType: 'struct
|
|
4971
|
+
internalType: 'struct IFPolicy.Terms',
|
|
4919
4972
|
type: 'tuple',
|
|
4920
4973
|
components: [
|
|
4921
4974
|
{ name: 'payee', internalType: 'address', type: 'address' },
|
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,
|
|
22
|
+
export { cPoolManagerAbi, fPoolManagerAbi, logswapLensAbi, logswapRouterAbi, padPolicyAbi, polPolicyAbi, privatePolicyAbi, publicPolicyAbi } from "./generated.js";
|
|
23
23
|
export * from "./admin.js";
|