@logswap/sdk 0.5.44 → 0.5.46
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/README.md +3 -3
- package/dist/admin.d.ts +41 -9
- package/dist/admin.js +53 -14
- package/dist/client.d.ts +15 -2
- package/dist/client.js +16 -2
- package/dist/fpool.d.ts +682 -74
- package/dist/fpool.js +251 -113
- package/dist/generated.d.ts +2507 -872
- package/dist/generated.js +1645 -490
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/indexer.js +3 -5
- package/dist/keys.d.ts +9 -8
- package/dist/keys.js +4 -8
- package/dist/liquidity.d.ts +2 -0
- package/dist/liquidity.js +1 -0
- package/dist/pools.d.ts +7 -4
- package/dist/pools.js +8 -6
- package/package.json +1 -1
- package/src/admin.ts +68 -15
- package/src/client.ts +24 -2
- package/src/fpool.ts +365 -162
- package/src/generated.ts +1653 -490
- package/src/index.ts +1 -1
- package/src/indexer.ts +5 -7
- package/src/keys.ts +11 -14
- package/src/liquidity.ts +3 -0
- package/src/pools.ts +9 -8
package/src/generated.ts
CHANGED
|
@@ -13,7 +13,7 @@ export const cPoolManagerAbi = [
|
|
|
13
13
|
{
|
|
14
14
|
type: 'function',
|
|
15
15
|
inputs: [],
|
|
16
|
-
name: '
|
|
16
|
+
name: 'MINT_FEE_PROTOCOL_CUT',
|
|
17
17
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
18
18
|
stateMutability: 'view',
|
|
19
19
|
},
|
|
@@ -67,9 +67,7 @@ export const cPoolManagerAbi = [
|
|
|
67
67
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
68
68
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
69
69
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
70
|
-
{ name: '
|
|
71
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
72
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
70
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
73
71
|
],
|
|
74
72
|
},
|
|
75
73
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -105,9 +103,7 @@ export const cPoolManagerAbi = [
|
|
|
105
103
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
106
104
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
107
105
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
108
|
-
{ name: '
|
|
109
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
110
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
106
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
111
107
|
],
|
|
112
108
|
},
|
|
113
109
|
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
@@ -135,9 +131,7 @@ export const cPoolManagerAbi = [
|
|
|
135
131
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
136
132
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
137
133
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
138
|
-
{ name: '
|
|
139
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
140
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
134
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
141
135
|
],
|
|
142
136
|
},
|
|
143
137
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -166,9 +160,7 @@ export const cPoolManagerAbi = [
|
|
|
166
160
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
167
161
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
168
162
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
169
|
-
{ name: '
|
|
170
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
171
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
163
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
172
164
|
],
|
|
173
165
|
},
|
|
174
166
|
{ name: 'to', internalType: 'address', type: 'address' },
|
|
@@ -232,7 +224,6 @@ export const cPoolManagerAbi = [
|
|
|
232
224
|
{ name: 'reserveQuote', internalType: 'uint256', type: 'uint256' },
|
|
233
225
|
{ name: 'F', internalType: 'uint256', type: 'uint256' },
|
|
234
226
|
{ name: 'bigSigma', internalType: 'uint256', type: 'uint256' },
|
|
235
|
-
{ name: 'sigma2Ema', internalType: 'uint256', type: 'uint256' },
|
|
236
227
|
{ name: 'currentK', internalType: 'int256', type: 'int256' },
|
|
237
228
|
{ name: 'protocolOwed', internalType: 'uint256', type: 'uint256' },
|
|
238
229
|
{ name: 'minBackstopL', internalType: 'uint256', type: 'uint256' },
|
|
@@ -263,9 +254,7 @@ export const cPoolManagerAbi = [
|
|
|
263
254
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
264
255
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
265
256
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
266
|
-
{ name: '
|
|
267
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
268
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
257
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
269
258
|
],
|
|
270
259
|
},
|
|
271
260
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -285,9 +274,7 @@ export const cPoolManagerAbi = [
|
|
|
285
274
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
286
275
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
287
276
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
288
|
-
{ name: '
|
|
289
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
290
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
277
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
291
278
|
],
|
|
292
279
|
},
|
|
293
280
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -308,9 +295,7 @@ export const cPoolManagerAbi = [
|
|
|
308
295
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
309
296
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
310
297
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
311
|
-
{ name: '
|
|
312
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
313
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
298
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
314
299
|
],
|
|
315
300
|
},
|
|
316
301
|
{ name: 'x0', internalType: 'int256', type: 'int256' },
|
|
@@ -347,9 +332,7 @@ export const cPoolManagerAbi = [
|
|
|
347
332
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
348
333
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
349
334
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
350
|
-
{ name: '
|
|
351
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
352
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
335
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
353
336
|
],
|
|
354
337
|
},
|
|
355
338
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -404,13 +387,11 @@ export const cPoolManagerAbi = [
|
|
|
404
387
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
405
388
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
406
389
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
407
|
-
{ name: '
|
|
408
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
409
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
390
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
410
391
|
],
|
|
411
392
|
},
|
|
412
393
|
],
|
|
413
|
-
name: '
|
|
394
|
+
name: 'phiOf',
|
|
414
395
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
415
396
|
stateMutability: 'view',
|
|
416
397
|
},
|
|
@@ -444,9 +425,7 @@ export const cPoolManagerAbi = [
|
|
|
444
425
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
445
426
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
446
427
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
447
|
-
{ name: '
|
|
448
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
449
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
428
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
450
429
|
],
|
|
451
430
|
},
|
|
452
431
|
{ name: 'exactIn', internalType: 'bool', type: 'bool' },
|
|
@@ -457,6 +436,15 @@ export const cPoolManagerAbi = [
|
|
|
457
436
|
outputs: [],
|
|
458
437
|
stateMutability: 'nonpayable',
|
|
459
438
|
},
|
|
439
|
+
{
|
|
440
|
+
type: 'function',
|
|
441
|
+
inputs: [
|
|
442
|
+
{ name: 'mintFeeProtocolCut', internalType: 'uint256', type: 'uint256' },
|
|
443
|
+
],
|
|
444
|
+
name: 'setFeeParams',
|
|
445
|
+
outputs: [],
|
|
446
|
+
stateMutability: 'nonpayable',
|
|
447
|
+
},
|
|
460
448
|
{
|
|
461
449
|
type: 'function',
|
|
462
450
|
inputs: [
|
|
@@ -467,13 +455,6 @@ export const cPoolManagerAbi = [
|
|
|
467
455
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
468
456
|
stateMutability: 'payable',
|
|
469
457
|
},
|
|
470
|
-
{
|
|
471
|
-
type: 'function',
|
|
472
|
-
inputs: [{ name: 'cut', internalType: 'uint256', type: 'uint256' }],
|
|
473
|
-
name: 'setProtocolFeeCut',
|
|
474
|
-
outputs: [],
|
|
475
|
-
stateMutability: 'nonpayable',
|
|
476
|
-
},
|
|
477
458
|
{
|
|
478
459
|
type: 'function',
|
|
479
460
|
inputs: [],
|
|
@@ -499,9 +480,7 @@ export const cPoolManagerAbi = [
|
|
|
499
480
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
500
481
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
501
482
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
502
|
-
{ name: '
|
|
503
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
504
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
483
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
505
484
|
],
|
|
506
485
|
},
|
|
507
486
|
{ name: 'baseSide', internalType: 'bool', type: 'bool' },
|
|
@@ -612,9 +591,7 @@ export const cPoolManagerAbi = [
|
|
|
612
591
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
613
592
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
614
593
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
615
|
-
{ name: '
|
|
616
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
617
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
594
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
618
595
|
],
|
|
619
596
|
},
|
|
620
597
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -771,6 +748,19 @@ export const cPoolManagerAbi = [
|
|
|
771
748
|
],
|
|
772
749
|
name: 'CollectorProposed',
|
|
773
750
|
},
|
|
751
|
+
{
|
|
752
|
+
type: 'event',
|
|
753
|
+
anonymous: false,
|
|
754
|
+
inputs: [
|
|
755
|
+
{
|
|
756
|
+
name: 'mintFeeProtocolCut',
|
|
757
|
+
internalType: 'uint256',
|
|
758
|
+
type: 'uint256',
|
|
759
|
+
indexed: false,
|
|
760
|
+
},
|
|
761
|
+
],
|
|
762
|
+
name: 'FeeParamsSet',
|
|
763
|
+
},
|
|
774
764
|
{
|
|
775
765
|
type: 'event',
|
|
776
766
|
anonymous: false,
|
|
@@ -811,24 +801,7 @@ export const cPoolManagerAbi = [
|
|
|
811
801
|
type: 'int256',
|
|
812
802
|
indexed: false,
|
|
813
803
|
},
|
|
814
|
-
{
|
|
815
|
-
name: 'phiMin',
|
|
816
|
-
internalType: 'uint256',
|
|
817
|
-
type: 'uint256',
|
|
818
|
-
indexed: false,
|
|
819
|
-
},
|
|
820
|
-
{
|
|
821
|
-
name: 'kappa',
|
|
822
|
-
internalType: 'uint256',
|
|
823
|
-
type: 'uint256',
|
|
824
|
-
indexed: false,
|
|
825
|
-
},
|
|
826
|
-
{
|
|
827
|
-
name: 'alpha',
|
|
828
|
-
internalType: 'uint256',
|
|
829
|
-
type: 'uint256',
|
|
830
|
-
indexed: false,
|
|
831
|
-
},
|
|
804
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
832
805
|
{ name: 'x0', internalType: 'int256', type: 'int256', indexed: false },
|
|
833
806
|
],
|
|
834
807
|
name: 'Initialize',
|
|
@@ -880,14 +853,6 @@ export const cPoolManagerAbi = [
|
|
|
880
853
|
],
|
|
881
854
|
name: 'OperatorSet',
|
|
882
855
|
},
|
|
883
|
-
{
|
|
884
|
-
type: 'event',
|
|
885
|
-
anonymous: false,
|
|
886
|
-
inputs: [
|
|
887
|
-
{ name: 'cut', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
888
|
-
],
|
|
889
|
-
name: 'ProtocolFeeCutSet',
|
|
890
|
-
},
|
|
891
856
|
{
|
|
892
857
|
type: 'event',
|
|
893
858
|
anonymous: false,
|
|
@@ -1079,6 +1044,20 @@ export const fPoolManagerAbi = [
|
|
|
1079
1044
|
],
|
|
1080
1045
|
stateMutability: 'nonpayable',
|
|
1081
1046
|
},
|
|
1047
|
+
{
|
|
1048
|
+
type: 'function',
|
|
1049
|
+
inputs: [],
|
|
1050
|
+
name: 'BURN_MAX',
|
|
1051
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1052
|
+
stateMutability: 'view',
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
type: 'function',
|
|
1056
|
+
inputs: [],
|
|
1057
|
+
name: 'FEE_MAX',
|
|
1058
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1059
|
+
stateMutability: 'view',
|
|
1060
|
+
},
|
|
1082
1061
|
{
|
|
1083
1062
|
type: 'function',
|
|
1084
1063
|
inputs: [],
|
|
@@ -1089,7 +1068,7 @@ export const fPoolManagerAbi = [
|
|
|
1089
1068
|
{
|
|
1090
1069
|
type: 'function',
|
|
1091
1070
|
inputs: [],
|
|
1092
|
-
name: '
|
|
1071
|
+
name: 'HARVEST_CUT_MAX',
|
|
1093
1072
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1094
1073
|
stateMutability: 'view',
|
|
1095
1074
|
},
|
|
@@ -1109,10 +1088,10 @@ export const fPoolManagerAbi = [
|
|
|
1109
1088
|
},
|
|
1110
1089
|
{
|
|
1111
1090
|
type: 'function',
|
|
1112
|
-
inputs: [
|
|
1113
|
-
name: '
|
|
1114
|
-
outputs: [],
|
|
1115
|
-
stateMutability: '
|
|
1091
|
+
inputs: [],
|
|
1092
|
+
name: 'POT_CUT_MAX',
|
|
1093
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1094
|
+
stateMutability: 'view',
|
|
1116
1095
|
},
|
|
1117
1096
|
{
|
|
1118
1097
|
type: 'function',
|
|
@@ -1121,13 +1100,6 @@ export const fPoolManagerAbi = [
|
|
|
1121
1100
|
outputs: [],
|
|
1122
1101
|
stateMutability: 'nonpayable',
|
|
1123
1102
|
},
|
|
1124
|
-
{
|
|
1125
|
-
type: 'function',
|
|
1126
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1127
|
-
name: 'acceptOperator',
|
|
1128
|
-
outputs: [],
|
|
1129
|
-
stateMutability: 'nonpayable',
|
|
1130
|
-
},
|
|
1131
1103
|
{
|
|
1132
1104
|
type: 'function',
|
|
1133
1105
|
inputs: [
|
|
@@ -1139,26 +1111,6 @@ export const fPoolManagerAbi = [
|
|
|
1139
1111
|
outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
1140
1112
|
stateMutability: 'view',
|
|
1141
1113
|
},
|
|
1142
|
-
{
|
|
1143
|
-
type: 'function',
|
|
1144
|
-
inputs: [
|
|
1145
|
-
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
1146
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
1147
|
-
],
|
|
1148
|
-
name: 'allowed',
|
|
1149
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1150
|
-
stateMutability: 'view',
|
|
1151
|
-
},
|
|
1152
|
-
{
|
|
1153
|
-
type: 'function',
|
|
1154
|
-
inputs: [
|
|
1155
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1156
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
1157
|
-
],
|
|
1158
|
-
name: 'appointOperator',
|
|
1159
|
-
outputs: [],
|
|
1160
|
-
stateMutability: 'nonpayable',
|
|
1161
|
-
},
|
|
1162
1114
|
{
|
|
1163
1115
|
type: 'function',
|
|
1164
1116
|
inputs: [
|
|
@@ -1180,6 +1132,15 @@ export const fPoolManagerAbi = [
|
|
|
1180
1132
|
outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
1181
1133
|
stateMutability: 'view',
|
|
1182
1134
|
},
|
|
1135
|
+
{
|
|
1136
|
+
type: 'function',
|
|
1137
|
+
inputs: [],
|
|
1138
|
+
name: 'boundary',
|
|
1139
|
+
outputs: [
|
|
1140
|
+
{ name: '', internalType: 'contract FPoolBoundary', type: 'address' },
|
|
1141
|
+
],
|
|
1142
|
+
stateMutability: 'view',
|
|
1143
|
+
},
|
|
1183
1144
|
{
|
|
1184
1145
|
type: 'function',
|
|
1185
1146
|
inputs: [
|
|
@@ -1265,13 +1226,6 @@ export const fPoolManagerAbi = [
|
|
|
1265
1226
|
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
1266
1227
|
stateMutability: 'view',
|
|
1267
1228
|
},
|
|
1268
|
-
{
|
|
1269
|
-
type: 'function',
|
|
1270
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1271
|
-
name: 'dissolve',
|
|
1272
|
-
outputs: [],
|
|
1273
|
-
stateMutability: 'nonpayable',
|
|
1274
|
-
},
|
|
1275
1229
|
{
|
|
1276
1230
|
type: 'function',
|
|
1277
1231
|
inputs: [
|
|
@@ -1290,13 +1244,6 @@ export const fPoolManagerAbi = [
|
|
|
1290
1244
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1291
1245
|
stateMutability: 'view',
|
|
1292
1246
|
},
|
|
1293
|
-
{
|
|
1294
|
-
type: 'function',
|
|
1295
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1296
|
-
name: 'edgePerL',
|
|
1297
|
-
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
1298
|
-
stateMutability: 'view',
|
|
1299
|
-
},
|
|
1300
1247
|
{
|
|
1301
1248
|
type: 'function',
|
|
1302
1249
|
inputs: [],
|
|
@@ -1304,13 +1251,6 @@ export const fPoolManagerAbi = [
|
|
|
1304
1251
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1305
1252
|
stateMutability: 'view',
|
|
1306
1253
|
},
|
|
1307
|
-
{
|
|
1308
|
-
type: 'function',
|
|
1309
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1310
|
-
name: 'feePerL',
|
|
1311
|
-
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
1312
|
-
stateMutability: 'view',
|
|
1313
|
-
},
|
|
1314
1254
|
{
|
|
1315
1255
|
type: 'function',
|
|
1316
1256
|
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -1323,28 +1263,18 @@ export const fPoolManagerAbi = [
|
|
|
1323
1263
|
components: [
|
|
1324
1264
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
1325
1265
|
{ name: 'phi', internalType: 'uint96', type: 'uint96' },
|
|
1326
|
-
{ name: '
|
|
1266
|
+
{ name: 'hook', internalType: 'address', type: 'address' },
|
|
1327
1267
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1328
1268
|
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
1329
1269
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
1330
1270
|
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
1331
1271
|
{ name: 'restructureBlock', internalType: 'uint32', type: 'uint32' },
|
|
1332
|
-
{ name: '
|
|
1333
|
-
{ name: 'gateSwap', internalType: 'bool', type: 'bool' },
|
|
1272
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
1334
1273
|
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
1335
1274
|
{ name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
|
|
1336
1275
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
1337
1276
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
1338
1277
|
{ name: 'theta0', internalType: 'int256', type: 'int256' },
|
|
1339
|
-
{ name: 'harvestedTheta', internalType: 'int256', type: 'int256' },
|
|
1340
|
-
{
|
|
1341
|
-
name: 'pendingAuthority',
|
|
1342
|
-
internalType: 'address',
|
|
1343
|
-
type: 'address',
|
|
1344
|
-
},
|
|
1345
|
-
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
1346
|
-
{ name: 'pendingOperator', internalType: 'address', type: 'address' },
|
|
1347
|
-
{ name: 'incomeTaken', internalType: 'uint256', type: 'uint256' },
|
|
1348
1278
|
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
1349
1279
|
],
|
|
1350
1280
|
},
|
|
@@ -1364,8 +1294,18 @@ export const fPoolManagerAbi = [
|
|
|
1364
1294
|
},
|
|
1365
1295
|
{
|
|
1366
1296
|
type: 'function',
|
|
1367
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
1368
|
-
name: '
|
|
1297
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1298
|
+
name: 'harvestable',
|
|
1299
|
+
outputs: [{ name: 'cap', internalType: 'uint256', type: 'uint256' }],
|
|
1300
|
+
stateMutability: 'view',
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
type: 'function',
|
|
1304
|
+
inputs: [
|
|
1305
|
+
{ name: '', internalType: 'enum Kind', type: 'uint8' },
|
|
1306
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
1307
|
+
],
|
|
1308
|
+
name: 'hookApproved',
|
|
1369
1309
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1370
1310
|
stateMutability: 'view',
|
|
1371
1311
|
},
|
|
@@ -1382,7 +1322,8 @@ export const fPoolManagerAbi = [
|
|
|
1382
1322
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1383
1323
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
1384
1324
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1385
|
-
{ name: '
|
|
1325
|
+
{ name: 'hook', internalType: 'address', type: 'address' },
|
|
1326
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
1386
1327
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
1387
1328
|
],
|
|
1388
1329
|
},
|
|
@@ -1404,7 +1345,8 @@ export const fPoolManagerAbi = [
|
|
|
1404
1345
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1405
1346
|
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
1406
1347
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1407
|
-
{ name: '
|
|
1348
|
+
{ name: 'hook', internalType: 'address', type: 'address' },
|
|
1349
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
1408
1350
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
1409
1351
|
],
|
|
1410
1352
|
},
|
|
@@ -1475,13 +1417,6 @@ export const fPoolManagerAbi = [
|
|
|
1475
1417
|
outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
1476
1418
|
stateMutability: 'nonpayable',
|
|
1477
1419
|
},
|
|
1478
|
-
{
|
|
1479
|
-
type: 'function',
|
|
1480
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1481
|
-
name: 'n',
|
|
1482
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1483
|
-
stateMutability: 'view',
|
|
1484
|
-
},
|
|
1485
1420
|
{
|
|
1486
1421
|
type: 'function',
|
|
1487
1422
|
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -1517,16 +1452,6 @@ export const fPoolManagerAbi = [
|
|
|
1517
1452
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1518
1453
|
stateMutability: 'view',
|
|
1519
1454
|
},
|
|
1520
|
-
{
|
|
1521
|
-
type: 'function',
|
|
1522
|
-
inputs: [
|
|
1523
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1524
|
-
{ name: 'next', internalType: 'address', type: 'address' },
|
|
1525
|
-
],
|
|
1526
|
-
name: 'proposeAuthority',
|
|
1527
|
-
outputs: [],
|
|
1528
|
-
stateMutability: 'nonpayable',
|
|
1529
|
-
},
|
|
1530
1455
|
{
|
|
1531
1456
|
type: 'function',
|
|
1532
1457
|
inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
|
|
@@ -1564,6 +1489,16 @@ export const fPoolManagerAbi = [
|
|
|
1564
1489
|
outputs: [{ name: 'quoteOut', internalType: 'uint256', type: 'uint256' }],
|
|
1565
1490
|
stateMutability: 'nonpayable',
|
|
1566
1491
|
},
|
|
1492
|
+
{
|
|
1493
|
+
type: 'function',
|
|
1494
|
+
inputs: [
|
|
1495
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1496
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1497
|
+
],
|
|
1498
|
+
name: 'regenerate',
|
|
1499
|
+
outputs: [],
|
|
1500
|
+
stateMutability: 'nonpayable',
|
|
1501
|
+
},
|
|
1567
1502
|
{
|
|
1568
1503
|
type: 'function',
|
|
1569
1504
|
inputs: [
|
|
@@ -1574,6 +1509,13 @@ export const fPoolManagerAbi = [
|
|
|
1574
1509
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1575
1510
|
stateMutability: 'view',
|
|
1576
1511
|
},
|
|
1512
|
+
{
|
|
1513
|
+
type: 'function',
|
|
1514
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1515
|
+
name: 'retire',
|
|
1516
|
+
outputs: [],
|
|
1517
|
+
stateMutability: 'nonpayable',
|
|
1518
|
+
},
|
|
1577
1519
|
{
|
|
1578
1520
|
type: 'function',
|
|
1579
1521
|
inputs: [
|
|
@@ -1586,22 +1528,10 @@ export const fPoolManagerAbi = [
|
|
|
1586
1528
|
outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
|
|
1587
1529
|
stateMutability: 'nonpayable',
|
|
1588
1530
|
},
|
|
1589
|
-
{
|
|
1590
|
-
type: 'function',
|
|
1591
|
-
inputs: [
|
|
1592
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1593
|
-
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
1594
|
-
{ name: 'yes', internalType: 'bool', type: 'bool' },
|
|
1595
|
-
],
|
|
1596
|
-
name: 'setAllowed',
|
|
1597
|
-
outputs: [],
|
|
1598
|
-
stateMutability: 'nonpayable',
|
|
1599
|
-
},
|
|
1600
1531
|
{
|
|
1601
1532
|
type: 'function',
|
|
1602
1533
|
inputs: [
|
|
1603
1534
|
{ name: 'mintFeeProtocolCut', internalType: 'uint256', type: 'uint256' },
|
|
1604
|
-
{ name: 'harvestProtocolCut', internalType: 'uint256', type: 'uint256' },
|
|
1605
1535
|
],
|
|
1606
1536
|
name: 'setFeeParams',
|
|
1607
1537
|
outputs: [],
|
|
@@ -1610,21 +1540,11 @@ export const fPoolManagerAbi = [
|
|
|
1610
1540
|
{
|
|
1611
1541
|
type: 'function',
|
|
1612
1542
|
inputs: [
|
|
1613
|
-
{ name: '
|
|
1614
|
-
{ name: '
|
|
1615
|
-
{ name: '
|
|
1616
|
-
],
|
|
1617
|
-
name: 'setGates',
|
|
1618
|
-
outputs: [],
|
|
1619
|
-
stateMutability: 'nonpayable',
|
|
1620
|
-
},
|
|
1621
|
-
{
|
|
1622
|
-
type: 'function',
|
|
1623
|
-
inputs: [
|
|
1624
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1625
|
-
{ name: 'exempt', internalType: 'bool', type: 'bool' },
|
|
1543
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
1544
|
+
{ name: 'hook', internalType: 'address', type: 'address' },
|
|
1545
|
+
{ name: 'approved', internalType: 'bool', type: 'bool' },
|
|
1626
1546
|
],
|
|
1627
|
-
name: '
|
|
1547
|
+
name: 'setHookApproved',
|
|
1628
1548
|
outputs: [],
|
|
1629
1549
|
stateMutability: 'nonpayable',
|
|
1630
1550
|
},
|
|
@@ -1802,6 +1722,13 @@ export const fPoolManagerAbi = [
|
|
|
1802
1722
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1803
1723
|
stateMutability: 'payable',
|
|
1804
1724
|
},
|
|
1725
|
+
{
|
|
1726
|
+
type: 'function',
|
|
1727
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1728
|
+
name: 'unharvested',
|
|
1729
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1730
|
+
stateMutability: 'view',
|
|
1731
|
+
},
|
|
1805
1732
|
{
|
|
1806
1733
|
type: 'function',
|
|
1807
1734
|
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
@@ -1816,21 +1743,6 @@ export const fPoolManagerAbi = [
|
|
|
1816
1743
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1817
1744
|
stateMutability: 'pure',
|
|
1818
1745
|
},
|
|
1819
|
-
{
|
|
1820
|
-
type: 'event',
|
|
1821
|
-
anonymous: false,
|
|
1822
|
-
inputs: [
|
|
1823
|
-
{
|
|
1824
|
-
name: 'poolId',
|
|
1825
|
-
internalType: 'bytes32',
|
|
1826
|
-
type: 'bytes32',
|
|
1827
|
-
indexed: true,
|
|
1828
|
-
},
|
|
1829
|
-
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
1830
|
-
{ name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
|
|
1831
|
-
],
|
|
1832
|
-
name: 'Allowed',
|
|
1833
|
-
},
|
|
1834
1746
|
{
|
|
1835
1747
|
type: 'event',
|
|
1836
1748
|
anonymous: false,
|
|
@@ -1867,86 +1779,41 @@ export const fPoolManagerAbi = [
|
|
|
1867
1779
|
type: 'bytes32',
|
|
1868
1780
|
indexed: true,
|
|
1869
1781
|
},
|
|
1782
|
+
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
|
1783
|
+
{ name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1870
1784
|
{
|
|
1871
|
-
name: '
|
|
1872
|
-
internalType: '
|
|
1873
|
-
type: '
|
|
1874
|
-
indexed:
|
|
1785
|
+
name: 'shares',
|
|
1786
|
+
internalType: 'uint256',
|
|
1787
|
+
type: 'uint256',
|
|
1788
|
+
indexed: false,
|
|
1875
1789
|
},
|
|
1876
1790
|
{
|
|
1877
|
-
name: '
|
|
1878
|
-
internalType: '
|
|
1879
|
-
type: '
|
|
1880
|
-
indexed:
|
|
1791
|
+
name: 'dQuote',
|
|
1792
|
+
internalType: 'uint256',
|
|
1793
|
+
type: 'uint256',
|
|
1794
|
+
indexed: false,
|
|
1881
1795
|
},
|
|
1882
1796
|
],
|
|
1883
|
-
name: '
|
|
1797
|
+
name: 'Burn',
|
|
1884
1798
|
},
|
|
1885
1799
|
{
|
|
1886
1800
|
type: 'event',
|
|
1887
1801
|
anonymous: false,
|
|
1888
1802
|
inputs: [
|
|
1889
1803
|
{
|
|
1890
|
-
name: '
|
|
1891
|
-
internalType: '
|
|
1892
|
-
type: '
|
|
1804
|
+
name: 'previous',
|
|
1805
|
+
internalType: 'address',
|
|
1806
|
+
type: 'address',
|
|
1807
|
+
indexed: true,
|
|
1808
|
+
},
|
|
1809
|
+
{
|
|
1810
|
+
name: 'current',
|
|
1811
|
+
internalType: 'address',
|
|
1812
|
+
type: 'address',
|
|
1893
1813
|
indexed: true,
|
|
1894
1814
|
},
|
|
1895
|
-
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
1896
|
-
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
1897
1815
|
],
|
|
1898
|
-
name: '
|
|
1899
|
-
},
|
|
1900
|
-
{
|
|
1901
|
-
type: 'event',
|
|
1902
|
-
anonymous: false,
|
|
1903
|
-
inputs: [
|
|
1904
|
-
{
|
|
1905
|
-
name: 'poolId',
|
|
1906
|
-
internalType: 'bytes32',
|
|
1907
|
-
type: 'bytes32',
|
|
1908
|
-
indexed: true,
|
|
1909
|
-
},
|
|
1910
|
-
{
|
|
1911
|
-
name: 'sender',
|
|
1912
|
-
internalType: 'address',
|
|
1913
|
-
type: 'address',
|
|
1914
|
-
indexed: true,
|
|
1915
|
-
},
|
|
1916
|
-
{ name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
1917
|
-
{
|
|
1918
|
-
name: 'shares',
|
|
1919
|
-
internalType: 'uint256',
|
|
1920
|
-
type: 'uint256',
|
|
1921
|
-
indexed: false,
|
|
1922
|
-
},
|
|
1923
|
-
{
|
|
1924
|
-
name: 'dQuote',
|
|
1925
|
-
internalType: 'uint256',
|
|
1926
|
-
type: 'uint256',
|
|
1927
|
-
indexed: false,
|
|
1928
|
-
},
|
|
1929
|
-
],
|
|
1930
|
-
name: 'Burn',
|
|
1931
|
-
},
|
|
1932
|
-
{
|
|
1933
|
-
type: 'event',
|
|
1934
|
-
anonymous: false,
|
|
1935
|
-
inputs: [
|
|
1936
|
-
{
|
|
1937
|
-
name: 'previous',
|
|
1938
|
-
internalType: 'address',
|
|
1939
|
-
type: 'address',
|
|
1940
|
-
indexed: true,
|
|
1941
|
-
},
|
|
1942
|
-
{
|
|
1943
|
-
name: 'current',
|
|
1944
|
-
internalType: 'address',
|
|
1945
|
-
type: 'address',
|
|
1946
|
-
indexed: true,
|
|
1947
|
-
},
|
|
1948
|
-
],
|
|
1949
|
-
name: 'CollectorAccepted',
|
|
1816
|
+
name: 'CollectorAccepted',
|
|
1950
1817
|
},
|
|
1951
1818
|
{
|
|
1952
1819
|
type: 'event',
|
|
@@ -1967,32 +1834,6 @@ export const fPoolManagerAbi = [
|
|
|
1967
1834
|
],
|
|
1968
1835
|
name: 'CollectorProposed',
|
|
1969
1836
|
},
|
|
1970
|
-
{
|
|
1971
|
-
type: 'event',
|
|
1972
|
-
anonymous: false,
|
|
1973
|
-
inputs: [
|
|
1974
|
-
{
|
|
1975
|
-
name: 'poolId',
|
|
1976
|
-
internalType: 'bytes32',
|
|
1977
|
-
type: 'bytes32',
|
|
1978
|
-
indexed: true,
|
|
1979
|
-
},
|
|
1980
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
1981
|
-
{
|
|
1982
|
-
name: 'supply',
|
|
1983
|
-
internalType: 'uint256',
|
|
1984
|
-
type: 'uint256',
|
|
1985
|
-
indexed: false,
|
|
1986
|
-
},
|
|
1987
|
-
{
|
|
1988
|
-
name: 'quote',
|
|
1989
|
-
internalType: 'uint256',
|
|
1990
|
-
type: 'uint256',
|
|
1991
|
-
indexed: false,
|
|
1992
|
-
},
|
|
1993
|
-
],
|
|
1994
|
-
name: 'Dissolve',
|
|
1995
|
-
},
|
|
1996
1837
|
{
|
|
1997
1838
|
type: 'event',
|
|
1998
1839
|
anonymous: false,
|
|
@@ -2029,30 +1870,9 @@ export const fPoolManagerAbi = [
|
|
|
2029
1870
|
type: 'uint256',
|
|
2030
1871
|
indexed: false,
|
|
2031
1872
|
},
|
|
2032
|
-
{
|
|
2033
|
-
name: 'harvestProtocolCut',
|
|
2034
|
-
internalType: 'uint256',
|
|
2035
|
-
type: 'uint256',
|
|
2036
|
-
indexed: false,
|
|
2037
|
-
},
|
|
2038
1873
|
],
|
|
2039
1874
|
name: 'FeeParamsSet',
|
|
2040
1875
|
},
|
|
2041
|
-
{
|
|
2042
|
-
type: 'event',
|
|
2043
|
-
anonymous: false,
|
|
2044
|
-
inputs: [
|
|
2045
|
-
{
|
|
2046
|
-
name: 'poolId',
|
|
2047
|
-
internalType: 'bytes32',
|
|
2048
|
-
type: 'bytes32',
|
|
2049
|
-
indexed: true,
|
|
2050
|
-
},
|
|
2051
|
-
{ name: 'gateMint', internalType: 'bool', type: 'bool', indexed: false },
|
|
2052
|
-
{ name: 'gateSwap', internalType: 'bool', type: 'bool', indexed: false },
|
|
2053
|
-
],
|
|
2054
|
-
name: 'GatesSet',
|
|
2055
|
-
},
|
|
2056
1876
|
{
|
|
2057
1877
|
type: 'event',
|
|
2058
1878
|
anonymous: false,
|
|
@@ -2070,8 +1890,9 @@ export const fPoolManagerAbi = [
|
|
|
2070
1890
|
type: 'uint256',
|
|
2071
1891
|
indexed: false,
|
|
2072
1892
|
},
|
|
1893
|
+
{ name: 'cut', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2073
1894
|
{
|
|
2074
|
-
name: '
|
|
1895
|
+
name: 'toOperator',
|
|
2075
1896
|
internalType: 'uint256',
|
|
2076
1897
|
type: 'uint256',
|
|
2077
1898
|
indexed: false,
|
|
@@ -2083,15 +1904,11 @@ export const fPoolManagerAbi = [
|
|
|
2083
1904
|
type: 'event',
|
|
2084
1905
|
anonymous: false,
|
|
2085
1906
|
inputs: [
|
|
2086
|
-
{
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
type: 'bytes32',
|
|
2090
|
-
indexed: true,
|
|
2091
|
-
},
|
|
2092
|
-
{ name: 'exempt', internalType: 'bool', type: 'bool', indexed: false },
|
|
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 },
|
|
2093
1910
|
],
|
|
2094
|
-
name: '
|
|
1911
|
+
name: 'HookApproved',
|
|
2095
1912
|
},
|
|
2096
1913
|
{
|
|
2097
1914
|
type: 'event',
|
|
@@ -2110,7 +1927,7 @@ export const fPoolManagerAbi = [
|
|
|
2110
1927
|
indexed: true,
|
|
2111
1928
|
},
|
|
2112
1929
|
{
|
|
2113
|
-
name: '
|
|
1930
|
+
name: 'creator',
|
|
2114
1931
|
internalType: 'address',
|
|
2115
1932
|
type: 'address',
|
|
2116
1933
|
indexed: true,
|
|
@@ -2134,6 +1951,12 @@ export const fPoolManagerAbi = [
|
|
|
2134
1951
|
type: 'uint8',
|
|
2135
1952
|
indexed: false,
|
|
2136
1953
|
},
|
|
1954
|
+
{
|
|
1955
|
+
name: 'hook',
|
|
1956
|
+
internalType: 'address',
|
|
1957
|
+
type: 'address',
|
|
1958
|
+
indexed: false,
|
|
1959
|
+
},
|
|
2137
1960
|
],
|
|
2138
1961
|
name: 'Initialize',
|
|
2139
1962
|
},
|
|
@@ -2173,12 +1996,7 @@ export const fPoolManagerAbi = [
|
|
|
2173
1996
|
type: 'bytes32',
|
|
2174
1997
|
indexed: true,
|
|
2175
1998
|
},
|
|
2176
|
-
{
|
|
2177
|
-
name: 'sender',
|
|
2178
|
-
internalType: 'address',
|
|
2179
|
-
type: 'address',
|
|
2180
|
-
indexed: true,
|
|
2181
|
-
},
|
|
1999
|
+
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
2182
2000
|
{ name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2183
2001
|
{
|
|
2184
2002
|
name: 'shares',
|
|
@@ -2219,45 +2037,40 @@ export const fPoolManagerAbi = [
|
|
|
2219
2037
|
anonymous: false,
|
|
2220
2038
|
inputs: [
|
|
2221
2039
|
{
|
|
2222
|
-
name: '
|
|
2223
|
-
internalType: 'bytes32',
|
|
2224
|
-
type: 'bytes32',
|
|
2225
|
-
indexed: true,
|
|
2226
|
-
},
|
|
2227
|
-
{
|
|
2228
|
-
name: 'current',
|
|
2040
|
+
name: 'owner',
|
|
2229
2041
|
internalType: 'address',
|
|
2230
2042
|
type: 'address',
|
|
2231
2043
|
indexed: true,
|
|
2232
2044
|
},
|
|
2233
2045
|
{
|
|
2234
|
-
name: '
|
|
2046
|
+
name: 'operator',
|
|
2235
2047
|
internalType: 'address',
|
|
2236
2048
|
type: 'address',
|
|
2237
2049
|
indexed: true,
|
|
2238
2050
|
},
|
|
2051
|
+
{ name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
|
|
2239
2052
|
],
|
|
2240
|
-
name: '
|
|
2053
|
+
name: 'OperatorSet',
|
|
2241
2054
|
},
|
|
2242
2055
|
{
|
|
2243
2056
|
type: 'event',
|
|
2244
2057
|
anonymous: false,
|
|
2245
2058
|
inputs: [
|
|
2246
2059
|
{
|
|
2247
|
-
name: '
|
|
2248
|
-
internalType: '
|
|
2249
|
-
type: '
|
|
2060
|
+
name: 'poolId',
|
|
2061
|
+
internalType: 'bytes32',
|
|
2062
|
+
type: 'bytes32',
|
|
2250
2063
|
indexed: true,
|
|
2251
2064
|
},
|
|
2065
|
+
{ name: 'inShares', internalType: 'bool', type: 'bool', indexed: false },
|
|
2252
2066
|
{
|
|
2253
|
-
name: '
|
|
2254
|
-
internalType: '
|
|
2255
|
-
type: '
|
|
2256
|
-
indexed:
|
|
2067
|
+
name: 'amount',
|
|
2068
|
+
internalType: 'uint256',
|
|
2069
|
+
type: 'uint256',
|
|
2070
|
+
indexed: false,
|
|
2257
2071
|
},
|
|
2258
|
-
{ name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
|
|
2259
2072
|
],
|
|
2260
|
-
name: '
|
|
2073
|
+
name: 'ProtocolFee',
|
|
2261
2074
|
},
|
|
2262
2075
|
{
|
|
2263
2076
|
type: 'event',
|
|
@@ -2269,10 +2082,27 @@ export const fPoolManagerAbi = [
|
|
|
2269
2082
|
type: 'bytes32',
|
|
2270
2083
|
indexed: true,
|
|
2271
2084
|
},
|
|
2272
|
-
{ name: '
|
|
2273
|
-
{
|
|
2085
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2086
|
+
{
|
|
2087
|
+
name: 'owner',
|
|
2088
|
+
internalType: 'address',
|
|
2089
|
+
type: 'address',
|
|
2090
|
+
indexed: true,
|
|
2091
|
+
},
|
|
2092
|
+
{
|
|
2093
|
+
name: 'shares',
|
|
2094
|
+
internalType: 'uint256',
|
|
2095
|
+
type: 'uint256',
|
|
2096
|
+
indexed: false,
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
name: 'quoteOut',
|
|
2100
|
+
internalType: 'uint256',
|
|
2101
|
+
type: 'uint256',
|
|
2102
|
+
indexed: false,
|
|
2103
|
+
},
|
|
2274
2104
|
],
|
|
2275
|
-
name: '
|
|
2105
|
+
name: 'Redeem',
|
|
2276
2106
|
},
|
|
2277
2107
|
{
|
|
2278
2108
|
type: 'event',
|
|
@@ -2284,15 +2114,40 @@ export const fPoolManagerAbi = [
|
|
|
2284
2114
|
type: 'bytes32',
|
|
2285
2115
|
indexed: true,
|
|
2286
2116
|
},
|
|
2287
|
-
{ name: '
|
|
2117
|
+
{ name: 'pot', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2288
2118
|
{
|
|
2289
|
-
name: '
|
|
2119
|
+
name: 'payee',
|
|
2120
|
+
internalType: 'address',
|
|
2121
|
+
type: 'address',
|
|
2122
|
+
indexed: false,
|
|
2123
|
+
},
|
|
2124
|
+
{
|
|
2125
|
+
name: 'toPayee',
|
|
2126
|
+
internalType: 'uint256',
|
|
2127
|
+
type: 'uint256',
|
|
2128
|
+
indexed: false,
|
|
2129
|
+
},
|
|
2130
|
+
{ name: 'cut', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2131
|
+
{
|
|
2132
|
+
name: 'boughtIn',
|
|
2133
|
+
internalType: 'uint256',
|
|
2134
|
+
type: 'uint256',
|
|
2135
|
+
indexed: false,
|
|
2136
|
+
},
|
|
2137
|
+
{
|
|
2138
|
+
name: 'shares',
|
|
2139
|
+
internalType: 'uint256',
|
|
2140
|
+
type: 'uint256',
|
|
2141
|
+
indexed: false,
|
|
2142
|
+
},
|
|
2143
|
+
{
|
|
2144
|
+
name: 'burn',
|
|
2290
2145
|
internalType: 'uint256',
|
|
2291
2146
|
type: 'uint256',
|
|
2292
2147
|
indexed: false,
|
|
2293
2148
|
},
|
|
2294
2149
|
],
|
|
2295
|
-
name: '
|
|
2150
|
+
name: 'Regenerated',
|
|
2296
2151
|
},
|
|
2297
2152
|
{
|
|
2298
2153
|
type: 'event',
|
|
@@ -2306,25 +2161,19 @@ export const fPoolManagerAbi = [
|
|
|
2306
2161
|
},
|
|
2307
2162
|
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2308
2163
|
{
|
|
2309
|
-
name: '
|
|
2310
|
-
internalType: 'address',
|
|
2311
|
-
type: 'address',
|
|
2312
|
-
indexed: true,
|
|
2313
|
-
},
|
|
2314
|
-
{
|
|
2315
|
-
name: 'shares',
|
|
2164
|
+
name: 'supply',
|
|
2316
2165
|
internalType: 'uint256',
|
|
2317
2166
|
type: 'uint256',
|
|
2318
2167
|
indexed: false,
|
|
2319
2168
|
},
|
|
2320
2169
|
{
|
|
2321
|
-
name: '
|
|
2170
|
+
name: 'quote',
|
|
2322
2171
|
internalType: 'uint256',
|
|
2323
2172
|
type: 'uint256',
|
|
2324
2173
|
indexed: false,
|
|
2325
2174
|
},
|
|
2326
2175
|
],
|
|
2327
|
-
name: '
|
|
2176
|
+
name: 'Retired',
|
|
2328
2177
|
},
|
|
2329
2178
|
{
|
|
2330
2179
|
type: 'event',
|
|
@@ -2339,12 +2188,6 @@ export const fPoolManagerAbi = [
|
|
|
2339
2188
|
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
2340
2189
|
{ name: 'L0', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2341
2190
|
{ name: 'Q0', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2342
|
-
{
|
|
2343
|
-
name: 'theta0',
|
|
2344
|
-
internalType: 'int256',
|
|
2345
|
-
type: 'int256',
|
|
2346
|
-
indexed: false,
|
|
2347
|
-
},
|
|
2348
2191
|
{
|
|
2349
2192
|
name: 'r0',
|
|
2350
2193
|
internalType: 'uint256[]',
|
|
@@ -2444,9 +2287,12 @@ export const fPoolManagerAbi = [
|
|
|
2444
2287
|
{ type: 'error', inputs: [], name: 'AlreadyUnlocked' },
|
|
2445
2288
|
{ type: 'error', inputs: [], name: 'BadLeg' },
|
|
2446
2289
|
{ type: 'error', inputs: [], name: 'BadParam' },
|
|
2290
|
+
{ type: 'error', inputs: [], name: 'BadTerms' },
|
|
2447
2291
|
{ type: 'error', inputs: [], name: 'BadWeights' },
|
|
2448
2292
|
{ type: 'error', inputs: [], name: 'BalanceOverflow' },
|
|
2449
|
-
{ type: 'error', inputs: [], name: '
|
|
2293
|
+
{ type: 'error', inputs: [], name: 'BidNotEmpty' },
|
|
2294
|
+
{ type: 'error', inputs: [], name: 'HarvestLimit' },
|
|
2295
|
+
{ type: 'error', inputs: [], name: 'HookNotApproved' },
|
|
2450
2296
|
{ type: 'error', inputs: [], name: 'InsufficientBalance' },
|
|
2451
2297
|
{ type: 'error', inputs: [], name: 'InsufficientPermission' },
|
|
2452
2298
|
{ type: 'error', inputs: [], name: 'InsufficientQuote' },
|
|
@@ -2458,12 +2304,8 @@ export const fPoolManagerAbi = [
|
|
|
2458
2304
|
name: 'MulticallFailed',
|
|
2459
2305
|
},
|
|
2460
2306
|
{ type: 'error', inputs: [], name: 'NonstandardToken' },
|
|
2461
|
-
{ type: 'error', inputs: [], name: 'NotAllowed' },
|
|
2462
|
-
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
2463
2307
|
{ type: 'error', inputs: [], name: 'NotAuthorized' },
|
|
2464
2308
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
2465
|
-
{ type: 'error', inputs: [], name: 'NotDissolvable' },
|
|
2466
|
-
{ type: 'error', inputs: [], name: 'NotOperator' },
|
|
2467
2309
|
{ type: 'error', inputs: [], name: 'NotPrivate' },
|
|
2468
2310
|
{ type: 'error', inputs: [], name: 'NotRetired' },
|
|
2469
2311
|
{ type: 'error', inputs: [], name: 'NotSeeded' },
|
|
@@ -2506,11 +2348,9 @@ export const logswapLensAbi = [
|
|
|
2506
2348
|
inputs: [],
|
|
2507
2349
|
name: 'cParams',
|
|
2508
2350
|
outputs: [
|
|
2509
|
-
{ name: 'defaultAlpha', internalType: 'uint256', type: 'uint256' },
|
|
2510
2351
|
{ name: 'feeMax', internalType: 'uint256', type: 'uint256' },
|
|
2511
2352
|
{ name: 'feeMin', internalType: 'uint256', type: 'uint256' },
|
|
2512
|
-
{ name: '
|
|
2513
|
-
{ name: 'maxKappa', internalType: 'uint256', type: 'uint256' },
|
|
2353
|
+
{ name: 'defaultFee', internalType: 'uint256', type: 'uint256' },
|
|
2514
2354
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2515
2355
|
{ name: 'minTickSpacing', internalType: 'int256', type: 'int256' },
|
|
2516
2356
|
{ name: 'noCap', internalType: 'int256', type: 'int256' },
|
|
@@ -2529,9 +2369,7 @@ export const logswapLensAbi = [
|
|
|
2529
2369
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2530
2370
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2531
2371
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2532
|
-
{ name: '
|
|
2533
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
2534
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
2372
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
2535
2373
|
],
|
|
2536
2374
|
},
|
|
2537
2375
|
],
|
|
@@ -2550,9 +2388,7 @@ export const logswapLensAbi = [
|
|
|
2550
2388
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2551
2389
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2552
2390
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2553
|
-
{ name: '
|
|
2554
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
2555
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
2391
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
2556
2392
|
],
|
|
2557
2393
|
},
|
|
2558
2394
|
],
|
|
@@ -2617,9 +2453,7 @@ export const logswapLensAbi = [
|
|
|
2617
2453
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2618
2454
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2619
2455
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2620
|
-
{ name: '
|
|
2621
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
2622
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
2456
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
2623
2457
|
],
|
|
2624
2458
|
},
|
|
2625
2459
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -2660,28 +2494,18 @@ export const logswapLensAbi = [
|
|
|
2660
2494
|
components: [
|
|
2661
2495
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2662
2496
|
{ name: 'phi', internalType: 'uint96', type: 'uint96' },
|
|
2663
|
-
{ name: '
|
|
2497
|
+
{ name: 'hook', internalType: 'address', type: 'address' },
|
|
2664
2498
|
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
2665
2499
|
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
2666
2500
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
2667
2501
|
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
2668
2502
|
{ name: 'restructureBlock', internalType: 'uint32', type: 'uint32' },
|
|
2669
|
-
{ name: '
|
|
2670
|
-
{ name: 'gateSwap', internalType: 'bool', type: 'bool' },
|
|
2503
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2671
2504
|
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2672
2505
|
{ name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
|
|
2673
2506
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2674
2507
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
2675
2508
|
{ name: 'theta0', internalType: 'int256', type: 'int256' },
|
|
2676
|
-
{ name: 'harvestedTheta', internalType: 'int256', type: 'int256' },
|
|
2677
|
-
{
|
|
2678
|
-
name: 'pendingAuthority',
|
|
2679
|
-
internalType: 'address',
|
|
2680
|
-
type: 'address',
|
|
2681
|
-
},
|
|
2682
|
-
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
2683
|
-
{ name: 'pendingOperator', internalType: 'address', type: 'address' },
|
|
2684
|
-
{ name: 'incomeTaken', internalType: 'uint256', type: 'uint256' },
|
|
2685
2509
|
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
2686
2510
|
],
|
|
2687
2511
|
},
|
|
@@ -2706,7 +2530,6 @@ export const logswapLensAbi = [
|
|
|
2706
2530
|
{ name: 'reserveQuote', internalType: 'uint256', type: 'uint256' },
|
|
2707
2531
|
{ name: 'F', internalType: 'uint256', type: 'uint256' },
|
|
2708
2532
|
{ name: 'bigSigma', internalType: 'uint256', type: 'uint256' },
|
|
2709
|
-
{ name: 'sigma2Ema', internalType: 'uint256', type: 'uint256' },
|
|
2710
2533
|
{ name: 'currentK', internalType: 'int256', type: 'int256' },
|
|
2711
2534
|
{ name: 'protocolOwed', internalType: 'uint256', type: 'uint256' },
|
|
2712
2535
|
{ name: 'minBackstopL', internalType: 'uint256', type: 'uint256' },
|
|
@@ -2727,9 +2550,7 @@ export const logswapLensAbi = [
|
|
|
2727
2550
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2728
2551
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2729
2552
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2730
|
-
{ name: '
|
|
2731
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
2732
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
2553
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
2733
2554
|
],
|
|
2734
2555
|
},
|
|
2735
2556
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -2765,9 +2586,7 @@ export const logswapLensAbi = [
|
|
|
2765
2586
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2766
2587
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2767
2588
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2768
|
-
{ name: '
|
|
2769
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
2770
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
2589
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
2771
2590
|
],
|
|
2772
2591
|
},
|
|
2773
2592
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -2787,9 +2606,7 @@ export const logswapLensAbi = [
|
|
|
2787
2606
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2788
2607
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2789
2608
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2790
|
-
{ name: '
|
|
2791
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
2792
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
2609
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
2793
2610
|
],
|
|
2794
2611
|
},
|
|
2795
2612
|
],
|
|
@@ -2808,9 +2625,7 @@ export const logswapLensAbi = [
|
|
|
2808
2625
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2809
2626
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2810
2627
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2811
|
-
{ name: '
|
|
2812
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
2813
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
2628
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
2814
2629
|
],
|
|
2815
2630
|
},
|
|
2816
2631
|
],
|
|
@@ -2829,9 +2644,7 @@ export const logswapLensAbi = [
|
|
|
2829
2644
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2830
2645
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2831
2646
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2832
|
-
{ name: '
|
|
2833
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
2834
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
2647
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
2835
2648
|
],
|
|
2836
2649
|
},
|
|
2837
2650
|
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
@@ -2857,9 +2670,7 @@ export const logswapLensAbi = [
|
|
|
2857
2670
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2858
2671
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2859
2672
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2860
|
-
{ name: '
|
|
2861
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
2862
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
2673
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
2863
2674
|
],
|
|
2864
2675
|
},
|
|
2865
2676
|
],
|
|
@@ -2887,9 +2698,7 @@ export const logswapLensAbi = [
|
|
|
2887
2698
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2888
2699
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2889
2700
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2890
|
-
{ name: '
|
|
2891
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
2892
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
2701
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
2893
2702
|
],
|
|
2894
2703
|
},
|
|
2895
2704
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -2927,9 +2736,7 @@ export const logswapLensAbi = [
|
|
|
2927
2736
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2928
2737
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2929
2738
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2930
|
-
{ name: '
|
|
2931
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
2932
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
2739
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
2933
2740
|
],
|
|
2934
2741
|
},
|
|
2935
2742
|
],
|
|
@@ -2948,9 +2755,7 @@ export const logswapLensAbi = [
|
|
|
2948
2755
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2949
2756
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2950
2757
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2951
|
-
{ name: '
|
|
2952
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
2953
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
2758
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
2954
2759
|
],
|
|
2955
2760
|
},
|
|
2956
2761
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -2983,9 +2788,7 @@ export const logswapLensAbi = [
|
|
|
2983
2788
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2984
2789
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2985
2790
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2986
|
-
{ name: '
|
|
2987
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
2988
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
2791
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
2989
2792
|
],
|
|
2990
2793
|
},
|
|
2991
2794
|
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
@@ -3027,9 +2830,7 @@ export const logswapLensAbi = [
|
|
|
3027
2830
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3028
2831
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3029
2832
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3030
|
-
{ name: '
|
|
3031
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3032
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
2833
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3033
2834
|
],
|
|
3034
2835
|
},
|
|
3035
2836
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -3050,9 +2851,7 @@ export const logswapLensAbi = [
|
|
|
3050
2851
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3051
2852
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3052
2853
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3053
|
-
{ name: '
|
|
3054
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3055
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
2854
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3056
2855
|
],
|
|
3057
2856
|
},
|
|
3058
2857
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -3073,9 +2872,7 @@ export const logswapLensAbi = [
|
|
|
3073
2872
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3074
2873
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3075
2874
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3076
|
-
{ name: '
|
|
3077
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3078
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
2875
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3079
2876
|
],
|
|
3080
2877
|
},
|
|
3081
2878
|
{ name: 'baseOut', internalType: 'bool', type: 'bool' },
|
|
@@ -3096,9 +2893,7 @@ export const logswapLensAbi = [
|
|
|
3096
2893
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3097
2894
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3098
2895
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3099
|
-
{ name: '
|
|
3100
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3101
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
2896
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3102
2897
|
],
|
|
3103
2898
|
},
|
|
3104
2899
|
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3155,9 +2950,7 @@ export const logswapLensAbi = [
|
|
|
3155
2950
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3156
2951
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3157
2952
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3158
|
-
{ name: '
|
|
3159
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3160
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
2953
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3161
2954
|
],
|
|
3162
2955
|
},
|
|
3163
2956
|
],
|
|
@@ -3179,8 +2972,10 @@ export const logswapLensAbi = [
|
|
|
3179
2972
|
},
|
|
3180
2973
|
{ type: 'error', inputs: [], name: 'BelowFloor' },
|
|
3181
2974
|
{ type: 'error', inputs: [], name: 'DrainsBase' },
|
|
2975
|
+
{ type: 'error', inputs: [], name: 'InvalidShares' },
|
|
3182
2976
|
{ type: 'error', inputs: [], name: 'UnexpectedQuoteSuccess' },
|
|
3183
2977
|
{ type: 'error', inputs: [], name: 'UnknownId' },
|
|
2978
|
+
{ type: 'error', inputs: [], name: 'WrongPool' },
|
|
3184
2979
|
] as const
|
|
3185
2980
|
|
|
3186
2981
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
@@ -3245,9 +3040,7 @@ export const logswapRouterAbi = [
|
|
|
3245
3040
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3246
3041
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3247
3042
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3248
|
-
{ name: '
|
|
3249
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3250
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
3043
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3251
3044
|
],
|
|
3252
3045
|
},
|
|
3253
3046
|
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
@@ -3275,9 +3068,7 @@ export const logswapRouterAbi = [
|
|
|
3275
3068
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3276
3069
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3277
3070
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3278
|
-
{ name: '
|
|
3279
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3280
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
3071
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3281
3072
|
],
|
|
3282
3073
|
},
|
|
3283
3074
|
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
@@ -3299,9 +3090,7 @@ export const logswapRouterAbi = [
|
|
|
3299
3090
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3300
3091
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3301
3092
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3302
|
-
{ name: '
|
|
3303
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3304
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
3093
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3305
3094
|
],
|
|
3306
3095
|
},
|
|
3307
3096
|
{ name: 'x0', internalType: 'int256', type: 'int256' },
|
|
@@ -3336,9 +3125,7 @@ export const logswapRouterAbi = [
|
|
|
3336
3125
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3337
3126
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3338
3127
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3339
|
-
{ name: '
|
|
3340
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3341
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
3128
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3342
3129
|
],
|
|
3343
3130
|
},
|
|
3344
3131
|
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
@@ -3366,9 +3153,7 @@ export const logswapRouterAbi = [
|
|
|
3366
3153
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3367
3154
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3368
3155
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3369
|
-
{ name: '
|
|
3370
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3371
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
3156
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3372
3157
|
],
|
|
3373
3158
|
},
|
|
3374
3159
|
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
@@ -3395,9 +3180,7 @@ export const logswapRouterAbi = [
|
|
|
3395
3180
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3396
3181
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3397
3182
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3398
|
-
{ name: '
|
|
3399
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3400
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
3183
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3401
3184
|
],
|
|
3402
3185
|
},
|
|
3403
3186
|
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
@@ -3435,9 +3218,7 @@ export const logswapRouterAbi = [
|
|
|
3435
3218
|
internalType: 'int256',
|
|
3436
3219
|
type: 'int256',
|
|
3437
3220
|
},
|
|
3438
|
-
{ name: '
|
|
3439
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3440
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
3221
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3441
3222
|
],
|
|
3442
3223
|
},
|
|
3443
3224
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -3468,9 +3249,7 @@ export const logswapRouterAbi = [
|
|
|
3468
3249
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3469
3250
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3470
3251
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3471
|
-
{ name: '
|
|
3472
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3473
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
3252
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3474
3253
|
],
|
|
3475
3254
|
},
|
|
3476
3255
|
{ name: 'baseSide', internalType: 'bool', type: 'bool' },
|
|
@@ -3499,9 +3278,7 @@ export const logswapRouterAbi = [
|
|
|
3499
3278
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3500
3279
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3501
3280
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3502
|
-
{ name: '
|
|
3503
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3504
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
3281
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3505
3282
|
],
|
|
3506
3283
|
},
|
|
3507
3284
|
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3586,9 +3363,7 @@ export const logswapRouterAbi = [
|
|
|
3586
3363
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3587
3364
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3588
3365
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3589
|
-
{ name: '
|
|
3590
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3591
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
3366
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3592
3367
|
],
|
|
3593
3368
|
},
|
|
3594
3369
|
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
@@ -3617,9 +3392,7 @@ export const logswapRouterAbi = [
|
|
|
3617
3392
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3618
3393
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3619
3394
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3620
|
-
{ name: '
|
|
3621
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3622
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
3395
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3623
3396
|
],
|
|
3624
3397
|
},
|
|
3625
3398
|
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3696,9 +3469,7 @@ export const logswapRouterAbi = [
|
|
|
3696
3469
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3697
3470
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3698
3471
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3699
|
-
{ name: '
|
|
3700
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3701
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
3472
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3702
3473
|
],
|
|
3703
3474
|
},
|
|
3704
3475
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -3727,9 +3498,7 @@ export const logswapRouterAbi = [
|
|
|
3727
3498
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3728
3499
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3729
3500
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3730
|
-
{ name: '
|
|
3731
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3732
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
3501
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3733
3502
|
],
|
|
3734
3503
|
},
|
|
3735
3504
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -3755,9 +3524,7 @@ export const logswapRouterAbi = [
|
|
|
3755
3524
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3756
3525
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3757
3526
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3758
|
-
{ name: '
|
|
3759
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3760
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
3527
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3761
3528
|
],
|
|
3762
3529
|
},
|
|
3763
3530
|
{ name: 'baseOut', internalType: 'bool', type: 'bool' },
|
|
@@ -3788,9 +3555,7 @@ export const logswapRouterAbi = [
|
|
|
3788
3555
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3789
3556
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3790
3557
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3791
|
-
{ name: '
|
|
3792
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3793
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
3558
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3794
3559
|
],
|
|
3795
3560
|
},
|
|
3796
3561
|
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3822,13 +3587,12 @@ export const logswapRouterAbi = [
|
|
|
3822
3587
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3823
3588
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3824
3589
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3825
|
-
{ name: '
|
|
3826
|
-
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
3827
|
-
{ name: 'alpha', internalType: 'uint256', type: 'uint256' },
|
|
3590
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3828
3591
|
],
|
|
3829
3592
|
},
|
|
3830
3593
|
{ name: 'fundWithBase', internalType: 'bool', type: 'bool' },
|
|
3831
3594
|
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
3595
|
+
{ name: 'minSwapOut', internalType: 'uint256', type: 'uint256' },
|
|
3832
3596
|
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
3833
3597
|
{ name: 'cap', internalType: 'int256', type: 'int256' },
|
|
3834
3598
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3891,3 +3655,1402 @@ export const logswapRouterAbi = [
|
|
|
3891
3655
|
{ type: 'error', inputs: [], name: 'UnsupportedOp' },
|
|
3892
3656
|
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
3893
3657
|
] as const
|
|
3658
|
+
|
|
3659
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3660
|
+
// PadHook
|
|
3661
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3662
|
+
|
|
3663
|
+
export const padHookAbi = [
|
|
3664
|
+
{
|
|
3665
|
+
type: 'constructor',
|
|
3666
|
+
inputs: [
|
|
3667
|
+
{
|
|
3668
|
+
name: '_manager',
|
|
3669
|
+
internalType: 'contract FPoolManager',
|
|
3670
|
+
type: 'address',
|
|
3671
|
+
},
|
|
3672
|
+
{ name: '_thresholdBase', internalType: 'uint256', type: 'uint256' },
|
|
3673
|
+
],
|
|
3674
|
+
stateMutability: 'nonpayable',
|
|
3675
|
+
},
|
|
3676
|
+
{
|
|
3677
|
+
type: 'function',
|
|
3678
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
3679
|
+
name: 'acceptAuthority',
|
|
3680
|
+
outputs: [],
|
|
3681
|
+
stateMutability: 'nonpayable',
|
|
3682
|
+
},
|
|
3683
|
+
{
|
|
3684
|
+
type: 'function',
|
|
3685
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3686
|
+
name: 'authority',
|
|
3687
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3688
|
+
stateMutability: 'view',
|
|
3689
|
+
},
|
|
3690
|
+
{
|
|
3691
|
+
type: 'function',
|
|
3692
|
+
inputs: [],
|
|
3693
|
+
name: 'burnPerRung',
|
|
3694
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3695
|
+
stateMutability: 'view',
|
|
3696
|
+
},
|
|
3697
|
+
{
|
|
3698
|
+
type: 'function',
|
|
3699
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3700
|
+
name: 'creator',
|
|
3701
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3702
|
+
stateMutability: 'view',
|
|
3703
|
+
},
|
|
3704
|
+
{
|
|
3705
|
+
type: 'function',
|
|
3706
|
+
inputs: [],
|
|
3707
|
+
name: 'creatorShare',
|
|
3708
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3709
|
+
stateMutability: 'view',
|
|
3710
|
+
},
|
|
3711
|
+
{
|
|
3712
|
+
type: 'function',
|
|
3713
|
+
inputs: [],
|
|
3714
|
+
name: 'harvestCut',
|
|
3715
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3716
|
+
stateMutability: 'view',
|
|
3717
|
+
},
|
|
3718
|
+
{
|
|
3719
|
+
type: 'function',
|
|
3720
|
+
inputs: [],
|
|
3721
|
+
name: 'manager',
|
|
3722
|
+
outputs: [
|
|
3723
|
+
{ name: '', internalType: 'contract FPoolManager', type: 'address' },
|
|
3724
|
+
],
|
|
3725
|
+
stateMutability: 'view',
|
|
3726
|
+
},
|
|
3727
|
+
{
|
|
3728
|
+
type: 'function',
|
|
3729
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
3730
|
+
name: 'maxHarvest',
|
|
3731
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3732
|
+
stateMutability: 'view',
|
|
3733
|
+
},
|
|
3734
|
+
{
|
|
3735
|
+
type: 'function',
|
|
3736
|
+
inputs: [
|
|
3737
|
+
{
|
|
3738
|
+
name: 'a',
|
|
3739
|
+
internalType: 'struct IFHook.Ask',
|
|
3740
|
+
type: 'tuple',
|
|
3741
|
+
components: [
|
|
3742
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3743
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
3744
|
+
{ name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
|
|
3745
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3746
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3747
|
+
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
3748
|
+
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
3749
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3750
|
+
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
3751
|
+
],
|
|
3752
|
+
},
|
|
3753
|
+
],
|
|
3754
|
+
name: 'may',
|
|
3755
|
+
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
3756
|
+
stateMutability: 'view',
|
|
3757
|
+
},
|
|
3758
|
+
{
|
|
3759
|
+
type: 'function',
|
|
3760
|
+
inputs: [
|
|
3761
|
+
{
|
|
3762
|
+
name: 'a',
|
|
3763
|
+
internalType: 'struct IFHook.Ask',
|
|
3764
|
+
type: 'tuple',
|
|
3765
|
+
components: [
|
|
3766
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3767
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
3768
|
+
{ name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
|
|
3769
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3770
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3771
|
+
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
3772
|
+
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
3773
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3774
|
+
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
3775
|
+
],
|
|
3776
|
+
},
|
|
3777
|
+
],
|
|
3778
|
+
name: 'onHarvest',
|
|
3779
|
+
outputs: [
|
|
3780
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3781
|
+
{ name: 'cut', internalType: 'uint256', type: 'uint256' },
|
|
3782
|
+
],
|
|
3783
|
+
stateMutability: 'view',
|
|
3784
|
+
},
|
|
3785
|
+
{
|
|
3786
|
+
type: 'function',
|
|
3787
|
+
inputs: [
|
|
3788
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3789
|
+
{
|
|
3790
|
+
name: 'key',
|
|
3791
|
+
internalType: 'struct FPoolKey',
|
|
3792
|
+
type: 'tuple',
|
|
3793
|
+
components: [
|
|
3794
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3795
|
+
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
3796
|
+
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3797
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
3798
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
3799
|
+
{ name: 'hook', internalType: 'address', type: 'address' },
|
|
3800
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3801
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
3802
|
+
],
|
|
3803
|
+
},
|
|
3804
|
+
],
|
|
3805
|
+
name: 'onInitialize',
|
|
3806
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
3807
|
+
stateMutability: 'nonpayable',
|
|
3808
|
+
},
|
|
3809
|
+
{
|
|
3810
|
+
type: 'function',
|
|
3811
|
+
inputs: [
|
|
3812
|
+
{
|
|
3813
|
+
name: 'a',
|
|
3814
|
+
internalType: 'struct IFHook.Ask',
|
|
3815
|
+
type: 'tuple',
|
|
3816
|
+
components: [
|
|
3817
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3818
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
3819
|
+
{ name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
|
|
3820
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3821
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3822
|
+
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
3823
|
+
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
3824
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3825
|
+
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
3826
|
+
],
|
|
3827
|
+
},
|
|
3828
|
+
],
|
|
3829
|
+
name: 'onRegenerate',
|
|
3830
|
+
outputs: [
|
|
3831
|
+
{
|
|
3832
|
+
name: 't',
|
|
3833
|
+
internalType: 'struct IFHook.Terms',
|
|
3834
|
+
type: 'tuple',
|
|
3835
|
+
components: [
|
|
3836
|
+
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
3837
|
+
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
3838
|
+
{ name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
|
|
3839
|
+
{ name: 'burn', internalType: 'uint256', type: 'uint256' },
|
|
3840
|
+
],
|
|
3841
|
+
},
|
|
3842
|
+
],
|
|
3843
|
+
stateMutability: 'nonpayable',
|
|
3844
|
+
},
|
|
3845
|
+
{
|
|
3846
|
+
type: 'function',
|
|
3847
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3848
|
+
name: 'pendingAuthority',
|
|
3849
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3850
|
+
stateMutability: 'view',
|
|
3851
|
+
},
|
|
3852
|
+
{
|
|
3853
|
+
type: 'function',
|
|
3854
|
+
inputs: [
|
|
3855
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3856
|
+
{ name: 'next', internalType: 'address', type: 'address' },
|
|
3857
|
+
],
|
|
3858
|
+
name: 'proposeAuthority',
|
|
3859
|
+
outputs: [],
|
|
3860
|
+
stateMutability: 'nonpayable',
|
|
3861
|
+
},
|
|
3862
|
+
{
|
|
3863
|
+
type: 'function',
|
|
3864
|
+
inputs: [],
|
|
3865
|
+
name: 'protocolShare',
|
|
3866
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3867
|
+
stateMutability: 'view',
|
|
3868
|
+
},
|
|
3869
|
+
{
|
|
3870
|
+
type: 'function',
|
|
3871
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3872
|
+
name: 'rung',
|
|
3873
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3874
|
+
stateMutability: 'view',
|
|
3875
|
+
},
|
|
3876
|
+
{
|
|
3877
|
+
type: 'function',
|
|
3878
|
+
inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
|
|
3879
|
+
name: 'setHarvestCut',
|
|
3880
|
+
outputs: [],
|
|
3881
|
+
stateMutability: 'nonpayable',
|
|
3882
|
+
},
|
|
3883
|
+
{
|
|
3884
|
+
type: 'function',
|
|
3885
|
+
inputs: [
|
|
3886
|
+
{ name: '_thresholdBase', internalType: 'uint256', type: 'uint256' },
|
|
3887
|
+
{ name: '_thresholdGrowth', internalType: 'uint256', type: 'uint256' },
|
|
3888
|
+
{ name: '_creatorShare', internalType: 'uint256', type: 'uint256' },
|
|
3889
|
+
{ name: '_protocolShare', internalType: 'uint256', type: 'uint256' },
|
|
3890
|
+
{ name: '_burnPerRung', internalType: 'uint256', type: 'uint256' },
|
|
3891
|
+
],
|
|
3892
|
+
name: 'setSchedule',
|
|
3893
|
+
outputs: [],
|
|
3894
|
+
stateMutability: 'nonpayable',
|
|
3895
|
+
},
|
|
3896
|
+
{
|
|
3897
|
+
type: 'function',
|
|
3898
|
+
inputs: [{ name: 'r', internalType: 'uint256', type: 'uint256' }],
|
|
3899
|
+
name: 'threshold',
|
|
3900
|
+
outputs: [{ name: 't', internalType: 'uint256', type: 'uint256' }],
|
|
3901
|
+
stateMutability: 'view',
|
|
3902
|
+
},
|
|
3903
|
+
{
|
|
3904
|
+
type: 'function',
|
|
3905
|
+
inputs: [],
|
|
3906
|
+
name: 'thresholdBase',
|
|
3907
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3908
|
+
stateMutability: 'view',
|
|
3909
|
+
},
|
|
3910
|
+
{
|
|
3911
|
+
type: 'function',
|
|
3912
|
+
inputs: [],
|
|
3913
|
+
name: 'thresholdGrowth',
|
|
3914
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3915
|
+
stateMutability: 'view',
|
|
3916
|
+
},
|
|
3917
|
+
{
|
|
3918
|
+
type: 'event',
|
|
3919
|
+
anonymous: false,
|
|
3920
|
+
inputs: [
|
|
3921
|
+
{
|
|
3922
|
+
name: 'poolId',
|
|
3923
|
+
internalType: 'bytes32',
|
|
3924
|
+
type: 'bytes32',
|
|
3925
|
+
indexed: true,
|
|
3926
|
+
},
|
|
3927
|
+
{
|
|
3928
|
+
name: 'current',
|
|
3929
|
+
internalType: 'address',
|
|
3930
|
+
type: 'address',
|
|
3931
|
+
indexed: true,
|
|
3932
|
+
},
|
|
3933
|
+
{
|
|
3934
|
+
name: 'proposed',
|
|
3935
|
+
internalType: 'address',
|
|
3936
|
+
type: 'address',
|
|
3937
|
+
indexed: true,
|
|
3938
|
+
},
|
|
3939
|
+
],
|
|
3940
|
+
name: 'AuthorityProposed',
|
|
3941
|
+
},
|
|
3942
|
+
{
|
|
3943
|
+
type: 'event',
|
|
3944
|
+
anonymous: false,
|
|
3945
|
+
inputs: [
|
|
3946
|
+
{
|
|
3947
|
+
name: 'poolId',
|
|
3948
|
+
internalType: 'bytes32',
|
|
3949
|
+
type: 'bytes32',
|
|
3950
|
+
indexed: true,
|
|
3951
|
+
},
|
|
3952
|
+
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
3953
|
+
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
3954
|
+
],
|
|
3955
|
+
name: 'AuthoritySet',
|
|
3956
|
+
},
|
|
3957
|
+
{
|
|
3958
|
+
type: 'event',
|
|
3959
|
+
anonymous: false,
|
|
3960
|
+
inputs: [
|
|
3961
|
+
{
|
|
3962
|
+
name: 'poolId',
|
|
3963
|
+
internalType: 'bytes32',
|
|
3964
|
+
type: 'bytes32',
|
|
3965
|
+
indexed: true,
|
|
3966
|
+
},
|
|
3967
|
+
{ name: 'rung', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
3968
|
+
{ name: 'pot', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
3969
|
+
],
|
|
3970
|
+
name: 'Graduated',
|
|
3971
|
+
},
|
|
3972
|
+
{
|
|
3973
|
+
type: 'event',
|
|
3974
|
+
anonymous: false,
|
|
3975
|
+
inputs: [
|
|
3976
|
+
{
|
|
3977
|
+
name: 'harvestCut',
|
|
3978
|
+
internalType: 'uint256',
|
|
3979
|
+
type: 'uint256',
|
|
3980
|
+
indexed: false,
|
|
3981
|
+
},
|
|
3982
|
+
],
|
|
3983
|
+
name: 'HarvestCutSet',
|
|
3984
|
+
},
|
|
3985
|
+
{
|
|
3986
|
+
type: 'event',
|
|
3987
|
+
anonymous: false,
|
|
3988
|
+
inputs: [
|
|
3989
|
+
{
|
|
3990
|
+
name: 'thresholdBase',
|
|
3991
|
+
internalType: 'uint256',
|
|
3992
|
+
type: 'uint256',
|
|
3993
|
+
indexed: false,
|
|
3994
|
+
},
|
|
3995
|
+
{
|
|
3996
|
+
name: 'thresholdGrowth',
|
|
3997
|
+
internalType: 'uint256',
|
|
3998
|
+
type: 'uint256',
|
|
3999
|
+
indexed: false,
|
|
4000
|
+
},
|
|
4001
|
+
{
|
|
4002
|
+
name: 'creatorShare',
|
|
4003
|
+
internalType: 'uint256',
|
|
4004
|
+
type: 'uint256',
|
|
4005
|
+
indexed: false,
|
|
4006
|
+
},
|
|
4007
|
+
{
|
|
4008
|
+
name: 'protocolShare',
|
|
4009
|
+
internalType: 'uint256',
|
|
4010
|
+
type: 'uint256',
|
|
4011
|
+
indexed: false,
|
|
4012
|
+
},
|
|
4013
|
+
{
|
|
4014
|
+
name: 'burnPerRung',
|
|
4015
|
+
internalType: 'uint256',
|
|
4016
|
+
type: 'uint256',
|
|
4017
|
+
indexed: false,
|
|
4018
|
+
},
|
|
4019
|
+
],
|
|
4020
|
+
name: 'ScheduleSet',
|
|
4021
|
+
},
|
|
4022
|
+
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4023
|
+
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
4024
|
+
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
4025
|
+
{ type: 'error', inputs: [], name: 'NotGraduated' },
|
|
4026
|
+
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
4027
|
+
{ type: 'error', inputs: [], name: 'Refused' },
|
|
4028
|
+
] as const
|
|
4029
|
+
|
|
4030
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4031
|
+
// PolHook
|
|
4032
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4033
|
+
|
|
4034
|
+
export const polHookAbi = [
|
|
4035
|
+
{
|
|
4036
|
+
type: 'constructor',
|
|
4037
|
+
inputs: [
|
|
4038
|
+
{
|
|
4039
|
+
name: '_manager',
|
|
4040
|
+
internalType: 'contract FPoolManager',
|
|
4041
|
+
type: 'address',
|
|
4042
|
+
},
|
|
4043
|
+
],
|
|
4044
|
+
stateMutability: 'nonpayable',
|
|
4045
|
+
},
|
|
4046
|
+
{
|
|
4047
|
+
type: 'function',
|
|
4048
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
4049
|
+
name: 'acceptAuthority',
|
|
4050
|
+
outputs: [],
|
|
4051
|
+
stateMutability: 'nonpayable',
|
|
4052
|
+
},
|
|
4053
|
+
{
|
|
4054
|
+
type: 'function',
|
|
4055
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4056
|
+
name: 'authority',
|
|
4057
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4058
|
+
stateMutability: 'view',
|
|
4059
|
+
},
|
|
4060
|
+
{
|
|
4061
|
+
type: 'function',
|
|
4062
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4063
|
+
name: 'creator',
|
|
4064
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4065
|
+
stateMutability: 'view',
|
|
4066
|
+
},
|
|
4067
|
+
{
|
|
4068
|
+
type: 'function',
|
|
4069
|
+
inputs: [],
|
|
4070
|
+
name: 'harvestCut',
|
|
4071
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4072
|
+
stateMutability: 'view',
|
|
4073
|
+
},
|
|
4074
|
+
{
|
|
4075
|
+
type: 'function',
|
|
4076
|
+
inputs: [],
|
|
4077
|
+
name: 'keepQuote',
|
|
4078
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4079
|
+
stateMutability: 'view',
|
|
4080
|
+
},
|
|
4081
|
+
{
|
|
4082
|
+
type: 'function',
|
|
4083
|
+
inputs: [],
|
|
4084
|
+
name: 'manager',
|
|
4085
|
+
outputs: [
|
|
4086
|
+
{ name: '', internalType: 'contract FPoolManager', type: 'address' },
|
|
4087
|
+
],
|
|
4088
|
+
stateMutability: 'view',
|
|
4089
|
+
},
|
|
4090
|
+
{
|
|
4091
|
+
type: 'function',
|
|
4092
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
4093
|
+
name: 'maxHarvest',
|
|
4094
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4095
|
+
stateMutability: 'view',
|
|
4096
|
+
},
|
|
4097
|
+
{
|
|
4098
|
+
type: 'function',
|
|
4099
|
+
inputs: [
|
|
4100
|
+
{
|
|
4101
|
+
name: 'a',
|
|
4102
|
+
internalType: 'struct IFHook.Ask',
|
|
4103
|
+
type: 'tuple',
|
|
4104
|
+
components: [
|
|
4105
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4106
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4107
|
+
{ name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
|
|
4108
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4109
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4110
|
+
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
4111
|
+
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
4112
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4113
|
+
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
4114
|
+
],
|
|
4115
|
+
},
|
|
4116
|
+
],
|
|
4117
|
+
name: 'may',
|
|
4118
|
+
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
4119
|
+
stateMutability: 'view',
|
|
4120
|
+
},
|
|
4121
|
+
{
|
|
4122
|
+
type: 'function',
|
|
4123
|
+
inputs: [],
|
|
4124
|
+
name: 'minQuoteAtSeed',
|
|
4125
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4126
|
+
stateMutability: 'view',
|
|
4127
|
+
},
|
|
4128
|
+
{
|
|
4129
|
+
type: 'function',
|
|
4130
|
+
inputs: [
|
|
4131
|
+
{
|
|
4132
|
+
name: 'a',
|
|
4133
|
+
internalType: 'struct IFHook.Ask',
|
|
4134
|
+
type: 'tuple',
|
|
4135
|
+
components: [
|
|
4136
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4137
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4138
|
+
{ name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
|
|
4139
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4140
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4141
|
+
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
4142
|
+
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
4143
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4144
|
+
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
4145
|
+
],
|
|
4146
|
+
},
|
|
4147
|
+
],
|
|
4148
|
+
name: 'onHarvest',
|
|
4149
|
+
outputs: [
|
|
4150
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4151
|
+
{ name: 'cut', internalType: 'uint256', type: 'uint256' },
|
|
4152
|
+
],
|
|
4153
|
+
stateMutability: 'view',
|
|
4154
|
+
},
|
|
4155
|
+
{
|
|
4156
|
+
type: 'function',
|
|
4157
|
+
inputs: [
|
|
4158
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4159
|
+
{
|
|
4160
|
+
name: 'key',
|
|
4161
|
+
internalType: 'struct FPoolKey',
|
|
4162
|
+
type: 'tuple',
|
|
4163
|
+
components: [
|
|
4164
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4165
|
+
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
4166
|
+
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4167
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
4168
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4169
|
+
{ name: 'hook', internalType: 'address', type: 'address' },
|
|
4170
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4171
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4172
|
+
],
|
|
4173
|
+
},
|
|
4174
|
+
],
|
|
4175
|
+
name: 'onInitialize',
|
|
4176
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4177
|
+
stateMutability: 'nonpayable',
|
|
4178
|
+
},
|
|
4179
|
+
{
|
|
4180
|
+
type: 'function',
|
|
4181
|
+
inputs: [
|
|
4182
|
+
{
|
|
4183
|
+
name: 'a',
|
|
4184
|
+
internalType: 'struct IFHook.Ask',
|
|
4185
|
+
type: 'tuple',
|
|
4186
|
+
components: [
|
|
4187
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4188
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4189
|
+
{ name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
|
|
4190
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4191
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4192
|
+
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
4193
|
+
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
4194
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4195
|
+
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
4196
|
+
],
|
|
4197
|
+
},
|
|
4198
|
+
],
|
|
4199
|
+
name: 'onRegenerate',
|
|
4200
|
+
outputs: [
|
|
4201
|
+
{
|
|
4202
|
+
name: 't',
|
|
4203
|
+
internalType: 'struct IFHook.Terms',
|
|
4204
|
+
type: 'tuple',
|
|
4205
|
+
components: [
|
|
4206
|
+
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
4207
|
+
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
4208
|
+
{ name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
|
|
4209
|
+
{ name: 'burn', internalType: 'uint256', type: 'uint256' },
|
|
4210
|
+
],
|
|
4211
|
+
},
|
|
4212
|
+
],
|
|
4213
|
+
stateMutability: 'nonpayable',
|
|
4214
|
+
},
|
|
4215
|
+
{
|
|
4216
|
+
type: 'function',
|
|
4217
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4218
|
+
name: 'pendingAuthority',
|
|
4219
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4220
|
+
stateMutability: 'view',
|
|
4221
|
+
},
|
|
4222
|
+
{
|
|
4223
|
+
type: 'function',
|
|
4224
|
+
inputs: [
|
|
4225
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4226
|
+
{ name: 'next', internalType: 'address', type: 'address' },
|
|
4227
|
+
],
|
|
4228
|
+
name: 'proposeAuthority',
|
|
4229
|
+
outputs: [],
|
|
4230
|
+
stateMutability: 'nonpayable',
|
|
4231
|
+
},
|
|
4232
|
+
{
|
|
4233
|
+
type: 'function',
|
|
4234
|
+
inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
|
|
4235
|
+
name: 'setHarvestCut',
|
|
4236
|
+
outputs: [],
|
|
4237
|
+
stateMutability: 'nonpayable',
|
|
4238
|
+
},
|
|
4239
|
+
{
|
|
4240
|
+
type: 'function',
|
|
4241
|
+
inputs: [
|
|
4242
|
+
{ name: '_keepQuote', internalType: 'uint256', type: 'uint256' },
|
|
4243
|
+
{ name: '_minQuoteAtSeed', internalType: 'uint256', type: 'uint256' },
|
|
4244
|
+
],
|
|
4245
|
+
name: 'setPolicy',
|
|
4246
|
+
outputs: [],
|
|
4247
|
+
stateMutability: 'nonpayable',
|
|
4248
|
+
},
|
|
4249
|
+
{
|
|
4250
|
+
type: 'event',
|
|
4251
|
+
anonymous: false,
|
|
4252
|
+
inputs: [
|
|
4253
|
+
{
|
|
4254
|
+
name: 'poolId',
|
|
4255
|
+
internalType: 'bytes32',
|
|
4256
|
+
type: 'bytes32',
|
|
4257
|
+
indexed: true,
|
|
4258
|
+
},
|
|
4259
|
+
{
|
|
4260
|
+
name: 'current',
|
|
4261
|
+
internalType: 'address',
|
|
4262
|
+
type: 'address',
|
|
4263
|
+
indexed: true,
|
|
4264
|
+
},
|
|
4265
|
+
{
|
|
4266
|
+
name: 'proposed',
|
|
4267
|
+
internalType: 'address',
|
|
4268
|
+
type: 'address',
|
|
4269
|
+
indexed: true,
|
|
4270
|
+
},
|
|
4271
|
+
],
|
|
4272
|
+
name: 'AuthorityProposed',
|
|
4273
|
+
},
|
|
4274
|
+
{
|
|
4275
|
+
type: 'event',
|
|
4276
|
+
anonymous: false,
|
|
4277
|
+
inputs: [
|
|
4278
|
+
{
|
|
4279
|
+
name: 'poolId',
|
|
4280
|
+
internalType: 'bytes32',
|
|
4281
|
+
type: 'bytes32',
|
|
4282
|
+
indexed: true,
|
|
4283
|
+
},
|
|
4284
|
+
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
4285
|
+
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
4286
|
+
],
|
|
4287
|
+
name: 'AuthoritySet',
|
|
4288
|
+
},
|
|
4289
|
+
{
|
|
4290
|
+
type: 'event',
|
|
4291
|
+
anonymous: false,
|
|
4292
|
+
inputs: [
|
|
4293
|
+
{
|
|
4294
|
+
name: 'harvestCut',
|
|
4295
|
+
internalType: 'uint256',
|
|
4296
|
+
type: 'uint256',
|
|
4297
|
+
indexed: false,
|
|
4298
|
+
},
|
|
4299
|
+
],
|
|
4300
|
+
name: 'HarvestCutSet',
|
|
4301
|
+
},
|
|
4302
|
+
{
|
|
4303
|
+
type: 'event',
|
|
4304
|
+
anonymous: false,
|
|
4305
|
+
inputs: [
|
|
4306
|
+
{
|
|
4307
|
+
name: 'keepQuote',
|
|
4308
|
+
internalType: 'uint256',
|
|
4309
|
+
type: 'uint256',
|
|
4310
|
+
indexed: false,
|
|
4311
|
+
},
|
|
4312
|
+
{
|
|
4313
|
+
name: 'minQuoteAtSeed',
|
|
4314
|
+
internalType: 'uint256',
|
|
4315
|
+
type: 'uint256',
|
|
4316
|
+
indexed: false,
|
|
4317
|
+
},
|
|
4318
|
+
],
|
|
4319
|
+
name: 'PolicySet',
|
|
4320
|
+
},
|
|
4321
|
+
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4322
|
+
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
4323
|
+
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
4324
|
+
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
4325
|
+
{ type: 'error', inputs: [], name: 'QuoteTooThin' },
|
|
4326
|
+
{ type: 'error', inputs: [], name: 'Refused' },
|
|
4327
|
+
] as const
|
|
4328
|
+
|
|
4329
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4330
|
+
// PrivateHook
|
|
4331
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4332
|
+
|
|
4333
|
+
export const privateHookAbi = [
|
|
4334
|
+
{
|
|
4335
|
+
type: 'constructor',
|
|
4336
|
+
inputs: [
|
|
4337
|
+
{
|
|
4338
|
+
name: '_manager',
|
|
4339
|
+
internalType: 'contract FPoolManager',
|
|
4340
|
+
type: 'address',
|
|
4341
|
+
},
|
|
4342
|
+
],
|
|
4343
|
+
stateMutability: 'nonpayable',
|
|
4344
|
+
},
|
|
4345
|
+
{
|
|
4346
|
+
type: 'function',
|
|
4347
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
4348
|
+
name: 'acceptAuthority',
|
|
4349
|
+
outputs: [],
|
|
4350
|
+
stateMutability: 'nonpayable',
|
|
4351
|
+
},
|
|
4352
|
+
{
|
|
4353
|
+
type: 'function',
|
|
4354
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
4355
|
+
name: 'acceptOperator',
|
|
4356
|
+
outputs: [],
|
|
4357
|
+
stateMutability: 'nonpayable',
|
|
4358
|
+
},
|
|
4359
|
+
{
|
|
4360
|
+
type: 'function',
|
|
4361
|
+
inputs: [
|
|
4362
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4363
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4364
|
+
],
|
|
4365
|
+
name: 'appointOperator',
|
|
4366
|
+
outputs: [],
|
|
4367
|
+
stateMutability: 'nonpayable',
|
|
4368
|
+
},
|
|
4369
|
+
{
|
|
4370
|
+
type: 'function',
|
|
4371
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4372
|
+
name: 'authority',
|
|
4373
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4374
|
+
stateMutability: 'view',
|
|
4375
|
+
},
|
|
4376
|
+
{
|
|
4377
|
+
type: 'function',
|
|
4378
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4379
|
+
name: 'creator',
|
|
4380
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4381
|
+
stateMutability: 'view',
|
|
4382
|
+
},
|
|
4383
|
+
{
|
|
4384
|
+
type: 'function',
|
|
4385
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4386
|
+
name: 'gateMint',
|
|
4387
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4388
|
+
stateMutability: 'view',
|
|
4389
|
+
},
|
|
4390
|
+
{
|
|
4391
|
+
type: 'function',
|
|
4392
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4393
|
+
name: 'gateSwap',
|
|
4394
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4395
|
+
stateMutability: 'view',
|
|
4396
|
+
},
|
|
4397
|
+
{
|
|
4398
|
+
type: 'function',
|
|
4399
|
+
inputs: [],
|
|
4400
|
+
name: 'harvestCut',
|
|
4401
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4402
|
+
stateMutability: 'view',
|
|
4403
|
+
},
|
|
4404
|
+
{
|
|
4405
|
+
type: 'function',
|
|
4406
|
+
inputs: [
|
|
4407
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4408
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4409
|
+
],
|
|
4410
|
+
name: 'isAllowed',
|
|
4411
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4412
|
+
stateMutability: 'view',
|
|
4413
|
+
},
|
|
4414
|
+
{
|
|
4415
|
+
type: 'function',
|
|
4416
|
+
inputs: [],
|
|
4417
|
+
name: 'manager',
|
|
4418
|
+
outputs: [
|
|
4419
|
+
{ name: '', internalType: 'contract FPoolManager', type: 'address' },
|
|
4420
|
+
],
|
|
4421
|
+
stateMutability: 'view',
|
|
4422
|
+
},
|
|
4423
|
+
{
|
|
4424
|
+
type: 'function',
|
|
4425
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
4426
|
+
name: 'maxHarvest',
|
|
4427
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4428
|
+
stateMutability: 'view',
|
|
4429
|
+
},
|
|
4430
|
+
{
|
|
4431
|
+
type: 'function',
|
|
4432
|
+
inputs: [
|
|
4433
|
+
{
|
|
4434
|
+
name: 'a',
|
|
4435
|
+
internalType: 'struct IFHook.Ask',
|
|
4436
|
+
type: 'tuple',
|
|
4437
|
+
components: [
|
|
4438
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4439
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4440
|
+
{ name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
|
|
4441
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4442
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4443
|
+
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
4444
|
+
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
4445
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4446
|
+
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
4447
|
+
],
|
|
4448
|
+
},
|
|
4449
|
+
],
|
|
4450
|
+
name: 'may',
|
|
4451
|
+
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
4452
|
+
stateMutability: 'view',
|
|
4453
|
+
},
|
|
4454
|
+
{
|
|
4455
|
+
type: 'function',
|
|
4456
|
+
inputs: [
|
|
4457
|
+
{
|
|
4458
|
+
name: 'a',
|
|
4459
|
+
internalType: 'struct IFHook.Ask',
|
|
4460
|
+
type: 'tuple',
|
|
4461
|
+
components: [
|
|
4462
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4463
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4464
|
+
{ name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
|
|
4465
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4466
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4467
|
+
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
4468
|
+
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
4469
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4470
|
+
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
4471
|
+
],
|
|
4472
|
+
},
|
|
4473
|
+
],
|
|
4474
|
+
name: 'onHarvest',
|
|
4475
|
+
outputs: [
|
|
4476
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4477
|
+
{ name: 'cut', internalType: 'uint256', type: 'uint256' },
|
|
4478
|
+
],
|
|
4479
|
+
stateMutability: 'view',
|
|
4480
|
+
},
|
|
4481
|
+
{
|
|
4482
|
+
type: 'function',
|
|
4483
|
+
inputs: [
|
|
4484
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4485
|
+
{
|
|
4486
|
+
name: 'key',
|
|
4487
|
+
internalType: 'struct FPoolKey',
|
|
4488
|
+
type: 'tuple',
|
|
4489
|
+
components: [
|
|
4490
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4491
|
+
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
4492
|
+
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4493
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
4494
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4495
|
+
{ name: 'hook', internalType: 'address', type: 'address' },
|
|
4496
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4497
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4498
|
+
],
|
|
4499
|
+
},
|
|
4500
|
+
],
|
|
4501
|
+
name: 'onInitialize',
|
|
4502
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4503
|
+
stateMutability: 'nonpayable',
|
|
4504
|
+
},
|
|
4505
|
+
{
|
|
4506
|
+
type: 'function',
|
|
4507
|
+
inputs: [
|
|
4508
|
+
{
|
|
4509
|
+
name: 'a',
|
|
4510
|
+
internalType: 'struct IFHook.Ask',
|
|
4511
|
+
type: 'tuple',
|
|
4512
|
+
components: [
|
|
4513
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4514
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4515
|
+
{ name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
|
|
4516
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4517
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4518
|
+
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
4519
|
+
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
4520
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4521
|
+
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
4522
|
+
],
|
|
4523
|
+
},
|
|
4524
|
+
],
|
|
4525
|
+
name: 'onRegenerate',
|
|
4526
|
+
outputs: [
|
|
4527
|
+
{
|
|
4528
|
+
name: 't',
|
|
4529
|
+
internalType: 'struct IFHook.Terms',
|
|
4530
|
+
type: 'tuple',
|
|
4531
|
+
components: [
|
|
4532
|
+
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
4533
|
+
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
4534
|
+
{ name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
|
|
4535
|
+
{ name: 'burn', internalType: 'uint256', type: 'uint256' },
|
|
4536
|
+
],
|
|
4537
|
+
},
|
|
4538
|
+
],
|
|
4539
|
+
stateMutability: 'nonpayable',
|
|
4540
|
+
},
|
|
4541
|
+
{
|
|
4542
|
+
type: 'function',
|
|
4543
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4544
|
+
name: 'operator',
|
|
4545
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4546
|
+
stateMutability: 'view',
|
|
4547
|
+
},
|
|
4548
|
+
{
|
|
4549
|
+
type: 'function',
|
|
4550
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
4551
|
+
name: 'operatorOf',
|
|
4552
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4553
|
+
stateMutability: 'view',
|
|
4554
|
+
},
|
|
4555
|
+
{
|
|
4556
|
+
type: 'function',
|
|
4557
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4558
|
+
name: 'pendingAuthority',
|
|
4559
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4560
|
+
stateMutability: 'view',
|
|
4561
|
+
},
|
|
4562
|
+
{
|
|
4563
|
+
type: 'function',
|
|
4564
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4565
|
+
name: 'pendingOperator',
|
|
4566
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4567
|
+
stateMutability: 'view',
|
|
4568
|
+
},
|
|
4569
|
+
{
|
|
4570
|
+
type: 'function',
|
|
4571
|
+
inputs: [
|
|
4572
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4573
|
+
{ name: 'next', internalType: 'address', type: 'address' },
|
|
4574
|
+
],
|
|
4575
|
+
name: 'proposeAuthority',
|
|
4576
|
+
outputs: [],
|
|
4577
|
+
stateMutability: 'nonpayable',
|
|
4578
|
+
},
|
|
4579
|
+
{
|
|
4580
|
+
type: 'function',
|
|
4581
|
+
inputs: [
|
|
4582
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4583
|
+
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
4584
|
+
{ name: 'yes', internalType: 'bool', type: 'bool' },
|
|
4585
|
+
],
|
|
4586
|
+
name: 'setAllowed',
|
|
4587
|
+
outputs: [],
|
|
4588
|
+
stateMutability: 'nonpayable',
|
|
4589
|
+
},
|
|
4590
|
+
{
|
|
4591
|
+
type: 'function',
|
|
4592
|
+
inputs: [
|
|
4593
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4594
|
+
{ name: '_gateMint', internalType: 'bool', type: 'bool' },
|
|
4595
|
+
{ name: '_gateSwap', internalType: 'bool', type: 'bool' },
|
|
4596
|
+
],
|
|
4597
|
+
name: 'setGates',
|
|
4598
|
+
outputs: [],
|
|
4599
|
+
stateMutability: 'nonpayable',
|
|
4600
|
+
},
|
|
4601
|
+
{
|
|
4602
|
+
type: 'function',
|
|
4603
|
+
inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
|
|
4604
|
+
name: 'setHarvestCut',
|
|
4605
|
+
outputs: [],
|
|
4606
|
+
stateMutability: 'nonpayable',
|
|
4607
|
+
},
|
|
4608
|
+
{
|
|
4609
|
+
type: 'event',
|
|
4610
|
+
anonymous: false,
|
|
4611
|
+
inputs: [
|
|
4612
|
+
{
|
|
4613
|
+
name: 'poolId',
|
|
4614
|
+
internalType: 'bytes32',
|
|
4615
|
+
type: 'bytes32',
|
|
4616
|
+
indexed: true,
|
|
4617
|
+
},
|
|
4618
|
+
{
|
|
4619
|
+
name: 'authority',
|
|
4620
|
+
internalType: 'address',
|
|
4621
|
+
type: 'address',
|
|
4622
|
+
indexed: true,
|
|
4623
|
+
},
|
|
4624
|
+
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
4625
|
+
{ name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4626
|
+
],
|
|
4627
|
+
name: 'Allowed',
|
|
4628
|
+
},
|
|
4629
|
+
{
|
|
4630
|
+
type: 'event',
|
|
4631
|
+
anonymous: false,
|
|
4632
|
+
inputs: [
|
|
4633
|
+
{
|
|
4634
|
+
name: 'poolId',
|
|
4635
|
+
internalType: 'bytes32',
|
|
4636
|
+
type: 'bytes32',
|
|
4637
|
+
indexed: true,
|
|
4638
|
+
},
|
|
4639
|
+
{
|
|
4640
|
+
name: 'current',
|
|
4641
|
+
internalType: 'address',
|
|
4642
|
+
type: 'address',
|
|
4643
|
+
indexed: true,
|
|
4644
|
+
},
|
|
4645
|
+
{
|
|
4646
|
+
name: 'proposed',
|
|
4647
|
+
internalType: 'address',
|
|
4648
|
+
type: 'address',
|
|
4649
|
+
indexed: true,
|
|
4650
|
+
},
|
|
4651
|
+
],
|
|
4652
|
+
name: 'AuthorityProposed',
|
|
4653
|
+
},
|
|
4654
|
+
{
|
|
4655
|
+
type: 'event',
|
|
4656
|
+
anonymous: false,
|
|
4657
|
+
inputs: [
|
|
4658
|
+
{
|
|
4659
|
+
name: 'poolId',
|
|
4660
|
+
internalType: 'bytes32',
|
|
4661
|
+
type: 'bytes32',
|
|
4662
|
+
indexed: true,
|
|
4663
|
+
},
|
|
4664
|
+
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
4665
|
+
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
4666
|
+
],
|
|
4667
|
+
name: 'AuthoritySet',
|
|
4668
|
+
},
|
|
4669
|
+
{
|
|
4670
|
+
type: 'event',
|
|
4671
|
+
anonymous: false,
|
|
4672
|
+
inputs: [
|
|
4673
|
+
{
|
|
4674
|
+
name: 'poolId',
|
|
4675
|
+
internalType: 'bytes32',
|
|
4676
|
+
type: 'bytes32',
|
|
4677
|
+
indexed: true,
|
|
4678
|
+
},
|
|
4679
|
+
{ name: 'gateMint', internalType: 'bool', type: 'bool', indexed: false },
|
|
4680
|
+
{ name: 'gateSwap', internalType: 'bool', type: 'bool', indexed: false },
|
|
4681
|
+
],
|
|
4682
|
+
name: 'GatesSet',
|
|
4683
|
+
},
|
|
4684
|
+
{
|
|
4685
|
+
type: 'event',
|
|
4686
|
+
anonymous: false,
|
|
4687
|
+
inputs: [
|
|
4688
|
+
{
|
|
4689
|
+
name: 'harvestCut',
|
|
4690
|
+
internalType: 'uint256',
|
|
4691
|
+
type: 'uint256',
|
|
4692
|
+
indexed: false,
|
|
4693
|
+
},
|
|
4694
|
+
],
|
|
4695
|
+
name: 'HarvestCutSet',
|
|
4696
|
+
},
|
|
4697
|
+
{
|
|
4698
|
+
type: 'event',
|
|
4699
|
+
anonymous: false,
|
|
4700
|
+
inputs: [
|
|
4701
|
+
{
|
|
4702
|
+
name: 'poolId',
|
|
4703
|
+
internalType: 'bytes32',
|
|
4704
|
+
type: 'bytes32',
|
|
4705
|
+
indexed: true,
|
|
4706
|
+
},
|
|
4707
|
+
{
|
|
4708
|
+
name: 'current',
|
|
4709
|
+
internalType: 'address',
|
|
4710
|
+
type: 'address',
|
|
4711
|
+
indexed: true,
|
|
4712
|
+
},
|
|
4713
|
+
{
|
|
4714
|
+
name: 'proposed',
|
|
4715
|
+
internalType: 'address',
|
|
4716
|
+
type: 'address',
|
|
4717
|
+
indexed: true,
|
|
4718
|
+
},
|
|
4719
|
+
],
|
|
4720
|
+
name: 'OperatorProposed',
|
|
4721
|
+
},
|
|
4722
|
+
{
|
|
4723
|
+
type: 'event',
|
|
4724
|
+
anonymous: false,
|
|
4725
|
+
inputs: [
|
|
4726
|
+
{
|
|
4727
|
+
name: 'poolId',
|
|
4728
|
+
internalType: 'bytes32',
|
|
4729
|
+
type: 'bytes32',
|
|
4730
|
+
indexed: true,
|
|
4731
|
+
},
|
|
4732
|
+
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
4733
|
+
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
4734
|
+
],
|
|
4735
|
+
name: 'OperatorSet',
|
|
4736
|
+
},
|
|
4737
|
+
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4738
|
+
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
4739
|
+
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
4740
|
+
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
4741
|
+
{ type: 'error', inputs: [], name: 'NotOperator' },
|
|
4742
|
+
{ type: 'error', inputs: [], name: 'Refused' },
|
|
4743
|
+
] as const
|
|
4744
|
+
|
|
4745
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4746
|
+
// PublicHook
|
|
4747
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4748
|
+
|
|
4749
|
+
export const publicHookAbi = [
|
|
4750
|
+
{
|
|
4751
|
+
type: 'constructor',
|
|
4752
|
+
inputs: [
|
|
4753
|
+
{
|
|
4754
|
+
name: '_manager',
|
|
4755
|
+
internalType: 'contract FPoolManager',
|
|
4756
|
+
type: 'address',
|
|
4757
|
+
},
|
|
4758
|
+
],
|
|
4759
|
+
stateMutability: 'nonpayable',
|
|
4760
|
+
},
|
|
4761
|
+
{
|
|
4762
|
+
type: 'function',
|
|
4763
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
4764
|
+
name: 'acceptAuthority',
|
|
4765
|
+
outputs: [],
|
|
4766
|
+
stateMutability: 'nonpayable',
|
|
4767
|
+
},
|
|
4768
|
+
{
|
|
4769
|
+
type: 'function',
|
|
4770
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4771
|
+
name: 'authority',
|
|
4772
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4773
|
+
stateMutability: 'view',
|
|
4774
|
+
},
|
|
4775
|
+
{
|
|
4776
|
+
type: 'function',
|
|
4777
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4778
|
+
name: 'creator',
|
|
4779
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4780
|
+
stateMutability: 'view',
|
|
4781
|
+
},
|
|
4782
|
+
{
|
|
4783
|
+
type: 'function',
|
|
4784
|
+
inputs: [],
|
|
4785
|
+
name: 'curated',
|
|
4786
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4787
|
+
stateMutability: 'view',
|
|
4788
|
+
},
|
|
4789
|
+
{
|
|
4790
|
+
type: 'function',
|
|
4791
|
+
inputs: [],
|
|
4792
|
+
name: 'harvestCut',
|
|
4793
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4794
|
+
stateMutability: 'view',
|
|
4795
|
+
},
|
|
4796
|
+
{
|
|
4797
|
+
type: 'function',
|
|
4798
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4799
|
+
name: 'listed',
|
|
4800
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4801
|
+
stateMutability: 'view',
|
|
4802
|
+
},
|
|
4803
|
+
{
|
|
4804
|
+
type: 'function',
|
|
4805
|
+
inputs: [],
|
|
4806
|
+
name: 'manager',
|
|
4807
|
+
outputs: [
|
|
4808
|
+
{ name: '', internalType: 'contract FPoolManager', type: 'address' },
|
|
4809
|
+
],
|
|
4810
|
+
stateMutability: 'view',
|
|
4811
|
+
},
|
|
4812
|
+
{
|
|
4813
|
+
type: 'function',
|
|
4814
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
4815
|
+
name: 'maxHarvest',
|
|
4816
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4817
|
+
stateMutability: 'view',
|
|
4818
|
+
},
|
|
4819
|
+
{
|
|
4820
|
+
type: 'function',
|
|
4821
|
+
inputs: [
|
|
4822
|
+
{
|
|
4823
|
+
name: 'a',
|
|
4824
|
+
internalType: 'struct IFHook.Ask',
|
|
4825
|
+
type: 'tuple',
|
|
4826
|
+
components: [
|
|
4827
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4828
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4829
|
+
{ name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
|
|
4830
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4831
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4832
|
+
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
4833
|
+
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
4834
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4835
|
+
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
4836
|
+
],
|
|
4837
|
+
},
|
|
4838
|
+
],
|
|
4839
|
+
name: 'may',
|
|
4840
|
+
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
4841
|
+
stateMutability: 'view',
|
|
4842
|
+
},
|
|
4843
|
+
{
|
|
4844
|
+
type: 'function',
|
|
4845
|
+
inputs: [
|
|
4846
|
+
{
|
|
4847
|
+
name: 'a',
|
|
4848
|
+
internalType: 'struct IFHook.Ask',
|
|
4849
|
+
type: 'tuple',
|
|
4850
|
+
components: [
|
|
4851
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4852
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4853
|
+
{ name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
|
|
4854
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4855
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4856
|
+
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
4857
|
+
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
4858
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4859
|
+
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
4860
|
+
],
|
|
4861
|
+
},
|
|
4862
|
+
],
|
|
4863
|
+
name: 'onHarvest',
|
|
4864
|
+
outputs: [
|
|
4865
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4866
|
+
{ name: 'cut', internalType: 'uint256', type: 'uint256' },
|
|
4867
|
+
],
|
|
4868
|
+
stateMutability: 'view',
|
|
4869
|
+
},
|
|
4870
|
+
{
|
|
4871
|
+
type: 'function',
|
|
4872
|
+
inputs: [
|
|
4873
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4874
|
+
{
|
|
4875
|
+
name: 'key',
|
|
4876
|
+
internalType: 'struct FPoolKey',
|
|
4877
|
+
type: 'tuple',
|
|
4878
|
+
components: [
|
|
4879
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4880
|
+
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
4881
|
+
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4882
|
+
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
4883
|
+
{ name: 'kind', internalType: 'enum Kind', type: 'uint8' },
|
|
4884
|
+
{ name: 'hook', internalType: 'address', type: 'address' },
|
|
4885
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4886
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4887
|
+
],
|
|
4888
|
+
},
|
|
4889
|
+
],
|
|
4890
|
+
name: 'onInitialize',
|
|
4891
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4892
|
+
stateMutability: 'nonpayable',
|
|
4893
|
+
},
|
|
4894
|
+
{
|
|
4895
|
+
type: 'function',
|
|
4896
|
+
inputs: [
|
|
4897
|
+
{
|
|
4898
|
+
name: 'a',
|
|
4899
|
+
internalType: 'struct IFHook.Ask',
|
|
4900
|
+
type: 'tuple',
|
|
4901
|
+
components: [
|
|
4902
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4903
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4904
|
+
{ name: 'action', internalType: 'enum IFHook.Action', type: 'uint8' },
|
|
4905
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4906
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4907
|
+
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
4908
|
+
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
4909
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4910
|
+
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
4911
|
+
],
|
|
4912
|
+
},
|
|
4913
|
+
],
|
|
4914
|
+
name: 'onRegenerate',
|
|
4915
|
+
outputs: [
|
|
4916
|
+
{
|
|
4917
|
+
name: 't',
|
|
4918
|
+
internalType: 'struct IFHook.Terms',
|
|
4919
|
+
type: 'tuple',
|
|
4920
|
+
components: [
|
|
4921
|
+
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
4922
|
+
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
4923
|
+
{ name: 'protocolCut', internalType: 'uint256', type: 'uint256' },
|
|
4924
|
+
{ name: 'burn', internalType: 'uint256', type: 'uint256' },
|
|
4925
|
+
],
|
|
4926
|
+
},
|
|
4927
|
+
],
|
|
4928
|
+
stateMutability: 'nonpayable',
|
|
4929
|
+
},
|
|
4930
|
+
{
|
|
4931
|
+
type: 'function',
|
|
4932
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4933
|
+
name: 'pendingAuthority',
|
|
4934
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4935
|
+
stateMutability: 'view',
|
|
4936
|
+
},
|
|
4937
|
+
{
|
|
4938
|
+
type: 'function',
|
|
4939
|
+
inputs: [
|
|
4940
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4941
|
+
{ name: 'next', internalType: 'address', type: 'address' },
|
|
4942
|
+
],
|
|
4943
|
+
name: 'proposeAuthority',
|
|
4944
|
+
outputs: [],
|
|
4945
|
+
stateMutability: 'nonpayable',
|
|
4946
|
+
},
|
|
4947
|
+
{
|
|
4948
|
+
type: 'function',
|
|
4949
|
+
inputs: [{ name: '_curated', internalType: 'bool', type: 'bool' }],
|
|
4950
|
+
name: 'setCurated',
|
|
4951
|
+
outputs: [],
|
|
4952
|
+
stateMutability: 'nonpayable',
|
|
4953
|
+
},
|
|
4954
|
+
{
|
|
4955
|
+
type: 'function',
|
|
4956
|
+
inputs: [{ name: '_harvestCut', internalType: 'uint256', type: 'uint256' }],
|
|
4957
|
+
name: 'setHarvestCut',
|
|
4958
|
+
outputs: [],
|
|
4959
|
+
stateMutability: 'nonpayable',
|
|
4960
|
+
},
|
|
4961
|
+
{
|
|
4962
|
+
type: 'function',
|
|
4963
|
+
inputs: [
|
|
4964
|
+
{ name: 'token', internalType: 'address', type: 'address' },
|
|
4965
|
+
{ name: '_listed', internalType: 'bool', type: 'bool' },
|
|
4966
|
+
],
|
|
4967
|
+
name: 'setListed',
|
|
4968
|
+
outputs: [],
|
|
4969
|
+
stateMutability: 'nonpayable',
|
|
4970
|
+
},
|
|
4971
|
+
{
|
|
4972
|
+
type: 'event',
|
|
4973
|
+
anonymous: false,
|
|
4974
|
+
inputs: [
|
|
4975
|
+
{
|
|
4976
|
+
name: 'poolId',
|
|
4977
|
+
internalType: 'bytes32',
|
|
4978
|
+
type: 'bytes32',
|
|
4979
|
+
indexed: true,
|
|
4980
|
+
},
|
|
4981
|
+
{
|
|
4982
|
+
name: 'current',
|
|
4983
|
+
internalType: 'address',
|
|
4984
|
+
type: 'address',
|
|
4985
|
+
indexed: true,
|
|
4986
|
+
},
|
|
4987
|
+
{
|
|
4988
|
+
name: 'proposed',
|
|
4989
|
+
internalType: 'address',
|
|
4990
|
+
type: 'address',
|
|
4991
|
+
indexed: true,
|
|
4992
|
+
},
|
|
4993
|
+
],
|
|
4994
|
+
name: 'AuthorityProposed',
|
|
4995
|
+
},
|
|
4996
|
+
{
|
|
4997
|
+
type: 'event',
|
|
4998
|
+
anonymous: false,
|
|
4999
|
+
inputs: [
|
|
5000
|
+
{
|
|
5001
|
+
name: 'poolId',
|
|
5002
|
+
internalType: 'bytes32',
|
|
5003
|
+
type: 'bytes32',
|
|
5004
|
+
indexed: true,
|
|
5005
|
+
},
|
|
5006
|
+
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
5007
|
+
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
5008
|
+
],
|
|
5009
|
+
name: 'AuthoritySet',
|
|
5010
|
+
},
|
|
5011
|
+
{
|
|
5012
|
+
type: 'event',
|
|
5013
|
+
anonymous: false,
|
|
5014
|
+
inputs: [
|
|
5015
|
+
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5016
|
+
],
|
|
5017
|
+
name: 'CuratedSet',
|
|
5018
|
+
},
|
|
5019
|
+
{
|
|
5020
|
+
type: 'event',
|
|
5021
|
+
anonymous: false,
|
|
5022
|
+
inputs: [
|
|
5023
|
+
{
|
|
5024
|
+
name: 'harvestCut',
|
|
5025
|
+
internalType: 'uint256',
|
|
5026
|
+
type: 'uint256',
|
|
5027
|
+
indexed: false,
|
|
5028
|
+
},
|
|
5029
|
+
],
|
|
5030
|
+
name: 'HarvestCutSet',
|
|
5031
|
+
},
|
|
5032
|
+
{
|
|
5033
|
+
type: 'event',
|
|
5034
|
+
anonymous: false,
|
|
5035
|
+
inputs: [
|
|
5036
|
+
{
|
|
5037
|
+
name: 'token',
|
|
5038
|
+
internalType: 'address',
|
|
5039
|
+
type: 'address',
|
|
5040
|
+
indexed: true,
|
|
5041
|
+
},
|
|
5042
|
+
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5043
|
+
],
|
|
5044
|
+
name: 'Listed',
|
|
5045
|
+
},
|
|
5046
|
+
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
5047
|
+
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
5048
|
+
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
5049
|
+
{
|
|
5050
|
+
type: 'error',
|
|
5051
|
+
inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
|
|
5052
|
+
name: 'NotListed',
|
|
5053
|
+
},
|
|
5054
|
+
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
5055
|
+
{ type: 'error', inputs: [], name: 'Refused' },
|
|
5056
|
+
] as const
|